@wix/auto_sdk_ecom_subscription-contracts 1.0.118 → 1.0.120

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +50 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +49 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +98 -0
  8. package/build/cjs/schemas.js +152 -2
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +50 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +49 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +98 -0
  17. package/build/es/schemas.mjs +152 -2
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +20 -13
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +49 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +98 -0
  26. package/build/internal/cjs/schemas.js +152 -2
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +20 -13
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +49 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +98 -0
  35. package/build/internal/es/schemas.mjs +152 -2
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -232,6 +232,46 @@ declare const GetSubscriptionContractResponse: z.ZodObject<{
232
232
  }>;
233
233
  }, z.core.$strip>]>>>;
234
234
  priceUndetermined: z.ZodOptional<z.ZodBoolean>;
235
+ fixedQuantity: z.ZodOptional<z.ZodBoolean>;
236
+ decimalQuantity: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
237
+ value: z.ZodOptional<z.ZodString>;
238
+ description: z.ZodOptional<z.ZodObject<{
239
+ original: z.ZodOptional<z.ZodString>;
240
+ translated: z.ZodNullable<z.ZodOptional<z.ZodString>>;
241
+ }, z.core.$strip>>;
242
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
243
+ measurementUnit: z.ZodOptional<z.ZodNever>;
244
+ otherUnit: z.ZodOptional<z.ZodNever>;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ otherUnit: z.ZodOptional<z.ZodNever>;
247
+ measurementUnit: z.ZodEnum<{
248
+ KG: "KG";
249
+ LB: "LB";
250
+ MM: "MM";
251
+ CM: "CM";
252
+ M: "M";
253
+ IN: "IN";
254
+ FT: "FT";
255
+ YD: "YD";
256
+ UNSPECIFIED: "UNSPECIFIED";
257
+ ML: "ML";
258
+ CL: "CL";
259
+ L: "L";
260
+ CBM: "CBM";
261
+ MG: "MG";
262
+ G: "G";
263
+ SQM: "SQM";
264
+ OZ: "OZ";
265
+ FLOZ: "FLOZ";
266
+ PT: "PT";
267
+ QT: "QT";
268
+ GAL: "GAL";
269
+ SQFT: "SQFT";
270
+ }>;
271
+ }, z.core.$strip>, z.ZodObject<{
272
+ measurementUnit: z.ZodOptional<z.ZodNever>;
273
+ otherUnit: z.ZodString;
274
+ }, z.core.$strip>]>>>;
235
275
  extendedFields: z.ZodOptional<z.ZodObject<{
236
276
  namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
237
277
  }, z.core.$strip>>;
@@ -706,6 +746,15 @@ declare const GetSubscriptionContractResponse: z.ZodObject<{
706
746
  MANUAL: "MANUAL";
707
747
  PLATFORM: "PLATFORM";
708
748
  }>>;
749
+ taxableAddress: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
750
+ addressType: z.ZodOptional<z.ZodNever>;
751
+ }, z.core.$strip>, z.ZodObject<{
752
+ addressType: z.ZodEnum<{
753
+ BUSINESS: "BUSINESS";
754
+ BILLING: "BILLING";
755
+ SHIPPING: "SHIPPING";
756
+ }>;
757
+ }, z.core.$strip>]>>>;
709
758
  }, z.core.$strip>>>;
710
759
  activities: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
711
760
  _id: z.ZodOptional<z.ZodString>;
@@ -1154,6 +1203,46 @@ declare const QuerySubscriptionContractsResponse: z.ZodObject<{
1154
1203
  }>;
1155
1204
  }, z.core.$strip>]>>>;
1156
1205
  priceUndetermined: z.ZodOptional<z.ZodBoolean>;
1206
+ fixedQuantity: z.ZodOptional<z.ZodBoolean>;
1207
+ decimalQuantity: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
1208
+ value: z.ZodOptional<z.ZodString>;
1209
+ description: z.ZodOptional<z.ZodObject<{
1210
+ original: z.ZodOptional<z.ZodString>;
1211
+ translated: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1212
+ }, z.core.$strip>>;
1213
+ }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
1214
+ measurementUnit: z.ZodOptional<z.ZodNever>;
1215
+ otherUnit: z.ZodOptional<z.ZodNever>;
1216
+ }, z.core.$strip>, z.ZodObject<{
1217
+ otherUnit: z.ZodOptional<z.ZodNever>;
1218
+ measurementUnit: z.ZodEnum<{
1219
+ KG: "KG";
1220
+ LB: "LB";
1221
+ MM: "MM";
1222
+ CM: "CM";
1223
+ M: "M";
1224
+ IN: "IN";
1225
+ FT: "FT";
1226
+ YD: "YD";
1227
+ UNSPECIFIED: "UNSPECIFIED";
1228
+ ML: "ML";
1229
+ CL: "CL";
1230
+ L: "L";
1231
+ CBM: "CBM";
1232
+ MG: "MG";
1233
+ G: "G";
1234
+ SQM: "SQM";
1235
+ OZ: "OZ";
1236
+ FLOZ: "FLOZ";
1237
+ PT: "PT";
1238
+ QT: "QT";
1239
+ GAL: "GAL";
1240
+ SQFT: "SQFT";
1241
+ }>;
1242
+ }, z.core.$strip>, z.ZodObject<{
1243
+ measurementUnit: z.ZodOptional<z.ZodNever>;
1244
+ otherUnit: z.ZodString;
1245
+ }, z.core.$strip>]>>>;
1157
1246
  extendedFields: z.ZodOptional<z.ZodObject<{
1158
1247
  namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1159
1248
  }, z.core.$strip>>;
@@ -1628,6 +1717,15 @@ declare const QuerySubscriptionContractsResponse: z.ZodObject<{
1628
1717
  MANUAL: "MANUAL";
1629
1718
  PLATFORM: "PLATFORM";
1630
1719
  }>>;
1720
+ taxableAddress: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
1721
+ addressType: z.ZodOptional<z.ZodNever>;
1722
+ }, z.core.$strip>, z.ZodObject<{
1723
+ addressType: z.ZodEnum<{
1724
+ BUSINESS: "BUSINESS";
1725
+ BILLING: "BILLING";
1726
+ SHIPPING: "SHIPPING";
1727
+ }>;
1728
+ }, z.core.$strip>]>>>;
1631
1729
  }, z.core.$strip>>>;
1632
1730
  activities: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
1633
1731
  _id: z.ZodOptional<z.ZodString>;
@@ -370,6 +370,69 @@ var GetSubscriptionContractResponse = z.object({
370
370
  priceUndetermined: z.boolean().describe(
371
371
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
372
372
  ).optional(),
373
+ fixedQuantity: z.boolean().describe(
374
+ "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
375
+ ).optional(),
376
+ decimalQuantity: z.intersection(
377
+ z.object({
378
+ value: z.string().describe(
379
+ 'The decimal quantity the buyer / merchant entered.\n\nString-encoded decimal. The exact value is preserved \u2014 no\nrounding, no conversion to an integer.\n\nExamples: "2.75", "1.5", "0.75".'
380
+ ).optional(),
381
+ description: z.object({
382
+ original: z.string().describe(
383
+ "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
384
+ ).min(1).max(200).optional(),
385
+ translated: z.string().describe(
386
+ "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
387
+ ).min(1).max(400).optional().nullable()
388
+ }).describe(
389
+ 'Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".\nAlways set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.'
390
+ ).optional()
391
+ }),
392
+ z.xor([
393
+ z.object({
394
+ measurementUnit: z.never().optional(),
395
+ otherUnit: z.never().optional()
396
+ }),
397
+ z.object({
398
+ otherUnit: z.never().optional(),
399
+ measurementUnit: z.enum([
400
+ "UNSPECIFIED",
401
+ "ML",
402
+ "CL",
403
+ "L",
404
+ "CBM",
405
+ "MG",
406
+ "G",
407
+ "KG",
408
+ "MM",
409
+ "CM",
410
+ "M",
411
+ "SQM",
412
+ "OZ",
413
+ "LB",
414
+ "FLOZ",
415
+ "PT",
416
+ "QT",
417
+ "GAL",
418
+ "IN",
419
+ "FT",
420
+ "YD",
421
+ "SQFT"
422
+ ]).describe(
423
+ "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
424
+ )
425
+ }),
426
+ z.object({
427
+ measurementUnit: z.never().optional(),
428
+ otherUnit: z.string().describe(
429
+ 'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
430
+ ).min(1).max(50)
431
+ })
432
+ ])
433
+ ).describe(
434
+ "Decimal-quantity metadata. Set when the line represents a\nnon-integer purchase (e.g. 2.75 m\xB2 of fake grass).\n\nWhen set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.\nThe decimal value lives in `decimalQuantity.value`."
435
+ ).optional(),
373
436
  extendedFields: z.object({
374
437
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
375
438
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
@@ -1023,7 +1086,18 @@ var GetSubscriptionContractResponse = z.object({
1023
1086
  "Must be a valid GUID"
1024
1087
  ).optional(),
1025
1088
  lineItemIds: z.array(z.string()).optional(),
1026
- source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional()
1089
+ source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1090
+ taxableAddress: z.intersection(
1091
+ z.object({}),
1092
+ z.xor([
1093
+ z.object({ addressType: z.never().optional() }),
1094
+ z.object({
1095
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1096
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1097
+ )
1098
+ })
1099
+ ])
1100
+ ).describe("Address type tax was calculated against for this fee.").optional()
1027
1101
  })
1028
1102
  ).max(100).optional(),
1029
1103
  activities: z.array(
@@ -1776,6 +1850,69 @@ var QuerySubscriptionContractsResponse = z.object({
1776
1850
  priceUndetermined: z.boolean().describe(
1777
1851
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1778
1852
  ).optional(),
1853
+ fixedQuantity: z.boolean().describe(
1854
+ "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1855
+ ).optional(),
1856
+ decimalQuantity: z.intersection(
1857
+ z.object({
1858
+ value: z.string().describe(
1859
+ 'The decimal quantity the buyer / merchant entered.\n\nString-encoded decimal. The exact value is preserved \u2014 no\nrounding, no conversion to an integer.\n\nExamples: "2.75", "1.5", "0.75".'
1860
+ ).optional(),
1861
+ description: z.object({
1862
+ original: z.string().describe(
1863
+ "__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
1864
+ ).min(1).max(200).optional(),
1865
+ translated: z.string().describe(
1866
+ "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1867
+ ).min(1).max(400).optional().nullable()
1868
+ }).describe(
1869
+ 'Human-readable, pre-formatted display string for the quantity. For example, "2.75 square meters of fake grass".\nAlways set alongside `value`; use this directly for display rather than composing your own string from `value` and `unit`.'
1870
+ ).optional()
1871
+ }),
1872
+ z.xor([
1873
+ z.object({
1874
+ measurementUnit: z.never().optional(),
1875
+ otherUnit: z.never().optional()
1876
+ }),
1877
+ z.object({
1878
+ otherUnit: z.never().optional(),
1879
+ measurementUnit: z.enum([
1880
+ "UNSPECIFIED",
1881
+ "ML",
1882
+ "CL",
1883
+ "L",
1884
+ "CBM",
1885
+ "MG",
1886
+ "G",
1887
+ "KG",
1888
+ "MM",
1889
+ "CM",
1890
+ "M",
1891
+ "SQM",
1892
+ "OZ",
1893
+ "LB",
1894
+ "FLOZ",
1895
+ "PT",
1896
+ "QT",
1897
+ "GAL",
1898
+ "IN",
1899
+ "FT",
1900
+ "YD",
1901
+ "SQFT"
1902
+ ]).describe(
1903
+ "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
1904
+ )
1905
+ }),
1906
+ z.object({
1907
+ measurementUnit: z.never().optional(),
1908
+ otherUnit: z.string().describe(
1909
+ 'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
1910
+ ).min(1).max(50)
1911
+ })
1912
+ ])
1913
+ ).describe(
1914
+ "Decimal-quantity metadata. Set when the line represents a\nnon-integer purchase (e.g. 2.75 m\xB2 of fake grass).\n\nWhen set, the line item must have `fixedQuantity` = true and be set with `quantity` = 1.\nThe decimal value lives in `decimalQuantity.value`."
1915
+ ).optional(),
1779
1916
  extendedFields: z.object({
1780
1917
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1781
1918
  "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
@@ -2479,7 +2616,20 @@ var QuerySubscriptionContractsResponse = z.object({
2479
2616
  "MANUAL",
2480
2617
  "SHIPPING",
2481
2618
  "PLATFORM"
2482
- ]).describe("Specifies the entity that added the additional fee.").optional()
2619
+ ]).describe("Specifies the entity that added the additional fee.").optional(),
2620
+ taxableAddress: z.intersection(
2621
+ z.object({}),
2622
+ z.xor([
2623
+ z.object({ addressType: z.never().optional() }),
2624
+ z.object({
2625
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2626
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2627
+ )
2628
+ })
2629
+ ])
2630
+ ).describe(
2631
+ "Address type tax was calculated against for this fee."
2632
+ ).optional()
2483
2633
  })
2484
2634
  ).max(100).optional(),
2485
2635
  activities: z.array(