@faststore/api 3.6.0 → 3.9.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -560,6 +560,8 @@ export type SkuVariants = {
560
560
  __typename?: 'SkuVariants';
561
561
  /** SKU property values for the current SKU. */
562
562
  activeVariations?: Maybe<Scalars['ActiveVariations']>;
563
+ /** All possible variant combinations of the current product. It also includes the data for each variant. */
564
+ allVariantProducts?: Maybe<Array<StoreProduct>>;
563
565
  /** All available options for each SKU variant property, indexed by their name. */
564
566
  allVariantsByName?: Maybe<Scalars['VariantsByName']>;
565
567
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/__generated__/schema.ts"],"names":[],"mappings":";;AA6wBC,CAAC;AA+DD,CAAC;AAmUD,CAAC;AAOD,CAAC"}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/__generated__/schema.ts"],"names":[],"mappings":";;AA+wBC,CAAC;AA+DD,CAAC;AAmUD,CAAC;AAOD,CAAC"}
@@ -13,5 +13,6 @@ exports.SkuVariants = {
13
13
  const filteredFormattedVariations = (0, skuVariants_1.getFormattedVariations)(root.isVariantOf.items, dominantVariantName, activeDominantVariationValue);
14
14
  return filteredFormattedVariations;
15
15
  },
16
+ allVariantProducts: (root) => root.isVariantOf.items,
16
17
  };
17
18
  //# sourceMappingURL=skuVariations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skuVariations.js","sourceRoot":"","sources":["../../../../../../src/platforms/vtex/resolvers/skuVariations.ts"],"names":[],"mappings":";;;AAGA,sDAK6B;AAQhB,QAAA,WAAW,GAAmC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EA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,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CACvB,IAAA,4BAAc,EACZ,IAAI,CAAC,WAAW,CAAC,KAAK,EACrB,IAAqB,CAAC,mBAAmB,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,EACtE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAC1B;IAEH,mBAAmB,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;QAClC,MAAM,mBAAmB,GAAI,IAAqB,CAAC,mBAAmB,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAA;QAClG,MAAM,gBAAgB,GAAG,IAAA,oCAAsB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAEhE,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;QAE1E,MAAM,2BAA2B,GAAG,IAAA,oCAAsB,EACxD,IAAI,CAAC,WAAW,CAAC,KAAK,EACtB,mBAAmB,EACnB,4BAA4B,CAC7B,CAAA;QAED,OAAO,2BAA2B,CAAA;IACpC,CAAC;IACD,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK;CACrD,CAAA"}
@@ -24,6 +24,11 @@ type SkuVariants {
24
24
  considered the dominant one.
25
25
  """
26
26
  availableVariations(dominantVariantName: String): FormattedVariants
27
+
28
+ """
29
+ All possible variant combinations of the current product. It also includes the data for each variant.
30
+ """
31
+ allVariantProducts: [StoreProduct!]
27
32
  }
28
33
 
29
34
  """
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -560,6 +560,8 @@ export type SkuVariants = {
560
560
  __typename?: 'SkuVariants';
561
561
  /** SKU property values for the current SKU. */
562
562
  activeVariations?: Maybe<Scalars['ActiveVariations']>;
563
+ /** All possible variant combinations of the current product. It also includes the data for each variant. */
564
+ allVariantProducts?: Maybe<Array<StoreProduct>>;
563
565
  /** All available options for each SKU variant property, indexed by their name. */
564
566
  allVariantsByName?: Maybe<Scalars['VariantsByName']>;
565
567
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/__generated__/schema.ts"],"names":[],"mappings":"AA6wBC,CAAC;AA+DD,CAAC;AAmUD,CAAC;AAOD,CAAC"}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/__generated__/schema.ts"],"names":[],"mappings":"AA+wBC,CAAC;AA+DD,CAAC;AAmUD,CAAC;AAOD,CAAC"}
@@ -10,5 +10,6 @@ export const SkuVariants = {
10
10
  const filteredFormattedVariations = getFormattedVariations(root.isVariantOf.items, dominantVariantName, activeDominantVariationValue);
11
11
  return filteredFormattedVariations;
12
12
  },
13
+ allVariantProducts: (root) => root.isVariantOf.items,
13
14
  };
14
15
  //# sourceMappingURL=skuVariations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skuVariations.js","sourceRoot":"","sources":["../../../../../../src/platforms/vtex/resolvers/skuVariations.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,sBAAsB,CAAA;AAQ7B,MAAM,CAAC,MAAM,WAAW,GAAmC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,UAAU,CAAC;IACnE,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC;IAEvD,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CACvB,cAAc,CACZ,IAAI,CAAC,WAAW,CAAC,KAAK,EACrB,IAAqB,CAAC,mBAAmB,IAAI,IA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I,EAAE,IAAI,EAAE,EAAE;QAClC,MAAM,mBAAmB,GAAI,IAAqB,CAAC,mBAAmB,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAA;QAClG,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAEhE,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAA;QAE1E,MAAM,2BAA2B,GAAG,sBAAsB,CACxD,IAAI,CAAC,WAAW,CAAC,KAAK,EACtB,mBAAmB,EACnB,4BAA4B,CAC7B,CAAA;QAED,OAAO,2BAA2B,CAAA;IACpC,CAAC;IACD,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK;CACrD,CAAA"}
@@ -24,6 +24,11 @@ type SkuVariants {
24
24
  considered the dominant one.
25
25
  """
26
26
  availableVariations(dominantVariantName: String): FormattedVariants
27
+
28
+ """
29
+ All possible variant combinations of the current product. It also includes the data for each variant.
30
+ """
31
+ allVariantProducts: [StoreProduct!]
27
32
  }
28
33
 
29
34
  """
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "3.6.0",
3
+ "version": "3.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/src/index.js",
6
6
  "typings": "dist/esm/src/index.d.ts",
@@ -51,8 +51,8 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@envelop/core": "^5.0.2",
54
- "@faststore/eslint-config": "^3.5.0",
55
- "@faststore/shared": "^3.5.0",
54
+ "@faststore/eslint-config": "^3.9.0",
55
+ "@faststore/shared": "^3.9.0",
56
56
  "@graphql-codegen/cli": "2.2.0",
57
57
  "@graphql-codegen/typescript": "2.2.2",
58
58
  "@parcel/watcher": "^2.4.0",
@@ -79,5 +79,5 @@
79
79
  "volta": {
80
80
  "extends": "../../package.json"
81
81
  },
82
- "gitHead": "be4c6d948145860a32be1846d3554de47b4ef970"
82
+ "gitHead": "50345eff012999c1e2100a5fcfeccd0732da131e"
83
83
  }
@@ -611,6 +611,8 @@ export type SkuVariants = {
611
611
  __typename?: 'SkuVariants';
612
612
  /** SKU property values for the current SKU. */
613
613
  activeVariations?: Maybe<Scalars['ActiveVariations']>;
614
+ /** All possible variant combinations of the current product. It also includes the data for each variant. */
615
+ allVariantProducts?: Maybe<Array<StoreProduct>>;
614
616
  /** All available options for each SKU variant property, indexed by their name. */
615
617
  allVariantsByName?: Maybe<Scalars['VariantsByName']>;
616
618
  /**
@@ -40,4 +40,5 @@ export const SkuVariants: Record<string, Resolver<Root>> = {
40
40
 
41
41
  return filteredFormattedVariations
42
42
  },
43
+ allVariantProducts: (root) => root.isVariantOf.items,
43
44
  }
@@ -24,6 +24,11 @@ type SkuVariants {
24
24
  considered the dominant one.
25
25
  """
26
26
  availableVariations(dominantVariantName: String): FormattedVariants
27
+
28
+ """
29
+ All possible variant combinations of the current product. It also includes the data for each variant.
30
+ """
31
+ allVariantProducts: [StoreProduct!]
27
32
  }
28
33
 
29
34
  """