@faststore/api 1.8.30 → 1.8.33

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 (34) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/__generated__/schema.d.ts +15 -2
  3. package/dist/api.cjs.development.js +117 -19
  4. package/dist/api.cjs.development.js.map +1 -1
  5. package/dist/api.cjs.production.min.js +1 -1
  6. package/dist/api.cjs.production.min.js.map +1 -1
  7. package/dist/api.esm.js +118 -20
  8. package/dist/api.esm.js.map +1 -1
  9. package/dist/index.d.ts +49 -7
  10. package/dist/platforms/vtex/clients/commerce/types/OrderForm.d.ts +6 -0
  11. package/dist/platforms/vtex/index.d.ts +49 -7
  12. package/dist/platforms/vtex/resolvers/aggregateOffer.d.ts +1 -2
  13. package/dist/platforms/vtex/resolvers/mutation.d.ts +1 -0
  14. package/dist/platforms/vtex/resolvers/objectOrString.d.ts +2 -0
  15. package/dist/platforms/vtex/resolvers/product.d.ts +6 -2
  16. package/dist/platforms/vtex/resolvers/validateCart.d.ts +1 -0
  17. package/dist/platforms/vtex/utils/enhanceCommercialOffer.d.ts +8 -9
  18. package/dist/platforms/vtex/utils/propertyValue.d.ts +5 -0
  19. package/package.json +2 -2
  20. package/src/__generated__/schema.ts +16 -2
  21. package/src/platforms/vtex/clients/commerce/types/OrderForm.ts +7 -0
  22. package/src/platforms/vtex/index.ts +2 -0
  23. package/src/platforms/vtex/resolvers/aggregateOffer.ts +1 -2
  24. package/src/platforms/vtex/resolvers/objectOrString.ts +46 -0
  25. package/src/platforms/vtex/resolvers/offer.ts +11 -1
  26. package/src/platforms/vtex/resolvers/product.ts +30 -5
  27. package/src/platforms/vtex/resolvers/productGroup.ts +6 -1
  28. package/src/platforms/vtex/resolvers/validateCart.ts +32 -1
  29. package/src/platforms/vtex/utils/enhanceCommercialOffer.ts +8 -12
  30. package/src/platforms/vtex/utils/propertyValue.ts +5 -0
  31. package/src/typeDefs/index.ts +2 -0
  32. package/src/typeDefs/objectOrString.graphql +1 -0
  33. package/src/typeDefs/product.graphql +4 -0
  34. package/src/typeDefs/propertyValue.graphql +21 -2
@@ -0,0 +1 @@
1
+ scalar ObjectOrString
@@ -80,4 +80,8 @@ input IStoreProduct {
80
80
  Array of product images.
81
81
  """
82
82
  image: [IStoreImage!]!
83
+ """
84
+ Custom Product Additional Properties.
85
+ """
86
+ additionalProperty: [IStorePropertyValue!]
83
87
  }
@@ -3,11 +3,30 @@ Properties that can be associated with products and products groups.
3
3
  """
4
4
  type StorePropertyValue {
5
5
  """
6
- Property value.
6
+ Property value. May hold a string or the string representation of an object.
7
7
  """
8
- value: String!
8
+ value: ObjectOrString!
9
9
  """
10
10
  Property name.
11
11
  """
12
12
  name: String!
13
+ """
14
+ Specifies the nature of the value
15
+ """
16
+ valueReference: String!
17
+ }
18
+
19
+ input IStorePropertyValue {
20
+ """
21
+ Property value. May hold a string or the string representation of an object.
22
+ """
23
+ value: ObjectOrString!
24
+ """
25
+ Property name.
26
+ """
27
+ name: String!
28
+ """
29
+ Specifies the nature of the value
30
+ """
31
+ valueReference: String!
13
32
  }