@unchainedshop/core 4.3.3 → 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.
Files changed (89) hide show
  1. package/lib/bulk-importer/createBulkImporter.d.ts +1 -1
  2. package/lib/bulk-importer/createBulkImporter.d.ts.map +1 -1
  3. package/lib/bulk-importer/handlers/assortment/create.d.ts +40 -480
  4. package/lib/bulk-importer/handlers/assortment/create.d.ts.map +1 -1
  5. package/lib/bulk-importer/handlers/assortment/create.js +1 -1
  6. package/lib/bulk-importer/handlers/assortment/create.js.map +1 -1
  7. package/lib/bulk-importer/handlers/assortment/remove.d.ts +2 -10
  8. package/lib/bulk-importer/handlers/assortment/remove.d.ts.map +1 -1
  9. package/lib/bulk-importer/handlers/assortment/update.d.ts +40 -480
  10. package/lib/bulk-importer/handlers/assortment/update.d.ts.map +1 -1
  11. package/lib/bulk-importer/handlers/assortment/update.js +1 -1
  12. package/lib/bulk-importer/handlers/assortment/update.js.map +1 -1
  13. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +3 -15
  14. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts.map +1 -1
  15. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +1 -1
  16. package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js.map +1 -1
  17. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +3 -15
  18. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts.map +1 -1
  19. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +1 -1
  20. package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js.map +1 -1
  21. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +3 -15
  22. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts.map +1 -1
  23. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +1 -1
  24. package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js.map +1 -1
  25. package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +6 -54
  26. package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts.map +1 -1
  27. package/lib/bulk-importer/handlers/filter/create.d.ts +7 -107
  28. package/lib/bulk-importer/handlers/filter/create.d.ts.map +1 -1
  29. package/lib/bulk-importer/handlers/filter/create.js +1 -1
  30. package/lib/bulk-importer/handlers/filter/create.js.map +1 -1
  31. package/lib/bulk-importer/handlers/filter/remove.d.ts +1 -5
  32. package/lib/bulk-importer/handlers/filter/remove.d.ts.map +1 -1
  33. package/lib/bulk-importer/handlers/filter/update.d.ts +7 -107
  34. package/lib/bulk-importer/handlers/filter/update.d.ts.map +1 -1
  35. package/lib/bulk-importer/handlers/filter/update.js +1 -1
  36. package/lib/bulk-importer/handlers/filter/update.js.map +1 -1
  37. package/lib/bulk-importer/handlers/product/create.d.ts +61 -1155
  38. package/lib/bulk-importer/handlers/product/create.d.ts.map +1 -1
  39. package/lib/bulk-importer/handlers/product/create.js +2 -2
  40. package/lib/bulk-importer/handlers/product/create.js.map +1 -1
  41. package/lib/bulk-importer/handlers/product/remove.d.ts +2 -10
  42. package/lib/bulk-importer/handlers/product/remove.d.ts.map +1 -1
  43. package/lib/bulk-importer/handlers/product/update.d.ts +61 -1155
  44. package/lib/bulk-importer/handlers/product/update.d.ts.map +1 -1
  45. package/lib/bulk-importer/handlers/product/update.js +2 -2
  46. package/lib/bulk-importer/handlers/product/update.js.map +1 -1
  47. package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +6 -54
  48. package/lib/bulk-importer/handlers/product/upsertMedia.d.ts.map +1 -1
  49. package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +4 -58
  50. package/lib/bulk-importer/handlers/product/upsertVariations.d.ts.map +1 -1
  51. package/lib/bulk-importer/upsertAsset.d.ts +3 -15
  52. package/lib/bulk-importer/upsertAsset.d.ts.map +1 -1
  53. package/lib/bulk-importer/upsertAsset.js +2 -2
  54. package/lib/bulk-importer/upsertAsset.js.map +1 -1
  55. package/lib/directors/BasePricingSheet.d.ts.map +1 -1
  56. package/lib/directors/BasePricingSheet.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/bulk-importer/createBulkImporter.ts +1 -1
  59. package/src/bulk-importer/handlers/assortment/create.ts +1 -1
  60. package/src/bulk-importer/handlers/assortment/update.ts +1 -1
  61. package/src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts +1 -1
  62. package/src/bulk-importer/handlers/assortment/upsertAssortmentFilters.ts +1 -1
  63. package/src/bulk-importer/handlers/assortment/upsertAssortmentProducts.ts +1 -1
  64. package/src/bulk-importer/handlers/filter/create.ts +1 -1
  65. package/src/bulk-importer/handlers/filter/update.ts +1 -1
  66. package/src/bulk-importer/handlers/product/create.ts +2 -2
  67. package/src/bulk-importer/handlers/product/update.ts +2 -2
  68. package/src/bulk-importer/upsertAsset.ts +2 -2
  69. package/src/directors/BasePricingSheet.ts +3 -2
  70. package/lib/factory/registerPhysicalWarehouse copy.d.ts +0 -10
  71. package/lib/factory/registerPhysicalWarehouse copy.d.ts.map +0 -1
  72. package/lib/factory/registerPhysicalWarehouse copy.js +0 -54
  73. package/lib/factory/registerPhysicalWarehouse copy.js.map +0 -1
  74. package/lib/factory/registerPhysicalWarehouse.d.ts +0 -10
  75. package/lib/factory/registerPhysicalWarehouse.d.ts.map +0 -1
  76. package/lib/factory/registerPhysicalWarehouse.js +0 -54
  77. package/lib/factory/registerPhysicalWarehouse.js.map +0 -1
  78. package/lib/factory/registerVirtualWarehouse.d.ts +0 -11
  79. package/lib/factory/registerVirtualWarehouse.d.ts.map +0 -1
  80. package/lib/factory/registerVirtualWarehouse.js +0 -51
  81. package/lib/factory/registerVirtualWarehouse.js.map +0 -1
  82. package/lib/factory/registerWarehouse.d.ts +0 -7
  83. package/lib/factory/registerWarehouse.d.ts.map +0 -1
  84. package/lib/factory/registerWarehouse.js +0 -35
  85. package/lib/factory/registerWarehouse.js.map +0 -1
  86. package/lib/factory/registerWorker copy.d.ts +0 -7
  87. package/lib/factory/registerWorker copy.d.ts.map +0 -1
  88. package/lib/factory/registerWorker copy.js +0 -35
  89. package/lib/factory/registerWorker copy.js.map +0 -1
@@ -6,7 +6,7 @@ export declare const ProductUpdateSpecificationSchema: z.ZodObject<{
6
6
  sequence: z.ZodOptional<z.ZodNumber>;
7
7
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
8
  published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  commerce: z.ZodOptional<z.ZodObject<{
11
11
  pricing: z.ZodArray<z.ZodObject<{
12
12
  amount: z.ZodNumber;
@@ -15,95 +15,27 @@ export declare const ProductUpdateSpecificationSchema: z.ZodObject<{
15
15
  isNetPrice: z.ZodOptional<z.ZodBoolean>;
16
16
  currencyCode: z.ZodString;
17
17
  countryCode: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- countryCode: string;
20
- currencyCode: string;
21
- amount: number;
22
- isTaxable?: boolean | undefined;
23
- isNetPrice?: boolean | undefined;
24
- maxQuantity?: number | undefined;
25
- }, {
26
- countryCode: string;
27
- currencyCode: string;
28
- amount: number;
29
- isTaxable?: boolean | undefined;
30
- isNetPrice?: boolean | undefined;
31
- maxQuantity?: number | undefined;
32
- }>, "many">;
33
- }, "strip", z.ZodTypeAny, {
34
- pricing: {
35
- countryCode: string;
36
- currencyCode: string;
37
- amount: number;
38
- isTaxable?: boolean | undefined;
39
- isNetPrice?: boolean | undefined;
40
- maxQuantity?: number | undefined;
41
- }[];
42
- }, {
43
- pricing: {
44
- countryCode: string;
45
- currencyCode: string;
46
- amount: number;
47
- isTaxable?: boolean | undefined;
48
- isNetPrice?: boolean | undefined;
49
- maxQuantity?: number | undefined;
50
- }[];
51
- }>>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>>;
52
20
  warehousing: z.ZodOptional<z.ZodObject<{
53
21
  sku: z.ZodOptional<z.ZodString>;
54
22
  baseUnit: z.ZodOptional<z.ZodString>;
55
- }, "strip", z.ZodTypeAny, {
56
- sku?: string | undefined;
57
- baseUnit?: string | undefined;
58
- }, {
59
- sku?: string | undefined;
60
- baseUnit?: string | undefined;
61
- }>>;
23
+ }, z.core.$strip>>;
62
24
  supply: z.ZodOptional<z.ZodObject<{
63
25
  weightInGram: z.ZodOptional<z.ZodNumber>;
64
26
  heightInMillimeters: z.ZodOptional<z.ZodNumber>;
65
27
  lengthInMillimeters: z.ZodOptional<z.ZodNumber>;
66
28
  widthInMillimeters: z.ZodOptional<z.ZodNumber>;
67
- }, "strip", z.ZodTypeAny, {
68
- weightInGram?: number | undefined;
69
- heightInMillimeters?: number | undefined;
70
- lengthInMillimeters?: number | undefined;
71
- widthInMillimeters?: number | undefined;
72
- }, {
73
- weightInGram?: number | undefined;
74
- heightInMillimeters?: number | undefined;
75
- lengthInMillimeters?: number | undefined;
76
- widthInMillimeters?: number | undefined;
77
- }>>;
29
+ }, z.core.$strip>>;
78
30
  bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
31
  productId: z.ZodString;
80
32
  quantity: z.ZodNumber;
81
33
  configuration: z.ZodArray<z.ZodObject<{
82
34
  key: z.ZodString;
83
35
  value: z.ZodString;
84
- }, "strip", z.ZodTypeAny, {
85
- key: string;
86
- value: string;
87
- }, {
88
- key: string;
89
- value: string;
90
- }>, "many">;
91
- }, "strip", z.ZodTypeAny, {
92
- productId: string;
93
- configuration: {
94
- key: string;
95
- value: string;
96
- }[];
97
- quantity: number;
98
- }, {
99
- productId: string;
100
- configuration: {
101
- key: string;
102
- value: string;
103
- }[];
104
- quantity: number;
105
- }>, "many">>;
106
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>>>;
38
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
107
39
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
108
40
  title: z.ZodOptional<z.ZodString>;
109
41
  subtitle: z.ZodOptional<z.ZodString>;
@@ -111,131 +43,13 @@ export declare const ProductUpdateSpecificationSchema: z.ZodObject<{
111
43
  description: z.ZodOptional<z.ZodString>;
112
44
  brand: z.ZodOptional<z.ZodString>;
113
45
  vendor: z.ZodOptional<z.ZodString>;
114
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
- }, "strip", z.ZodTypeAny, {
116
- title?: string | undefined;
117
- subtitle?: string | undefined;
118
- description?: string | undefined;
119
- slug?: string | undefined;
120
- brand?: string | undefined;
121
- vendor?: string | undefined;
122
- labels?: string[] | undefined;
123
- }, {
124
- title?: string | undefined;
125
- subtitle?: string | undefined;
126
- description?: string | undefined;
127
- slug?: string | undefined;
128
- brand?: string | undefined;
129
- vendor?: string | undefined;
130
- labels?: string[] | undefined;
131
- }>>>;
46
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ }, z.core.$strip>>>;
132
48
  variationResolvers: z.ZodOptional<z.ZodArray<z.ZodObject<{
133
- vector: z.ZodRecord<z.ZodString, z.ZodString>;
49
+ vector: z.ZodRecord<z.ZodString, z.ZodAny>;
134
50
  productId: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- productId: string;
137
- vector: Record<string, string>;
138
- }, {
139
- productId: string;
140
- vector: Record<string, string>;
141
- }>, "many">>;
142
- }, "strip", z.ZodTypeAny, {
143
- meta?: Record<string, unknown> | undefined;
144
- sequence?: number | undefined;
145
- tags?: string[] | undefined;
146
- type?: string | undefined;
147
- status?: string | null | undefined;
148
- bundleItems?: {
149
- productId: string;
150
- configuration: {
151
- key: string;
152
- value: string;
153
- }[];
154
- quantity: number;
155
- }[] | undefined;
156
- commerce?: {
157
- pricing: {
158
- countryCode: string;
159
- currencyCode: string;
160
- amount: number;
161
- isTaxable?: boolean | undefined;
162
- isNetPrice?: boolean | undefined;
163
- maxQuantity?: number | undefined;
164
- }[];
165
- } | undefined;
166
- published?: string | null | undefined;
167
- supply?: {
168
- weightInGram?: number | undefined;
169
- heightInMillimeters?: number | undefined;
170
- lengthInMillimeters?: number | undefined;
171
- widthInMillimeters?: number | undefined;
172
- } | undefined;
173
- warehousing?: {
174
- sku?: string | undefined;
175
- baseUnit?: string | undefined;
176
- } | undefined;
177
- content?: Record<string, {
178
- title?: string | undefined;
179
- subtitle?: string | undefined;
180
- description?: string | undefined;
181
- slug?: string | undefined;
182
- brand?: string | undefined;
183
- vendor?: string | undefined;
184
- labels?: string[] | undefined;
185
- }> | undefined;
186
- variationResolvers?: {
187
- productId: string;
188
- vector: Record<string, string>;
189
- }[] | undefined;
190
- }, {
191
- meta?: Record<string, unknown> | undefined;
192
- sequence?: number | undefined;
193
- tags?: string[] | undefined;
194
- type?: string | undefined;
195
- status?: string | null | undefined;
196
- bundleItems?: {
197
- productId: string;
198
- configuration: {
199
- key: string;
200
- value: string;
201
- }[];
202
- quantity: number;
203
- }[] | undefined;
204
- commerce?: {
205
- pricing: {
206
- countryCode: string;
207
- currencyCode: string;
208
- amount: number;
209
- isTaxable?: boolean | undefined;
210
- isNetPrice?: boolean | undefined;
211
- maxQuantity?: number | undefined;
212
- }[];
213
- } | undefined;
214
- published?: string | null | undefined;
215
- supply?: {
216
- weightInGram?: number | undefined;
217
- heightInMillimeters?: number | undefined;
218
- lengthInMillimeters?: number | undefined;
219
- widthInMillimeters?: number | undefined;
220
- } | undefined;
221
- warehousing?: {
222
- sku?: string | undefined;
223
- baseUnit?: string | undefined;
224
- } | undefined;
225
- content?: Record<string, {
226
- title?: string | undefined;
227
- subtitle?: string | undefined;
228
- description?: string | undefined;
229
- slug?: string | undefined;
230
- brand?: string | undefined;
231
- vendor?: string | undefined;
232
- labels?: string[] | undefined;
233
- }> | undefined;
234
- variationResolvers?: {
235
- productId: string;
236
- vector: Record<string, string>;
237
- }[] | undefined;
238
- }>;
51
+ }, z.core.$strip>>>;
52
+ }, z.core.$strip>;
239
53
  export declare const ProductUpdatePayloadSchema: z.ZodObject<{
240
54
  _id: z.ZodString;
241
55
  specification: z.ZodOptional<z.ZodObject<{
@@ -243,7 +57,7 @@ export declare const ProductUpdatePayloadSchema: z.ZodObject<{
243
57
  sequence: z.ZodOptional<z.ZodNumber>;
244
58
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
245
59
  published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
247
61
  commerce: z.ZodOptional<z.ZodObject<{
248
62
  pricing: z.ZodArray<z.ZodObject<{
249
63
  amount: z.ZodNumber;
@@ -252,95 +66,27 @@ export declare const ProductUpdatePayloadSchema: z.ZodObject<{
252
66
  isNetPrice: z.ZodOptional<z.ZodBoolean>;
253
67
  currencyCode: z.ZodString;
254
68
  countryCode: z.ZodString;
255
- }, "strip", z.ZodTypeAny, {
256
- countryCode: string;
257
- currencyCode: string;
258
- amount: number;
259
- isTaxable?: boolean | undefined;
260
- isNetPrice?: boolean | undefined;
261
- maxQuantity?: number | undefined;
262
- }, {
263
- countryCode: string;
264
- currencyCode: string;
265
- amount: number;
266
- isTaxable?: boolean | undefined;
267
- isNetPrice?: boolean | undefined;
268
- maxQuantity?: number | undefined;
269
- }>, "many">;
270
- }, "strip", z.ZodTypeAny, {
271
- pricing: {
272
- countryCode: string;
273
- currencyCode: string;
274
- amount: number;
275
- isTaxable?: boolean | undefined;
276
- isNetPrice?: boolean | undefined;
277
- maxQuantity?: number | undefined;
278
- }[];
279
- }, {
280
- pricing: {
281
- countryCode: string;
282
- currencyCode: string;
283
- amount: number;
284
- isTaxable?: boolean | undefined;
285
- isNetPrice?: boolean | undefined;
286
- maxQuantity?: number | undefined;
287
- }[];
288
- }>>;
69
+ }, z.core.$strip>>;
70
+ }, z.core.$strip>>;
289
71
  warehousing: z.ZodOptional<z.ZodObject<{
290
72
  sku: z.ZodOptional<z.ZodString>;
291
73
  baseUnit: z.ZodOptional<z.ZodString>;
292
- }, "strip", z.ZodTypeAny, {
293
- sku?: string | undefined;
294
- baseUnit?: string | undefined;
295
- }, {
296
- sku?: string | undefined;
297
- baseUnit?: string | undefined;
298
- }>>;
74
+ }, z.core.$strip>>;
299
75
  supply: z.ZodOptional<z.ZodObject<{
300
76
  weightInGram: z.ZodOptional<z.ZodNumber>;
301
77
  heightInMillimeters: z.ZodOptional<z.ZodNumber>;
302
78
  lengthInMillimeters: z.ZodOptional<z.ZodNumber>;
303
79
  widthInMillimeters: z.ZodOptional<z.ZodNumber>;
304
- }, "strip", z.ZodTypeAny, {
305
- weightInGram?: number | undefined;
306
- heightInMillimeters?: number | undefined;
307
- lengthInMillimeters?: number | undefined;
308
- widthInMillimeters?: number | undefined;
309
- }, {
310
- weightInGram?: number | undefined;
311
- heightInMillimeters?: number | undefined;
312
- lengthInMillimeters?: number | undefined;
313
- widthInMillimeters?: number | undefined;
314
- }>>;
80
+ }, z.core.$strip>>;
315
81
  bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
316
82
  productId: z.ZodString;
317
83
  quantity: z.ZodNumber;
318
84
  configuration: z.ZodArray<z.ZodObject<{
319
85
  key: z.ZodString;
320
86
  value: z.ZodString;
321
- }, "strip", z.ZodTypeAny, {
322
- key: string;
323
- value: string;
324
- }, {
325
- key: string;
326
- value: string;
327
- }>, "many">;
328
- }, "strip", z.ZodTypeAny, {
329
- productId: string;
330
- configuration: {
331
- key: string;
332
- value: string;
333
- }[];
334
- quantity: number;
335
- }, {
336
- productId: string;
337
- configuration: {
338
- key: string;
339
- value: string;
340
- }[];
341
- quantity: number;
342
- }>, "many">>;
343
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>>>;
89
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
344
90
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
345
91
  title: z.ZodOptional<z.ZodString>;
346
92
  subtitle: z.ZodOptional<z.ZodString>;
@@ -348,195 +94,29 @@ export declare const ProductUpdatePayloadSchema: z.ZodObject<{
348
94
  description: z.ZodOptional<z.ZodString>;
349
95
  brand: z.ZodOptional<z.ZodString>;
350
96
  vendor: z.ZodOptional<z.ZodString>;
351
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
352
- }, "strip", z.ZodTypeAny, {
353
- title?: string | undefined;
354
- subtitle?: string | undefined;
355
- description?: string | undefined;
356
- slug?: string | undefined;
357
- brand?: string | undefined;
358
- vendor?: string | undefined;
359
- labels?: string[] | undefined;
360
- }, {
361
- title?: string | undefined;
362
- subtitle?: string | undefined;
363
- description?: string | undefined;
364
- slug?: string | undefined;
365
- brand?: string | undefined;
366
- vendor?: string | undefined;
367
- labels?: string[] | undefined;
368
- }>>>;
97
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
+ }, z.core.$strip>>>;
369
99
  variationResolvers: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
- vector: z.ZodRecord<z.ZodString, z.ZodString>;
100
+ vector: z.ZodRecord<z.ZodString, z.ZodAny>;
371
101
  productId: z.ZodString;
372
- }, "strip", z.ZodTypeAny, {
373
- productId: string;
374
- vector: Record<string, string>;
375
- }, {
376
- productId: string;
377
- vector: Record<string, string>;
378
- }>, "many">>;
379
- }, "strip", z.ZodTypeAny, {
380
- meta?: Record<string, unknown> | undefined;
381
- sequence?: number | undefined;
382
- tags?: string[] | undefined;
383
- type?: string | undefined;
384
- status?: string | null | undefined;
385
- bundleItems?: {
386
- productId: string;
387
- configuration: {
388
- key: string;
389
- value: string;
390
- }[];
391
- quantity: number;
392
- }[] | undefined;
393
- commerce?: {
394
- pricing: {
395
- countryCode: string;
396
- currencyCode: string;
397
- amount: number;
398
- isTaxable?: boolean | undefined;
399
- isNetPrice?: boolean | undefined;
400
- maxQuantity?: number | undefined;
401
- }[];
402
- } | undefined;
403
- published?: string | null | undefined;
404
- supply?: {
405
- weightInGram?: number | undefined;
406
- heightInMillimeters?: number | undefined;
407
- lengthInMillimeters?: number | undefined;
408
- widthInMillimeters?: number | undefined;
409
- } | undefined;
410
- warehousing?: {
411
- sku?: string | undefined;
412
- baseUnit?: string | undefined;
413
- } | undefined;
414
- content?: Record<string, {
415
- title?: string | undefined;
416
- subtitle?: string | undefined;
417
- description?: string | undefined;
418
- slug?: string | undefined;
419
- brand?: string | undefined;
420
- vendor?: string | undefined;
421
- labels?: string[] | undefined;
422
- }> | undefined;
423
- variationResolvers?: {
424
- productId: string;
425
- vector: Record<string, string>;
426
- }[] | undefined;
427
- }, {
428
- meta?: Record<string, unknown> | undefined;
429
- sequence?: number | undefined;
430
- tags?: string[] | undefined;
431
- type?: string | undefined;
432
- status?: string | null | undefined;
433
- bundleItems?: {
434
- productId: string;
435
- configuration: {
436
- key: string;
437
- value: string;
438
- }[];
439
- quantity: number;
440
- }[] | undefined;
441
- commerce?: {
442
- pricing: {
443
- countryCode: string;
444
- currencyCode: string;
445
- amount: number;
446
- isTaxable?: boolean | undefined;
447
- isNetPrice?: boolean | undefined;
448
- maxQuantity?: number | undefined;
449
- }[];
450
- } | undefined;
451
- published?: string | null | undefined;
452
- supply?: {
453
- weightInGram?: number | undefined;
454
- heightInMillimeters?: number | undefined;
455
- lengthInMillimeters?: number | undefined;
456
- widthInMillimeters?: number | undefined;
457
- } | undefined;
458
- warehousing?: {
459
- sku?: string | undefined;
460
- baseUnit?: string | undefined;
461
- } | undefined;
462
- content?: Record<string, {
463
- title?: string | undefined;
464
- subtitle?: string | undefined;
465
- description?: string | undefined;
466
- slug?: string | undefined;
467
- brand?: string | undefined;
468
- vendor?: string | undefined;
469
- labels?: string[] | undefined;
470
- }> | undefined;
471
- variationResolvers?: {
472
- productId: string;
473
- vector: Record<string, string>;
474
- }[] | undefined;
475
- }>>;
102
+ }, z.core.$strip>>>;
103
+ }, z.core.$strip>>;
476
104
  media: z.ZodOptional<z.ZodArray<z.ZodObject<{
477
105
  _id: z.ZodOptional<z.ZodString>;
478
106
  asset: z.ZodObject<{
479
107
  _id: z.ZodOptional<z.ZodString>;
480
108
  url: z.ZodString;
481
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
482
110
  fileName: z.ZodString;
483
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
484
- }, "strip", z.ZodTypeAny, {
485
- url: string;
486
- fileName: string;
487
- _id?: string | undefined;
488
- meta?: Record<string, unknown> | undefined;
489
- headers?: Record<string, string> | undefined;
490
- }, {
491
- url: string;
492
- fileName: string;
493
- _id?: string | undefined;
494
- meta?: Record<string, unknown> | undefined;
495
- headers?: Record<string, string> | undefined;
496
- }>;
111
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
112
+ }, z.core.$strip>;
497
113
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
498
114
  title: z.ZodOptional<z.ZodString>;
499
115
  subtitle: z.ZodOptional<z.ZodString>;
500
- }, "strip", z.ZodTypeAny, {
501
- title?: string | undefined;
502
- subtitle?: string | undefined;
503
- }, {
504
- title?: string | undefined;
505
- subtitle?: string | undefined;
506
- }>>>;
507
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
116
+ }, z.core.$strip>>>;
117
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
508
118
  sortKey: z.ZodOptional<z.ZodNumber>;
509
- }, "strip", z.ZodTypeAny, {
510
- asset: {
511
- url: string;
512
- fileName: string;
513
- _id?: string | undefined;
514
- meta?: Record<string, unknown> | undefined;
515
- headers?: Record<string, string> | undefined;
516
- };
517
- _id?: string | undefined;
518
- tags?: string[] | undefined;
519
- sortKey?: number | undefined;
520
- content?: Record<string, {
521
- title?: string | undefined;
522
- subtitle?: string | undefined;
523
- }> | undefined;
524
- }, {
525
- asset: {
526
- url: string;
527
- fileName: string;
528
- _id?: string | undefined;
529
- meta?: Record<string, unknown> | undefined;
530
- headers?: Record<string, string> | undefined;
531
- };
532
- _id?: string | undefined;
533
- tags?: string[] | undefined;
534
- sortKey?: number | undefined;
535
- content?: Record<string, {
536
- title?: string | undefined;
537
- subtitle?: string | undefined;
538
- }> | undefined;
539
- }>, "many">>;
119
+ }, z.core.$strip>>>;
540
120
  variations: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
121
  _id: z.ZodOptional<z.ZodString>;
542
122
  key: z.ZodString;
@@ -546,234 +126,14 @@ export declare const ProductUpdatePayloadSchema: z.ZodObject<{
546
126
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
547
127
  title: z.ZodOptional<z.ZodString>;
548
128
  subtitle: z.ZodOptional<z.ZodString>;
549
- }, "strip", z.ZodTypeAny, {
550
- title?: string | undefined;
551
- subtitle?: string | undefined;
552
- }, {
553
- title?: string | undefined;
554
- subtitle?: string | undefined;
555
- }>>>;
556
- }, "strip", z.ZodTypeAny, {
557
- value: string;
558
- content?: Record<string, {
559
- title?: string | undefined;
560
- subtitle?: string | undefined;
561
- }> | undefined;
562
- }, {
563
- value: string;
564
- content?: Record<string, {
565
- title?: string | undefined;
566
- subtitle?: string | undefined;
567
- }> | undefined;
568
- }>, "many">;
129
+ }, z.core.$strip>>>;
130
+ }, z.core.$strip>>;
569
131
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
570
132
  title: z.ZodOptional<z.ZodString>;
571
133
  subtitle: z.ZodOptional<z.ZodString>;
572
- }, "strip", z.ZodTypeAny, {
573
- title?: string | undefined;
574
- subtitle?: string | undefined;
575
- }, {
576
- title?: string | undefined;
577
- subtitle?: string | undefined;
578
- }>>>;
579
- }, "strip", z.ZodTypeAny, {
580
- key: string;
581
- type: string;
582
- options: {
583
- value: string;
584
- content?: Record<string, {
585
- title?: string | undefined;
586
- subtitle?: string | undefined;
587
- }> | undefined;
588
- }[];
589
- _id?: string | undefined;
590
- content?: Record<string, {
591
- title?: string | undefined;
592
- subtitle?: string | undefined;
593
- }> | undefined;
594
- }, {
595
- key: string;
596
- type: string;
597
- options: {
598
- value: string;
599
- content?: Record<string, {
600
- title?: string | undefined;
601
- subtitle?: string | undefined;
602
- }> | undefined;
603
- }[];
604
- _id?: string | undefined;
605
- content?: Record<string, {
606
- title?: string | undefined;
607
- subtitle?: string | undefined;
608
- }> | undefined;
609
- }>, "many">>;
610
- }, "strip", z.ZodTypeAny, {
611
- _id: string;
612
- media?: {
613
- asset: {
614
- url: string;
615
- fileName: string;
616
- _id?: string | undefined;
617
- meta?: Record<string, unknown> | undefined;
618
- headers?: Record<string, string> | undefined;
619
- };
620
- _id?: string | undefined;
621
- tags?: string[] | undefined;
622
- sortKey?: number | undefined;
623
- content?: Record<string, {
624
- title?: string | undefined;
625
- subtitle?: string | undefined;
626
- }> | undefined;
627
- }[] | undefined;
628
- specification?: {
629
- meta?: Record<string, unknown> | undefined;
630
- sequence?: number | undefined;
631
- tags?: string[] | undefined;
632
- type?: string | undefined;
633
- status?: string | null | undefined;
634
- bundleItems?: {
635
- productId: string;
636
- configuration: {
637
- key: string;
638
- value: string;
639
- }[];
640
- quantity: number;
641
- }[] | undefined;
642
- commerce?: {
643
- pricing: {
644
- countryCode: string;
645
- currencyCode: string;
646
- amount: number;
647
- isTaxable?: boolean | undefined;
648
- isNetPrice?: boolean | undefined;
649
- maxQuantity?: number | undefined;
650
- }[];
651
- } | undefined;
652
- published?: string | null | undefined;
653
- supply?: {
654
- weightInGram?: number | undefined;
655
- heightInMillimeters?: number | undefined;
656
- lengthInMillimeters?: number | undefined;
657
- widthInMillimeters?: number | undefined;
658
- } | undefined;
659
- warehousing?: {
660
- sku?: string | undefined;
661
- baseUnit?: string | undefined;
662
- } | undefined;
663
- content?: Record<string, {
664
- title?: string | undefined;
665
- subtitle?: string | undefined;
666
- description?: string | undefined;
667
- slug?: string | undefined;
668
- brand?: string | undefined;
669
- vendor?: string | undefined;
670
- labels?: string[] | undefined;
671
- }> | undefined;
672
- variationResolvers?: {
673
- productId: string;
674
- vector: Record<string, string>;
675
- }[] | undefined;
676
- } | undefined;
677
- variations?: {
678
- key: string;
679
- type: string;
680
- options: {
681
- value: string;
682
- content?: Record<string, {
683
- title?: string | undefined;
684
- subtitle?: string | undefined;
685
- }> | undefined;
686
- }[];
687
- _id?: string | undefined;
688
- content?: Record<string, {
689
- title?: string | undefined;
690
- subtitle?: string | undefined;
691
- }> | undefined;
692
- }[] | undefined;
693
- }, {
694
- _id: string;
695
- media?: {
696
- asset: {
697
- url: string;
698
- fileName: string;
699
- _id?: string | undefined;
700
- meta?: Record<string, unknown> | undefined;
701
- headers?: Record<string, string> | undefined;
702
- };
703
- _id?: string | undefined;
704
- tags?: string[] | undefined;
705
- sortKey?: number | undefined;
706
- content?: Record<string, {
707
- title?: string | undefined;
708
- subtitle?: string | undefined;
709
- }> | undefined;
710
- }[] | undefined;
711
- specification?: {
712
- meta?: Record<string, unknown> | undefined;
713
- sequence?: number | undefined;
714
- tags?: string[] | undefined;
715
- type?: string | undefined;
716
- status?: string | null | undefined;
717
- bundleItems?: {
718
- productId: string;
719
- configuration: {
720
- key: string;
721
- value: string;
722
- }[];
723
- quantity: number;
724
- }[] | undefined;
725
- commerce?: {
726
- pricing: {
727
- countryCode: string;
728
- currencyCode: string;
729
- amount: number;
730
- isTaxable?: boolean | undefined;
731
- isNetPrice?: boolean | undefined;
732
- maxQuantity?: number | undefined;
733
- }[];
734
- } | undefined;
735
- published?: string | null | undefined;
736
- supply?: {
737
- weightInGram?: number | undefined;
738
- heightInMillimeters?: number | undefined;
739
- lengthInMillimeters?: number | undefined;
740
- widthInMillimeters?: number | undefined;
741
- } | undefined;
742
- warehousing?: {
743
- sku?: string | undefined;
744
- baseUnit?: string | undefined;
745
- } | undefined;
746
- content?: Record<string, {
747
- title?: string | undefined;
748
- subtitle?: string | undefined;
749
- description?: string | undefined;
750
- slug?: string | undefined;
751
- brand?: string | undefined;
752
- vendor?: string | undefined;
753
- labels?: string[] | undefined;
754
- }> | undefined;
755
- variationResolvers?: {
756
- productId: string;
757
- vector: Record<string, string>;
758
- }[] | undefined;
759
- } | undefined;
760
- variations?: {
761
- key: string;
762
- type: string;
763
- options: {
764
- value: string;
765
- content?: Record<string, {
766
- title?: string | undefined;
767
- subtitle?: string | undefined;
768
- }> | undefined;
769
- }[];
770
- _id?: string | undefined;
771
- content?: Record<string, {
772
- title?: string | undefined;
773
- subtitle?: string | undefined;
774
- }> | undefined;
775
- }[] | undefined;
776
- }>;
134
+ }, z.core.$strip>>>;
135
+ }, z.core.$strip>>>;
136
+ }, z.core.$strip>;
777
137
  declare function updateProduct(payload: z.infer<typeof ProductUpdatePayloadSchema>, { logger, updateShouldUpsertIfIDNotExists }: {
778
138
  logger: any;
779
139
  updateShouldUpsertIfIDNotExists: any;
@@ -794,7 +154,7 @@ declare namespace updateProduct {
794
154
  sequence: z.ZodOptional<z.ZodNumber>;
795
155
  status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
796
156
  published: z.ZodNullable<z.ZodOptional<z.ZodString>>;
797
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
157
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
798
158
  commerce: z.ZodOptional<z.ZodObject<{
799
159
  pricing: z.ZodArray<z.ZodObject<{
800
160
  amount: z.ZodNumber;
@@ -803,95 +163,27 @@ declare namespace updateProduct {
803
163
  isNetPrice: z.ZodOptional<z.ZodBoolean>;
804
164
  currencyCode: z.ZodString;
805
165
  countryCode: z.ZodString;
806
- }, "strip", z.ZodTypeAny, {
807
- countryCode: string;
808
- currencyCode: string;
809
- amount: number;
810
- isTaxable?: boolean | undefined;
811
- isNetPrice?: boolean | undefined;
812
- maxQuantity?: number | undefined;
813
- }, {
814
- countryCode: string;
815
- currencyCode: string;
816
- amount: number;
817
- isTaxable?: boolean | undefined;
818
- isNetPrice?: boolean | undefined;
819
- maxQuantity?: number | undefined;
820
- }>, "many">;
821
- }, "strip", z.ZodTypeAny, {
822
- pricing: {
823
- countryCode: string;
824
- currencyCode: string;
825
- amount: number;
826
- isTaxable?: boolean | undefined;
827
- isNetPrice?: boolean | undefined;
828
- maxQuantity?: number | undefined;
829
- }[];
830
- }, {
831
- pricing: {
832
- countryCode: string;
833
- currencyCode: string;
834
- amount: number;
835
- isTaxable?: boolean | undefined;
836
- isNetPrice?: boolean | undefined;
837
- maxQuantity?: number | undefined;
838
- }[];
839
- }>>;
166
+ }, z.core.$strip>>;
167
+ }, z.core.$strip>>;
840
168
  warehousing: z.ZodOptional<z.ZodObject<{
841
169
  sku: z.ZodOptional<z.ZodString>;
842
170
  baseUnit: z.ZodOptional<z.ZodString>;
843
- }, "strip", z.ZodTypeAny, {
844
- sku?: string | undefined;
845
- baseUnit?: string | undefined;
846
- }, {
847
- sku?: string | undefined;
848
- baseUnit?: string | undefined;
849
- }>>;
171
+ }, z.core.$strip>>;
850
172
  supply: z.ZodOptional<z.ZodObject<{
851
173
  weightInGram: z.ZodOptional<z.ZodNumber>;
852
174
  heightInMillimeters: z.ZodOptional<z.ZodNumber>;
853
175
  lengthInMillimeters: z.ZodOptional<z.ZodNumber>;
854
176
  widthInMillimeters: z.ZodOptional<z.ZodNumber>;
855
- }, "strip", z.ZodTypeAny, {
856
- weightInGram?: number | undefined;
857
- heightInMillimeters?: number | undefined;
858
- lengthInMillimeters?: number | undefined;
859
- widthInMillimeters?: number | undefined;
860
- }, {
861
- weightInGram?: number | undefined;
862
- heightInMillimeters?: number | undefined;
863
- lengthInMillimeters?: number | undefined;
864
- widthInMillimeters?: number | undefined;
865
- }>>;
177
+ }, z.core.$strip>>;
866
178
  bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
867
179
  productId: z.ZodString;
868
180
  quantity: z.ZodNumber;
869
181
  configuration: z.ZodArray<z.ZodObject<{
870
182
  key: z.ZodString;
871
183
  value: z.ZodString;
872
- }, "strip", z.ZodTypeAny, {
873
- key: string;
874
- value: string;
875
- }, {
876
- key: string;
877
- value: string;
878
- }>, "many">;
879
- }, "strip", z.ZodTypeAny, {
880
- productId: string;
881
- configuration: {
882
- key: string;
883
- value: string;
884
- }[];
885
- quantity: number;
886
- }, {
887
- productId: string;
888
- configuration: {
889
- key: string;
890
- value: string;
891
- }[];
892
- quantity: number;
893
- }>, "many">>;
894
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
184
+ }, z.core.$strip>>;
185
+ }, z.core.$strip>>>;
186
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
895
187
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
896
188
  title: z.ZodOptional<z.ZodString>;
897
189
  subtitle: z.ZodOptional<z.ZodString>;
@@ -899,195 +191,29 @@ declare namespace updateProduct {
899
191
  description: z.ZodOptional<z.ZodString>;
900
192
  brand: z.ZodOptional<z.ZodString>;
901
193
  vendor: z.ZodOptional<z.ZodString>;
902
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
- }, "strip", z.ZodTypeAny, {
904
- title?: string | undefined;
905
- subtitle?: string | undefined;
906
- description?: string | undefined;
907
- slug?: string | undefined;
908
- brand?: string | undefined;
909
- vendor?: string | undefined;
910
- labels?: string[] | undefined;
911
- }, {
912
- title?: string | undefined;
913
- subtitle?: string | undefined;
914
- description?: string | undefined;
915
- slug?: string | undefined;
916
- brand?: string | undefined;
917
- vendor?: string | undefined;
918
- labels?: string[] | undefined;
919
- }>>>;
194
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
195
+ }, z.core.$strip>>>;
920
196
  variationResolvers: z.ZodOptional<z.ZodArray<z.ZodObject<{
921
- vector: z.ZodRecord<z.ZodString, z.ZodString>;
197
+ vector: z.ZodRecord<z.ZodString, z.ZodAny>;
922
198
  productId: z.ZodString;
923
- }, "strip", z.ZodTypeAny, {
924
- productId: string;
925
- vector: Record<string, string>;
926
- }, {
927
- productId: string;
928
- vector: Record<string, string>;
929
- }>, "many">>;
930
- }, "strip", z.ZodTypeAny, {
931
- meta?: Record<string, unknown> | undefined;
932
- sequence?: number | undefined;
933
- tags?: string[] | undefined;
934
- type?: string | undefined;
935
- status?: string | null | undefined;
936
- bundleItems?: {
937
- productId: string;
938
- configuration: {
939
- key: string;
940
- value: string;
941
- }[];
942
- quantity: number;
943
- }[] | undefined;
944
- commerce?: {
945
- pricing: {
946
- countryCode: string;
947
- currencyCode: string;
948
- amount: number;
949
- isTaxable?: boolean | undefined;
950
- isNetPrice?: boolean | undefined;
951
- maxQuantity?: number | undefined;
952
- }[];
953
- } | undefined;
954
- published?: string | null | undefined;
955
- supply?: {
956
- weightInGram?: number | undefined;
957
- heightInMillimeters?: number | undefined;
958
- lengthInMillimeters?: number | undefined;
959
- widthInMillimeters?: number | undefined;
960
- } | undefined;
961
- warehousing?: {
962
- sku?: string | undefined;
963
- baseUnit?: string | undefined;
964
- } | undefined;
965
- content?: Record<string, {
966
- title?: string | undefined;
967
- subtitle?: string | undefined;
968
- description?: string | undefined;
969
- slug?: string | undefined;
970
- brand?: string | undefined;
971
- vendor?: string | undefined;
972
- labels?: string[] | undefined;
973
- }> | undefined;
974
- variationResolvers?: {
975
- productId: string;
976
- vector: Record<string, string>;
977
- }[] | undefined;
978
- }, {
979
- meta?: Record<string, unknown> | undefined;
980
- sequence?: number | undefined;
981
- tags?: string[] | undefined;
982
- type?: string | undefined;
983
- status?: string | null | undefined;
984
- bundleItems?: {
985
- productId: string;
986
- configuration: {
987
- key: string;
988
- value: string;
989
- }[];
990
- quantity: number;
991
- }[] | undefined;
992
- commerce?: {
993
- pricing: {
994
- countryCode: string;
995
- currencyCode: string;
996
- amount: number;
997
- isTaxable?: boolean | undefined;
998
- isNetPrice?: boolean | undefined;
999
- maxQuantity?: number | undefined;
1000
- }[];
1001
- } | undefined;
1002
- published?: string | null | undefined;
1003
- supply?: {
1004
- weightInGram?: number | undefined;
1005
- heightInMillimeters?: number | undefined;
1006
- lengthInMillimeters?: number | undefined;
1007
- widthInMillimeters?: number | undefined;
1008
- } | undefined;
1009
- warehousing?: {
1010
- sku?: string | undefined;
1011
- baseUnit?: string | undefined;
1012
- } | undefined;
1013
- content?: Record<string, {
1014
- title?: string | undefined;
1015
- subtitle?: string | undefined;
1016
- description?: string | undefined;
1017
- slug?: string | undefined;
1018
- brand?: string | undefined;
1019
- vendor?: string | undefined;
1020
- labels?: string[] | undefined;
1021
- }> | undefined;
1022
- variationResolvers?: {
1023
- productId: string;
1024
- vector: Record<string, string>;
1025
- }[] | undefined;
1026
- }>>;
199
+ }, z.core.$strip>>>;
200
+ }, z.core.$strip>>;
1027
201
  media: z.ZodOptional<z.ZodArray<z.ZodObject<{
1028
202
  _id: z.ZodOptional<z.ZodString>;
1029
203
  asset: z.ZodObject<{
1030
204
  _id: z.ZodOptional<z.ZodString>;
1031
205
  url: z.ZodString;
1032
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
1033
207
  fileName: z.ZodString;
1034
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1035
- }, "strip", z.ZodTypeAny, {
1036
- url: string;
1037
- fileName: string;
1038
- _id?: string | undefined;
1039
- meta?: Record<string, unknown> | undefined;
1040
- headers?: Record<string, string> | undefined;
1041
- }, {
1042
- url: string;
1043
- fileName: string;
1044
- _id?: string | undefined;
1045
- meta?: Record<string, unknown> | undefined;
1046
- headers?: Record<string, string> | undefined;
1047
- }>;
208
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
209
+ }, z.core.$strip>;
1048
210
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1049
211
  title: z.ZodOptional<z.ZodString>;
1050
212
  subtitle: z.ZodOptional<z.ZodString>;
1051
- }, "strip", z.ZodTypeAny, {
1052
- title?: string | undefined;
1053
- subtitle?: string | undefined;
1054
- }, {
1055
- title?: string | undefined;
1056
- subtitle?: string | undefined;
1057
- }>>>;
1058
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
+ }, z.core.$strip>>>;
214
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1059
215
  sortKey: z.ZodOptional<z.ZodNumber>;
1060
- }, "strip", z.ZodTypeAny, {
1061
- asset: {
1062
- url: string;
1063
- fileName: string;
1064
- _id?: string | undefined;
1065
- meta?: Record<string, unknown> | undefined;
1066
- headers?: Record<string, string> | undefined;
1067
- };
1068
- _id?: string | undefined;
1069
- tags?: string[] | undefined;
1070
- sortKey?: number | undefined;
1071
- content?: Record<string, {
1072
- title?: string | undefined;
1073
- subtitle?: string | undefined;
1074
- }> | undefined;
1075
- }, {
1076
- asset: {
1077
- url: string;
1078
- fileName: string;
1079
- _id?: string | undefined;
1080
- meta?: Record<string, unknown> | undefined;
1081
- headers?: Record<string, string> | undefined;
1082
- };
1083
- _id?: string | undefined;
1084
- tags?: string[] | undefined;
1085
- sortKey?: number | undefined;
1086
- content?: Record<string, {
1087
- title?: string | undefined;
1088
- subtitle?: string | undefined;
1089
- }> | undefined;
1090
- }>, "many">>;
216
+ }, z.core.$strip>>>;
1091
217
  variations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1092
218
  _id: z.ZodOptional<z.ZodString>;
1093
219
  key: z.ZodString;
@@ -1097,234 +223,14 @@ declare namespace updateProduct {
1097
223
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1098
224
  title: z.ZodOptional<z.ZodString>;
1099
225
  subtitle: z.ZodOptional<z.ZodString>;
1100
- }, "strip", z.ZodTypeAny, {
1101
- title?: string | undefined;
1102
- subtitle?: string | undefined;
1103
- }, {
1104
- title?: string | undefined;
1105
- subtitle?: string | undefined;
1106
- }>>>;
1107
- }, "strip", z.ZodTypeAny, {
1108
- value: string;
1109
- content?: Record<string, {
1110
- title?: string | undefined;
1111
- subtitle?: string | undefined;
1112
- }> | undefined;
1113
- }, {
1114
- value: string;
1115
- content?: Record<string, {
1116
- title?: string | undefined;
1117
- subtitle?: string | undefined;
1118
- }> | undefined;
1119
- }>, "many">;
226
+ }, z.core.$strip>>>;
227
+ }, z.core.$strip>>;
1120
228
  content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1121
229
  title: z.ZodOptional<z.ZodString>;
1122
230
  subtitle: z.ZodOptional<z.ZodString>;
1123
- }, "strip", z.ZodTypeAny, {
1124
- title?: string | undefined;
1125
- subtitle?: string | undefined;
1126
- }, {
1127
- title?: string | undefined;
1128
- subtitle?: string | undefined;
1129
- }>>>;
1130
- }, "strip", z.ZodTypeAny, {
1131
- key: string;
1132
- type: string;
1133
- options: {
1134
- value: string;
1135
- content?: Record<string, {
1136
- title?: string | undefined;
1137
- subtitle?: string | undefined;
1138
- }> | undefined;
1139
- }[];
1140
- _id?: string | undefined;
1141
- content?: Record<string, {
1142
- title?: string | undefined;
1143
- subtitle?: string | undefined;
1144
- }> | undefined;
1145
- }, {
1146
- key: string;
1147
- type: string;
1148
- options: {
1149
- value: string;
1150
- content?: Record<string, {
1151
- title?: string | undefined;
1152
- subtitle?: string | undefined;
1153
- }> | undefined;
1154
- }[];
1155
- _id?: string | undefined;
1156
- content?: Record<string, {
1157
- title?: string | undefined;
1158
- subtitle?: string | undefined;
1159
- }> | undefined;
1160
- }>, "many">>;
1161
- }, "strip", z.ZodTypeAny, {
1162
- _id: string;
1163
- media?: {
1164
- asset: {
1165
- url: string;
1166
- fileName: string;
1167
- _id?: string | undefined;
1168
- meta?: Record<string, unknown> | undefined;
1169
- headers?: Record<string, string> | undefined;
1170
- };
1171
- _id?: string | undefined;
1172
- tags?: string[] | undefined;
1173
- sortKey?: number | undefined;
1174
- content?: Record<string, {
1175
- title?: string | undefined;
1176
- subtitle?: string | undefined;
1177
- }> | undefined;
1178
- }[] | undefined;
1179
- specification?: {
1180
- meta?: Record<string, unknown> | undefined;
1181
- sequence?: number | undefined;
1182
- tags?: string[] | undefined;
1183
- type?: string | undefined;
1184
- status?: string | null | undefined;
1185
- bundleItems?: {
1186
- productId: string;
1187
- configuration: {
1188
- key: string;
1189
- value: string;
1190
- }[];
1191
- quantity: number;
1192
- }[] | undefined;
1193
- commerce?: {
1194
- pricing: {
1195
- countryCode: string;
1196
- currencyCode: string;
1197
- amount: number;
1198
- isTaxable?: boolean | undefined;
1199
- isNetPrice?: boolean | undefined;
1200
- maxQuantity?: number | undefined;
1201
- }[];
1202
- } | undefined;
1203
- published?: string | null | undefined;
1204
- supply?: {
1205
- weightInGram?: number | undefined;
1206
- heightInMillimeters?: number | undefined;
1207
- lengthInMillimeters?: number | undefined;
1208
- widthInMillimeters?: number | undefined;
1209
- } | undefined;
1210
- warehousing?: {
1211
- sku?: string | undefined;
1212
- baseUnit?: string | undefined;
1213
- } | undefined;
1214
- content?: Record<string, {
1215
- title?: string | undefined;
1216
- subtitle?: string | undefined;
1217
- description?: string | undefined;
1218
- slug?: string | undefined;
1219
- brand?: string | undefined;
1220
- vendor?: string | undefined;
1221
- labels?: string[] | undefined;
1222
- }> | undefined;
1223
- variationResolvers?: {
1224
- productId: string;
1225
- vector: Record<string, string>;
1226
- }[] | undefined;
1227
- } | undefined;
1228
- variations?: {
1229
- key: string;
1230
- type: string;
1231
- options: {
1232
- value: string;
1233
- content?: Record<string, {
1234
- title?: string | undefined;
1235
- subtitle?: string | undefined;
1236
- }> | undefined;
1237
- }[];
1238
- _id?: string | undefined;
1239
- content?: Record<string, {
1240
- title?: string | undefined;
1241
- subtitle?: string | undefined;
1242
- }> | undefined;
1243
- }[] | undefined;
1244
- }, {
1245
- _id: string;
1246
- media?: {
1247
- asset: {
1248
- url: string;
1249
- fileName: string;
1250
- _id?: string | undefined;
1251
- meta?: Record<string, unknown> | undefined;
1252
- headers?: Record<string, string> | undefined;
1253
- };
1254
- _id?: string | undefined;
1255
- tags?: string[] | undefined;
1256
- sortKey?: number | undefined;
1257
- content?: Record<string, {
1258
- title?: string | undefined;
1259
- subtitle?: string | undefined;
1260
- }> | undefined;
1261
- }[] | undefined;
1262
- specification?: {
1263
- meta?: Record<string, unknown> | undefined;
1264
- sequence?: number | undefined;
1265
- tags?: string[] | undefined;
1266
- type?: string | undefined;
1267
- status?: string | null | undefined;
1268
- bundleItems?: {
1269
- productId: string;
1270
- configuration: {
1271
- key: string;
1272
- value: string;
1273
- }[];
1274
- quantity: number;
1275
- }[] | undefined;
1276
- commerce?: {
1277
- pricing: {
1278
- countryCode: string;
1279
- currencyCode: string;
1280
- amount: number;
1281
- isTaxable?: boolean | undefined;
1282
- isNetPrice?: boolean | undefined;
1283
- maxQuantity?: number | undefined;
1284
- }[];
1285
- } | undefined;
1286
- published?: string | null | undefined;
1287
- supply?: {
1288
- weightInGram?: number | undefined;
1289
- heightInMillimeters?: number | undefined;
1290
- lengthInMillimeters?: number | undefined;
1291
- widthInMillimeters?: number | undefined;
1292
- } | undefined;
1293
- warehousing?: {
1294
- sku?: string | undefined;
1295
- baseUnit?: string | undefined;
1296
- } | undefined;
1297
- content?: Record<string, {
1298
- title?: string | undefined;
1299
- subtitle?: string | undefined;
1300
- description?: string | undefined;
1301
- slug?: string | undefined;
1302
- brand?: string | undefined;
1303
- vendor?: string | undefined;
1304
- labels?: string[] | undefined;
1305
- }> | undefined;
1306
- variationResolvers?: {
1307
- productId: string;
1308
- vector: Record<string, string>;
1309
- }[] | undefined;
1310
- } | undefined;
1311
- variations?: {
1312
- key: string;
1313
- type: string;
1314
- options: {
1315
- value: string;
1316
- content?: Record<string, {
1317
- title?: string | undefined;
1318
- subtitle?: string | undefined;
1319
- }> | undefined;
1320
- }[];
1321
- _id?: string | undefined;
1322
- content?: Record<string, {
1323
- title?: string | undefined;
1324
- subtitle?: string | undefined;
1325
- }> | undefined;
1326
- }[] | undefined;
1327
- }>;
231
+ }, z.core.$strip>>>;
232
+ }, z.core.$strip>>>;
233
+ }, z.core.$strip>;
1328
234
  }
1329
235
  export default updateProduct;
1330
236
  //# sourceMappingURL=update.d.ts.map