@faststore/api 1.10.17 → 1.10.18
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.
- package/CHANGELOG.md +11 -0
- package/dist/__generated__/schema.d.ts +6 -2
- package/dist/api.cjs.development.js +3 -3
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +3 -3
- package/dist/api.esm.js.map +1 -1
- package/dist/platforms/vtex/clients/commerce/types/Portal.d.ts +1 -1
- package/package.json +3 -3
- package/src/__generated__/schema.ts +6 -2
- package/src/platforms/vtex/clients/commerce/types/Portal.ts +8 -1
- package/src/platforms/vtex/loaders/collection.ts +2 -0
- package/src/typeDefs/collection.graphql +9 -1
|
@@ -5,7 +5,7 @@ export interface CollectionPageType {
|
|
|
5
5
|
url: string;
|
|
6
6
|
title: string;
|
|
7
7
|
metaTagDescription: string;
|
|
8
|
-
pageType: 'Brand' | 'Category' | 'Department' | '
|
|
8
|
+
pageType: 'Brand' | 'Category' | 'Department' | 'SubCategory' | 'Product' | 'Collection' | 'Cluster';
|
|
9
9
|
}
|
|
10
10
|
export interface FallbackPageType {
|
|
11
11
|
id: null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/api",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"express-graphql": "^0.12.0",
|
|
38
38
|
"graphql": "^15.6.0",
|
|
39
39
|
"jest-transform-graphql": "^2.1.0",
|
|
40
|
-
"shared": "^1.10.
|
|
40
|
+
"shared": "^1.10.18",
|
|
41
41
|
"ts-jest": "25.5.1",
|
|
42
42
|
"tsdx": "^0.14.1",
|
|
43
43
|
"tslib": "^2.3.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"graphql": "^15.6.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a6f5e44b68bde5b811a345bffb7bec697e8f3933"
|
|
50
50
|
}
|
|
@@ -300,7 +300,7 @@ export type StoreCollectionMeta = {
|
|
|
300
300
|
selectedFacets: Array<StoreCollectionFacet>;
|
|
301
301
|
};
|
|
302
302
|
|
|
303
|
-
/** Product collection type. Possible values are `Department`, `Category`, `Brand` or `
|
|
303
|
+
/** Product collection type. Possible values are `Department`, `Category`, `Brand`, `Cluster`, `SubCategory` or `Collection`. */
|
|
304
304
|
export const enum StoreCollectionType {
|
|
305
305
|
/** Product brand. */
|
|
306
306
|
Brand = 'Brand',
|
|
@@ -308,8 +308,12 @@ export const enum StoreCollectionType {
|
|
|
308
308
|
Category = 'Category',
|
|
309
309
|
/** Product cluster. */
|
|
310
310
|
Cluster = 'Cluster',
|
|
311
|
+
/** Product collection. */
|
|
312
|
+
Collection = 'Collection',
|
|
311
313
|
/** First level of product categorization. */
|
|
312
|
-
Department = 'Department'
|
|
314
|
+
Department = 'Department',
|
|
315
|
+
/** Third level of product categorization. */
|
|
316
|
+
SubCategory = 'SubCategory'
|
|
313
317
|
};
|
|
314
318
|
|
|
315
319
|
/** Currency information. */
|
|
@@ -6,7 +6,14 @@ export interface CollectionPageType {
|
|
|
6
6
|
url: string
|
|
7
7
|
title: string
|
|
8
8
|
metaTagDescription: string
|
|
9
|
-
pageType:
|
|
9
|
+
pageType:
|
|
10
|
+
| 'Brand'
|
|
11
|
+
| 'Category'
|
|
12
|
+
| 'Department'
|
|
13
|
+
| 'SubCategory'
|
|
14
|
+
| 'Product'
|
|
15
|
+
| 'Collection'
|
|
16
|
+
| 'Cluster'
|
|
10
17
|
}
|
|
11
18
|
|
|
12
19
|
export interface FallbackPageType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Product collection type. Possible values are `Department`, `Category`, `Brand` or `
|
|
2
|
+
Product collection type. Possible values are `Department`, `Category`, `Brand`, `Cluster`, `SubCategory` or `Collection`.
|
|
3
3
|
"""
|
|
4
4
|
enum StoreCollectionType {
|
|
5
5
|
"""
|
|
@@ -11,6 +11,10 @@ enum StoreCollectionType {
|
|
|
11
11
|
"""
|
|
12
12
|
Category
|
|
13
13
|
"""
|
|
14
|
+
Third level of product categorization.
|
|
15
|
+
"""
|
|
16
|
+
SubCategory
|
|
17
|
+
"""
|
|
14
18
|
Product brand.
|
|
15
19
|
"""
|
|
16
20
|
Brand
|
|
@@ -18,6 +22,10 @@ enum StoreCollectionType {
|
|
|
18
22
|
Product cluster.
|
|
19
23
|
"""
|
|
20
24
|
Cluster
|
|
25
|
+
"""
|
|
26
|
+
Product collection.
|
|
27
|
+
"""
|
|
28
|
+
Collection
|
|
21
29
|
}
|
|
22
30
|
|
|
23
31
|
"""
|