@lana-commerce/core 12.0.0-alpha.4 → 13.0.0-alpha.1
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 +52 -39
- package/cjs/productFiltering.js +2 -5
- package/esm/productFiltering.js +2 -5
- package/package.json +1 -1
- package/types/json/commerceTypes.d.ts +2 -20
- package/types/json/storefrontTypes.d.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
8
8
|
|
|
9
9
|
### Major Changes
|
|
10
10
|
|
|
11
|
+
- Autocomplete APIs are removed in favor of "suggest" APIs.
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Update how "productFiltering" converts variant options to API search requests.
|
|
17
|
+
|
|
18
|
+
## [Released]
|
|
19
|
+
|
|
20
|
+
## 12.0.0 (2024-07-18)
|
|
21
|
+
|
|
22
|
+
### Major Changes
|
|
23
|
+
|
|
11
24
|
- Add new helper class PinInput. Refactor SixDigitInput to use it. Note that SixDigitInput's property is now called "onEnteredAllDigits" instead of "onEnteredSixDigits".
|
|
12
25
|
- Remove deprecated stripe payment method integrations:
|
|
13
26
|
- amex express checkout
|
|
@@ -24,7 +37,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
24
37
|
|
|
25
38
|
- Add missing "children" prop to RootCloseWrapper.
|
|
26
39
|
|
|
27
|
-
|
|
40
|
+
------------------------------------------------------------------------------------------------------------------
|
|
28
41
|
|
|
29
42
|
## 11.0.0 (2024-05-14)
|
|
30
43
|
|
|
@@ -61,7 +74,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
61
74
|
- Add support for tips (ui.js script loader).
|
|
62
75
|
- Add "filterFunc" lib.
|
|
63
76
|
|
|
64
|
-
|
|
77
|
+
------------------------------------------------------------------------------------------------------------------
|
|
65
78
|
|
|
66
79
|
## 10.0.0 (2023-06-13)
|
|
67
80
|
|
|
@@ -106,7 +119,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
106
119
|
- Customer info loading process no longer contributes to customer module's "somethingIsPending" store.
|
|
107
120
|
- Create return page (customer module) ignores some errors on init now, this helps with the case when no return policies were found.
|
|
108
121
|
|
|
109
|
-
|
|
122
|
+
------------------------------------------------------------------------------------------------------------------
|
|
110
123
|
|
|
111
124
|
## 9.0.0 (2023-01-27)
|
|
112
125
|
|
|
@@ -126,7 +139,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
126
139
|
- Add "uploadFileGeneric".
|
|
127
140
|
- Add "iterAllItems", kind of like "fetchAllItems", but as async iterator. Also add these for JSON API.
|
|
128
141
|
|
|
129
|
-
|
|
142
|
+
------------------------------------------------------------------------------------------------------------------
|
|
130
143
|
|
|
131
144
|
## 8.4.0 (2022-11-28)
|
|
132
145
|
|
|
@@ -134,7 +147,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
134
147
|
|
|
135
148
|
- Add "commerce" flag to GraphQLOpts. Useful if you want to use "request" lib against default commerce API endpoint.
|
|
136
149
|
|
|
137
|
-
|
|
150
|
+
------------------------------------------------------------------------------------------------------------------
|
|
138
151
|
|
|
139
152
|
## 8.3.0 (2022-11-25)
|
|
140
153
|
|
|
@@ -142,7 +155,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
142
155
|
|
|
143
156
|
- Add "error" and "error_count" fields to subscription graphql fragment.
|
|
144
157
|
|
|
145
|
-
|
|
158
|
+
------------------------------------------------------------------------------------------------------------------
|
|
146
159
|
|
|
147
160
|
## 8.2.0 (2022-11-24)
|
|
148
161
|
|
|
@@ -150,7 +163,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
150
163
|
|
|
151
164
|
- Bump deps and regenerate graphql types. Adds "too_many_subscriptions" order line item error.
|
|
152
165
|
|
|
153
|
-
|
|
166
|
+
------------------------------------------------------------------------------------------------------------------
|
|
154
167
|
|
|
155
168
|
## 8.1.0 (2022-11-24)
|
|
156
169
|
|
|
@@ -158,7 +171,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
158
171
|
|
|
159
172
|
- Bump deps and regenerate graphql types. Adds "pending_payment" state to subscriptions.
|
|
160
173
|
|
|
161
|
-
|
|
174
|
+
------------------------------------------------------------------------------------------------------------------
|
|
162
175
|
|
|
163
176
|
## 8.0.0 (2022-11-21)
|
|
164
177
|
|
|
@@ -179,7 +192,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
179
192
|
- A fix in internal customer model logic. It should not be allowed to store pages with parameters as "lastAuthPage". This breaks the logic if you switch between different customers which do not have items with the same id obviously.
|
|
180
193
|
- Fix "formatToJSX". There were some problematic edge cases when nested JSX elements were used in T-strings.
|
|
181
194
|
|
|
182
|
-
|
|
195
|
+
------------------------------------------------------------------------------------------------------------------
|
|
183
196
|
|
|
184
197
|
## 7.2.2 (2022-10-10)
|
|
185
198
|
|
|
@@ -187,7 +200,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
187
200
|
|
|
188
201
|
- Fix a bug in "isoStripTrailingZeros".
|
|
189
202
|
|
|
190
|
-
|
|
203
|
+
------------------------------------------------------------------------------------------------------------------
|
|
191
204
|
|
|
192
205
|
## 7.2.1 (2022-10-05)
|
|
193
206
|
|
|
@@ -195,7 +208,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
195
208
|
|
|
196
209
|
- Fix typo in "shopBuyURL". Add a test for it.
|
|
197
210
|
|
|
198
|
-
|
|
211
|
+
------------------------------------------------------------------------------------------------------------------
|
|
199
212
|
|
|
200
213
|
## 7.2.0 (2022-10-05)
|
|
201
214
|
|
|
@@ -203,7 +216,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
203
216
|
|
|
204
217
|
- Add "shopBuyURL" helper to "shopLinks" module.
|
|
205
218
|
|
|
206
|
-
|
|
219
|
+
------------------------------------------------------------------------------------------------------------------
|
|
207
220
|
|
|
208
221
|
## 7.1.0 (2022-10-04)
|
|
209
222
|
|
|
@@ -211,7 +224,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
211
224
|
|
|
212
225
|
- Codegen. Adds new invalid input error kind: "invalid_url_id".
|
|
213
226
|
|
|
214
|
-
|
|
227
|
+
------------------------------------------------------------------------------------------------------------------
|
|
215
228
|
|
|
216
229
|
## 7.0.0 (2022-10-04)
|
|
217
230
|
|
|
@@ -274,7 +287,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
274
287
|
- Properly reload product model on locale changes.
|
|
275
288
|
- Silence possible jwtDecode exception in getCustomerInfoFx.
|
|
276
289
|
|
|
277
|
-
|
|
290
|
+
------------------------------------------------------------------------------------------------------------------
|
|
278
291
|
|
|
279
292
|
## 6.0.0 (2022-04-20)
|
|
280
293
|
|
|
@@ -301,7 +314,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
301
314
|
- Add "details" component to request response, it can be used to form a more detailed error message.
|
|
302
315
|
- Fixes and improvements to customer module. Add oauth2 flow support. Expose "customerInfo" store and "message" event.
|
|
303
316
|
|
|
304
|
-
|
|
317
|
+
------------------------------------------------------------------------------------------------------------------
|
|
305
318
|
|
|
306
319
|
## 5.0.2 (2021-09-21)
|
|
307
320
|
|
|
@@ -309,7 +322,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
309
322
|
|
|
310
323
|
- Fix broken GraphQL operations.
|
|
311
324
|
|
|
312
|
-
|
|
325
|
+
------------------------------------------------------------------------------------------------------------------
|
|
313
326
|
|
|
314
327
|
## 5.0.1 (2021-09-21)
|
|
315
328
|
|
|
@@ -317,7 +330,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
317
330
|
|
|
318
331
|
- Bump deps, regenerate all graphql operations/fragments.
|
|
319
332
|
|
|
320
|
-
|
|
333
|
+
------------------------------------------------------------------------------------------------------------------
|
|
321
334
|
|
|
322
335
|
## 5.0.0 (2021-09-09)
|
|
323
336
|
|
|
@@ -325,7 +338,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
325
338
|
|
|
326
339
|
- Remove "children" field from categories. The API has changed. Categories API no longer has recursive types in it.
|
|
327
340
|
|
|
328
|
-
|
|
341
|
+
------------------------------------------------------------------------------------------------------------------
|
|
329
342
|
|
|
330
343
|
## 4.1.2 (2021-09-02)
|
|
331
344
|
|
|
@@ -333,7 +346,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
333
346
|
|
|
334
347
|
- GraphQL type compatibility fixes.
|
|
335
348
|
|
|
336
|
-
|
|
349
|
+
------------------------------------------------------------------------------------------------------------------
|
|
337
350
|
|
|
338
351
|
## 4.1.1 (2021-09-02)
|
|
339
352
|
|
|
@@ -341,7 +354,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
341
354
|
|
|
342
355
|
- On customer signup the "timezone_hint" is set to automatically inferred timezone name (via Intl API).
|
|
343
356
|
|
|
344
|
-
|
|
357
|
+
------------------------------------------------------------------------------------------------------------------
|
|
345
358
|
|
|
346
359
|
## 4.1.0 (2021-09-02)
|
|
347
360
|
|
|
@@ -349,7 +362,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
349
362
|
|
|
350
363
|
- Add "getTimezone()" utility function. Uses Intl API to get the current timezone.
|
|
351
364
|
|
|
352
|
-
|
|
365
|
+
------------------------------------------------------------------------------------------------------------------
|
|
353
366
|
|
|
354
367
|
## 4.0.0 (2021-07-27)
|
|
355
368
|
|
|
@@ -361,7 +374,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
361
374
|
- `low_stock`: when qty is > 0 and <= low_stock_level.
|
|
362
375
|
- `in_stock`: when qty is > 0 and > low_stock_level.
|
|
363
376
|
|
|
364
|
-
|
|
377
|
+
------------------------------------------------------------------------------------------------------------------
|
|
365
378
|
|
|
366
379
|
## 3.5.0 (2021-07-26)
|
|
367
380
|
|
|
@@ -369,7 +382,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
369
382
|
|
|
370
383
|
- Expand "CartVariant" definition. Include more fields (per location inventory data).
|
|
371
384
|
|
|
372
|
-
|
|
385
|
+
------------------------------------------------------------------------------------------------------------------
|
|
373
386
|
|
|
374
387
|
## 3.4.0 (2021-07-21)
|
|
375
388
|
|
|
@@ -380,7 +393,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
380
393
|
- Request API should now properly recognize timeout errors and report them as such (new SystemErrorType).
|
|
381
394
|
- Request API pauses between retries are reduced. Also a bit of jitter is added to pauses.
|
|
382
395
|
|
|
383
|
-
|
|
396
|
+
------------------------------------------------------------------------------------------------------------------
|
|
384
397
|
|
|
385
398
|
## 3.3.0 (2021-07-21)
|
|
386
399
|
|
|
@@ -388,7 +401,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
388
401
|
|
|
389
402
|
- Expand "CartVariant" definition. Include more fields.
|
|
390
403
|
|
|
391
|
-
|
|
404
|
+
------------------------------------------------------------------------------------------------------------------
|
|
392
405
|
|
|
393
406
|
## 3.2.0 (2021-07-21)
|
|
394
407
|
|
|
@@ -396,7 +409,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
396
409
|
|
|
397
410
|
- In product module fetch more data for "ReviewQuestionProduct". Making it compatible with "clay" idea of product.
|
|
398
411
|
|
|
399
|
-
|
|
412
|
+
------------------------------------------------------------------------------------------------------------------
|
|
400
413
|
|
|
401
414
|
## 3.1.0 (2021-07-16)
|
|
402
415
|
|
|
@@ -404,7 +417,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
404
417
|
|
|
405
418
|
- Accept "null" as "canonicalVariantURL" to "productSEO()". In this case canonical page urls won't be formed.
|
|
406
419
|
|
|
407
|
-
|
|
420
|
+
------------------------------------------------------------------------------------------------------------------
|
|
408
421
|
|
|
409
422
|
## 3.0.0 (2021-07-15)
|
|
410
423
|
|
|
@@ -450,7 +463,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
450
463
|
|
|
451
464
|
- Fix typo in file name: clearOnChangeAfterChange.ts -> clearOnChangeAfterDelay.ts.
|
|
452
465
|
|
|
453
|
-
|
|
466
|
+
------------------------------------------------------------------------------------------------------------------
|
|
454
467
|
|
|
455
468
|
## 2.4.0 (2021-05-21)
|
|
456
469
|
|
|
@@ -459,7 +472,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
459
472
|
- Add "getSessionID()" function. Which returns the current session id (analytics).
|
|
460
473
|
- Request API will use the result of getSessionID() if no sessionID provided.
|
|
461
474
|
|
|
462
|
-
|
|
475
|
+
------------------------------------------------------------------------------------------------------------------
|
|
463
476
|
|
|
464
477
|
## 2.3.0 (2021-05-21)
|
|
465
478
|
|
|
@@ -467,7 +480,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
467
480
|
|
|
468
481
|
- Product fragment now include "handle". It might be required for URL building.
|
|
469
482
|
|
|
470
|
-
|
|
483
|
+
------------------------------------------------------------------------------------------------------------------
|
|
471
484
|
|
|
472
485
|
## 2.2.0 (2021-05-21)
|
|
473
486
|
|
|
@@ -476,7 +489,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
476
489
|
- Add analytics helper functions.
|
|
477
490
|
- Analytics anonymous id is now implicitly propagated when submitting jwt to remote auth.
|
|
478
491
|
|
|
479
|
-
|
|
492
|
+
------------------------------------------------------------------------------------------------------------------
|
|
480
493
|
|
|
481
494
|
## 2.1.2 (2021-05-20)
|
|
482
495
|
|
|
@@ -484,7 +497,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
484
497
|
|
|
485
498
|
- Inline scripts cannot be deferred, use DOMContentLoaded instead.
|
|
486
499
|
|
|
487
|
-
|
|
500
|
+
------------------------------------------------------------------------------------------------------------------
|
|
488
501
|
|
|
489
502
|
## 2.1.1 (2021-05-20)
|
|
490
503
|
|
|
@@ -492,7 +505,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
492
505
|
|
|
493
506
|
- Use proper CDN URL when fetching last analytics lib version.
|
|
494
507
|
|
|
495
|
-
|
|
508
|
+
------------------------------------------------------------------------------------------------------------------
|
|
496
509
|
|
|
497
510
|
## 2.1.0 (2021-05-20)
|
|
498
511
|
|
|
@@ -500,7 +513,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
500
513
|
|
|
501
514
|
- Add "script" library. It's a helper lib that generates <script> and <style> tags for you. Supports analytics and trunkery ui.
|
|
502
515
|
|
|
503
|
-
|
|
516
|
+
------------------------------------------------------------------------------------------------------------------
|
|
504
517
|
|
|
505
518
|
## 2.0.0 (2021-05-18)
|
|
506
519
|
|
|
@@ -508,7 +521,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
508
521
|
|
|
509
522
|
- In "search" module replace "result" field in "Search<Product>" with a different type. It communicates explicitly the outcome of the search request: did it run? did it resulted in an error? did it succeed with some result (or none)?
|
|
510
523
|
|
|
511
|
-
|
|
524
|
+
------------------------------------------------------------------------------------------------------------------
|
|
512
525
|
|
|
513
526
|
## 1.1.0 (2021-05-14)
|
|
514
527
|
|
|
@@ -516,7 +529,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
516
529
|
|
|
517
530
|
- Export "PopperBinderParams" and "Placement" from popperBinder.
|
|
518
531
|
|
|
519
|
-
|
|
532
|
+
------------------------------------------------------------------------------------------------------------------
|
|
520
533
|
|
|
521
534
|
## 1.0.3 (2021-05-11)
|
|
522
535
|
|
|
@@ -524,7 +537,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
524
537
|
|
|
525
538
|
- Add CHANGELOG.
|
|
526
539
|
|
|
527
|
-
|
|
540
|
+
------------------------------------------------------------------------------------------------------------------
|
|
528
541
|
|
|
529
542
|
## 1.0.2 (2021-05-11)
|
|
530
543
|
|
|
@@ -532,7 +545,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
532
545
|
|
|
533
546
|
- Fix vendored popper.js files.
|
|
534
547
|
|
|
535
|
-
|
|
548
|
+
------------------------------------------------------------------------------------------------------------------
|
|
536
549
|
|
|
537
550
|
## 1.0.0 (2021-05-10)
|
|
538
551
|
|
|
@@ -540,7 +553,7 @@ This project adheres to [Semantic Versioning][semantic versioning].
|
|
|
540
553
|
|
|
541
554
|
- Initial release.
|
|
542
555
|
|
|
543
|
-
|
|
556
|
+
------------------------------------------------------------------------------------------------------------------
|
|
544
557
|
|
|
545
558
|
<!-- Links -->
|
|
546
559
|
|
package/cjs/productFiltering.js
CHANGED
|
@@ -102,11 +102,8 @@ function makeOptionFilter(optionID) {
|
|
|
102
102
|
return {
|
|
103
103
|
kind: "or",
|
|
104
104
|
opts: vals.map((val) => ({
|
|
105
|
-
kind: "
|
|
106
|
-
|
|
107
|
-
{ kind: "opt", opt: { op: "eq", name: "variants.options.option_id", text: optionID } },
|
|
108
|
-
{ kind: "opt", opt: { op: "eq", name: "variants.options.option_value_id", text: val } },
|
|
109
|
-
],
|
|
105
|
+
kind: "opt",
|
|
106
|
+
opt: { op: "eq", name: "variants.options", text: `${optionID}:${val}` },
|
|
110
107
|
})),
|
|
111
108
|
};
|
|
112
109
|
},
|
package/esm/productFiltering.js
CHANGED
|
@@ -96,11 +96,8 @@ export function makeOptionFilter(optionID) {
|
|
|
96
96
|
return {
|
|
97
97
|
kind: "or",
|
|
98
98
|
opts: vals.map((val) => ({
|
|
99
|
-
kind: "
|
|
100
|
-
|
|
101
|
-
{ kind: "opt", opt: { op: "eq", name: "variants.options.option_id", text: optionID } },
|
|
102
|
-
{ kind: "opt", opt: { op: "eq", name: "variants.options.option_value_id", text: val } },
|
|
103
|
-
],
|
|
99
|
+
kind: "opt",
|
|
100
|
+
opt: { op: "eq", name: "variants.options", text: `${optionID}:${val}` },
|
|
104
101
|
})),
|
|
105
102
|
};
|
|
106
103
|
},
|
package/package.json
CHANGED
|
@@ -9838,24 +9838,6 @@ export interface EndpointAuthRefresh extends Endpoint<EndpointAuthRefresh, Token
|
|
|
9838
9838
|
data(v: Token): EndpointAuthRefresh;
|
|
9839
9839
|
extract(v: Extractor<TokenAndUserID>): EndpointAuthRefresh;
|
|
9840
9840
|
}
|
|
9841
|
-
export interface EndpointAutocompleteCustomers extends Endpoint<EndpointAutocompleteCustomers, CustomerExpandableItems> {
|
|
9842
|
-
/** Unique shop identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
9843
|
-
shop_id(v: string): EndpointAutocompleteCustomers;
|
|
9844
|
-
data(v: Query): EndpointAutocompleteCustomers;
|
|
9845
|
-
expand(v: CustomerExpandableItemsExpansionMap): EndpointAutocompleteCustomers;
|
|
9846
|
-
extract(v: Extractor<CustomerExpandableItems>): EndpointAutocompleteCustomers;
|
|
9847
|
-
}
|
|
9848
|
-
export interface EndpointAutocompleteProducts extends Endpoint<EndpointAutocompleteProducts, ProductExpandableItems> {
|
|
9849
|
-
/** Ignore bundle variant types */
|
|
9850
|
-
ignore_bundles(v: boolean): EndpointAutocompleteProducts;
|
|
9851
|
-
/** Unique shop identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
9852
|
-
shop_id(v: string): EndpointAutocompleteProducts;
|
|
9853
|
-
/** Filter output by variant type */
|
|
9854
|
-
type(v: VariantTypeFilter): EndpointAutocompleteProducts;
|
|
9855
|
-
data(v: Query): EndpointAutocompleteProducts;
|
|
9856
|
-
expand(v: ProductExpandableItemsExpansionMap): EndpointAutocompleteProducts;
|
|
9857
|
-
extract(v: Extractor<ProductExpandableItems>): EndpointAutocompleteProducts;
|
|
9858
|
-
}
|
|
9859
9841
|
export interface EndpointBlogs extends Endpoint<EndpointBlogs, Array<Blog>> {
|
|
9860
9842
|
/** Output filtering */
|
|
9861
9843
|
fields(v: Array<string>): EndpointBlogs;
|
|
@@ -14027,6 +14009,8 @@ export interface EndpointSuggestProducts extends Endpoint<EndpointSuggestProduct
|
|
|
14027
14009
|
ignore_bundles(v: boolean): EndpointSuggestProducts;
|
|
14028
14010
|
/** Unique shop identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
14029
14011
|
shop_id(v: string): EndpointSuggestProducts;
|
|
14012
|
+
/** Filter output by variant type */
|
|
14013
|
+
type(v: VariantTypeFilter): EndpointSuggestProducts;
|
|
14030
14014
|
data(v: Query): EndpointSuggestProducts;
|
|
14031
14015
|
expand(v: ProductExpandableItemsExpansionMap): EndpointSuggestProducts;
|
|
14032
14016
|
extract(v: Extractor<ProductExpandableItems>): EndpointSuggestProducts;
|
|
@@ -14906,8 +14890,6 @@ export interface ReqFunction {
|
|
|
14906
14890
|
(ctx: Context, v: "POST:auth/password/reset.json"): EndpointAuthPasswordReset;
|
|
14907
14891
|
(ctx: Context, v: "POST:auth/password/verify.json"): EndpointAuthPasswordVerify;
|
|
14908
14892
|
(ctx: Context, v: "POST:auth/refresh.json"): EndpointAuthRefresh;
|
|
14909
|
-
(ctx: Context, v: "POST:autocomplete/customers.json"): EndpointAutocompleteCustomers;
|
|
14910
|
-
(ctx: Context, v: "POST:autocomplete/products.json"): EndpointAutocompleteProducts;
|
|
14911
14893
|
(ctx: Context, v: "GET:blogs.json"): EndpointBlogs;
|
|
14912
14894
|
(ctx: Context, v: "GET:blogs/page.json"): EndpointBlogsPage;
|
|
14913
14895
|
(ctx: Context, v: "GET:branding.json"): EndpointBranding;
|
|
@@ -3047,7 +3047,6 @@ export interface VariantOption {
|
|
|
3047
3047
|
option_value_name: string;
|
|
3048
3048
|
}
|
|
3049
3049
|
export type VariantType = "bundle" | "digital_good" | "gift_card" | "physical" | "service";
|
|
3050
|
-
export type VariantTypeFilter = "bundle" | "digital_good" | "gift_card" | "physical" | "service";
|
|
3051
3050
|
export interface AddressShortExpansionMap {
|
|
3052
3051
|
country?: true;
|
|
3053
3052
|
province?: true;
|
|
@@ -3508,15 +3507,6 @@ export interface EndpointStorefrontAuthRequest extends Endpoint<EndpointStorefro
|
|
|
3508
3507
|
shop_id(v: string): EndpointStorefrontAuthRequest;
|
|
3509
3508
|
extract(v: Extractor<FileURL>): EndpointStorefrontAuthRequest;
|
|
3510
3509
|
}
|
|
3511
|
-
export interface EndpointStorefrontAutocompleteProducts extends Endpoint<EndpointStorefrontAutocompleteProducts, StorefrontProductExpandableItems> {
|
|
3512
|
-
/** Unique shop identifier. See also: [Unique Identifiers](/overview/concepts/unique-identifiers) */
|
|
3513
|
-
shop_id(v: string): EndpointStorefrontAutocompleteProducts;
|
|
3514
|
-
/** Filter output by variant type */
|
|
3515
|
-
type(v: VariantTypeFilter): EndpointStorefrontAutocompleteProducts;
|
|
3516
|
-
data(v: Query): EndpointStorefrontAutocompleteProducts;
|
|
3517
|
-
expand(v: StorefrontProductExpandableItemsExpansionMap): EndpointStorefrontAutocompleteProducts;
|
|
3518
|
-
extract(v: Extractor<StorefrontProductExpandableItems>): EndpointStorefrontAutocompleteProducts;
|
|
3519
|
-
}
|
|
3520
3510
|
export interface EndpointStorefrontBranding extends Endpoint<EndpointStorefrontBranding, StorefrontBranding> {
|
|
3521
3511
|
/** Output filtering */
|
|
3522
3512
|
fields(v: Array<string>): EndpointStorefrontBranding;
|
|
@@ -4915,7 +4905,6 @@ export interface ReqFunction {
|
|
|
4915
4905
|
(ctx: Context, v: "POST:storefront/auth/password/verify.json"): EndpointStorefrontAuthPasswordVerify;
|
|
4916
4906
|
(ctx: Context, v: "POST:storefront/auth/refresh.json"): EndpointStorefrontAuthRefresh;
|
|
4917
4907
|
(ctx: Context, v: "POST:storefront/auth/request.json"): EndpointStorefrontAuthRequest;
|
|
4918
|
-
(ctx: Context, v: "POST:storefront/autocomplete/products.json"): EndpointStorefrontAutocompleteProducts;
|
|
4919
4908
|
(ctx: Context, v: "GET:storefront/branding.json"): EndpointStorefrontBranding;
|
|
4920
4909
|
(ctx: Context, v: "GET:storefront/branding/default.json"): EndpointStorefrontBrandingDefault;
|
|
4921
4910
|
(ctx: Context, v: "GET:storefront/brands.json"): EndpointStorefrontBrands;
|