@unchainedshop/core 4.3.4 → 4.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bulk-importer/createBulkImporter.d.ts +1 -1
- package/lib/bulk-importer/createBulkImporter.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/create.d.ts +40 -480
- package/lib/bulk-importer/handlers/assortment/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/create.js +1 -1
- package/lib/bulk-importer/handlers/assortment/create.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/remove.d.ts +2 -10
- package/lib/bulk-importer/handlers/assortment/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/update.d.ts +40 -480
- package/lib/bulk-importer/handlers/assortment/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/update.js +1 -1
- package/lib/bulk-importer/handlers/assortment/update.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +6 -54
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/create.d.ts +7 -107
- package/lib/bulk-importer/handlers/filter/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/create.js +1 -1
- package/lib/bulk-importer/handlers/filter/create.js.map +1 -1
- package/lib/bulk-importer/handlers/filter/remove.d.ts +1 -5
- package/lib/bulk-importer/handlers/filter/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/update.d.ts +7 -107
- package/lib/bulk-importer/handlers/filter/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/update.js +1 -1
- package/lib/bulk-importer/handlers/filter/update.js.map +1 -1
- package/lib/bulk-importer/handlers/product/create.d.ts +61 -1155
- package/lib/bulk-importer/handlers/product/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/create.js +2 -2
- package/lib/bulk-importer/handlers/product/create.js.map +1 -1
- package/lib/bulk-importer/handlers/product/remove.d.ts +2 -10
- package/lib/bulk-importer/handlers/product/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/update.d.ts +61 -1155
- package/lib/bulk-importer/handlers/product/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/update.js +2 -2
- package/lib/bulk-importer/handlers/product/update.js.map +1 -1
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +6 -54
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +4 -58
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts.map +1 -1
- package/lib/bulk-importer/upsertAsset.d.ts +3 -15
- package/lib/bulk-importer/upsertAsset.d.ts.map +1 -1
- package/lib/bulk-importer/upsertAsset.js +2 -2
- package/lib/bulk-importer/upsertAsset.js.map +1 -1
- package/lib/directors/BasePricingSheet.d.ts.map +1 -1
- package/lib/directors/BasePricingSheet.js.map +1 -1
- package/package.json +1 -1
- package/src/bulk-importer/createBulkImporter.ts +1 -1
- package/src/bulk-importer/handlers/assortment/create.ts +1 -1
- package/src/bulk-importer/handlers/assortment/update.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentFilters.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentProducts.ts +1 -1
- package/src/bulk-importer/handlers/filter/create.ts +1 -1
- package/src/bulk-importer/handlers/filter/update.ts +1 -1
- package/src/bulk-importer/handlers/product/create.ts +2 -2
- package/src/bulk-importer/handlers/product/update.ts +2 -2
- package/src/bulk-importer/upsertAsset.ts +2 -2
- package/src/directors/BasePricingSheet.ts +3 -2
- package/lib/factory/registerPhysicalWarehouse copy.d.ts +0 -10
- package/lib/factory/registerPhysicalWarehouse copy.d.ts.map +0 -1
- package/lib/factory/registerPhysicalWarehouse copy.js +0 -54
- package/lib/factory/registerPhysicalWarehouse copy.js.map +0 -1
- package/lib/factory/registerPhysicalWarehouse.d.ts +0 -10
- package/lib/factory/registerPhysicalWarehouse.d.ts.map +0 -1
- package/lib/factory/registerPhysicalWarehouse.js +0 -54
- package/lib/factory/registerPhysicalWarehouse.js.map +0 -1
- package/lib/factory/registerVirtualWarehouse.d.ts +0 -11
- package/lib/factory/registerVirtualWarehouse.d.ts.map +0 -1
- package/lib/factory/registerVirtualWarehouse.js +0 -51
- package/lib/factory/registerVirtualWarehouse.js.map +0 -1
- package/lib/factory/registerWarehouse.d.ts +0 -7
- package/lib/factory/registerWarehouse.d.ts.map +0 -1
- package/lib/factory/registerWarehouse.js +0 -35
- package/lib/factory/registerWarehouse.js.map +0 -1
- package/lib/factory/registerWorker copy.d.ts +0 -7
- package/lib/factory/registerWorker copy.d.ts.map +0 -1
- package/lib/factory/registerWorker copy.js +0 -35
- package/lib/factory/registerWorker copy.js.map +0 -1
|
@@ -8,272 +8,52 @@ export declare const AssortmentUpdatePayloadSchema: z.ZodObject<{
|
|
|
8
8
|
isBase: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
isRoot: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
13
13
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
14
|
title: z.ZodOptional<z.ZodString>;
|
|
15
15
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
16
16
|
slug: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
subtitle?: string | undefined;
|
|
20
|
-
slug?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
title?: string | undefined;
|
|
23
|
-
subtitle?: string | undefined;
|
|
24
|
-
slug?: string | undefined;
|
|
25
|
-
}>>>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
isActive?: boolean | undefined;
|
|
28
|
-
isBase?: boolean | undefined;
|
|
29
|
-
isRoot?: boolean | undefined;
|
|
30
|
-
meta?: Record<string, unknown> | undefined;
|
|
31
|
-
sequence?: number | undefined;
|
|
32
|
-
tags?: string[] | undefined;
|
|
33
|
-
content?: Record<string, {
|
|
34
|
-
title?: string | undefined;
|
|
35
|
-
subtitle?: string | undefined;
|
|
36
|
-
slug?: string | undefined;
|
|
37
|
-
}> | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
isActive?: boolean | undefined;
|
|
40
|
-
isBase?: boolean | undefined;
|
|
41
|
-
isRoot?: boolean | undefined;
|
|
42
|
-
meta?: Record<string, unknown> | undefined;
|
|
43
|
-
sequence?: number | undefined;
|
|
44
|
-
tags?: string[] | undefined;
|
|
45
|
-
content?: Record<string, {
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
subtitle?: string | undefined;
|
|
48
|
-
slug?: string | undefined;
|
|
49
|
-
}> | undefined;
|
|
50
|
-
}>>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
51
19
|
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
20
|
_id: z.ZodOptional<z.ZodString>;
|
|
53
21
|
asset: z.ZodObject<{
|
|
54
22
|
_id: z.ZodOptional<z.ZodString>;
|
|
55
23
|
url: z.ZodString;
|
|
56
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
24
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
57
25
|
fileName: z.ZodString;
|
|
58
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
59
|
-
},
|
|
60
|
-
url: string;
|
|
61
|
-
fileName: string;
|
|
62
|
-
_id?: string | undefined;
|
|
63
|
-
meta?: Record<string, unknown> | undefined;
|
|
64
|
-
headers?: Record<string, string> | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
url: string;
|
|
67
|
-
fileName: string;
|
|
68
|
-
_id?: string | undefined;
|
|
69
|
-
meta?: Record<string, unknown> | undefined;
|
|
70
|
-
headers?: Record<string, string> | undefined;
|
|
71
|
-
}>;
|
|
26
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
72
28
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
73
29
|
title: z.ZodOptional<z.ZodString>;
|
|
74
30
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
subtitle?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
title?: string | undefined;
|
|
80
|
-
subtitle?: string | undefined;
|
|
81
|
-
}>>>;
|
|
82
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
33
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
},
|
|
85
|
-
asset: {
|
|
86
|
-
url: string;
|
|
87
|
-
fileName: string;
|
|
88
|
-
_id?: string | undefined;
|
|
89
|
-
meta?: Record<string, unknown> | undefined;
|
|
90
|
-
headers?: Record<string, string> | undefined;
|
|
91
|
-
};
|
|
92
|
-
_id?: string | undefined;
|
|
93
|
-
tags?: string[] | undefined;
|
|
94
|
-
sortKey?: number | undefined;
|
|
95
|
-
content?: Record<string, {
|
|
96
|
-
title?: string | undefined;
|
|
97
|
-
subtitle?: string | undefined;
|
|
98
|
-
}> | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
asset: {
|
|
101
|
-
url: string;
|
|
102
|
-
fileName: string;
|
|
103
|
-
_id?: string | undefined;
|
|
104
|
-
meta?: Record<string, unknown> | undefined;
|
|
105
|
-
headers?: Record<string, string> | undefined;
|
|
106
|
-
};
|
|
107
|
-
_id?: string | undefined;
|
|
108
|
-
tags?: string[] | undefined;
|
|
109
|
-
sortKey?: number | undefined;
|
|
110
|
-
content?: Record<string, {
|
|
111
|
-
title?: string | undefined;
|
|
112
|
-
subtitle?: string | undefined;
|
|
113
|
-
}> | undefined;
|
|
114
|
-
}>, "many">>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
115
35
|
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
36
|
_id: z.ZodOptional<z.ZodString>;
|
|
117
37
|
productId: z.ZodString;
|
|
118
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
38
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
39
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
121
|
-
},
|
|
122
|
-
productId: string;
|
|
123
|
-
_id?: string | undefined;
|
|
124
|
-
meta?: Record<string, any> | undefined;
|
|
125
|
-
tags?: string[] | undefined;
|
|
126
|
-
sortKey?: number | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
productId: string;
|
|
129
|
-
_id?: string | undefined;
|
|
130
|
-
meta?: Record<string, any> | undefined;
|
|
131
|
-
tags?: string[] | undefined;
|
|
132
|
-
sortKey?: number | undefined;
|
|
133
|
-
}>, "many">>;
|
|
40
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
134
42
|
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
43
|
_id: z.ZodOptional<z.ZodString>;
|
|
136
44
|
assortmentId: z.ZodString;
|
|
137
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
45
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
46
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
140
|
-
},
|
|
141
|
-
assortmentId: string;
|
|
142
|
-
_id?: string | undefined;
|
|
143
|
-
meta?: Record<string, unknown> | undefined;
|
|
144
|
-
tags?: string[] | undefined;
|
|
145
|
-
sortKey?: number | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
assortmentId: string;
|
|
148
|
-
_id?: string | undefined;
|
|
149
|
-
meta?: Record<string, unknown> | undefined;
|
|
150
|
-
tags?: string[] | undefined;
|
|
151
|
-
sortKey?: number | undefined;
|
|
152
|
-
}>, "many">>;
|
|
47
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
153
49
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
50
|
_id: z.ZodOptional<z.ZodString>;
|
|
155
51
|
filterId: z.ZodString;
|
|
156
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
52
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
53
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
_id?: string | undefined;
|
|
162
|
-
meta?: Record<string, unknown> | undefined;
|
|
163
|
-
tags?: string[] | undefined;
|
|
164
|
-
sortKey?: number | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
filterId: string;
|
|
167
|
-
_id?: string | undefined;
|
|
168
|
-
meta?: Record<string, unknown> | undefined;
|
|
169
|
-
tags?: string[] | undefined;
|
|
170
|
-
sortKey?: number | undefined;
|
|
171
|
-
}>, "many">>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
_id: string;
|
|
174
|
-
children?: {
|
|
175
|
-
assortmentId: string;
|
|
176
|
-
_id?: string | undefined;
|
|
177
|
-
meta?: Record<string, unknown> | undefined;
|
|
178
|
-
tags?: string[] | undefined;
|
|
179
|
-
sortKey?: number | undefined;
|
|
180
|
-
}[] | undefined;
|
|
181
|
-
filters?: {
|
|
182
|
-
filterId: string;
|
|
183
|
-
_id?: string | undefined;
|
|
184
|
-
meta?: Record<string, unknown> | undefined;
|
|
185
|
-
tags?: string[] | undefined;
|
|
186
|
-
sortKey?: number | undefined;
|
|
187
|
-
}[] | undefined;
|
|
188
|
-
products?: {
|
|
189
|
-
productId: string;
|
|
190
|
-
_id?: string | undefined;
|
|
191
|
-
meta?: Record<string, any> | undefined;
|
|
192
|
-
tags?: string[] | undefined;
|
|
193
|
-
sortKey?: number | undefined;
|
|
194
|
-
}[] | undefined;
|
|
195
|
-
media?: {
|
|
196
|
-
asset: {
|
|
197
|
-
url: string;
|
|
198
|
-
fileName: string;
|
|
199
|
-
_id?: string | undefined;
|
|
200
|
-
meta?: Record<string, unknown> | undefined;
|
|
201
|
-
headers?: Record<string, string> | undefined;
|
|
202
|
-
};
|
|
203
|
-
_id?: string | undefined;
|
|
204
|
-
tags?: string[] | undefined;
|
|
205
|
-
sortKey?: number | undefined;
|
|
206
|
-
content?: Record<string, {
|
|
207
|
-
title?: string | undefined;
|
|
208
|
-
subtitle?: string | undefined;
|
|
209
|
-
}> | undefined;
|
|
210
|
-
}[] | undefined;
|
|
211
|
-
specification?: {
|
|
212
|
-
isActive?: boolean | undefined;
|
|
213
|
-
isBase?: boolean | undefined;
|
|
214
|
-
isRoot?: boolean | undefined;
|
|
215
|
-
meta?: Record<string, unknown> | undefined;
|
|
216
|
-
sequence?: number | undefined;
|
|
217
|
-
tags?: string[] | undefined;
|
|
218
|
-
content?: Record<string, {
|
|
219
|
-
title?: string | undefined;
|
|
220
|
-
subtitle?: string | undefined;
|
|
221
|
-
slug?: string | undefined;
|
|
222
|
-
}> | undefined;
|
|
223
|
-
} | undefined;
|
|
224
|
-
}, {
|
|
225
|
-
_id: string;
|
|
226
|
-
children?: {
|
|
227
|
-
assortmentId: string;
|
|
228
|
-
_id?: string | undefined;
|
|
229
|
-
meta?: Record<string, unknown> | undefined;
|
|
230
|
-
tags?: string[] | undefined;
|
|
231
|
-
sortKey?: number | undefined;
|
|
232
|
-
}[] | undefined;
|
|
233
|
-
filters?: {
|
|
234
|
-
filterId: string;
|
|
235
|
-
_id?: string | undefined;
|
|
236
|
-
meta?: Record<string, unknown> | undefined;
|
|
237
|
-
tags?: string[] | undefined;
|
|
238
|
-
sortKey?: number | undefined;
|
|
239
|
-
}[] | undefined;
|
|
240
|
-
products?: {
|
|
241
|
-
productId: string;
|
|
242
|
-
_id?: string | undefined;
|
|
243
|
-
meta?: Record<string, any> | undefined;
|
|
244
|
-
tags?: string[] | undefined;
|
|
245
|
-
sortKey?: number | undefined;
|
|
246
|
-
}[] | undefined;
|
|
247
|
-
media?: {
|
|
248
|
-
asset: {
|
|
249
|
-
url: string;
|
|
250
|
-
fileName: string;
|
|
251
|
-
_id?: string | undefined;
|
|
252
|
-
meta?: Record<string, unknown> | undefined;
|
|
253
|
-
headers?: Record<string, string> | undefined;
|
|
254
|
-
};
|
|
255
|
-
_id?: string | undefined;
|
|
256
|
-
tags?: string[] | undefined;
|
|
257
|
-
sortKey?: number | undefined;
|
|
258
|
-
content?: Record<string, {
|
|
259
|
-
title?: string | undefined;
|
|
260
|
-
subtitle?: string | undefined;
|
|
261
|
-
}> | undefined;
|
|
262
|
-
}[] | undefined;
|
|
263
|
-
specification?: {
|
|
264
|
-
isActive?: boolean | undefined;
|
|
265
|
-
isBase?: boolean | undefined;
|
|
266
|
-
isRoot?: boolean | undefined;
|
|
267
|
-
meta?: Record<string, unknown> | undefined;
|
|
268
|
-
sequence?: number | undefined;
|
|
269
|
-
tags?: string[] | undefined;
|
|
270
|
-
content?: Record<string, {
|
|
271
|
-
title?: string | undefined;
|
|
272
|
-
subtitle?: string | undefined;
|
|
273
|
-
slug?: string | undefined;
|
|
274
|
-
}> | undefined;
|
|
275
|
-
} | undefined;
|
|
276
|
-
}>;
|
|
54
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
277
57
|
declare function updateAssortment(payload: z.infer<typeof AssortmentUpdatePayloadSchema>, { logger, createShouldUpsertIfIDExists, updateShouldUpsertIfIDNotExists }: {
|
|
278
58
|
logger: any;
|
|
279
59
|
createShouldUpsertIfIDExists: any;
|
|
@@ -295,272 +75,52 @@ declare namespace updateAssortment {
|
|
|
295
75
|
isBase: z.ZodOptional<z.ZodBoolean>;
|
|
296
76
|
isRoot: z.ZodOptional<z.ZodBoolean>;
|
|
297
77
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
298
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
299
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
78
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
300
80
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
301
81
|
title: z.ZodOptional<z.ZodString>;
|
|
302
82
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
303
83
|
slug: z.ZodOptional<z.ZodString>;
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
subtitle?: string | undefined;
|
|
307
|
-
slug?: string | undefined;
|
|
308
|
-
}, {
|
|
309
|
-
title?: string | undefined;
|
|
310
|
-
subtitle?: string | undefined;
|
|
311
|
-
slug?: string | undefined;
|
|
312
|
-
}>>>;
|
|
313
|
-
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
isActive?: boolean | undefined;
|
|
315
|
-
isBase?: boolean | undefined;
|
|
316
|
-
isRoot?: boolean | undefined;
|
|
317
|
-
meta?: Record<string, unknown> | undefined;
|
|
318
|
-
sequence?: number | undefined;
|
|
319
|
-
tags?: string[] | undefined;
|
|
320
|
-
content?: Record<string, {
|
|
321
|
-
title?: string | undefined;
|
|
322
|
-
subtitle?: string | undefined;
|
|
323
|
-
slug?: string | undefined;
|
|
324
|
-
}> | undefined;
|
|
325
|
-
}, {
|
|
326
|
-
isActive?: boolean | undefined;
|
|
327
|
-
isBase?: boolean | undefined;
|
|
328
|
-
isRoot?: boolean | undefined;
|
|
329
|
-
meta?: Record<string, unknown> | undefined;
|
|
330
|
-
sequence?: number | undefined;
|
|
331
|
-
tags?: string[] | undefined;
|
|
332
|
-
content?: Record<string, {
|
|
333
|
-
title?: string | undefined;
|
|
334
|
-
subtitle?: string | undefined;
|
|
335
|
-
slug?: string | undefined;
|
|
336
|
-
}> | undefined;
|
|
337
|
-
}>>;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
338
86
|
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
87
|
_id: z.ZodOptional<z.ZodString>;
|
|
340
88
|
asset: z.ZodObject<{
|
|
341
89
|
_id: z.ZodOptional<z.ZodString>;
|
|
342
90
|
url: z.ZodString;
|
|
343
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
91
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
344
92
|
fileName: z.ZodString;
|
|
345
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
346
|
-
},
|
|
347
|
-
url: string;
|
|
348
|
-
fileName: string;
|
|
349
|
-
_id?: string | undefined;
|
|
350
|
-
meta?: Record<string, unknown> | undefined;
|
|
351
|
-
headers?: Record<string, string> | undefined;
|
|
352
|
-
}, {
|
|
353
|
-
url: string;
|
|
354
|
-
fileName: string;
|
|
355
|
-
_id?: string | undefined;
|
|
356
|
-
meta?: Record<string, unknown> | undefined;
|
|
357
|
-
headers?: Record<string, string> | undefined;
|
|
358
|
-
}>;
|
|
93
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
359
95
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
96
|
title: z.ZodOptional<z.ZodString>;
|
|
361
97
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
subtitle?: string | undefined;
|
|
365
|
-
}, {
|
|
366
|
-
title?: string | undefined;
|
|
367
|
-
subtitle?: string | undefined;
|
|
368
|
-
}>>>;
|
|
369
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
370
100
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
371
|
-
},
|
|
372
|
-
asset: {
|
|
373
|
-
url: string;
|
|
374
|
-
fileName: string;
|
|
375
|
-
_id?: string | undefined;
|
|
376
|
-
meta?: Record<string, unknown> | undefined;
|
|
377
|
-
headers?: Record<string, string> | undefined;
|
|
378
|
-
};
|
|
379
|
-
_id?: string | undefined;
|
|
380
|
-
tags?: string[] | undefined;
|
|
381
|
-
sortKey?: number | undefined;
|
|
382
|
-
content?: Record<string, {
|
|
383
|
-
title?: string | undefined;
|
|
384
|
-
subtitle?: string | undefined;
|
|
385
|
-
}> | undefined;
|
|
386
|
-
}, {
|
|
387
|
-
asset: {
|
|
388
|
-
url: string;
|
|
389
|
-
fileName: string;
|
|
390
|
-
_id?: string | undefined;
|
|
391
|
-
meta?: Record<string, unknown> | undefined;
|
|
392
|
-
headers?: Record<string, string> | undefined;
|
|
393
|
-
};
|
|
394
|
-
_id?: string | undefined;
|
|
395
|
-
tags?: string[] | undefined;
|
|
396
|
-
sortKey?: number | undefined;
|
|
397
|
-
content?: Record<string, {
|
|
398
|
-
title?: string | undefined;
|
|
399
|
-
subtitle?: string | undefined;
|
|
400
|
-
}> | undefined;
|
|
401
|
-
}>, "many">>;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
402
102
|
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
403
103
|
_id: z.ZodOptional<z.ZodString>;
|
|
404
104
|
productId: z.ZodString;
|
|
405
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
105
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
406
106
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
407
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
408
|
-
},
|
|
409
|
-
productId: string;
|
|
410
|
-
_id?: string | undefined;
|
|
411
|
-
meta?: Record<string, any> | undefined;
|
|
412
|
-
tags?: string[] | undefined;
|
|
413
|
-
sortKey?: number | undefined;
|
|
414
|
-
}, {
|
|
415
|
-
productId: string;
|
|
416
|
-
_id?: string | undefined;
|
|
417
|
-
meta?: Record<string, any> | undefined;
|
|
418
|
-
tags?: string[] | undefined;
|
|
419
|
-
sortKey?: number | undefined;
|
|
420
|
-
}>, "many">>;
|
|
107
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
421
109
|
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
422
110
|
_id: z.ZodOptional<z.ZodString>;
|
|
423
111
|
assortmentId: z.ZodString;
|
|
424
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
112
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
425
113
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
426
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
427
|
-
},
|
|
428
|
-
assortmentId: string;
|
|
429
|
-
_id?: string | undefined;
|
|
430
|
-
meta?: Record<string, unknown> | undefined;
|
|
431
|
-
tags?: string[] | undefined;
|
|
432
|
-
sortKey?: number | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
assortmentId: string;
|
|
435
|
-
_id?: string | undefined;
|
|
436
|
-
meta?: Record<string, unknown> | undefined;
|
|
437
|
-
tags?: string[] | undefined;
|
|
438
|
-
sortKey?: number | undefined;
|
|
439
|
-
}>, "many">>;
|
|
114
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
440
116
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
441
117
|
_id: z.ZodOptional<z.ZodString>;
|
|
442
118
|
filterId: z.ZodString;
|
|
443
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
119
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
444
120
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
445
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
_id?: string | undefined;
|
|
449
|
-
meta?: Record<string, unknown> | undefined;
|
|
450
|
-
tags?: string[] | undefined;
|
|
451
|
-
sortKey?: number | undefined;
|
|
452
|
-
}, {
|
|
453
|
-
filterId: string;
|
|
454
|
-
_id?: string | undefined;
|
|
455
|
-
meta?: Record<string, unknown> | undefined;
|
|
456
|
-
tags?: string[] | undefined;
|
|
457
|
-
sortKey?: number | undefined;
|
|
458
|
-
}>, "many">>;
|
|
459
|
-
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
_id: string;
|
|
461
|
-
children?: {
|
|
462
|
-
assortmentId: string;
|
|
463
|
-
_id?: string | undefined;
|
|
464
|
-
meta?: Record<string, unknown> | undefined;
|
|
465
|
-
tags?: string[] | undefined;
|
|
466
|
-
sortKey?: number | undefined;
|
|
467
|
-
}[] | undefined;
|
|
468
|
-
filters?: {
|
|
469
|
-
filterId: string;
|
|
470
|
-
_id?: string | undefined;
|
|
471
|
-
meta?: Record<string, unknown> | undefined;
|
|
472
|
-
tags?: string[] | undefined;
|
|
473
|
-
sortKey?: number | undefined;
|
|
474
|
-
}[] | undefined;
|
|
475
|
-
products?: {
|
|
476
|
-
productId: string;
|
|
477
|
-
_id?: string | undefined;
|
|
478
|
-
meta?: Record<string, any> | undefined;
|
|
479
|
-
tags?: string[] | undefined;
|
|
480
|
-
sortKey?: number | undefined;
|
|
481
|
-
}[] | undefined;
|
|
482
|
-
media?: {
|
|
483
|
-
asset: {
|
|
484
|
-
url: string;
|
|
485
|
-
fileName: string;
|
|
486
|
-
_id?: string | undefined;
|
|
487
|
-
meta?: Record<string, unknown> | undefined;
|
|
488
|
-
headers?: Record<string, string> | undefined;
|
|
489
|
-
};
|
|
490
|
-
_id?: string | undefined;
|
|
491
|
-
tags?: string[] | undefined;
|
|
492
|
-
sortKey?: number | undefined;
|
|
493
|
-
content?: Record<string, {
|
|
494
|
-
title?: string | undefined;
|
|
495
|
-
subtitle?: string | undefined;
|
|
496
|
-
}> | undefined;
|
|
497
|
-
}[] | undefined;
|
|
498
|
-
specification?: {
|
|
499
|
-
isActive?: boolean | undefined;
|
|
500
|
-
isBase?: boolean | undefined;
|
|
501
|
-
isRoot?: boolean | undefined;
|
|
502
|
-
meta?: Record<string, unknown> | undefined;
|
|
503
|
-
sequence?: number | undefined;
|
|
504
|
-
tags?: string[] | undefined;
|
|
505
|
-
content?: Record<string, {
|
|
506
|
-
title?: string | undefined;
|
|
507
|
-
subtitle?: string | undefined;
|
|
508
|
-
slug?: string | undefined;
|
|
509
|
-
}> | undefined;
|
|
510
|
-
} | undefined;
|
|
511
|
-
}, {
|
|
512
|
-
_id: string;
|
|
513
|
-
children?: {
|
|
514
|
-
assortmentId: string;
|
|
515
|
-
_id?: string | undefined;
|
|
516
|
-
meta?: Record<string, unknown> | undefined;
|
|
517
|
-
tags?: string[] | undefined;
|
|
518
|
-
sortKey?: number | undefined;
|
|
519
|
-
}[] | undefined;
|
|
520
|
-
filters?: {
|
|
521
|
-
filterId: string;
|
|
522
|
-
_id?: string | undefined;
|
|
523
|
-
meta?: Record<string, unknown> | undefined;
|
|
524
|
-
tags?: string[] | undefined;
|
|
525
|
-
sortKey?: number | undefined;
|
|
526
|
-
}[] | undefined;
|
|
527
|
-
products?: {
|
|
528
|
-
productId: string;
|
|
529
|
-
_id?: string | undefined;
|
|
530
|
-
meta?: Record<string, any> | undefined;
|
|
531
|
-
tags?: string[] | undefined;
|
|
532
|
-
sortKey?: number | undefined;
|
|
533
|
-
}[] | undefined;
|
|
534
|
-
media?: {
|
|
535
|
-
asset: {
|
|
536
|
-
url: string;
|
|
537
|
-
fileName: string;
|
|
538
|
-
_id?: string | undefined;
|
|
539
|
-
meta?: Record<string, unknown> | undefined;
|
|
540
|
-
headers?: Record<string, string> | undefined;
|
|
541
|
-
};
|
|
542
|
-
_id?: string | undefined;
|
|
543
|
-
tags?: string[] | undefined;
|
|
544
|
-
sortKey?: number | undefined;
|
|
545
|
-
content?: Record<string, {
|
|
546
|
-
title?: string | undefined;
|
|
547
|
-
subtitle?: string | undefined;
|
|
548
|
-
}> | undefined;
|
|
549
|
-
}[] | undefined;
|
|
550
|
-
specification?: {
|
|
551
|
-
isActive?: boolean | undefined;
|
|
552
|
-
isBase?: boolean | undefined;
|
|
553
|
-
isRoot?: boolean | undefined;
|
|
554
|
-
meta?: Record<string, unknown> | undefined;
|
|
555
|
-
sequence?: number | undefined;
|
|
556
|
-
tags?: string[] | undefined;
|
|
557
|
-
content?: Record<string, {
|
|
558
|
-
title?: string | undefined;
|
|
559
|
-
subtitle?: string | undefined;
|
|
560
|
-
slug?: string | undefined;
|
|
561
|
-
}> | undefined;
|
|
562
|
-
} | undefined;
|
|
563
|
-
}>;
|
|
121
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
122
|
+
}, z.core.$strip>>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
564
124
|
}
|
|
565
125
|
export default updateAssortment;
|
|
566
126
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BxC,CAAC;AAEH,iBAA8B,gBAAgB,CAC5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EACtD,EAAE,MAAM,EAAE,4BAA4B,EAAE,+BAA+B,EAAE;;;;CAAA,EACzE,YAAY,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE;;;;;GAyFvD;kBA5F6B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAhB,gBAAgB"}
|
|
@@ -14,7 +14,7 @@ export const AssortmentUpdatePayloadSchema = z.object({
|
|
|
14
14
|
isRoot: z.boolean().optional(),
|
|
15
15
|
sequence: z.number().optional(),
|
|
16
16
|
tags: z.array(z.string()).optional(),
|
|
17
|
-
meta: z.record(z.
|
|
17
|
+
meta: z.record(z.any(), z.any()).optional(),
|
|
18
18
|
content: z
|
|
19
19
|
.record(z.string(), // locale
|
|
20
20
|
z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,wBAAwB,EAAE,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,wBAAwB,EAAE,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,uBAAuB,EAAE,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,WAAW,EAAE,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,sBAAsB,MAAM,oCAAoC,CAAC;AACxE,OAAO,gBAAmD,MAAM,aAAa,CAAC;AAI9E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,CAAC;SACb,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,CAAC,CAAC,OAAO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Y,EAAE,GAAG;SAClB,EACD,YAAY,CACb,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC;QACrD,MAAM,wBAAwB,CAC5B;YACE,QAAQ,EAAE,QAAQ,IAAI,EAAE;YACxB,YAAY,EAAE,GAAG;SAClB,EACD,YAAY,CACb,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,uBAAuB,CAC3B;YACE,OAAO,EAAE,OAAO,IAAI,EAAE;YACtB,YAAY,EAAE,GAAG;SAClB,EACD,YAAY,CACb,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAC/C,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;IAC7E,CAAC;IAED,OAAO;QACL,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,QAAQ;QACnB,GAAG;QACH,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,aAAa,GAAG,6BAA6B,CAAC"}
|
|
@@ -3,22 +3,10 @@ import { Modules } from '../../../modules.js';
|
|
|
3
3
|
export declare const AssortmentLinkSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodOptional<z.ZodString>;
|
|
5
5
|
assortmentId: z.ZodString;
|
|
6
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
6
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
7
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
9
|
-
},
|
|
10
|
-
assortmentId: string;
|
|
11
|
-
_id?: string | undefined;
|
|
12
|
-
meta?: Record<string, unknown> | undefined;
|
|
13
|
-
tags?: string[] | undefined;
|
|
14
|
-
sortKey?: number | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
assortmentId: string;
|
|
17
|
-
_id?: string | undefined;
|
|
18
|
-
meta?: Record<string, unknown> | undefined;
|
|
19
|
-
tags?: string[] | undefined;
|
|
20
|
-
sortKey?: number | undefined;
|
|
21
|
-
}>;
|
|
8
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
22
10
|
declare const _default: ({ children, assortmentId: parentAssortmentId, }: {
|
|
23
11
|
children: z.infer<typeof AssortmentLinkSchema>[];
|
|
24
12
|
assortmentId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsertAssortmentChildren.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"upsertAssortmentChildren.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;yBAgCD,iDAGG;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,EAAE,CAAC;IACjD,YAAY,EAAE,MAAM,CAAC;CACtB,EACD,cAAc;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;AARpC,wBAmCE"}
|
|
@@ -5,7 +5,7 @@ export const AssortmentLinkSchema = z.object({
|
|
|
5
5
|
assortmentId: z.string(),
|
|
6
6
|
tags: z.array(z.string()).optional(),
|
|
7
7
|
sortKey: z.number().optional(),
|
|
8
|
-
meta: z.record(z.
|
|
8
|
+
meta: z.record(z.any(), z.any()).optional(),
|
|
9
9
|
});
|
|
10
10
|
const upsert = async (assortmentLink, { modules }) => {
|
|
11
11
|
if (!(await modules.assortments.assortmentExists({
|