@faststore/api 2.0.162-alpha.0 → 2.0.165-alpha.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.
- package/dist/__generated__/schema.d.ts +15 -0
- package/dist/api.cjs.development.js +279 -4
- 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 +280 -6
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/platforms/vtex/clients/search/types/ProductSearchResult.d.ts +1 -0
- package/dist/platforms/vtex/index.d.ts +3 -0
- package/dist/platforms/vtex/resolvers/query.d.ts +7 -4
- package/dist/telemetry/index.d.ts +8 -0
- package/dist/telemetry/useFaststoreTelemetry.d.ts +24 -0
- package/package.json +9 -2
- package/src/__generated__/schema.ts +18 -0
- package/src/index.ts +1 -0
- package/src/platforms/vtex/clients/search/types/ProductSearchResult.ts +1 -0
- package/src/platforms/vtex/resolvers/query.ts +58 -24
- package/src/telemetry/index.ts +117 -0
- package/src/telemetry/useFaststoreTelemetry.ts +255 -0
- package/src/typeDefs/query.graphql +26 -0
|
@@ -417,6 +417,8 @@ export declare type Query = {
|
|
|
417
417
|
collection: StoreCollection;
|
|
418
418
|
/** Returns the details of a product based on the specified locator. */
|
|
419
419
|
product: StoreProduct;
|
|
420
|
+
/** Returns if there's a redirect for a search. */
|
|
421
|
+
redirect?: Maybe<StoreRedirect>;
|
|
420
422
|
/** Returns the result of a product, facet, or suggestion search. */
|
|
421
423
|
search: StoreSearchResult;
|
|
422
424
|
/** Returns a list of sellers available for a specific localization. */
|
|
@@ -438,6 +440,10 @@ export declare type QueryCollectionArgs = {
|
|
|
438
440
|
export declare type QueryProductArgs = {
|
|
439
441
|
locator: Array<IStoreSelectedFacet>;
|
|
440
442
|
};
|
|
443
|
+
export declare type QueryRedirectArgs = {
|
|
444
|
+
selectedFacets?: Maybe<Array<IStoreSelectedFacet>>;
|
|
445
|
+
term?: Maybe<Scalars['String']>;
|
|
446
|
+
};
|
|
441
447
|
export declare type QuerySearchArgs = {
|
|
442
448
|
after?: Maybe<Scalars['String']>;
|
|
443
449
|
first: Scalars['Int'];
|
|
@@ -925,6 +931,15 @@ export declare type StorePropertyValue = {
|
|
|
925
931
|
/** Specifies the nature of the value */
|
|
926
932
|
valueReference: Scalars['String'];
|
|
927
933
|
};
|
|
934
|
+
/**
|
|
935
|
+
* Redirect informations, including url returned by the query.
|
|
936
|
+
* https://schema.org/Thing
|
|
937
|
+
*/
|
|
938
|
+
export declare type StoreRedirect = {
|
|
939
|
+
__typename?: 'StoreRedirect';
|
|
940
|
+
/** URL to redirect */
|
|
941
|
+
url?: Maybe<Scalars['String']>;
|
|
942
|
+
};
|
|
928
943
|
/** Information of a given review. */
|
|
929
944
|
export declare type StoreReview = {
|
|
930
945
|
__typename?: 'StoreReview';
|