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