@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.
@@ -19,9 +19,9 @@ export type IStoreCart = {
19
19
  };
20
20
 
21
21
  export type IStoreCurrency = {
22
- /** Currency code, e.g: USD */
22
+ /** Currency code (e.g: USD). */
23
23
  code: Scalars['String'];
24
- /** Currency symbol, e.g: $ */
24
+ /** Currency symbol (e.g: $). */
25
25
  symbol: Scalars['String'];
26
26
  };
27
27
 
@@ -47,7 +47,7 @@ export type IStoreOffer = {
47
47
  seller: IStoreOrganization;
48
48
  };
49
49
 
50
- /** Offer input. */
50
+ /** Order input. */
51
51
  export type IStoreOrder = {
52
52
  /** Array with information on each accepted offer. */
53
53
  acceptedOffer: Array<IStoreOffer>;
@@ -96,9 +96,11 @@ export type IStorePropertyValue = {
96
96
  valueReference: Scalars['String'];
97
97
  };
98
98
 
99
- /** Selected facet input. */
99
+ /** Selected search facet input. */
100
100
  export type IStoreSelectedFacet = {
101
+ /** Selected search facet key. */
101
102
  key: Scalars['String'];
103
+ /** Selected search facet value. */
102
104
  value: Scalars['String'];
103
105
  };
104
106
 
@@ -120,9 +122,9 @@ export type IStoreSession = {
120
122
 
121
123
  export type Mutation = {
122
124
  __typename?: 'Mutation';
123
- /** Returns the order if anything has changed in it, or `null` if the order is valid. */
125
+ /** 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`. */
124
126
  validateCart?: Maybe<StoreCart>;
125
- /** Validate session information. */
127
+ /** Updates a web session with the specified values. */
126
128
  validateSession?: Maybe<StoreSession>;
127
129
  };
128
130
 
@@ -139,15 +141,15 @@ export type MutationValidateSessionArgs = {
139
141
 
140
142
  export type Query = {
141
143
  __typename?: 'Query';
142
- /** All collections query. */
144
+ /** Returns information about all collections. */
143
145
  allCollections: StoreCollectionConnection;
144
- /** All products query. */
146
+ /** Returns information about all products. */
145
147
  allProducts: StoreProductConnection;
146
- /** Collection query. */
148
+ /** Returns the details of a collection based on the collection slug. */
147
149
  collection: StoreCollection;
148
- /** Product query. */
150
+ /** Returns the details of a product based on the specified locator. */
149
151
  product: StoreProduct;
150
- /** Search query. */
152
+ /** Returns the result of a product, facet, or suggestion search. */
151
153
  search: StoreSearchResult;
152
154
  };
153
155
 
@@ -241,7 +243,7 @@ export type StoreCart = {
241
243
  /** Shopping cart message. */
242
244
  export type StoreCartMessage = {
243
245
  __typename?: 'StoreCartMessage';
244
- /** Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`. */
246
+ /** Shopping cart message status, which can be `INFO`, `WARNING` or `ERROR`. */
245
247
  status: StoreStatus;
246
248
  /** Shopping cart message text. */
247
249
  text: Scalars['String'];
@@ -264,21 +266,21 @@ export type StoreCollection = {
264
266
  type: StoreCollectionType;
265
267
  };
266
268
 
267
- /** Collection connection pagination information. */
269
+ /** Collection connections, including pagination information and collections returned by the query. */
268
270
  export type StoreCollectionConnection = {
269
271
  __typename?: 'StoreCollectionConnection';
270
- /** Array with collection connection page edges. */
272
+ /** Array with collection connection page edges, each containing a collection and a corresponding cursor.. */
271
273
  edges: Array<StoreCollectionEdge>;
272
- /** Collection connection page information. */
274
+ /** Collection pagination information. */
273
275
  pageInfo: StorePageInfo;
274
276
  };
275
277
 
276
- /** Collection pagination edge. */
278
+ /** Each collection edge contains a `node`, with product collection information, and a `cursor`, that can be used as a reference for pagination. */
277
279
  export type StoreCollectionEdge = {
278
280
  __typename?: 'StoreCollectionEdge';
279
- /** Collection pagination cursor. */
281
+ /** Collection cursor. Used as pagination reference. */
280
282
  cursor: Scalars['String'];
281
- /** Collection pagination node. */
283
+ /** Each collection node contains the information of a product collection returned by the query. */
282
284
  node: StoreCollection;
283
285
  };
284
286
 
@@ -300,18 +302,22 @@ export type StoreCollectionMeta = {
300
302
 
301
303
  /** Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`. */
302
304
  export const enum StoreCollectionType {
305
+ /** Product brand. */
303
306
  Brand = 'Brand',
307
+ /** Second level of product categorization. */
304
308
  Category = 'Category',
309
+ /** Product cluster. */
305
310
  Cluster = 'Cluster',
311
+ /** First level of product categorization. */
306
312
  Department = 'Department'
307
313
  };
308
314
 
309
315
  /** Currency information. */
310
316
  export type StoreCurrency = {
311
317
  __typename?: 'StoreCurrency';
312
- /** Currency code, e.g: USD */
318
+ /** Currency code (e.g: USD). */
313
319
  code: Scalars['String'];
314
- /** Currency symbol, e.g: $ */
320
+ /** Currency symbol (e.g: $). */
315
321
  symbol: Scalars['String'];
316
322
  };
317
323
 
@@ -330,7 +336,9 @@ export type StoreFacet = {
330
336
 
331
337
  /** Search facet type. */
332
338
  export const enum StoreFacetType {
339
+ /** Indicates boolean search facet. */
333
340
  Boolean = 'BOOLEAN',
341
+ /** Indicates range type search facet. */
334
342
  Range = 'RANGE'
335
343
  };
336
344
 
@@ -408,16 +416,16 @@ export type StoreOrganization = {
408
416
  identifier: Scalars['String'];
409
417
  };
410
418
 
411
- /** Page information. */
419
+ /** 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. */
412
420
  export type StorePageInfo = {
413
421
  __typename?: 'StorePageInfo';
414
- /** Page cursor end. */
422
+ /** Cursor corresponding to the last possible item. */
415
423
  endCursor: Scalars['String'];
416
- /** Indicates whether next page exists. */
424
+ /** Indicates whether there is at least one more page with items after the ones returned in the current query. */
417
425
  hasNextPage: Scalars['Boolean'];
418
- /** Indicates whether previous page exists. */
426
+ /** Indicates whether there is at least one more page with items before the ones returned in the current query. */
419
427
  hasPreviousPage: Scalars['Boolean'];
420
- /** Page cursor start. */
428
+ /** Cursor corresponding to the first possible item. */
421
429
  startCursor: Scalars['String'];
422
430
  /** Total number of items (products or collections), not pages. */
423
431
  totalCount: Scalars['Int'];
@@ -471,21 +479,21 @@ export type StoreProduct = {
471
479
  slug: Scalars['String'];
472
480
  };
473
481
 
474
- /** Product connection pagination information. */
482
+ /** Product connections, including pagination information and products returned by the query. */
475
483
  export type StoreProductConnection = {
476
484
  __typename?: 'StoreProductConnection';
477
- /** Array with product connection page edges. */
485
+ /** Array with product connection edges, each containing a product and a corresponding cursor. */
478
486
  edges: Array<StoreProductEdge>;
479
- /** Product connection page information. */
487
+ /** Product pagination information. */
480
488
  pageInfo: StorePageInfo;
481
489
  };
482
490
 
483
- /** Product pagination edge. */
491
+ /** Each product edge contains a `node`, with product information, and a `cursor`, that can be used as a reference for pagination. */
484
492
  export type StoreProductEdge = {
485
493
  __typename?: 'StoreProductEdge';
486
- /** Product pagination cursor. */
494
+ /** Product cursor. Used as pagination reference. */
487
495
  cursor: Scalars['String'];
488
- /** Product pagination node. */
496
+ /** Each product node contains the information of a product returned by the query. */
489
497
  node: StoreProduct;
490
498
  };
491
499
 
@@ -574,19 +582,27 @@ export type StoreSession = {
574
582
  postalCode?: Maybe<Scalars['String']>;
575
583
  };
576
584
 
577
- /** Product sorting options used in search. */
585
+ /** Product search results sorting options. */
578
586
  export const enum StoreSort {
587
+ /** Sort by discount value, from highest to lowest. */
579
588
  DiscountDesc = 'discount_desc',
589
+ /** Sort by name, in alphabetical order. */
580
590
  NameAsc = 'name_asc',
591
+ /** Sort by name, in reverse alphabetical order. */
581
592
  NameDesc = 'name_desc',
593
+ /** Sort by orders, from highest to lowest. */
582
594
  OrdersDesc = 'orders_desc',
595
+ /** Sort by price, from lowest to highest. */
583
596
  PriceAsc = 'price_asc',
597
+ /** Sort by price, from highest to lowest. */
584
598
  PriceDesc = 'price_desc',
599
+ /** Sort by release date, from highest to lowest. */
585
600
  ReleaseDesc = 'release_desc',
601
+ /** Sort by product score, from highest to lowest. */
586
602
  ScoreDesc = 'score_desc'
587
603
  };
588
604
 
589
- /** Status used to indicate type of message. For instance, in shopping cart messages. */
605
+ /** Status used to indicate a message type. For instance, a shopping cart informative or error message. */
590
606
  export const enum StoreStatus {
591
607
  Error = 'ERROR',
592
608
  Info = 'INFO',
@@ -7,7 +7,7 @@ type StoreCartMessage {
7
7
  """
8
8
  text: String!
9
9
  """
10
- Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`.
10
+ Shopping cart message status, which can be `INFO`, `WARNING` or `ERROR`.
11
11
  """
12
12
  status: StoreStatus!
13
13
  }
@@ -2,9 +2,21 @@
2
2
  Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`.
3
3
  """
4
4
  enum StoreCollectionType {
5
+ """
6
+ First level of product categorization.
7
+ """
5
8
  Department
9
+ """
10
+ Second level of product categorization.
11
+ """
6
12
  Category
13
+ """
14
+ Product brand.
15
+ """
7
16
  Brand
17
+ """
18
+ Product cluster.
19
+ """
8
20
  Cluster
9
21
  }
10
22
 
@@ -1,10 +1,10 @@
1
1
  type Mutation {
2
2
  """
3
- Returns the order if anything has changed in it, or `null` if the order is valid.
3
+ 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`.
4
4
  """
5
5
  validateCart(cart: IStoreCart!): StoreCart
6
6
  """
7
- Validate session information.
7
+ Updates a web session with the specified values.
8
8
  """
9
9
  validateSession(session: IStoreSession!, search: String!): StoreSession
10
10
  }
@@ -13,7 +13,7 @@ type StoreOrder {
13
13
  }
14
14
 
15
15
  """
16
- Offer input.
16
+ Order input.
17
17
  """
18
18
  input IStoreOrder {
19
19
  """
@@ -1,21 +1,21 @@
1
1
  """
2
- Page information.
2
+ 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.
3
3
  """
4
4
  type StorePageInfo {
5
5
  """
6
- Indicates whether next page exists.
6
+ Indicates whether there is at least one more page with items after the ones returned in the current query.
7
7
  """
8
8
  hasNextPage: Boolean!
9
9
  """
10
- Indicates whether previous page exists.
10
+ Indicates whether there is at least one more page with items before the ones returned in the current query.
11
11
  """
12
12
  hasPreviousPage: Boolean!
13
13
  """
14
- Page cursor start.
14
+ Cursor corresponding to the first possible item.
15
15
  """
16
16
  startCursor: String!
17
17
  """
18
- Page cursor end.
18
+ Cursor corresponding to the last possible item.
19
19
  """
20
20
  endCursor: String!
21
21
  """
@@ -1,78 +1,108 @@
1
1
  """
2
- Product pagination edge.
2
+ Each product edge contains a `node`, with product information, and a `cursor`, that can be used as a reference for pagination.
3
3
  """
4
4
  type StoreProductEdge {
5
5
  """
6
- Product pagination node.
6
+ Each product node contains the information of a product returned by the query.
7
7
  """
8
8
  node: StoreProduct!
9
9
  """
10
- Product pagination cursor.
10
+ Product cursor. Used as pagination reference.
11
11
  """
12
12
  cursor: String!
13
13
  }
14
14
 
15
15
  """
16
- Product connection pagination information.
16
+ Product connections, including pagination information and products returned by the query.
17
17
  """
18
18
  type StoreProductConnection {
19
19
  """
20
- Product connection page information.
20
+ Product pagination information.
21
21
  """
22
22
  pageInfo: StorePageInfo!
23
23
  """
24
- Array with product connection page edges.
24
+ Array with product connection edges, each containing a product and a corresponding cursor.
25
25
  """
26
26
  edges: [StoreProductEdge!]!
27
27
  }
28
28
 
29
29
  """
30
- Collection pagination edge.
30
+ Each collection edge contains a `node`, with product collection information, and a `cursor`, that can be used as a reference for pagination.
31
31
  """
32
32
  type StoreCollectionEdge {
33
33
  """
34
- Collection pagination node.
34
+ Each collection node contains the information of a product collection returned by the query.
35
35
  """
36
36
  node: StoreCollection!
37
37
  """
38
- Collection pagination cursor.
38
+ Collection cursor. Used as pagination reference.
39
39
  """
40
40
  cursor: String!
41
41
  }
42
42
 
43
43
  """
44
- Collection connection pagination information.
44
+ Collection connections, including pagination information and collections returned by the query.
45
45
  """
46
46
  type StoreCollectionConnection {
47
47
  """
48
- Collection connection page information.
48
+ Collection pagination information.
49
49
  """
50
50
  pageInfo: StorePageInfo!
51
51
  """
52
- Array with collection connection page edges.
52
+ Array with collection connection page edges, each containing a collection and a corresponding cursor..
53
53
  """
54
54
  edges: [StoreCollectionEdge!]!
55
55
  }
56
56
 
57
57
  """
58
- Product sorting options used in search.
58
+ Product search results sorting options.
59
59
  """
60
60
  enum StoreSort {
61
+ """
62
+ Sort by price, from highest to lowest.
63
+ """
61
64
  price_desc
65
+ """
66
+ Sort by price, from lowest to highest.
67
+ """
62
68
  price_asc
69
+ """
70
+ Sort by orders, from highest to lowest.
71
+ """
63
72
  orders_desc
73
+ """
74
+ Sort by name, in reverse alphabetical order.
75
+ """
64
76
  name_desc
77
+ """
78
+ Sort by name, in alphabetical order.
79
+ """
65
80
  name_asc
81
+ """
82
+ Sort by release date, from highest to lowest.
83
+ """
66
84
  release_desc
85
+ """
86
+ Sort by discount value, from highest to lowest.
87
+ """
67
88
  discount_desc
89
+ """
90
+ Sort by product score, from highest to lowest.
91
+ """
68
92
  score_desc
69
93
  }
70
94
 
71
95
  """
72
- Selected facet input.
96
+ Selected search facet input.
73
97
  """
74
98
  input IStoreSelectedFacet {
99
+ """
100
+ Selected search facet key.
101
+ """
75
102
  key: String!
103
+ """
104
+ Selected search facet value.
105
+ """
76
106
  value: String!
77
107
  }
78
108
 
@@ -80,7 +110,13 @@ input IStoreSelectedFacet {
80
110
  Search facet type.
81
111
  """
82
112
  enum StoreFacetType {
113
+ """
114
+ Indicates boolean search facet.
115
+ """
83
116
  BOOLEAN
117
+ """
118
+ Indicates range type search facet.
119
+ """
84
120
  RANGE
85
121
  }
86
122
 
@@ -132,17 +168,17 @@ type StoreSearchResult {
132
168
 
133
169
  type Query {
134
170
  """
135
- Product query.
171
+ Returns the details of a product based on the specified locator.
136
172
  """
137
173
  product(
138
174
  """
139
- Product query locator, which receives an array of selected search facets.
175
+ An array of selected search facets.
140
176
  """
141
177
  locator: [IStoreSelectedFacet!]!
142
178
  ): StoreProduct!
143
179
 
144
180
  """
145
- Collection query.
181
+ Returns the details of a collection based on the collection slug.
146
182
  """
147
183
  collection(
148
184
  """
@@ -152,7 +188,7 @@ type Query {
152
188
  ): StoreCollection!
153
189
 
154
190
  """
155
- Search query.
191
+ Returns the result of a product, facet, or suggestion search.
156
192
  """
157
193
  search(
158
194
  """
@@ -160,7 +196,7 @@ type Query {
160
196
  """
161
197
  first: Int!
162
198
  """
163
- Search pagination argument, indicating the item after which the results should be fetched.
199
+ Search pagination argument, indicating the cursor corresponding with the item after which the results should be fetched.
164
200
  """
165
201
  after: String
166
202
  """
@@ -178,7 +214,7 @@ type Query {
178
214
  ): StoreSearchResult!
179
215
 
180
216
  """
181
- All products query.
217
+ Returns information about all products.
182
218
  """
183
219
  allProducts(
184
220
  """
@@ -186,13 +222,13 @@ type Query {
186
222
  """
187
223
  first: Int!,
188
224
  """
189
- Product pagination argument, indicating the item after which the items should be fetched.
225
+ Product pagination argument, indicating the cursor corresponding with the item after which the items should be fetched.
190
226
  """
191
227
  after: String
192
228
  ): StoreProductConnection!
193
229
 
194
230
  """
195
- All collections query.
231
+ Returns information about all collections.
196
232
  """
197
233
  allCollections(
198
234
  """
@@ -200,7 +236,7 @@ type Query {
200
236
  """
201
237
  first: Int!,
202
238
  """
203
- Collection pagination argument, indicating the item after which the items should be fetched.
239
+ Collection pagination argument, indicating the cursor corresponding with the item after which the items should be fetched.
204
240
  """
205
241
  after: String
206
242
  ): StoreCollectionConnection!
@@ -3,22 +3,22 @@ Currency information.
3
3
  """
4
4
  type StoreCurrency {
5
5
  """
6
- Currency code, e.g: USD
6
+ Currency code (e.g: USD).
7
7
  """
8
8
  code: String!
9
9
  """
10
- Currency symbol, e.g: $
10
+ Currency symbol (e.g: $).
11
11
  """
12
12
  symbol: String!
13
13
  }
14
14
 
15
15
  input IStoreCurrency {
16
16
  """
17
- Currency code, e.g: USD
17
+ Currency code (e.g: USD).
18
18
  """
19
19
  code: String!
20
20
  """
21
- Currency symbol, e.g: $
21
+ Currency symbol (e.g: $).
22
22
  """
23
23
  symbol: String!
24
24
  }
@@ -1,5 +1,5 @@
1
1
  """
2
- Status used to indicate type of message. For instance, in shopping cart messages.
2
+ Status used to indicate a message type. For instance, a shopping cart informative or error message.
3
3
  """
4
4
  enum StoreStatus {
5
5
  INFO