@tamr/api 0.0.0-stage → 1.1.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/CHANGELOG.md +45 -0
- package/LICENSE +21 -0
- package/README.md +56 -2
- package/lib/client.d.ts +78 -0
- package/lib/client.js +92 -0
- package/lib/generated/api.g.d.ts +2246 -0
- package/lib/generated/api.g.js +4954 -0
- package/lib/generated/server.g.d.ts +16 -0
- package/lib/generated/server.g.js +67 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +8 -0
- package/lib/server.d.ts +22 -0
- package/lib/server.js +16 -0
- package/lib/transport.d.ts +42 -0
- package/lib/transport.js +181 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.js +2 -0
- package/package.json +42 -5
|
@@ -0,0 +1,2246 @@
|
|
|
1
|
+
/** A message that does not match the contract. */
|
|
2
|
+
export declare class ContractError extends Error {
|
|
3
|
+
}
|
|
4
|
+
/** One call, as the client sends it. */
|
|
5
|
+
export interface Call {
|
|
6
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
7
|
+
path: string;
|
|
8
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
9
|
+
body?: unknown;
|
|
10
|
+
/** Aborts the call, and stops a chat stream. */
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}
|
|
13
|
+
/** What every operation takes last: `signal` stops it (a chat UI's stop button). */
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
}
|
|
17
|
+
/** How the operations reach Tamr: `createClient` and `createServerClient` give one. */
|
|
18
|
+
export interface Transport {
|
|
19
|
+
request(call: Call): Promise<unknown>;
|
|
20
|
+
stream<E>(call: Call, decode: (event: string, data: unknown) => E): AsyncIterable<E>;
|
|
21
|
+
}
|
|
22
|
+
export interface BookingChangedEvent {
|
|
23
|
+
type: "booking.changed";
|
|
24
|
+
timestamp: string;
|
|
25
|
+
livemode: boolean;
|
|
26
|
+
data: BookingChangedEventData;
|
|
27
|
+
}
|
|
28
|
+
export declare function decodeBookingChangedEvent(value: unknown, path?: string): BookingChangedEvent;
|
|
29
|
+
export interface BookingChangedEventData {
|
|
30
|
+
conversationId: string;
|
|
31
|
+
externalUserId: string | null;
|
|
32
|
+
bookingId: string;
|
|
33
|
+
status: BookingChangedEventDataStatus;
|
|
34
|
+
branch: string;
|
|
35
|
+
date: string;
|
|
36
|
+
time: string;
|
|
37
|
+
partySize: number;
|
|
38
|
+
}
|
|
39
|
+
export declare function decodeBookingChangedEventData(value: unknown, path?: string): BookingChangedEventData;
|
|
40
|
+
/**
|
|
41
|
+
* BookingChangedEventDataStatus. A value this version does not know reads as
|
|
42
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
43
|
+
*/
|
|
44
|
+
export declare const BOOKING_CHANGED_EVENT_DATA_STATUS_VALUES: readonly ["requested", "confirmed", "cancelled", "unknown"];
|
|
45
|
+
export type BookingChangedEventDataStatus = (typeof BOOKING_CHANGED_EVENT_DATA_STATUS_VALUES)[number];
|
|
46
|
+
export declare function decodeBookingChangedEventDataStatus(value: unknown, path?: string): BookingChangedEventDataStatus;
|
|
47
|
+
export interface BookingMadeEvent {
|
|
48
|
+
type: "booking.made";
|
|
49
|
+
timestamp: string;
|
|
50
|
+
livemode: boolean;
|
|
51
|
+
data: BookingMadeEventData;
|
|
52
|
+
}
|
|
53
|
+
export declare function decodeBookingMadeEvent(value: unknown, path?: string): BookingMadeEvent;
|
|
54
|
+
export interface BookingMadeEventData {
|
|
55
|
+
conversationId: string;
|
|
56
|
+
externalUserId: string | null;
|
|
57
|
+
bookingId: string;
|
|
58
|
+
status: BookingMadeEventDataStatus;
|
|
59
|
+
branch: string;
|
|
60
|
+
date: string;
|
|
61
|
+
time: string;
|
|
62
|
+
partySize: number;
|
|
63
|
+
}
|
|
64
|
+
export declare function decodeBookingMadeEventData(value: unknown, path?: string): BookingMadeEventData;
|
|
65
|
+
/**
|
|
66
|
+
* BookingMadeEventDataStatus. A value this version does not know reads as
|
|
67
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
68
|
+
*/
|
|
69
|
+
export declare const BOOKING_MADE_EVENT_DATA_STATUS_VALUES: readonly ["requested", "confirmed", "cancelled", "unknown"];
|
|
70
|
+
export type BookingMadeEventDataStatus = (typeof BOOKING_MADE_EVENT_DATA_STATUS_VALUES)[number];
|
|
71
|
+
export declare function decodeBookingMadeEventDataStatus(value: unknown, path?: string): BookingMadeEventDataStatus;
|
|
72
|
+
export interface CartProposedEvent {
|
|
73
|
+
type: "cart.proposed";
|
|
74
|
+
timestamp: string;
|
|
75
|
+
livemode: boolean;
|
|
76
|
+
data: CartProposedEventData;
|
|
77
|
+
}
|
|
78
|
+
export declare function decodeCartProposedEvent(value: unknown, path?: string): CartProposedEvent;
|
|
79
|
+
export interface CartProposedEventData {
|
|
80
|
+
conversationId: string;
|
|
81
|
+
externalUserId: string | null;
|
|
82
|
+
proposalId: string;
|
|
83
|
+
lines: CartProposedEventDataLinesItem[];
|
|
84
|
+
}
|
|
85
|
+
export declare function decodeCartProposedEventData(value: unknown, path?: string): CartProposedEventData;
|
|
86
|
+
export interface CartProposedEventDataLinesItem {
|
|
87
|
+
lineId: string;
|
|
88
|
+
dishId: string;
|
|
89
|
+
variantId: string | null;
|
|
90
|
+
optionIds: string[];
|
|
91
|
+
externalId: string | null;
|
|
92
|
+
variantExternalId: string | null;
|
|
93
|
+
optionExternalIds: (string | null)[];
|
|
94
|
+
quantity: number;
|
|
95
|
+
unitPrice: string;
|
|
96
|
+
currency: string;
|
|
97
|
+
picks?: CartProposedEventDataLinesItemPicksItem[];
|
|
98
|
+
treat?: CartProposedEventDataLinesItemTreat;
|
|
99
|
+
}
|
|
100
|
+
export declare function decodeCartProposedEventDataLinesItem(value: unknown, path?: string): CartProposedEventDataLinesItem;
|
|
101
|
+
export interface CartProposedEventDataLinesItemPicksItem {
|
|
102
|
+
pickId: string;
|
|
103
|
+
dishId: string;
|
|
104
|
+
variantId: string | null;
|
|
105
|
+
externalId: string | null;
|
|
106
|
+
variantExternalId: string | null;
|
|
107
|
+
pieces: number;
|
|
108
|
+
count: number;
|
|
109
|
+
}
|
|
110
|
+
export declare function decodeCartProposedEventDataLinesItemPicksItem(value: unknown, path?: string): CartProposedEventDataLinesItemPicksItem;
|
|
111
|
+
export interface CartProposedEventDataLinesItemTreat {
|
|
112
|
+
/** The treat's single-use id. */
|
|
113
|
+
treatId: string;
|
|
114
|
+
/** After this the treat can't be redeemed. */
|
|
115
|
+
expiresAt: string;
|
|
116
|
+
}
|
|
117
|
+
export declare function decodeCartProposedEventDataLinesItemTreat(value: unknown, path?: string): CartProposedEventDataLinesItemTreat;
|
|
118
|
+
/**
|
|
119
|
+
* A card the waiter put on screen, with the dishes it shows. Fields per kind;
|
|
120
|
+
* an unknown kind reads as other.
|
|
121
|
+
*/
|
|
122
|
+
export interface ChatCard {
|
|
123
|
+
kind: ChatCardKind;
|
|
124
|
+
dishes?: DishSummary[];
|
|
125
|
+
layout?: ChatCardLayout;
|
|
126
|
+
framing?: string;
|
|
127
|
+
aspect?: string;
|
|
128
|
+
special?: ChatCardSpecial;
|
|
129
|
+
allergen?: string;
|
|
130
|
+
verification?: ChatCardVerification;
|
|
131
|
+
disclaimer?: string;
|
|
132
|
+
conflicts?: ChatCardConflictsItem[];
|
|
133
|
+
build?: ChatCardBuild;
|
|
134
|
+
baskets?: ChatCardBasketsItem[];
|
|
135
|
+
budget?: string | null;
|
|
136
|
+
goal?: ChatCardGoal;
|
|
137
|
+
prompts?: string[];
|
|
138
|
+
tags?: ChatCardTagsItem[];
|
|
139
|
+
languages?: string[];
|
|
140
|
+
staffCall?: ChatCardStaffCall;
|
|
141
|
+
branchInfo?: ChatCardBranchInfo;
|
|
142
|
+
bookingTimes?: ChatCardBookingTimes;
|
|
143
|
+
booking?: ChatCardBooking;
|
|
144
|
+
saved?: DishSummary;
|
|
145
|
+
lines?: ChatCardLinesItem[];
|
|
146
|
+
offer?: ChatCardOffer;
|
|
147
|
+
notAdded?: ChatCardNotAddedItem[];
|
|
148
|
+
reorder?: ChatCardReorder;
|
|
149
|
+
}
|
|
150
|
+
export declare function decodeChatCard(value: unknown, path?: string): ChatCard;
|
|
151
|
+
/**
|
|
152
|
+
* ChatCardKind. A value this version does not know reads as `other`. New
|
|
153
|
+
* values may be added: keep a default branch.
|
|
154
|
+
*/
|
|
155
|
+
export declare const CHAT_CARD_KIND_VALUES: readonly ["dishes", "surprise_basket", "quick_replies", "dietary_filters", "language_choice", "staff_called", "branch_info", "booking_times", "booking", "saved", "cart_proposal", "order_offer", "pay_offer", "build", "other"];
|
|
156
|
+
export type ChatCardKind = (typeof CHAT_CARD_KIND_VALUES)[number];
|
|
157
|
+
export declare function decodeChatCardKind(value: unknown, path?: string): ChatCardKind;
|
|
158
|
+
/** A dish as a card or the menu shows it: enough to draw it with no other call. */
|
|
159
|
+
export interface DishSummary {
|
|
160
|
+
dishId: string;
|
|
161
|
+
name: string;
|
|
162
|
+
price: string;
|
|
163
|
+
currency: string;
|
|
164
|
+
imageUrl: string | null;
|
|
165
|
+
calories: number | null;
|
|
166
|
+
proteinGrams: number | null;
|
|
167
|
+
carbsGrams: number | null;
|
|
168
|
+
fatGrams: number | null;
|
|
169
|
+
allergens: DishSummaryAllergensItem[];
|
|
170
|
+
dietaryTags: DishSummaryDietaryTagsItem[];
|
|
171
|
+
available: boolean;
|
|
172
|
+
externalId: string | null;
|
|
173
|
+
}
|
|
174
|
+
export declare function decodeDishSummary(value: unknown, path?: string): DishSummary;
|
|
175
|
+
/** DishSummaryAllergensItem. New values may be added: keep a default branch. */
|
|
176
|
+
export declare const DISH_SUMMARY_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
177
|
+
export type DishSummaryAllergensItem = (typeof DISH_SUMMARY_ALLERGENS_ITEM_VALUES)[number];
|
|
178
|
+
export declare function decodeDishSummaryAllergensItem(value: unknown, path?: string): DishSummaryAllergensItem;
|
|
179
|
+
/**
|
|
180
|
+
* DishSummaryDietaryTagsItem. A value this version does not know reads as
|
|
181
|
+
* `other`. New values may be added: keep a default branch.
|
|
182
|
+
*/
|
|
183
|
+
export declare const DISH_SUMMARY_DIETARY_TAGS_ITEM_VALUES: readonly ["vegan", "vegetarian", "gluten_free", "halal", "kosher", "dairy_free", "nut_free", "keto", "spicy", "high_protein", "other"];
|
|
184
|
+
export type DishSummaryDietaryTagsItem = (typeof DISH_SUMMARY_DIETARY_TAGS_ITEM_VALUES)[number];
|
|
185
|
+
export declare function decodeDishSummaryDietaryTagsItem(value: unknown, path?: string): DishSummaryDietaryTagsItem;
|
|
186
|
+
/**
|
|
187
|
+
* ChatCardLayout. A value this version does not know reads as `other`. New
|
|
188
|
+
* values may be added: keep a default branch.
|
|
189
|
+
*/
|
|
190
|
+
export declare const CHAT_CARD_LAYOUT_VALUES: readonly ["card", "carousel", "comparison", "pairing", "other"];
|
|
191
|
+
export type ChatCardLayout = (typeof CHAT_CARD_LAYOUT_VALUES)[number];
|
|
192
|
+
export declare function decodeChatCardLayout(value: unknown, path?: string): ChatCardLayout;
|
|
193
|
+
export interface ChatCardSpecial {
|
|
194
|
+
headline: string;
|
|
195
|
+
blurb: string | null;
|
|
196
|
+
}
|
|
197
|
+
export declare function decodeChatCardSpecial(value: unknown, path?: string): ChatCardSpecial;
|
|
198
|
+
/**
|
|
199
|
+
* ChatCardVerification. A value this version does not know reads as `other`.
|
|
200
|
+
* New values may be added: keep a default branch.
|
|
201
|
+
*/
|
|
202
|
+
export declare const CHAT_CARD_VERIFICATION_VALUES: readonly ["menu-data", "text-match", "other"];
|
|
203
|
+
export type ChatCardVerification = (typeof CHAT_CARD_VERIFICATION_VALUES)[number];
|
|
204
|
+
export declare function decodeChatCardVerification(value: unknown, path?: string): ChatCardVerification;
|
|
205
|
+
export interface ChatCardConflictsItem {
|
|
206
|
+
allergen: string;
|
|
207
|
+
dishes: string[];
|
|
208
|
+
}
|
|
209
|
+
export declare function decodeChatCardConflictsItem(value: unknown, path?: string): ChatCardConflictsItem;
|
|
210
|
+
export interface ChatCardBuild {
|
|
211
|
+
buildId: string;
|
|
212
|
+
dish: DishSummary;
|
|
213
|
+
size: string | null;
|
|
214
|
+
needsSize: boolean;
|
|
215
|
+
groups: ChatCardBuildGroupsItem[];
|
|
216
|
+
complete: boolean;
|
|
217
|
+
total: string;
|
|
218
|
+
nutrition: ChatCardBuildNutrition;
|
|
219
|
+
goalFit?: ChatCardBuildGoalFit;
|
|
220
|
+
}
|
|
221
|
+
export declare function decodeChatCardBuild(value: unknown, path?: string): ChatCardBuild;
|
|
222
|
+
export interface ChatCardBuildGroupsItem {
|
|
223
|
+
name: string;
|
|
224
|
+
min: number;
|
|
225
|
+
max: number;
|
|
226
|
+
options: ChatCardBuildGroupsItemOptionsItem[];
|
|
227
|
+
picked: string[];
|
|
228
|
+
remaining: number;
|
|
229
|
+
}
|
|
230
|
+
export declare function decodeChatCardBuildGroupsItem(value: unknown, path?: string): ChatCardBuildGroupsItem;
|
|
231
|
+
export interface ChatCardBuildGroupsItemOptionsItem {
|
|
232
|
+
optionId: string;
|
|
233
|
+
name: string;
|
|
234
|
+
price: string | null;
|
|
235
|
+
extra: string | null;
|
|
236
|
+
calories: number | null;
|
|
237
|
+
proteinGrams: number | null;
|
|
238
|
+
carbsGrams: number | null;
|
|
239
|
+
fatGrams: number | null;
|
|
240
|
+
allergens: ChatCardBuildGroupsItemOptionsItemAllergensItem[];
|
|
241
|
+
externalId: string | null;
|
|
242
|
+
}
|
|
243
|
+
export declare function decodeChatCardBuildGroupsItemOptionsItem(value: unknown, path?: string): ChatCardBuildGroupsItemOptionsItem;
|
|
244
|
+
/**
|
|
245
|
+
* ChatCardBuildGroupsItemOptionsItemAllergensItem. New values may be added:
|
|
246
|
+
* keep a default branch.
|
|
247
|
+
*/
|
|
248
|
+
export declare const CHAT_CARD_BUILD_GROUPS_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
249
|
+
export type ChatCardBuildGroupsItemOptionsItemAllergensItem = (typeof CHAT_CARD_BUILD_GROUPS_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES)[number];
|
|
250
|
+
export declare function decodeChatCardBuildGroupsItemOptionsItemAllergensItem(value: unknown, path?: string): ChatCardBuildGroupsItemOptionsItemAllergensItem;
|
|
251
|
+
export interface ChatCardBuildNutrition {
|
|
252
|
+
calories: number | null;
|
|
253
|
+
proteinGrams: number | null;
|
|
254
|
+
carbsGrams: number | null;
|
|
255
|
+
fatGrams: number | null;
|
|
256
|
+
}
|
|
257
|
+
export declare function decodeChatCardBuildNutrition(value: unknown, path?: string): ChatCardBuildNutrition;
|
|
258
|
+
/**
|
|
259
|
+
* ChatCardBuildGoalFit. A value this version does not know reads as `other`.
|
|
260
|
+
* New values may be added: keep a default branch.
|
|
261
|
+
*/
|
|
262
|
+
export declare const CHAT_CARD_BUILD_GOAL_FIT_VALUES: readonly ["fits", "over", "under", "unknown", "other"];
|
|
263
|
+
export type ChatCardBuildGoalFit = (typeof CHAT_CARD_BUILD_GOAL_FIT_VALUES)[number];
|
|
264
|
+
export declare function decodeChatCardBuildGoalFit(value: unknown, path?: string): ChatCardBuildGoalFit;
|
|
265
|
+
export interface ChatCardBasketsItem {
|
|
266
|
+
items: ChatCardBasketsItemItemsItem[];
|
|
267
|
+
total: string;
|
|
268
|
+
nutrition?: ChatCardBasketsItemNutrition;
|
|
269
|
+
goalFit?: ChatCardBasketsItemGoalFit;
|
|
270
|
+
}
|
|
271
|
+
export declare function decodeChatCardBasketsItem(value: unknown, path?: string): ChatCardBasketsItem;
|
|
272
|
+
export interface ChatCardBasketsItemItemsItem {
|
|
273
|
+
dish: DishSummary;
|
|
274
|
+
role?: string;
|
|
275
|
+
}
|
|
276
|
+
export declare function decodeChatCardBasketsItemItemsItem(value: unknown, path?: string): ChatCardBasketsItemItemsItem;
|
|
277
|
+
export interface ChatCardBasketsItemNutrition {
|
|
278
|
+
calories: number | null;
|
|
279
|
+
proteinGrams: number | null;
|
|
280
|
+
carbsGrams: number | null;
|
|
281
|
+
fatGrams: number | null;
|
|
282
|
+
}
|
|
283
|
+
export declare function decodeChatCardBasketsItemNutrition(value: unknown, path?: string): ChatCardBasketsItemNutrition;
|
|
284
|
+
/**
|
|
285
|
+
* ChatCardBasketsItemGoalFit. A value this version does not know reads as
|
|
286
|
+
* `other`. New values may be added: keep a default branch.
|
|
287
|
+
*/
|
|
288
|
+
export declare const CHAT_CARD_BASKETS_ITEM_GOAL_FIT_VALUES: readonly ["fits", "over", "under", "unknown", "other"];
|
|
289
|
+
export type ChatCardBasketsItemGoalFit = (typeof CHAT_CARD_BASKETS_ITEM_GOAL_FIT_VALUES)[number];
|
|
290
|
+
export declare function decodeChatCardBasketsItemGoalFit(value: unknown, path?: string): ChatCardBasketsItemGoalFit;
|
|
291
|
+
export interface ChatCardGoal {
|
|
292
|
+
mode: ChatCardGoalMode;
|
|
293
|
+
fits: string[];
|
|
294
|
+
unknown: string[];
|
|
295
|
+
}
|
|
296
|
+
export declare function decodeChatCardGoal(value: unknown, path?: string): ChatCardGoal;
|
|
297
|
+
/**
|
|
298
|
+
* ChatCardGoalMode. A value this version does not know reads as `other`. New
|
|
299
|
+
* values may be added: keep a default branch.
|
|
300
|
+
*/
|
|
301
|
+
export declare const CHAT_CARD_GOAL_MODE_VALUES: readonly ["cutting", "maintain", "bulking", "other"];
|
|
302
|
+
export type ChatCardGoalMode = (typeof CHAT_CARD_GOAL_MODE_VALUES)[number];
|
|
303
|
+
export declare function decodeChatCardGoalMode(value: unknown, path?: string): ChatCardGoalMode;
|
|
304
|
+
/**
|
|
305
|
+
* ChatCardTagsItem. A value this version does not know reads as `other`. New
|
|
306
|
+
* values may be added: keep a default branch.
|
|
307
|
+
*/
|
|
308
|
+
export declare const CHAT_CARD_TAGS_ITEM_VALUES: readonly ["vegan", "vegetarian", "gluten_free", "halal", "kosher", "dairy_free", "nut_free", "keto", "spicy", "high_protein", "other"];
|
|
309
|
+
export type ChatCardTagsItem = (typeof CHAT_CARD_TAGS_ITEM_VALUES)[number];
|
|
310
|
+
export declare function decodeChatCardTagsItem(value: unknown, path?: string): ChatCardTagsItem;
|
|
311
|
+
export interface ChatCardStaffCall {
|
|
312
|
+
source: ChatCardStaffCallSource;
|
|
313
|
+
kind?: ChatCardStaffCallKind;
|
|
314
|
+
reason?: ChatCardStaffCallReason;
|
|
315
|
+
urgency?: ChatCardStaffCallUrgency;
|
|
316
|
+
alreadySent: boolean;
|
|
317
|
+
}
|
|
318
|
+
export declare function decodeChatCardStaffCall(value: unknown, path?: string): ChatCardStaffCall;
|
|
319
|
+
/**
|
|
320
|
+
* ChatCardStaffCallSource. A value this version does not know reads as
|
|
321
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
322
|
+
*/
|
|
323
|
+
export declare const CHAT_CARD_STAFF_CALL_SOURCE_VALUES: readonly ["request", "escalation", "unknown"];
|
|
324
|
+
export type ChatCardStaffCallSource = (typeof CHAT_CARD_STAFF_CALL_SOURCE_VALUES)[number];
|
|
325
|
+
export declare function decodeChatCardStaffCallSource(value: unknown, path?: string): ChatCardStaffCallSource;
|
|
326
|
+
/**
|
|
327
|
+
* ChatCardStaffCallKind. A value this version does not know reads as `other`.
|
|
328
|
+
* New values may be added: keep a default branch.
|
|
329
|
+
*/
|
|
330
|
+
export declare const CHAT_CARD_STAFF_CALL_KIND_VALUES: readonly ["order_now", "water", "check", "extra_napkins", "refill", "other"];
|
|
331
|
+
export type ChatCardStaffCallKind = (typeof CHAT_CARD_STAFF_CALL_KIND_VALUES)[number];
|
|
332
|
+
export declare function decodeChatCardStaffCallKind(value: unknown, path?: string): ChatCardStaffCallKind;
|
|
333
|
+
/**
|
|
334
|
+
* ChatCardStaffCallReason. A value this version does not know reads as
|
|
335
|
+
* `unknown_other`. New values may be added: keep a default branch.
|
|
336
|
+
*/
|
|
337
|
+
export declare const CHAT_CARD_STAFF_CALL_REASON_VALUES: readonly ["diner_requested_staff", "allergen_severe", "off_menu_question", "order_placement", "complaint", "reservation", "payment", "unknown_other"];
|
|
338
|
+
export type ChatCardStaffCallReason = (typeof CHAT_CARD_STAFF_CALL_REASON_VALUES)[number];
|
|
339
|
+
export declare function decodeChatCardStaffCallReason(value: unknown, path?: string): ChatCardStaffCallReason;
|
|
340
|
+
/**
|
|
341
|
+
* ChatCardStaffCallUrgency. A value this version does not know reads as
|
|
342
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
343
|
+
*/
|
|
344
|
+
export declare const CHAT_CARD_STAFF_CALL_URGENCY_VALUES: readonly ["normal", "high", "unknown"];
|
|
345
|
+
export type ChatCardStaffCallUrgency = (typeof CHAT_CARD_STAFF_CALL_URGENCY_VALUES)[number];
|
|
346
|
+
export declare function decodeChatCardStaffCallUrgency(value: unknown, path?: string): ChatCardStaffCallUrgency;
|
|
347
|
+
export interface ChatCardBranchInfo {
|
|
348
|
+
name: string | null;
|
|
349
|
+
rows: ChatCardBranchInfoRowsItem[];
|
|
350
|
+
}
|
|
351
|
+
export declare function decodeChatCardBranchInfo(value: unknown, path?: string): ChatCardBranchInfo;
|
|
352
|
+
export interface ChatCardBranchInfoRowsItem {
|
|
353
|
+
field: string;
|
|
354
|
+
value: string | null;
|
|
355
|
+
}
|
|
356
|
+
export declare function decodeChatCardBranchInfoRowsItem(value: unknown, path?: string): ChatCardBranchInfoRowsItem;
|
|
357
|
+
export interface ChatCardBookingTimes {
|
|
358
|
+
date: string;
|
|
359
|
+
dateLabel: string;
|
|
360
|
+
times: string[];
|
|
361
|
+
asRequest: boolean;
|
|
362
|
+
}
|
|
363
|
+
export declare function decodeChatCardBookingTimes(value: unknown, path?: string): ChatCardBookingTimes;
|
|
364
|
+
export interface ChatCardBooking {
|
|
365
|
+
outcome: ChatCardBookingOutcome;
|
|
366
|
+
status: ChatCardBookingStatus;
|
|
367
|
+
code: string;
|
|
368
|
+
partySize: number;
|
|
369
|
+
startsAt: string;
|
|
370
|
+
timezone: string;
|
|
371
|
+
dateLabel: string;
|
|
372
|
+
time: string;
|
|
373
|
+
locationName: string;
|
|
374
|
+
confirmationNote: string | null;
|
|
375
|
+
bookingId?: string;
|
|
376
|
+
branch?: string;
|
|
377
|
+
date?: string;
|
|
378
|
+
time24?: string;
|
|
379
|
+
}
|
|
380
|
+
export declare function decodeChatCardBooking(value: unknown, path?: string): ChatCardBooking;
|
|
381
|
+
/**
|
|
382
|
+
* ChatCardBookingOutcome. A value this version does not know reads as `other`.
|
|
383
|
+
* New values may be added: keep a default branch.
|
|
384
|
+
*/
|
|
385
|
+
export declare const CHAT_CARD_BOOKING_OUTCOME_VALUES: readonly ["booked", "already_booked", "changed", "cancelled", "other"];
|
|
386
|
+
export type ChatCardBookingOutcome = (typeof CHAT_CARD_BOOKING_OUTCOME_VALUES)[number];
|
|
387
|
+
export declare function decodeChatCardBookingOutcome(value: unknown, path?: string): ChatCardBookingOutcome;
|
|
388
|
+
/**
|
|
389
|
+
* ChatCardBookingStatus. A value this version does not know reads as
|
|
390
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
391
|
+
*/
|
|
392
|
+
export declare const CHAT_CARD_BOOKING_STATUS_VALUES: readonly ["requested", "confirmed", "cancelled", "unknown"];
|
|
393
|
+
export type ChatCardBookingStatus = (typeof CHAT_CARD_BOOKING_STATUS_VALUES)[number];
|
|
394
|
+
export declare function decodeChatCardBookingStatus(value: unknown, path?: string): ChatCardBookingStatus;
|
|
395
|
+
/**
|
|
396
|
+
* A line the waiter proposes to the host's cart. Tamr's ids always, the host's
|
|
397
|
+
* ids when mapped, and enough to rebuild the line with no mapping (ADR 0009).
|
|
398
|
+
* Money is minor units as a string. A set built from other dishes carries its
|
|
399
|
+
* picks (#560).
|
|
400
|
+
*/
|
|
401
|
+
export interface ChatCardLinesItem {
|
|
402
|
+
/** Unique per proposed line: the host answers and dedupes by it. */
|
|
403
|
+
lineId: string;
|
|
404
|
+
/** Tamr's id for the dish. */
|
|
405
|
+
dishId: string;
|
|
406
|
+
/** Tamr's id for the size; null for a dish sold in one size. */
|
|
407
|
+
variantId: string | null;
|
|
408
|
+
/** Tamr's ids for the chosen options. */
|
|
409
|
+
optionIds: string[];
|
|
410
|
+
/** The host's id for the dish at this branch; null when not mapped. */
|
|
411
|
+
externalId: string | null;
|
|
412
|
+
/** The host's id for the size; null when not mapped. */
|
|
413
|
+
variantExternalId: string | null;
|
|
414
|
+
/**
|
|
415
|
+
* The host's ids for the options, one per entry of optionIds; null where not
|
|
416
|
+
* mapped.
|
|
417
|
+
*/
|
|
418
|
+
optionExternalIds: (string | null)[];
|
|
419
|
+
title: string;
|
|
420
|
+
/** The size as the menu labels it; null for a dish with one size. */
|
|
421
|
+
variantLabel: string | null;
|
|
422
|
+
/** The chosen options' names, in the order of optionIds. */
|
|
423
|
+
choices: string[];
|
|
424
|
+
unitPrice: string;
|
|
425
|
+
currency: string;
|
|
426
|
+
imageUrl: string | null;
|
|
427
|
+
/** How many of the line. For a set, how many whole sets: picks included. */
|
|
428
|
+
quantity: number;
|
|
429
|
+
/** The diner's own request for the kitchen ("no onions"). */
|
|
430
|
+
note: string | null;
|
|
431
|
+
/**
|
|
432
|
+
* A set's picks, in the order of its choices (#560). Absent on any other line.
|
|
433
|
+
* Each pick's count is per one set; quantity multiplies the whole set.
|
|
434
|
+
*/
|
|
435
|
+
picks?: ChatCardLinesItemPicksItem[];
|
|
436
|
+
/**
|
|
437
|
+
* A treat on the house (#455): price this line at zero, then redeem the id
|
|
438
|
+
* once the order is placed. Absent on any other line.
|
|
439
|
+
*/
|
|
440
|
+
treat?: ChatCardLinesItemTreat;
|
|
441
|
+
}
|
|
442
|
+
export declare function decodeChatCardLinesItem(value: unknown, path?: string): ChatCardLinesItem;
|
|
443
|
+
/**
|
|
444
|
+
* One option picked in a set: Tamr's ids always, the host's when mapped, and
|
|
445
|
+
* its words. count is per one set; the line's quantity multiplies the whole
|
|
446
|
+
* set.
|
|
447
|
+
*/
|
|
448
|
+
export interface ChatCardLinesItemPicksItem {
|
|
449
|
+
/** Tamr's id for the option picked, one of the set's choices. */
|
|
450
|
+
pickId: string;
|
|
451
|
+
/** Tamr's id for the dish the option is. */
|
|
452
|
+
dishId: string;
|
|
453
|
+
/** Tamr's id for the dish's size when the set names one; null otherwise. */
|
|
454
|
+
variantId: string | null;
|
|
455
|
+
/** The host's id for that dish at this branch; null when not mapped. */
|
|
456
|
+
externalId: string | null;
|
|
457
|
+
/** The host's id for that size; null when not mapped. */
|
|
458
|
+
variantExternalId: string | null;
|
|
459
|
+
title: string;
|
|
460
|
+
/** The size as the set names it; null for none. */
|
|
461
|
+
variantLabel: string | null;
|
|
462
|
+
/** Pieces in one pick, as the set defines it: "2 x salmon nigiri" is 2. */
|
|
463
|
+
pieces: number;
|
|
464
|
+
/**
|
|
465
|
+
* Times this option is picked in ONE set. The line's quantity multiplies the
|
|
466
|
+
* whole set, picks included: 2 sets with count 3 hold 6 of it.
|
|
467
|
+
*/
|
|
468
|
+
count: number;
|
|
469
|
+
}
|
|
470
|
+
export declare function decodeChatCardLinesItemPicksItem(value: unknown, path?: string): ChatCardLinesItemPicksItem;
|
|
471
|
+
/**
|
|
472
|
+
* A treat on the house (#455): price this line at zero, then redeem the id
|
|
473
|
+
* once the order is placed. Absent on any other line.
|
|
474
|
+
*/
|
|
475
|
+
export interface ChatCardLinesItemTreat {
|
|
476
|
+
/** The treat's single-use id. */
|
|
477
|
+
treatId: string;
|
|
478
|
+
/** After this the treat can't be redeemed. */
|
|
479
|
+
expiresAt: string;
|
|
480
|
+
}
|
|
481
|
+
export declare function decodeChatCardLinesItemTreat(value: unknown, path?: string): ChatCardLinesItemTreat;
|
|
482
|
+
export interface ChatCardOffer {
|
|
483
|
+
items: ChatCardOfferItemsItem[];
|
|
484
|
+
framing: string | null;
|
|
485
|
+
offeredAt: string;
|
|
486
|
+
added?: boolean;
|
|
487
|
+
}
|
|
488
|
+
export declare function decodeChatCardOffer(value: unknown, path?: string): ChatCardOffer;
|
|
489
|
+
export interface ChatCardOfferItemsItem {
|
|
490
|
+
dish: DishSummary;
|
|
491
|
+
quantity: number;
|
|
492
|
+
size: string | null;
|
|
493
|
+
choices: ChatCardOfferItemsItemChoicesItem[];
|
|
494
|
+
note: string | null;
|
|
495
|
+
allergens?: string[];
|
|
496
|
+
dishSizes?: ChatCardOfferItemsItemDishSizesItem[];
|
|
497
|
+
dishChoices?: ChatCardOfferItemsItemDishChoicesItem[];
|
|
498
|
+
}
|
|
499
|
+
export declare function decodeChatCardOfferItemsItem(value: unknown, path?: string): ChatCardOfferItemsItem;
|
|
500
|
+
export interface ChatCardOfferItemsItemChoicesItem {
|
|
501
|
+
group: string;
|
|
502
|
+
options: string[];
|
|
503
|
+
}
|
|
504
|
+
export declare function decodeChatCardOfferItemsItemChoicesItem(value: unknown, path?: string): ChatCardOfferItemsItemChoicesItem;
|
|
505
|
+
export interface ChatCardOfferItemsItemDishSizesItem {
|
|
506
|
+
variantId: string;
|
|
507
|
+
label: string;
|
|
508
|
+
price: string;
|
|
509
|
+
externalId: string | null;
|
|
510
|
+
}
|
|
511
|
+
export declare function decodeChatCardOfferItemsItemDishSizesItem(value: unknown, path?: string): ChatCardOfferItemsItemDishSizesItem;
|
|
512
|
+
export interface ChatCardOfferItemsItemDishChoicesItem {
|
|
513
|
+
name: string;
|
|
514
|
+
min: number;
|
|
515
|
+
max: number;
|
|
516
|
+
options: ChatCardOfferItemsItemDishChoicesItemOptionsItem[];
|
|
517
|
+
}
|
|
518
|
+
export declare function decodeChatCardOfferItemsItemDishChoicesItem(value: unknown, path?: string): ChatCardOfferItemsItemDishChoicesItem;
|
|
519
|
+
export interface ChatCardOfferItemsItemDishChoicesItemOptionsItem {
|
|
520
|
+
optionId: string;
|
|
521
|
+
name: string;
|
|
522
|
+
price: string | null;
|
|
523
|
+
extra: string | null;
|
|
524
|
+
calories: number | null;
|
|
525
|
+
proteinGrams: number | null;
|
|
526
|
+
carbsGrams: number | null;
|
|
527
|
+
fatGrams: number | null;
|
|
528
|
+
allergens: ChatCardOfferItemsItemDishChoicesItemOptionsItemAllergensItem[];
|
|
529
|
+
externalId: string | null;
|
|
530
|
+
}
|
|
531
|
+
export declare function decodeChatCardOfferItemsItemDishChoicesItemOptionsItem(value: unknown, path?: string): ChatCardOfferItemsItemDishChoicesItemOptionsItem;
|
|
532
|
+
/**
|
|
533
|
+
* ChatCardOfferItemsItemDishChoicesItemOptionsItemAllergensItem. New values
|
|
534
|
+
* may be added: keep a default branch.
|
|
535
|
+
*/
|
|
536
|
+
export declare const CHAT_CARD_OFFER_ITEMS_ITEM_DISH_CHOICES_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
537
|
+
export type ChatCardOfferItemsItemDishChoicesItemOptionsItemAllergensItem = (typeof CHAT_CARD_OFFER_ITEMS_ITEM_DISH_CHOICES_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES)[number];
|
|
538
|
+
export declare function decodeChatCardOfferItemsItemDishChoicesItemOptionsItemAllergensItem(value: unknown, path?: string): ChatCardOfferItemsItemDishChoicesItemOptionsItemAllergensItem;
|
|
539
|
+
export interface ChatCardNotAddedItem {
|
|
540
|
+
dishId: string;
|
|
541
|
+
name: string;
|
|
542
|
+
reason: ChatCardNotAddedItemReason;
|
|
543
|
+
}
|
|
544
|
+
export declare function decodeChatCardNotAddedItem(value: unknown, path?: string): ChatCardNotAddedItem;
|
|
545
|
+
/**
|
|
546
|
+
* ChatCardNotAddedItemReason. A value this version does not know reads as
|
|
547
|
+
* `other`. New values may be added: keep a default branch.
|
|
548
|
+
*/
|
|
549
|
+
export declare const CHAT_CARD_NOT_ADDED_ITEM_REASON_VALUES: readonly ["sold_out", "not_served_now", "size_required", "choices_required", "allergen_conflict", "other"];
|
|
550
|
+
export type ChatCardNotAddedItemReason = (typeof CHAT_CARD_NOT_ADDED_ITEM_REASON_VALUES)[number];
|
|
551
|
+
export declare function decodeChatCardNotAddedItemReason(value: unknown, path?: string): ChatCardNotAddedItemReason;
|
|
552
|
+
export interface ChatCardReorder {
|
|
553
|
+
which: ChatCardReorderWhich;
|
|
554
|
+
placedAt: string;
|
|
555
|
+
dropped: ChatCardReorderDroppedItem[];
|
|
556
|
+
}
|
|
557
|
+
export declare function decodeChatCardReorder(value: unknown, path?: string): ChatCardReorder;
|
|
558
|
+
/**
|
|
559
|
+
* ChatCardReorderWhich. A value this version does not know reads as `other`.
|
|
560
|
+
* New values may be added: keep a default branch.
|
|
561
|
+
*/
|
|
562
|
+
export declare const CHAT_CARD_REORDER_WHICH_VALUES: readonly ["usual", "last", "other"];
|
|
563
|
+
export type ChatCardReorderWhich = (typeof CHAT_CARD_REORDER_WHICH_VALUES)[number];
|
|
564
|
+
export declare function decodeChatCardReorderWhich(value: unknown, path?: string): ChatCardReorderWhich;
|
|
565
|
+
export interface ChatCardReorderDroppedItem {
|
|
566
|
+
title: string;
|
|
567
|
+
reason: ChatCardReorderDroppedItemReason;
|
|
568
|
+
}
|
|
569
|
+
export declare function decodeChatCardReorderDroppedItem(value: unknown, path?: string): ChatCardReorderDroppedItem;
|
|
570
|
+
/**
|
|
571
|
+
* ChatCardReorderDroppedItemReason. A value this version does not know reads
|
|
572
|
+
* as `other`. New values may be added: keep a default branch.
|
|
573
|
+
*/
|
|
574
|
+
export declare const CHAT_CARD_REORDER_DROPPED_ITEM_REASON_VALUES: readonly ["not_on_menu", "too_many", "other"];
|
|
575
|
+
export type ChatCardReorderDroppedItemReason = (typeof CHAT_CARD_REORDER_DROPPED_ITEM_REASON_VALUES)[number];
|
|
576
|
+
export declare function decodeChatCardReorderDroppedItemReason(value: unknown, path?: string): ChatCardReorderDroppedItemReason;
|
|
577
|
+
export interface ChatDone {
|
|
578
|
+
finishReason: ChatDoneFinishReason;
|
|
579
|
+
}
|
|
580
|
+
export declare function decodeChatDone(value: unknown, path?: string): ChatDone;
|
|
581
|
+
/**
|
|
582
|
+
* ChatDoneFinishReason. A value this version does not know reads as `other`.
|
|
583
|
+
* New values may be added: keep a default branch.
|
|
584
|
+
*/
|
|
585
|
+
export declare const CHAT_DONE_FINISH_REASON_VALUES: readonly ["stop", "length", "content_filter", "aborted", "error", "other"];
|
|
586
|
+
export type ChatDoneFinishReason = (typeof CHAT_DONE_FINISH_REASON_VALUES)[number];
|
|
587
|
+
export declare function decodeChatDoneFinishReason(value: unknown, path?: string): ChatDoneFinishReason;
|
|
588
|
+
/**
|
|
589
|
+
* ChatEvent. Switch on `type` with a default branch: a kind this version does
|
|
590
|
+
* not know reads as `$unknown`.
|
|
591
|
+
*/
|
|
592
|
+
export type ChatEvent = ChatEventStart | ChatEventText | ChatEventCard | {
|
|
593
|
+
type: "$unknown";
|
|
594
|
+
original: string;
|
|
595
|
+
};
|
|
596
|
+
export declare function decodeChatEvent(value: unknown, path?: string): ChatEvent;
|
|
597
|
+
export interface ChatEventStart {
|
|
598
|
+
type: "start";
|
|
599
|
+
conversationId: string;
|
|
600
|
+
messageId: string;
|
|
601
|
+
}
|
|
602
|
+
export declare function decodeChatEventStart(value: unknown, path?: string): ChatEventStart;
|
|
603
|
+
export interface ChatEventText {
|
|
604
|
+
type: "text";
|
|
605
|
+
delta: string;
|
|
606
|
+
}
|
|
607
|
+
export declare function decodeChatEventText(value: unknown, path?: string): ChatEventText;
|
|
608
|
+
export interface ChatEventCard {
|
|
609
|
+
type: "card";
|
|
610
|
+
cardId: string;
|
|
611
|
+
card: ChatCard;
|
|
612
|
+
}
|
|
613
|
+
export declare function decodeChatEventCard(value: unknown, path?: string): ChatEventCard;
|
|
614
|
+
export interface ChatRequest {
|
|
615
|
+
message: string;
|
|
616
|
+
conversationId?: string;
|
|
617
|
+
branch?: string;
|
|
618
|
+
mode?: ChatRequestMode;
|
|
619
|
+
table?: string;
|
|
620
|
+
locale?: string;
|
|
621
|
+
restrictions?: ChatRequestRestrictions;
|
|
622
|
+
cart?: ChatRequestCartItem[];
|
|
623
|
+
goal?: ChatRequestGoal;
|
|
624
|
+
takes?: string[];
|
|
625
|
+
hide?: ChatRequestHide;
|
|
626
|
+
cardActions?: ChatRequestCardActionsItem[];
|
|
627
|
+
}
|
|
628
|
+
export declare function decodeChatRequest(value: unknown, path?: string): ChatRequest;
|
|
629
|
+
/** ChatRequestMode. New values may be added: keep a default branch. */
|
|
630
|
+
export declare const CHAT_REQUEST_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
631
|
+
export type ChatRequestMode = (typeof CHAT_REQUEST_MODE_VALUES)[number];
|
|
632
|
+
export declare function decodeChatRequestMode(value: unknown, path?: string): ChatRequestMode;
|
|
633
|
+
export interface ChatRequestRestrictions {
|
|
634
|
+
avoidAllergens: ChatRequestRestrictionsAvoidAllergensItem[];
|
|
635
|
+
keepDiets: ChatRequestRestrictionsKeepDietsItem[];
|
|
636
|
+
}
|
|
637
|
+
export declare function decodeChatRequestRestrictions(value: unknown, path?: string): ChatRequestRestrictions;
|
|
638
|
+
/**
|
|
639
|
+
* ChatRequestRestrictionsAvoidAllergensItem. New values may be added: keep a
|
|
640
|
+
* default branch.
|
|
641
|
+
*/
|
|
642
|
+
export declare const CHAT_REQUEST_RESTRICTIONS_AVOID_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
643
|
+
export type ChatRequestRestrictionsAvoidAllergensItem = (typeof CHAT_REQUEST_RESTRICTIONS_AVOID_ALLERGENS_ITEM_VALUES)[number];
|
|
644
|
+
export declare function decodeChatRequestRestrictionsAvoidAllergensItem(value: unknown, path?: string): ChatRequestRestrictionsAvoidAllergensItem;
|
|
645
|
+
/**
|
|
646
|
+
* ChatRequestRestrictionsKeepDietsItem. New values may be added: keep a
|
|
647
|
+
* default branch.
|
|
648
|
+
*/
|
|
649
|
+
export declare const CHAT_REQUEST_RESTRICTIONS_KEEP_DIETS_ITEM_VALUES: readonly ["vegan", "vegetarian", "gluten_free", "halal", "kosher", "dairy_free", "nut_free", "keto"];
|
|
650
|
+
export type ChatRequestRestrictionsKeepDietsItem = (typeof CHAT_REQUEST_RESTRICTIONS_KEEP_DIETS_ITEM_VALUES)[number];
|
|
651
|
+
export declare function decodeChatRequestRestrictionsKeepDietsItem(value: unknown, path?: string): ChatRequestRestrictionsKeepDietsItem;
|
|
652
|
+
export interface ChatRequestCartItem {
|
|
653
|
+
dishId: string;
|
|
654
|
+
variantId?: string;
|
|
655
|
+
optionIds?: string[];
|
|
656
|
+
quantity: number;
|
|
657
|
+
picks?: ChatRequestCartItemPicksItem[];
|
|
658
|
+
}
|
|
659
|
+
export declare function decodeChatRequestCartItem(value: unknown, path?: string): ChatRequestCartItem;
|
|
660
|
+
export interface ChatRequestCartItemPicksItem {
|
|
661
|
+
pickId: string;
|
|
662
|
+
count: number;
|
|
663
|
+
}
|
|
664
|
+
export declare function decodeChatRequestCartItemPicksItem(value: unknown, path?: string): ChatRequestCartItemPicksItem;
|
|
665
|
+
export interface ChatRequestGoal {
|
|
666
|
+
mode: ChatRequestGoalMode;
|
|
667
|
+
/**
|
|
668
|
+
* Calories for one meal: a ceiling when cutting or maintaining, a floor when
|
|
669
|
+
* bulking.
|
|
670
|
+
*/
|
|
671
|
+
kcal?: number;
|
|
672
|
+
/** Grams of protein for one meal, always a floor. */
|
|
673
|
+
proteinGrams?: number;
|
|
674
|
+
}
|
|
675
|
+
export declare function decodeChatRequestGoal(value: unknown, path?: string): ChatRequestGoal;
|
|
676
|
+
/** ChatRequestGoalMode. New values may be added: keep a default branch. */
|
|
677
|
+
export declare const CHAT_REQUEST_GOAL_MODE_VALUES: readonly ["cutting", "maintain", "bulking"];
|
|
678
|
+
export type ChatRequestGoalMode = (typeof CHAT_REQUEST_GOAL_MODE_VALUES)[number];
|
|
679
|
+
export declare function decodeChatRequestGoalMode(value: unknown, path?: string): ChatRequestGoalMode;
|
|
680
|
+
export interface ChatRequestHide {
|
|
681
|
+
retailSuggestions?: boolean;
|
|
682
|
+
loyalty?: boolean;
|
|
683
|
+
}
|
|
684
|
+
export declare function decodeChatRequestHide(value: unknown, path?: string): ChatRequestHide;
|
|
685
|
+
export interface ChatRequestCardActionsItem {
|
|
686
|
+
tool: "offer_to_order";
|
|
687
|
+
offeredAt: string;
|
|
688
|
+
outcome: "added";
|
|
689
|
+
lines: ChatRequestCardActionsItemLinesItem[];
|
|
690
|
+
}
|
|
691
|
+
export declare function decodeChatRequestCardActionsItem(value: unknown, path?: string): ChatRequestCardActionsItem;
|
|
692
|
+
export interface ChatRequestCardActionsItemLinesItem {
|
|
693
|
+
dishId: string;
|
|
694
|
+
quantity: number;
|
|
695
|
+
size?: string | null;
|
|
696
|
+
}
|
|
697
|
+
export declare function decodeChatRequestCardActionsItemLinesItem(value: unknown, path?: string): ChatRequestCardActionsItemLinesItem;
|
|
698
|
+
export interface ClientApiError {
|
|
699
|
+
defined: boolean;
|
|
700
|
+
code: string;
|
|
701
|
+
status: number;
|
|
702
|
+
message: string;
|
|
703
|
+
data?: ClientApiErrorData;
|
|
704
|
+
}
|
|
705
|
+
export declare function decodeClientApiError(value: unknown, path?: string): ClientApiError;
|
|
706
|
+
export interface ClientApiErrorData {
|
|
707
|
+
code: ClientApiErrorDataCode;
|
|
708
|
+
requestId?: string;
|
|
709
|
+
retryAfter?: number;
|
|
710
|
+
refusal?: ClientApiErrorDataRefusal;
|
|
711
|
+
problems?: ClientApiErrorDataProblemsItem[];
|
|
712
|
+
pausedUntil?: string;
|
|
713
|
+
payRefusal?: ClientApiErrorDataPayRefusal;
|
|
714
|
+
pickupRefusal?: ClientApiErrorDataPickupRefusal;
|
|
715
|
+
reviewRefusal?: ClientApiErrorDataReviewRefusal;
|
|
716
|
+
treatRefusal?: ClientApiErrorDataTreatRefusal;
|
|
717
|
+
amount?: string;
|
|
718
|
+
paymentId?: string;
|
|
719
|
+
fallback?: ClientApiErrorDataFallback;
|
|
720
|
+
}
|
|
721
|
+
export declare function decodeClientApiErrorData(value: unknown, path?: string): ClientApiErrorData;
|
|
722
|
+
/**
|
|
723
|
+
* ClientApiErrorDataCode. A value this version does not know reads as `other`.
|
|
724
|
+
* New values may be added: keep a default branch.
|
|
725
|
+
*/
|
|
726
|
+
export declare const CLIENT_API_ERROR_DATA_CODE_VALUES: readonly ["app_key_invalid", "sdk_disabled", "origin_not_allowed", "session_expired", "token_invalid", "token_replayed", "code_invalid", "guest_not_allowed", "unavailable", "rate_limited", "menu_unavailable", "after_hours_closed", "waiter_resting", "test_limit_reached", "max_turns_reached", "message_rejected", "nothing_heard", "invalid_request", "not_found", "table_refused", "pay_refused", "pickup_refused", "review_refused", "identity_required", "treat_refused", "other"];
|
|
727
|
+
export type ClientApiErrorDataCode = (typeof CLIENT_API_ERROR_DATA_CODE_VALUES)[number];
|
|
728
|
+
export declare function decodeClientApiErrorDataCode(value: unknown, path?: string): ClientApiErrorDataCode;
|
|
729
|
+
/**
|
|
730
|
+
* ClientApiErrorDataRefusal. A value this version does not know reads as
|
|
731
|
+
* `other`. New values may be added: keep a default branch.
|
|
732
|
+
*/
|
|
733
|
+
export declare const CLIENT_API_ERROR_DATA_REFUSAL_VALUES: readonly ["unknown_table", "table_off_plan", "no_table", "table_cleared", "stale", "ordering_off", "paused", "closed", "unavailable", "test_key", "other"];
|
|
734
|
+
export type ClientApiErrorDataRefusal = (typeof CLIENT_API_ERROR_DATA_REFUSAL_VALUES)[number];
|
|
735
|
+
export declare function decodeClientApiErrorDataRefusal(value: unknown, path?: string): ClientApiErrorDataRefusal;
|
|
736
|
+
export interface ClientApiErrorDataProblemsItem {
|
|
737
|
+
dishId: string;
|
|
738
|
+
name: string | null;
|
|
739
|
+
problem: ClientApiErrorDataProblemsItemProblem;
|
|
740
|
+
}
|
|
741
|
+
export declare function decodeClientApiErrorDataProblemsItem(value: unknown, path?: string): ClientApiErrorDataProblemsItem;
|
|
742
|
+
/**
|
|
743
|
+
* ClientApiErrorDataProblemsItemProblem. A value this version does not know
|
|
744
|
+
* reads as `other`. New values may be added: keep a default branch.
|
|
745
|
+
*/
|
|
746
|
+
export declare const CLIENT_API_ERROR_DATA_PROBLEMS_ITEM_PROBLEM_VALUES: readonly ["gone", "sold_out", "not_served_now", "size_required", "size_gone", "choices_required", "quantity", "other"];
|
|
747
|
+
export type ClientApiErrorDataProblemsItemProblem = (typeof CLIENT_API_ERROR_DATA_PROBLEMS_ITEM_PROBLEM_VALUES)[number];
|
|
748
|
+
export declare function decodeClientApiErrorDataProblemsItemProblem(value: unknown, path?: string): ClientApiErrorDataProblemsItemProblem;
|
|
749
|
+
/**
|
|
750
|
+
* ClientApiErrorDataPayRefusal. A value this version does not know reads as
|
|
751
|
+
* `other`. New values may be added: keep a default branch.
|
|
752
|
+
*/
|
|
753
|
+
export declare const CLIENT_API_ERROR_DATA_PAY_REFUSAL_VALUES: readonly ["not_enabled", "paused", "no_provider", "provider_not_available", "test_key", "orders_to_app", "invalid_amount", "below_minimum", "above_maximum", "tip_too_large", "tips_off", "daily_cap", "wallet_full", "monthly_cap", "payment_in_progress", "already_paid", "provider_unavailable", "provider_error", "table_already_paid", "tab_not_found", "typed_amount_off", "tab_nothing_owed", "tab_amount_over", "tab_changed", "other"];
|
|
754
|
+
export type ClientApiErrorDataPayRefusal = (typeof CLIENT_API_ERROR_DATA_PAY_REFUSAL_VALUES)[number];
|
|
755
|
+
export declare function decodeClientApiErrorDataPayRefusal(value: unknown, path?: string): ClientApiErrorDataPayRefusal;
|
|
756
|
+
/**
|
|
757
|
+
* ClientApiErrorDataPickupRefusal. A value this version does not know reads as
|
|
758
|
+
* `other`. New values may be added: keep a default branch.
|
|
759
|
+
*/
|
|
760
|
+
export declare const CLIENT_API_ERROR_DATA_PICKUP_REFUSAL_VALUES: readonly ["ordering_off", "no_branch", "paused", "closed", "pickup_time", "details", "blocked", "too_large", "unavailable", "catering_menu", "test_key", "other"];
|
|
761
|
+
export type ClientApiErrorDataPickupRefusal = (typeof CLIENT_API_ERROR_DATA_PICKUP_REFUSAL_VALUES)[number];
|
|
762
|
+
export declare function decodeClientApiErrorDataPickupRefusal(value: unknown, path?: string): ClientApiErrorDataPickupRefusal;
|
|
763
|
+
/**
|
|
764
|
+
* ClientApiErrorDataReviewRefusal. A value this version does not know reads as
|
|
765
|
+
* `other`. New values may be added: keep a default branch.
|
|
766
|
+
*/
|
|
767
|
+
export declare const CLIENT_API_ERROR_DATA_REVIEW_REFUSAL_VALUES: readonly ["order_not_found", "order_closed", "too_old", "nothing_to_review", "other"];
|
|
768
|
+
export type ClientApiErrorDataReviewRefusal = (typeof CLIENT_API_ERROR_DATA_REVIEW_REFUSAL_VALUES)[number];
|
|
769
|
+
export declare function decodeClientApiErrorDataReviewRefusal(value: unknown, path?: string): ClientApiErrorDataReviewRefusal;
|
|
770
|
+
/**
|
|
771
|
+
* ClientApiErrorDataTreatRefusal. A value this version does not know reads as
|
|
772
|
+
* `other`. New values may be added: keep a default branch.
|
|
773
|
+
*/
|
|
774
|
+
export declare const CLIENT_API_ERROR_DATA_TREAT_REFUSAL_VALUES: readonly ["withdrawn", "expired", "already_redeemed", "other"];
|
|
775
|
+
export type ClientApiErrorDataTreatRefusal = (typeof CLIENT_API_ERROR_DATA_TREAT_REFUSAL_VALUES)[number];
|
|
776
|
+
export declare function decodeClientApiErrorDataTreatRefusal(value: unknown, path?: string): ClientApiErrorDataTreatRefusal;
|
|
777
|
+
export interface ClientApiErrorDataFallback {
|
|
778
|
+
name: string;
|
|
779
|
+
phone: string | null;
|
|
780
|
+
message: string;
|
|
781
|
+
}
|
|
782
|
+
export declare function decodeClientApiErrorDataFallback(value: unknown, path?: string): ClientApiErrorDataFallback;
|
|
783
|
+
export interface ConversationEndedEvent {
|
|
784
|
+
type: "conversation.ended";
|
|
785
|
+
timestamp: string;
|
|
786
|
+
livemode: boolean;
|
|
787
|
+
data: ConversationEndedEventData;
|
|
788
|
+
}
|
|
789
|
+
export declare function decodeConversationEndedEvent(value: unknown, path?: string): ConversationEndedEvent;
|
|
790
|
+
export interface ConversationEndedEventData {
|
|
791
|
+
conversationId: string;
|
|
792
|
+
appKeyId: string;
|
|
793
|
+
externalUserId: string | null;
|
|
794
|
+
branch: string | null;
|
|
795
|
+
reason: ConversationEndedEventDataReason;
|
|
796
|
+
startedAt: string;
|
|
797
|
+
endedAt: string;
|
|
798
|
+
staffCalled: boolean;
|
|
799
|
+
messageCount: number;
|
|
800
|
+
}
|
|
801
|
+
export declare function decodeConversationEndedEventData(value: unknown, path?: string): ConversationEndedEventData;
|
|
802
|
+
/**
|
|
803
|
+
* ConversationEndedEventDataReason. A value this version does not know reads
|
|
804
|
+
* as `unknown`. New values may be added: keep a default branch.
|
|
805
|
+
*/
|
|
806
|
+
export declare const CONVERSATION_ENDED_EVENT_DATA_REASON_VALUES: readonly ["resolved", "idle", "new_chat", "logged_out", "unknown"];
|
|
807
|
+
export type ConversationEndedEventDataReason = (typeof CONVERSATION_ENDED_EVENT_DATA_REASON_VALUES)[number];
|
|
808
|
+
export declare function decodeConversationEndedEventDataReason(value: unknown, path?: string): ConversationEndedEventDataReason;
|
|
809
|
+
export interface ConversationList {
|
|
810
|
+
conversations: ConversationListConversationsItem[];
|
|
811
|
+
}
|
|
812
|
+
export declare function decodeConversationList(value: unknown, path?: string): ConversationList;
|
|
813
|
+
export interface ConversationListConversationsItem {
|
|
814
|
+
conversationId: string;
|
|
815
|
+
status: ConversationListConversationsItemStatus;
|
|
816
|
+
channel: ConversationListConversationsItemChannel;
|
|
817
|
+
locale: string | null;
|
|
818
|
+
startedAt: string;
|
|
819
|
+
updatedAt: string;
|
|
820
|
+
title: string | null;
|
|
821
|
+
}
|
|
822
|
+
export declare function decodeConversationListConversationsItem(value: unknown, path?: string): ConversationListConversationsItem;
|
|
823
|
+
/**
|
|
824
|
+
* ConversationListConversationsItemStatus. A value this version does not know
|
|
825
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
826
|
+
*/
|
|
827
|
+
export declare const CONVERSATION_LIST_CONVERSATIONS_ITEM_STATUS_VALUES: readonly ["active", "resolved", "escalated", "fallback", "abandoned", "unknown"];
|
|
828
|
+
export type ConversationListConversationsItemStatus = (typeof CONVERSATION_LIST_CONVERSATIONS_ITEM_STATUS_VALUES)[number];
|
|
829
|
+
export declare function decodeConversationListConversationsItemStatus(value: unknown, path?: string): ConversationListConversationsItemStatus;
|
|
830
|
+
/**
|
|
831
|
+
* ConversationListConversationsItemChannel. A value this version does not know
|
|
832
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
833
|
+
*/
|
|
834
|
+
export declare const CONVERSATION_LIST_CONVERSATIONS_ITEM_CHANNEL_VALUES: readonly ["qr", "widget", "app", "mcp", "unknown"];
|
|
835
|
+
export type ConversationListConversationsItemChannel = (typeof CONVERSATION_LIST_CONVERSATIONS_ITEM_CHANNEL_VALUES)[number];
|
|
836
|
+
export declare function decodeConversationListConversationsItemChannel(value: unknown, path?: string): ConversationListConversationsItemChannel;
|
|
837
|
+
export interface ConversationResponse {
|
|
838
|
+
conversationId: string;
|
|
839
|
+
status: ConversationResponseStatus;
|
|
840
|
+
channel: ConversationResponseChannel;
|
|
841
|
+
locale: string | null;
|
|
842
|
+
startedAt: string;
|
|
843
|
+
updatedAt: string;
|
|
844
|
+
messages: ConversationResponseMessagesItem[];
|
|
845
|
+
}
|
|
846
|
+
export declare function decodeConversationResponse(value: unknown, path?: string): ConversationResponse;
|
|
847
|
+
/**
|
|
848
|
+
* ConversationResponseStatus. A value this version does not know reads as
|
|
849
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
850
|
+
*/
|
|
851
|
+
export declare const CONVERSATION_RESPONSE_STATUS_VALUES: readonly ["active", "resolved", "escalated", "fallback", "abandoned", "unknown"];
|
|
852
|
+
export type ConversationResponseStatus = (typeof CONVERSATION_RESPONSE_STATUS_VALUES)[number];
|
|
853
|
+
export declare function decodeConversationResponseStatus(value: unknown, path?: string): ConversationResponseStatus;
|
|
854
|
+
/**
|
|
855
|
+
* ConversationResponseChannel. A value this version does not know reads as
|
|
856
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
857
|
+
*/
|
|
858
|
+
export declare const CONVERSATION_RESPONSE_CHANNEL_VALUES: readonly ["qr", "widget", "app", "mcp", "unknown"];
|
|
859
|
+
export type ConversationResponseChannel = (typeof CONVERSATION_RESPONSE_CHANNEL_VALUES)[number];
|
|
860
|
+
export declare function decodeConversationResponseChannel(value: unknown, path?: string): ConversationResponseChannel;
|
|
861
|
+
export interface ConversationResponseMessagesItem {
|
|
862
|
+
messageId: string;
|
|
863
|
+
role: ConversationResponseMessagesItemRole;
|
|
864
|
+
createdAt: string;
|
|
865
|
+
text: string | null;
|
|
866
|
+
cards: ChatCard[];
|
|
867
|
+
}
|
|
868
|
+
export declare function decodeConversationResponseMessagesItem(value: unknown, path?: string): ConversationResponseMessagesItem;
|
|
869
|
+
/**
|
|
870
|
+
* ConversationResponseMessagesItemRole. A value this version does not know
|
|
871
|
+
* reads as `other`. New values may be added: keep a default branch.
|
|
872
|
+
*/
|
|
873
|
+
export declare const CONVERSATION_RESPONSE_MESSAGES_ITEM_ROLE_VALUES: readonly ["diner", "waiter", "other"];
|
|
874
|
+
export type ConversationResponseMessagesItemRole = (typeof CONVERSATION_RESPONSE_MESSAGES_ITEM_ROLE_VALUES)[number];
|
|
875
|
+
export declare function decodeConversationResponseMessagesItemRole(value: unknown, path?: string): ConversationResponseMessagesItemRole;
|
|
876
|
+
export interface MenuResponse {
|
|
877
|
+
menu: MenuResponseMenu;
|
|
878
|
+
categories: MenuResponseCategoriesItem[];
|
|
879
|
+
}
|
|
880
|
+
export declare function decodeMenuResponse(value: unknown, path?: string): MenuResponse;
|
|
881
|
+
export interface MenuResponseMenu {
|
|
882
|
+
name: string;
|
|
883
|
+
locale: string;
|
|
884
|
+
currency: string;
|
|
885
|
+
}
|
|
886
|
+
export declare function decodeMenuResponseMenu(value: unknown, path?: string): MenuResponseMenu;
|
|
887
|
+
export interface MenuResponseCategoriesItem {
|
|
888
|
+
name: string;
|
|
889
|
+
dishes: MenuResponseCategoriesItemDishesItem[];
|
|
890
|
+
}
|
|
891
|
+
export declare function decodeMenuResponseCategoriesItem(value: unknown, path?: string): MenuResponseCategoriesItem;
|
|
892
|
+
export interface MenuResponseCategoriesItemDishesItem {
|
|
893
|
+
dishId: string;
|
|
894
|
+
name: string;
|
|
895
|
+
price: string;
|
|
896
|
+
currency: string;
|
|
897
|
+
imageUrl: string | null;
|
|
898
|
+
calories: number | null;
|
|
899
|
+
proteinGrams: number | null;
|
|
900
|
+
carbsGrams: number | null;
|
|
901
|
+
fatGrams: number | null;
|
|
902
|
+
allergens: MenuResponseCategoriesItemDishesItemAllergensItem[];
|
|
903
|
+
dietaryTags: MenuResponseCategoriesItemDishesItemDietaryTagsItem[];
|
|
904
|
+
available: boolean;
|
|
905
|
+
externalId: string | null;
|
|
906
|
+
description: string | null;
|
|
907
|
+
sizes: MenuResponseCategoriesItemDishesItemSizesItem[];
|
|
908
|
+
choices: MenuResponseCategoriesItemDishesItemChoicesItem[];
|
|
909
|
+
}
|
|
910
|
+
export declare function decodeMenuResponseCategoriesItemDishesItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItem;
|
|
911
|
+
/**
|
|
912
|
+
* MenuResponseCategoriesItemDishesItemAllergensItem. New values may be added:
|
|
913
|
+
* keep a default branch.
|
|
914
|
+
*/
|
|
915
|
+
export declare const MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
916
|
+
export type MenuResponseCategoriesItemDishesItemAllergensItem = (typeof MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_ALLERGENS_ITEM_VALUES)[number];
|
|
917
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemAllergensItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemAllergensItem;
|
|
918
|
+
/**
|
|
919
|
+
* MenuResponseCategoriesItemDishesItemDietaryTagsItem. A value this version
|
|
920
|
+
* does not know reads as `other`. New values may be added: keep a default
|
|
921
|
+
* branch.
|
|
922
|
+
*/
|
|
923
|
+
export declare const MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_DIETARY_TAGS_ITEM_VALUES: readonly ["vegan", "vegetarian", "gluten_free", "halal", "kosher", "dairy_free", "nut_free", "keto", "spicy", "high_protein", "other"];
|
|
924
|
+
export type MenuResponseCategoriesItemDishesItemDietaryTagsItem = (typeof MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_DIETARY_TAGS_ITEM_VALUES)[number];
|
|
925
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemDietaryTagsItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemDietaryTagsItem;
|
|
926
|
+
export interface MenuResponseCategoriesItemDishesItemSizesItem {
|
|
927
|
+
variantId: string;
|
|
928
|
+
label: string;
|
|
929
|
+
price: string;
|
|
930
|
+
externalId: string | null;
|
|
931
|
+
}
|
|
932
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemSizesItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemSizesItem;
|
|
933
|
+
export interface MenuResponseCategoriesItemDishesItemChoicesItem {
|
|
934
|
+
name: string;
|
|
935
|
+
min: number;
|
|
936
|
+
max: number;
|
|
937
|
+
options: MenuResponseCategoriesItemDishesItemChoicesItemOptionsItem[];
|
|
938
|
+
}
|
|
939
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemChoicesItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemChoicesItem;
|
|
940
|
+
export interface MenuResponseCategoriesItemDishesItemChoicesItemOptionsItem {
|
|
941
|
+
optionId: string;
|
|
942
|
+
name: string;
|
|
943
|
+
price: string | null;
|
|
944
|
+
extra: string | null;
|
|
945
|
+
calories: number | null;
|
|
946
|
+
proteinGrams: number | null;
|
|
947
|
+
carbsGrams: number | null;
|
|
948
|
+
fatGrams: number | null;
|
|
949
|
+
allergens: MenuResponseCategoriesItemDishesItemChoicesItemOptionsItemAllergensItem[];
|
|
950
|
+
externalId: string | null;
|
|
951
|
+
}
|
|
952
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemChoicesItemOptionsItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemChoicesItemOptionsItem;
|
|
953
|
+
/**
|
|
954
|
+
* MenuResponseCategoriesItemDishesItemChoicesItemOptionsItemAllergensItem. New
|
|
955
|
+
* values may be added: keep a default branch.
|
|
956
|
+
*/
|
|
957
|
+
export declare const MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_CHOICES_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES: readonly ["gluten", "dairy", "egg", "nuts", "sesame", "soy", "fish", "shellfish", "peanut", "mustard"];
|
|
958
|
+
export type MenuResponseCategoriesItemDishesItemChoicesItemOptionsItemAllergensItem = (typeof MENU_RESPONSE_CATEGORIES_ITEM_DISHES_ITEM_CHOICES_ITEM_OPTIONS_ITEM_ALLERGENS_ITEM_VALUES)[number];
|
|
959
|
+
export declare function decodeMenuResponseCategoriesItemDishesItemChoicesItemOptionsItemAllergensItem(value: unknown, path?: string): MenuResponseCategoriesItemDishesItemChoicesItemOptionsItemAllergensItem;
|
|
960
|
+
export interface OrderCancelledEvent {
|
|
961
|
+
type: "order.cancelled";
|
|
962
|
+
timestamp: string;
|
|
963
|
+
livemode: boolean;
|
|
964
|
+
data: OrderCancelledEventData;
|
|
965
|
+
}
|
|
966
|
+
export declare function decodeOrderCancelledEvent(value: unknown, path?: string): OrderCancelledEvent;
|
|
967
|
+
export interface OrderCancelledEventData {
|
|
968
|
+
externalUserId: string | null;
|
|
969
|
+
orderId: string;
|
|
970
|
+
status: OrderCancelledEventDataStatus;
|
|
971
|
+
by: OrderCancelledEventDataBy;
|
|
972
|
+
}
|
|
973
|
+
export declare function decodeOrderCancelledEventData(value: unknown, path?: string): OrderCancelledEventData;
|
|
974
|
+
/**
|
|
975
|
+
* OrderCancelledEventDataStatus. A value this version does not know reads as
|
|
976
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
977
|
+
*/
|
|
978
|
+
export declare const ORDER_CANCELLED_EVENT_DATA_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
979
|
+
export type OrderCancelledEventDataStatus = (typeof ORDER_CANCELLED_EVENT_DATA_STATUS_VALUES)[number];
|
|
980
|
+
export declare function decodeOrderCancelledEventDataStatus(value: unknown, path?: string): OrderCancelledEventDataStatus;
|
|
981
|
+
/**
|
|
982
|
+
* OrderCancelledEventDataBy. A value this version does not know reads as
|
|
983
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
984
|
+
*/
|
|
985
|
+
export declare const ORDER_CANCELLED_EVENT_DATA_BY_VALUES: readonly ["restaurant", "diner", "time", "unknown"];
|
|
986
|
+
export type OrderCancelledEventDataBy = (typeof ORDER_CANCELLED_EVENT_DATA_BY_VALUES)[number];
|
|
987
|
+
export declare function decodeOrderCancelledEventDataBy(value: unknown, path?: string): OrderCancelledEventDataBy;
|
|
988
|
+
export interface OrderPlacedEvent {
|
|
989
|
+
type: "order.placed";
|
|
990
|
+
timestamp: string;
|
|
991
|
+
livemode: boolean;
|
|
992
|
+
data: OrderPlacedEventData;
|
|
993
|
+
}
|
|
994
|
+
export declare function decodeOrderPlacedEvent(value: unknown, path?: string): OrderPlacedEvent;
|
|
995
|
+
export interface OrderPlacedEventData {
|
|
996
|
+
externalUserId: string | null;
|
|
997
|
+
conversationId: string | null;
|
|
998
|
+
orderId: string;
|
|
999
|
+
/** The short number staff call out, per branch and service day. */
|
|
1000
|
+
number: number;
|
|
1001
|
+
status: OrderPlacedEventDataStatus;
|
|
1002
|
+
branch: string;
|
|
1003
|
+
table: string | null;
|
|
1004
|
+
currency: string;
|
|
1005
|
+
subtotal: string;
|
|
1006
|
+
lines: OrderPlacedEventDataLinesItem[];
|
|
1007
|
+
fulfilment?: OrderPlacedEventDataFulfilment;
|
|
1008
|
+
pickupAt?: string | null;
|
|
1009
|
+
pickupCode?: string | null;
|
|
1010
|
+
test?: boolean;
|
|
1011
|
+
}
|
|
1012
|
+
export declare function decodeOrderPlacedEventData(value: unknown, path?: string): OrderPlacedEventData;
|
|
1013
|
+
/**
|
|
1014
|
+
* OrderPlacedEventDataStatus. A value this version does not know reads as
|
|
1015
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
1016
|
+
*/
|
|
1017
|
+
export declare const ORDER_PLACED_EVENT_DATA_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1018
|
+
export type OrderPlacedEventDataStatus = (typeof ORDER_PLACED_EVENT_DATA_STATUS_VALUES)[number];
|
|
1019
|
+
export declare function decodeOrderPlacedEventDataStatus(value: unknown, path?: string): OrderPlacedEventDataStatus;
|
|
1020
|
+
export interface OrderPlacedEventDataLinesItem {
|
|
1021
|
+
dishId: string | null;
|
|
1022
|
+
externalId: string | null;
|
|
1023
|
+
quantity: number;
|
|
1024
|
+
unitPrice: string;
|
|
1025
|
+
}
|
|
1026
|
+
export declare function decodeOrderPlacedEventDataLinesItem(value: unknown, path?: string): OrderPlacedEventDataLinesItem;
|
|
1027
|
+
/**
|
|
1028
|
+
* OrderPlacedEventDataFulfilment. A value this version does not know reads as
|
|
1029
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
1030
|
+
*/
|
|
1031
|
+
export declare const ORDER_PLACED_EVENT_DATA_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1032
|
+
export type OrderPlacedEventDataFulfilment = (typeof ORDER_PLACED_EVENT_DATA_FULFILMENT_VALUES)[number];
|
|
1033
|
+
export declare function decodeOrderPlacedEventDataFulfilment(value: unknown, path?: string): OrderPlacedEventDataFulfilment;
|
|
1034
|
+
export interface PaymentCompletedEvent {
|
|
1035
|
+
type: "payment.completed";
|
|
1036
|
+
timestamp: string;
|
|
1037
|
+
livemode: boolean;
|
|
1038
|
+
data: PaymentCompletedEventData;
|
|
1039
|
+
}
|
|
1040
|
+
export declare function decodePaymentCompletedEvent(value: unknown, path?: string): PaymentCompletedEvent;
|
|
1041
|
+
export interface PaymentCompletedEventData {
|
|
1042
|
+
externalUserId: string | null;
|
|
1043
|
+
conversationId: string | null;
|
|
1044
|
+
paymentId: string;
|
|
1045
|
+
reference: string;
|
|
1046
|
+
amount: string;
|
|
1047
|
+
tip: string;
|
|
1048
|
+
currency: string;
|
|
1049
|
+
orderId: string | null;
|
|
1050
|
+
branch: string;
|
|
1051
|
+
table: string | null;
|
|
1052
|
+
}
|
|
1053
|
+
export declare function decodePaymentCompletedEventData(value: unknown, path?: string): PaymentCompletedEventData;
|
|
1054
|
+
export interface ReviewSubmittedEvent {
|
|
1055
|
+
type: "review.submitted";
|
|
1056
|
+
timestamp: string;
|
|
1057
|
+
livemode: boolean;
|
|
1058
|
+
data: ReviewSubmittedEventData;
|
|
1059
|
+
}
|
|
1060
|
+
export declare function decodeReviewSubmittedEvent(value: unknown, path?: string): ReviewSubmittedEvent;
|
|
1061
|
+
export interface ReviewSubmittedEventData {
|
|
1062
|
+
reviewId: string;
|
|
1063
|
+
externalUserId: string;
|
|
1064
|
+
externalOrderId: string | null;
|
|
1065
|
+
conversationId: string | null;
|
|
1066
|
+
dishId: string;
|
|
1067
|
+
externalId: string | null;
|
|
1068
|
+
rating: number;
|
|
1069
|
+
submittedAt: string;
|
|
1070
|
+
}
|
|
1071
|
+
export declare function decodeReviewSubmittedEventData(value: unknown, path?: string): ReviewSubmittedEventData;
|
|
1072
|
+
export interface StaffRequestedEvent {
|
|
1073
|
+
type: "staff.requested";
|
|
1074
|
+
timestamp: string;
|
|
1075
|
+
livemode: boolean;
|
|
1076
|
+
data: StaffRequestedEventData;
|
|
1077
|
+
}
|
|
1078
|
+
export declare function decodeStaffRequestedEvent(value: unknown, path?: string): StaffRequestedEvent;
|
|
1079
|
+
export interface StaffRequestedEventData {
|
|
1080
|
+
conversationId: string;
|
|
1081
|
+
externalUserId: string | null;
|
|
1082
|
+
branch: string | null;
|
|
1083
|
+
table: string | null;
|
|
1084
|
+
source: StaffRequestedEventDataSource;
|
|
1085
|
+
kind?: StaffRequestedEventDataKind;
|
|
1086
|
+
reason?: StaffRequestedEventDataReason;
|
|
1087
|
+
urgency?: StaffRequestedEventDataUrgency;
|
|
1088
|
+
}
|
|
1089
|
+
export declare function decodeStaffRequestedEventData(value: unknown, path?: string): StaffRequestedEventData;
|
|
1090
|
+
/**
|
|
1091
|
+
* StaffRequestedEventDataSource. A value this version does not know reads as
|
|
1092
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
1093
|
+
*/
|
|
1094
|
+
export declare const STAFF_REQUESTED_EVENT_DATA_SOURCE_VALUES: readonly ["request", "escalation", "unknown"];
|
|
1095
|
+
export type StaffRequestedEventDataSource = (typeof STAFF_REQUESTED_EVENT_DATA_SOURCE_VALUES)[number];
|
|
1096
|
+
export declare function decodeStaffRequestedEventDataSource(value: unknown, path?: string): StaffRequestedEventDataSource;
|
|
1097
|
+
/**
|
|
1098
|
+
* StaffRequestedEventDataKind. A value this version does not know reads as
|
|
1099
|
+
* `other`. New values may be added: keep a default branch.
|
|
1100
|
+
*/
|
|
1101
|
+
export declare const STAFF_REQUESTED_EVENT_DATA_KIND_VALUES: readonly ["order_now", "water", "check", "extra_napkins", "refill", "other"];
|
|
1102
|
+
export type StaffRequestedEventDataKind = (typeof STAFF_REQUESTED_EVENT_DATA_KIND_VALUES)[number];
|
|
1103
|
+
export declare function decodeStaffRequestedEventDataKind(value: unknown, path?: string): StaffRequestedEventDataKind;
|
|
1104
|
+
/**
|
|
1105
|
+
* StaffRequestedEventDataReason. A value this version does not know reads as
|
|
1106
|
+
* `unknown_other`. New values may be added: keep a default branch.
|
|
1107
|
+
*/
|
|
1108
|
+
export declare const STAFF_REQUESTED_EVENT_DATA_REASON_VALUES: readonly ["diner_requested_staff", "allergen_severe", "off_menu_question", "order_placement", "complaint", "reservation", "payment", "unknown_other"];
|
|
1109
|
+
export type StaffRequestedEventDataReason = (typeof STAFF_REQUESTED_EVENT_DATA_REASON_VALUES)[number];
|
|
1110
|
+
export declare function decodeStaffRequestedEventDataReason(value: unknown, path?: string): StaffRequestedEventDataReason;
|
|
1111
|
+
/**
|
|
1112
|
+
* StaffRequestedEventDataUrgency. A value this version does not know reads as
|
|
1113
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
1114
|
+
*/
|
|
1115
|
+
export declare const STAFF_REQUESTED_EVENT_DATA_URGENCY_VALUES: readonly ["normal", "high", "unknown"];
|
|
1116
|
+
export type StaffRequestedEventDataUrgency = (typeof STAFF_REQUESTED_EVENT_DATA_URGENCY_VALUES)[number];
|
|
1117
|
+
export declare function decodeStaffRequestedEventDataUrgency(value: unknown, path?: string): StaffRequestedEventDataUrgency;
|
|
1118
|
+
export interface WaiterFace {
|
|
1119
|
+
name: string;
|
|
1120
|
+
avatarLetter: string;
|
|
1121
|
+
greeting: string;
|
|
1122
|
+
starters: string[];
|
|
1123
|
+
voice: boolean;
|
|
1124
|
+
languages: string[];
|
|
1125
|
+
/**
|
|
1126
|
+
* The restaurant's brand: the menu's kit over the organization's. Every field
|
|
1127
|
+
* optional.
|
|
1128
|
+
*/
|
|
1129
|
+
brand?: WaiterFaceBrand;
|
|
1130
|
+
ordersGoTo: WaiterFaceOrdersGoTo;
|
|
1131
|
+
/**
|
|
1132
|
+
* The restaurant's settings for the waiter in its app, between the menu's
|
|
1133
|
+
* brand and the app's overrides. Every field but allowCustomise may be left
|
|
1134
|
+
* out.
|
|
1135
|
+
*/
|
|
1136
|
+
app?: WaiterFaceApp;
|
|
1137
|
+
}
|
|
1138
|
+
export declare function decodeWaiterFace(value: unknown, path?: string): WaiterFace;
|
|
1139
|
+
/**
|
|
1140
|
+
* The restaurant's brand: the menu's kit over the organization's. Every field
|
|
1141
|
+
* optional.
|
|
1142
|
+
*/
|
|
1143
|
+
export interface WaiterFaceBrand {
|
|
1144
|
+
accent?: string;
|
|
1145
|
+
accentSecondary?: string;
|
|
1146
|
+
paper?: string;
|
|
1147
|
+
displayFont?: WaiterFaceBrandDisplayFont;
|
|
1148
|
+
uiFont?: WaiterFaceBrandUiFont;
|
|
1149
|
+
displayFontUrl?: string;
|
|
1150
|
+
uiFontUrl?: string;
|
|
1151
|
+
logoUrl?: string;
|
|
1152
|
+
}
|
|
1153
|
+
export declare function decodeWaiterFaceBrand(value: unknown, path?: string): WaiterFaceBrand;
|
|
1154
|
+
/**
|
|
1155
|
+
* WaiterFaceBrandDisplayFont. A value this version does not know reads as
|
|
1156
|
+
* `other`. New values may be added: keep a default branch.
|
|
1157
|
+
*/
|
|
1158
|
+
export declare const WAITER_FACE_BRAND_DISPLAY_FONT_VALUES: readonly ["fraunces", "cormorant", "playfair", "dm-serif", "eb-garamond", "crimson", "other"];
|
|
1159
|
+
export type WaiterFaceBrandDisplayFont = (typeof WAITER_FACE_BRAND_DISPLAY_FONT_VALUES)[number];
|
|
1160
|
+
export declare function decodeWaiterFaceBrandDisplayFont(value: unknown, path?: string): WaiterFaceBrandDisplayFont;
|
|
1161
|
+
/**
|
|
1162
|
+
* WaiterFaceBrandUiFont. A value this version does not know reads as `other`.
|
|
1163
|
+
* New values may be added: keep a default branch.
|
|
1164
|
+
*/
|
|
1165
|
+
export declare const WAITER_FACE_BRAND_UI_FONT_VALUES: readonly ["geist", "inter", "system", "manrope", "sora", "dm-sans", "other"];
|
|
1166
|
+
export type WaiterFaceBrandUiFont = (typeof WAITER_FACE_BRAND_UI_FONT_VALUES)[number];
|
|
1167
|
+
export declare function decodeWaiterFaceBrandUiFont(value: unknown, path?: string): WaiterFaceBrandUiFont;
|
|
1168
|
+
/**
|
|
1169
|
+
* WaiterFaceOrdersGoTo. A value this version does not know reads as `tamr`.
|
|
1170
|
+
* New values may be added: keep a default branch.
|
|
1171
|
+
*/
|
|
1172
|
+
export declare const WAITER_FACE_ORDERS_GO_TO_VALUES: readonly ["tamr", "app_cart"];
|
|
1173
|
+
export type WaiterFaceOrdersGoTo = (typeof WAITER_FACE_ORDERS_GO_TO_VALUES)[number];
|
|
1174
|
+
export declare function decodeWaiterFaceOrdersGoTo(value: unknown, path?: string): WaiterFaceOrdersGoTo;
|
|
1175
|
+
/**
|
|
1176
|
+
* The restaurant's settings for the waiter in its app, between the menu's
|
|
1177
|
+
* brand and the app's overrides. Every field but allowCustomise may be left
|
|
1178
|
+
* out.
|
|
1179
|
+
*/
|
|
1180
|
+
export interface WaiterFaceApp {
|
|
1181
|
+
look?: WaiterFaceAppLook;
|
|
1182
|
+
shown?: WaiterFaceAppShown;
|
|
1183
|
+
wording?: Record<string, WaiterFaceAppWordingValue>;
|
|
1184
|
+
starters?: Record<string, string[]>;
|
|
1185
|
+
allowCustomise: boolean;
|
|
1186
|
+
}
|
|
1187
|
+
export declare function decodeWaiterFaceApp(value: unknown, path?: string): WaiterFaceApp;
|
|
1188
|
+
export interface WaiterFaceAppLook {
|
|
1189
|
+
scheme?: WaiterFaceAppLookScheme;
|
|
1190
|
+
accent?: string;
|
|
1191
|
+
accentSecondary?: string;
|
|
1192
|
+
paper?: string;
|
|
1193
|
+
text?: string;
|
|
1194
|
+
displayFont?: WaiterFaceAppLookDisplayFont;
|
|
1195
|
+
uiFont?: WaiterFaceAppLookUiFont;
|
|
1196
|
+
corners?: WaiterFaceAppLookCorners;
|
|
1197
|
+
}
|
|
1198
|
+
export declare function decodeWaiterFaceAppLook(value: unknown, path?: string): WaiterFaceAppLook;
|
|
1199
|
+
/**
|
|
1200
|
+
* WaiterFaceAppLookScheme. A value this version does not know reads as `auto`.
|
|
1201
|
+
* New values may be added: keep a default branch.
|
|
1202
|
+
*/
|
|
1203
|
+
export declare const WAITER_FACE_APP_LOOK_SCHEME_VALUES: readonly ["light", "dark", "auto"];
|
|
1204
|
+
export type WaiterFaceAppLookScheme = (typeof WAITER_FACE_APP_LOOK_SCHEME_VALUES)[number];
|
|
1205
|
+
export declare function decodeWaiterFaceAppLookScheme(value: unknown, path?: string): WaiterFaceAppLookScheme;
|
|
1206
|
+
/**
|
|
1207
|
+
* WaiterFaceAppLookDisplayFont. A value this version does not know reads as
|
|
1208
|
+
* `other`. New values may be added: keep a default branch.
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const WAITER_FACE_APP_LOOK_DISPLAY_FONT_VALUES: readonly ["fraunces", "cormorant", "playfair", "dm-serif", "eb-garamond", "crimson", "other"];
|
|
1211
|
+
export type WaiterFaceAppLookDisplayFont = (typeof WAITER_FACE_APP_LOOK_DISPLAY_FONT_VALUES)[number];
|
|
1212
|
+
export declare function decodeWaiterFaceAppLookDisplayFont(value: unknown, path?: string): WaiterFaceAppLookDisplayFont;
|
|
1213
|
+
/**
|
|
1214
|
+
* WaiterFaceAppLookUiFont. A value this version does not know reads as
|
|
1215
|
+
* `other`. New values may be added: keep a default branch.
|
|
1216
|
+
*/
|
|
1217
|
+
export declare const WAITER_FACE_APP_LOOK_UI_FONT_VALUES: readonly ["geist", "inter", "system", "manrope", "sora", "dm-sans", "other"];
|
|
1218
|
+
export type WaiterFaceAppLookUiFont = (typeof WAITER_FACE_APP_LOOK_UI_FONT_VALUES)[number];
|
|
1219
|
+
export declare function decodeWaiterFaceAppLookUiFont(value: unknown, path?: string): WaiterFaceAppLookUiFont;
|
|
1220
|
+
/**
|
|
1221
|
+
* WaiterFaceAppLookCorners. A value this version does not know reads as
|
|
1222
|
+
* `soft`. New values may be added: keep a default branch.
|
|
1223
|
+
*/
|
|
1224
|
+
export declare const WAITER_FACE_APP_LOOK_CORNERS_VALUES: readonly ["round", "soft", "square"];
|
|
1225
|
+
export type WaiterFaceAppLookCorners = (typeof WAITER_FACE_APP_LOOK_CORNERS_VALUES)[number];
|
|
1226
|
+
export declare function decodeWaiterFaceAppLookCorners(value: unknown, path?: string): WaiterFaceAppLookCorners;
|
|
1227
|
+
export interface WaiterFaceAppShown {
|
|
1228
|
+
showHeader?: boolean;
|
|
1229
|
+
showLogo?: boolean;
|
|
1230
|
+
showStarters?: boolean;
|
|
1231
|
+
showBack?: boolean;
|
|
1232
|
+
hideVoice?: boolean;
|
|
1233
|
+
hideReviews?: boolean;
|
|
1234
|
+
hideRetailSuggestions?: boolean;
|
|
1235
|
+
hideLoyalty?: boolean;
|
|
1236
|
+
}
|
|
1237
|
+
export declare function decodeWaiterFaceAppShown(value: unknown, path?: string): WaiterFaceAppShown;
|
|
1238
|
+
export interface WaiterFaceAppWordingValue {
|
|
1239
|
+
waiterName?: string;
|
|
1240
|
+
welcomeTitle?: string;
|
|
1241
|
+
welcomeSubtitle?: string;
|
|
1242
|
+
placeholder?: string;
|
|
1243
|
+
labels?: WaiterFaceAppWordingValueLabels;
|
|
1244
|
+
}
|
|
1245
|
+
export declare function decodeWaiterFaceAppWordingValue(value: unknown, path?: string): WaiterFaceAppWordingValue;
|
|
1246
|
+
export interface WaiterFaceAppWordingValueLabels {
|
|
1247
|
+
newChat?: string;
|
|
1248
|
+
tryAgain?: string;
|
|
1249
|
+
addToCart?: string;
|
|
1250
|
+
checkout?: string;
|
|
1251
|
+
callWaiter?: string;
|
|
1252
|
+
thinking?: string;
|
|
1253
|
+
}
|
|
1254
|
+
export declare function decodeWaiterFaceAppWordingValueLabels(value: unknown, path?: string): WaiterFaceAppWordingValueLabels;
|
|
1255
|
+
export interface SdkSessionRequest {
|
|
1256
|
+
token?: string;
|
|
1257
|
+
code?: string;
|
|
1258
|
+
device?: string;
|
|
1259
|
+
platform?: SdkSessionRequestPlatform;
|
|
1260
|
+
sdk?: string;
|
|
1261
|
+
}
|
|
1262
|
+
export declare function decodeSdkSessionRequest(value: unknown, path?: string): SdkSessionRequest;
|
|
1263
|
+
/** SdkSessionRequestPlatform. New values may be added: keep a default branch. */
|
|
1264
|
+
export declare const SDK_SESSION_REQUEST_PLATFORM_VALUES: readonly ["flutter", "react-native", "ios", "android", "web"];
|
|
1265
|
+
export type SdkSessionRequestPlatform = (typeof SDK_SESSION_REQUEST_PLATFORM_VALUES)[number];
|
|
1266
|
+
export declare function decodeSdkSessionRequestPlatform(value: unknown, path?: string): SdkSessionRequestPlatform;
|
|
1267
|
+
export interface SdkSessionResponse {
|
|
1268
|
+
branch: string | null;
|
|
1269
|
+
conversationId: string | null;
|
|
1270
|
+
locale: string | null;
|
|
1271
|
+
expiresAt: string;
|
|
1272
|
+
}
|
|
1273
|
+
export declare function decodeSdkSessionResponse(value: unknown, path?: string): SdkSessionResponse;
|
|
1274
|
+
export interface SdkEndSessionResponse {
|
|
1275
|
+
ended: boolean;
|
|
1276
|
+
}
|
|
1277
|
+
export declare function decodeSdkEndSessionResponse(value: unknown, path?: string): SdkEndSessionResponse;
|
|
1278
|
+
export interface SdkLaunchCodesRequest {
|
|
1279
|
+
externalUserId: string;
|
|
1280
|
+
branch?: string;
|
|
1281
|
+
locale?: string;
|
|
1282
|
+
}
|
|
1283
|
+
export declare function decodeSdkLaunchCodesRequest(value: unknown, path?: string): SdkLaunchCodesRequest;
|
|
1284
|
+
export interface SdkLaunchCodesResponse {
|
|
1285
|
+
code: string;
|
|
1286
|
+
expiresAt: string;
|
|
1287
|
+
}
|
|
1288
|
+
export declare function decodeSdkLaunchCodesResponse(value: unknown, path?: string): SdkLaunchCodesResponse;
|
|
1289
|
+
export interface SdkEraseUserResponse {
|
|
1290
|
+
erased: boolean;
|
|
1291
|
+
}
|
|
1292
|
+
export declare function decodeSdkEraseUserResponse(value: unknown, path?: string): SdkEraseUserResponse;
|
|
1293
|
+
export interface SdkOrdersRequest {
|
|
1294
|
+
externalOrderId: string;
|
|
1295
|
+
externalUserId: string;
|
|
1296
|
+
branch?: string;
|
|
1297
|
+
mode?: SdkOrdersRequestMode;
|
|
1298
|
+
status: SdkOrdersRequestStatus;
|
|
1299
|
+
currency: string;
|
|
1300
|
+
total: string;
|
|
1301
|
+
placedAt: string;
|
|
1302
|
+
updatedAt?: string;
|
|
1303
|
+
lines: SdkOrdersRequestLinesItem[];
|
|
1304
|
+
}
|
|
1305
|
+
export declare function decodeSdkOrdersRequest(value: unknown, path?: string): SdkOrdersRequest;
|
|
1306
|
+
/** SdkOrdersRequestMode. New values may be added: keep a default branch. */
|
|
1307
|
+
export declare const SDK_ORDERS_REQUEST_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1308
|
+
export type SdkOrdersRequestMode = (typeof SDK_ORDERS_REQUEST_MODE_VALUES)[number];
|
|
1309
|
+
export declare function decodeSdkOrdersRequestMode(value: unknown, path?: string): SdkOrdersRequestMode;
|
|
1310
|
+
/** SdkOrdersRequestStatus. New values may be added: keep a default branch. */
|
|
1311
|
+
export declare const SDK_ORDERS_REQUEST_STATUS_VALUES: readonly ["placed", "completed", "cancelled", "refunded"];
|
|
1312
|
+
export type SdkOrdersRequestStatus = (typeof SDK_ORDERS_REQUEST_STATUS_VALUES)[number];
|
|
1313
|
+
export declare function decodeSdkOrdersRequestStatus(value: unknown, path?: string): SdkOrdersRequestStatus;
|
|
1314
|
+
export interface SdkOrdersRequestLinesItem {
|
|
1315
|
+
dishId?: string;
|
|
1316
|
+
externalId?: string;
|
|
1317
|
+
variantId?: string;
|
|
1318
|
+
variantExternalId?: string;
|
|
1319
|
+
optionIds?: string[];
|
|
1320
|
+
optionExternalIds?: string[];
|
|
1321
|
+
title: string;
|
|
1322
|
+
quantity: number;
|
|
1323
|
+
unitPrice: string;
|
|
1324
|
+
picks?: SdkOrdersRequestLinesItemPicksItem[];
|
|
1325
|
+
}
|
|
1326
|
+
export declare function decodeSdkOrdersRequestLinesItem(value: unknown, path?: string): SdkOrdersRequestLinesItem;
|
|
1327
|
+
/**
|
|
1328
|
+
* One pick of a set in the host's cart, named by pickId or by the host's
|
|
1329
|
+
* externalId (with variantExternalId when it keys on the size). count is per
|
|
1330
|
+
* one set.
|
|
1331
|
+
*/
|
|
1332
|
+
export interface SdkOrdersRequestLinesItemPicksItem {
|
|
1333
|
+
pickId?: string;
|
|
1334
|
+
externalId?: string;
|
|
1335
|
+
variantExternalId?: string;
|
|
1336
|
+
count: number;
|
|
1337
|
+
}
|
|
1338
|
+
export declare function decodeSdkOrdersRequestLinesItemPicksItem(value: unknown, path?: string): SdkOrdersRequestLinesItemPicksItem;
|
|
1339
|
+
export interface SdkOrdersResponse {
|
|
1340
|
+
orderId: string;
|
|
1341
|
+
externalOrderId: string;
|
|
1342
|
+
status: SdkOrdersResponseStatus;
|
|
1343
|
+
updatedAt: string;
|
|
1344
|
+
currencyMismatch: boolean;
|
|
1345
|
+
lines: SdkOrdersResponseLinesItem[];
|
|
1346
|
+
}
|
|
1347
|
+
export declare function decodeSdkOrdersResponse(value: unknown, path?: string): SdkOrdersResponse;
|
|
1348
|
+
/**
|
|
1349
|
+
* SdkOrdersResponseStatus. A value this version does not know reads as
|
|
1350
|
+
* `placed`. New values may be added: keep a default branch.
|
|
1351
|
+
*/
|
|
1352
|
+
export declare const SDK_ORDERS_RESPONSE_STATUS_VALUES: readonly ["placed", "completed", "cancelled", "refunded"];
|
|
1353
|
+
export type SdkOrdersResponseStatus = (typeof SDK_ORDERS_RESPONSE_STATUS_VALUES)[number];
|
|
1354
|
+
export declare function decodeSdkOrdersResponseStatus(value: unknown, path?: string): SdkOrdersResponseStatus;
|
|
1355
|
+
export interface SdkOrdersResponseLinesItem {
|
|
1356
|
+
dishId: string | null;
|
|
1357
|
+
mapped: boolean;
|
|
1358
|
+
}
|
|
1359
|
+
export declare function decodeSdkOrdersResponseLinesItem(value: unknown, path?: string): SdkOrdersResponseLinesItem;
|
|
1360
|
+
export interface SdkTreatRedeemRequest {
|
|
1361
|
+
externalUserId: string;
|
|
1362
|
+
externalOrderId: string;
|
|
1363
|
+
}
|
|
1364
|
+
export declare function decodeSdkTreatRedeemRequest(value: unknown, path?: string): SdkTreatRedeemRequest;
|
|
1365
|
+
export interface SdkTreatRedeemResponse {
|
|
1366
|
+
treatId: string;
|
|
1367
|
+
dishId: string | null;
|
|
1368
|
+
externalOrderId: string;
|
|
1369
|
+
redeemedAt: string;
|
|
1370
|
+
}
|
|
1371
|
+
export declare function decodeSdkTreatRedeemResponse(value: unknown, path?: string): SdkTreatRedeemResponse;
|
|
1372
|
+
export interface ExternalIdsPutRequest {
|
|
1373
|
+
refs: ExternalIdsPutRequestRefsItem[];
|
|
1374
|
+
}
|
|
1375
|
+
export declare function decodeExternalIdsPutRequest(value: unknown, path?: string): ExternalIdsPutRequest;
|
|
1376
|
+
export interface ExternalIdsPutRequestRefsItem {
|
|
1377
|
+
kind: ExternalIdsPutRequestRefsItemKind;
|
|
1378
|
+
tamrId: string;
|
|
1379
|
+
externalId: string | null;
|
|
1380
|
+
branch?: string;
|
|
1381
|
+
}
|
|
1382
|
+
export declare function decodeExternalIdsPutRequestRefsItem(value: unknown, path?: string): ExternalIdsPutRequestRefsItem;
|
|
1383
|
+
/**
|
|
1384
|
+
* ExternalIdsPutRequestRefsItemKind. New values may be added: keep a default
|
|
1385
|
+
* branch.
|
|
1386
|
+
*/
|
|
1387
|
+
export declare const EXTERNAL_IDS_PUT_REQUEST_REFS_ITEM_KIND_VALUES: readonly ["dish", "variant", "option"];
|
|
1388
|
+
export type ExternalIdsPutRequestRefsItemKind = (typeof EXTERNAL_IDS_PUT_REQUEST_REFS_ITEM_KIND_VALUES)[number];
|
|
1389
|
+
export declare function decodeExternalIdsPutRequestRefsItemKind(value: unknown, path?: string): ExternalIdsPutRequestRefsItemKind;
|
|
1390
|
+
export interface ExternalIdsPutResponse {
|
|
1391
|
+
set: number;
|
|
1392
|
+
removed: number;
|
|
1393
|
+
}
|
|
1394
|
+
export declare function decodeExternalIdsPutResponse(value: unknown, path?: string): ExternalIdsPutResponse;
|
|
1395
|
+
export interface NutritionPutRequest {
|
|
1396
|
+
dishes: NutritionPutRequestDishesItem[];
|
|
1397
|
+
}
|
|
1398
|
+
export declare function decodeNutritionPutRequest(value: unknown, path?: string): NutritionPutRequest;
|
|
1399
|
+
export interface NutritionPutRequestDishesItem {
|
|
1400
|
+
dishId?: string;
|
|
1401
|
+
externalId?: string;
|
|
1402
|
+
calories?: number | null;
|
|
1403
|
+
proteinGrams?: number | null;
|
|
1404
|
+
carbsGrams?: number | null;
|
|
1405
|
+
fatGrams?: number | null;
|
|
1406
|
+
}
|
|
1407
|
+
export declare function decodeNutritionPutRequestDishesItem(value: unknown, path?: string): NutritionPutRequestDishesItem;
|
|
1408
|
+
export interface NutritionPutResponse {
|
|
1409
|
+
updated: number;
|
|
1410
|
+
}
|
|
1411
|
+
export declare function decodeNutritionPutResponse(value: unknown, path?: string): NutritionPutResponse;
|
|
1412
|
+
/** ClientMenuMode. New values may be added: keep a default branch. */
|
|
1413
|
+
export declare const CLIENT_MENU_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1414
|
+
export type ClientMenuMode = (typeof CLIENT_MENU_MODE_VALUES)[number];
|
|
1415
|
+
export declare function decodeClientMenuMode(value: unknown, path?: string): ClientMenuMode;
|
|
1416
|
+
/** ClientWaiterMode. New values may be added: keep a default branch. */
|
|
1417
|
+
export declare const CLIENT_WAITER_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1418
|
+
export type ClientWaiterMode = (typeof CLIENT_WAITER_MODE_VALUES)[number];
|
|
1419
|
+
export declare function decodeClientWaiterMode(value: unknown, path?: string): ClientWaiterMode;
|
|
1420
|
+
/** One event of the stream. A new event type reads as `$unknown`: skip it. */
|
|
1421
|
+
export type ClientChatEvent = {
|
|
1422
|
+
event: "message";
|
|
1423
|
+
data: ChatEvent;
|
|
1424
|
+
} | {
|
|
1425
|
+
event: "done";
|
|
1426
|
+
data: ChatDone;
|
|
1427
|
+
} | {
|
|
1428
|
+
event: "error";
|
|
1429
|
+
data: unknown;
|
|
1430
|
+
} | {
|
|
1431
|
+
event: "$unknown";
|
|
1432
|
+
original: string;
|
|
1433
|
+
};
|
|
1434
|
+
export declare function decodeClientChatEvent(event: string, data: unknown): ClientChatEvent;
|
|
1435
|
+
export interface ClientWarmupRequest {
|
|
1436
|
+
branch?: string;
|
|
1437
|
+
mode?: ClientWarmupRequestMode;
|
|
1438
|
+
locale?: string;
|
|
1439
|
+
takes?: string[];
|
|
1440
|
+
open?: ClientWarmupRequestOpen;
|
|
1441
|
+
}
|
|
1442
|
+
export declare function decodeClientWarmupRequest(value: unknown, path?: string): ClientWarmupRequest;
|
|
1443
|
+
/** ClientWarmupRequestMode. New values may be added: keep a default branch. */
|
|
1444
|
+
export declare const CLIENT_WARMUP_REQUEST_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1445
|
+
export type ClientWarmupRequestMode = (typeof CLIENT_WARMUP_REQUEST_MODE_VALUES)[number];
|
|
1446
|
+
export declare function decodeClientWarmupRequestMode(value: unknown, path?: string): ClientWarmupRequestMode;
|
|
1447
|
+
export interface ClientWarmupRequestOpen {
|
|
1448
|
+
ms: number;
|
|
1449
|
+
preloaded: boolean;
|
|
1450
|
+
}
|
|
1451
|
+
export declare function decodeClientWarmupRequestOpen(value: unknown, path?: string): ClientWarmupRequestOpen;
|
|
1452
|
+
export interface ClientWarmupResponse {
|
|
1453
|
+
warmed: boolean;
|
|
1454
|
+
}
|
|
1455
|
+
export declare function decodeClientWarmupResponse(value: unknown, path?: string): ClientWarmupResponse;
|
|
1456
|
+
export interface ClientConversationsCloseResponse {
|
|
1457
|
+
closed: boolean;
|
|
1458
|
+
}
|
|
1459
|
+
export declare function decodeClientConversationsCloseResponse(value: unknown, path?: string): ClientConversationsCloseResponse;
|
|
1460
|
+
export interface ClientTranscribeRequest {
|
|
1461
|
+
branch?: string;
|
|
1462
|
+
mode?: ClientTranscribeRequestMode;
|
|
1463
|
+
audio: string;
|
|
1464
|
+
durationMs?: number;
|
|
1465
|
+
}
|
|
1466
|
+
export declare function decodeClientTranscribeRequest(value: unknown, path?: string): ClientTranscribeRequest;
|
|
1467
|
+
/** ClientTranscribeRequestMode. New values may be added: keep a default branch. */
|
|
1468
|
+
export declare const CLIENT_TRANSCRIBE_REQUEST_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1469
|
+
export type ClientTranscribeRequestMode = (typeof CLIENT_TRANSCRIBE_REQUEST_MODE_VALUES)[number];
|
|
1470
|
+
export declare function decodeClientTranscribeRequestMode(value: unknown, path?: string): ClientTranscribeRequestMode;
|
|
1471
|
+
export interface ClientTranscribeResponse {
|
|
1472
|
+
text: string;
|
|
1473
|
+
language: string | null;
|
|
1474
|
+
seconds: number;
|
|
1475
|
+
}
|
|
1476
|
+
export declare function decodeClientTranscribeResponse(value: unknown, path?: string): ClientTranscribeResponse;
|
|
1477
|
+
export interface ClientCartMatchRequest {
|
|
1478
|
+
branch?: string;
|
|
1479
|
+
mode?: ClientCartMatchRequestMode;
|
|
1480
|
+
lines: ClientCartMatchRequestLinesItem[];
|
|
1481
|
+
}
|
|
1482
|
+
export declare function decodeClientCartMatchRequest(value: unknown, path?: string): ClientCartMatchRequest;
|
|
1483
|
+
/** ClientCartMatchRequestMode. New values may be added: keep a default branch. */
|
|
1484
|
+
export declare const CLIENT_CART_MATCH_REQUEST_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1485
|
+
export type ClientCartMatchRequestMode = (typeof CLIENT_CART_MATCH_REQUEST_MODE_VALUES)[number];
|
|
1486
|
+
export declare function decodeClientCartMatchRequestMode(value: unknown, path?: string): ClientCartMatchRequestMode;
|
|
1487
|
+
/**
|
|
1488
|
+
* A line of the host's own cart, named by exactly one id: dishId or
|
|
1489
|
+
* externalId.
|
|
1490
|
+
*/
|
|
1491
|
+
export interface ClientCartMatchRequestLinesItem {
|
|
1492
|
+
dishId?: string;
|
|
1493
|
+
externalId?: string;
|
|
1494
|
+
variantId?: string;
|
|
1495
|
+
variantExternalId?: string;
|
|
1496
|
+
optionIds?: string[];
|
|
1497
|
+
optionExternalIds?: string[];
|
|
1498
|
+
quantity: number;
|
|
1499
|
+
picks?: ClientCartMatchRequestLinesItemPicksItem[];
|
|
1500
|
+
}
|
|
1501
|
+
export declare function decodeClientCartMatchRequestLinesItem(value: unknown, path?: string): ClientCartMatchRequestLinesItem;
|
|
1502
|
+
/**
|
|
1503
|
+
* One pick of a set in the host's cart, named by pickId or by the host's
|
|
1504
|
+
* externalId (with variantExternalId when it keys on the size). count is per
|
|
1505
|
+
* one set.
|
|
1506
|
+
*/
|
|
1507
|
+
export interface ClientCartMatchRequestLinesItemPicksItem {
|
|
1508
|
+
pickId?: string;
|
|
1509
|
+
externalId?: string;
|
|
1510
|
+
variantExternalId?: string;
|
|
1511
|
+
count: number;
|
|
1512
|
+
}
|
|
1513
|
+
export declare function decodeClientCartMatchRequestLinesItemPicksItem(value: unknown, path?: string): ClientCartMatchRequestLinesItemPicksItem;
|
|
1514
|
+
export interface ClientCartMatchResponse {
|
|
1515
|
+
lines: ClientCartMatchResponseLinesItem[];
|
|
1516
|
+
unmapped: ClientCartMatchResponseUnmappedItem[];
|
|
1517
|
+
}
|
|
1518
|
+
export declare function decodeClientCartMatchResponse(value: unknown, path?: string): ClientCartMatchResponse;
|
|
1519
|
+
export interface ClientCartMatchResponseLinesItem {
|
|
1520
|
+
dishId: string;
|
|
1521
|
+
name: string;
|
|
1522
|
+
variantId: string | null;
|
|
1523
|
+
optionIds: string[];
|
|
1524
|
+
quantity: number;
|
|
1525
|
+
picks?: ClientCartMatchResponseLinesItemPicksItem[];
|
|
1526
|
+
}
|
|
1527
|
+
export declare function decodeClientCartMatchResponseLinesItem(value: unknown, path?: string): ClientCartMatchResponseLinesItem;
|
|
1528
|
+
export interface ClientCartMatchResponseLinesItemPicksItem {
|
|
1529
|
+
pickId: string;
|
|
1530
|
+
count: number;
|
|
1531
|
+
}
|
|
1532
|
+
export declare function decodeClientCartMatchResponseLinesItemPicksItem(value: unknown, path?: string): ClientCartMatchResponseLinesItemPicksItem;
|
|
1533
|
+
export interface ClientCartMatchResponseUnmappedItem {
|
|
1534
|
+
externalId: string;
|
|
1535
|
+
}
|
|
1536
|
+
export declare function decodeClientCartMatchResponseUnmappedItem(value: unknown, path?: string): ClientCartMatchResponseUnmappedItem;
|
|
1537
|
+
/** ClientUsualMode. New values may be added: keep a default branch. */
|
|
1538
|
+
export declare const CLIENT_USUAL_MODE_VALUES: readonly ["dine_in", "pickup", "delivery"];
|
|
1539
|
+
export type ClientUsualMode = (typeof CLIENT_USUAL_MODE_VALUES)[number];
|
|
1540
|
+
export declare function decodeClientUsualMode(value: unknown, path?: string): ClientUsualMode;
|
|
1541
|
+
export interface ClientUsualResponse {
|
|
1542
|
+
usual: ClientUsualResponseUsual | null;
|
|
1543
|
+
}
|
|
1544
|
+
export declare function decodeClientUsualResponse(value: unknown, path?: string): ClientUsualResponse;
|
|
1545
|
+
export interface ClientUsualResponseUsual {
|
|
1546
|
+
kind: ClientUsualResponseUsualKind;
|
|
1547
|
+
orders: number;
|
|
1548
|
+
lastOrderedAt: string;
|
|
1549
|
+
items: ClientUsualResponseUsualItemsItem[];
|
|
1550
|
+
}
|
|
1551
|
+
export declare function decodeClientUsualResponseUsual(value: unknown, path?: string): ClientUsualResponseUsual;
|
|
1552
|
+
/**
|
|
1553
|
+
* ClientUsualResponseUsualKind. A value this version does not know reads as
|
|
1554
|
+
* `other`. New values may be added: keep a default branch.
|
|
1555
|
+
*/
|
|
1556
|
+
export declare const CLIENT_USUAL_RESPONSE_USUAL_KIND_VALUES: readonly ["usual", "last", "other"];
|
|
1557
|
+
export type ClientUsualResponseUsualKind = (typeof CLIENT_USUAL_RESPONSE_USUAL_KIND_VALUES)[number];
|
|
1558
|
+
export declare function decodeClientUsualResponseUsualKind(value: unknown, path?: string): ClientUsualResponseUsualKind;
|
|
1559
|
+
export interface ClientUsualResponseUsualItemsItem {
|
|
1560
|
+
title: string;
|
|
1561
|
+
quantity: number;
|
|
1562
|
+
variantLabel: string | null;
|
|
1563
|
+
dish: DishSummary | null;
|
|
1564
|
+
onMenu: boolean;
|
|
1565
|
+
available: boolean;
|
|
1566
|
+
}
|
|
1567
|
+
export declare function decodeClientUsualResponseUsualItemsItem(value: unknown, path?: string): ClientUsualResponseUsualItemsItem;
|
|
1568
|
+
export interface ClientTableGetResponse {
|
|
1569
|
+
table: ClientTableGetResponseTable | null;
|
|
1570
|
+
branch: string | null;
|
|
1571
|
+
canSend: boolean;
|
|
1572
|
+
blockedBy: ClientTableGetResponseBlockedBy | null;
|
|
1573
|
+
pausedUntil: string | null;
|
|
1574
|
+
allergenDisclaimer: string | null;
|
|
1575
|
+
rounds: ClientTableGetResponseRoundsItem[];
|
|
1576
|
+
}
|
|
1577
|
+
export declare function decodeClientTableGetResponse(value: unknown, path?: string): ClientTableGetResponse;
|
|
1578
|
+
export interface ClientTableGetResponseTable {
|
|
1579
|
+
code: string;
|
|
1580
|
+
zone: string | null;
|
|
1581
|
+
}
|
|
1582
|
+
export declare function decodeClientTableGetResponseTable(value: unknown, path?: string): ClientTableGetResponseTable;
|
|
1583
|
+
/**
|
|
1584
|
+
* ClientTableGetResponseBlockedBy. A value this version does not know reads as
|
|
1585
|
+
* `other`. New values may be added: keep a default branch.
|
|
1586
|
+
*/
|
|
1587
|
+
export declare const CLIENT_TABLE_GET_RESPONSE_BLOCKED_BY_VALUES: readonly ["unknown_table", "table_off_plan", "no_table", "table_cleared", "stale", "ordering_off", "paused", "closed", "unavailable", "test_key", "other"];
|
|
1588
|
+
export type ClientTableGetResponseBlockedBy = (typeof CLIENT_TABLE_GET_RESPONSE_BLOCKED_BY_VALUES)[number];
|
|
1589
|
+
export declare function decodeClientTableGetResponseBlockedBy(value: unknown, path?: string): ClientTableGetResponseBlockedBy;
|
|
1590
|
+
export interface ClientTableGetResponseRoundsItem {
|
|
1591
|
+
orderId: string;
|
|
1592
|
+
/** The short number staff call out, per branch and service day. */
|
|
1593
|
+
number: number;
|
|
1594
|
+
status: ClientTableGetResponseRoundsItemStatus;
|
|
1595
|
+
branch: string;
|
|
1596
|
+
table: string | null;
|
|
1597
|
+
currency: string;
|
|
1598
|
+
subtotal: string;
|
|
1599
|
+
lines: ClientTableGetResponseRoundsItemLinesItem[];
|
|
1600
|
+
fulfilment?: ClientTableGetResponseRoundsItemFulfilment;
|
|
1601
|
+
pickupAt?: string | null;
|
|
1602
|
+
pickupCode?: string | null;
|
|
1603
|
+
test?: boolean;
|
|
1604
|
+
}
|
|
1605
|
+
export declare function decodeClientTableGetResponseRoundsItem(value: unknown, path?: string): ClientTableGetResponseRoundsItem;
|
|
1606
|
+
/**
|
|
1607
|
+
* ClientTableGetResponseRoundsItemStatus. A value this version does not know
|
|
1608
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
1609
|
+
*/
|
|
1610
|
+
export declare const CLIENT_TABLE_GET_RESPONSE_ROUNDS_ITEM_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1611
|
+
export type ClientTableGetResponseRoundsItemStatus = (typeof CLIENT_TABLE_GET_RESPONSE_ROUNDS_ITEM_STATUS_VALUES)[number];
|
|
1612
|
+
export declare function decodeClientTableGetResponseRoundsItemStatus(value: unknown, path?: string): ClientTableGetResponseRoundsItemStatus;
|
|
1613
|
+
export interface ClientTableGetResponseRoundsItemLinesItem {
|
|
1614
|
+
dishId: string | null;
|
|
1615
|
+
externalId: string | null;
|
|
1616
|
+
title: string;
|
|
1617
|
+
variantLabel: string | null;
|
|
1618
|
+
quantity: number;
|
|
1619
|
+
unitPrice: string;
|
|
1620
|
+
}
|
|
1621
|
+
export declare function decodeClientTableGetResponseRoundsItemLinesItem(value: unknown, path?: string): ClientTableGetResponseRoundsItemLinesItem;
|
|
1622
|
+
/**
|
|
1623
|
+
* ClientTableGetResponseRoundsItemFulfilment. A value this version does not
|
|
1624
|
+
* know reads as `unknown`. New values may be added: keep a default branch.
|
|
1625
|
+
*/
|
|
1626
|
+
export declare const CLIENT_TABLE_GET_RESPONSE_ROUNDS_ITEM_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1627
|
+
export type ClientTableGetResponseRoundsItemFulfilment = (typeof CLIENT_TABLE_GET_RESPONSE_ROUNDS_ITEM_FULFILMENT_VALUES)[number];
|
|
1628
|
+
export declare function decodeClientTableGetResponseRoundsItemFulfilment(value: unknown, path?: string): ClientTableGetResponseRoundsItemFulfilment;
|
|
1629
|
+
export interface ClientTableSeatRequest {
|
|
1630
|
+
scan: string;
|
|
1631
|
+
branch?: string;
|
|
1632
|
+
}
|
|
1633
|
+
export declare function decodeClientTableSeatRequest(value: unknown, path?: string): ClientTableSeatRequest;
|
|
1634
|
+
export interface ClientTableSeatResponse {
|
|
1635
|
+
table: ClientTableSeatResponseTable | null;
|
|
1636
|
+
branch: string | null;
|
|
1637
|
+
canSend: boolean;
|
|
1638
|
+
blockedBy: ClientTableSeatResponseBlockedBy | null;
|
|
1639
|
+
pausedUntil: string | null;
|
|
1640
|
+
allergenDisclaimer: string | null;
|
|
1641
|
+
rounds: ClientTableSeatResponseRoundsItem[];
|
|
1642
|
+
}
|
|
1643
|
+
export declare function decodeClientTableSeatResponse(value: unknown, path?: string): ClientTableSeatResponse;
|
|
1644
|
+
export interface ClientTableSeatResponseTable {
|
|
1645
|
+
code: string;
|
|
1646
|
+
zone: string | null;
|
|
1647
|
+
}
|
|
1648
|
+
export declare function decodeClientTableSeatResponseTable(value: unknown, path?: string): ClientTableSeatResponseTable;
|
|
1649
|
+
/**
|
|
1650
|
+
* ClientTableSeatResponseBlockedBy. A value this version does not know reads
|
|
1651
|
+
* as `other`. New values may be added: keep a default branch.
|
|
1652
|
+
*/
|
|
1653
|
+
export declare const CLIENT_TABLE_SEAT_RESPONSE_BLOCKED_BY_VALUES: readonly ["unknown_table", "table_off_plan", "no_table", "table_cleared", "stale", "ordering_off", "paused", "closed", "unavailable", "test_key", "other"];
|
|
1654
|
+
export type ClientTableSeatResponseBlockedBy = (typeof CLIENT_TABLE_SEAT_RESPONSE_BLOCKED_BY_VALUES)[number];
|
|
1655
|
+
export declare function decodeClientTableSeatResponseBlockedBy(value: unknown, path?: string): ClientTableSeatResponseBlockedBy;
|
|
1656
|
+
export interface ClientTableSeatResponseRoundsItem {
|
|
1657
|
+
orderId: string;
|
|
1658
|
+
/** The short number staff call out, per branch and service day. */
|
|
1659
|
+
number: number;
|
|
1660
|
+
status: ClientTableSeatResponseRoundsItemStatus;
|
|
1661
|
+
branch: string;
|
|
1662
|
+
table: string | null;
|
|
1663
|
+
currency: string;
|
|
1664
|
+
subtotal: string;
|
|
1665
|
+
lines: ClientTableSeatResponseRoundsItemLinesItem[];
|
|
1666
|
+
fulfilment?: ClientTableSeatResponseRoundsItemFulfilment;
|
|
1667
|
+
pickupAt?: string | null;
|
|
1668
|
+
pickupCode?: string | null;
|
|
1669
|
+
test?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
export declare function decodeClientTableSeatResponseRoundsItem(value: unknown, path?: string): ClientTableSeatResponseRoundsItem;
|
|
1672
|
+
/**
|
|
1673
|
+
* ClientTableSeatResponseRoundsItemStatus. A value this version does not know
|
|
1674
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
1675
|
+
*/
|
|
1676
|
+
export declare const CLIENT_TABLE_SEAT_RESPONSE_ROUNDS_ITEM_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1677
|
+
export type ClientTableSeatResponseRoundsItemStatus = (typeof CLIENT_TABLE_SEAT_RESPONSE_ROUNDS_ITEM_STATUS_VALUES)[number];
|
|
1678
|
+
export declare function decodeClientTableSeatResponseRoundsItemStatus(value: unknown, path?: string): ClientTableSeatResponseRoundsItemStatus;
|
|
1679
|
+
export interface ClientTableSeatResponseRoundsItemLinesItem {
|
|
1680
|
+
dishId: string | null;
|
|
1681
|
+
externalId: string | null;
|
|
1682
|
+
title: string;
|
|
1683
|
+
variantLabel: string | null;
|
|
1684
|
+
quantity: number;
|
|
1685
|
+
unitPrice: string;
|
|
1686
|
+
}
|
|
1687
|
+
export declare function decodeClientTableSeatResponseRoundsItemLinesItem(value: unknown, path?: string): ClientTableSeatResponseRoundsItemLinesItem;
|
|
1688
|
+
/**
|
|
1689
|
+
* ClientTableSeatResponseRoundsItemFulfilment. A value this version does not
|
|
1690
|
+
* know reads as `unknown`. New values may be added: keep a default branch.
|
|
1691
|
+
*/
|
|
1692
|
+
export declare const CLIENT_TABLE_SEAT_RESPONSE_ROUNDS_ITEM_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1693
|
+
export type ClientTableSeatResponseRoundsItemFulfilment = (typeof CLIENT_TABLE_SEAT_RESPONSE_ROUNDS_ITEM_FULFILMENT_VALUES)[number];
|
|
1694
|
+
export declare function decodeClientTableSeatResponseRoundsItemFulfilment(value: unknown, path?: string): ClientTableSeatResponseRoundsItemFulfilment;
|
|
1695
|
+
export interface ClientTableOrdersSendRequest {
|
|
1696
|
+
branch?: string;
|
|
1697
|
+
lines: ClientTableOrdersSendRequestLinesItem[];
|
|
1698
|
+
note?: string;
|
|
1699
|
+
allergyNote?: string;
|
|
1700
|
+
idempotencyKey: string;
|
|
1701
|
+
}
|
|
1702
|
+
export declare function decodeClientTableOrdersSendRequest(value: unknown, path?: string): ClientTableOrdersSendRequest;
|
|
1703
|
+
export interface ClientTableOrdersSendRequestLinesItem {
|
|
1704
|
+
dishId: string;
|
|
1705
|
+
variantLabel: string | null;
|
|
1706
|
+
quantity: number;
|
|
1707
|
+
note?: string | null;
|
|
1708
|
+
choices?: ClientTableOrdersSendRequestLinesItemChoicesItem[];
|
|
1709
|
+
fromWaiter?: boolean;
|
|
1710
|
+
}
|
|
1711
|
+
export declare function decodeClientTableOrdersSendRequestLinesItem(value: unknown, path?: string): ClientTableOrdersSendRequestLinesItem;
|
|
1712
|
+
export interface ClientTableOrdersSendRequestLinesItemChoicesItem {
|
|
1713
|
+
group: string;
|
|
1714
|
+
options: string[];
|
|
1715
|
+
}
|
|
1716
|
+
export declare function decodeClientTableOrdersSendRequestLinesItemChoicesItem(value: unknown, path?: string): ClientTableOrdersSendRequestLinesItemChoicesItem;
|
|
1717
|
+
export interface ClientTableOrdersSendResponse {
|
|
1718
|
+
order: ClientTableOrdersSendResponseOrder;
|
|
1719
|
+
}
|
|
1720
|
+
export declare function decodeClientTableOrdersSendResponse(value: unknown, path?: string): ClientTableOrdersSendResponse;
|
|
1721
|
+
export interface ClientTableOrdersSendResponseOrder {
|
|
1722
|
+
orderId: string;
|
|
1723
|
+
/** The short number staff call out, per branch and service day. */
|
|
1724
|
+
number: number;
|
|
1725
|
+
status: ClientTableOrdersSendResponseOrderStatus;
|
|
1726
|
+
branch: string;
|
|
1727
|
+
table: string | null;
|
|
1728
|
+
currency: string;
|
|
1729
|
+
subtotal: string;
|
|
1730
|
+
lines: ClientTableOrdersSendResponseOrderLinesItem[];
|
|
1731
|
+
fulfilment?: ClientTableOrdersSendResponseOrderFulfilment;
|
|
1732
|
+
pickupAt?: string | null;
|
|
1733
|
+
pickupCode?: string | null;
|
|
1734
|
+
test?: boolean;
|
|
1735
|
+
}
|
|
1736
|
+
export declare function decodeClientTableOrdersSendResponseOrder(value: unknown, path?: string): ClientTableOrdersSendResponseOrder;
|
|
1737
|
+
/**
|
|
1738
|
+
* ClientTableOrdersSendResponseOrderStatus. A value this version does not know
|
|
1739
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
1740
|
+
*/
|
|
1741
|
+
export declare const CLIENT_TABLE_ORDERS_SEND_RESPONSE_ORDER_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1742
|
+
export type ClientTableOrdersSendResponseOrderStatus = (typeof CLIENT_TABLE_ORDERS_SEND_RESPONSE_ORDER_STATUS_VALUES)[number];
|
|
1743
|
+
export declare function decodeClientTableOrdersSendResponseOrderStatus(value: unknown, path?: string): ClientTableOrdersSendResponseOrderStatus;
|
|
1744
|
+
export interface ClientTableOrdersSendResponseOrderLinesItem {
|
|
1745
|
+
dishId: string | null;
|
|
1746
|
+
externalId: string | null;
|
|
1747
|
+
title: string;
|
|
1748
|
+
variantLabel: string | null;
|
|
1749
|
+
quantity: number;
|
|
1750
|
+
unitPrice: string;
|
|
1751
|
+
}
|
|
1752
|
+
export declare function decodeClientTableOrdersSendResponseOrderLinesItem(value: unknown, path?: string): ClientTableOrdersSendResponseOrderLinesItem;
|
|
1753
|
+
/**
|
|
1754
|
+
* ClientTableOrdersSendResponseOrderFulfilment. A value this version does not
|
|
1755
|
+
* know reads as `unknown`. New values may be added: keep a default branch.
|
|
1756
|
+
*/
|
|
1757
|
+
export declare const CLIENT_TABLE_ORDERS_SEND_RESPONSE_ORDER_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1758
|
+
export type ClientTableOrdersSendResponseOrderFulfilment = (typeof CLIENT_TABLE_ORDERS_SEND_RESPONSE_ORDER_FULFILMENT_VALUES)[number];
|
|
1759
|
+
export declare function decodeClientTableOrdersSendResponseOrderFulfilment(value: unknown, path?: string): ClientTableOrdersSendResponseOrderFulfilment;
|
|
1760
|
+
export interface ClientPickupOptionsResponse {
|
|
1761
|
+
available: boolean;
|
|
1762
|
+
reason: ClientPickupOptionsResponseReason | null;
|
|
1763
|
+
serverNow: string;
|
|
1764
|
+
asapMinutes: ClientPickupOptionsResponseAsapMinutes;
|
|
1765
|
+
locations: ClientPickupOptionsResponseLocationsItem[];
|
|
1766
|
+
}
|
|
1767
|
+
export declare function decodeClientPickupOptionsResponse(value: unknown, path?: string): ClientPickupOptionsResponse;
|
|
1768
|
+
/**
|
|
1769
|
+
* ClientPickupOptionsResponseReason. A value this version does not know reads
|
|
1770
|
+
* as `other`. New values may be added: keep a default branch.
|
|
1771
|
+
*/
|
|
1772
|
+
export declare const CLIENT_PICKUP_OPTIONS_RESPONSE_REASON_VALUES: readonly ["ordering_off", "no_branch", "paused", "closed", "pickup_time", "details", "blocked", "too_large", "unavailable", "catering_menu", "test_key", "other"];
|
|
1773
|
+
export type ClientPickupOptionsResponseReason = (typeof CLIENT_PICKUP_OPTIONS_RESPONSE_REASON_VALUES)[number];
|
|
1774
|
+
export declare function decodeClientPickupOptionsResponseReason(value: unknown, path?: string): ClientPickupOptionsResponseReason;
|
|
1775
|
+
export interface ClientPickupOptionsResponseAsapMinutes {
|
|
1776
|
+
min: number;
|
|
1777
|
+
max: number;
|
|
1778
|
+
}
|
|
1779
|
+
export declare function decodeClientPickupOptionsResponseAsapMinutes(value: unknown, path?: string): ClientPickupOptionsResponseAsapMinutes;
|
|
1780
|
+
export interface ClientPickupOptionsResponseLocationsItem {
|
|
1781
|
+
branch: string;
|
|
1782
|
+
name: string;
|
|
1783
|
+
address: string | null;
|
|
1784
|
+
timezone: string;
|
|
1785
|
+
openNow: boolean;
|
|
1786
|
+
pausedUntil: string | null;
|
|
1787
|
+
payFirst: boolean;
|
|
1788
|
+
today: string[];
|
|
1789
|
+
tomorrow: string[];
|
|
1790
|
+
}
|
|
1791
|
+
export declare function decodeClientPickupOptionsResponseLocationsItem(value: unknown, path?: string): ClientPickupOptionsResponseLocationsItem;
|
|
1792
|
+
export interface ClientPickupOrdersListResponse {
|
|
1793
|
+
orders: ClientPickupOrdersListResponseOrdersItem[];
|
|
1794
|
+
}
|
|
1795
|
+
export declare function decodeClientPickupOrdersListResponse(value: unknown, path?: string): ClientPickupOrdersListResponse;
|
|
1796
|
+
export interface ClientPickupOrdersListResponseOrdersItem {
|
|
1797
|
+
orderId: string;
|
|
1798
|
+
/** The short number staff call out, per branch and service day. */
|
|
1799
|
+
number: number;
|
|
1800
|
+
status: ClientPickupOrdersListResponseOrdersItemStatus;
|
|
1801
|
+
branch: string;
|
|
1802
|
+
table: string | null;
|
|
1803
|
+
currency: string;
|
|
1804
|
+
subtotal: string;
|
|
1805
|
+
lines: ClientPickupOrdersListResponseOrdersItemLinesItem[];
|
|
1806
|
+
fulfilment?: ClientPickupOrdersListResponseOrdersItemFulfilment;
|
|
1807
|
+
pickupAt?: string | null;
|
|
1808
|
+
pickupCode?: string | null;
|
|
1809
|
+
test?: boolean;
|
|
1810
|
+
paymentDueAt: string | null;
|
|
1811
|
+
paid: boolean;
|
|
1812
|
+
}
|
|
1813
|
+
export declare function decodeClientPickupOrdersListResponseOrdersItem(value: unknown, path?: string): ClientPickupOrdersListResponseOrdersItem;
|
|
1814
|
+
/**
|
|
1815
|
+
* ClientPickupOrdersListResponseOrdersItemStatus. A value this version does
|
|
1816
|
+
* not know reads as `unknown`. New values may be added: keep a default branch.
|
|
1817
|
+
*/
|
|
1818
|
+
export declare const CLIENT_PICKUP_ORDERS_LIST_RESPONSE_ORDERS_ITEM_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1819
|
+
export type ClientPickupOrdersListResponseOrdersItemStatus = (typeof CLIENT_PICKUP_ORDERS_LIST_RESPONSE_ORDERS_ITEM_STATUS_VALUES)[number];
|
|
1820
|
+
export declare function decodeClientPickupOrdersListResponseOrdersItemStatus(value: unknown, path?: string): ClientPickupOrdersListResponseOrdersItemStatus;
|
|
1821
|
+
export interface ClientPickupOrdersListResponseOrdersItemLinesItem {
|
|
1822
|
+
dishId: string | null;
|
|
1823
|
+
externalId: string | null;
|
|
1824
|
+
title: string;
|
|
1825
|
+
variantLabel: string | null;
|
|
1826
|
+
quantity: number;
|
|
1827
|
+
unitPrice: string;
|
|
1828
|
+
}
|
|
1829
|
+
export declare function decodeClientPickupOrdersListResponseOrdersItemLinesItem(value: unknown, path?: string): ClientPickupOrdersListResponseOrdersItemLinesItem;
|
|
1830
|
+
/**
|
|
1831
|
+
* ClientPickupOrdersListResponseOrdersItemFulfilment. A value this version
|
|
1832
|
+
* does not know reads as `unknown`. New values may be added: keep a default
|
|
1833
|
+
* branch.
|
|
1834
|
+
*/
|
|
1835
|
+
export declare const CLIENT_PICKUP_ORDERS_LIST_RESPONSE_ORDERS_ITEM_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1836
|
+
export type ClientPickupOrdersListResponseOrdersItemFulfilment = (typeof CLIENT_PICKUP_ORDERS_LIST_RESPONSE_ORDERS_ITEM_FULFILMENT_VALUES)[number];
|
|
1837
|
+
export declare function decodeClientPickupOrdersListResponseOrdersItemFulfilment(value: unknown, path?: string): ClientPickupOrdersListResponseOrdersItemFulfilment;
|
|
1838
|
+
export interface ClientPickupOrdersPlaceRequest {
|
|
1839
|
+
branch: string;
|
|
1840
|
+
lines: ClientPickupOrdersPlaceRequestLinesItem[];
|
|
1841
|
+
name: string;
|
|
1842
|
+
phone: string;
|
|
1843
|
+
at: string | null;
|
|
1844
|
+
how: ClientPickupOrdersPlaceRequestHow;
|
|
1845
|
+
car?: string;
|
|
1846
|
+
note?: string;
|
|
1847
|
+
allergyNote?: string;
|
|
1848
|
+
idempotencyKey: string;
|
|
1849
|
+
}
|
|
1850
|
+
export declare function decodeClientPickupOrdersPlaceRequest(value: unknown, path?: string): ClientPickupOrdersPlaceRequest;
|
|
1851
|
+
export interface ClientPickupOrdersPlaceRequestLinesItem {
|
|
1852
|
+
dishId: string;
|
|
1853
|
+
variantLabel: string | null;
|
|
1854
|
+
quantity: number;
|
|
1855
|
+
note?: string | null;
|
|
1856
|
+
choices?: ClientPickupOrdersPlaceRequestLinesItemChoicesItem[];
|
|
1857
|
+
fromWaiter?: boolean;
|
|
1858
|
+
}
|
|
1859
|
+
export declare function decodeClientPickupOrdersPlaceRequestLinesItem(value: unknown, path?: string): ClientPickupOrdersPlaceRequestLinesItem;
|
|
1860
|
+
export interface ClientPickupOrdersPlaceRequestLinesItemChoicesItem {
|
|
1861
|
+
group: string;
|
|
1862
|
+
options: string[];
|
|
1863
|
+
}
|
|
1864
|
+
export declare function decodeClientPickupOrdersPlaceRequestLinesItemChoicesItem(value: unknown, path?: string): ClientPickupOrdersPlaceRequestLinesItemChoicesItem;
|
|
1865
|
+
/**
|
|
1866
|
+
* ClientPickupOrdersPlaceRequestHow. New values may be added: keep a default
|
|
1867
|
+
* branch.
|
|
1868
|
+
*/
|
|
1869
|
+
export declare const CLIENT_PICKUP_ORDERS_PLACE_REQUEST_HOW_VALUES: readonly ["counter", "curbside"];
|
|
1870
|
+
export type ClientPickupOrdersPlaceRequestHow = (typeof CLIENT_PICKUP_ORDERS_PLACE_REQUEST_HOW_VALUES)[number];
|
|
1871
|
+
export declare function decodeClientPickupOrdersPlaceRequestHow(value: unknown, path?: string): ClientPickupOrdersPlaceRequestHow;
|
|
1872
|
+
export interface ClientPickupOrdersPlaceResponse {
|
|
1873
|
+
order: ClientPickupOrdersPlaceResponseOrder;
|
|
1874
|
+
}
|
|
1875
|
+
export declare function decodeClientPickupOrdersPlaceResponse(value: unknown, path?: string): ClientPickupOrdersPlaceResponse;
|
|
1876
|
+
export interface ClientPickupOrdersPlaceResponseOrder {
|
|
1877
|
+
orderId: string;
|
|
1878
|
+
/** The short number staff call out, per branch and service day. */
|
|
1879
|
+
number: number;
|
|
1880
|
+
status: ClientPickupOrdersPlaceResponseOrderStatus;
|
|
1881
|
+
branch: string;
|
|
1882
|
+
table: string | null;
|
|
1883
|
+
currency: string;
|
|
1884
|
+
subtotal: string;
|
|
1885
|
+
lines: ClientPickupOrdersPlaceResponseOrderLinesItem[];
|
|
1886
|
+
fulfilment?: ClientPickupOrdersPlaceResponseOrderFulfilment;
|
|
1887
|
+
pickupAt?: string | null;
|
|
1888
|
+
pickupCode?: string | null;
|
|
1889
|
+
test?: boolean;
|
|
1890
|
+
paymentDueAt: string | null;
|
|
1891
|
+
paid: boolean;
|
|
1892
|
+
}
|
|
1893
|
+
export declare function decodeClientPickupOrdersPlaceResponseOrder(value: unknown, path?: string): ClientPickupOrdersPlaceResponseOrder;
|
|
1894
|
+
/**
|
|
1895
|
+
* ClientPickupOrdersPlaceResponseOrderStatus. A value this version does not
|
|
1896
|
+
* know reads as `unknown`. New values may be added: keep a default branch.
|
|
1897
|
+
*/
|
|
1898
|
+
export declare const CLIENT_PICKUP_ORDERS_PLACE_RESPONSE_ORDER_STATUS_VALUES: readonly ["awaiting_payment", "sent", "accepted", "served", "declined", "cancelled", "expired", "unknown"];
|
|
1899
|
+
export type ClientPickupOrdersPlaceResponseOrderStatus = (typeof CLIENT_PICKUP_ORDERS_PLACE_RESPONSE_ORDER_STATUS_VALUES)[number];
|
|
1900
|
+
export declare function decodeClientPickupOrdersPlaceResponseOrderStatus(value: unknown, path?: string): ClientPickupOrdersPlaceResponseOrderStatus;
|
|
1901
|
+
export interface ClientPickupOrdersPlaceResponseOrderLinesItem {
|
|
1902
|
+
dishId: string | null;
|
|
1903
|
+
externalId: string | null;
|
|
1904
|
+
title: string;
|
|
1905
|
+
variantLabel: string | null;
|
|
1906
|
+
quantity: number;
|
|
1907
|
+
unitPrice: string;
|
|
1908
|
+
}
|
|
1909
|
+
export declare function decodeClientPickupOrdersPlaceResponseOrderLinesItem(value: unknown, path?: string): ClientPickupOrdersPlaceResponseOrderLinesItem;
|
|
1910
|
+
/**
|
|
1911
|
+
* ClientPickupOrdersPlaceResponseOrderFulfilment. A value this version does
|
|
1912
|
+
* not know reads as `unknown`. New values may be added: keep a default branch.
|
|
1913
|
+
*/
|
|
1914
|
+
export declare const CLIENT_PICKUP_ORDERS_PLACE_RESPONSE_ORDER_FULFILMENT_VALUES: readonly ["dine_in", "pickup", "unknown"];
|
|
1915
|
+
export type ClientPickupOrdersPlaceResponseOrderFulfilment = (typeof CLIENT_PICKUP_ORDERS_PLACE_RESPONSE_ORDER_FULFILMENT_VALUES)[number];
|
|
1916
|
+
export declare function decodeClientPickupOrdersPlaceResponseOrderFulfilment(value: unknown, path?: string): ClientPickupOrdersPlaceResponseOrderFulfilment;
|
|
1917
|
+
export interface ClientGoalGetResponse {
|
|
1918
|
+
goal: ClientGoalGetResponseGoal | null;
|
|
1919
|
+
canSet: boolean;
|
|
1920
|
+
}
|
|
1921
|
+
export declare function decodeClientGoalGetResponse(value: unknown, path?: string): ClientGoalGetResponse;
|
|
1922
|
+
export interface ClientGoalGetResponseGoal {
|
|
1923
|
+
mode: ClientGoalGetResponseGoalMode;
|
|
1924
|
+
/**
|
|
1925
|
+
* Calories for one meal: a ceiling when cutting or maintaining, a floor when
|
|
1926
|
+
* bulking.
|
|
1927
|
+
*/
|
|
1928
|
+
kcal?: number;
|
|
1929
|
+
/** Grams of protein for one meal, always a floor. */
|
|
1930
|
+
proteinGrams?: number;
|
|
1931
|
+
}
|
|
1932
|
+
export declare function decodeClientGoalGetResponseGoal(value: unknown, path?: string): ClientGoalGetResponseGoal;
|
|
1933
|
+
/**
|
|
1934
|
+
* ClientGoalGetResponseGoalMode. A value this version does not know reads as
|
|
1935
|
+
* `other`. New values may be added: keep a default branch.
|
|
1936
|
+
*/
|
|
1937
|
+
export declare const CLIENT_GOAL_GET_RESPONSE_GOAL_MODE_VALUES: readonly ["cutting", "maintain", "bulking", "other"];
|
|
1938
|
+
export type ClientGoalGetResponseGoalMode = (typeof CLIENT_GOAL_GET_RESPONSE_GOAL_MODE_VALUES)[number];
|
|
1939
|
+
export declare function decodeClientGoalGetResponseGoalMode(value: unknown, path?: string): ClientGoalGetResponseGoalMode;
|
|
1940
|
+
export interface ClientGoalPutRequest {
|
|
1941
|
+
goal: ClientGoalPutRequestGoal | null;
|
|
1942
|
+
}
|
|
1943
|
+
export declare function decodeClientGoalPutRequest(value: unknown, path?: string): ClientGoalPutRequest;
|
|
1944
|
+
export interface ClientGoalPutRequestGoal {
|
|
1945
|
+
mode: ClientGoalPutRequestGoalMode;
|
|
1946
|
+
/**
|
|
1947
|
+
* Calories for one meal: a ceiling when cutting or maintaining, a floor when
|
|
1948
|
+
* bulking.
|
|
1949
|
+
*/
|
|
1950
|
+
kcal?: number;
|
|
1951
|
+
/** Grams of protein for one meal, always a floor. */
|
|
1952
|
+
proteinGrams?: number;
|
|
1953
|
+
}
|
|
1954
|
+
export declare function decodeClientGoalPutRequestGoal(value: unknown, path?: string): ClientGoalPutRequestGoal;
|
|
1955
|
+
/**
|
|
1956
|
+
* ClientGoalPutRequestGoalMode. New values may be added: keep a default
|
|
1957
|
+
* branch.
|
|
1958
|
+
*/
|
|
1959
|
+
export declare const CLIENT_GOAL_PUT_REQUEST_GOAL_MODE_VALUES: readonly ["cutting", "maintain", "bulking"];
|
|
1960
|
+
export type ClientGoalPutRequestGoalMode = (typeof CLIENT_GOAL_PUT_REQUEST_GOAL_MODE_VALUES)[number];
|
|
1961
|
+
export declare function decodeClientGoalPutRequestGoalMode(value: unknown, path?: string): ClientGoalPutRequestGoalMode;
|
|
1962
|
+
export interface ClientGoalPutResponse {
|
|
1963
|
+
goal: ClientGoalPutResponseGoal | null;
|
|
1964
|
+
canSet: boolean;
|
|
1965
|
+
}
|
|
1966
|
+
export declare function decodeClientGoalPutResponse(value: unknown, path?: string): ClientGoalPutResponse;
|
|
1967
|
+
export interface ClientGoalPutResponseGoal {
|
|
1968
|
+
mode: ClientGoalPutResponseGoalMode;
|
|
1969
|
+
/**
|
|
1970
|
+
* Calories for one meal: a ceiling when cutting or maintaining, a floor when
|
|
1971
|
+
* bulking.
|
|
1972
|
+
*/
|
|
1973
|
+
kcal?: number;
|
|
1974
|
+
/** Grams of protein for one meal, always a floor. */
|
|
1975
|
+
proteinGrams?: number;
|
|
1976
|
+
}
|
|
1977
|
+
export declare function decodeClientGoalPutResponseGoal(value: unknown, path?: string): ClientGoalPutResponseGoal;
|
|
1978
|
+
/**
|
|
1979
|
+
* ClientGoalPutResponseGoalMode. A value this version does not know reads as
|
|
1980
|
+
* `other`. New values may be added: keep a default branch.
|
|
1981
|
+
*/
|
|
1982
|
+
export declare const CLIENT_GOAL_PUT_RESPONSE_GOAL_MODE_VALUES: readonly ["cutting", "maintain", "bulking", "other"];
|
|
1983
|
+
export type ClientGoalPutResponseGoalMode = (typeof CLIENT_GOAL_PUT_RESPONSE_GOAL_MODE_VALUES)[number];
|
|
1984
|
+
export declare function decodeClientGoalPutResponseGoalMode(value: unknown, path?: string): ClientGoalPutResponseGoalMode;
|
|
1985
|
+
export interface ClientPayOptionsResponse {
|
|
1986
|
+
available: boolean;
|
|
1987
|
+
reason: ClientPayOptionsResponseReason | null;
|
|
1988
|
+
currency: string | null;
|
|
1989
|
+
exponent: number | null;
|
|
1990
|
+
providers: ClientPayOptionsResponseProvidersItem[];
|
|
1991
|
+
tipPresets: number[] | null;
|
|
1992
|
+
typedAmount: ClientPayOptionsResponseTypedAmount | null;
|
|
1993
|
+
tab: ClientPayOptionsResponseTab | null;
|
|
1994
|
+
openPayment: ClientPayOptionsResponseOpenPayment | null;
|
|
1995
|
+
}
|
|
1996
|
+
export declare function decodeClientPayOptionsResponse(value: unknown, path?: string): ClientPayOptionsResponse;
|
|
1997
|
+
/**
|
|
1998
|
+
* ClientPayOptionsResponseReason. A value this version does not know reads as
|
|
1999
|
+
* `other`. New values may be added: keep a default branch.
|
|
2000
|
+
*/
|
|
2001
|
+
export declare const CLIENT_PAY_OPTIONS_RESPONSE_REASON_VALUES: readonly ["not_enabled", "paused", "no_provider", "provider_not_available", "test_key", "orders_to_app", "invalid_amount", "below_minimum", "above_maximum", "tip_too_large", "tips_off", "daily_cap", "wallet_full", "monthly_cap", "payment_in_progress", "already_paid", "provider_unavailable", "provider_error", "table_already_paid", "tab_not_found", "typed_amount_off", "tab_nothing_owed", "tab_amount_over", "tab_changed", "other"];
|
|
2002
|
+
export type ClientPayOptionsResponseReason = (typeof CLIENT_PAY_OPTIONS_RESPONSE_REASON_VALUES)[number];
|
|
2003
|
+
export declare function decodeClientPayOptionsResponseReason(value: unknown, path?: string): ClientPayOptionsResponseReason;
|
|
2004
|
+
export interface ClientPayOptionsResponseProvidersItem {
|
|
2005
|
+
id: string;
|
|
2006
|
+
name: string;
|
|
2007
|
+
merchantName: string;
|
|
2008
|
+
min: string;
|
|
2009
|
+
max: string;
|
|
2010
|
+
}
|
|
2011
|
+
export declare function decodeClientPayOptionsResponseProvidersItem(value: unknown, path?: string): ClientPayOptionsResponseProvidersItem;
|
|
2012
|
+
/**
|
|
2013
|
+
* ClientPayOptionsResponseTypedAmount. A value this version does not know
|
|
2014
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
2015
|
+
*/
|
|
2016
|
+
export declare const CLIENT_PAY_OPTIONS_RESPONSE_TYPED_AMOUNT_VALUES: readonly ["allowed", "off", "against_tab", "unknown"];
|
|
2017
|
+
export type ClientPayOptionsResponseTypedAmount = (typeof CLIENT_PAY_OPTIONS_RESPONSE_TYPED_AMOUNT_VALUES)[number];
|
|
2018
|
+
export declare function decodeClientPayOptionsResponseTypedAmount(value: unknown, path?: string): ClientPayOptionsResponseTypedAmount;
|
|
2019
|
+
export interface ClientPayOptionsResponseTab {
|
|
2020
|
+
table: string;
|
|
2021
|
+
amount: string;
|
|
2022
|
+
}
|
|
2023
|
+
export declare function decodeClientPayOptionsResponseTab(value: unknown, path?: string): ClientPayOptionsResponseTab;
|
|
2024
|
+
export interface ClientPayOptionsResponseOpenPayment {
|
|
2025
|
+
paymentId: string;
|
|
2026
|
+
reference: string;
|
|
2027
|
+
status: ClientPayOptionsResponseOpenPaymentStatus;
|
|
2028
|
+
amount: string;
|
|
2029
|
+
tip: string;
|
|
2030
|
+
total: string;
|
|
2031
|
+
currency: string;
|
|
2032
|
+
expiresAt: string | null;
|
|
2033
|
+
provider?: string;
|
|
2034
|
+
pay?: ClientPayOptionsResponseOpenPaymentPay;
|
|
2035
|
+
}
|
|
2036
|
+
export declare function decodeClientPayOptionsResponseOpenPayment(value: unknown, path?: string): ClientPayOptionsResponseOpenPayment;
|
|
2037
|
+
/**
|
|
2038
|
+
* ClientPayOptionsResponseOpenPaymentStatus. A value this version does not
|
|
2039
|
+
* know reads as `unknown`. New values may be added: keep a default branch.
|
|
2040
|
+
*/
|
|
2041
|
+
export declare const CLIENT_PAY_OPTIONS_RESPONSE_OPEN_PAYMENT_STATUS_VALUES: readonly ["open", "paid", "failed", "expired", "refunded", "unknown"];
|
|
2042
|
+
export type ClientPayOptionsResponseOpenPaymentStatus = (typeof CLIENT_PAY_OPTIONS_RESPONSE_OPEN_PAYMENT_STATUS_VALUES)[number];
|
|
2043
|
+
export declare function decodeClientPayOptionsResponseOpenPaymentStatus(value: unknown, path?: string): ClientPayOptionsResponseOpenPaymentStatus;
|
|
2044
|
+
/**
|
|
2045
|
+
* ClientPayOptionsResponseOpenPaymentPay. A value this version does not know
|
|
2046
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
2047
|
+
*/
|
|
2048
|
+
export declare const CLIENT_PAY_OPTIONS_RESPONSE_OPEN_PAYMENT_PAY_VALUES: readonly ["tab", "amount", "order", "unknown"];
|
|
2049
|
+
export type ClientPayOptionsResponseOpenPaymentPay = (typeof CLIENT_PAY_OPTIONS_RESPONSE_OPEN_PAYMENT_PAY_VALUES)[number];
|
|
2050
|
+
export declare function decodeClientPayOptionsResponseOpenPaymentPay(value: unknown, path?: string): ClientPayOptionsResponseOpenPaymentPay;
|
|
2051
|
+
export interface ClientPayStartRequest {
|
|
2052
|
+
branch?: string;
|
|
2053
|
+
provider: string;
|
|
2054
|
+
pay: ClientPayStartRequestPay;
|
|
2055
|
+
amount: string;
|
|
2056
|
+
orderId?: string;
|
|
2057
|
+
tip?: string;
|
|
2058
|
+
tablePaidConfirmed?: boolean;
|
|
2059
|
+
locale?: string;
|
|
2060
|
+
}
|
|
2061
|
+
export declare function decodeClientPayStartRequest(value: unknown, path?: string): ClientPayStartRequest;
|
|
2062
|
+
/**
|
|
2063
|
+
* ClientPayStartRequestPay. A value this version does not know reads as
|
|
2064
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
2065
|
+
*/
|
|
2066
|
+
export declare const CLIENT_PAY_START_REQUEST_PAY_VALUES: readonly ["tab", "amount", "order", "unknown"];
|
|
2067
|
+
export type ClientPayStartRequestPay = (typeof CLIENT_PAY_START_REQUEST_PAY_VALUES)[number];
|
|
2068
|
+
export declare function decodeClientPayStartRequestPay(value: unknown, path?: string): ClientPayStartRequestPay;
|
|
2069
|
+
export interface ClientPayStartResponse {
|
|
2070
|
+
payment: ClientPayStartResponsePayment;
|
|
2071
|
+
url: string;
|
|
2072
|
+
resumed: boolean;
|
|
2073
|
+
}
|
|
2074
|
+
export declare function decodeClientPayStartResponse(value: unknown, path?: string): ClientPayStartResponse;
|
|
2075
|
+
export interface ClientPayStartResponsePayment {
|
|
2076
|
+
paymentId: string;
|
|
2077
|
+
reference: string;
|
|
2078
|
+
status: ClientPayStartResponsePaymentStatus;
|
|
2079
|
+
amount: string;
|
|
2080
|
+
tip: string;
|
|
2081
|
+
total: string;
|
|
2082
|
+
currency: string;
|
|
2083
|
+
expiresAt: string | null;
|
|
2084
|
+
provider?: string;
|
|
2085
|
+
pay?: ClientPayStartResponsePaymentPay;
|
|
2086
|
+
}
|
|
2087
|
+
export declare function decodeClientPayStartResponsePayment(value: unknown, path?: string): ClientPayStartResponsePayment;
|
|
2088
|
+
/**
|
|
2089
|
+
* ClientPayStartResponsePaymentStatus. A value this version does not know
|
|
2090
|
+
* reads as `unknown`. New values may be added: keep a default branch.
|
|
2091
|
+
*/
|
|
2092
|
+
export declare const CLIENT_PAY_START_RESPONSE_PAYMENT_STATUS_VALUES: readonly ["open", "paid", "failed", "expired", "refunded", "unknown"];
|
|
2093
|
+
export type ClientPayStartResponsePaymentStatus = (typeof CLIENT_PAY_START_RESPONSE_PAYMENT_STATUS_VALUES)[number];
|
|
2094
|
+
export declare function decodeClientPayStartResponsePaymentStatus(value: unknown, path?: string): ClientPayStartResponsePaymentStatus;
|
|
2095
|
+
/**
|
|
2096
|
+
* ClientPayStartResponsePaymentPay. A value this version does not know reads
|
|
2097
|
+
* as `unknown`. New values may be added: keep a default branch.
|
|
2098
|
+
*/
|
|
2099
|
+
export declare const CLIENT_PAY_START_RESPONSE_PAYMENT_PAY_VALUES: readonly ["tab", "amount", "order", "unknown"];
|
|
2100
|
+
export type ClientPayStartResponsePaymentPay = (typeof CLIENT_PAY_START_RESPONSE_PAYMENT_PAY_VALUES)[number];
|
|
2101
|
+
export declare function decodeClientPayStartResponsePaymentPay(value: unknown, path?: string): ClientPayStartResponsePaymentPay;
|
|
2102
|
+
export interface ClientPayGetResponse {
|
|
2103
|
+
paymentId: string;
|
|
2104
|
+
reference: string;
|
|
2105
|
+
status: ClientPayGetResponseStatus;
|
|
2106
|
+
amount: string;
|
|
2107
|
+
tip: string;
|
|
2108
|
+
total: string;
|
|
2109
|
+
currency: string;
|
|
2110
|
+
expiresAt: string | null;
|
|
2111
|
+
provider?: string;
|
|
2112
|
+
pay?: ClientPayGetResponsePay;
|
|
2113
|
+
}
|
|
2114
|
+
export declare function decodeClientPayGetResponse(value: unknown, path?: string): ClientPayGetResponse;
|
|
2115
|
+
/**
|
|
2116
|
+
* ClientPayGetResponseStatus. A value this version does not know reads as
|
|
2117
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
2118
|
+
*/
|
|
2119
|
+
export declare const CLIENT_PAY_GET_RESPONSE_STATUS_VALUES: readonly ["open", "paid", "failed", "expired", "refunded", "unknown"];
|
|
2120
|
+
export type ClientPayGetResponseStatus = (typeof CLIENT_PAY_GET_RESPONSE_STATUS_VALUES)[number];
|
|
2121
|
+
export declare function decodeClientPayGetResponseStatus(value: unknown, path?: string): ClientPayGetResponseStatus;
|
|
2122
|
+
/**
|
|
2123
|
+
* ClientPayGetResponsePay. A value this version does not know reads as
|
|
2124
|
+
* `unknown`. New values may be added: keep a default branch.
|
|
2125
|
+
*/
|
|
2126
|
+
export declare const CLIENT_PAY_GET_RESPONSE_PAY_VALUES: readonly ["tab", "amount", "order", "unknown"];
|
|
2127
|
+
export type ClientPayGetResponsePay = (typeof CLIENT_PAY_GET_RESPONSE_PAY_VALUES)[number];
|
|
2128
|
+
export declare function decodeClientPayGetResponsePay(value: unknown, path?: string): ClientPayGetResponsePay;
|
|
2129
|
+
export interface ClientReviewsMatchRequest {
|
|
2130
|
+
orderId: string;
|
|
2131
|
+
dishes: ClientReviewsMatchRequestDishesItem[];
|
|
2132
|
+
}
|
|
2133
|
+
export declare function decodeClientReviewsMatchRequest(value: unknown, path?: string): ClientReviewsMatchRequest;
|
|
2134
|
+
export interface ClientReviewsMatchRequestDishesItem {
|
|
2135
|
+
dishId?: string;
|
|
2136
|
+
externalId?: string;
|
|
2137
|
+
title: string;
|
|
2138
|
+
}
|
|
2139
|
+
export declare function decodeClientReviewsMatchRequestDishesItem(value: unknown, path?: string): ClientReviewsMatchRequestDishesItem;
|
|
2140
|
+
export interface ClientReviewsMatchResponse {
|
|
2141
|
+
dishes: ClientReviewsMatchResponseDishesItem[];
|
|
2142
|
+
unmapped: ClientReviewsMatchResponseUnmappedItem[];
|
|
2143
|
+
}
|
|
2144
|
+
export declare function decodeClientReviewsMatchResponse(value: unknown, path?: string): ClientReviewsMatchResponse;
|
|
2145
|
+
export interface ClientReviewsMatchResponseDishesItem {
|
|
2146
|
+
dishId: string;
|
|
2147
|
+
externalId: string | null;
|
|
2148
|
+
title: string;
|
|
2149
|
+
imageUrl: string | null;
|
|
2150
|
+
rating: number | null;
|
|
2151
|
+
}
|
|
2152
|
+
export declare function decodeClientReviewsMatchResponseDishesItem(value: unknown, path?: string): ClientReviewsMatchResponseDishesItem;
|
|
2153
|
+
export interface ClientReviewsMatchResponseUnmappedItem {
|
|
2154
|
+
externalId: string;
|
|
2155
|
+
}
|
|
2156
|
+
export declare function decodeClientReviewsMatchResponseUnmappedItem(value: unknown, path?: string): ClientReviewsMatchResponseUnmappedItem;
|
|
2157
|
+
export interface ClientReviewsSubmitRequest {
|
|
2158
|
+
orderId: string;
|
|
2159
|
+
ratings: ClientReviewsSubmitRequestRatingsItem[];
|
|
2160
|
+
}
|
|
2161
|
+
export declare function decodeClientReviewsSubmitRequest(value: unknown, path?: string): ClientReviewsSubmitRequest;
|
|
2162
|
+
export interface ClientReviewsSubmitRequestRatingsItem {
|
|
2163
|
+
dishId: string;
|
|
2164
|
+
rating: number;
|
|
2165
|
+
}
|
|
2166
|
+
export declare function decodeClientReviewsSubmitRequestRatingsItem(value: unknown, path?: string): ClientReviewsSubmitRequestRatingsItem;
|
|
2167
|
+
export interface ClientReviewsSubmitResponse {
|
|
2168
|
+
reviews: ClientReviewsSubmitResponseReviewsItem[];
|
|
2169
|
+
}
|
|
2170
|
+
export declare function decodeClientReviewsSubmitResponse(value: unknown, path?: string): ClientReviewsSubmitResponse;
|
|
2171
|
+
export interface ClientReviewsSubmitResponseReviewsItem {
|
|
2172
|
+
reviewId: string;
|
|
2173
|
+
dishId: string;
|
|
2174
|
+
externalId: string | null;
|
|
2175
|
+
rating: number;
|
|
2176
|
+
}
|
|
2177
|
+
export declare function decodeClientReviewsSubmitResponseReviewsItem(value: unknown, path?: string): ClientReviewsSubmitResponseReviewsItem;
|
|
2178
|
+
/** The Client API: a publishable app key and the diner's session. */
|
|
2179
|
+
export declare function clientOperations(transport: Transport): {
|
|
2180
|
+
/** Exchange a diner token or launch code for a session */
|
|
2181
|
+
sdkSession: (body: SdkSessionRequest, options?: CallOptions) => Promise<SdkSessionResponse>;
|
|
2182
|
+
/** End the diner's session (they logged out) */
|
|
2183
|
+
sdkEndSession: (options?: CallOptions) => Promise<SdkEndSessionResponse>;
|
|
2184
|
+
/** The menu the waiter serves at a branch and service mode */
|
|
2185
|
+
menu: (query?: {
|
|
2186
|
+
branch?: string;
|
|
2187
|
+
mode?: ClientMenuMode;
|
|
2188
|
+
}, options?: CallOptions) => Promise<MenuResponse>;
|
|
2189
|
+
/** The waiter's public face at a branch and service mode */
|
|
2190
|
+
waiter: (query?: {
|
|
2191
|
+
branch?: string;
|
|
2192
|
+
mode?: ClientWaiterMode;
|
|
2193
|
+
}, options?: CallOptions) => Promise<WaiterFace>;
|
|
2194
|
+
/** Send the diner's message and stream the waiter's reply */
|
|
2195
|
+
chat: (body: ChatRequest, options?: CallOptions) => AsyncIterable<ClientChatEvent>;
|
|
2196
|
+
/** Prime the waiter before the diner's first message */
|
|
2197
|
+
warmup: (body: ClientWarmupRequest, options?: CallOptions) => Promise<ClientWarmupResponse>;
|
|
2198
|
+
/** The diner's recent conversations */
|
|
2199
|
+
conversationsList: (options?: CallOptions) => Promise<ConversationList>;
|
|
2200
|
+
/** One of the diner's conversations, with its messages */
|
|
2201
|
+
conversationsGet: (conversationId: string, options?: CallOptions) => Promise<ConversationResponse>;
|
|
2202
|
+
/** Close a conversation so the next message starts afresh */
|
|
2203
|
+
conversationsClose: (conversationId: string, options?: CallOptions) => Promise<ClientConversationsCloseResponse>;
|
|
2204
|
+
/** Turn the diner's voice note into text */
|
|
2205
|
+
transcribe: (body: ClientTranscribeRequest | FormData, options?: CallOptions) => Promise<ClientTranscribeResponse>;
|
|
2206
|
+
/** Match the app's cart to the dishes the waiter serves */
|
|
2207
|
+
cartMatch: (body: ClientCartMatchRequest, options?: CallOptions) => Promise<ClientCartMatchResponse>;
|
|
2208
|
+
/** The diner's usual here, or their last order */
|
|
2209
|
+
usual: (query?: {
|
|
2210
|
+
branch?: string;
|
|
2211
|
+
mode?: ClientUsualMode;
|
|
2212
|
+
}, options?: CallOptions) => Promise<ClientUsualResponse>;
|
|
2213
|
+
/** Whether the diner may send an order, and their rounds */
|
|
2214
|
+
tableGet: (query?: {
|
|
2215
|
+
branch?: string;
|
|
2216
|
+
}, options?: CallOptions) => Promise<ClientTableGetResponse>;
|
|
2217
|
+
/** Seat the diner at the table they scanned */
|
|
2218
|
+
tableSeat: (body: ClientTableSeatRequest, options?: CallOptions) => Promise<ClientTableSeatResponse>;
|
|
2219
|
+
/** Send the diner's order to the team */
|
|
2220
|
+
tableOrdersSend: (body: ClientTableOrdersSendRequest, options?: CallOptions) => Promise<ClientTableOrdersSendResponse>;
|
|
2221
|
+
/** Where and when the diner can collect a pickup */
|
|
2222
|
+
pickupOptions: (query?: {
|
|
2223
|
+
branch?: string;
|
|
2224
|
+
}, options?: CallOptions) => Promise<ClientPickupOptionsResponse>;
|
|
2225
|
+
/** The diner's pickups, newest first */
|
|
2226
|
+
pickupOrdersList: (options?: CallOptions) => Promise<ClientPickupOrdersListResponse>;
|
|
2227
|
+
/** Place the diner's pickup */
|
|
2228
|
+
pickupOrdersPlace: (body: ClientPickupOrdersPlaceRequest, options?: CallOptions) => Promise<ClientPickupOrdersPlaceResponse>;
|
|
2229
|
+
/** The nutrition goal Tamr keeps for the diner */
|
|
2230
|
+
goalGet: (options?: CallOptions) => Promise<ClientGoalGetResponse>;
|
|
2231
|
+
/** Set or clear the diner's nutrition goal */
|
|
2232
|
+
goalPut: (body: ClientGoalPutRequest, options?: CallOptions) => Promise<ClientGoalPutResponse>;
|
|
2233
|
+
/** Whether the diner can pay with Tamr Pay here, and how */
|
|
2234
|
+
payOptions: (query?: {
|
|
2235
|
+
branch?: string;
|
|
2236
|
+
orderId?: string;
|
|
2237
|
+
}, options?: CallOptions) => Promise<ClientPayOptionsResponse>;
|
|
2238
|
+
/** Start paying the table's tab or an amount */
|
|
2239
|
+
payStart: (body: ClientPayStartRequest, options?: CallOptions) => Promise<ClientPayStartResponse>;
|
|
2240
|
+
/** Where one of the diner's payments stands */
|
|
2241
|
+
payGet: (paymentId: string, options?: CallOptions) => Promise<ClientPayGetResponse>;
|
|
2242
|
+
/** Which of an order's dishes the diner can rate */
|
|
2243
|
+
reviewsMatch: (body: ClientReviewsMatchRequest, options?: CallOptions) => Promise<ClientReviewsMatchResponse>;
|
|
2244
|
+
/** Rate an order's dishes, one review per dish per order */
|
|
2245
|
+
reviewsSubmit: (body: ClientReviewsSubmitRequest, options?: CallOptions) => Promise<ClientReviewsSubmitResponse>;
|
|
2246
|
+
};
|