@wix/auto_sdk_stores_customizations-v-3 1.0.90 → 1.0.92

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 (49) hide show
  1. package/build/cjs/index.d.ts +11 -3
  2. package/build/cjs/index.js +64 -10
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +22 -10
  5. package/build/cjs/index.typings.js +49 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +11 -2
  8. package/build/cjs/meta.js +41 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +9 -1
  11. package/build/cjs/schemas.js +38 -26
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +11 -3
  14. package/build/es/index.mjs +63 -10
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +22 -10
  17. package/build/es/index.typings.mjs +48 -3
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +11 -2
  20. package/build/es/meta.mjs +40 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +9 -1
  23. package/build/es/schemas.mjs +36 -26
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +11 -3
  26. package/build/internal/cjs/index.js +64 -10
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +22 -10
  29. package/build/internal/cjs/index.typings.js +49 -3
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +11 -2
  32. package/build/internal/cjs/meta.js +41 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +9 -1
  35. package/build/internal/cjs/schemas.js +38 -26
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +11 -3
  38. package/build/internal/es/index.mjs +63 -10
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +22 -10
  41. package/build/internal/es/index.typings.mjs +48 -3
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +11 -2
  44. package/build/internal/es/meta.mjs +40 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +9 -1
  47. package/build/internal/es/schemas.mjs +36 -26
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +3 -3
@@ -442,6 +442,14 @@ declare const QueryCustomizationsResponse: z.ZodObject<{
442
442
  hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
443
443
  }, z.core.$strip>>;
444
444
  }, z.core.$strip>;
445
+ declare const CountCustomizationsRequest: z.ZodObject<{
446
+ options: z.ZodOptional<z.ZodObject<{
447
+ filter: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
448
+ }, z.core.$strip>>;
449
+ }, z.core.$strip>;
450
+ declare const CountCustomizationsResponse: z.ZodObject<{
451
+ count: z.ZodOptional<z.ZodNumber>;
452
+ }, z.core.$strip>;
445
453
  declare const BulkCreateCustomizationsRequest: z.ZodObject<{
446
454
  customizations: z.ZodArray<z.ZodIntersection<z.ZodObject<{
447
455
  _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1154,4 +1162,4 @@ declare const BulkUpdateCustomizationsResponse: z.ZodObject<{
1154
1162
  }, z.core.$strip>>;
1155
1163
  }, z.core.$strip>;
1156
1164
 
1157
- export { AddCustomizationChoicesRequest, AddCustomizationChoicesResponse, BulkAddCustomizationChoicesRequest, BulkAddCustomizationChoicesResponse, BulkCreateCustomizationsRequest, BulkCreateCustomizationsResponse, BulkUpdateCustomizationsRequest, BulkUpdateCustomizationsResponse, CreateCustomizationRequest, CreateCustomizationResponse, DeleteCustomizationRequest, DeleteCustomizationResponse, GetCustomizationRequest, GetCustomizationResponse, QueryCustomizationsRequest, QueryCustomizationsResponse, RemoveCustomizationChoicesRequest, RemoveCustomizationChoicesResponse, ReorderCustomizationChoicesRequest, ReorderCustomizationChoicesResponse, SetCustomizationChoicesRequest, SetCustomizationChoicesResponse, UpdateCustomizationChoicesRequest, UpdateCustomizationChoicesResponse, UpdateCustomizationRequest, UpdateCustomizationResponse };
1165
+ export { AddCustomizationChoicesRequest, AddCustomizationChoicesResponse, BulkAddCustomizationChoicesRequest, BulkAddCustomizationChoicesResponse, BulkCreateCustomizationsRequest, BulkCreateCustomizationsResponse, BulkUpdateCustomizationsRequest, BulkUpdateCustomizationsResponse, CountCustomizationsRequest, CountCustomizationsResponse, CreateCustomizationRequest, CreateCustomizationResponse, DeleteCustomizationRequest, DeleteCustomizationResponse, GetCustomizationRequest, GetCustomizationResponse, QueryCustomizationsRequest, QueryCustomizationsResponse, RemoveCustomizationChoicesRequest, RemoveCustomizationChoicesResponse, ReorderCustomizationChoicesRequest, ReorderCustomizationChoicesResponse, SetCustomizationChoicesRequest, SetCustomizationChoicesResponse, UpdateCustomizationChoicesRequest, UpdateCustomizationChoicesResponse, UpdateCustomizationRequest, UpdateCustomizationResponse };
@@ -1,6 +1,6 @@
1
1
  // src/stores-catalog-v3-customization-customizations-v-3.schemas.ts
2
2
  import * as z from "zod";
3
- var CreateCustomizationRequest = z.object({
3
+ var CreateCustomizationRequest = /* @__PURE__ */ z.object({
4
4
  customization: z.intersection(
5
5
  z.object({
6
6
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -84,7 +84,7 @@ var CreateCustomizationRequest = z.object({
84
84
  ])
85
85
  ).describe("Customization to create.")
86
86
  });
87
- var CreateCustomizationResponse = z.intersection(
87
+ var CreateCustomizationResponse = /* @__PURE__ */ z.intersection(
88
88
  z.object({
89
89
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
90
90
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
@@ -168,7 +168,7 @@ var CreateCustomizationResponse = z.intersection(
168
168
  })
169
169
  ])
170
170
  );
171
- var GetCustomizationRequest = z.object({
171
+ var GetCustomizationRequest = /* @__PURE__ */ z.object({
172
172
  customizationId: z.string().describe("Customization ID.").regex(
173
173
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
174
174
  "Must be a valid GUID"
@@ -177,7 +177,7 @@ var GetCustomizationRequest = z.object({
177
177
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
178
178
  }).optional()
179
179
  });
180
- var GetCustomizationResponse = z.intersection(
180
+ var GetCustomizationResponse = /* @__PURE__ */ z.intersection(
181
181
  z.object({
182
182
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
183
183
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
@@ -261,7 +261,7 @@ var GetCustomizationResponse = z.intersection(
261
261
  })
262
262
  ])
263
263
  );
264
- var UpdateCustomizationRequest = z.object({
264
+ var UpdateCustomizationRequest = /* @__PURE__ */ z.object({
265
265
  _id: z.string().describe("Customization ID.").min(1).max(36),
266
266
  customization: z.intersection(
267
267
  z.object({
@@ -349,7 +349,7 @@ var UpdateCustomizationRequest = z.object({
349
349
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
350
350
  }).optional()
351
351
  });
352
- var UpdateCustomizationResponse = z.intersection(
352
+ var UpdateCustomizationResponse = /* @__PURE__ */ z.intersection(
353
353
  z.object({
354
354
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
355
355
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
@@ -433,14 +433,14 @@ var UpdateCustomizationResponse = z.intersection(
433
433
  })
434
434
  ])
435
435
  );
436
- var DeleteCustomizationRequest = z.object({
436
+ var DeleteCustomizationRequest = /* @__PURE__ */ z.object({
437
437
  customizationId: z.string().describe("Customization ID.").regex(
438
438
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
439
439
  "Must be a valid GUID"
440
440
  )
441
441
  });
442
- var DeleteCustomizationResponse = z.object({});
443
- var QueryCustomizationsRequest = z.object({
442
+ var DeleteCustomizationResponse = /* @__PURE__ */ z.object({});
443
+ var QueryCustomizationsRequest = /* @__PURE__ */ z.object({
444
444
  query: z.object({
445
445
  filter: z.object({
446
446
  _id: z.object({
@@ -542,7 +542,7 @@ var QueryCustomizationsRequest = z.object({
542
542
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
543
543
  }).optional()
544
544
  });
545
- var QueryCustomizationsResponse = z.object({
545
+ var QueryCustomizationsResponse = /* @__PURE__ */ z.object({
546
546
  customizations: z.array(
547
547
  z.intersection(
548
548
  z.object({
@@ -648,7 +648,15 @@ var QueryCustomizationsResponse = z.object({
648
648
  ).optional().nullable()
649
649
  }).describe("Details on the paged set of results returned.").optional()
650
650
  });
651
- var BulkCreateCustomizationsRequest = z.object({
651
+ var CountCustomizationsRequest = /* @__PURE__ */ z.object({
652
+ options: z.object({
653
+ filter: z.record(z.string(), z.any()).describe("Filter object. See API Query Language for more information.").optional().nullable()
654
+ }).optional()
655
+ });
656
+ var CountCustomizationsResponse = /* @__PURE__ */ z.object({
657
+ count: z.number().int().describe("Number of customizations that match the filter.").optional()
658
+ });
659
+ var BulkCreateCustomizationsRequest = /* @__PURE__ */ z.object({
652
660
  customizations: z.array(
653
661
  z.intersection(
654
662
  z.object({
@@ -739,7 +747,7 @@ var BulkCreateCustomizationsRequest = z.object({
739
747
  ).optional()
740
748
  }).optional()
741
749
  });
742
- var BulkCreateCustomizationsResponse = z.object({
750
+ var BulkCreateCustomizationsResponse = /* @__PURE__ */ z.object({
743
751
  results: z.array(
744
752
  z.object({
745
753
  itemMetadata: z.object({
@@ -856,7 +864,7 @@ var BulkCreateCustomizationsResponse = z.object({
856
864
  ).optional()
857
865
  }).describe("Bulk action metadata.").optional()
858
866
  });
859
- var AddCustomizationChoicesRequest = z.object({
867
+ var AddCustomizationChoicesRequest = /* @__PURE__ */ z.object({
860
868
  customizationId: z.string().describe("Customization ID.").regex(
861
869
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
862
870
  "Must be a valid GUID"
@@ -895,7 +903,7 @@ var AddCustomizationChoicesRequest = z.object({
895
903
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
896
904
  }).optional()
897
905
  });
898
- var AddCustomizationChoicesResponse = z.object({
906
+ var AddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
899
907
  customization: z.intersection(
900
908
  z.object({
901
909
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -983,7 +991,7 @@ var AddCustomizationChoicesResponse = z.object({
983
991
  ])
984
992
  ).describe("Updated customization.").optional()
985
993
  });
986
- var SetCustomizationChoicesRequest = z.object({
994
+ var SetCustomizationChoicesRequest = /* @__PURE__ */ z.object({
987
995
  customizationId: z.string().describe("Customization ID.").regex(
988
996
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
989
997
  "Must be a valid GUID"
@@ -1022,7 +1030,7 @@ var SetCustomizationChoicesRequest = z.object({
1022
1030
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1023
1031
  }).optional()
1024
1032
  });
1025
- var SetCustomizationChoicesResponse = z.object({
1033
+ var SetCustomizationChoicesResponse = /* @__PURE__ */ z.object({
1026
1034
  customization: z.intersection(
1027
1035
  z.object({
1028
1036
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -1110,7 +1118,7 @@ var SetCustomizationChoicesResponse = z.object({
1110
1118
  ])
1111
1119
  ).describe("Updated customization.").optional()
1112
1120
  });
1113
- var RemoveCustomizationChoicesRequest = z.object({
1121
+ var RemoveCustomizationChoicesRequest = /* @__PURE__ */ z.object({
1114
1122
  customizationId: z.string().describe("Customization ID.").regex(
1115
1123
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1116
1124
  "Must be a valid GUID"
@@ -1121,7 +1129,7 @@ var RemoveCustomizationChoicesRequest = z.object({
1121
1129
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1122
1130
  }).optional()
1123
1131
  });
1124
- var RemoveCustomizationChoicesResponse = z.object({
1132
+ var RemoveCustomizationChoicesResponse = /* @__PURE__ */ z.object({
1125
1133
  customization: z.intersection(
1126
1134
  z.object({
1127
1135
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -1209,7 +1217,7 @@ var RemoveCustomizationChoicesResponse = z.object({
1209
1217
  ])
1210
1218
  ).describe("Updated customization.").optional()
1211
1219
  });
1212
- var UpdateCustomizationChoicesRequest = z.object({
1220
+ var UpdateCustomizationChoicesRequest = /* @__PURE__ */ z.object({
1213
1221
  customizationId: z.string().describe("Customization ID.").regex(
1214
1222
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1215
1223
  "Must be a valid GUID"
@@ -1253,7 +1261,7 @@ var UpdateCustomizationChoicesRequest = z.object({
1253
1261
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1254
1262
  })
1255
1263
  });
1256
- var UpdateCustomizationChoicesResponse = z.object({
1264
+ var UpdateCustomizationChoicesResponse = /* @__PURE__ */ z.object({
1257
1265
  customization: z.intersection(
1258
1266
  z.object({
1259
1267
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -1341,7 +1349,7 @@ var UpdateCustomizationChoicesResponse = z.object({
1341
1349
  ])
1342
1350
  ).describe("Updated customization.").optional()
1343
1351
  });
1344
- var ReorderCustomizationChoicesRequest = z.object({
1352
+ var ReorderCustomizationChoicesRequest = /* @__PURE__ */ z.object({
1345
1353
  customizationId: z.string().describe("Customization ID.").regex(
1346
1354
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
1347
1355
  "Must be a valid GUID"
@@ -1354,7 +1362,7 @@ var ReorderCustomizationChoicesRequest = z.object({
1354
1362
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1355
1363
  })
1356
1364
  });
1357
- var ReorderCustomizationChoicesResponse = z.object({
1365
+ var ReorderCustomizationChoicesResponse = /* @__PURE__ */ z.object({
1358
1366
  customization: z.intersection(
1359
1367
  z.object({
1360
1368
  _id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
@@ -1444,7 +1452,7 @@ var ReorderCustomizationChoicesResponse = z.object({
1444
1452
  "Updated customization, with `choices` in the new order and `choicesSettings.sortOrder` set to `MANUAL`."
1445
1453
  ).optional()
1446
1454
  });
1447
- var BulkAddCustomizationChoicesRequest = z.object({
1455
+ var BulkAddCustomizationChoicesRequest = /* @__PURE__ */ z.object({
1448
1456
  customizationsChoices: z.array(
1449
1457
  z.object({
1450
1458
  customizationId: z.string().describe("Customization ID.").min(1).max(36),
@@ -1487,7 +1495,7 @@ var BulkAddCustomizationChoicesRequest = z.object({
1487
1495
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1488
1496
  }).optional()
1489
1497
  });
1490
- var BulkAddCustomizationChoicesResponse = z.object({
1498
+ var BulkAddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
1491
1499
  results: z.array(
1492
1500
  z.object({
1493
1501
  itemMetadata: z.object({
@@ -1604,7 +1612,7 @@ var BulkAddCustomizationChoicesResponse = z.object({
1604
1612
  ).optional()
1605
1613
  }).describe("Bulk action metadata.").optional()
1606
1614
  });
1607
- var BulkUpdateCustomizationsRequest = z.object({
1615
+ var BulkUpdateCustomizationsRequest = /* @__PURE__ */ z.object({
1608
1616
  customizations: z.array(
1609
1617
  z.object({
1610
1618
  customization: z.intersection(
@@ -1698,7 +1706,7 @@ var BulkUpdateCustomizationsRequest = z.object({
1698
1706
  fields: z.array(z.enum(["ASSIGNED_PRODUCTS_COUNT", "CHOICE_DISPLAY_IMAGE"])).max(100).optional()
1699
1707
  }).optional()
1700
1708
  });
1701
- var BulkUpdateCustomizationsResponse = z.object({
1709
+ var BulkUpdateCustomizationsResponse = /* @__PURE__ */ z.object({
1702
1710
  results: z.array(
1703
1711
  z.object({
1704
1712
  itemMetadata: z.object({
@@ -1824,6 +1832,8 @@ export {
1824
1832
  BulkCreateCustomizationsResponse,
1825
1833
  BulkUpdateCustomizationsRequest,
1826
1834
  BulkUpdateCustomizationsResponse,
1835
+ CountCustomizationsRequest,
1836
+ CountCustomizationsResponse,
1827
1837
  CreateCustomizationRequest,
1828
1838
  CreateCustomizationResponse,
1829
1839
  DeleteCustomizationRequest,