@faststore/api 1.9.9 → 1.9.17
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 +27 -0
- package/dist/__generated__/schema.d.ts +27 -8
- package/dist/api.cjs.development.js +254 -196
- 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 +254 -194
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/platforms/vtex/clients/search/index.d.ts +2 -1
- package/dist/platforms/vtex/clients/search/types/FacetSearchResult.d.ts +8 -8
- package/dist/platforms/vtex/index.d.ts +7 -3
- package/dist/platforms/vtex/resolvers/faceValue.d.ts +3 -0
- package/dist/platforms/vtex/resolvers/facet.d.ts +3 -1
- package/dist/platforms/vtex/utils/facets.d.ts +1 -0
- package/package.json +3 -2
- package/src/__generated__/schema.ts +26 -8
- package/src/platforms/vtex/clients/search/index.ts +9 -1
- package/src/platforms/vtex/clients/search/types/FacetSearchResult.ts +9 -8
- package/src/platforms/vtex/index.ts +14 -6
- package/src/platforms/vtex/resolvers/faceValue.ts +12 -0
- package/src/platforms/vtex/resolvers/facet.ts +66 -5
- package/src/platforms/vtex/resolvers/offer.ts +1 -1
- package/src/platforms/vtex/resolvers/searchResult.ts +9 -26
- package/src/platforms/vtex/utils/facets.ts +18 -0
- package/src/typeDefs/facet.graphql +40 -6
- package/dist/platforms/vtex/resolvers/facetValue.d.ts +0 -5
- package/src/platforms/vtex/resolvers/facetValue.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.9.17](https://github.com/vtex/faststore/compare/v1.9.16...v1.9.17) (2022-06-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.9.14](https://github.com/vtex/faststore/compare/v1.9.13...v1.9.14) (2022-06-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @faststore/api
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [1.9.11](https://github.com/vtex/faststore/compare/v1.9.10...v1.9.11) (2022-06-19)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* Price range filter on PLP ([#1364](https://github.com/vtex/faststore/issues/1364)) ([a4c3fa7](https://github.com/vtex/faststore/commit/a4c3fa79c32d1db7bc737f5221479e6db1488866))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## 1.9.9 (2022-06-17)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -287,17 +287,28 @@ export declare type StoreCurrency = {
|
|
|
287
287
|
/** Currency symbol (e.g: $). */
|
|
288
288
|
symbol: Scalars['String'];
|
|
289
289
|
};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
290
|
+
export declare type StoreFacet = StoreFacetBoolean | StoreFacetRange;
|
|
291
|
+
/** Search facet boolean information. */
|
|
292
|
+
export declare type StoreFacetBoolean = {
|
|
293
|
+
__typename?: 'StoreFacetBoolean';
|
|
293
294
|
/** Facet key. */
|
|
294
295
|
key: Scalars['String'];
|
|
295
296
|
/** Facet label. */
|
|
296
297
|
label: Scalars['String'];
|
|
297
|
-
/** Facet type. Possible values are `BOOLEAN` and `RANGE`. */
|
|
298
|
-
type: StoreFacetType;
|
|
299
298
|
/** Array with information on each facet value. */
|
|
300
|
-
values: Array<
|
|
299
|
+
values: Array<StoreFacetValueBoolean>;
|
|
300
|
+
};
|
|
301
|
+
/** Search facet range information. */
|
|
302
|
+
export declare type StoreFacetRange = {
|
|
303
|
+
__typename?: 'StoreFacetRange';
|
|
304
|
+
/** Facet key. */
|
|
305
|
+
key: Scalars['String'];
|
|
306
|
+
/** Facet label. */
|
|
307
|
+
label: Scalars['String'];
|
|
308
|
+
/** Maximum facet range value. */
|
|
309
|
+
max: StoreFacetValueRange;
|
|
310
|
+
/** Minimum facet range value. */
|
|
311
|
+
min: StoreFacetValueRange;
|
|
301
312
|
};
|
|
302
313
|
/** Search facet type. */
|
|
303
314
|
export declare const enum StoreFacetType {
|
|
@@ -307,8 +318,8 @@ export declare const enum StoreFacetType {
|
|
|
307
318
|
Range = "RANGE"
|
|
308
319
|
}
|
|
309
320
|
/** Information of a specific facet value. */
|
|
310
|
-
export declare type
|
|
311
|
-
__typename?: '
|
|
321
|
+
export declare type StoreFacetValueBoolean = {
|
|
322
|
+
__typename?: 'StoreFacetValueBoolean';
|
|
312
323
|
/** Facet value label. */
|
|
313
324
|
label: Scalars['String'];
|
|
314
325
|
/** Number of items with this facet. */
|
|
@@ -318,6 +329,14 @@ export declare type StoreFacetValue = {
|
|
|
318
329
|
/** Facet value. */
|
|
319
330
|
value: Scalars['String'];
|
|
320
331
|
};
|
|
332
|
+
/** Search facet range value information. Used for minimum and maximum range values. */
|
|
333
|
+
export declare type StoreFacetValueRange = {
|
|
334
|
+
__typename?: 'StoreFacetValueRange';
|
|
335
|
+
/** Search facet range absolute value. */
|
|
336
|
+
absolute: Scalars['Float'];
|
|
337
|
+
/** Search facet range selected value. */
|
|
338
|
+
selected: Scalars['Float'];
|
|
339
|
+
};
|
|
321
340
|
/** Image. */
|
|
322
341
|
export declare type StoreImage = {
|
|
323
342
|
__typename?: 'StoreImage';
|