Raw
1 /** @type {import('types').Sidebar.SidebarItem[]} */
2 export const promotionSidebar = [
3 {
4 type: "sidebar",
5 sidebar_id: "promotion",
6 title: "Promotion Module",
7 children: [
8 {
9 type: "link",
10 path: "/commerce-modules/promotion",
11 title: "Overview",
12 },
13 {
14 type: "separator",
15 },
16 {
17 type: "category",
18 title: "Concepts",
19 children: [
20 {
21 type: "link",
22 path: "/commerce-modules/promotion/concepts",
23 title: "Promotion",
24 },
25 {
26 type: "link",
27 path: "/commerce-modules/promotion/promotion-taxes",
28 title: "Tax-Inclusive Promotions",
29 },
30 {
31 type: "link",
32 path: "/commerce-modules/promotion/application-method",
33 title: "Application Method",
34 },
35 {
36 type: "link",
37 path: "/commerce-modules/promotion/campaign",
38 title: "Campaign",
39 },
40 {
41 type: "link",
42 path: "/commerce-modules/promotion/actions",
43 title: "Promotion Actions",
44 },
45 {
46 type: "link",
47 path: "/commerce-modules/promotion/links-to-other-modules",
48 title: "Links to Modules",
49 },
50 ],
51 },
52 {
53 type: "category",
54 title: "Server Guides",
55 autogenerate_tags: "promotion+server",
56 autogenerate_as_ref: true,
57 sort_sidebar: "alphabetize",
58 description:
59 "Learn how to use the Promotion Module in your customizations on the Medusa application server.",
60 children: [
61 {
62 type: "link",
63 path: "/commerce-modules/promotion/extend",
64 title: "Extend Module",
65 },
66 ],
67 },
68 {
69 type: "category",
70 title: "Storefront Guides",
71 autogenerate_tags: "storefront+promotion,-jsSdk",
72 autogenerate_as_ref: true,
73 sort_sidebar: "alphabetize",
74 description:
75 "Learn how to integrate the Promotion Module's features into your storefront.",
76 },
77 {
78 type: "category",
79 title: "Admin Guides",
80 autogenerate_tags: "admin+promotion,-jsSdk",
81 autogenerate_as_ref: true,
82 sort_sidebar: "alphabetize",
83 description:
84 "Learn how to utilize administative features of the Promotion Module.",
85 },
86 {
87 type: "category",
88 title: "Admin User Guides",
89 autogenerate_tags: "userGuide+promotion",
90 autogenerate_as_ref: true,
91 sort_sidebar: "alphabetize",
92 description:
93 "Learn how to utilize and manage Promotion features in the Medusa Admin dashboard.",
94 },
95 {
96 type: "category",
97 title: "References",
98 description:
99 "Find references for tools and resources related to the Promotion Module, such as data models, methods, and more. These are useful for your customizations.",
100 children: [
101 {
102 type: "link",
103 path: "/commerce-modules/promotion/workflows",
104 title: "Workflows",
105 hideChildren: true,
106 children: [
107 {
108 type: "category",
109 title: "Workflows",
110 autogenerate_tags: "workflow+promotion",
111 autogenerate_as_ref: true,
112 sort_sidebar: "alphabetize",
113 },
114 {
115 type: "category",
116 title: "Steps",
117 autogenerate_tags: "step+promotion",
118 autogenerate_as_ref: true,
119 sort_sidebar: "alphabetize",
120 },
121 ],
122 },
123 {
124 type: "link",
125 path: "/commerce-modules/promotion/js-sdk",
126 title: "JS SDK",
127 hideChildren: true,
128 children: [
129 {
130 type: "sub-category",
131 title: "Store",
132 autogenerate_tags: "jsSdk+storefront+promotion",
133 description:
134 "The following methods or properties are used to send requests to Store API Routes related to the Promotion Module.",
135 autogenerate_as_ref: true,
136 sort_sidebar: "alphabetize",
137 },
138 {
139 type: "sub-category",
140 title: "Admin",
141 autogenerate_tags: "jsSdk+admin+promotion",
142 description:
143 "The following methods or properties are used to send requests to Admin API Routes related to the Promotion Module.",
144 autogenerate_as_ref: true,
145 sort_sidebar: "alphabetize",
146 },
147 ],
148 },
149 {
150 type: "link",
151 path: "/commerce-modules/promotion/admin-widget-zones",
152 title: "Admin Widget Zones",
153 },
154 {
155 type: "sidebar",
156 sidebar_id: "promotion-service-reference",
157 title: "Main Service Reference",
158 childSidebarTitle: "Promotion Module's Main Service Reference",
159 children: [
160 {
161 type: "link",
162 path: "/references/promotion",
163 title: "Reference Overview",
164 },
165 {
166 type: "separator",
167 },
168 {
169 type: "category",
170 title: "Methods",
171 hasTitleStyling: true,
172 autogenerate_path:
173 "/references/promotion/IPromotionModuleService/methods",
174 },
175 ],
176 },
177 {
178 type: "sidebar",
179 sidebar_id: "promotion-models-reference",
180 title: "Data Models Reference",
181 childSidebarTitle: "Promotion Module Data Models Reference",
182 children: [
183 {
184 type: "link",
185 path: "/references/promotion/models",
186 title: "Reference Overview",
187 },
188 {
189 type: "separator",
190 },
191 {
192 type: "category",
193 title: "Data Models",
194 hasTitleStyling: true,
195 autogenerate_path: "/references/promotion_models/variables",
196 },
197 ],
198 },
199 ],
200 },
201 ],
202 },
203 ]