@unchainedshop/core 4.3.4 → 4.3.6

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 (104) 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/upsertMedia.js +1 -1
  50. package/lib/bulk-importer/handlers/product/upsertMedia.js.map +1 -1
  51. package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +4 -58
  52. package/lib/bulk-importer/handlers/product/upsertVariations.d.ts.map +1 -1
  53. package/lib/bulk-importer/upsertAsset.d.ts +4 -16
  54. package/lib/bulk-importer/upsertAsset.d.ts.map +1 -1
  55. package/lib/bulk-importer/upsertAsset.js +7 -5
  56. package/lib/bulk-importer/upsertAsset.js.map +1 -1
  57. package/lib/directors/BasePricingSheet.d.ts.map +1 -1
  58. package/lib/directors/BasePricingSheet.js.map +1 -1
  59. package/lib/directors/FilterDirector.d.ts +2 -2
  60. package/lib/directors/FilterDirector.d.ts.map +1 -1
  61. package/lib/directors/FilterDirector.js +14 -11
  62. package/lib/directors/FilterDirector.js.map +1 -1
  63. package/lib/services/loadFilterOptions.js +1 -1
  64. package/lib/services/loadFilterOptions.js.map +1 -1
  65. package/lib/services/loadFilters.d.ts.map +1 -1
  66. package/lib/services/loadFilters.js +2 -1
  67. package/lib/services/loadFilters.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/bulk-importer/createBulkImporter.ts +1 -1
  70. package/src/bulk-importer/handlers/assortment/create.ts +1 -1
  71. package/src/bulk-importer/handlers/assortment/update.ts +1 -1
  72. package/src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts +1 -1
  73. package/src/bulk-importer/handlers/assortment/upsertAssortmentFilters.ts +1 -1
  74. package/src/bulk-importer/handlers/assortment/upsertAssortmentProducts.ts +1 -1
  75. package/src/bulk-importer/handlers/filter/create.ts +1 -1
  76. package/src/bulk-importer/handlers/filter/update.ts +1 -1
  77. package/src/bulk-importer/handlers/product/create.ts +2 -2
  78. package/src/bulk-importer/handlers/product/update.ts +2 -2
  79. package/src/bulk-importer/handlers/product/upsertMedia.ts +1 -1
  80. package/src/bulk-importer/upsertAsset.ts +8 -5
  81. package/src/directors/BasePricingSheet.ts +3 -2
  82. package/src/directors/FilterDirector.ts +31 -32
  83. package/src/services/loadFilterOptions.ts +1 -1
  84. package/src/services/loadFilters.ts +3 -1
  85. package/lib/factory/registerPhysicalWarehouse copy.d.ts +0 -10
  86. package/lib/factory/registerPhysicalWarehouse copy.d.ts.map +0 -1
  87. package/lib/factory/registerPhysicalWarehouse copy.js +0 -54
  88. package/lib/factory/registerPhysicalWarehouse copy.js.map +0 -1
  89. package/lib/factory/registerPhysicalWarehouse.d.ts +0 -10
  90. package/lib/factory/registerPhysicalWarehouse.d.ts.map +0 -1
  91. package/lib/factory/registerPhysicalWarehouse.js +0 -54
  92. package/lib/factory/registerPhysicalWarehouse.js.map +0 -1
  93. package/lib/factory/registerVirtualWarehouse.d.ts +0 -11
  94. package/lib/factory/registerVirtualWarehouse.d.ts.map +0 -1
  95. package/lib/factory/registerVirtualWarehouse.js +0 -51
  96. package/lib/factory/registerVirtualWarehouse.js.map +0 -1
  97. package/lib/factory/registerWarehouse.d.ts +0 -7
  98. package/lib/factory/registerWarehouse.d.ts.map +0 -1
  99. package/lib/factory/registerWarehouse.js +0 -35
  100. package/lib/factory/registerWarehouse.js.map +0 -1
  101. package/lib/factory/registerWorker copy.d.ts +0 -7
  102. package/lib/factory/registerWorker copy.d.ts.map +0 -1
  103. package/lib/factory/registerWorker copy.js +0 -35
  104. package/lib/factory/registerWorker copy.js.map +0 -1
@@ -6,7 +6,7 @@ export declare const ProductCreateSpecificationSchema: z.ZodObject<{
6
6
  sequence: 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 ProductCreateSpecificationSchema: 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.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 ProductCreateSpecificationSchema: 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
- sequence: number;
144
- type: string;
145
- content: Record<string, {
146
- title?: string | undefined;
147
- subtitle?: string | undefined;
148
- description?: string | undefined;
149
- slug?: string | undefined;
150
- brand?: string | undefined;
151
- vendor?: string | undefined;
152
- labels?: string[] | undefined;
153
- }>;
154
- meta?: Record<string, unknown> | undefined;
155
- tags?: string[] | undefined;
156
- status?: string | null | undefined;
157
- bundleItems?: {
158
- productId: string;
159
- configuration: {
160
- key: string;
161
- value: string;
162
- }[];
163
- quantity: number;
164
- }[] | undefined;
165
- commerce?: {
166
- pricing: {
167
- countryCode: string;
168
- currencyCode: string;
169
- amount: number;
170
- isTaxable?: boolean | undefined;
171
- isNetPrice?: boolean | undefined;
172
- maxQuantity?: number | undefined;
173
- }[];
174
- } | undefined;
175
- published?: string | null | undefined;
176
- supply?: {
177
- weightInGram?: number | undefined;
178
- heightInMillimeters?: number | undefined;
179
- lengthInMillimeters?: number | undefined;
180
- widthInMillimeters?: number | undefined;
181
- } | undefined;
182
- warehousing?: {
183
- sku?: string | undefined;
184
- baseUnit?: string | undefined;
185
- } | undefined;
186
- variationResolvers?: {
187
- productId: string;
188
- vector: Record<string, string>;
189
- }[] | undefined;
190
- }, {
191
- sequence: number;
192
- type: string;
193
- content: Record<string, {
194
- title?: string | undefined;
195
- subtitle?: string | undefined;
196
- description?: string | undefined;
197
- slug?: string | undefined;
198
- brand?: string | undefined;
199
- vendor?: string | undefined;
200
- labels?: string[] | undefined;
201
- }>;
202
- meta?: Record<string, unknown> | undefined;
203
- tags?: string[] | undefined;
204
- status?: string | null | undefined;
205
- bundleItems?: {
206
- productId: string;
207
- configuration: {
208
- key: string;
209
- value: string;
210
- }[];
211
- quantity: number;
212
- }[] | undefined;
213
- commerce?: {
214
- pricing: {
215
- countryCode: string;
216
- currencyCode: string;
217
- amount: number;
218
- isTaxable?: boolean | undefined;
219
- isNetPrice?: boolean | undefined;
220
- maxQuantity?: number | undefined;
221
- }[];
222
- } | undefined;
223
- published?: string | null | undefined;
224
- supply?: {
225
- weightInGram?: number | undefined;
226
- heightInMillimeters?: number | undefined;
227
- lengthInMillimeters?: number | undefined;
228
- widthInMillimeters?: number | undefined;
229
- } | undefined;
230
- warehousing?: {
231
- sku?: string | undefined;
232
- baseUnit?: 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 ProductCreatePayloadSchema: z.ZodObject<{
240
54
  _id: z.ZodString;
241
55
  specification: z.ZodObject<{
@@ -243,7 +57,7 @@ export declare const ProductCreatePayloadSchema: z.ZodObject<{
243
57
  sequence: 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 ProductCreatePayloadSchema: 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.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 ProductCreatePayloadSchema: 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
- sequence: number;
381
- type: string;
382
- content: Record<string, {
383
- title?: string | undefined;
384
- subtitle?: string | undefined;
385
- description?: string | undefined;
386
- slug?: string | undefined;
387
- brand?: string | undefined;
388
- vendor?: string | undefined;
389
- labels?: string[] | undefined;
390
- }>;
391
- meta?: Record<string, unknown> | undefined;
392
- tags?: string[] | undefined;
393
- status?: string | null | undefined;
394
- bundleItems?: {
395
- productId: string;
396
- configuration: {
397
- key: string;
398
- value: string;
399
- }[];
400
- quantity: number;
401
- }[] | undefined;
402
- commerce?: {
403
- pricing: {
404
- countryCode: string;
405
- currencyCode: string;
406
- amount: number;
407
- isTaxable?: boolean | undefined;
408
- isNetPrice?: boolean | undefined;
409
- maxQuantity?: number | undefined;
410
- }[];
411
- } | undefined;
412
- published?: string | null | undefined;
413
- supply?: {
414
- weightInGram?: number | undefined;
415
- heightInMillimeters?: number | undefined;
416
- lengthInMillimeters?: number | undefined;
417
- widthInMillimeters?: number | undefined;
418
- } | undefined;
419
- warehousing?: {
420
- sku?: string | undefined;
421
- baseUnit?: string | undefined;
422
- } | undefined;
423
- variationResolvers?: {
424
- productId: string;
425
- vector: Record<string, string>;
426
- }[] | undefined;
427
- }, {
428
- sequence: number;
429
- type: string;
430
- content: Record<string, {
431
- title?: string | undefined;
432
- subtitle?: string | undefined;
433
- description?: string | undefined;
434
- slug?: string | undefined;
435
- brand?: string | undefined;
436
- vendor?: string | undefined;
437
- labels?: string[] | undefined;
438
- }>;
439
- meta?: Record<string, unknown> | undefined;
440
- tags?: string[] | undefined;
441
- status?: string | null | undefined;
442
- bundleItems?: {
443
- productId: string;
444
- configuration: {
445
- key: string;
446
- value: string;
447
- }[];
448
- quantity: number;
449
- }[] | undefined;
450
- commerce?: {
451
- pricing: {
452
- countryCode: string;
453
- currencyCode: string;
454
- amount: number;
455
- isTaxable?: boolean | undefined;
456
- isNetPrice?: boolean | undefined;
457
- maxQuantity?: number | undefined;
458
- }[];
459
- } | undefined;
460
- published?: string | null | undefined;
461
- supply?: {
462
- weightInGram?: number | undefined;
463
- heightInMillimeters?: number | undefined;
464
- lengthInMillimeters?: number | undefined;
465
- widthInMillimeters?: number | undefined;
466
- } | undefined;
467
- warehousing?: {
468
- sku?: string | undefined;
469
- baseUnit?: 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 ProductCreatePayloadSchema: 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
- specification: {
613
- sequence: number;
614
- type: string;
615
- content: Record<string, {
616
- title?: string | undefined;
617
- subtitle?: string | undefined;
618
- description?: string | undefined;
619
- slug?: string | undefined;
620
- brand?: string | undefined;
621
- vendor?: string | undefined;
622
- labels?: string[] | undefined;
623
- }>;
624
- meta?: Record<string, unknown> | undefined;
625
- tags?: string[] | undefined;
626
- status?: string | null | undefined;
627
- bundleItems?: {
628
- productId: string;
629
- configuration: {
630
- key: string;
631
- value: string;
632
- }[];
633
- quantity: number;
634
- }[] | undefined;
635
- commerce?: {
636
- pricing: {
637
- countryCode: string;
638
- currencyCode: string;
639
- amount: number;
640
- isTaxable?: boolean | undefined;
641
- isNetPrice?: boolean | undefined;
642
- maxQuantity?: number | undefined;
643
- }[];
644
- } | undefined;
645
- published?: string | null | undefined;
646
- supply?: {
647
- weightInGram?: number | undefined;
648
- heightInMillimeters?: number | undefined;
649
- lengthInMillimeters?: number | undefined;
650
- widthInMillimeters?: number | undefined;
651
- } | undefined;
652
- warehousing?: {
653
- sku?: string | undefined;
654
- baseUnit?: string | undefined;
655
- } | undefined;
656
- variationResolvers?: {
657
- productId: string;
658
- vector: Record<string, string>;
659
- }[] | undefined;
660
- };
661
- media?: {
662
- asset: {
663
- url: string;
664
- fileName: string;
665
- _id?: string | undefined;
666
- meta?: Record<string, unknown> | undefined;
667
- headers?: Record<string, string> | undefined;
668
- };
669
- _id?: string | undefined;
670
- tags?: string[] | undefined;
671
- sortKey?: number | undefined;
672
- content?: Record<string, {
673
- title?: string | undefined;
674
- subtitle?: string | undefined;
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
- specification: {
696
- sequence: number;
697
- type: string;
698
- content: Record<string, {
699
- title?: string | undefined;
700
- subtitle?: string | undefined;
701
- description?: string | undefined;
702
- slug?: string | undefined;
703
- brand?: string | undefined;
704
- vendor?: string | undefined;
705
- labels?: string[] | undefined;
706
- }>;
707
- meta?: Record<string, unknown> | undefined;
708
- tags?: string[] | undefined;
709
- status?: string | null | undefined;
710
- bundleItems?: {
711
- productId: string;
712
- configuration: {
713
- key: string;
714
- value: string;
715
- }[];
716
- quantity: number;
717
- }[] | undefined;
718
- commerce?: {
719
- pricing: {
720
- countryCode: string;
721
- currencyCode: string;
722
- amount: number;
723
- isTaxable?: boolean | undefined;
724
- isNetPrice?: boolean | undefined;
725
- maxQuantity?: number | undefined;
726
- }[];
727
- } | undefined;
728
- published?: string | null | undefined;
729
- supply?: {
730
- weightInGram?: number | undefined;
731
- heightInMillimeters?: number | undefined;
732
- lengthInMillimeters?: number | undefined;
733
- widthInMillimeters?: number | undefined;
734
- } | undefined;
735
- warehousing?: {
736
- sku?: string | undefined;
737
- baseUnit?: string | undefined;
738
- } | undefined;
739
- variationResolvers?: {
740
- productId: string;
741
- vector: Record<string, string>;
742
- }[] | undefined;
743
- };
744
- media?: {
745
- asset: {
746
- url: string;
747
- fileName: string;
748
- _id?: string | undefined;
749
- meta?: Record<string, unknown> | undefined;
750
- headers?: Record<string, string> | undefined;
751
- };
752
- _id?: string | undefined;
753
- tags?: string[] | undefined;
754
- sortKey?: number | undefined;
755
- content?: Record<string, {
756
- title?: string | undefined;
757
- subtitle?: string | undefined;
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 createProduct(payload: z.infer<typeof ProductCreatePayloadSchema>, { logger, createShouldUpsertIfIDExists }: {
778
138
  logger: any;
779
139
  createShouldUpsertIfIDExists: any;
@@ -794,7 +154,7 @@ declare namespace createProduct {
794
154
  sequence: 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 createProduct {
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.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 createProduct {
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
- sequence: number;
932
- type: string;
933
- content: Record<string, {
934
- title?: string | undefined;
935
- subtitle?: string | undefined;
936
- description?: string | undefined;
937
- slug?: string | undefined;
938
- brand?: string | undefined;
939
- vendor?: string | undefined;
940
- labels?: string[] | undefined;
941
- }>;
942
- meta?: Record<string, unknown> | undefined;
943
- tags?: string[] | undefined;
944
- status?: string | null | undefined;
945
- bundleItems?: {
946
- productId: string;
947
- configuration: {
948
- key: string;
949
- value: string;
950
- }[];
951
- quantity: number;
952
- }[] | undefined;
953
- commerce?: {
954
- pricing: {
955
- countryCode: string;
956
- currencyCode: string;
957
- amount: number;
958
- isTaxable?: boolean | undefined;
959
- isNetPrice?: boolean | undefined;
960
- maxQuantity?: number | undefined;
961
- }[];
962
- } | undefined;
963
- published?: string | null | undefined;
964
- supply?: {
965
- weightInGram?: number | undefined;
966
- heightInMillimeters?: number | undefined;
967
- lengthInMillimeters?: number | undefined;
968
- widthInMillimeters?: number | undefined;
969
- } | undefined;
970
- warehousing?: {
971
- sku?: string | undefined;
972
- baseUnit?: string | undefined;
973
- } | undefined;
974
- variationResolvers?: {
975
- productId: string;
976
- vector: Record<string, string>;
977
- }[] | undefined;
978
- }, {
979
- sequence: number;
980
- type: string;
981
- content: Record<string, {
982
- title?: string | undefined;
983
- subtitle?: string | undefined;
984
- description?: string | undefined;
985
- slug?: string | undefined;
986
- brand?: string | undefined;
987
- vendor?: string | undefined;
988
- labels?: string[] | undefined;
989
- }>;
990
- meta?: Record<string, unknown> | undefined;
991
- tags?: string[] | undefined;
992
- status?: string | null | undefined;
993
- bundleItems?: {
994
- productId: string;
995
- configuration: {
996
- key: string;
997
- value: string;
998
- }[];
999
- quantity: number;
1000
- }[] | undefined;
1001
- commerce?: {
1002
- pricing: {
1003
- countryCode: string;
1004
- currencyCode: string;
1005
- amount: number;
1006
- isTaxable?: boolean | undefined;
1007
- isNetPrice?: boolean | undefined;
1008
- maxQuantity?: number | undefined;
1009
- }[];
1010
- } | undefined;
1011
- published?: string | null | undefined;
1012
- supply?: {
1013
- weightInGram?: number | undefined;
1014
- heightInMillimeters?: number | undefined;
1015
- lengthInMillimeters?: number | undefined;
1016
- widthInMillimeters?: number | undefined;
1017
- } | undefined;
1018
- warehousing?: {
1019
- sku?: string | undefined;
1020
- baseUnit?: 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 createProduct {
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
- specification: {
1164
- sequence: number;
1165
- type: string;
1166
- content: Record<string, {
1167
- title?: string | undefined;
1168
- subtitle?: string | undefined;
1169
- description?: string | undefined;
1170
- slug?: string | undefined;
1171
- brand?: string | undefined;
1172
- vendor?: string | undefined;
1173
- labels?: string[] | undefined;
1174
- }>;
1175
- meta?: Record<string, unknown> | undefined;
1176
- tags?: string[] | undefined;
1177
- status?: string | null | undefined;
1178
- bundleItems?: {
1179
- productId: string;
1180
- configuration: {
1181
- key: string;
1182
- value: string;
1183
- }[];
1184
- quantity: number;
1185
- }[] | undefined;
1186
- commerce?: {
1187
- pricing: {
1188
- countryCode: string;
1189
- currencyCode: string;
1190
- amount: number;
1191
- isTaxable?: boolean | undefined;
1192
- isNetPrice?: boolean | undefined;
1193
- maxQuantity?: number | undefined;
1194
- }[];
1195
- } | undefined;
1196
- published?: string | null | undefined;
1197
- supply?: {
1198
- weightInGram?: number | undefined;
1199
- heightInMillimeters?: number | undefined;
1200
- lengthInMillimeters?: number | undefined;
1201
- widthInMillimeters?: number | undefined;
1202
- } | undefined;
1203
- warehousing?: {
1204
- sku?: string | undefined;
1205
- baseUnit?: string | undefined;
1206
- } | undefined;
1207
- variationResolvers?: {
1208
- productId: string;
1209
- vector: Record<string, string>;
1210
- }[] | undefined;
1211
- };
1212
- media?: {
1213
- asset: {
1214
- url: string;
1215
- fileName: string;
1216
- _id?: string | undefined;
1217
- meta?: Record<string, unknown> | undefined;
1218
- headers?: Record<string, string> | undefined;
1219
- };
1220
- _id?: string | undefined;
1221
- tags?: string[] | undefined;
1222
- sortKey?: number | undefined;
1223
- content?: Record<string, {
1224
- title?: string | undefined;
1225
- subtitle?: string | undefined;
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
- specification: {
1247
- sequence: number;
1248
- type: string;
1249
- content: Record<string, {
1250
- title?: string | undefined;
1251
- subtitle?: string | undefined;
1252
- description?: string | undefined;
1253
- slug?: string | undefined;
1254
- brand?: string | undefined;
1255
- vendor?: string | undefined;
1256
- labels?: string[] | undefined;
1257
- }>;
1258
- meta?: Record<string, unknown> | undefined;
1259
- tags?: string[] | undefined;
1260
- status?: string | null | undefined;
1261
- bundleItems?: {
1262
- productId: string;
1263
- configuration: {
1264
- key: string;
1265
- value: string;
1266
- }[];
1267
- quantity: number;
1268
- }[] | undefined;
1269
- commerce?: {
1270
- pricing: {
1271
- countryCode: string;
1272
- currencyCode: string;
1273
- amount: number;
1274
- isTaxable?: boolean | undefined;
1275
- isNetPrice?: boolean | undefined;
1276
- maxQuantity?: number | undefined;
1277
- }[];
1278
- } | undefined;
1279
- published?: string | null | undefined;
1280
- supply?: {
1281
- weightInGram?: number | undefined;
1282
- heightInMillimeters?: number | undefined;
1283
- lengthInMillimeters?: number | undefined;
1284
- widthInMillimeters?: number | undefined;
1285
- } | undefined;
1286
- warehousing?: {
1287
- sku?: string | undefined;
1288
- baseUnit?: string | undefined;
1289
- } | undefined;
1290
- variationResolvers?: {
1291
- productId: string;
1292
- vector: Record<string, string>;
1293
- }[] | undefined;
1294
- };
1295
- media?: {
1296
- asset: {
1297
- url: string;
1298
- fileName: string;
1299
- _id?: string | undefined;
1300
- meta?: Record<string, unknown> | undefined;
1301
- headers?: Record<string, string> | undefined;
1302
- };
1303
- _id?: string | undefined;
1304
- tags?: string[] | undefined;
1305
- sortKey?: number | undefined;
1306
- content?: Record<string, {
1307
- title?: string | undefined;
1308
- subtitle?: string | undefined;
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 createProduct;
1330
236
  //# sourceMappingURL=create.d.ts.map