@nautical-commerce/graphql-schema 4.7.0 → 4.8.0

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.
@@ -1515,7 +1515,9 @@ type Attribute implements Node & ObjectWithMetadata {
1515
1515
  """The input type to use for entering attribute values in the dashboard."""
1516
1516
  inputType: AttributeInputTypeEnum!
1517
1517
 
1518
- """The values available for this attribute"""
1518
+ """
1519
+ ALL values defined for this attribute — the full catalogue of options it can take, NOT the values assigned to any particular product or variant. For the values assigned to a specific object, use the `values` field on SelectedAttribute (a sibling of `attribute`, one level up). Narrowed to a subset when `search` or `first` is supplied. Returns an empty list unless `inputType` is DROPDOWN or MULTISELECT — the other input types carry a unique value per object rather than a shared catalogue.
1520
+ """
1519
1521
  values(search: String = null, first: Int = null): [AttributeValue!]!
1520
1522
 
1521
1523
  """Seller who created this attribute, if any"""
@@ -9957,10 +9959,10 @@ type Mutation {
9957
9959
  """Clear all seller shipping methods."""
9958
9960
  checkoutSellerShippingMethodsClear(checkoutId: ID!): CheckoutSellerShippingMethodsClear!
9959
9961
 
9960
- """Add a promo code (voucher or gift card)."""
9962
+ """Add a voucher code to the checkout."""
9961
9963
  checkoutAddPromoCode(checkoutId: ID!, promoCode: String!): CheckoutAddPromoCode!
9962
9964
 
9963
- """Remove a promo code."""
9965
+ """Remove a voucher code from the checkout."""
9964
9966
  checkoutRemovePromoCode(checkoutId: ID!, promoCode: String!): CheckoutRemovePromoCode!
9965
9967
 
9966
9968
  """Add purchase order numbers."""
@@ -19850,10 +19852,14 @@ type SalesVelocityReport {
19850
19852
 
19851
19853
  """Represents a selected attribute with its values"""
19852
19854
  type SelectedAttribute {
19853
- """The attribute definition"""
19855
+ """
19856
+ The attribute definition. Its `values` field lists every value the attribute CAN take — for the values actually assigned here, use the `values` field alongside this one, not the one nested inside it.
19857
+ """
19854
19858
  attribute: Attribute!
19855
19859
 
19856
- """Values of the attribute"""
19860
+ """
19861
+ The values assigned to THIS object — this product, variant, or custom-field owner. Usually the field you want. Contrast `attribute.values`, which is the attribute's full catalogue of possible values and is identical for every object sharing it.
19862
+ """
19857
19863
  values: [AttributeValue!]!
19858
19864
 
19859
19865
  """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nautical-commerce/graphql-schema",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Traide API GraphQL Schema",
5
5
  "main": "./nautical/schema.graphql",
6
6
  "scripts": {