@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.
@@ -1,6 +1,6 @@
1
1
  // src/ecom-v1-cart-cart.schemas.ts
2
2
  import * as z from "zod";
3
- var CreateCartRequest = z.object({
3
+ var CreateCartRequest = /* @__PURE__ */ z.object({
4
4
  options: z.object({
5
5
  cartInfo: z.object({
6
6
  _id: z.string().describe("Cart ID.").regex(
@@ -1283,7 +1283,7 @@ var CreateCartRequest = z.object({
1283
1283
  ).max(300).optional()
1284
1284
  }).describe("Cart creation options.").optional()
1285
1285
  });
1286
- var CreateCartResponse = z.object({
1286
+ var CreateCartResponse = /* @__PURE__ */ z.object({
1287
1287
  _id: z.string().describe("Cart ID.").regex(
1288
1288
  /^[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}$/,
1289
1289
  "Must be a valid GUID"
@@ -1874,7 +1874,7 @@ var CreateCartResponse = z.object({
1874
1874
  "Revision number, which increments by 1 each time the Cart is updated."
1875
1875
  ).optional().nullable()
1876
1876
  });
1877
- var UpdateCartRequest = z.object({
1877
+ var UpdateCartRequest = /* @__PURE__ */ z.object({
1878
1878
  _id: z.string().describe("ID of the cart to be updated.").regex(
1879
1879
  /^[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}$/,
1880
1880
  "Must be a valid GUID"
@@ -3159,7 +3159,7 @@ var UpdateCartRequest = z.object({
3159
3159
  ).max(300).optional()
3160
3160
  }).describe("Available options to use when updating a cart.").optional()
3161
3161
  });
3162
- var UpdateCartResponse = z.object({
3162
+ var UpdateCartResponse = /* @__PURE__ */ z.object({
3163
3163
  _id: z.string().describe("Cart ID.").regex(
3164
3164
  /^[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}$/,
3165
3165
  "Must be a valid GUID"
@@ -3750,13 +3750,13 @@ var UpdateCartResponse = z.object({
3750
3750
  "Revision number, which increments by 1 each time the Cart is updated."
3751
3751
  ).optional().nullable()
3752
3752
  });
3753
- var GetCartRequest = z.object({
3753
+ var GetCartRequest = /* @__PURE__ */ z.object({
3754
3754
  _id: z.string().describe("Cart ID.").regex(
3755
3755
  /^[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}$/,
3756
3756
  "Must be a valid GUID"
3757
3757
  )
3758
3758
  });
3759
- var GetCartResponse = z.object({
3759
+ var GetCartResponse = /* @__PURE__ */ z.object({
3760
3760
  _id: z.string().describe("Cart ID.").regex(
3761
3761
  /^[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}$/,
3762
3762
  "Must be a valid GUID"
@@ -4347,7 +4347,7 @@ var GetCartResponse = z.object({
4347
4347
  "Revision number, which increments by 1 each time the Cart is updated."
4348
4348
  ).optional().nullable()
4349
4349
  });
4350
- var AddToCartRequest = z.object({
4350
+ var AddToCartRequest = /* @__PURE__ */ z.object({
4351
4351
  _id: z.string().describe("Cart ID.").regex(
4352
4352
  /^[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}$/,
4353
4353
  "Must be a valid GUID"
@@ -5018,7 +5018,7 @@ var AddToCartRequest = z.object({
5018
5018
  ).optional().nullable()
5019
5019
  }).describe("Items to be added to cart.").optional()
5020
5020
  });
5021
- var AddToCartResponse = z.object({
5021
+ var AddToCartResponse = /* @__PURE__ */ z.object({
5022
5022
  cart: z.object({
5023
5023
  _id: z.string().describe("Cart ID.").regex(
5024
5024
  /^[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}$/,
@@ -5617,14 +5617,14 @@ var AddToCartResponse = z.object({
5617
5617
  ).optional().nullable()
5618
5618
  }).describe("Updated cart.").optional()
5619
5619
  });
5620
- var RemoveLineItemsRequest = z.object({
5620
+ var RemoveLineItemsRequest = /* @__PURE__ */ z.object({
5621
5621
  _id: z.string().describe("ID of the cart to remove line items from.").regex(
5622
5622
  /^[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}$/,
5623
5623
  "Must be a valid GUID"
5624
5624
  ),
5625
5625
  lineItemIds: z.array(z.string()).min(1).max(100)
5626
5626
  });
5627
- var RemoveLineItemsResponse = z.object({
5627
+ var RemoveLineItemsResponse = /* @__PURE__ */ z.object({
5628
5628
  cart: z.object({
5629
5629
  _id: z.string().describe("Cart ID.").regex(
5630
5630
  /^[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}$/,
@@ -6223,7 +6223,7 @@ var RemoveLineItemsResponse = z.object({
6223
6223
  ).optional().nullable()
6224
6224
  }).describe("Updated cart.").optional()
6225
6225
  });
6226
- var CreateCheckoutRequest = z.object({
6226
+ var CreateCheckoutRequest = /* @__PURE__ */ z.object({
6227
6227
  _id: z.string().describe("Cart ID.").regex(
6228
6228
  /^[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}$/,
6229
6229
  "Must be a valid GUID"
@@ -6321,16 +6321,16 @@ var CreateCheckoutRequest = z.object({
6321
6321
  ).email().optional().nullable()
6322
6322
  }).describe("Checkout creation options.").optional()
6323
6323
  });
6324
- var CreateCheckoutResponse = z.object({
6324
+ var CreateCheckoutResponse = /* @__PURE__ */ z.object({
6325
6325
  checkoutId: z.string().describe("The newly created checkout's ID.").optional()
6326
6326
  });
6327
- var RemoveCouponRequest = z.object({
6327
+ var RemoveCouponRequest = /* @__PURE__ */ z.object({
6328
6328
  _id: z.string().describe("Cart ID.").regex(
6329
6329
  /^[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}$/,
6330
6330
  "Must be a valid GUID"
6331
6331
  )
6332
6332
  });
6333
- var RemoveCouponResponse = z.object({
6333
+ var RemoveCouponResponse = /* @__PURE__ */ z.object({
6334
6334
  cart: z.object({
6335
6335
  _id: z.string().describe("Cart ID.").regex(
6336
6336
  /^[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}$/,
@@ -6929,7 +6929,7 @@ var RemoveCouponResponse = z.object({
6929
6929
  ).optional().nullable()
6930
6930
  }).describe("Updated cart.").optional()
6931
6931
  });
6932
- var UpdateLineItemsQuantityRequest = z.object({
6932
+ var UpdateLineItemsQuantityRequest = /* @__PURE__ */ z.object({
6933
6933
  _id: z.string().describe("Cart ID.").regex(
6934
6934
  /^[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}$/,
6935
6935
  "Must be a valid GUID"
@@ -6944,7 +6944,7 @@ var UpdateLineItemsQuantityRequest = z.object({
6944
6944
  })
6945
6945
  ).min(1).max(100)
6946
6946
  });
6947
- var UpdateLineItemsQuantityResponse = z.object({
6947
+ var UpdateLineItemsQuantityResponse = /* @__PURE__ */ z.object({
6948
6948
  cart: z.object({
6949
6949
  _id: z.string().describe("Cart ID.").regex(
6950
6950
  /^[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}$/,
@@ -7543,7 +7543,7 @@ var UpdateLineItemsQuantityResponse = z.object({
7543
7543
  ).optional().nullable()
7544
7544
  }).describe("Updated cart.").optional()
7545
7545
  });
7546
- var EstimateTotalsRequest = z.object({
7546
+ var EstimateTotalsRequest = /* @__PURE__ */ z.object({
7547
7547
  _id: z.string().describe("Cart ID.").regex(
7548
7548
  /^[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}$/,
7549
7549
  "Must be a valid GUID"
@@ -7641,7 +7641,7 @@ var EstimateTotalsRequest = z.object({
7641
7641
  ).optional().nullable()
7642
7642
  }).describe("Total estimation options.").optional()
7643
7643
  });
7644
- var EstimateTotalsResponse = z.object({
7644
+ var EstimateTotalsResponse = /* @__PURE__ */ z.object({
7645
7645
  cart: z.object({
7646
7646
  _id: z.string().describe("Cart ID.").regex(
7647
7647
  /^[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}$/,
@@ -9760,7 +9760,7 @@ var EstimateTotalsResponse = z.object({
9760
9760
  "Translated membership name. Defaults to `original` when not provided."
9761
9761
  ).max(100).optional().nullable()
9762
9762
  }).describe("The name of this membership.").optional(),
9763
- lineItemIds: z.array(z.string()).min(1).max(300).optional(),
9763
+ lineItemIds: z.array(z.string()).max(300).optional(),
9764
9764
  credits: z.object({
9765
9765
  total: z.number().int().describe("Membership's initial value.").min(1).optional(),
9766
9766
  remaining: z.number().int().describe("Membership's remaining value.").min(0).optional()
@@ -9785,7 +9785,7 @@ var EstimateTotalsResponse = z.object({
9785
9785
  "Translated membership name. Defaults to `original` when not provided."
9786
9786
  ).max(100).optional().nullable()
9787
9787
  }).describe("The name of this membership.").optional(),
9788
- lineItemIds: z.array(z.string()).min(1).max(300).optional(),
9788
+ lineItemIds: z.array(z.string()).max(300).optional(),
9789
9789
  credits: z.object({
9790
9790
  total: z.number().int().describe("Membership's initial value.").min(1).optional(),
9791
9791
  remaining: z.number().int().describe("Membership's remaining value.").min(0).optional()
@@ -9989,20 +9989,20 @@ var EstimateTotalsResponse = z.object({
9989
9989
  })
9990
9990
  ).optional()
9991
9991
  });
9992
- var DeleteCartRequest = z.object({
9992
+ var DeleteCartRequest = /* @__PURE__ */ z.object({
9993
9993
  _id: z.string().describe("ID of the cart to delete.").regex(
9994
9994
  /^[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}$/,
9995
9995
  "Must be a valid GUID"
9996
9996
  )
9997
9997
  });
9998
- var DeleteCartResponse = z.object({});
9999
- var RemoveBusinessLocationRequest = z.object({
9998
+ var DeleteCartResponse = /* @__PURE__ */ z.object({});
9999
+ var RemoveBusinessLocationRequest = /* @__PURE__ */ z.object({
10000
10000
  _id: z.string().describe("Cart ID.").regex(
10001
10001
  /^[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}$/,
10002
10002
  "Must be a valid GUID"
10003
10003
  )
10004
10004
  });
10005
- var RemoveBusinessLocationResponse = z.object({
10005
+ var RemoveBusinessLocationResponse = /* @__PURE__ */ z.object({
10006
10006
  cart: z.object({
10007
10007
  _id: z.string().describe("Cart ID.").regex(
10008
10008
  /^[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}$/,