@poweredbysous/storefront-all-sdk 4.20.0 → 5.0.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/index.cjs +2 -0
- package/dist/index.d.cts +318 -21
- package/dist/index.d.ts +318 -21
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -126,6 +126,8 @@ function isRequestInstance(input) {
|
|
|
126
126
|
// src/generated/retryability.ts
|
|
127
127
|
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
128
128
|
"KEYCLOAK_ERROR",
|
|
129
|
+
"LOYALTY_CODE_LOCKED",
|
|
130
|
+
"LOYALTY_CODE_RATE_LIMITED",
|
|
129
131
|
"MERCHANT_AT_CAPACITY",
|
|
130
132
|
"OTP_RATE_LIMIT_EXCEEDED",
|
|
131
133
|
"RATE_LIMITED",
|
package/dist/index.d.cts
CHANGED
|
@@ -592,16 +592,12 @@ interface paths {
|
|
|
592
592
|
cookie?: never;
|
|
593
593
|
};
|
|
594
594
|
/**
|
|
595
|
-
* @description The store's enabled cloud printers (an empty list: no cloud printing)
|
|
596
|
-
*
|
|
597
|
-
* Backoffice can add one.
|
|
595
|
+
* @description The store's enabled cloud printers (an empty list: no cloud printing),
|
|
596
|
+
* and adding one (setting up).
|
|
598
597
|
*/
|
|
599
598
|
get: operations["admin_printing_store_devices"];
|
|
600
599
|
put?: never;
|
|
601
|
-
/**
|
|
602
|
-
* @description Bind a printer with its provider for this store and save it
|
|
603
|
-
* (backoffice only).
|
|
604
|
-
*/
|
|
600
|
+
/** @description Bind a printer with its provider for this store and save it. */
|
|
605
601
|
post: operations["admin_printing_add_store_device"];
|
|
606
602
|
delete?: never;
|
|
607
603
|
options?: never;
|
|
@@ -622,7 +618,7 @@ interface paths {
|
|
|
622
618
|
delete?: never;
|
|
623
619
|
options?: never;
|
|
624
620
|
head?: never;
|
|
625
|
-
/** @description One printer of the store: change its tickets per order
|
|
621
|
+
/** @description One printer of the store: change its tickets per order. */
|
|
626
622
|
patch: operations["admin_printing_update_store_device"];
|
|
627
623
|
trace?: never;
|
|
628
624
|
};
|
|
@@ -635,7 +631,7 @@ interface paths {
|
|
|
635
631
|
};
|
|
636
632
|
get?: never;
|
|
637
633
|
put?: never;
|
|
638
|
-
/** @description A new
|
|
634
|
+
/** @description A new password for an Epson printer; the old one stops at once. */
|
|
639
635
|
post: operations["admin_printing_regenerate_store_device_url"];
|
|
640
636
|
delete?: never;
|
|
641
637
|
options?: never;
|
|
@@ -652,7 +648,11 @@ interface paths {
|
|
|
652
648
|
};
|
|
653
649
|
get?: never;
|
|
654
650
|
put?: never;
|
|
655
|
-
/**
|
|
651
|
+
/**
|
|
652
|
+
* @description Remove a printer for good: it stops printing, its history stays.
|
|
653
|
+
*
|
|
654
|
+
* Through the portal's server an Epson printer only: a Sunmi one is 404.
|
|
655
|
+
*/
|
|
656
656
|
post: operations["admin_printing_remove_store_device"];
|
|
657
657
|
delete?: never;
|
|
658
658
|
options?: never;
|
|
@@ -695,7 +695,9 @@ interface paths {
|
|
|
695
695
|
/**
|
|
696
696
|
* @description Print one Test print slip, with no order, on this printer.
|
|
697
697
|
*
|
|
698
|
-
* 202 with the job; a repeated ``request_id`` returns the first job.
|
|
698
|
+
* 202 with the job; a repeated ``request_id`` returns the first job. 429
|
|
699
|
+
* ``TEST_PRINT_PENDING`` while the printer's last Test print waits to be
|
|
700
|
+
* handed over.
|
|
699
701
|
*/
|
|
700
702
|
post: operations["admin_printing_test_print_store_device"];
|
|
701
703
|
delete?: never;
|
|
@@ -4015,9 +4017,8 @@ interface paths {
|
|
|
4015
4017
|
* @description GET /api/v1/loyalty/account/ — loyalty account summary for the
|
|
4016
4018
|
* authenticated user.
|
|
4017
4019
|
*
|
|
4018
|
-
* The ``user_id`` is derived from ``request.
|
|
4019
|
-
*
|
|
4020
|
-
* NEW-AUTH-3 / H3).
|
|
4020
|
+
* The ``user_id`` is derived from ``request.user`` — never from query
|
|
4021
|
+
* params (IDOR closure, NEW-AUTH-3 / H3).
|
|
4021
4022
|
*/
|
|
4022
4023
|
get: operations["loyalty_account_retrieve"];
|
|
4023
4024
|
put?: never;
|
|
@@ -4051,6 +4052,49 @@ interface paths {
|
|
|
4051
4052
|
patch?: never;
|
|
4052
4053
|
trace?: never;
|
|
4053
4054
|
};
|
|
4055
|
+
"/api/v1/loyalty/leat/code/": {
|
|
4056
|
+
parameters: {
|
|
4057
|
+
query?: never;
|
|
4058
|
+
header?: never;
|
|
4059
|
+
path?: never;
|
|
4060
|
+
cookie?: never;
|
|
4061
|
+
};
|
|
4062
|
+
get?: never;
|
|
4063
|
+
put?: never;
|
|
4064
|
+
/**
|
|
4065
|
+
* @description POST /api/v1/loyalty/leat/code/ — SOUS emails the customer a one-time code.
|
|
4066
|
+
*
|
|
4067
|
+
* WorkOS's Magic Auth sends it, for the customer's SOUS account.
|
|
4068
|
+
*/
|
|
4069
|
+
post: operations["loyalty_leat_code_create"];
|
|
4070
|
+
delete?: never;
|
|
4071
|
+
options?: never;
|
|
4072
|
+
head?: never;
|
|
4073
|
+
patch?: never;
|
|
4074
|
+
trace?: never;
|
|
4075
|
+
};
|
|
4076
|
+
"/api/v1/loyalty/leat/verify/": {
|
|
4077
|
+
parameters: {
|
|
4078
|
+
query?: never;
|
|
4079
|
+
header?: never;
|
|
4080
|
+
path?: never;
|
|
4081
|
+
cookie?: never;
|
|
4082
|
+
};
|
|
4083
|
+
get?: never;
|
|
4084
|
+
put?: never;
|
|
4085
|
+
/**
|
|
4086
|
+
* @description POST /api/v1/loyalty/leat/verify/ — check the code, open a loyalty session.
|
|
4087
|
+
*
|
|
4088
|
+
* The right code signs the customer in to their SOUS account (made for a new
|
|
4089
|
+
* email) and finds or creates their member in this store's Leat account.
|
|
4090
|
+
*/
|
|
4091
|
+
post: operations["loyalty_leat_verify_create"];
|
|
4092
|
+
delete?: never;
|
|
4093
|
+
options?: never;
|
|
4094
|
+
head?: never;
|
|
4095
|
+
patch?: never;
|
|
4096
|
+
trace?: never;
|
|
4097
|
+
};
|
|
4054
4098
|
"/api/v1/loyalty/profiles/{customer_profile_id}/": {
|
|
4055
4099
|
parameters: {
|
|
4056
4100
|
query?: never;
|
|
@@ -4062,7 +4106,7 @@ interface paths {
|
|
|
4062
4106
|
* @description GET /api/v1/loyalty/profiles/{customer_profile_id}/ — Zeemijlen summary.
|
|
4063
4107
|
*
|
|
4064
4108
|
* Customer-facing over the store HMAC channel: WorkOS storefronts have no
|
|
4065
|
-
*
|
|
4109
|
+
* customer JWT, so the customer is identified by the storefront
|
|
4066
4110
|
* ``CustomerProfile`` id that the trusted (HMAC) frontend resolves from the
|
|
4067
4111
|
* session — never by an end user directly (the id is scoped to this store).
|
|
4068
4112
|
* Returns a zeroed balance (not 404) when the customer has no account yet, so
|
|
@@ -9163,8 +9207,10 @@ interface components {
|
|
|
9163
9207
|
provider: components["schemas"]["ProviderEnum"];
|
|
9164
9208
|
/** @description Web Config "ID": the serial from the printer's label. */
|
|
9165
9209
|
printer_id: string;
|
|
9166
|
-
/** @description Web Config "URL"
|
|
9210
|
+
/** @description Web Config "URL": the same for every printer. */
|
|
9167
9211
|
poll_url: string;
|
|
9212
|
+
/** @description Web Config "Password", which the printer signs every request with (HTTP Digest, its ID as the user name). Secret: whoever has it can read the store's slips. */
|
|
9213
|
+
password: string;
|
|
9168
9214
|
/** @description Web Config "Interval". */
|
|
9169
9215
|
interval_seconds: number;
|
|
9170
9216
|
/** @description Web Config "Server Authentication": true Enable, false Disable. */
|
|
@@ -9521,6 +9567,37 @@ interface components {
|
|
|
9521
9567
|
* @enum {string}
|
|
9522
9568
|
*/
|
|
9523
9569
|
LanguagePreferenceEnum: "en" | "nl" | "de" | "fr" | "da" | "sv" | "nb" | "fi" | "es";
|
|
9570
|
+
LeatCode: {
|
|
9571
|
+
/** Format: email */
|
|
9572
|
+
email: string;
|
|
9573
|
+
/** @description The customer agreed to the text next to the email field. */
|
|
9574
|
+
consent: boolean;
|
|
9575
|
+
};
|
|
9576
|
+
LeatCodeSent: {
|
|
9577
|
+
/**
|
|
9578
|
+
* Format: email
|
|
9579
|
+
* @description Where the code went, normalised.
|
|
9580
|
+
*/
|
|
9581
|
+
email: string;
|
|
9582
|
+
};
|
|
9583
|
+
LeatSession: {
|
|
9584
|
+
/** @description Loyalty-only session: it reads this member's points, nothing else. */
|
|
9585
|
+
token: string;
|
|
9586
|
+
/** Format: email */
|
|
9587
|
+
email: string;
|
|
9588
|
+
/**
|
|
9589
|
+
* @description new when this join created the member.
|
|
9590
|
+
*
|
|
9591
|
+
* * `new` - new
|
|
9592
|
+
* * `existing` - existing
|
|
9593
|
+
*/
|
|
9594
|
+
member_status: components["schemas"]["MemberStatusEnum"];
|
|
9595
|
+
};
|
|
9596
|
+
LeatVerify: {
|
|
9597
|
+
/** Format: email */
|
|
9598
|
+
email: string;
|
|
9599
|
+
code: string;
|
|
9600
|
+
};
|
|
9524
9601
|
LibraryGroup: {
|
|
9525
9602
|
id: number;
|
|
9526
9603
|
title: string;
|
|
@@ -9795,6 +9872,12 @@ interface components {
|
|
|
9795
9872
|
party_sizes: number[];
|
|
9796
9873
|
/** @description Price divided by party size, in cents; null without a party size. */
|
|
9797
9874
|
price_per_person_cents: number | null;
|
|
9875
|
+
/** @description Smallest party of the box's generated party-size group; null when it has none, or when party_size_known is false. */
|
|
9876
|
+
party_size_from: number | null;
|
|
9877
|
+
/** @description False for a document indexed before party_size_from existed: then a null party_size_from says nothing. */
|
|
9878
|
+
party_size_known: boolean;
|
|
9879
|
+
/** @description Every party size a customer can choose in the box's generated party-size group, ascending: one entry is a fixed-size box, more a choice of sizes; empty without a group. Its first entry is party_size_from. Null for a document indexed before this field existed. Not party_sizes, the fixed party-size facet. */
|
|
9880
|
+
party_size_options: number[] | null;
|
|
9798
9881
|
/** @description Store-local dates in the next 90 days on which the cart would accept this product alone for delivery, ascending. A snapshot (see `availability_computed_at`): add-to-cart is the authority. */
|
|
9799
9882
|
servable_dates: string[];
|
|
9800
9883
|
};
|
|
@@ -9849,6 +9932,12 @@ interface components {
|
|
|
9849
9932
|
total_spent: string;
|
|
9850
9933
|
session_count: number;
|
|
9851
9934
|
};
|
|
9935
|
+
/**
|
|
9936
|
+
* @description * `new` - new
|
|
9937
|
+
* * `existing` - existing
|
|
9938
|
+
* @enum {string}
|
|
9939
|
+
*/
|
|
9940
|
+
MemberStatusEnum: "new" | "existing";
|
|
9852
9941
|
MerchantDashboard: {
|
|
9853
9942
|
/**
|
|
9854
9943
|
* Format: int64
|
|
@@ -10190,6 +10279,12 @@ interface components {
|
|
|
10190
10279
|
/** Format: date-time */
|
|
10191
10280
|
readonly updated_at: string;
|
|
10192
10281
|
};
|
|
10282
|
+
OrderCutoff: {
|
|
10283
|
+
/** Format: date-time */
|
|
10284
|
+
order_before: string;
|
|
10285
|
+
/** Format: date */
|
|
10286
|
+
date: string;
|
|
10287
|
+
};
|
|
10193
10288
|
OrderEdit: {
|
|
10194
10289
|
/** Format: uuid */
|
|
10195
10290
|
readonly id: string;
|
|
@@ -11313,10 +11408,10 @@ interface components {
|
|
|
11313
11408
|
*/
|
|
11314
11409
|
online_checked_at: string | null;
|
|
11315
11410
|
};
|
|
11316
|
-
/** @description
|
|
11411
|
+
/** @description Sous staff or a merchant adds a printer to the store in the URL. */
|
|
11317
11412
|
PrintDeviceCreateRequest: {
|
|
11318
11413
|
/**
|
|
11319
|
-
* @description The printer's make. Sunmi is bound with Sunmi; an Epson printer gets its own
|
|
11414
|
+
* @description The printer's make. Sunmi is bound with Sunmi; an Epson printer gets its own password (see the device's setup).
|
|
11320
11415
|
*
|
|
11321
11416
|
* * `sunmi` - Sunmi
|
|
11322
11417
|
* * `epson` - Epson
|
|
@@ -11614,6 +11709,8 @@ interface components {
|
|
|
11614
11709
|
/** Format: decimal */
|
|
11615
11710
|
readonly customer_service_fee: string | null;
|
|
11616
11711
|
readonly peak_delivery_dates: string[];
|
|
11712
|
+
readonly servable_dates: string[];
|
|
11713
|
+
readonly order_cutoff: components["schemas"]["OrderCutoff"] | null;
|
|
11617
11714
|
/** Format: date-time */
|
|
11618
11715
|
readonly created_at: string;
|
|
11619
11716
|
/** Format: date-time */
|
|
@@ -12740,6 +12837,7 @@ interface components {
|
|
|
12740
12837
|
image_url: string;
|
|
12741
12838
|
/** Format: decimal */
|
|
12742
12839
|
deposit_amount?: string | null;
|
|
12840
|
+
available_fulfillment_types: string[];
|
|
12743
12841
|
reason: string;
|
|
12744
12842
|
};
|
|
12745
12843
|
Surcharge: {
|
|
@@ -16329,7 +16427,7 @@ interface operations {
|
|
|
16329
16427
|
};
|
|
16330
16428
|
};
|
|
16331
16429
|
};
|
|
16332
|
-
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16430
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `TEST_PRINT_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16333
16431
|
429: {
|
|
16334
16432
|
headers: {
|
|
16335
16433
|
[name: string]: unknown;
|
|
@@ -23252,6 +23350,8 @@ interface operations {
|
|
|
23252
23350
|
cart_suggestions_list: {
|
|
23253
23351
|
parameters: {
|
|
23254
23352
|
query?: {
|
|
23353
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
23354
|
+
handover_date?: string;
|
|
23255
23355
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
23256
23356
|
lang?: string;
|
|
23257
23357
|
};
|
|
@@ -27096,6 +27196,8 @@ interface operations {
|
|
|
27096
27196
|
checkout_suggestions_list: {
|
|
27097
27197
|
parameters: {
|
|
27098
27198
|
query?: {
|
|
27199
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
27200
|
+
handover_date?: string;
|
|
27099
27201
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
27100
27202
|
lang?: string;
|
|
27101
27203
|
};
|
|
@@ -29810,7 +29912,9 @@ interface operations {
|
|
|
29810
29912
|
page?: number;
|
|
29811
29913
|
page_size?: number;
|
|
29812
29914
|
party_sizes?: number[];
|
|
29915
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows (see price_min). */
|
|
29813
29916
|
price_max?: number;
|
|
29917
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows: the price per person for a menu box with a party size, the price otherwise. */
|
|
29814
29918
|
price_min?: number;
|
|
29815
29919
|
/** @description Cents, inclusive. Excludes products with no party size. */
|
|
29816
29920
|
price_per_person_max?: number;
|
|
@@ -29820,7 +29924,9 @@ interface operations {
|
|
|
29820
29924
|
product_tags?: string[];
|
|
29821
29925
|
q?: string;
|
|
29822
29926
|
/**
|
|
29823
|
-
* @description
|
|
29927
|
+
* @description price_asc and price_desc order by the price a listing card shows (see price_min).
|
|
29928
|
+
*
|
|
29929
|
+
* * `relevance` - relevance
|
|
29824
29930
|
* * `price_asc` - price_asc
|
|
29825
29931
|
* * `price_desc` - price_desc
|
|
29826
29932
|
*/
|
|
@@ -30018,7 +30124,9 @@ interface operations {
|
|
|
30018
30124
|
page?: number;
|
|
30019
30125
|
page_size?: number;
|
|
30020
30126
|
party_sizes?: number[];
|
|
30127
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows (see price_min). */
|
|
30021
30128
|
price_max?: number;
|
|
30129
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows: the price per person for a menu box with a party size, the price otherwise. */
|
|
30022
30130
|
price_min?: number;
|
|
30023
30131
|
/** @description Cents, inclusive. Excludes products with no party size. */
|
|
30024
30132
|
price_per_person_max?: number;
|
|
@@ -30028,7 +30136,9 @@ interface operations {
|
|
|
30028
30136
|
product_tags?: string[];
|
|
30029
30137
|
q?: string;
|
|
30030
30138
|
/**
|
|
30031
|
-
* @description
|
|
30139
|
+
* @description price_asc and price_desc order by the price a listing card shows (see price_min).
|
|
30140
|
+
*
|
|
30141
|
+
* * `relevance` - relevance
|
|
30032
30142
|
* * `price_asc` - price_asc
|
|
30033
30143
|
* * `price_desc` - price_desc
|
|
30034
30144
|
*/
|
|
@@ -32411,6 +32521,191 @@ interface operations {
|
|
|
32411
32521
|
};
|
|
32412
32522
|
};
|
|
32413
32523
|
};
|
|
32524
|
+
loyalty_leat_code_create: {
|
|
32525
|
+
parameters: {
|
|
32526
|
+
query?: never;
|
|
32527
|
+
header?: never;
|
|
32528
|
+
path?: never;
|
|
32529
|
+
cookie?: never;
|
|
32530
|
+
};
|
|
32531
|
+
requestBody: {
|
|
32532
|
+
content: {
|
|
32533
|
+
"application/json": components["schemas"]["LeatCode"];
|
|
32534
|
+
"application/x-www-form-urlencoded": components["schemas"]["LeatCode"];
|
|
32535
|
+
"multipart/form-data": components["schemas"]["LeatCode"];
|
|
32536
|
+
};
|
|
32537
|
+
};
|
|
32538
|
+
responses: {
|
|
32539
|
+
202: {
|
|
32540
|
+
headers: {
|
|
32541
|
+
[name: string]: unknown;
|
|
32542
|
+
};
|
|
32543
|
+
content: {
|
|
32544
|
+
"application/json": components["schemas"]["LeatCodeSent"];
|
|
32545
|
+
};
|
|
32546
|
+
};
|
|
32547
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32548
|
+
400: {
|
|
32549
|
+
headers: {
|
|
32550
|
+
[name: string]: unknown;
|
|
32551
|
+
};
|
|
32552
|
+
content: {
|
|
32553
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32554
|
+
};
|
|
32555
|
+
};
|
|
32556
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32557
|
+
401: {
|
|
32558
|
+
headers: {
|
|
32559
|
+
[name: string]: unknown;
|
|
32560
|
+
};
|
|
32561
|
+
content: {
|
|
32562
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32563
|
+
};
|
|
32564
|
+
};
|
|
32565
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32566
|
+
403: {
|
|
32567
|
+
headers: {
|
|
32568
|
+
[name: string]: unknown;
|
|
32569
|
+
};
|
|
32570
|
+
content: {
|
|
32571
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32572
|
+
};
|
|
32573
|
+
};
|
|
32574
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32575
|
+
404: {
|
|
32576
|
+
headers: {
|
|
32577
|
+
[name: string]: unknown;
|
|
32578
|
+
};
|
|
32579
|
+
content: {
|
|
32580
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32581
|
+
};
|
|
32582
|
+
};
|
|
32583
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32584
|
+
429: {
|
|
32585
|
+
headers: {
|
|
32586
|
+
[name: string]: unknown;
|
|
32587
|
+
};
|
|
32588
|
+
content: {
|
|
32589
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32590
|
+
};
|
|
32591
|
+
};
|
|
32592
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32593
|
+
500: {
|
|
32594
|
+
headers: {
|
|
32595
|
+
[name: string]: unknown;
|
|
32596
|
+
};
|
|
32597
|
+
content: {
|
|
32598
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32599
|
+
};
|
|
32600
|
+
};
|
|
32601
|
+
/** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32602
|
+
503: {
|
|
32603
|
+
headers: {
|
|
32604
|
+
[name: string]: unknown;
|
|
32605
|
+
};
|
|
32606
|
+
content: {
|
|
32607
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32608
|
+
};
|
|
32609
|
+
};
|
|
32610
|
+
};
|
|
32611
|
+
};
|
|
32612
|
+
loyalty_leat_verify_create: {
|
|
32613
|
+
parameters: {
|
|
32614
|
+
query?: never;
|
|
32615
|
+
header?: never;
|
|
32616
|
+
path?: never;
|
|
32617
|
+
cookie?: never;
|
|
32618
|
+
};
|
|
32619
|
+
requestBody: {
|
|
32620
|
+
content: {
|
|
32621
|
+
"application/json": components["schemas"]["LeatVerify"];
|
|
32622
|
+
"application/x-www-form-urlencoded": components["schemas"]["LeatVerify"];
|
|
32623
|
+
"multipart/form-data": components["schemas"]["LeatVerify"];
|
|
32624
|
+
};
|
|
32625
|
+
};
|
|
32626
|
+
responses: {
|
|
32627
|
+
200: {
|
|
32628
|
+
headers: {
|
|
32629
|
+
[name: string]: unknown;
|
|
32630
|
+
};
|
|
32631
|
+
content: {
|
|
32632
|
+
"application/json": components["schemas"]["LeatSession"];
|
|
32633
|
+
};
|
|
32634
|
+
};
|
|
32635
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CONSENT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32636
|
+
400: {
|
|
32637
|
+
headers: {
|
|
32638
|
+
[name: string]: unknown;
|
|
32639
|
+
};
|
|
32640
|
+
content: {
|
|
32641
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32642
|
+
};
|
|
32643
|
+
};
|
|
32644
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32645
|
+
401: {
|
|
32646
|
+
headers: {
|
|
32647
|
+
[name: string]: unknown;
|
|
32648
|
+
};
|
|
32649
|
+
content: {
|
|
32650
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32651
|
+
};
|
|
32652
|
+
};
|
|
32653
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32654
|
+
403: {
|
|
32655
|
+
headers: {
|
|
32656
|
+
[name: string]: unknown;
|
|
32657
|
+
};
|
|
32658
|
+
content: {
|
|
32659
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32660
|
+
};
|
|
32661
|
+
};
|
|
32662
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32663
|
+
404: {
|
|
32664
|
+
headers: {
|
|
32665
|
+
[name: string]: unknown;
|
|
32666
|
+
};
|
|
32667
|
+
content: {
|
|
32668
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32669
|
+
};
|
|
32670
|
+
};
|
|
32671
|
+
/** @description Possible error codes include `LOYALTY_SIGN_IN_HELD`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32672
|
+
409: {
|
|
32673
|
+
headers: {
|
|
32674
|
+
[name: string]: unknown;
|
|
32675
|
+
};
|
|
32676
|
+
content: {
|
|
32677
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32678
|
+
};
|
|
32679
|
+
};
|
|
32680
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_LOCKED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32681
|
+
429: {
|
|
32682
|
+
headers: {
|
|
32683
|
+
[name: string]: unknown;
|
|
32684
|
+
};
|
|
32685
|
+
content: {
|
|
32686
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32687
|
+
};
|
|
32688
|
+
};
|
|
32689
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32690
|
+
500: {
|
|
32691
|
+
headers: {
|
|
32692
|
+
[name: string]: unknown;
|
|
32693
|
+
};
|
|
32694
|
+
content: {
|
|
32695
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32696
|
+
};
|
|
32697
|
+
};
|
|
32698
|
+
/** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32699
|
+
503: {
|
|
32700
|
+
headers: {
|
|
32701
|
+
[name: string]: unknown;
|
|
32702
|
+
};
|
|
32703
|
+
content: {
|
|
32704
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32705
|
+
};
|
|
32706
|
+
};
|
|
32707
|
+
};
|
|
32708
|
+
};
|
|
32414
32709
|
loyalty_profile_summary: {
|
|
32415
32710
|
parameters: {
|
|
32416
32711
|
query?: never;
|
|
@@ -41892,6 +42187,8 @@ interface operations {
|
|
|
41892
42187
|
products_suggestions_list: {
|
|
41893
42188
|
parameters: {
|
|
41894
42189
|
query?: {
|
|
42190
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
42191
|
+
handover_date?: string;
|
|
41895
42192
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
41896
42193
|
lang?: string;
|
|
41897
42194
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -592,16 +592,12 @@ interface paths {
|
|
|
592
592
|
cookie?: never;
|
|
593
593
|
};
|
|
594
594
|
/**
|
|
595
|
-
* @description The store's enabled cloud printers (an empty list: no cloud printing)
|
|
596
|
-
*
|
|
597
|
-
* Backoffice can add one.
|
|
595
|
+
* @description The store's enabled cloud printers (an empty list: no cloud printing),
|
|
596
|
+
* and adding one (setting up).
|
|
598
597
|
*/
|
|
599
598
|
get: operations["admin_printing_store_devices"];
|
|
600
599
|
put?: never;
|
|
601
|
-
/**
|
|
602
|
-
* @description Bind a printer with its provider for this store and save it
|
|
603
|
-
* (backoffice only).
|
|
604
|
-
*/
|
|
600
|
+
/** @description Bind a printer with its provider for this store and save it. */
|
|
605
601
|
post: operations["admin_printing_add_store_device"];
|
|
606
602
|
delete?: never;
|
|
607
603
|
options?: never;
|
|
@@ -622,7 +618,7 @@ interface paths {
|
|
|
622
618
|
delete?: never;
|
|
623
619
|
options?: never;
|
|
624
620
|
head?: never;
|
|
625
|
-
/** @description One printer of the store: change its tickets per order
|
|
621
|
+
/** @description One printer of the store: change its tickets per order. */
|
|
626
622
|
patch: operations["admin_printing_update_store_device"];
|
|
627
623
|
trace?: never;
|
|
628
624
|
};
|
|
@@ -635,7 +631,7 @@ interface paths {
|
|
|
635
631
|
};
|
|
636
632
|
get?: never;
|
|
637
633
|
put?: never;
|
|
638
|
-
/** @description A new
|
|
634
|
+
/** @description A new password for an Epson printer; the old one stops at once. */
|
|
639
635
|
post: operations["admin_printing_regenerate_store_device_url"];
|
|
640
636
|
delete?: never;
|
|
641
637
|
options?: never;
|
|
@@ -652,7 +648,11 @@ interface paths {
|
|
|
652
648
|
};
|
|
653
649
|
get?: never;
|
|
654
650
|
put?: never;
|
|
655
|
-
/**
|
|
651
|
+
/**
|
|
652
|
+
* @description Remove a printer for good: it stops printing, its history stays.
|
|
653
|
+
*
|
|
654
|
+
* Through the portal's server an Epson printer only: a Sunmi one is 404.
|
|
655
|
+
*/
|
|
656
656
|
post: operations["admin_printing_remove_store_device"];
|
|
657
657
|
delete?: never;
|
|
658
658
|
options?: never;
|
|
@@ -695,7 +695,9 @@ interface paths {
|
|
|
695
695
|
/**
|
|
696
696
|
* @description Print one Test print slip, with no order, on this printer.
|
|
697
697
|
*
|
|
698
|
-
* 202 with the job; a repeated ``request_id`` returns the first job.
|
|
698
|
+
* 202 with the job; a repeated ``request_id`` returns the first job. 429
|
|
699
|
+
* ``TEST_PRINT_PENDING`` while the printer's last Test print waits to be
|
|
700
|
+
* handed over.
|
|
699
701
|
*/
|
|
700
702
|
post: operations["admin_printing_test_print_store_device"];
|
|
701
703
|
delete?: never;
|
|
@@ -4015,9 +4017,8 @@ interface paths {
|
|
|
4015
4017
|
* @description GET /api/v1/loyalty/account/ — loyalty account summary for the
|
|
4016
4018
|
* authenticated user.
|
|
4017
4019
|
*
|
|
4018
|
-
* The ``user_id`` is derived from ``request.
|
|
4019
|
-
*
|
|
4020
|
-
* NEW-AUTH-3 / H3).
|
|
4020
|
+
* The ``user_id`` is derived from ``request.user`` — never from query
|
|
4021
|
+
* params (IDOR closure, NEW-AUTH-3 / H3).
|
|
4021
4022
|
*/
|
|
4022
4023
|
get: operations["loyalty_account_retrieve"];
|
|
4023
4024
|
put?: never;
|
|
@@ -4051,6 +4052,49 @@ interface paths {
|
|
|
4051
4052
|
patch?: never;
|
|
4052
4053
|
trace?: never;
|
|
4053
4054
|
};
|
|
4055
|
+
"/api/v1/loyalty/leat/code/": {
|
|
4056
|
+
parameters: {
|
|
4057
|
+
query?: never;
|
|
4058
|
+
header?: never;
|
|
4059
|
+
path?: never;
|
|
4060
|
+
cookie?: never;
|
|
4061
|
+
};
|
|
4062
|
+
get?: never;
|
|
4063
|
+
put?: never;
|
|
4064
|
+
/**
|
|
4065
|
+
* @description POST /api/v1/loyalty/leat/code/ — SOUS emails the customer a one-time code.
|
|
4066
|
+
*
|
|
4067
|
+
* WorkOS's Magic Auth sends it, for the customer's SOUS account.
|
|
4068
|
+
*/
|
|
4069
|
+
post: operations["loyalty_leat_code_create"];
|
|
4070
|
+
delete?: never;
|
|
4071
|
+
options?: never;
|
|
4072
|
+
head?: never;
|
|
4073
|
+
patch?: never;
|
|
4074
|
+
trace?: never;
|
|
4075
|
+
};
|
|
4076
|
+
"/api/v1/loyalty/leat/verify/": {
|
|
4077
|
+
parameters: {
|
|
4078
|
+
query?: never;
|
|
4079
|
+
header?: never;
|
|
4080
|
+
path?: never;
|
|
4081
|
+
cookie?: never;
|
|
4082
|
+
};
|
|
4083
|
+
get?: never;
|
|
4084
|
+
put?: never;
|
|
4085
|
+
/**
|
|
4086
|
+
* @description POST /api/v1/loyalty/leat/verify/ — check the code, open a loyalty session.
|
|
4087
|
+
*
|
|
4088
|
+
* The right code signs the customer in to their SOUS account (made for a new
|
|
4089
|
+
* email) and finds or creates their member in this store's Leat account.
|
|
4090
|
+
*/
|
|
4091
|
+
post: operations["loyalty_leat_verify_create"];
|
|
4092
|
+
delete?: never;
|
|
4093
|
+
options?: never;
|
|
4094
|
+
head?: never;
|
|
4095
|
+
patch?: never;
|
|
4096
|
+
trace?: never;
|
|
4097
|
+
};
|
|
4054
4098
|
"/api/v1/loyalty/profiles/{customer_profile_id}/": {
|
|
4055
4099
|
parameters: {
|
|
4056
4100
|
query?: never;
|
|
@@ -4062,7 +4106,7 @@ interface paths {
|
|
|
4062
4106
|
* @description GET /api/v1/loyalty/profiles/{customer_profile_id}/ — Zeemijlen summary.
|
|
4063
4107
|
*
|
|
4064
4108
|
* Customer-facing over the store HMAC channel: WorkOS storefronts have no
|
|
4065
|
-
*
|
|
4109
|
+
* customer JWT, so the customer is identified by the storefront
|
|
4066
4110
|
* ``CustomerProfile`` id that the trusted (HMAC) frontend resolves from the
|
|
4067
4111
|
* session — never by an end user directly (the id is scoped to this store).
|
|
4068
4112
|
* Returns a zeroed balance (not 404) when the customer has no account yet, so
|
|
@@ -9163,8 +9207,10 @@ interface components {
|
|
|
9163
9207
|
provider: components["schemas"]["ProviderEnum"];
|
|
9164
9208
|
/** @description Web Config "ID": the serial from the printer's label. */
|
|
9165
9209
|
printer_id: string;
|
|
9166
|
-
/** @description Web Config "URL"
|
|
9210
|
+
/** @description Web Config "URL": the same for every printer. */
|
|
9167
9211
|
poll_url: string;
|
|
9212
|
+
/** @description Web Config "Password", which the printer signs every request with (HTTP Digest, its ID as the user name). Secret: whoever has it can read the store's slips. */
|
|
9213
|
+
password: string;
|
|
9168
9214
|
/** @description Web Config "Interval". */
|
|
9169
9215
|
interval_seconds: number;
|
|
9170
9216
|
/** @description Web Config "Server Authentication": true Enable, false Disable. */
|
|
@@ -9521,6 +9567,37 @@ interface components {
|
|
|
9521
9567
|
* @enum {string}
|
|
9522
9568
|
*/
|
|
9523
9569
|
LanguagePreferenceEnum: "en" | "nl" | "de" | "fr" | "da" | "sv" | "nb" | "fi" | "es";
|
|
9570
|
+
LeatCode: {
|
|
9571
|
+
/** Format: email */
|
|
9572
|
+
email: string;
|
|
9573
|
+
/** @description The customer agreed to the text next to the email field. */
|
|
9574
|
+
consent: boolean;
|
|
9575
|
+
};
|
|
9576
|
+
LeatCodeSent: {
|
|
9577
|
+
/**
|
|
9578
|
+
* Format: email
|
|
9579
|
+
* @description Where the code went, normalised.
|
|
9580
|
+
*/
|
|
9581
|
+
email: string;
|
|
9582
|
+
};
|
|
9583
|
+
LeatSession: {
|
|
9584
|
+
/** @description Loyalty-only session: it reads this member's points, nothing else. */
|
|
9585
|
+
token: string;
|
|
9586
|
+
/** Format: email */
|
|
9587
|
+
email: string;
|
|
9588
|
+
/**
|
|
9589
|
+
* @description new when this join created the member.
|
|
9590
|
+
*
|
|
9591
|
+
* * `new` - new
|
|
9592
|
+
* * `existing` - existing
|
|
9593
|
+
*/
|
|
9594
|
+
member_status: components["schemas"]["MemberStatusEnum"];
|
|
9595
|
+
};
|
|
9596
|
+
LeatVerify: {
|
|
9597
|
+
/** Format: email */
|
|
9598
|
+
email: string;
|
|
9599
|
+
code: string;
|
|
9600
|
+
};
|
|
9524
9601
|
LibraryGroup: {
|
|
9525
9602
|
id: number;
|
|
9526
9603
|
title: string;
|
|
@@ -9795,6 +9872,12 @@ interface components {
|
|
|
9795
9872
|
party_sizes: number[];
|
|
9796
9873
|
/** @description Price divided by party size, in cents; null without a party size. */
|
|
9797
9874
|
price_per_person_cents: number | null;
|
|
9875
|
+
/** @description Smallest party of the box's generated party-size group; null when it has none, or when party_size_known is false. */
|
|
9876
|
+
party_size_from: number | null;
|
|
9877
|
+
/** @description False for a document indexed before party_size_from existed: then a null party_size_from says nothing. */
|
|
9878
|
+
party_size_known: boolean;
|
|
9879
|
+
/** @description Every party size a customer can choose in the box's generated party-size group, ascending: one entry is a fixed-size box, more a choice of sizes; empty without a group. Its first entry is party_size_from. Null for a document indexed before this field existed. Not party_sizes, the fixed party-size facet. */
|
|
9880
|
+
party_size_options: number[] | null;
|
|
9798
9881
|
/** @description Store-local dates in the next 90 days on which the cart would accept this product alone for delivery, ascending. A snapshot (see `availability_computed_at`): add-to-cart is the authority. */
|
|
9799
9882
|
servable_dates: string[];
|
|
9800
9883
|
};
|
|
@@ -9849,6 +9932,12 @@ interface components {
|
|
|
9849
9932
|
total_spent: string;
|
|
9850
9933
|
session_count: number;
|
|
9851
9934
|
};
|
|
9935
|
+
/**
|
|
9936
|
+
* @description * `new` - new
|
|
9937
|
+
* * `existing` - existing
|
|
9938
|
+
* @enum {string}
|
|
9939
|
+
*/
|
|
9940
|
+
MemberStatusEnum: "new" | "existing";
|
|
9852
9941
|
MerchantDashboard: {
|
|
9853
9942
|
/**
|
|
9854
9943
|
* Format: int64
|
|
@@ -10190,6 +10279,12 @@ interface components {
|
|
|
10190
10279
|
/** Format: date-time */
|
|
10191
10280
|
readonly updated_at: string;
|
|
10192
10281
|
};
|
|
10282
|
+
OrderCutoff: {
|
|
10283
|
+
/** Format: date-time */
|
|
10284
|
+
order_before: string;
|
|
10285
|
+
/** Format: date */
|
|
10286
|
+
date: string;
|
|
10287
|
+
};
|
|
10193
10288
|
OrderEdit: {
|
|
10194
10289
|
/** Format: uuid */
|
|
10195
10290
|
readonly id: string;
|
|
@@ -11313,10 +11408,10 @@ interface components {
|
|
|
11313
11408
|
*/
|
|
11314
11409
|
online_checked_at: string | null;
|
|
11315
11410
|
};
|
|
11316
|
-
/** @description
|
|
11411
|
+
/** @description Sous staff or a merchant adds a printer to the store in the URL. */
|
|
11317
11412
|
PrintDeviceCreateRequest: {
|
|
11318
11413
|
/**
|
|
11319
|
-
* @description The printer's make. Sunmi is bound with Sunmi; an Epson printer gets its own
|
|
11414
|
+
* @description The printer's make. Sunmi is bound with Sunmi; an Epson printer gets its own password (see the device's setup).
|
|
11320
11415
|
*
|
|
11321
11416
|
* * `sunmi` - Sunmi
|
|
11322
11417
|
* * `epson` - Epson
|
|
@@ -11614,6 +11709,8 @@ interface components {
|
|
|
11614
11709
|
/** Format: decimal */
|
|
11615
11710
|
readonly customer_service_fee: string | null;
|
|
11616
11711
|
readonly peak_delivery_dates: string[];
|
|
11712
|
+
readonly servable_dates: string[];
|
|
11713
|
+
readonly order_cutoff: components["schemas"]["OrderCutoff"] | null;
|
|
11617
11714
|
/** Format: date-time */
|
|
11618
11715
|
readonly created_at: string;
|
|
11619
11716
|
/** Format: date-time */
|
|
@@ -12740,6 +12837,7 @@ interface components {
|
|
|
12740
12837
|
image_url: string;
|
|
12741
12838
|
/** Format: decimal */
|
|
12742
12839
|
deposit_amount?: string | null;
|
|
12840
|
+
available_fulfillment_types: string[];
|
|
12743
12841
|
reason: string;
|
|
12744
12842
|
};
|
|
12745
12843
|
Surcharge: {
|
|
@@ -16329,7 +16427,7 @@ interface operations {
|
|
|
16329
16427
|
};
|
|
16330
16428
|
};
|
|
16331
16429
|
};
|
|
16332
|
-
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16430
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `TEST_PRINT_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16333
16431
|
429: {
|
|
16334
16432
|
headers: {
|
|
16335
16433
|
[name: string]: unknown;
|
|
@@ -23252,6 +23350,8 @@ interface operations {
|
|
|
23252
23350
|
cart_suggestions_list: {
|
|
23253
23351
|
parameters: {
|
|
23254
23352
|
query?: {
|
|
23353
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
23354
|
+
handover_date?: string;
|
|
23255
23355
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
23256
23356
|
lang?: string;
|
|
23257
23357
|
};
|
|
@@ -27096,6 +27196,8 @@ interface operations {
|
|
|
27096
27196
|
checkout_suggestions_list: {
|
|
27097
27197
|
parameters: {
|
|
27098
27198
|
query?: {
|
|
27199
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
27200
|
+
handover_date?: string;
|
|
27099
27201
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
27100
27202
|
lang?: string;
|
|
27101
27203
|
};
|
|
@@ -29810,7 +29912,9 @@ interface operations {
|
|
|
29810
29912
|
page?: number;
|
|
29811
29913
|
page_size?: number;
|
|
29812
29914
|
party_sizes?: number[];
|
|
29915
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows (see price_min). */
|
|
29813
29916
|
price_max?: number;
|
|
29917
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows: the price per person for a menu box with a party size, the price otherwise. */
|
|
29814
29918
|
price_min?: number;
|
|
29815
29919
|
/** @description Cents, inclusive. Excludes products with no party size. */
|
|
29816
29920
|
price_per_person_max?: number;
|
|
@@ -29820,7 +29924,9 @@ interface operations {
|
|
|
29820
29924
|
product_tags?: string[];
|
|
29821
29925
|
q?: string;
|
|
29822
29926
|
/**
|
|
29823
|
-
* @description
|
|
29927
|
+
* @description price_asc and price_desc order by the price a listing card shows (see price_min).
|
|
29928
|
+
*
|
|
29929
|
+
* * `relevance` - relevance
|
|
29824
29930
|
* * `price_asc` - price_asc
|
|
29825
29931
|
* * `price_desc` - price_desc
|
|
29826
29932
|
*/
|
|
@@ -30018,7 +30124,9 @@ interface operations {
|
|
|
30018
30124
|
page?: number;
|
|
30019
30125
|
page_size?: number;
|
|
30020
30126
|
party_sizes?: number[];
|
|
30127
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows (see price_min). */
|
|
30021
30128
|
price_max?: number;
|
|
30129
|
+
/** @description Cents, inclusive. Compared with the price a listing card shows: the price per person for a menu box with a party size, the price otherwise. */
|
|
30022
30130
|
price_min?: number;
|
|
30023
30131
|
/** @description Cents, inclusive. Excludes products with no party size. */
|
|
30024
30132
|
price_per_person_max?: number;
|
|
@@ -30028,7 +30136,9 @@ interface operations {
|
|
|
30028
30136
|
product_tags?: string[];
|
|
30029
30137
|
q?: string;
|
|
30030
30138
|
/**
|
|
30031
|
-
* @description
|
|
30139
|
+
* @description price_asc and price_desc order by the price a listing card shows (see price_min).
|
|
30140
|
+
*
|
|
30141
|
+
* * `relevance` - relevance
|
|
30032
30142
|
* * `price_asc` - price_asc
|
|
30033
30143
|
* * `price_desc` - price_desc
|
|
30034
30144
|
*/
|
|
@@ -32411,6 +32521,191 @@ interface operations {
|
|
|
32411
32521
|
};
|
|
32412
32522
|
};
|
|
32413
32523
|
};
|
|
32524
|
+
loyalty_leat_code_create: {
|
|
32525
|
+
parameters: {
|
|
32526
|
+
query?: never;
|
|
32527
|
+
header?: never;
|
|
32528
|
+
path?: never;
|
|
32529
|
+
cookie?: never;
|
|
32530
|
+
};
|
|
32531
|
+
requestBody: {
|
|
32532
|
+
content: {
|
|
32533
|
+
"application/json": components["schemas"]["LeatCode"];
|
|
32534
|
+
"application/x-www-form-urlencoded": components["schemas"]["LeatCode"];
|
|
32535
|
+
"multipart/form-data": components["schemas"]["LeatCode"];
|
|
32536
|
+
};
|
|
32537
|
+
};
|
|
32538
|
+
responses: {
|
|
32539
|
+
202: {
|
|
32540
|
+
headers: {
|
|
32541
|
+
[name: string]: unknown;
|
|
32542
|
+
};
|
|
32543
|
+
content: {
|
|
32544
|
+
"application/json": components["schemas"]["LeatCodeSent"];
|
|
32545
|
+
};
|
|
32546
|
+
};
|
|
32547
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32548
|
+
400: {
|
|
32549
|
+
headers: {
|
|
32550
|
+
[name: string]: unknown;
|
|
32551
|
+
};
|
|
32552
|
+
content: {
|
|
32553
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32554
|
+
};
|
|
32555
|
+
};
|
|
32556
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32557
|
+
401: {
|
|
32558
|
+
headers: {
|
|
32559
|
+
[name: string]: unknown;
|
|
32560
|
+
};
|
|
32561
|
+
content: {
|
|
32562
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32563
|
+
};
|
|
32564
|
+
};
|
|
32565
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32566
|
+
403: {
|
|
32567
|
+
headers: {
|
|
32568
|
+
[name: string]: unknown;
|
|
32569
|
+
};
|
|
32570
|
+
content: {
|
|
32571
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32572
|
+
};
|
|
32573
|
+
};
|
|
32574
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32575
|
+
404: {
|
|
32576
|
+
headers: {
|
|
32577
|
+
[name: string]: unknown;
|
|
32578
|
+
};
|
|
32579
|
+
content: {
|
|
32580
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32581
|
+
};
|
|
32582
|
+
};
|
|
32583
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32584
|
+
429: {
|
|
32585
|
+
headers: {
|
|
32586
|
+
[name: string]: unknown;
|
|
32587
|
+
};
|
|
32588
|
+
content: {
|
|
32589
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32590
|
+
};
|
|
32591
|
+
};
|
|
32592
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32593
|
+
500: {
|
|
32594
|
+
headers: {
|
|
32595
|
+
[name: string]: unknown;
|
|
32596
|
+
};
|
|
32597
|
+
content: {
|
|
32598
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32599
|
+
};
|
|
32600
|
+
};
|
|
32601
|
+
/** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32602
|
+
503: {
|
|
32603
|
+
headers: {
|
|
32604
|
+
[name: string]: unknown;
|
|
32605
|
+
};
|
|
32606
|
+
content: {
|
|
32607
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32608
|
+
};
|
|
32609
|
+
};
|
|
32610
|
+
};
|
|
32611
|
+
};
|
|
32612
|
+
loyalty_leat_verify_create: {
|
|
32613
|
+
parameters: {
|
|
32614
|
+
query?: never;
|
|
32615
|
+
header?: never;
|
|
32616
|
+
path?: never;
|
|
32617
|
+
cookie?: never;
|
|
32618
|
+
};
|
|
32619
|
+
requestBody: {
|
|
32620
|
+
content: {
|
|
32621
|
+
"application/json": components["schemas"]["LeatVerify"];
|
|
32622
|
+
"application/x-www-form-urlencoded": components["schemas"]["LeatVerify"];
|
|
32623
|
+
"multipart/form-data": components["schemas"]["LeatVerify"];
|
|
32624
|
+
};
|
|
32625
|
+
};
|
|
32626
|
+
responses: {
|
|
32627
|
+
200: {
|
|
32628
|
+
headers: {
|
|
32629
|
+
[name: string]: unknown;
|
|
32630
|
+
};
|
|
32631
|
+
content: {
|
|
32632
|
+
"application/json": components["schemas"]["LeatSession"];
|
|
32633
|
+
};
|
|
32634
|
+
};
|
|
32635
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CONSENT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32636
|
+
400: {
|
|
32637
|
+
headers: {
|
|
32638
|
+
[name: string]: unknown;
|
|
32639
|
+
};
|
|
32640
|
+
content: {
|
|
32641
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32642
|
+
};
|
|
32643
|
+
};
|
|
32644
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32645
|
+
401: {
|
|
32646
|
+
headers: {
|
|
32647
|
+
[name: string]: unknown;
|
|
32648
|
+
};
|
|
32649
|
+
content: {
|
|
32650
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32651
|
+
};
|
|
32652
|
+
};
|
|
32653
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32654
|
+
403: {
|
|
32655
|
+
headers: {
|
|
32656
|
+
[name: string]: unknown;
|
|
32657
|
+
};
|
|
32658
|
+
content: {
|
|
32659
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32660
|
+
};
|
|
32661
|
+
};
|
|
32662
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32663
|
+
404: {
|
|
32664
|
+
headers: {
|
|
32665
|
+
[name: string]: unknown;
|
|
32666
|
+
};
|
|
32667
|
+
content: {
|
|
32668
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32669
|
+
};
|
|
32670
|
+
};
|
|
32671
|
+
/** @description Possible error codes include `LOYALTY_SIGN_IN_HELD`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32672
|
+
409: {
|
|
32673
|
+
headers: {
|
|
32674
|
+
[name: string]: unknown;
|
|
32675
|
+
};
|
|
32676
|
+
content: {
|
|
32677
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32678
|
+
};
|
|
32679
|
+
};
|
|
32680
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_LOCKED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32681
|
+
429: {
|
|
32682
|
+
headers: {
|
|
32683
|
+
[name: string]: unknown;
|
|
32684
|
+
};
|
|
32685
|
+
content: {
|
|
32686
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32687
|
+
};
|
|
32688
|
+
};
|
|
32689
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32690
|
+
500: {
|
|
32691
|
+
headers: {
|
|
32692
|
+
[name: string]: unknown;
|
|
32693
|
+
};
|
|
32694
|
+
content: {
|
|
32695
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32696
|
+
};
|
|
32697
|
+
};
|
|
32698
|
+
/** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
32699
|
+
503: {
|
|
32700
|
+
headers: {
|
|
32701
|
+
[name: string]: unknown;
|
|
32702
|
+
};
|
|
32703
|
+
content: {
|
|
32704
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
32705
|
+
};
|
|
32706
|
+
};
|
|
32707
|
+
};
|
|
32708
|
+
};
|
|
32414
32709
|
loyalty_profile_summary: {
|
|
32415
32710
|
parameters: {
|
|
32416
32711
|
query?: never;
|
|
@@ -41892,6 +42187,8 @@ interface operations {
|
|
|
41892
42187
|
products_suggestions_list: {
|
|
41893
42188
|
parameters: {
|
|
41894
42189
|
query?: {
|
|
42190
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Suggests only the products that can be ordered today for that date by their own dates, the rule the product list's handover_date applies; upsells included, which that list never carries. An unreadable value is ignored. */
|
|
42191
|
+
handover_date?: string;
|
|
41895
42192
|
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
41896
42193
|
lang?: string;
|
|
41897
42194
|
};
|
package/dist/index.js
CHANGED
|
@@ -87,6 +87,8 @@ function isRequestInstance(input) {
|
|
|
87
87
|
// src/generated/retryability.ts
|
|
88
88
|
var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
89
89
|
"KEYCLOAK_ERROR",
|
|
90
|
+
"LOYALTY_CODE_LOCKED",
|
|
91
|
+
"LOYALTY_CODE_RATE_LIMITED",
|
|
90
92
|
"MERCHANT_AT_CAPACITY",
|
|
91
93
|
"OTP_RATE_LIMIT_EXCEEDED",
|
|
92
94
|
"RATE_LIMITED",
|