@wix/auto_sdk_ecom_subscription-contracts 1.0.119 → 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 +48 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +47 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +80 -0
  8. package/build/cjs/schemas.js +126 -0
  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 +48 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +47 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +80 -0
  17. package/build/es/schemas.mjs +126 -0
  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 +19 -9
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +47 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +80 -0
  26. package/build/internal/cjs/schemas.js +126 -0
  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 +19 -9
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +47 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +80 -0
  35. package/build/internal/es/schemas.mjs +126 -0
  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>>;
@@ -1163,6 +1203,46 @@ declare const QuerySubscriptionContractsResponse: z.ZodObject<{
1163
1203
  }>;
1164
1204
  }, z.core.$strip>]>>>;
1165
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>]>>>;
1166
1246
  extendedFields: z.ZodOptional<z.ZodObject<{
1167
1247
  namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
1168
1248
  }, z.core.$strip>>;
@@ -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)."
@@ -1787,6 +1850,69 @@ var QuerySubscriptionContractsResponse = z.object({
1787
1850
  priceUndetermined: z.boolean().describe(
1788
1851
  "Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
1789
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(),
1790
1916
  extendedFields: z.object({
1791
1917
  namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1792
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)."