@faststore/api 1.9.7 → 1.9.8

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 CHANGED
@@ -3,6 +3,17 @@
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.8 (2022-06-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * lint ([#1368](https://github.com/vtex/faststore/issues/1368)) ([66ce99f](https://github.com/vtex/faststore/commit/66ce99f310ec593245e3937daea5ed813e1630e6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.9.7](https://github.com/vtex/faststore/compare/v1.9.6...v1.9.7) (2022-06-13)
7
18
 
8
19
 
@@ -25,9 +25,9 @@ export declare type IStoreCart = {
25
25
  order: IStoreOrder;
26
26
  };
27
27
  export declare type IStoreCurrency = {
28
- /** Currency code, e.g: USD */
28
+ /** Currency code (e.g: USD). */
29
29
  code: Scalars['String'];
30
- /** Currency symbol, e.g: $ */
30
+ /** Currency symbol (e.g: $). */
31
31
  symbol: Scalars['String'];
32
32
  };
33
33
  /** Image input. */
@@ -50,7 +50,7 @@ export declare type IStoreOffer = {
50
50
  /** Seller responsible for the offer. */
51
51
  seller: IStoreOrganization;
52
52
  };
53
- /** Offer input. */
53
+ /** Order input. */
54
54
  export declare type IStoreOrder = {
55
55
  /** Array with information on each accepted offer. */
56
56
  acceptedOffer: Array<IStoreOffer>;
@@ -94,9 +94,11 @@ export declare type IStorePropertyValue = {
94
94
  /** Specifies the nature of the value */
95
95
  valueReference: Scalars['String'];
96
96
  };
97
- /** Selected facet input. */
97
+ /** Selected search facet input. */
98
98
  export declare type IStoreSelectedFacet = {
99
+ /** Selected search facet key. */
99
100
  key: Scalars['String'];
101
+ /** Selected search facet value. */
100
102
  value: Scalars['String'];
101
103
  };
102
104
  /** Session input. */
@@ -116,9 +118,9 @@ export declare type IStoreSession = {
116
118
  };
117
119
  export declare type Mutation = {
118
120
  __typename?: 'Mutation';
119
- /** Returns the order if anything has changed in it, or `null` if the order is valid. */
121
+ /** Checks for changes between the cart presented in the UI and the cart stored in the ecommerce platform. If changes are detected, it returns the cart stored on the platform. Otherwise, it returns `null`. */
120
122
  validateCart?: Maybe<StoreCart>;
121
- /** Validate session information. */
123
+ /** Updates a web session with the specified values. */
122
124
  validateSession?: Maybe<StoreSession>;
123
125
  };
124
126
  export declare type MutationValidateCartArgs = {
@@ -130,15 +132,15 @@ export declare type MutationValidateSessionArgs = {
130
132
  };
131
133
  export declare type Query = {
132
134
  __typename?: 'Query';
133
- /** All collections query. */
135
+ /** Returns information about all collections. */
134
136
  allCollections: StoreCollectionConnection;
135
- /** All products query. */
137
+ /** Returns information about all products. */
136
138
  allProducts: StoreProductConnection;
137
- /** Collection query. */
139
+ /** Returns the details of a collection based on the collection slug. */
138
140
  collection: StoreCollection;
139
- /** Product query. */
141
+ /** Returns the details of a product based on the specified locator. */
140
142
  product: StoreProduct;
141
- /** Search query. */
143
+ /** Returns the result of a product, facet, or suggestion search. */
142
144
  search: StoreSearchResult;
143
145
  };
144
146
  export declare type QueryAllCollectionsArgs = {
@@ -215,7 +217,7 @@ export declare type StoreCart = {
215
217
  /** Shopping cart message. */
216
218
  export declare type StoreCartMessage = {
217
219
  __typename?: 'StoreCartMessage';
218
- /** Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`. */
220
+ /** Shopping cart message status, which can be `INFO`, `WARNING` or `ERROR`. */
219
221
  status: StoreStatus;
220
222
  /** Shopping cart message text. */
221
223
  text: Scalars['String'];
@@ -236,20 +238,20 @@ export declare type StoreCollection = {
236
238
  /** Collection type. */
237
239
  type: StoreCollectionType;
238
240
  };
239
- /** Collection connection pagination information. */
241
+ /** Collection connections, including pagination information and collections returned by the query. */
240
242
  export declare type StoreCollectionConnection = {
241
243
  __typename?: 'StoreCollectionConnection';
242
- /** Array with collection connection page edges. */
244
+ /** Array with collection connection page edges, each containing a collection and a corresponding cursor.. */
243
245
  edges: Array<StoreCollectionEdge>;
244
- /** Collection connection page information. */
246
+ /** Collection pagination information. */
245
247
  pageInfo: StorePageInfo;
246
248
  };
247
- /** Collection pagination edge. */
249
+ /** Each collection edge contains a `node`, with product collection information, and a `cursor`, that can be used as a reference for pagination. */
248
250
  export declare type StoreCollectionEdge = {
249
251
  __typename?: 'StoreCollectionEdge';
250
- /** Collection pagination cursor. */
252
+ /** Collection cursor. Used as pagination reference. */
251
253
  cursor: Scalars['String'];
252
- /** Collection pagination node. */
254
+ /** Each collection node contains the information of a product collection returned by the query. */
253
255
  node: StoreCollection;
254
256
  };
255
257
  /** Product collection facet, used for search. */
@@ -268,17 +270,21 @@ export declare type StoreCollectionMeta = {
268
270
  };
269
271
  /** Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`. */
270
272
  export declare const enum StoreCollectionType {
273
+ /** Product brand. */
271
274
  Brand = "Brand",
275
+ /** Second level of product categorization. */
272
276
  Category = "Category",
277
+ /** Product cluster. */
273
278
  Cluster = "Cluster",
279
+ /** First level of product categorization. */
274
280
  Department = "Department"
275
281
  }
276
282
  /** Currency information. */
277
283
  export declare type StoreCurrency = {
278
284
  __typename?: 'StoreCurrency';
279
- /** Currency code, e.g: USD */
285
+ /** Currency code (e.g: USD). */
280
286
  code: Scalars['String'];
281
- /** Currency symbol, e.g: $ */
287
+ /** Currency symbol (e.g: $). */
282
288
  symbol: Scalars['String'];
283
289
  };
284
290
  /** Search facet information. */
@@ -295,7 +301,9 @@ export declare type StoreFacet = {
295
301
  };
296
302
  /** Search facet type. */
297
303
  export declare const enum StoreFacetType {
304
+ /** Indicates boolean search facet. */
298
305
  Boolean = "BOOLEAN",
306
+ /** Indicates range type search facet. */
299
307
  Range = "RANGE"
300
308
  }
301
309
  /** Information of a specific facet value. */
@@ -366,16 +374,16 @@ export declare type StoreOrganization = {
366
374
  /** Organization ID. */
367
375
  identifier: Scalars['String'];
368
376
  };
369
- /** Page information. */
377
+ /** Whenever you make a query that allows for pagination, such as `allProducts` or `allCollections`, you can check `StorePageInfo` to learn more about the complete set of items and use it to paginate your queries. */
370
378
  export declare type StorePageInfo = {
371
379
  __typename?: 'StorePageInfo';
372
- /** Page cursor end. */
380
+ /** Cursor corresponding to the last possible item. */
373
381
  endCursor: Scalars['String'];
374
- /** Indicates whether next page exists. */
382
+ /** Indicates whether there is at least one more page with items after the ones returned in the current query. */
375
383
  hasNextPage: Scalars['Boolean'];
376
- /** Indicates whether previous page exists. */
384
+ /** Indicates whether there is at least one more page with items before the ones returned in the current query. */
377
385
  hasPreviousPage: Scalars['Boolean'];
378
- /** Page cursor start. */
386
+ /** Cursor corresponding to the first possible item. */
379
387
  startCursor: Scalars['String'];
380
388
  /** Total number of items (products or collections), not pages. */
381
389
  totalCount: Scalars['Int'];
@@ -426,20 +434,20 @@ export declare type StoreProduct = {
426
434
  /** Corresponding collection URL slug, with which to retrieve this entity. */
427
435
  slug: Scalars['String'];
428
436
  };
429
- /** Product connection pagination information. */
437
+ /** Product connections, including pagination information and products returned by the query. */
430
438
  export declare type StoreProductConnection = {
431
439
  __typename?: 'StoreProductConnection';
432
- /** Array with product connection page edges. */
440
+ /** Array with product connection edges, each containing a product and a corresponding cursor. */
433
441
  edges: Array<StoreProductEdge>;
434
- /** Product connection page information. */
442
+ /** Product pagination information. */
435
443
  pageInfo: StorePageInfo;
436
444
  };
437
- /** Product pagination edge. */
445
+ /** Each product edge contains a `node`, with product information, and a `cursor`, that can be used as a reference for pagination. */
438
446
  export declare type StoreProductEdge = {
439
447
  __typename?: 'StoreProductEdge';
440
- /** Product pagination cursor. */
448
+ /** Product cursor. Used as pagination reference. */
441
449
  cursor: Scalars['String'];
442
- /** Product pagination node. */
450
+ /** Each product node contains the information of a product returned by the query. */
443
451
  node: StoreProduct;
444
452
  };
445
453
  /** Product group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on. */
@@ -520,18 +528,26 @@ export declare type StoreSession = {
520
528
  /** Session postal code. */
521
529
  postalCode?: Maybe<Scalars['String']>;
522
530
  };
523
- /** Product sorting options used in search. */
531
+ /** Product search results sorting options. */
524
532
  export declare const enum StoreSort {
533
+ /** Sort by discount value, from highest to lowest. */
525
534
  DiscountDesc = "discount_desc",
535
+ /** Sort by name, in alphabetical order. */
526
536
  NameAsc = "name_asc",
537
+ /** Sort by name, in reverse alphabetical order. */
527
538
  NameDesc = "name_desc",
539
+ /** Sort by orders, from highest to lowest. */
528
540
  OrdersDesc = "orders_desc",
541
+ /** Sort by price, from lowest to highest. */
529
542
  PriceAsc = "price_asc",
543
+ /** Sort by price, from highest to lowest. */
530
544
  PriceDesc = "price_desc",
545
+ /** Sort by release date, from highest to lowest. */
531
546
  ReleaseDesc = "release_desc",
547
+ /** Sort by product score, from highest to lowest. */
532
548
  ScoreDesc = "score_desc"
533
549
  }
534
- /** Status used to indicate type of message. For instance, in shopping cart messages. */
550
+ /** Status used to indicate a message type. For instance, a shopping cart informative or error message. */
535
551
  export declare const enum StoreStatus {
536
552
  Error = "ERROR",
537
553
  Info = "INFO",