@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>;
@@ -409,6 +409,69 @@ var GetSubscriptionContractResponse = z.object({
409
409
  priceUndetermined: z.boolean().describe(
410
410
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
411
411
  ).optional(),
412
+ fixedQuantity: z.boolean().describe(
413
+ "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
414
+ ).optional(),
415
+ decimalQuantity: z.intersection(
416
+ z.object({
417
+ value: z.string().describe(
418
+ '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".'
419
+ ).optional(),
420
+ description: z.object({
421
+ original: z.string().describe(
422
+ "__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."
423
+ ).min(1).max(200).optional(),
424
+ translated: z.string().describe(
425
+ "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
426
+ ).min(1).max(400).optional().nullable()
427
+ }).describe(
428
+ '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`.'
429
+ ).optional()
430
+ }),
431
+ z.xor([
432
+ z.object({
433
+ measurementUnit: z.never().optional(),
434
+ otherUnit: z.never().optional()
435
+ }),
436
+ z.object({
437
+ otherUnit: z.never().optional(),
438
+ measurementUnit: z.enum([
439
+ "UNSPECIFIED",
440
+ "ML",
441
+ "CL",
442
+ "L",
443
+ "CBM",
444
+ "MG",
445
+ "G",
446
+ "KG",
447
+ "MM",
448
+ "CM",
449
+ "M",
450
+ "SQM",
451
+ "OZ",
452
+ "LB",
453
+ "FLOZ",
454
+ "PT",
455
+ "QT",
456
+ "GAL",
457
+ "IN",
458
+ "FT",
459
+ "YD",
460
+ "SQFT"
461
+ ]).describe(
462
+ "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
463
+ )
464
+ }),
465
+ z.object({
466
+ measurementUnit: z.never().optional(),
467
+ otherUnit: z.string().describe(
468
+ 'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
469
+ ).min(1).max(50)
470
+ })
471
+ ])
472
+ ).describe(
473
+ "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`."
474
+ ).optional(),
412
475
  extendedFields: z.object({
413
476
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
414
477
  "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)."
@@ -1062,7 +1125,18 @@ var GetSubscriptionContractResponse = z.object({
1062
1125
  "Must be a valid GUID"
1063
1126
  ).optional(),
1064
1127
  lineItemIds: z.array(z.string()).optional(),
1065
- source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional()
1128
+ source: z.enum(["SERVICE_PLUGIN", "ITEM", "MANUAL", "SHIPPING", "PLATFORM"]).describe("Specifies the entity that added the additional fee.").optional(),
1129
+ taxableAddress: z.intersection(
1130
+ z.object({}),
1131
+ z.xor([
1132
+ z.object({ addressType: z.never().optional() }),
1133
+ z.object({
1134
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
1135
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
1136
+ )
1137
+ })
1138
+ ])
1139
+ ).describe("Address type tax was calculated against for this fee.").optional()
1066
1140
  })
1067
1141
  ).max(100).optional(),
1068
1142
  activities: z.array(
@@ -1815,6 +1889,69 @@ var QuerySubscriptionContractsResponse = z.object({
1815
1889
  priceUndetermined: z.boolean().describe(
1816
1890
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1817
1891
  ).optional(),
1892
+ fixedQuantity: z.boolean().describe(
1893
+ "Whether the line item quantity is fixed and cannot be changed.\n\nDefault: `false`"
1894
+ ).optional(),
1895
+ decimalQuantity: z.intersection(
1896
+ z.object({
1897
+ value: z.string().describe(
1898
+ '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".'
1899
+ ).optional(),
1900
+ description: z.object({
1901
+ original: z.string().describe(
1902
+ "__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."
1903
+ ).min(1).max(200).optional(),
1904
+ translated: z.string().describe(
1905
+ "String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
1906
+ ).min(1).max(400).optional().nullable()
1907
+ }).describe(
1908
+ '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`.'
1909
+ ).optional()
1910
+ }),
1911
+ z.xor([
1912
+ z.object({
1913
+ measurementUnit: z.never().optional(),
1914
+ otherUnit: z.never().optional()
1915
+ }),
1916
+ z.object({
1917
+ otherUnit: z.never().optional(),
1918
+ measurementUnit: z.enum([
1919
+ "UNSPECIFIED",
1920
+ "ML",
1921
+ "CL",
1922
+ "L",
1923
+ "CBM",
1924
+ "MG",
1925
+ "G",
1926
+ "KG",
1927
+ "MM",
1928
+ "CM",
1929
+ "M",
1930
+ "SQM",
1931
+ "OZ",
1932
+ "LB",
1933
+ "FLOZ",
1934
+ "PT",
1935
+ "QT",
1936
+ "GAL",
1937
+ "IN",
1938
+ "FT",
1939
+ "YD",
1940
+ "SQFT"
1941
+ ]).describe(
1942
+ "Unit the value is expressed in, selected from the standard `measurementUnit` enum."
1943
+ )
1944
+ }),
1945
+ z.object({
1946
+ measurementUnit: z.never().optional(),
1947
+ otherUnit: z.string().describe(
1948
+ 'Free-form unit name for standard units not in the\n`measurementUnit` enum (e.g. "hour", "minute", "session").'
1949
+ ).min(1).max(50)
1950
+ })
1951
+ ])
1952
+ ).describe(
1953
+ "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`."
1954
+ ).optional(),
1818
1955
  extendedFields: z.object({
1819
1956
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1820
1957
  "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)."
@@ -2518,7 +2655,20 @@ var QuerySubscriptionContractsResponse = z.object({
2518
2655
  "MANUAL",
2519
2656
  "SHIPPING",
2520
2657
  "PLATFORM"
2521
- ]).describe("Specifies the entity that added the additional fee.").optional()
2658
+ ]).describe("Specifies the entity that added the additional fee.").optional(),
2659
+ taxableAddress: z.intersection(
2660
+ z.object({}),
2661
+ z.xor([
2662
+ z.object({ addressType: z.never().optional() }),
2663
+ z.object({
2664
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
2665
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
2666
+ )
2667
+ })
2668
+ ])
2669
+ ).describe(
2670
+ "Address type tax was calculated against for this fee."
2671
+ ).optional()
2522
2672
  })
2523
2673
  ).max(100).optional(),
2524
2674
  activities: z.array(