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