@wix/auto_sdk_ecom_current-cart 1.0.178 → 1.0.180

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 +5 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +4 -0
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +15 -0
  8. package/build/cjs/schemas.js +18 -1
  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 +5 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +4 -0
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +15 -0
  17. package/build/es/schemas.mjs +18 -1
  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 +3 -9
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +4 -0
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +15 -0
  26. package/build/internal/cjs/schemas.js +18 -1
  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 +3 -9
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +4 -0
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +15 -0
  35. package/build/internal/es/schemas.mjs +18 -1
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -3810,6 +3810,12 @@ declare const EstimateCurrentCartTotalsResponse: z.ZodObject<{
3810
3810
  formattedAmount: z.ZodOptional<z.ZodString>;
3811
3811
  formattedConvertedAmount: z.ZodOptional<z.ZodString>;
3812
3812
  }, z.core.$strip>>;
3813
+ modifiers: z.ZodOptional<z.ZodObject<{
3814
+ amount: z.ZodOptional<z.ZodString>;
3815
+ convertedAmount: z.ZodOptional<z.ZodString>;
3816
+ formattedAmount: z.ZodOptional<z.ZodString>;
3817
+ formattedConvertedAmount: z.ZodOptional<z.ZodString>;
3818
+ }, z.core.$strip>>;
3813
3819
  depositAmount: z.ZodOptional<z.ZodObject<{
3814
3820
  amount: z.ZodOptional<z.ZodString>;
3815
3821
  convertedAmount: z.ZodOptional<z.ZodString>;
@@ -4950,6 +4956,15 @@ declare const EstimateCurrentCartTotalsResponse: z.ZodObject<{
4950
4956
  PLATFORM: "PLATFORM";
4951
4957
  }>>;
4952
4958
  translatedName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4959
+ taxableAddress: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
4960
+ addressType: z.ZodOptional<z.ZodNever>;
4961
+ }, z.core.$strip>, z.ZodObject<{
4962
+ addressType: z.ZodEnum<{
4963
+ BUSINESS: "BUSINESS";
4964
+ BILLING: "BILLING";
4965
+ SHIPPING: "SHIPPING";
4966
+ }>;
4967
+ }, z.core.$strip>]>>>;
4953
4968
  }, z.core.$strip>>>;
4954
4969
  violations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4955
4970
  severity: z.ZodOptional<z.ZodEnum<{
@@ -6478,6 +6478,12 @@ var EstimateCurrentCartTotalsResponse = z.object({
6478
6478
  formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional(),
6479
6479
  formattedConvertedAmount: z.string().describe("Converted amount formatted with currency symbol.").optional()
6480
6480
  }).describe("Catalog price before any discounts, with modifiers.").optional(),
6481
+ modifiers: z.object({
6482
+ amount: z.string().describe("Amount.").optional(),
6483
+ convertedAmount: z.string().describe("Converted amount.").optional(),
6484
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional(),
6485
+ formattedConvertedAmount: z.string().describe("Converted amount formatted with currency symbol.").optional()
6486
+ }).describe("Sum of all modifiers for a single unit of the item.").optional(),
6481
6487
  depositAmount: z.object({
6482
6488
  amount: z.string().describe("Amount.").optional(),
6483
6489
  convertedAmount: z.string().describe("Converted amount.").optional(),
@@ -8022,7 +8028,18 @@ var EstimateCurrentCartTotalsResponse = z.object({
8022
8028
  ]).describe("the source the additional fee was added from").optional(),
8023
8029
  translatedName: z.string().describe(
8024
8030
  "The translated name of the additional fee. The translation language is determined by the `languages` field 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)."
8025
- ).min(1).max(50).optional().nullable()
8031
+ ).min(1).max(50).optional().nullable(),
8032
+ taxableAddress: z.intersection(
8033
+ z.object({}),
8034
+ z.xor([
8035
+ z.object({ addressType: z.never().optional() }),
8036
+ z.object({
8037
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
8038
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
8039
+ )
8040
+ })
8041
+ ])
8042
+ ).describe("Address type tax was calculated against for this fee.").optional()
8026
8043
  })
8027
8044
  ).max(100).optional(),
8028
8045
  violations: z.array(