@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<{
@@ -6531,6 +6531,12 @@ var EstimateCurrentCartTotalsResponse = z.object({
6531
6531
  formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional(),
6532
6532
  formattedConvertedAmount: z.string().describe("Converted amount formatted with currency symbol.").optional()
6533
6533
  }).describe("Catalog price before any discounts, with modifiers.").optional(),
6534
+ modifiers: z.object({
6535
+ amount: z.string().describe("Amount.").optional(),
6536
+ convertedAmount: z.string().describe("Converted amount.").optional(),
6537
+ formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional(),
6538
+ formattedConvertedAmount: z.string().describe("Converted amount formatted with currency symbol.").optional()
6539
+ }).describe("Sum of all modifiers for a single unit of the item.").optional(),
6534
6540
  depositAmount: z.object({
6535
6541
  amount: z.string().describe("Amount.").optional(),
6536
6542
  convertedAmount: z.string().describe("Converted amount.").optional(),
@@ -8075,7 +8081,18 @@ var EstimateCurrentCartTotalsResponse = z.object({
8075
8081
  ]).describe("the source the additional fee was added from").optional(),
8076
8082
  translatedName: z.string().describe(
8077
8083
  "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)."
8078
- ).min(1).max(50).optional().nullable()
8084
+ ).min(1).max(50).optional().nullable(),
8085
+ taxableAddress: z.intersection(
8086
+ z.object({}),
8087
+ z.xor([
8088
+ z.object({ addressType: z.never().optional() }),
8089
+ z.object({
8090
+ addressType: z.enum(["BUSINESS", "BILLING", "SHIPPING"]).describe(
8091
+ "taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly."
8092
+ )
8093
+ })
8094
+ ])
8095
+ ).describe("Address type tax was calculated against for this fee.").optional()
8079
8096
  })
8080
8097
  ).max(100).optional(),
8081
8098
  violations: z.array(