@wix/auto_sdk_ecom_cart 1.0.172 → 1.0.174
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.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +7 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +24 -24
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +6 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +7 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +24 -24
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +6 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +7 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +24 -24
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +6 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +7 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +24 -24
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -57,7 +57,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
57
57
|
|
|
58
58
|
// src/ecom-v1-cart-cart.schemas.ts
|
|
59
59
|
var z = __toESM(require("zod"));
|
|
60
|
-
var CreateCartRequest = z.object({
|
|
60
|
+
var CreateCartRequest = /* @__PURE__ */ z.object({
|
|
61
61
|
options: z.object({
|
|
62
62
|
cartInfo: z.object({
|
|
63
63
|
_id: z.string().describe("Cart ID.").regex(
|
|
@@ -1340,7 +1340,7 @@ var CreateCartRequest = z.object({
|
|
|
1340
1340
|
).max(300).optional()
|
|
1341
1341
|
}).describe("Cart creation options.").optional()
|
|
1342
1342
|
});
|
|
1343
|
-
var CreateCartResponse = z.object({
|
|
1343
|
+
var CreateCartResponse = /* @__PURE__ */ z.object({
|
|
1344
1344
|
_id: z.string().describe("Cart ID.").regex(
|
|
1345
1345
|
/^[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}$/,
|
|
1346
1346
|
"Must be a valid GUID"
|
|
@@ -1931,7 +1931,7 @@ var CreateCartResponse = z.object({
|
|
|
1931
1931
|
"Revision number, which increments by 1 each time the Cart is updated."
|
|
1932
1932
|
).optional().nullable()
|
|
1933
1933
|
});
|
|
1934
|
-
var UpdateCartRequest = z.object({
|
|
1934
|
+
var UpdateCartRequest = /* @__PURE__ */ z.object({
|
|
1935
1935
|
_id: z.string().describe("ID of the cart to be updated.").regex(
|
|
1936
1936
|
/^[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}$/,
|
|
1937
1937
|
"Must be a valid GUID"
|
|
@@ -3216,7 +3216,7 @@ var UpdateCartRequest = z.object({
|
|
|
3216
3216
|
).max(300).optional()
|
|
3217
3217
|
}).describe("Available options to use when updating a cart.").optional()
|
|
3218
3218
|
});
|
|
3219
|
-
var UpdateCartResponse = z.object({
|
|
3219
|
+
var UpdateCartResponse = /* @__PURE__ */ z.object({
|
|
3220
3220
|
_id: z.string().describe("Cart ID.").regex(
|
|
3221
3221
|
/^[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}$/,
|
|
3222
3222
|
"Must be a valid GUID"
|
|
@@ -3807,13 +3807,13 @@ var UpdateCartResponse = z.object({
|
|
|
3807
3807
|
"Revision number, which increments by 1 each time the Cart is updated."
|
|
3808
3808
|
).optional().nullable()
|
|
3809
3809
|
});
|
|
3810
|
-
var GetCartRequest = z.object({
|
|
3810
|
+
var GetCartRequest = /* @__PURE__ */ z.object({
|
|
3811
3811
|
_id: z.string().describe("Cart ID.").regex(
|
|
3812
3812
|
/^[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}$/,
|
|
3813
3813
|
"Must be a valid GUID"
|
|
3814
3814
|
)
|
|
3815
3815
|
});
|
|
3816
|
-
var GetCartResponse = z.object({
|
|
3816
|
+
var GetCartResponse = /* @__PURE__ */ z.object({
|
|
3817
3817
|
_id: z.string().describe("Cart ID.").regex(
|
|
3818
3818
|
/^[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}$/,
|
|
3819
3819
|
"Must be a valid GUID"
|
|
@@ -4404,7 +4404,7 @@ var GetCartResponse = z.object({
|
|
|
4404
4404
|
"Revision number, which increments by 1 each time the Cart is updated."
|
|
4405
4405
|
).optional().nullable()
|
|
4406
4406
|
});
|
|
4407
|
-
var AddToCartRequest = z.object({
|
|
4407
|
+
var AddToCartRequest = /* @__PURE__ */ z.object({
|
|
4408
4408
|
_id: z.string().describe("Cart ID.").regex(
|
|
4409
4409
|
/^[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}$/,
|
|
4410
4410
|
"Must be a valid GUID"
|
|
@@ -5075,7 +5075,7 @@ var AddToCartRequest = z.object({
|
|
|
5075
5075
|
).optional().nullable()
|
|
5076
5076
|
}).describe("Items to be added to cart.").optional()
|
|
5077
5077
|
});
|
|
5078
|
-
var AddToCartResponse = z.object({
|
|
5078
|
+
var AddToCartResponse = /* @__PURE__ */ z.object({
|
|
5079
5079
|
cart: z.object({
|
|
5080
5080
|
_id: z.string().describe("Cart ID.").regex(
|
|
5081
5081
|
/^[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}$/,
|
|
@@ -5674,14 +5674,14 @@ var AddToCartResponse = z.object({
|
|
|
5674
5674
|
).optional().nullable()
|
|
5675
5675
|
}).describe("Updated cart.").optional()
|
|
5676
5676
|
});
|
|
5677
|
-
var RemoveLineItemsRequest = z.object({
|
|
5677
|
+
var RemoveLineItemsRequest = /* @__PURE__ */ z.object({
|
|
5678
5678
|
_id: z.string().describe("ID of the cart to remove line items from.").regex(
|
|
5679
5679
|
/^[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}$/,
|
|
5680
5680
|
"Must be a valid GUID"
|
|
5681
5681
|
),
|
|
5682
5682
|
lineItemIds: z.array(z.string()).min(1).max(100)
|
|
5683
5683
|
});
|
|
5684
|
-
var RemoveLineItemsResponse = z.object({
|
|
5684
|
+
var RemoveLineItemsResponse = /* @__PURE__ */ z.object({
|
|
5685
5685
|
cart: z.object({
|
|
5686
5686
|
_id: z.string().describe("Cart ID.").regex(
|
|
5687
5687
|
/^[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}$/,
|
|
@@ -6280,7 +6280,7 @@ var RemoveLineItemsResponse = z.object({
|
|
|
6280
6280
|
).optional().nullable()
|
|
6281
6281
|
}).describe("Updated cart.").optional()
|
|
6282
6282
|
});
|
|
6283
|
-
var CreateCheckoutRequest = z.object({
|
|
6283
|
+
var CreateCheckoutRequest = /* @__PURE__ */ z.object({
|
|
6284
6284
|
_id: z.string().describe("Cart ID.").regex(
|
|
6285
6285
|
/^[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}$/,
|
|
6286
6286
|
"Must be a valid GUID"
|
|
@@ -6378,16 +6378,16 @@ var CreateCheckoutRequest = z.object({
|
|
|
6378
6378
|
).email().optional().nullable()
|
|
6379
6379
|
}).describe("Checkout creation options.").optional()
|
|
6380
6380
|
});
|
|
6381
|
-
var CreateCheckoutResponse = z.object({
|
|
6381
|
+
var CreateCheckoutResponse = /* @__PURE__ */ z.object({
|
|
6382
6382
|
checkoutId: z.string().describe("The newly created checkout's ID.").optional()
|
|
6383
6383
|
});
|
|
6384
|
-
var RemoveCouponRequest = z.object({
|
|
6384
|
+
var RemoveCouponRequest = /* @__PURE__ */ z.object({
|
|
6385
6385
|
_id: z.string().describe("Cart ID.").regex(
|
|
6386
6386
|
/^[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}$/,
|
|
6387
6387
|
"Must be a valid GUID"
|
|
6388
6388
|
)
|
|
6389
6389
|
});
|
|
6390
|
-
var RemoveCouponResponse = z.object({
|
|
6390
|
+
var RemoveCouponResponse = /* @__PURE__ */ z.object({
|
|
6391
6391
|
cart: z.object({
|
|
6392
6392
|
_id: z.string().describe("Cart ID.").regex(
|
|
6393
6393
|
/^[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}$/,
|
|
@@ -6986,7 +6986,7 @@ var RemoveCouponResponse = z.object({
|
|
|
6986
6986
|
).optional().nullable()
|
|
6987
6987
|
}).describe("Updated cart.").optional()
|
|
6988
6988
|
});
|
|
6989
|
-
var UpdateLineItemsQuantityRequest = z.object({
|
|
6989
|
+
var UpdateLineItemsQuantityRequest = /* @__PURE__ */ z.object({
|
|
6990
6990
|
_id: z.string().describe("Cart ID.").regex(
|
|
6991
6991
|
/^[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}$/,
|
|
6992
6992
|
"Must be a valid GUID"
|
|
@@ -7001,7 +7001,7 @@ var UpdateLineItemsQuantityRequest = z.object({
|
|
|
7001
7001
|
})
|
|
7002
7002
|
).min(1).max(100)
|
|
7003
7003
|
});
|
|
7004
|
-
var UpdateLineItemsQuantityResponse = z.object({
|
|
7004
|
+
var UpdateLineItemsQuantityResponse = /* @__PURE__ */ z.object({
|
|
7005
7005
|
cart: z.object({
|
|
7006
7006
|
_id: z.string().describe("Cart ID.").regex(
|
|
7007
7007
|
/^[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}$/,
|
|
@@ -7600,7 +7600,7 @@ var UpdateLineItemsQuantityResponse = z.object({
|
|
|
7600
7600
|
).optional().nullable()
|
|
7601
7601
|
}).describe("Updated cart.").optional()
|
|
7602
7602
|
});
|
|
7603
|
-
var EstimateTotalsRequest = z.object({
|
|
7603
|
+
var EstimateTotalsRequest = /* @__PURE__ */ z.object({
|
|
7604
7604
|
_id: z.string().describe("Cart ID.").regex(
|
|
7605
7605
|
/^[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}$/,
|
|
7606
7606
|
"Must be a valid GUID"
|
|
@@ -7698,7 +7698,7 @@ var EstimateTotalsRequest = z.object({
|
|
|
7698
7698
|
).optional().nullable()
|
|
7699
7699
|
}).describe("Total estimation options.").optional()
|
|
7700
7700
|
});
|
|
7701
|
-
var EstimateTotalsResponse = z.object({
|
|
7701
|
+
var EstimateTotalsResponse = /* @__PURE__ */ z.object({
|
|
7702
7702
|
cart: z.object({
|
|
7703
7703
|
_id: z.string().describe("Cart ID.").regex(
|
|
7704
7704
|
/^[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}$/,
|
|
@@ -9817,7 +9817,7 @@ var EstimateTotalsResponse = z.object({
|
|
|
9817
9817
|
"Translated membership name. Defaults to `original` when not provided."
|
|
9818
9818
|
).max(100).optional().nullable()
|
|
9819
9819
|
}).describe("The name of this membership.").optional(),
|
|
9820
|
-
lineItemIds: z.array(z.string()).
|
|
9820
|
+
lineItemIds: z.array(z.string()).max(300).optional(),
|
|
9821
9821
|
credits: z.object({
|
|
9822
9822
|
total: z.number().int().describe("Membership's initial value.").min(1).optional(),
|
|
9823
9823
|
remaining: z.number().int().describe("Membership's remaining value.").min(0).optional()
|
|
@@ -9842,7 +9842,7 @@ var EstimateTotalsResponse = z.object({
|
|
|
9842
9842
|
"Translated membership name. Defaults to `original` when not provided."
|
|
9843
9843
|
).max(100).optional().nullable()
|
|
9844
9844
|
}).describe("The name of this membership.").optional(),
|
|
9845
|
-
lineItemIds: z.array(z.string()).
|
|
9845
|
+
lineItemIds: z.array(z.string()).max(300).optional(),
|
|
9846
9846
|
credits: z.object({
|
|
9847
9847
|
total: z.number().int().describe("Membership's initial value.").min(1).optional(),
|
|
9848
9848
|
remaining: z.number().int().describe("Membership's remaining value.").min(0).optional()
|
|
@@ -10046,20 +10046,20 @@ var EstimateTotalsResponse = z.object({
|
|
|
10046
10046
|
})
|
|
10047
10047
|
).optional()
|
|
10048
10048
|
});
|
|
10049
|
-
var DeleteCartRequest = z.object({
|
|
10049
|
+
var DeleteCartRequest = /* @__PURE__ */ z.object({
|
|
10050
10050
|
_id: z.string().describe("ID of the cart to delete.").regex(
|
|
10051
10051
|
/^[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}$/,
|
|
10052
10052
|
"Must be a valid GUID"
|
|
10053
10053
|
)
|
|
10054
10054
|
});
|
|
10055
|
-
var DeleteCartResponse = z.object({});
|
|
10056
|
-
var RemoveBusinessLocationRequest = z.object({
|
|
10055
|
+
var DeleteCartResponse = /* @__PURE__ */ z.object({});
|
|
10056
|
+
var RemoveBusinessLocationRequest = /* @__PURE__ */ z.object({
|
|
10057
10057
|
_id: z.string().describe("Cart ID.").regex(
|
|
10058
10058
|
/^[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}$/,
|
|
10059
10059
|
"Must be a valid GUID"
|
|
10060
10060
|
)
|
|
10061
10061
|
});
|
|
10062
|
-
var RemoveBusinessLocationResponse = z.object({
|
|
10062
|
+
var RemoveBusinessLocationResponse = /* @__PURE__ */ z.object({
|
|
10063
10063
|
cart: z.object({
|
|
10064
10064
|
_id: z.string().describe("Cart ID.").regex(
|
|
10065
10065
|
/^[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}$/,
|