@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +48 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +80 -0
- package/build/cjs/schemas.js +126 -0
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +48 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +80 -0
- package/build/es/schemas.mjs +126 -0
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +19 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +80 -0
- package/build/internal/cjs/schemas.js +126 -0
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +19 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +80 -0
- package/build/internal/es/schemas.mjs +126 -0
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.d.ts
CHANGED
|
@@ -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>>;
|
package/build/cjs/schemas.js
CHANGED
|
@@ -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)."
|
|
@@ -1826,6 +1889,69 @@ var QuerySubscriptionContractsResponse = z.object({
|
|
|
1826
1889
|
priceUndetermined: z.boolean().describe(
|
|
1827
1890
|
"Whether the price is not yet defined, and will be updated after the order is created.\n\nDefault: `false`"
|
|
1828
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(),
|
|
1829
1955
|
extendedFields: z.object({
|
|
1830
1956
|
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1831
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)."
|