@compassdigital/sdk.typescript 3.0.0-beta.20 → 3.0.0-beta.3
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/README.md +9 -126
- package/gen.ts +41 -86
- package/lib/announcement.d.ts.map +1 -0
- package/lib/announcement.js +3 -0
- package/lib/announcement.js.map +1 -0
- package/lib/base.d.ts +4 -141
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +35 -328
- package/lib/base.js.map +1 -1
- package/lib/brand.d.ts.map +1 -0
- package/lib/brand.js +3 -0
- package/lib/brand.js.map +1 -0
- package/lib/calendar.d.ts.map +1 -0
- package/lib/calendar.js +3 -0
- package/lib/calendar.js.map +1 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +3 -0
- package/lib/config.js.map +1 -0
- package/lib/datalake.d.ts.map +1 -0
- package/lib/datalake.js +3 -0
- package/lib/datalake.js.map +1 -0
- package/lib/delivery.d.ts.map +1 -0
- package/lib/delivery.js +3 -0
- package/lib/delivery.js.map +1 -0
- package/lib/dh.d.ts.map +1 -0
- package/lib/dh.js +3 -0
- package/lib/dh.js.map +1 -0
- package/lib/email.d.ts.map +1 -0
- package/lib/email.js +3 -0
- package/lib/email.js.map +1 -0
- package/lib/file.d.ts.map +1 -0
- package/lib/file.js +3 -0
- package/lib/file.js.map +1 -0
- package/lib/index.d.ts +259 -476
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +234 -499
- package/lib/index.js.map +1 -1
- package/lib/{interface/kds.d.ts → kds.d.ts} +0 -1
- package/lib/kds.d.ts.map +1 -0
- package/lib/kds.js +3 -0
- package/lib/kds.js.map +1 -0
- package/lib/{interface/location.d.ts → location.d.ts} +0 -1
- package/lib/location.d.ts.map +1 -0
- package/lib/location.js +3 -0
- package/lib/location.js.map +1 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +3 -0
- package/lib/logger.js.map +1 -0
- package/lib/loyalty.d.ts.map +1 -0
- package/lib/loyalty.js +3 -0
- package/lib/loyalty.js.map +1 -0
- package/lib/mealplan.d.ts.map +1 -0
- package/lib/mealplan.js +3 -0
- package/lib/mealplan.js.map +1 -0
- package/lib/message.d.ts.map +1 -0
- package/lib/message.js +3 -0
- package/lib/message.js.map +1 -0
- package/lib/{interface/order.d.ts → order.d.ts} +4 -5
- package/lib/order.d.ts.map +1 -0
- package/lib/order.js +3 -0
- package/lib/order.js.map +1 -0
- package/lib/{interface/partner.d.ts → partner.d.ts} +3 -233
- package/lib/partner.d.ts.map +1 -0
- package/lib/partner.js +3 -0
- package/lib/partner.js.map +1 -0
- package/lib/{interface/payment.d.ts → payment.d.ts} +0 -1
- package/lib/payment.d.ts.map +1 -0
- package/lib/payment.js +3 -0
- package/lib/payment.js.map +1 -0
- package/lib/promo.d.ts.map +1 -0
- package/lib/promo.js +3 -0
- package/lib/promo.js.map +1 -0
- package/lib/report.d.ts.map +1 -0
- package/lib/report.js +3 -0
- package/lib/report.js.map +1 -0
- package/lib/schedule.d.ts.map +1 -0
- package/lib/schedule.js +3 -0
- package/lib/schedule.js.map +1 -0
- package/lib/shoppingcart.d.ts.map +1 -0
- package/lib/shoppingcart.js +3 -0
- package/lib/shoppingcart.js.map +1 -0
- package/lib/task.d.ts.map +1 -0
- package/lib/task.js +3 -0
- package/lib/task.js.map +1 -0
- package/lib/{interface/user.d.ts → user.d.ts} +0 -2
- package/lib/user.d.ts.map +1 -0
- package/lib/user.js +3 -0
- package/lib/user.js.map +1 -0
- package/lib/vote.d.ts.map +1 -0
- package/lib/vote.js +3 -0
- package/lib/vote.js.map +1 -0
- package/manifest.json +50 -29
- package/package.json +5 -19
- package/src/{interface/announcement.ts → announcement.ts} +0 -2
- package/src/base.ts +17 -330
- package/src/{interface/brand.ts → brand.ts} +0 -2
- package/src/{interface/calendar.ts → calendar.ts} +0 -2
- package/src/{interface/config.ts → config.ts} +0 -2
- package/src/{interface/datalake.ts → datalake.ts} +0 -2
- package/src/{interface/delivery.ts → delivery.ts} +0 -2
- package/src/{interface/dh.ts → dh.ts} +0 -2
- package/src/{interface/email.ts → email.ts} +0 -2
- package/src/{interface/file.ts → file.ts} +0 -2
- package/src/index.ts +485 -2145
- package/src/{interface/kds.ts → kds.ts} +0 -4
- package/src/{interface/location.ts → location.ts} +0 -4
- package/src/{interface/logger.ts → logger.ts} +0 -2
- package/src/{interface/loyalty.ts → loyalty.ts} +0 -2
- package/src/{interface/mealplan.ts → mealplan.ts} +0 -2
- package/src/{interface/message.ts → message.ts} +0 -2
- package/src/{interface/order.ts → order.ts} +6 -10
- package/src/{interface/partner.ts → partner.ts} +4 -279
- package/src/{interface/payment.ts → payment.ts} +0 -4
- package/src/{interface/promo.ts → promo.ts} +0 -2
- package/src/{interface/report.ts → report.ts} +0 -2
- package/src/{interface/schedule.ts → schedule.ts} +0 -2
- package/src/{interface/shoppingcart.ts → shoppingcart.ts} +0 -2
- package/src/{interface/task.ts → task.ts} +0 -2
- package/src/{interface/user.ts → user.ts} +1 -7
- package/src/{interface/vote.ts → vote.ts} +0 -2
- package/template.ejs +2 -3
- package/bin/gen.js +0 -472
- package/bin/index.js +0 -3
- package/lib/interface/announcement.d.ts.map +0 -1
- package/lib/interface/announcement.js +0 -4
- package/lib/interface/announcement.js.map +0 -1
- package/lib/interface/brand.d.ts.map +0 -1
- package/lib/interface/brand.js +0 -4
- package/lib/interface/brand.js.map +0 -1
- package/lib/interface/calendar.d.ts.map +0 -1
- package/lib/interface/calendar.js +0 -4
- package/lib/interface/calendar.js.map +0 -1
- package/lib/interface/config.d.ts.map +0 -1
- package/lib/interface/config.js +0 -4
- package/lib/interface/config.js.map +0 -1
- package/lib/interface/datalake.d.ts.map +0 -1
- package/lib/interface/datalake.js +0 -4
- package/lib/interface/datalake.js.map +0 -1
- package/lib/interface/delivery.d.ts.map +0 -1
- package/lib/interface/delivery.js +0 -4
- package/lib/interface/delivery.js.map +0 -1
- package/lib/interface/dh.d.ts.map +0 -1
- package/lib/interface/dh.js +0 -4
- package/lib/interface/dh.js.map +0 -1
- package/lib/interface/email.d.ts.map +0 -1
- package/lib/interface/email.js +0 -4
- package/lib/interface/email.js.map +0 -1
- package/lib/interface/file.d.ts.map +0 -1
- package/lib/interface/file.js +0 -4
- package/lib/interface/file.js.map +0 -1
- package/lib/interface/kds.d.ts.map +0 -1
- package/lib/interface/kds.js +0 -4
- package/lib/interface/kds.js.map +0 -1
- package/lib/interface/location.d.ts.map +0 -1
- package/lib/interface/location.js +0 -4
- package/lib/interface/location.js.map +0 -1
- package/lib/interface/logger.d.ts.map +0 -1
- package/lib/interface/logger.js +0 -4
- package/lib/interface/logger.js.map +0 -1
- package/lib/interface/loyalty.d.ts.map +0 -1
- package/lib/interface/loyalty.js +0 -4
- package/lib/interface/loyalty.js.map +0 -1
- package/lib/interface/mealplan.d.ts.map +0 -1
- package/lib/interface/mealplan.js +0 -4
- package/lib/interface/mealplan.js.map +0 -1
- package/lib/interface/menu.d.ts +0 -444
- package/lib/interface/menu.d.ts.map +0 -1
- package/lib/interface/menu.js +0 -4
- package/lib/interface/menu.js.map +0 -1
- package/lib/interface/message.d.ts.map +0 -1
- package/lib/interface/message.js +0 -4
- package/lib/interface/message.js.map +0 -1
- package/lib/interface/order.d.ts.map +0 -1
- package/lib/interface/order.js +0 -4
- package/lib/interface/order.js.map +0 -1
- package/lib/interface/partner.d.ts.map +0 -1
- package/lib/interface/partner.js +0 -4
- package/lib/interface/partner.js.map +0 -1
- package/lib/interface/payment.d.ts.map +0 -1
- package/lib/interface/payment.js +0 -4
- package/lib/interface/payment.js.map +0 -1
- package/lib/interface/promo.d.ts.map +0 -1
- package/lib/interface/promo.js +0 -4
- package/lib/interface/promo.js.map +0 -1
- package/lib/interface/report.d.ts.map +0 -1
- package/lib/interface/report.js +0 -4
- package/lib/interface/report.js.map +0 -1
- package/lib/interface/schedule.d.ts.map +0 -1
- package/lib/interface/schedule.js +0 -4
- package/lib/interface/schedule.js.map +0 -1
- package/lib/interface/shoppingcart.d.ts.map +0 -1
- package/lib/interface/shoppingcart.js +0 -4
- package/lib/interface/shoppingcart.js.map +0 -1
- package/lib/interface/task.d.ts.map +0 -1
- package/lib/interface/task.js +0 -4
- package/lib/interface/task.js.map +0 -1
- package/lib/interface/user.d.ts.map +0 -1
- package/lib/interface/user.js +0 -4
- package/lib/interface/user.js.map +0 -1
- package/lib/interface/vote.d.ts.map +0 -1
- package/lib/interface/vote.js +0 -4
- package/lib/interface/vote.js.map +0 -1
- package/src/interface/menu.ts +0 -644
- package/test/client.test.ts +0 -192
- package/test/gen.test.ts +0 -22
- /package/lib/{interface/announcement.d.ts → announcement.d.ts} +0 -0
- /package/lib/{interface/brand.d.ts → brand.d.ts} +0 -0
- /package/lib/{interface/calendar.d.ts → calendar.d.ts} +0 -0
- /package/lib/{interface/config.d.ts → config.d.ts} +0 -0
- /package/lib/{interface/datalake.d.ts → datalake.d.ts} +0 -0
- /package/lib/{interface/delivery.d.ts → delivery.d.ts} +0 -0
- /package/lib/{interface/dh.d.ts → dh.d.ts} +0 -0
- /package/lib/{interface/email.d.ts → email.d.ts} +0 -0
- /package/lib/{interface/file.d.ts → file.d.ts} +0 -0
- /package/lib/{interface/logger.d.ts → logger.d.ts} +0 -0
- /package/lib/{interface/loyalty.d.ts → loyalty.d.ts} +0 -0
- /package/lib/{interface/mealplan.d.ts → mealplan.d.ts} +0 -0
- /package/lib/{interface/message.d.ts → message.d.ts} +0 -0
- /package/lib/{interface/promo.d.ts → promo.d.ts} +0 -0
- /package/lib/{interface/report.d.ts → report.d.ts} +0 -0
- /package/lib/{interface/schedule.d.ts → schedule.d.ts} +0 -0
- /package/lib/{interface/shoppingcart.d.ts → shoppingcart.d.ts} +0 -0
- /package/lib/{interface/task.d.ts → task.d.ts} +0 -0
- /package/lib/{interface/vote.d.ts → vote.d.ts} +0 -0
package/src/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
import {
|
|
4
2
|
PostPaymentTransactionBody,
|
|
5
3
|
PostPaymentTransactionResponse,
|
|
@@ -28,7 +26,7 @@ import {
|
|
|
28
26
|
GetPaymentMethodsResponse,
|
|
29
27
|
GetPaymentHpcQuery,
|
|
30
28
|
GetPaymentHpcResponse,
|
|
31
|
-
} from "./
|
|
29
|
+
} from "./payment";
|
|
32
30
|
|
|
33
31
|
import {
|
|
34
32
|
PostOrderQuery,
|
|
@@ -45,13 +43,13 @@ import {
|
|
|
45
43
|
GetOrderCustomerOrdersQuery,
|
|
46
44
|
GetOrderCustomerOrdersResponse,
|
|
47
45
|
GetOrderCustomerOrdersBrandResponse,
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
GetOrderBrandOrdersQuery,
|
|
47
|
+
GetOrderBrandOrdersResponse,
|
|
50
48
|
GetOrderLocationOrdersQuery,
|
|
51
49
|
GetOrderLocationOrdersResponse,
|
|
52
50
|
GetOrderGroupOrdersQuery,
|
|
53
51
|
GetOrderGroupOrdersResponse,
|
|
54
|
-
} from "./
|
|
52
|
+
} from "./order";
|
|
55
53
|
|
|
56
54
|
import {
|
|
57
55
|
PostLocationBody,
|
|
@@ -148,7 +146,7 @@ import {
|
|
|
148
146
|
GetLocationCompanyResponse,
|
|
149
147
|
PatchLocationCompanyBody,
|
|
150
148
|
PatchLocationCompanyResponse,
|
|
151
|
-
} from "./
|
|
149
|
+
} from "./location";
|
|
152
150
|
|
|
153
151
|
import {
|
|
154
152
|
PostShoppingcartCartBody,
|
|
@@ -173,19 +171,16 @@ import {
|
|
|
173
171
|
PostShoppingcartCloneCartResponse,
|
|
174
172
|
PostShoppingcartBulkBody,
|
|
175
173
|
PostShoppingcartBulkResponse,
|
|
176
|
-
} from "./
|
|
174
|
+
} from "./shoppingcart";
|
|
177
175
|
|
|
178
176
|
import {
|
|
179
177
|
PostPartnerStandardcognitionShoppingcartBody,
|
|
180
178
|
PostPartnerStandardcognitionShoppingcartResponse,
|
|
181
179
|
GetPartnerStandardcognitionLocationsResponse,
|
|
182
|
-
GetPartnerStandardcognitionStoresResponse,
|
|
183
|
-
PostPartnerStandardcognitionMenuBody,
|
|
184
|
-
PostPartnerStandardcognitionMenuResponse,
|
|
185
180
|
GetPartnerCoolrLocationsResponse,
|
|
186
181
|
GetPartnerCoolrImagesResponse,
|
|
187
182
|
GetPartnerSwaggerResponse,
|
|
188
|
-
} from "./
|
|
183
|
+
} from "./partner";
|
|
189
184
|
|
|
190
185
|
import {
|
|
191
186
|
PostTaskBody,
|
|
@@ -204,7 +199,7 @@ import {
|
|
|
204
199
|
GetTaskLocationBrandResponse,
|
|
205
200
|
GetTaskLocationGroupQuery,
|
|
206
201
|
GetTaskLocationGroupResponse,
|
|
207
|
-
} from "./
|
|
202
|
+
} from "./task";
|
|
208
203
|
|
|
209
204
|
import {
|
|
210
205
|
GetKdsDevicesQuery,
|
|
@@ -213,7 +208,7 @@ import {
|
|
|
213
208
|
PostKdsDeviceAuthResponse,
|
|
214
209
|
DeleteKdsDeviceAuthResponse,
|
|
215
210
|
GetKdsSwaggerResponse,
|
|
216
|
-
} from "./
|
|
211
|
+
} from "./kds";
|
|
217
212
|
|
|
218
213
|
import {
|
|
219
214
|
PostMealplanBody,
|
|
@@ -235,13 +230,9 @@ import {
|
|
|
235
230
|
PutMealplanVerifyResponse,
|
|
236
231
|
PostMealplanAuthorizeBody,
|
|
237
232
|
PostMealplanAuthorizeResponse,
|
|
238
|
-
} from "./
|
|
233
|
+
} from "./mealplan";
|
|
239
234
|
|
|
240
|
-
import {
|
|
241
|
-
PostDatalakeSqlBody,
|
|
242
|
-
PostDatalakeSqlResponse,
|
|
243
|
-
GetSwaggerResponse,
|
|
244
|
-
} from "./interface/datalake";
|
|
235
|
+
import { PostDatalakeSqlBody, PostDatalakeSqlResponse, GetSwaggerResponse } from "./datalake";
|
|
245
236
|
|
|
246
237
|
import {
|
|
247
238
|
PostPromoBody,
|
|
@@ -274,9 +265,9 @@ import {
|
|
|
274
265
|
PostPromoVoucherifyActivityExecuteBody,
|
|
275
266
|
PostPromoVoucherifyActivityExecuteResponse,
|
|
276
267
|
GetPromoVoucherifyActivityConfigResponse,
|
|
277
|
-
} from "./
|
|
268
|
+
} from "./promo";
|
|
278
269
|
|
|
279
|
-
import { PostDhSqlResponse } from "./
|
|
270
|
+
import { PostDhSqlResponse } from "./dh";
|
|
280
271
|
|
|
281
272
|
import {
|
|
282
273
|
GetConfigResponse,
|
|
@@ -291,7 +282,7 @@ import {
|
|
|
291
282
|
PutConfigPublicBody,
|
|
292
283
|
PutConfigPublicResponse,
|
|
293
284
|
DeleteConfigPublicResponse,
|
|
294
|
-
} from "./
|
|
285
|
+
} from "./config";
|
|
295
286
|
|
|
296
287
|
import {
|
|
297
288
|
PostAnnouncementBody,
|
|
@@ -304,7 +295,7 @@ import {
|
|
|
304
295
|
PutAnnouncementBody,
|
|
305
296
|
PutAnnouncementResponse,
|
|
306
297
|
DeleteAnnouncementResponse,
|
|
307
|
-
} from "./
|
|
298
|
+
} from "./announcement";
|
|
308
299
|
|
|
309
300
|
import {
|
|
310
301
|
GetReportAnalyticsGroupQuery,
|
|
@@ -332,7 +323,7 @@ import {
|
|
|
332
323
|
DeleteReportDiscrepancySubscribersResponse,
|
|
333
324
|
PostReportDiscrepancySubscribersBody,
|
|
334
325
|
PostReportDiscrepancySubscribersResponse,
|
|
335
|
-
} from "./
|
|
326
|
+
} from "./report";
|
|
336
327
|
|
|
337
328
|
import {
|
|
338
329
|
GetUserAuthQuery,
|
|
@@ -358,7 +349,6 @@ import {
|
|
|
358
349
|
GetUserKdsTokenQuery,
|
|
359
350
|
GetUserKdsTokenResponse,
|
|
360
351
|
DeleteUserDeviceAuthResponse,
|
|
361
|
-
PatchUserAuthKdsBody,
|
|
362
352
|
PatchUserAuthKdsResponse,
|
|
363
353
|
PostUserChangePasswordBody,
|
|
364
354
|
PostUserChangePasswordResponse,
|
|
@@ -388,7 +378,7 @@ import {
|
|
|
388
378
|
PostUserSendEmailVerificationResponse,
|
|
389
379
|
PutUserVerifyUserEmailBody,
|
|
390
380
|
PutUserVerifyUserEmailResponse,
|
|
391
|
-
} from "./
|
|
381
|
+
} from "./user";
|
|
392
382
|
|
|
393
383
|
import {
|
|
394
384
|
PostLoyaltyEnrollQuery,
|
|
@@ -425,9 +415,9 @@ import {
|
|
|
425
415
|
GetLoyaltyUsersResponse,
|
|
426
416
|
GetLoyaltyEventsQuery,
|
|
427
417
|
GetLoyaltyEventsResponse,
|
|
428
|
-
} from "./
|
|
418
|
+
} from "./loyalty";
|
|
429
419
|
|
|
430
|
-
import { GetBrandResponse, GetBrandsResponse } from "./
|
|
420
|
+
import { GetBrandResponse, GetBrandsResponse } from "./brand";
|
|
431
421
|
|
|
432
422
|
import {
|
|
433
423
|
GetCalendarResponse,
|
|
@@ -437,14 +427,14 @@ import {
|
|
|
437
427
|
GetCalendarCdlResponse,
|
|
438
428
|
GetCalendarSwaggerResponse,
|
|
439
429
|
PostCalendarSyncResponse,
|
|
440
|
-
} from "./
|
|
430
|
+
} from "./calendar";
|
|
441
431
|
|
|
442
432
|
import {
|
|
443
433
|
PostDeliveryOrderBody,
|
|
444
434
|
PostDeliveryOrderResponse,
|
|
445
435
|
PatchDeliveryOrderResponse,
|
|
446
436
|
GetDeliveryOrderResponse,
|
|
447
|
-
} from "./
|
|
437
|
+
} from "./delivery";
|
|
448
438
|
|
|
449
439
|
import {
|
|
450
440
|
PostScheduleBody,
|
|
@@ -455,68 +445,17 @@ import {
|
|
|
455
445
|
PutScheduleBody,
|
|
456
446
|
PutScheduleResponse,
|
|
457
447
|
DeleteScheduleResponse,
|
|
458
|
-
} from "./
|
|
448
|
+
} from "./schedule";
|
|
459
449
|
|
|
460
|
-
import {
|
|
461
|
-
PostVoteBody,
|
|
462
|
-
PostVoteResponse,
|
|
463
|
-
GetVoteIdfaQuery,
|
|
464
|
-
GetVoteIdfaResponse,
|
|
465
|
-
} from "./interface/vote";
|
|
450
|
+
import { PostVoteBody, PostVoteResponse, GetVoteIdfaQuery, GetVoteIdfaResponse } from "./vote";
|
|
466
451
|
|
|
467
|
-
import { PostFileBody, PostFileResponse } from "./
|
|
452
|
+
import { PostFileBody, PostFileResponse } from "./file";
|
|
468
453
|
|
|
469
|
-
import { PostMessageBody, PostMessageResponse, GetMessageResponse } from "./
|
|
454
|
+
import { PostMessageBody, PostMessageResponse, GetMessageResponse } from "./message";
|
|
470
455
|
|
|
471
|
-
import { GetLoggerBrandStatusQuery, GetLoggerBrandStatusResponse } from "./
|
|
456
|
+
import { GetLoggerBrandStatusQuery, GetLoggerBrandStatusResponse } from "./logger";
|
|
472
457
|
|
|
473
|
-
import {
|
|
474
|
-
GetMenuClientResponse,
|
|
475
|
-
GetMenusQuery,
|
|
476
|
-
GetMenusResponse,
|
|
477
|
-
PostMenuBody,
|
|
478
|
-
PostMenuResponse,
|
|
479
|
-
HeadMenuQuery,
|
|
480
|
-
HeadMenuResponse,
|
|
481
|
-
GetMenuQuery,
|
|
482
|
-
GetMenuResponse,
|
|
483
|
-
PutMenuQuery,
|
|
484
|
-
PutMenuBody,
|
|
485
|
-
PutMenuResponse,
|
|
486
|
-
DeleteMenuQuery,
|
|
487
|
-
DeleteMenuResponse,
|
|
488
|
-
PatchMenuQuery,
|
|
489
|
-
PatchMenuBody,
|
|
490
|
-
PatchMenuResponse,
|
|
491
|
-
PostMenuImportMenuBody,
|
|
492
|
-
PostMenuImportMenuResponse,
|
|
493
|
-
GetMenuItemResponse,
|
|
494
|
-
DeleteMenuItemResponse,
|
|
495
|
-
PostMenuItemBody,
|
|
496
|
-
PostMenuItemResponse,
|
|
497
|
-
GetMenuItemsQuery,
|
|
498
|
-
GetMenuItemsResponse,
|
|
499
|
-
PostMenuImportItemsCanteenResponse,
|
|
500
|
-
GetMenuLocationItemsResponse,
|
|
501
|
-
GetMenuLocationItemRandomQuery,
|
|
502
|
-
GetMenuLocationItemRandomResponse,
|
|
503
|
-
GetMenuLocationItemsRandomQuery,
|
|
504
|
-
GetMenuLocationItemsRandomResponse,
|
|
505
|
-
GetMenuSectorMenusResponse,
|
|
506
|
-
GetMenuCompanyMenusResponse,
|
|
507
|
-
PostMenuModifierGroupBody,
|
|
508
|
-
PostMenuModifierGroupResponse,
|
|
509
|
-
GetMenuModifierGroupResponse,
|
|
510
|
-
PutMenuModifierGroupBody,
|
|
511
|
-
PutMenuModifierGroupResponse,
|
|
512
|
-
DeleteMenuModifierGroupResponse,
|
|
513
|
-
GetMenuCompanyModifierGroupsResponse,
|
|
514
|
-
GetMenuCompanyModifierGroupsExportResponse,
|
|
515
|
-
GetMenuExportResponse,
|
|
516
|
-
} from "./interface/menu";
|
|
517
|
-
|
|
518
|
-
import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
|
|
519
|
-
export * from "./base";
|
|
458
|
+
import { BaseServiceClient, RequestOptions } from "./base";
|
|
520
459
|
|
|
521
460
|
export class ServiceClient extends BaseServiceClient {
|
|
522
461
|
/**
|
|
@@ -530,15 +469,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
530
469
|
id: string,
|
|
531
470
|
body: PostPaymentTransactionBody,
|
|
532
471
|
options?: RequestOptions
|
|
533
|
-
):
|
|
534
|
-
return this.request(
|
|
535
|
-
"payment",
|
|
536
|
-
"post_payment_transaction",
|
|
537
|
-
"post",
|
|
538
|
-
`/payment/${id}/transaction`,
|
|
539
|
-
body,
|
|
540
|
-
options
|
|
541
|
-
);
|
|
472
|
+
): Promise<PostPaymentTransactionResponse> {
|
|
473
|
+
return this.request("post", `/payment/${id}/transaction`, body, options);
|
|
542
474
|
}
|
|
543
475
|
|
|
544
476
|
/**
|
|
@@ -554,10 +486,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
554
486
|
transaction_id: string,
|
|
555
487
|
body: PostPaymentTransactionRefundBody,
|
|
556
488
|
options?: RequestOptions
|
|
557
|
-
):
|
|
489
|
+
): Promise<PostPaymentTransactionRefundResponse> {
|
|
558
490
|
return this.request(
|
|
559
|
-
"payment",
|
|
560
|
-
"post_payment_transaction_refund",
|
|
561
491
|
"post",
|
|
562
492
|
`/payment/${id}/transaction/${transaction_id}/refund`,
|
|
563
493
|
body,
|
|
@@ -574,15 +504,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
574
504
|
get_payment_clienttoken(
|
|
575
505
|
id: string,
|
|
576
506
|
options?: RequestOptions
|
|
577
|
-
):
|
|
578
|
-
return this.request(
|
|
579
|
-
"payment",
|
|
580
|
-
"get_payment_clienttoken",
|
|
581
|
-
"get",
|
|
582
|
-
`/payment/${id}/clienttoken`,
|
|
583
|
-
null,
|
|
584
|
-
options
|
|
585
|
-
);
|
|
507
|
+
): Promise<GetPaymentClienttokenResponse> {
|
|
508
|
+
return this.request("get", `/payment/${id}/clienttoken`, null, options);
|
|
586
509
|
}
|
|
587
510
|
|
|
588
511
|
/**
|
|
@@ -596,15 +519,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
596
519
|
id: string,
|
|
597
520
|
body: PostPaymentPaymenttokenBody,
|
|
598
521
|
options?: RequestOptions
|
|
599
|
-
):
|
|
600
|
-
return this.request(
|
|
601
|
-
"payment",
|
|
602
|
-
"post_payment_paymenttoken",
|
|
603
|
-
"post",
|
|
604
|
-
`/payment/${id}/paymenttoken`,
|
|
605
|
-
body,
|
|
606
|
-
options
|
|
607
|
-
);
|
|
522
|
+
): Promise<PostPaymentPaymenttokenResponse> {
|
|
523
|
+
return this.request("post", `/payment/${id}/paymenttoken`, body, options);
|
|
608
524
|
}
|
|
609
525
|
|
|
610
526
|
/**
|
|
@@ -616,15 +532,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
616
532
|
post_payment_consumer(
|
|
617
533
|
body: PostPaymentConsumerBody,
|
|
618
534
|
options?: RequestOptions
|
|
619
|
-
):
|
|
620
|
-
return this.request(
|
|
621
|
-
"payment",
|
|
622
|
-
"post_payment_consumer",
|
|
623
|
-
"post",
|
|
624
|
-
`/payment/consumer`,
|
|
625
|
-
body,
|
|
626
|
-
options
|
|
627
|
-
);
|
|
535
|
+
): Promise<PostPaymentConsumerResponse> {
|
|
536
|
+
return this.request("post", `/payment/consumer`, body, options);
|
|
628
537
|
}
|
|
629
538
|
|
|
630
539
|
/**
|
|
@@ -636,8 +545,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
636
545
|
post_payment_method(
|
|
637
546
|
body: PostPaymentMethodBody,
|
|
638
547
|
options?: RequestOptions
|
|
639
|
-
):
|
|
640
|
-
return this.request("
|
|
548
|
+
): Promise<PostPaymentMethodResponse> {
|
|
549
|
+
return this.request("post", `/payment/method`, body, options);
|
|
641
550
|
}
|
|
642
551
|
|
|
643
552
|
/**
|
|
@@ -651,15 +560,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
651
560
|
options: {
|
|
652
561
|
query: GetPaymentMethodQuery;
|
|
653
562
|
} & RequestOptions
|
|
654
|
-
):
|
|
655
|
-
return this.request(
|
|
656
|
-
"payment",
|
|
657
|
-
"get_payment_method",
|
|
658
|
-
"get",
|
|
659
|
-
`/payment/${id}/method`,
|
|
660
|
-
null,
|
|
661
|
-
options
|
|
662
|
-
);
|
|
563
|
+
): Promise<GetPaymentMethodResponse> {
|
|
564
|
+
return this.request("get", `/payment/${id}/method`, null, options);
|
|
663
565
|
}
|
|
664
566
|
|
|
665
567
|
/**
|
|
@@ -675,15 +577,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
675
577
|
method_id: string,
|
|
676
578
|
body: DeletePaymentMethodBody,
|
|
677
579
|
options?: RequestOptions
|
|
678
|
-
):
|
|
679
|
-
return this.request(
|
|
680
|
-
"payment",
|
|
681
|
-
"delete_payment_method",
|
|
682
|
-
"delete",
|
|
683
|
-
`/payment/${id}/method/${method_id}`,
|
|
684
|
-
body,
|
|
685
|
-
options
|
|
686
|
-
);
|
|
580
|
+
): Promise<DeletePaymentMethodResponse> {
|
|
581
|
+
return this.request("delete", `/payment/${id}/method/${method_id}`, body, options);
|
|
687
582
|
}
|
|
688
583
|
|
|
689
584
|
/**
|
|
@@ -695,8 +590,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
695
590
|
options: {
|
|
696
591
|
query: GetPaymentTokenQuery;
|
|
697
592
|
} & RequestOptions
|
|
698
|
-
):
|
|
699
|
-
return this.request("
|
|
593
|
+
): Promise<GetPaymentTokenResponse> {
|
|
594
|
+
return this.request("get", `/payment/token`, null, options);
|
|
700
595
|
}
|
|
701
596
|
|
|
702
597
|
/**
|
|
@@ -708,8 +603,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
708
603
|
post_payment_token(
|
|
709
604
|
body: PostPaymentTokenBody,
|
|
710
605
|
options?: RequestOptions
|
|
711
|
-
):
|
|
712
|
-
return this.request("
|
|
606
|
+
): Promise<PostPaymentTokenResponse> {
|
|
607
|
+
return this.request("post", `/payment/token`, body, options);
|
|
713
608
|
}
|
|
714
609
|
|
|
715
610
|
/**
|
|
@@ -721,8 +616,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
721
616
|
put_payment_token(
|
|
722
617
|
body: PutPaymentTokenBody,
|
|
723
618
|
options?: RequestOptions
|
|
724
|
-
):
|
|
725
|
-
return this.request("
|
|
619
|
+
): Promise<PutPaymentTokenResponse> {
|
|
620
|
+
return this.request("put", `/payment/token`, body, options);
|
|
726
621
|
}
|
|
727
622
|
|
|
728
623
|
/**
|
|
@@ -734,15 +629,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
734
629
|
delete_payment_token(
|
|
735
630
|
body: DeletePaymentTokenBody,
|
|
736
631
|
options?: RequestOptions
|
|
737
|
-
):
|
|
738
|
-
return this.request(
|
|
739
|
-
"payment",
|
|
740
|
-
"delete_payment_token",
|
|
741
|
-
"delete",
|
|
742
|
-
`/payment/token`,
|
|
743
|
-
body,
|
|
744
|
-
options
|
|
745
|
-
);
|
|
632
|
+
): Promise<DeletePaymentTokenResponse> {
|
|
633
|
+
return this.request("delete", `/payment/token`, body, options);
|
|
746
634
|
}
|
|
747
635
|
|
|
748
636
|
/**
|
|
@@ -754,8 +642,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
754
642
|
options: {
|
|
755
643
|
query: GetPaymentMethodsQuery;
|
|
756
644
|
} & RequestOptions
|
|
757
|
-
):
|
|
758
|
-
return this.request("
|
|
645
|
+
): Promise<GetPaymentMethodsResponse> {
|
|
646
|
+
return this.request("get", `/payment/methods`, null, options);
|
|
759
647
|
}
|
|
760
648
|
|
|
761
649
|
/**
|
|
@@ -767,8 +655,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
767
655
|
options: {
|
|
768
656
|
query: GetPaymentHpcQuery;
|
|
769
657
|
} & RequestOptions
|
|
770
|
-
):
|
|
771
|
-
return this.request("
|
|
658
|
+
): Promise<GetPaymentHpcResponse> {
|
|
659
|
+
return this.request("get", `/payment/hpc`, null, options);
|
|
772
660
|
}
|
|
773
661
|
|
|
774
662
|
/**
|
|
@@ -782,8 +670,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
782
670
|
options?: {
|
|
783
671
|
query?: PostOrderQuery;
|
|
784
672
|
} & RequestOptions
|
|
785
|
-
):
|
|
786
|
-
return this.request("
|
|
673
|
+
): Promise<PostOrderResponse> {
|
|
674
|
+
return this.request("post", `/order`, body, options);
|
|
787
675
|
}
|
|
788
676
|
|
|
789
677
|
/**
|
|
@@ -792,8 +680,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
792
680
|
* @param id - The order ID
|
|
793
681
|
* @param options - additional request options
|
|
794
682
|
*/
|
|
795
|
-
get_order(id: string, options?: RequestOptions):
|
|
796
|
-
return this.request("
|
|
683
|
+
get_order(id: string, options?: RequestOptions): Promise<GetOrderResponse> {
|
|
684
|
+
return this.request("get", `/order/${id}`, null, options);
|
|
797
685
|
}
|
|
798
686
|
|
|
799
687
|
/**
|
|
@@ -802,8 +690,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
802
690
|
* @param id - The order ID
|
|
803
691
|
* @param options - additional request options
|
|
804
692
|
*/
|
|
805
|
-
put_order(id: string, options?: RequestOptions):
|
|
806
|
-
return this.request("
|
|
693
|
+
put_order(id: string, options?: RequestOptions): Promise<PutOrderResponse> {
|
|
694
|
+
return this.request("put", `/order/${id}`, null, options);
|
|
807
695
|
}
|
|
808
696
|
|
|
809
697
|
/**
|
|
@@ -817,8 +705,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
817
705
|
id: string,
|
|
818
706
|
body: PatchOrderBody,
|
|
819
707
|
options?: RequestOptions
|
|
820
|
-
):
|
|
821
|
-
return this.request("
|
|
708
|
+
): Promise<PatchOrderResponse> {
|
|
709
|
+
return this.request("patch", `/order/${id}`, body, options);
|
|
822
710
|
}
|
|
823
711
|
|
|
824
712
|
/**
|
|
@@ -832,8 +720,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
832
720
|
id: string,
|
|
833
721
|
body: PostOrderIssueBody,
|
|
834
722
|
options?: RequestOptions
|
|
835
|
-
):
|
|
836
|
-
return this.request("
|
|
723
|
+
): Promise<PostOrderIssueResponse> {
|
|
724
|
+
return this.request("post", `/order/${id}/issue`, body, options);
|
|
837
725
|
}
|
|
838
726
|
|
|
839
727
|
/**
|
|
@@ -847,15 +735,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
847
735
|
id: string,
|
|
848
736
|
body: PatchOrderRefundBody,
|
|
849
737
|
options?: RequestOptions
|
|
850
|
-
):
|
|
851
|
-
return this.request(
|
|
852
|
-
"order",
|
|
853
|
-
"patch_order_refund",
|
|
854
|
-
"patch",
|
|
855
|
-
`/order/${id}/refund`,
|
|
856
|
-
body,
|
|
857
|
-
options
|
|
858
|
-
);
|
|
738
|
+
): Promise<PatchOrderRefundResponse> {
|
|
739
|
+
return this.request("patch", `/order/${id}/refund`, body, options);
|
|
859
740
|
}
|
|
860
741
|
|
|
861
742
|
/**
|
|
@@ -869,15 +750,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
869
750
|
options?: {
|
|
870
751
|
query?: GetOrderCustomerOrdersQuery;
|
|
871
752
|
} & RequestOptions
|
|
872
|
-
):
|
|
873
|
-
return this.request(
|
|
874
|
-
"order",
|
|
875
|
-
"get_order_customer_orders",
|
|
876
|
-
"get",
|
|
877
|
-
`/order/customer/${id}`,
|
|
878
|
-
null,
|
|
879
|
-
options
|
|
880
|
-
);
|
|
753
|
+
): Promise<GetOrderCustomerOrdersResponse> {
|
|
754
|
+
return this.request("get", `/order/customer/${id}`, null, options);
|
|
881
755
|
}
|
|
882
756
|
|
|
883
757
|
/**
|
|
@@ -891,10 +765,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
891
765
|
id: string,
|
|
892
766
|
location_brand: string,
|
|
893
767
|
options?: RequestOptions
|
|
894
|
-
):
|
|
768
|
+
): Promise<GetOrderCustomerOrdersBrandResponse> {
|
|
895
769
|
return this.request(
|
|
896
|
-
"order",
|
|
897
|
-
"get_order_customer_orders_brand",
|
|
898
770
|
"get",
|
|
899
771
|
`/order/customer/${id}/location/brand/${location_brand}`,
|
|
900
772
|
null,
|
|
@@ -908,20 +780,13 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
908
780
|
* @param id - The location brand ID
|
|
909
781
|
* @param options - additional request options
|
|
910
782
|
*/
|
|
911
|
-
|
|
783
|
+
get_order_brand_orders(
|
|
912
784
|
id: string,
|
|
913
785
|
options?: {
|
|
914
|
-
query?:
|
|
786
|
+
query?: GetOrderBrandOrdersQuery;
|
|
915
787
|
} & RequestOptions
|
|
916
|
-
):
|
|
917
|
-
return this.request(
|
|
918
|
-
"order",
|
|
919
|
-
"get_order_location_brand",
|
|
920
|
-
"get",
|
|
921
|
-
`/order/location/brand/${id}`,
|
|
922
|
-
null,
|
|
923
|
-
options
|
|
924
|
-
);
|
|
788
|
+
): Promise<GetOrderBrandOrdersResponse> {
|
|
789
|
+
return this.request("get", `/order/location/brand/${id}`, null, options);
|
|
925
790
|
}
|
|
926
791
|
|
|
927
792
|
/**
|
|
@@ -935,15 +800,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
935
800
|
options?: {
|
|
936
801
|
query?: GetOrderLocationOrdersQuery;
|
|
937
802
|
} & RequestOptions
|
|
938
|
-
):
|
|
939
|
-
return this.request(
|
|
940
|
-
"order",
|
|
941
|
-
"get_order_location_orders",
|
|
942
|
-
"get",
|
|
943
|
-
`/order/location/${id}`,
|
|
944
|
-
null,
|
|
945
|
-
options
|
|
946
|
-
);
|
|
803
|
+
): Promise<GetOrderLocationOrdersResponse> {
|
|
804
|
+
return this.request("get", `/order/location/${id}`, null, options);
|
|
947
805
|
}
|
|
948
806
|
|
|
949
807
|
/**
|
|
@@ -957,15 +815,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
957
815
|
options?: {
|
|
958
816
|
query?: GetOrderGroupOrdersQuery;
|
|
959
817
|
} & RequestOptions
|
|
960
|
-
):
|
|
961
|
-
return this.request(
|
|
962
|
-
"order",
|
|
963
|
-
"get_order_group_orders",
|
|
964
|
-
"get",
|
|
965
|
-
`/order/location/group/${id}`,
|
|
966
|
-
null,
|
|
967
|
-
options
|
|
968
|
-
);
|
|
818
|
+
): Promise<GetOrderGroupOrdersResponse> {
|
|
819
|
+
return this.request("get", `/order/location/group/${id}`, null, options);
|
|
969
820
|
}
|
|
970
821
|
|
|
971
822
|
/**
|
|
@@ -974,11 +825,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
974
825
|
* @param body
|
|
975
826
|
* @param options - additional request options
|
|
976
827
|
*/
|
|
977
|
-
post_location(
|
|
978
|
-
body
|
|
979
|
-
options?: RequestOptions
|
|
980
|
-
): ResponsePromise<PostLocationResponse> {
|
|
981
|
-
return this.request("location", "post_location", "post", `/location`, body, options);
|
|
828
|
+
post_location(body: PostLocationBody, options?: RequestOptions): Promise<PostLocationResponse> {
|
|
829
|
+
return this.request("post", `/location`, body, options);
|
|
982
830
|
}
|
|
983
831
|
|
|
984
832
|
/**
|
|
@@ -986,8 +834,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
986
834
|
*
|
|
987
835
|
* @param options - additional request options
|
|
988
836
|
*/
|
|
989
|
-
get_locations(options?: RequestOptions):
|
|
990
|
-
return this.request("
|
|
837
|
+
get_locations(options?: RequestOptions): Promise<GetLocationsResponse> {
|
|
838
|
+
return this.request("get", `/location`, null, options);
|
|
991
839
|
}
|
|
992
840
|
|
|
993
841
|
/**
|
|
@@ -999,15 +847,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
999
847
|
options?: {
|
|
1000
848
|
query?: GetLocationSearchQuery;
|
|
1001
849
|
} & RequestOptions
|
|
1002
|
-
):
|
|
1003
|
-
return this.request(
|
|
1004
|
-
"location",
|
|
1005
|
-
"get_location_search",
|
|
1006
|
-
"get",
|
|
1007
|
-
`/location/search`,
|
|
1008
|
-
null,
|
|
1009
|
-
options
|
|
1010
|
-
);
|
|
850
|
+
): Promise<GetLocationSearchResponse> {
|
|
851
|
+
return this.request("get", `/location/search`, null, options);
|
|
1011
852
|
}
|
|
1012
853
|
|
|
1013
854
|
/**
|
|
@@ -1021,8 +862,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1021
862
|
options?: {
|
|
1022
863
|
query?: GetLocationQuery;
|
|
1023
864
|
} & RequestOptions
|
|
1024
|
-
):
|
|
1025
|
-
return this.request("
|
|
865
|
+
): Promise<GetLocationResponse> {
|
|
866
|
+
return this.request("get", `/location/${id}`, null, options);
|
|
1026
867
|
}
|
|
1027
868
|
|
|
1028
869
|
/**
|
|
@@ -1036,8 +877,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1036
877
|
id: string,
|
|
1037
878
|
body: PutLocationBody,
|
|
1038
879
|
options?: RequestOptions
|
|
1039
|
-
):
|
|
1040
|
-
return this.request("
|
|
880
|
+
): Promise<PutLocationResponse> {
|
|
881
|
+
return this.request("put", `/location/${id}`, body, options);
|
|
1041
882
|
}
|
|
1042
883
|
|
|
1043
884
|
/**
|
|
@@ -1051,8 +892,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1051
892
|
id: string,
|
|
1052
893
|
body: DeleteLocationBody,
|
|
1053
894
|
options?: RequestOptions
|
|
1054
|
-
):
|
|
1055
|
-
return this.request("
|
|
895
|
+
): Promise<DeleteLocationResponse> {
|
|
896
|
+
return this.request("delete", `/location/${id}`, body, options);
|
|
1056
897
|
}
|
|
1057
898
|
|
|
1058
899
|
/**
|
|
@@ -1066,8 +907,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1066
907
|
id: string,
|
|
1067
908
|
body: PatchLocationBody,
|
|
1068
909
|
options?: RequestOptions
|
|
1069
|
-
):
|
|
1070
|
-
return this.request("
|
|
910
|
+
): Promise<PatchLocationResponse> {
|
|
911
|
+
return this.request("patch", `/location/${id}`, body, options);
|
|
1071
912
|
}
|
|
1072
913
|
|
|
1073
914
|
/**
|
|
@@ -1076,15 +917,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1076
917
|
* @param id - POS ID
|
|
1077
918
|
* @param options - additional request options
|
|
1078
919
|
*/
|
|
1079
|
-
get_location_pos(id: string, options?: RequestOptions):
|
|
1080
|
-
return this.request(
|
|
1081
|
-
"location",
|
|
1082
|
-
"get_location_pos",
|
|
1083
|
-
"get",
|
|
1084
|
-
`/location/pos/${id}`,
|
|
1085
|
-
null,
|
|
1086
|
-
options
|
|
1087
|
-
);
|
|
920
|
+
get_location_pos(id: string, options?: RequestOptions): Promise<GetLocationPosResponse> {
|
|
921
|
+
return this.request("get", `/location/pos/${id}`, null, options);
|
|
1088
922
|
}
|
|
1089
923
|
|
|
1090
924
|
/**
|
|
@@ -1098,15 +932,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1098
932
|
id: string,
|
|
1099
933
|
body: PutLocationPosBody,
|
|
1100
934
|
options?: RequestOptions
|
|
1101
|
-
):
|
|
1102
|
-
return this.request(
|
|
1103
|
-
"location",
|
|
1104
|
-
"put_location_pos",
|
|
1105
|
-
"put",
|
|
1106
|
-
`/location/pos/${id}`,
|
|
1107
|
-
body,
|
|
1108
|
-
options
|
|
1109
|
-
);
|
|
935
|
+
): Promise<PutLocationPosResponse> {
|
|
936
|
+
return this.request("put", `/location/pos/${id}`, body, options);
|
|
1110
937
|
}
|
|
1111
938
|
|
|
1112
939
|
/**
|
|
@@ -1114,17 +941,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1114
941
|
*
|
|
1115
942
|
* @param options - additional request options
|
|
1116
943
|
*/
|
|
1117
|
-
get_location_multigroups(
|
|
1118
|
-
options
|
|
1119
|
-
): ResponsePromise<GetLocationMultigroupsResponse> {
|
|
1120
|
-
return this.request(
|
|
1121
|
-
"location",
|
|
1122
|
-
"get_location_multigroups",
|
|
1123
|
-
"get",
|
|
1124
|
-
`/location/multigroup`,
|
|
1125
|
-
null,
|
|
1126
|
-
options
|
|
1127
|
-
);
|
|
944
|
+
get_location_multigroups(options?: RequestOptions): Promise<GetLocationMultigroupsResponse> {
|
|
945
|
+
return this.request("get", `/location/multigroup`, null, options);
|
|
1128
946
|
}
|
|
1129
947
|
|
|
1130
948
|
/**
|
|
@@ -1136,15 +954,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1136
954
|
post_location_multigroup(
|
|
1137
955
|
body: PostLocationMultigroupBody,
|
|
1138
956
|
options?: RequestOptions
|
|
1139
|
-
):
|
|
1140
|
-
return this.request(
|
|
1141
|
-
"location",
|
|
1142
|
-
"post_location_multigroup",
|
|
1143
|
-
"post",
|
|
1144
|
-
`/location/multigroup`,
|
|
1145
|
-
body,
|
|
1146
|
-
options
|
|
1147
|
-
);
|
|
957
|
+
): Promise<PostLocationMultigroupResponse> {
|
|
958
|
+
return this.request("post", `/location/multigroup`, body, options);
|
|
1148
959
|
}
|
|
1149
960
|
|
|
1150
961
|
/**
|
|
@@ -1158,15 +969,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1158
969
|
options?: {
|
|
1159
970
|
query?: GetLocationMultigroupQuery;
|
|
1160
971
|
} & RequestOptions
|
|
1161
|
-
):
|
|
1162
|
-
return this.request(
|
|
1163
|
-
"location",
|
|
1164
|
-
"get_location_multigroup",
|
|
1165
|
-
"get",
|
|
1166
|
-
`/location/multigroup/${id}`,
|
|
1167
|
-
null,
|
|
1168
|
-
options
|
|
1169
|
-
);
|
|
972
|
+
): Promise<GetLocationMultigroupResponse> {
|
|
973
|
+
return this.request("get", `/location/multigroup/${id}`, null, options);
|
|
1170
974
|
}
|
|
1171
975
|
|
|
1172
976
|
/**
|
|
@@ -1180,15 +984,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1180
984
|
id: string,
|
|
1181
985
|
body: PutLocationMultigroupBody,
|
|
1182
986
|
options?: RequestOptions
|
|
1183
|
-
):
|
|
1184
|
-
return this.request(
|
|
1185
|
-
"location",
|
|
1186
|
-
"put_location_multigroup",
|
|
1187
|
-
"put",
|
|
1188
|
-
`/location/multigroup/${id}`,
|
|
1189
|
-
body,
|
|
1190
|
-
options
|
|
1191
|
-
);
|
|
987
|
+
): Promise<PutLocationMultigroupResponse> {
|
|
988
|
+
return this.request("put", `/location/multigroup/${id}`, body, options);
|
|
1192
989
|
}
|
|
1193
990
|
|
|
1194
991
|
/**
|
|
@@ -1202,15 +999,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1202
999
|
id: string,
|
|
1203
1000
|
body: DeleteLocationMultigroupBody,
|
|
1204
1001
|
options?: RequestOptions
|
|
1205
|
-
):
|
|
1206
|
-
return this.request(
|
|
1207
|
-
"location",
|
|
1208
|
-
"delete_location_multigroup",
|
|
1209
|
-
"delete",
|
|
1210
|
-
`/location/multigroup/${id}`,
|
|
1211
|
-
body,
|
|
1212
|
-
options
|
|
1213
|
-
);
|
|
1002
|
+
): Promise<DeleteLocationMultigroupResponse> {
|
|
1003
|
+
return this.request("delete", `/location/multigroup/${id}`, body, options);
|
|
1214
1004
|
}
|
|
1215
1005
|
|
|
1216
1006
|
/**
|
|
@@ -1224,15 +1014,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1224
1014
|
id: string,
|
|
1225
1015
|
body: PatchLocationMultigroupBody,
|
|
1226
1016
|
options?: RequestOptions
|
|
1227
|
-
):
|
|
1228
|
-
return this.request(
|
|
1229
|
-
"location",
|
|
1230
|
-
"patch_location_multigroup",
|
|
1231
|
-
"patch",
|
|
1232
|
-
`/location/multigroup/${id}`,
|
|
1233
|
-
body,
|
|
1234
|
-
options
|
|
1235
|
-
);
|
|
1017
|
+
): Promise<PatchLocationMultigroupResponse> {
|
|
1018
|
+
return this.request("patch", `/location/multigroup/${id}`, body, options);
|
|
1236
1019
|
}
|
|
1237
1020
|
|
|
1238
1021
|
/**
|
|
@@ -1248,15 +1031,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1248
1031
|
options?: {
|
|
1249
1032
|
query?: GetLocationUserMultigroupQuery;
|
|
1250
1033
|
} & RequestOptions
|
|
1251
|
-
):
|
|
1252
|
-
return this.request(
|
|
1253
|
-
"location",
|
|
1254
|
-
"get_location_user_multigroup",
|
|
1255
|
-
"get",
|
|
1256
|
-
`/location/multigroup/${id}/user/${user_id}`,
|
|
1257
|
-
null,
|
|
1258
|
-
options
|
|
1259
|
-
);
|
|
1034
|
+
): Promise<GetLocationUserMultigroupResponse> {
|
|
1035
|
+
return this.request("get", `/location/multigroup/${id}/user/${user_id}`, null, options);
|
|
1260
1036
|
}
|
|
1261
1037
|
|
|
1262
1038
|
/**
|
|
@@ -1268,15 +1044,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1268
1044
|
post_location_group(
|
|
1269
1045
|
body: PostLocationGroupBody,
|
|
1270
1046
|
options?: RequestOptions
|
|
1271
|
-
):
|
|
1272
|
-
return this.request(
|
|
1273
|
-
"location",
|
|
1274
|
-
"post_location_group",
|
|
1275
|
-
"post",
|
|
1276
|
-
`/location/group`,
|
|
1277
|
-
body,
|
|
1278
|
-
options
|
|
1279
|
-
);
|
|
1047
|
+
): Promise<PostLocationGroupResponse> {
|
|
1048
|
+
return this.request("post", `/location/group`, body, options);
|
|
1280
1049
|
}
|
|
1281
1050
|
|
|
1282
1051
|
/**
|
|
@@ -1290,15 +1059,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1290
1059
|
options?: {
|
|
1291
1060
|
query?: GetLocationGroupQuery;
|
|
1292
1061
|
} & RequestOptions
|
|
1293
|
-
):
|
|
1294
|
-
return this.request(
|
|
1295
|
-
"location",
|
|
1296
|
-
"get_location_group",
|
|
1297
|
-
"get",
|
|
1298
|
-
`/location/group/${id}`,
|
|
1299
|
-
null,
|
|
1300
|
-
options
|
|
1301
|
-
);
|
|
1062
|
+
): Promise<GetLocationGroupResponse> {
|
|
1063
|
+
return this.request("get", `/location/group/${id}`, null, options);
|
|
1302
1064
|
}
|
|
1303
1065
|
|
|
1304
1066
|
/**
|
|
@@ -1312,15 +1074,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1312
1074
|
id: string,
|
|
1313
1075
|
body: PutLocationGroupBody,
|
|
1314
1076
|
options?: RequestOptions
|
|
1315
|
-
):
|
|
1316
|
-
return this.request(
|
|
1317
|
-
"location",
|
|
1318
|
-
"put_location_group",
|
|
1319
|
-
"put",
|
|
1320
|
-
`/location/group/${id}`,
|
|
1321
|
-
body,
|
|
1322
|
-
options
|
|
1323
|
-
);
|
|
1077
|
+
): Promise<PutLocationGroupResponse> {
|
|
1078
|
+
return this.request("put", `/location/group/${id}`, body, options);
|
|
1324
1079
|
}
|
|
1325
1080
|
|
|
1326
1081
|
/**
|
|
@@ -1334,15 +1089,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1334
1089
|
id: string,
|
|
1335
1090
|
body: DeleteLocationGroupBody,
|
|
1336
1091
|
options?: RequestOptions
|
|
1337
|
-
):
|
|
1338
|
-
return this.request(
|
|
1339
|
-
"location",
|
|
1340
|
-
"delete_location_group",
|
|
1341
|
-
"delete",
|
|
1342
|
-
`/location/group/${id}`,
|
|
1343
|
-
body,
|
|
1344
|
-
options
|
|
1345
|
-
);
|
|
1092
|
+
): Promise<DeleteLocationGroupResponse> {
|
|
1093
|
+
return this.request("delete", `/location/group/${id}`, body, options);
|
|
1346
1094
|
}
|
|
1347
1095
|
|
|
1348
1096
|
/**
|
|
@@ -1356,15 +1104,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1356
1104
|
id: string,
|
|
1357
1105
|
body: PatchLocationGroupBody,
|
|
1358
1106
|
options?: RequestOptions
|
|
1359
|
-
):
|
|
1360
|
-
return this.request(
|
|
1361
|
-
"location",
|
|
1362
|
-
"patch_location_group",
|
|
1363
|
-
"patch",
|
|
1364
|
-
`/location/group/${id}`,
|
|
1365
|
-
body,
|
|
1366
|
-
options
|
|
1367
|
-
);
|
|
1107
|
+
): Promise<PatchLocationGroupResponse> {
|
|
1108
|
+
return this.request("patch", `/location/group/${id}`, body, options);
|
|
1368
1109
|
}
|
|
1369
1110
|
|
|
1370
1111
|
/**
|
|
@@ -1378,15 +1119,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1378
1119
|
options?: {
|
|
1379
1120
|
query?: GetLocationGroupDeliverydestinationsQuery;
|
|
1380
1121
|
} & RequestOptions
|
|
1381
|
-
):
|
|
1382
|
-
return this.request(
|
|
1383
|
-
"location",
|
|
1384
|
-
"get_location_group_deliverydestinations",
|
|
1385
|
-
"get",
|
|
1386
|
-
`/location/group/${id}/deliverydestination`,
|
|
1387
|
-
null,
|
|
1388
|
-
options
|
|
1389
|
-
);
|
|
1122
|
+
): Promise<GetLocationGroupDeliverydestinationsResponse> {
|
|
1123
|
+
return this.request("get", `/location/group/${id}/deliverydestination`, null, options);
|
|
1390
1124
|
}
|
|
1391
1125
|
|
|
1392
1126
|
/**
|
|
@@ -1400,15 +1134,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1400
1134
|
id: string,
|
|
1401
1135
|
body: PostLocationGroupDeliverydestinationBody,
|
|
1402
1136
|
options?: RequestOptions
|
|
1403
|
-
):
|
|
1404
|
-
return this.request(
|
|
1405
|
-
"location",
|
|
1406
|
-
"post_location_group_deliverydestination",
|
|
1407
|
-
"post",
|
|
1408
|
-
`/location/group/${id}/deliverydestination`,
|
|
1409
|
-
body,
|
|
1410
|
-
options
|
|
1411
|
-
);
|
|
1137
|
+
): Promise<PostLocationGroupDeliverydestinationResponse> {
|
|
1138
|
+
return this.request("post", `/location/group/${id}/deliverydestination`, body, options);
|
|
1412
1139
|
}
|
|
1413
1140
|
|
|
1414
1141
|
/**
|
|
@@ -1422,10 +1149,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1422
1149
|
id: string,
|
|
1423
1150
|
delivery_destination: string,
|
|
1424
1151
|
options?: RequestOptions
|
|
1425
|
-
):
|
|
1152
|
+
): Promise<GetLocationGroupDeliverydestinationResponse> {
|
|
1426
1153
|
return this.request(
|
|
1427
|
-
"location",
|
|
1428
|
-
"get_location_group_deliverydestination",
|
|
1429
1154
|
"get",
|
|
1430
1155
|
`/location/group/${id}/deliverydestination/${delivery_destination}`,
|
|
1431
1156
|
null,
|
|
@@ -1446,10 +1171,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1446
1171
|
delivery_destination: string,
|
|
1447
1172
|
body: PatchLocationGroupDeliverydestinationBody,
|
|
1448
1173
|
options?: RequestOptions
|
|
1449
|
-
):
|
|
1174
|
+
): Promise<PatchLocationGroupDeliverydestinationResponse> {
|
|
1450
1175
|
return this.request(
|
|
1451
|
-
"location",
|
|
1452
|
-
"patch_location_group_deliverydestination",
|
|
1453
1176
|
"patch",
|
|
1454
1177
|
`/location/group/${id}/deliverydestination/${delivery_destination}`,
|
|
1455
1178
|
body,
|
|
@@ -1468,10 +1191,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1468
1191
|
id: string,
|
|
1469
1192
|
delivery_destination: string,
|
|
1470
1193
|
options?: RequestOptions
|
|
1471
|
-
):
|
|
1194
|
+
): Promise<DeleteLocationGroupDeliverydestinationResponse> {
|
|
1472
1195
|
return this.request(
|
|
1473
|
-
"location",
|
|
1474
|
-
"delete_location_group_deliverydestination",
|
|
1475
1196
|
"delete",
|
|
1476
1197
|
`/location/group/${id}/deliverydestination/${delivery_destination}`,
|
|
1477
1198
|
null,
|
|
@@ -1492,15 +1213,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1492
1213
|
options?: {
|
|
1493
1214
|
query?: GetLocationUserGroupQuery;
|
|
1494
1215
|
} & RequestOptions
|
|
1495
|
-
):
|
|
1496
|
-
return this.request(
|
|
1497
|
-
"location",
|
|
1498
|
-
"get_location_user_group",
|
|
1499
|
-
"get",
|
|
1500
|
-
`/location/group/${id}/user/${user_id}`,
|
|
1501
|
-
null,
|
|
1502
|
-
options
|
|
1503
|
-
);
|
|
1216
|
+
): Promise<GetLocationUserGroupResponse> {
|
|
1217
|
+
return this.request("get", `/location/group/${id}/user/${user_id}`, null, options);
|
|
1504
1218
|
}
|
|
1505
1219
|
|
|
1506
1220
|
/**
|
|
@@ -1508,15 +1222,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1508
1222
|
*
|
|
1509
1223
|
* @param options - additional request options
|
|
1510
1224
|
*/
|
|
1511
|
-
get_location_brands(options?: RequestOptions):
|
|
1512
|
-
return this.request(
|
|
1513
|
-
"location",
|
|
1514
|
-
"get_location_brands",
|
|
1515
|
-
"get",
|
|
1516
|
-
`/location/brands`,
|
|
1517
|
-
null,
|
|
1518
|
-
options
|
|
1519
|
-
);
|
|
1225
|
+
get_location_brands(options?: RequestOptions): Promise<GetLocationBrandsResponse> {
|
|
1226
|
+
return this.request("get", `/location/brands`, null, options);
|
|
1520
1227
|
}
|
|
1521
1228
|
|
|
1522
1229
|
/**
|
|
@@ -1528,15 +1235,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1528
1235
|
get_location_brand_destinations(
|
|
1529
1236
|
id: string,
|
|
1530
1237
|
options?: RequestOptions
|
|
1531
|
-
):
|
|
1532
|
-
return this.request(
|
|
1533
|
-
"location",
|
|
1534
|
-
"get_location_brand_destinations",
|
|
1535
|
-
"get",
|
|
1536
|
-
`/location/brand/${id}/deliverydestinations`,
|
|
1537
|
-
null,
|
|
1538
|
-
options
|
|
1539
|
-
);
|
|
1238
|
+
): Promise<GetLocationBrandDestinationsResponse> {
|
|
1239
|
+
return this.request("get", `/location/brand/${id}/deliverydestinations`, null, options);
|
|
1540
1240
|
}
|
|
1541
1241
|
|
|
1542
1242
|
/**
|
|
@@ -1550,15 +1250,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1550
1250
|
id: string,
|
|
1551
1251
|
body: PostLocationBrandDocumentBody,
|
|
1552
1252
|
options?: RequestOptions
|
|
1553
|
-
):
|
|
1554
|
-
return this.request(
|
|
1555
|
-
"location",
|
|
1556
|
-
"post_location_brand_document",
|
|
1557
|
-
"post",
|
|
1558
|
-
`/location/brand/${id}/document`,
|
|
1559
|
-
body,
|
|
1560
|
-
options
|
|
1561
|
-
);
|
|
1253
|
+
): Promise<PostLocationBrandDocumentResponse> {
|
|
1254
|
+
return this.request("post", `/location/brand/${id}/document`, body, options);
|
|
1562
1255
|
}
|
|
1563
1256
|
|
|
1564
1257
|
/**
|
|
@@ -1570,15 +1263,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1570
1263
|
patch_location_brand_document(
|
|
1571
1264
|
id: string,
|
|
1572
1265
|
options?: RequestOptions
|
|
1573
|
-
):
|
|
1574
|
-
return this.request(
|
|
1575
|
-
"location",
|
|
1576
|
-
"patch_location_brand_document",
|
|
1577
|
-
"patch",
|
|
1578
|
-
`/location/brand/${id}/document`,
|
|
1579
|
-
null,
|
|
1580
|
-
options
|
|
1581
|
-
);
|
|
1266
|
+
): Promise<PatchLocationBrandDocumentResponse> {
|
|
1267
|
+
return this.request("patch", `/location/brand/${id}/document`, null, options);
|
|
1582
1268
|
}
|
|
1583
1269
|
|
|
1584
1270
|
/**
|
|
@@ -1590,15 +1276,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1590
1276
|
delete_location_brand_document(
|
|
1591
1277
|
id: string,
|
|
1592
1278
|
options?: RequestOptions
|
|
1593
|
-
):
|
|
1594
|
-
return this.request(
|
|
1595
|
-
"location",
|
|
1596
|
-
"delete_location_brand_document",
|
|
1597
|
-
"delete",
|
|
1598
|
-
`/location/brand/${id}/document`,
|
|
1599
|
-
null,
|
|
1600
|
-
options
|
|
1601
|
-
);
|
|
1279
|
+
): Promise<DeleteLocationBrandDocumentResponse> {
|
|
1280
|
+
return this.request("delete", `/location/brand/${id}/document`, null, options);
|
|
1602
1281
|
}
|
|
1603
1282
|
|
|
1604
1283
|
/**
|
|
@@ -1610,15 +1289,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1610
1289
|
get_location_brand_documents(
|
|
1611
1290
|
id: string,
|
|
1612
1291
|
options?: RequestOptions
|
|
1613
|
-
):
|
|
1614
|
-
return this.request(
|
|
1615
|
-
"location",
|
|
1616
|
-
"get_location_brand_documents",
|
|
1617
|
-
"get",
|
|
1618
|
-
`/location/brand/${id}/documents`,
|
|
1619
|
-
null,
|
|
1620
|
-
options
|
|
1621
|
-
);
|
|
1292
|
+
): Promise<GetLocationBrandDocumentsResponse> {
|
|
1293
|
+
return this.request("get", `/location/brand/${id}/documents`, null, options);
|
|
1622
1294
|
}
|
|
1623
1295
|
|
|
1624
1296
|
/**
|
|
@@ -1632,15 +1304,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1632
1304
|
options?: {
|
|
1633
1305
|
query?: GetLocationBrandTimeslotsQuery;
|
|
1634
1306
|
} & RequestOptions
|
|
1635
|
-
):
|
|
1636
|
-
return this.request(
|
|
1637
|
-
"location",
|
|
1638
|
-
"get_location_brand_timeslots",
|
|
1639
|
-
"get",
|
|
1640
|
-
`/location/brand/${id}/timeslots`,
|
|
1641
|
-
null,
|
|
1642
|
-
options
|
|
1643
|
-
);
|
|
1307
|
+
): Promise<GetLocationBrandTimeslotsResponse> {
|
|
1308
|
+
return this.request("get", `/location/brand/${id}/timeslots`, null, options);
|
|
1644
1309
|
}
|
|
1645
1310
|
|
|
1646
1311
|
/**
|
|
@@ -1654,15 +1319,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1654
1319
|
options?: {
|
|
1655
1320
|
query?: PostLocationMarketplaceTimeslotsQuery;
|
|
1656
1321
|
} & RequestOptions
|
|
1657
|
-
):
|
|
1658
|
-
return this.request(
|
|
1659
|
-
"location",
|
|
1660
|
-
"post_location_marketplace_timeslots",
|
|
1661
|
-
"post",
|
|
1662
|
-
`/location/marketplace/timeslots`,
|
|
1663
|
-
body,
|
|
1664
|
-
options
|
|
1665
|
-
);
|
|
1322
|
+
): Promise<PostLocationMarketplaceTimeslotsResponse> {
|
|
1323
|
+
return this.request("post", `/location/marketplace/timeslots`, body, options);
|
|
1666
1324
|
}
|
|
1667
1325
|
|
|
1668
1326
|
/**
|
|
@@ -1676,15 +1334,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1676
1334
|
options?: {
|
|
1677
1335
|
query?: PostLocationMarketplaceTimeslotsDeliveryQuery;
|
|
1678
1336
|
} & RequestOptions
|
|
1679
|
-
):
|
|
1680
|
-
return this.request(
|
|
1681
|
-
"location",
|
|
1682
|
-
"post_location_marketplace_timeslots_delivery",
|
|
1683
|
-
"post",
|
|
1684
|
-
`/location/marketplace/timeslots/delivery`,
|
|
1685
|
-
body,
|
|
1686
|
-
options
|
|
1687
|
-
);
|
|
1337
|
+
): Promise<PostLocationMarketplaceTimeslotsDeliveryResponse> {
|
|
1338
|
+
return this.request("post", `/location/marketplace/timeslots/delivery`, body, options);
|
|
1688
1339
|
}
|
|
1689
1340
|
|
|
1690
1341
|
/**
|
|
@@ -1700,15 +1351,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1700
1351
|
options?: {
|
|
1701
1352
|
query?: GetLocationBrandMenuTimeslotsQuery;
|
|
1702
1353
|
} & RequestOptions
|
|
1703
|
-
):
|
|
1704
|
-
return this.request(
|
|
1705
|
-
"location",
|
|
1706
|
-
"get_location_brand_menu_timeslots",
|
|
1707
|
-
"get",
|
|
1708
|
-
`/location/brand/${id}/timeslots/menu/${menu}`,
|
|
1709
|
-
null,
|
|
1710
|
-
options
|
|
1711
|
-
);
|
|
1354
|
+
): Promise<GetLocationBrandMenuTimeslotsResponse> {
|
|
1355
|
+
return this.request("get", `/location/brand/${id}/timeslots/menu/${menu}`, null, options);
|
|
1712
1356
|
}
|
|
1713
1357
|
|
|
1714
1358
|
/**
|
|
@@ -1722,15 +1366,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1722
1366
|
options?: {
|
|
1723
1367
|
query?: GetLocationBrandDeliveryTimeslotsQuery;
|
|
1724
1368
|
} & RequestOptions
|
|
1725
|
-
):
|
|
1726
|
-
return this.request(
|
|
1727
|
-
"location",
|
|
1728
|
-
"get_location_brand_delivery_timeslots",
|
|
1729
|
-
"get",
|
|
1730
|
-
`/location/brand/${id}/timeslots/delivery`,
|
|
1731
|
-
null,
|
|
1732
|
-
options
|
|
1733
|
-
);
|
|
1369
|
+
): Promise<GetLocationBrandDeliveryTimeslotsResponse> {
|
|
1370
|
+
return this.request("get", `/location/brand/${id}/timeslots/delivery`, null, options);
|
|
1734
1371
|
}
|
|
1735
1372
|
|
|
1736
1373
|
/**
|
|
@@ -1746,10 +1383,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1746
1383
|
options?: {
|
|
1747
1384
|
query?: GetLocationBrandMenuDeliveryTimeslostsQuery;
|
|
1748
1385
|
} & RequestOptions
|
|
1749
|
-
):
|
|
1386
|
+
): Promise<GetLocationBrandMenuDeliveryTimeslostsResponse> {
|
|
1750
1387
|
return this.request(
|
|
1751
|
-
"location",
|
|
1752
|
-
"get_location_brand_menu_delivery_timeslosts",
|
|
1753
1388
|
"get",
|
|
1754
1389
|
`/location/brand/${id}/timeslots/delivery/menu/${menu}`,
|
|
1755
1390
|
null,
|
|
@@ -1766,15 +1401,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1766
1401
|
post_location_brand(
|
|
1767
1402
|
body: PostLocationBrandBody,
|
|
1768
1403
|
options?: RequestOptions
|
|
1769
|
-
):
|
|
1770
|
-
return this.request(
|
|
1771
|
-
"location",
|
|
1772
|
-
"post_location_brand",
|
|
1773
|
-
"post",
|
|
1774
|
-
`/location/brand`,
|
|
1775
|
-
body,
|
|
1776
|
-
options
|
|
1777
|
-
);
|
|
1404
|
+
): Promise<PostLocationBrandResponse> {
|
|
1405
|
+
return this.request("post", `/location/brand`, body, options);
|
|
1778
1406
|
}
|
|
1779
1407
|
|
|
1780
1408
|
/**
|
|
@@ -1788,15 +1416,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1788
1416
|
options?: {
|
|
1789
1417
|
query?: GetLocationBrandQuery;
|
|
1790
1418
|
} & RequestOptions
|
|
1791
|
-
):
|
|
1792
|
-
return this.request(
|
|
1793
|
-
"location",
|
|
1794
|
-
"get_location_brand",
|
|
1795
|
-
"get",
|
|
1796
|
-
`/location/brand/${id}`,
|
|
1797
|
-
null,
|
|
1798
|
-
options
|
|
1799
|
-
);
|
|
1419
|
+
): Promise<GetLocationBrandResponse> {
|
|
1420
|
+
return this.request("get", `/location/brand/${id}`, null, options);
|
|
1800
1421
|
}
|
|
1801
1422
|
|
|
1802
1423
|
/**
|
|
@@ -1810,15 +1431,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1810
1431
|
id: string,
|
|
1811
1432
|
body: PatchLocationBrandBody,
|
|
1812
1433
|
options?: RequestOptions
|
|
1813
|
-
):
|
|
1814
|
-
return this.request(
|
|
1815
|
-
"location",
|
|
1816
|
-
"patch_location_brand",
|
|
1817
|
-
"patch",
|
|
1818
|
-
`/location/brand/${id}`,
|
|
1819
|
-
body,
|
|
1820
|
-
options
|
|
1821
|
-
);
|
|
1434
|
+
): Promise<PatchLocationBrandResponse> {
|
|
1435
|
+
return this.request("patch", `/location/brand/${id}`, body, options);
|
|
1822
1436
|
}
|
|
1823
1437
|
|
|
1824
1438
|
/**
|
|
@@ -1832,15 +1446,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1832
1446
|
id: string,
|
|
1833
1447
|
body: DeleteLocationBrandBody,
|
|
1834
1448
|
options?: RequestOptions
|
|
1835
|
-
):
|
|
1836
|
-
return this.request(
|
|
1837
|
-
"location",
|
|
1838
|
-
"delete_location_brand",
|
|
1839
|
-
"delete",
|
|
1840
|
-
`/location/brand/${id}`,
|
|
1841
|
-
body,
|
|
1842
|
-
options
|
|
1843
|
-
);
|
|
1449
|
+
): Promise<DeleteLocationBrandResponse> {
|
|
1450
|
+
return this.request("delete", `/location/brand/${id}`, body, options);
|
|
1844
1451
|
}
|
|
1845
1452
|
|
|
1846
1453
|
/**
|
|
@@ -1854,15 +1461,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1854
1461
|
id: string,
|
|
1855
1462
|
body: PutLocationBrandBody,
|
|
1856
1463
|
options?: RequestOptions
|
|
1857
|
-
):
|
|
1858
|
-
return this.request(
|
|
1859
|
-
"location",
|
|
1860
|
-
"put_location_brand",
|
|
1861
|
-
"put",
|
|
1862
|
-
`/location/brand/${id}`,
|
|
1863
|
-
body,
|
|
1864
|
-
options
|
|
1865
|
-
);
|
|
1464
|
+
): Promise<PutLocationBrandResponse> {
|
|
1465
|
+
return this.request("put", `/location/brand/${id}`, body, options);
|
|
1866
1466
|
}
|
|
1867
1467
|
|
|
1868
1468
|
/**
|
|
@@ -1870,15 +1470,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1870
1470
|
*
|
|
1871
1471
|
* @param options - additional request options
|
|
1872
1472
|
*/
|
|
1873
|
-
get_location_sectors(options?: RequestOptions):
|
|
1874
|
-
return this.request(
|
|
1875
|
-
"location",
|
|
1876
|
-
"get_location_sectors",
|
|
1877
|
-
"get",
|
|
1878
|
-
`/location/sector`,
|
|
1879
|
-
null,
|
|
1880
|
-
options
|
|
1881
|
-
);
|
|
1473
|
+
get_location_sectors(options?: RequestOptions): Promise<GetLocationSectorsResponse> {
|
|
1474
|
+
return this.request("get", `/location/sector`, null, options);
|
|
1882
1475
|
}
|
|
1883
1476
|
|
|
1884
1477
|
/**
|
|
@@ -1890,15 +1483,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1890
1483
|
post_location_sector(
|
|
1891
1484
|
body: PostLocationSectorBody,
|
|
1892
1485
|
options?: RequestOptions
|
|
1893
|
-
):
|
|
1894
|
-
return this.request(
|
|
1895
|
-
"location",
|
|
1896
|
-
"post_location_sector",
|
|
1897
|
-
"post",
|
|
1898
|
-
`/location/sector`,
|
|
1899
|
-
body,
|
|
1900
|
-
options
|
|
1901
|
-
);
|
|
1486
|
+
): Promise<PostLocationSectorResponse> {
|
|
1487
|
+
return this.request("post", `/location/sector`, body, options);
|
|
1902
1488
|
}
|
|
1903
1489
|
|
|
1904
1490
|
/**
|
|
@@ -1912,15 +1498,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1912
1498
|
options?: {
|
|
1913
1499
|
query?: GetLocationSectorQuery;
|
|
1914
1500
|
} & RequestOptions
|
|
1915
|
-
):
|
|
1916
|
-
return this.request(
|
|
1917
|
-
"location",
|
|
1918
|
-
"get_location_sector",
|
|
1919
|
-
"get",
|
|
1920
|
-
`/location/sector/${id}`,
|
|
1921
|
-
null,
|
|
1922
|
-
options
|
|
1923
|
-
);
|
|
1501
|
+
): Promise<GetLocationSectorResponse> {
|
|
1502
|
+
return this.request("get", `/location/sector/${id}`, null, options);
|
|
1924
1503
|
}
|
|
1925
1504
|
|
|
1926
1505
|
/**
|
|
@@ -1936,15 +1515,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1936
1515
|
options?: {
|
|
1937
1516
|
query?: PatchLocationSectorQuery;
|
|
1938
1517
|
} & RequestOptions
|
|
1939
|
-
):
|
|
1940
|
-
return this.request(
|
|
1941
|
-
"location",
|
|
1942
|
-
"patch_location_sector",
|
|
1943
|
-
"patch",
|
|
1944
|
-
`/location/sector/${id}`,
|
|
1945
|
-
body,
|
|
1946
|
-
options
|
|
1947
|
-
);
|
|
1518
|
+
): Promise<PatchLocationSectorResponse> {
|
|
1519
|
+
return this.request("patch", `/location/sector/${id}`, body, options);
|
|
1948
1520
|
}
|
|
1949
1521
|
|
|
1950
1522
|
/**
|
|
@@ -1956,15 +1528,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1956
1528
|
post_location_company(
|
|
1957
1529
|
body: PostLocationCompanyBody,
|
|
1958
1530
|
options?: RequestOptions
|
|
1959
|
-
):
|
|
1960
|
-
return this.request(
|
|
1961
|
-
"location",
|
|
1962
|
-
"post_location_company",
|
|
1963
|
-
"post",
|
|
1964
|
-
`/location/company`,
|
|
1965
|
-
body,
|
|
1966
|
-
options
|
|
1967
|
-
);
|
|
1531
|
+
): Promise<PostLocationCompanyResponse> {
|
|
1532
|
+
return this.request("post", `/location/company`, body, options);
|
|
1968
1533
|
}
|
|
1969
1534
|
|
|
1970
1535
|
/**
|
|
@@ -1978,15 +1543,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1978
1543
|
options?: {
|
|
1979
1544
|
query?: GetLocationCompanyQuery;
|
|
1980
1545
|
} & RequestOptions
|
|
1981
|
-
):
|
|
1982
|
-
return this.request(
|
|
1983
|
-
"location",
|
|
1984
|
-
"get_location_company",
|
|
1985
|
-
"get",
|
|
1986
|
-
`/location/company/${id}`,
|
|
1987
|
-
null,
|
|
1988
|
-
options
|
|
1989
|
-
);
|
|
1546
|
+
): Promise<GetLocationCompanyResponse> {
|
|
1547
|
+
return this.request("get", `/location/company/${id}`, null, options);
|
|
1990
1548
|
}
|
|
1991
1549
|
|
|
1992
1550
|
/**
|
|
@@ -2000,15 +1558,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2000
1558
|
id: string,
|
|
2001
1559
|
body: PatchLocationCompanyBody,
|
|
2002
1560
|
options?: RequestOptions
|
|
2003
|
-
):
|
|
2004
|
-
return this.request(
|
|
2005
|
-
"location",
|
|
2006
|
-
"patch_location_company",
|
|
2007
|
-
"patch",
|
|
2008
|
-
`/location/company/${id}`,
|
|
2009
|
-
body,
|
|
2010
|
-
options
|
|
2011
|
-
);
|
|
1561
|
+
): Promise<PatchLocationCompanyResponse> {
|
|
1562
|
+
return this.request("patch", `/location/company/${id}`, body, options);
|
|
2012
1563
|
}
|
|
2013
1564
|
|
|
2014
1565
|
/**
|
|
@@ -2020,15 +1571,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2020
1571
|
post_shoppingcart_cart(
|
|
2021
1572
|
body: PostShoppingcartCartBody,
|
|
2022
1573
|
options?: RequestOptions
|
|
2023
|
-
):
|
|
2024
|
-
return this.request(
|
|
2025
|
-
"shoppingcart",
|
|
2026
|
-
"post_shoppingcart_cart",
|
|
2027
|
-
"post",
|
|
2028
|
-
`/shoppingcart/`,
|
|
2029
|
-
body,
|
|
2030
|
-
options
|
|
2031
|
-
);
|
|
1574
|
+
): Promise<PostShoppingcartCartResponse> {
|
|
1575
|
+
return this.request("post", `/shoppingcart/`, body, options);
|
|
2032
1576
|
}
|
|
2033
1577
|
|
|
2034
1578
|
/**
|
|
@@ -2042,15 +1586,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2042
1586
|
id: string,
|
|
2043
1587
|
body: PutShoppingcartCartItemsBody,
|
|
2044
1588
|
options?: RequestOptions
|
|
2045
|
-
):
|
|
2046
|
-
return this.request(
|
|
2047
|
-
"shoppingcart",
|
|
2048
|
-
"put_shoppingcart_cart_items",
|
|
2049
|
-
"put",
|
|
2050
|
-
`/shoppingcart/${id}`,
|
|
2051
|
-
body,
|
|
2052
|
-
options
|
|
2053
|
-
);
|
|
1589
|
+
): Promise<PutShoppingcartCartItemsResponse> {
|
|
1590
|
+
return this.request("put", `/shoppingcart/${id}`, body, options);
|
|
2054
1591
|
}
|
|
2055
1592
|
|
|
2056
1593
|
/**
|
|
@@ -2064,15 +1601,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2064
1601
|
id: string,
|
|
2065
1602
|
body: DeleteShoppingcartCartItemsBody,
|
|
2066
1603
|
options?: RequestOptions
|
|
2067
|
-
):
|
|
2068
|
-
return this.request(
|
|
2069
|
-
"shoppingcart",
|
|
2070
|
-
"delete_shoppingcart_cart_items",
|
|
2071
|
-
"delete",
|
|
2072
|
-
`/shoppingcart/${id}`,
|
|
2073
|
-
body,
|
|
2074
|
-
options
|
|
2075
|
-
);
|
|
1604
|
+
): Promise<DeleteShoppingcartCartItemsResponse> {
|
|
1605
|
+
return this.request("delete", `/shoppingcart/${id}`, body, options);
|
|
2076
1606
|
}
|
|
2077
1607
|
|
|
2078
1608
|
/**
|
|
@@ -2084,15 +1614,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2084
1614
|
get_shoppingcart_cart(
|
|
2085
1615
|
id: string,
|
|
2086
1616
|
options?: RequestOptions
|
|
2087
|
-
):
|
|
2088
|
-
return this.request(
|
|
2089
|
-
"shoppingcart",
|
|
2090
|
-
"get_shoppingcart_cart",
|
|
2091
|
-
"get",
|
|
2092
|
-
`/shoppingcart/${id}`,
|
|
2093
|
-
null,
|
|
2094
|
-
options
|
|
2095
|
-
);
|
|
1617
|
+
): Promise<GetShoppingcartCartResponse> {
|
|
1618
|
+
return this.request("get", `/shoppingcart/${id}`, null, options);
|
|
2096
1619
|
}
|
|
2097
1620
|
|
|
2098
1621
|
/**
|
|
@@ -2104,15 +1627,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2104
1627
|
patch_shoppingcart_cart(
|
|
2105
1628
|
id: string,
|
|
2106
1629
|
options?: RequestOptions
|
|
2107
|
-
):
|
|
2108
|
-
return this.request(
|
|
2109
|
-
"shoppingcart",
|
|
2110
|
-
"patch_shoppingcart_cart",
|
|
2111
|
-
"patch",
|
|
2112
|
-
`/shoppingcart/${id}`,
|
|
2113
|
-
null,
|
|
2114
|
-
options
|
|
2115
|
-
);
|
|
1630
|
+
): Promise<PatchShoppingcartCartResponse> {
|
|
1631
|
+
return this.request("patch", `/shoppingcart/${id}`, null, options);
|
|
2116
1632
|
}
|
|
2117
1633
|
|
|
2118
1634
|
/**
|
|
@@ -2126,15 +1642,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2126
1642
|
id: string,
|
|
2127
1643
|
body: PutShoppingcartCartPromoBody,
|
|
2128
1644
|
options?: RequestOptions
|
|
2129
|
-
):
|
|
2130
|
-
return this.request(
|
|
2131
|
-
"shoppingcart",
|
|
2132
|
-
"put_shoppingcart_cart_promo",
|
|
2133
|
-
"put",
|
|
2134
|
-
`/shoppingcart/${id}/promo`,
|
|
2135
|
-
body,
|
|
2136
|
-
options
|
|
2137
|
-
);
|
|
1645
|
+
): Promise<PutShoppingcartCartPromoResponse> {
|
|
1646
|
+
return this.request("put", `/shoppingcart/${id}/promo`, body, options);
|
|
2138
1647
|
}
|
|
2139
1648
|
|
|
2140
1649
|
/**
|
|
@@ -2146,15 +1655,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2146
1655
|
delete_shoppingcart_cart_promo(
|
|
2147
1656
|
id: string,
|
|
2148
1657
|
options?: RequestOptions
|
|
2149
|
-
):
|
|
2150
|
-
return this.request(
|
|
2151
|
-
"shoppingcart",
|
|
2152
|
-
"delete_shoppingcart_cart_promo",
|
|
2153
|
-
"delete",
|
|
2154
|
-
`/shoppingcart/${id}/promo`,
|
|
2155
|
-
null,
|
|
2156
|
-
options
|
|
2157
|
-
);
|
|
1658
|
+
): Promise<DeleteShoppingcartCartPromoResponse> {
|
|
1659
|
+
return this.request("delete", `/shoppingcart/${id}/promo`, null, options);
|
|
2158
1660
|
}
|
|
2159
1661
|
|
|
2160
1662
|
/**
|
|
@@ -2168,15 +1670,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2168
1670
|
id: string,
|
|
2169
1671
|
body: PutShoppingcartCartPaymentBody,
|
|
2170
1672
|
options?: RequestOptions
|
|
2171
|
-
):
|
|
2172
|
-
return this.request(
|
|
2173
|
-
"shoppingcart",
|
|
2174
|
-
"put_shoppingcart_cart_payment",
|
|
2175
|
-
"put",
|
|
2176
|
-
`/shoppingcart/${id}/paymentmethod/`,
|
|
2177
|
-
body,
|
|
2178
|
-
options
|
|
2179
|
-
);
|
|
1673
|
+
): Promise<PutShoppingcartCartPaymentResponse> {
|
|
1674
|
+
return this.request("put", `/shoppingcart/${id}/paymentmethod/`, body, options);
|
|
2180
1675
|
}
|
|
2181
1676
|
|
|
2182
1677
|
/**
|
|
@@ -2190,15 +1685,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2190
1685
|
id: string,
|
|
2191
1686
|
body: PutShoppingcartCartOrderBody,
|
|
2192
1687
|
options?: RequestOptions
|
|
2193
|
-
):
|
|
2194
|
-
return this.request(
|
|
2195
|
-
"shoppingcart",
|
|
2196
|
-
"put_shoppingcart_cart_order",
|
|
2197
|
-
"put",
|
|
2198
|
-
`/shoppingcart/${id}/order/`,
|
|
2199
|
-
body,
|
|
2200
|
-
options
|
|
2201
|
-
);
|
|
1688
|
+
): Promise<PutShoppingcartCartOrderResponse> {
|
|
1689
|
+
return this.request("put", `/shoppingcart/${id}/order/`, body, options);
|
|
2202
1690
|
}
|
|
2203
1691
|
|
|
2204
1692
|
/**
|
|
@@ -2214,15 +1702,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2214
1702
|
user_id: string,
|
|
2215
1703
|
body: PutShoppingcartCartLoyaltyBody,
|
|
2216
1704
|
options?: RequestOptions
|
|
2217
|
-
):
|
|
2218
|
-
return this.request(
|
|
2219
|
-
"shoppingcart",
|
|
2220
|
-
"put_shoppingcart_cart_loyalty",
|
|
2221
|
-
"put",
|
|
2222
|
-
`/shoppingcart/${id}/loyalty/${user_id}`,
|
|
2223
|
-
body,
|
|
2224
|
-
options
|
|
2225
|
-
);
|
|
1705
|
+
): Promise<PutShoppingcartCartLoyaltyResponse> {
|
|
1706
|
+
return this.request("put", `/shoppingcart/${id}/loyalty/${user_id}`, body, options);
|
|
2226
1707
|
}
|
|
2227
1708
|
|
|
2228
1709
|
/**
|
|
@@ -2236,15 +1717,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2236
1717
|
id: string,
|
|
2237
1718
|
user_id: string,
|
|
2238
1719
|
options?: RequestOptions
|
|
2239
|
-
):
|
|
2240
|
-
return this.request(
|
|
2241
|
-
"shoppingcart",
|
|
2242
|
-
"delete_shoppingcart_cart_loyalty",
|
|
2243
|
-
"delete",
|
|
2244
|
-
`/shoppingcart/${id}/loyalty/${user_id}`,
|
|
2245
|
-
null,
|
|
2246
|
-
options
|
|
2247
|
-
);
|
|
1720
|
+
): Promise<DeleteShoppingcartCartLoyaltyResponse> {
|
|
1721
|
+
return this.request("delete", `/shoppingcart/${id}/loyalty/${user_id}`, null, options);
|
|
2248
1722
|
}
|
|
2249
1723
|
|
|
2250
1724
|
/**
|
|
@@ -2258,15 +1732,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2258
1732
|
id: string,
|
|
2259
1733
|
body: PostShoppingcartCloneCartBody,
|
|
2260
1734
|
options?: RequestOptions
|
|
2261
|
-
):
|
|
2262
|
-
return this.request(
|
|
2263
|
-
"shoppingcart",
|
|
2264
|
-
"post_shoppingcart_clone_cart",
|
|
2265
|
-
"post",
|
|
2266
|
-
`/shoppingcart/${id}/clone`,
|
|
2267
|
-
body,
|
|
2268
|
-
options
|
|
2269
|
-
);
|
|
1735
|
+
): Promise<PostShoppingcartCloneCartResponse> {
|
|
1736
|
+
return this.request("post", `/shoppingcart/${id}/clone`, body, options);
|
|
2270
1737
|
}
|
|
2271
1738
|
|
|
2272
1739
|
/**
|
|
@@ -2278,15 +1745,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2278
1745
|
post_shoppingcart_bulk(
|
|
2279
1746
|
body: PostShoppingcartBulkBody,
|
|
2280
1747
|
options?: RequestOptions
|
|
2281
|
-
):
|
|
2282
|
-
return this.request(
|
|
2283
|
-
"shoppingcart",
|
|
2284
|
-
"post_shoppingcart_bulk",
|
|
2285
|
-
"post",
|
|
2286
|
-
`/shoppingcart/bulk`,
|
|
2287
|
-
body,
|
|
2288
|
-
options
|
|
2289
|
-
);
|
|
1748
|
+
): Promise<PostShoppingcartBulkResponse> {
|
|
1749
|
+
return this.request("post", `/shoppingcart/bulk`, body, options);
|
|
2290
1750
|
}
|
|
2291
1751
|
|
|
2292
1752
|
/**
|
|
@@ -2298,15 +1758,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2298
1758
|
post_partner_standardcognition_shoppingcart(
|
|
2299
1759
|
body: PostPartnerStandardcognitionShoppingcartBody,
|
|
2300
1760
|
options?: RequestOptions
|
|
2301
|
-
):
|
|
2302
|
-
return this.request(
|
|
2303
|
-
"partner",
|
|
2304
|
-
"post_partner_standardcognition_shoppingcart",
|
|
2305
|
-
"post",
|
|
2306
|
-
`/partner/standardcognition/shoppingcart`,
|
|
2307
|
-
body,
|
|
2308
|
-
options
|
|
2309
|
-
);
|
|
1761
|
+
): Promise<PostPartnerStandardcognitionShoppingcartResponse> {
|
|
1762
|
+
return this.request("post", `/partner/standardcognition/shoppingcart`, body, options);
|
|
2310
1763
|
}
|
|
2311
1764
|
|
|
2312
1765
|
/**
|
|
@@ -2316,53 +1769,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2316
1769
|
*/
|
|
2317
1770
|
get_partner_standardcognition_locations(
|
|
2318
1771
|
options?: RequestOptions
|
|
2319
|
-
):
|
|
2320
|
-
return this.request(
|
|
2321
|
-
"partner",
|
|
2322
|
-
"get_partner_standardcognition_locations",
|
|
2323
|
-
"get",
|
|
2324
|
-
`/partner/standardcognition/locations`,
|
|
2325
|
-
null,
|
|
2326
|
-
options
|
|
2327
|
-
);
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
/**
|
|
2331
|
-
* GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
|
|
2332
|
-
*
|
|
2333
|
-
* @param options - additional request options
|
|
2334
|
-
*/
|
|
2335
|
-
get_partner_standardcognition_stores(
|
|
2336
|
-
options?: RequestOptions
|
|
2337
|
-
): ResponsePromise<GetPartnerStandardcognitionStoresResponse> {
|
|
2338
|
-
return this.request(
|
|
2339
|
-
"partner",
|
|
2340
|
-
"get_partner_standardcognition_stores",
|
|
2341
|
-
"get",
|
|
2342
|
-
`/partner/standardcognition/stores`,
|
|
2343
|
-
null,
|
|
2344
|
-
options
|
|
2345
|
-
);
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
/**
|
|
2349
|
-
* POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
|
|
2350
|
-
*
|
|
2351
|
-
* @param body
|
|
2352
|
-
* @param options - additional request options
|
|
2353
|
-
*/
|
|
2354
|
-
post_partner_standardcognition_menu(
|
|
2355
|
-
body: PostPartnerStandardcognitionMenuBody,
|
|
2356
|
-
options?: RequestOptions
|
|
2357
|
-
): ResponsePromise<PostPartnerStandardcognitionMenuResponse> {
|
|
2358
|
-
return this.request(
|
|
2359
|
-
"partner",
|
|
2360
|
-
"post_partner_standardcognition_menu",
|
|
2361
|
-
"post",
|
|
2362
|
-
`/partner/standardcognition/menu`,
|
|
2363
|
-
body,
|
|
2364
|
-
options
|
|
2365
|
-
);
|
|
1772
|
+
): Promise<GetPartnerStandardcognitionLocationsResponse> {
|
|
1773
|
+
return this.request("get", `/partner/standardcognition/locations`, null, options);
|
|
2366
1774
|
}
|
|
2367
1775
|
|
|
2368
1776
|
/**
|
|
@@ -2370,17 +1778,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2370
1778
|
*
|
|
2371
1779
|
* @param options - additional request options
|
|
2372
1780
|
*/
|
|
2373
|
-
get_partner_coolr_locations(
|
|
2374
|
-
options
|
|
2375
|
-
): ResponsePromise<GetPartnerCoolrLocationsResponse> {
|
|
2376
|
-
return this.request(
|
|
2377
|
-
"partner",
|
|
2378
|
-
"get_partner_coolr_locations",
|
|
2379
|
-
"get",
|
|
2380
|
-
`/partner/coolr/locations`,
|
|
2381
|
-
null,
|
|
2382
|
-
options
|
|
2383
|
-
);
|
|
1781
|
+
get_partner_coolr_locations(options?: RequestOptions): Promise<GetPartnerCoolrLocationsResponse> {
|
|
1782
|
+
return this.request("get", `/partner/coolr/locations`, null, options);
|
|
2384
1783
|
}
|
|
2385
1784
|
|
|
2386
1785
|
/**
|
|
@@ -2392,15 +1791,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2392
1791
|
get_partner_coolr_images(
|
|
2393
1792
|
id: string,
|
|
2394
1793
|
options?: RequestOptions
|
|
2395
|
-
):
|
|
2396
|
-
return this.request(
|
|
2397
|
-
"partner",
|
|
2398
|
-
"get_partner_coolr_images",
|
|
2399
|
-
"get",
|
|
2400
|
-
`/partner/coolr/${id}/images`,
|
|
2401
|
-
null,
|
|
2402
|
-
options
|
|
2403
|
-
);
|
|
1794
|
+
): Promise<GetPartnerCoolrImagesResponse> {
|
|
1795
|
+
return this.request("get", `/partner/coolr/${id}/images`, null, options);
|
|
2404
1796
|
}
|
|
2405
1797
|
|
|
2406
1798
|
/**
|
|
@@ -2408,15 +1800,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2408
1800
|
*
|
|
2409
1801
|
* @param options - additional request options
|
|
2410
1802
|
*/
|
|
2411
|
-
get_partner_swagger(options?: RequestOptions):
|
|
2412
|
-
return this.request(
|
|
2413
|
-
"partner",
|
|
2414
|
-
"get_partner_swagger",
|
|
2415
|
-
"get",
|
|
2416
|
-
`/partner/swagger.json`,
|
|
2417
|
-
null,
|
|
2418
|
-
options
|
|
2419
|
-
);
|
|
1803
|
+
get_partner_swagger(options?: RequestOptions): Promise<GetPartnerSwaggerResponse> {
|
|
1804
|
+
return this.request("get", `/partner/swagger.json`, null, options);
|
|
2420
1805
|
}
|
|
2421
1806
|
|
|
2422
1807
|
/**
|
|
@@ -2425,8 +1810,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2425
1810
|
* @param body - Task Information
|
|
2426
1811
|
* @param options - additional request options
|
|
2427
1812
|
*/
|
|
2428
|
-
post_task(body: PostTaskBody, options?: RequestOptions):
|
|
2429
|
-
return this.request("
|
|
1813
|
+
post_task(body: PostTaskBody, options?: RequestOptions): Promise<PostTaskResponse> {
|
|
1814
|
+
return this.request("post", `/task/`, body, options);
|
|
2430
1815
|
}
|
|
2431
1816
|
|
|
2432
1817
|
/**
|
|
@@ -2435,8 +1820,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2435
1820
|
* @param id - Task ID
|
|
2436
1821
|
* @param options - additional request options
|
|
2437
1822
|
*/
|
|
2438
|
-
get_task(id: string, options?: RequestOptions):
|
|
2439
|
-
return this.request("
|
|
1823
|
+
get_task(id: string, options?: RequestOptions): Promise<GetTaskResponse> {
|
|
1824
|
+
return this.request("get", `/task/${id}`, null, options);
|
|
2440
1825
|
}
|
|
2441
1826
|
|
|
2442
1827
|
/**
|
|
@@ -2450,8 +1835,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2450
1835
|
id: string,
|
|
2451
1836
|
body: PatchTaskBody,
|
|
2452
1837
|
options?: RequestOptions
|
|
2453
|
-
):
|
|
2454
|
-
return this.request("
|
|
1838
|
+
): Promise<PatchTaskResponse> {
|
|
1839
|
+
return this.request("patch", `/task/${id}`, body, options);
|
|
2455
1840
|
}
|
|
2456
1841
|
|
|
2457
1842
|
/**
|
|
@@ -2460,8 +1845,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2460
1845
|
* @param id - Task ID
|
|
2461
1846
|
* @param options - additional request options
|
|
2462
1847
|
*/
|
|
2463
|
-
delete_task(id: string, options?: RequestOptions):
|
|
2464
|
-
return this.request("
|
|
1848
|
+
delete_task(id: string, options?: RequestOptions): Promise<DeleteTaskResponse> {
|
|
1849
|
+
return this.request("delete", `/task/${id}`, null, options);
|
|
2465
1850
|
}
|
|
2466
1851
|
|
|
2467
1852
|
/**
|
|
@@ -2470,8 +1855,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2470
1855
|
* @param id - Order ID
|
|
2471
1856
|
* @param options - additional request options
|
|
2472
1857
|
*/
|
|
2473
|
-
get_task_order(id: string, options?: RequestOptions):
|
|
2474
|
-
return this.request("
|
|
1858
|
+
get_task_order(id: string, options?: RequestOptions): Promise<GetTaskOrderResponse> {
|
|
1859
|
+
return this.request("get", `/task/order/${id}`, null, options);
|
|
2475
1860
|
}
|
|
2476
1861
|
|
|
2477
1862
|
/**
|
|
@@ -2480,18 +1865,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2480
1865
|
* @param id - Order ID
|
|
2481
1866
|
* @param options - additional request options
|
|
2482
1867
|
*/
|
|
2483
|
-
get_task_order_kds(
|
|
2484
|
-
id
|
|
2485
|
-
options?: RequestOptions
|
|
2486
|
-
): ResponsePromise<GetTaskOrderKdsResponse> {
|
|
2487
|
-
return this.request(
|
|
2488
|
-
"task",
|
|
2489
|
-
"get_task_order_kds",
|
|
2490
|
-
"get",
|
|
2491
|
-
`/task/order/${id}/kds`,
|
|
2492
|
-
null,
|
|
2493
|
-
options
|
|
2494
|
-
);
|
|
1868
|
+
get_task_order_kds(id: string, options?: RequestOptions): Promise<GetTaskOrderKdsResponse> {
|
|
1869
|
+
return this.request("get", `/task/order/${id}/kds`, null, options);
|
|
2495
1870
|
}
|
|
2496
1871
|
|
|
2497
1872
|
/**
|
|
@@ -2505,15 +1880,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2505
1880
|
id: string,
|
|
2506
1881
|
body: PatchTaskOrderKdsBody,
|
|
2507
1882
|
options?: RequestOptions
|
|
2508
|
-
):
|
|
2509
|
-
return this.request(
|
|
2510
|
-
"task",
|
|
2511
|
-
"patch_task_order_kds",
|
|
2512
|
-
"patch",
|
|
2513
|
-
`/task/order/${id}/kds`,
|
|
2514
|
-
body,
|
|
2515
|
-
options
|
|
2516
|
-
);
|
|
1883
|
+
): Promise<PatchTaskOrderKdsResponse> {
|
|
1884
|
+
return this.request("patch", `/task/order/${id}/kds`, body, options);
|
|
2517
1885
|
}
|
|
2518
1886
|
|
|
2519
1887
|
/**
|
|
@@ -2527,8 +1895,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2527
1895
|
options?: {
|
|
2528
1896
|
query?: GetTaskAssigneeQuery;
|
|
2529
1897
|
} & RequestOptions
|
|
2530
|
-
):
|
|
2531
|
-
return this.request("
|
|
1898
|
+
): Promise<GetTaskAssigneeResponse> {
|
|
1899
|
+
return this.request("get", `/task/assignee/${id}`, null, options);
|
|
2532
1900
|
}
|
|
2533
1901
|
|
|
2534
1902
|
/**
|
|
@@ -2542,15 +1910,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2542
1910
|
options?: {
|
|
2543
1911
|
query?: GetTaskLocationBrandQuery;
|
|
2544
1912
|
} & RequestOptions
|
|
2545
|
-
):
|
|
2546
|
-
return this.request(
|
|
2547
|
-
"task",
|
|
2548
|
-
"get_task_location_brand",
|
|
2549
|
-
"get",
|
|
2550
|
-
`/task/location/brand/${id}`,
|
|
2551
|
-
null,
|
|
2552
|
-
options
|
|
2553
|
-
);
|
|
1913
|
+
): Promise<GetTaskLocationBrandResponse> {
|
|
1914
|
+
return this.request("get", `/task/location/brand/${id}`, null, options);
|
|
2554
1915
|
}
|
|
2555
1916
|
|
|
2556
1917
|
/**
|
|
@@ -2564,15 +1925,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2564
1925
|
options?: {
|
|
2565
1926
|
query?: GetTaskLocationGroupQuery;
|
|
2566
1927
|
} & RequestOptions
|
|
2567
|
-
):
|
|
2568
|
-
return this.request(
|
|
2569
|
-
"task",
|
|
2570
|
-
"get_task_location_group",
|
|
2571
|
-
"get",
|
|
2572
|
-
`/task/location/group/${id}`,
|
|
2573
|
-
null,
|
|
2574
|
-
options
|
|
2575
|
-
);
|
|
1928
|
+
): Promise<GetTaskLocationGroupResponse> {
|
|
1929
|
+
return this.request("get", `/task/location/group/${id}`, null, options);
|
|
2576
1930
|
}
|
|
2577
1931
|
|
|
2578
1932
|
/**
|
|
@@ -2584,8 +1938,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2584
1938
|
options: {
|
|
2585
1939
|
query: GetKdsDevicesQuery;
|
|
2586
1940
|
} & RequestOptions
|
|
2587
|
-
):
|
|
2588
|
-
return this.request("
|
|
1941
|
+
): Promise<GetKdsDevicesResponse> {
|
|
1942
|
+
return this.request("get", `/kds/devices`, null, options);
|
|
2589
1943
|
}
|
|
2590
1944
|
|
|
2591
1945
|
/**
|
|
@@ -2597,8 +1951,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2597
1951
|
post_kds_device_auth(
|
|
2598
1952
|
body: PostKdsDeviceAuthBody,
|
|
2599
1953
|
options?: RequestOptions
|
|
2600
|
-
):
|
|
2601
|
-
return this.request("
|
|
1954
|
+
): Promise<PostKdsDeviceAuthResponse> {
|
|
1955
|
+
return this.request("post", `/kds/device/auth`, body, options);
|
|
2602
1956
|
}
|
|
2603
1957
|
|
|
2604
1958
|
/**
|
|
@@ -2610,15 +1964,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2610
1964
|
delete_kds_device_auth(
|
|
2611
1965
|
device_id: string,
|
|
2612
1966
|
options?: RequestOptions
|
|
2613
|
-
):
|
|
2614
|
-
return this.request(
|
|
2615
|
-
"kds",
|
|
2616
|
-
"delete_kds_device_auth",
|
|
2617
|
-
"delete",
|
|
2618
|
-
`/kds/device/auth/${device_id}`,
|
|
2619
|
-
null,
|
|
2620
|
-
options
|
|
2621
|
-
);
|
|
1967
|
+
): Promise<DeleteKdsDeviceAuthResponse> {
|
|
1968
|
+
return this.request("delete", `/kds/device/auth/${device_id}`, null, options);
|
|
2622
1969
|
}
|
|
2623
1970
|
|
|
2624
1971
|
/**
|
|
@@ -2626,8 +1973,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2626
1973
|
*
|
|
2627
1974
|
* @param options - additional request options
|
|
2628
1975
|
*/
|
|
2629
|
-
get_kds_swagger(options?: RequestOptions):
|
|
2630
|
-
return this.request("
|
|
1976
|
+
get_kds_swagger(options?: RequestOptions): Promise<GetKdsSwaggerResponse> {
|
|
1977
|
+
return this.request("get", `/kds/swagger.json`, null, options);
|
|
2631
1978
|
}
|
|
2632
1979
|
|
|
2633
1980
|
/**
|
|
@@ -2641,8 +1988,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2641
1988
|
id: string,
|
|
2642
1989
|
body: PostMealplanBody,
|
|
2643
1990
|
options?: RequestOptions
|
|
2644
|
-
):
|
|
2645
|
-
return this.request("
|
|
1991
|
+
): Promise<PostMealplanResponse> {
|
|
1992
|
+
return this.request("post", `/mealplan/${id}`, body, options);
|
|
2646
1993
|
}
|
|
2647
1994
|
|
|
2648
1995
|
/**
|
|
@@ -2656,8 +2003,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2656
2003
|
id: string,
|
|
2657
2004
|
body: PutMealplanBody,
|
|
2658
2005
|
options?: RequestOptions
|
|
2659
|
-
):
|
|
2660
|
-
return this.request("
|
|
2006
|
+
): Promise<PutMealplanResponse> {
|
|
2007
|
+
return this.request("put", `/mealplan/${id}`, body, options);
|
|
2661
2008
|
}
|
|
2662
2009
|
|
|
2663
2010
|
/**
|
|
@@ -2666,8 +2013,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2666
2013
|
* @param id - Meal plan ID
|
|
2667
2014
|
* @param options - additional request options
|
|
2668
2015
|
*/
|
|
2669
|
-
get_mealplan(id: string, options?: RequestOptions):
|
|
2670
|
-
return this.request("
|
|
2016
|
+
get_mealplan(id: string, options?: RequestOptions): Promise<GetMealplanResponse> {
|
|
2017
|
+
return this.request("get", `/mealplan/${id}`, null, options);
|
|
2671
2018
|
}
|
|
2672
2019
|
|
|
2673
2020
|
/**
|
|
@@ -2681,8 +2028,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2681
2028
|
id: string,
|
|
2682
2029
|
body: DeleteMealplanBody,
|
|
2683
2030
|
options?: RequestOptions
|
|
2684
|
-
):
|
|
2685
|
-
return this.request("
|
|
2031
|
+
): Promise<DeleteMealplanResponse> {
|
|
2032
|
+
return this.request("delete", `/mealplan/${id}`, body, options);
|
|
2686
2033
|
}
|
|
2687
2034
|
|
|
2688
2035
|
/**
|
|
@@ -2694,15 +2041,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2694
2041
|
post_mealplan_callback(
|
|
2695
2042
|
id: string,
|
|
2696
2043
|
options?: RequestOptions
|
|
2697
|
-
):
|
|
2698
|
-
return this.request(
|
|
2699
|
-
"mealplan",
|
|
2700
|
-
"post_mealplan_callback",
|
|
2701
|
-
"post",
|
|
2702
|
-
`/mealplan/${id}/callback`,
|
|
2703
|
-
null,
|
|
2704
|
-
options
|
|
2705
|
-
);
|
|
2044
|
+
): Promise<PostMealplanCallbackResponse> {
|
|
2045
|
+
return this.request("post", `/mealplan/${id}/callback`, null, options);
|
|
2706
2046
|
}
|
|
2707
2047
|
|
|
2708
2048
|
/**
|
|
@@ -2716,15 +2056,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2716
2056
|
id: string,
|
|
2717
2057
|
tender: string,
|
|
2718
2058
|
options?: RequestOptions
|
|
2719
|
-
):
|
|
2720
|
-
return this.request(
|
|
2721
|
-
"mealplan",
|
|
2722
|
-
"get_mealplan_tender",
|
|
2723
|
-
"get",
|
|
2724
|
-
`/mealplan/${id}/tender/${tender}`,
|
|
2725
|
-
null,
|
|
2726
|
-
options
|
|
2727
|
-
);
|
|
2059
|
+
): Promise<GetMealplanTenderResponse> {
|
|
2060
|
+
return this.request("get", `/mealplan/${id}/tender/${tender}`, null, options);
|
|
2728
2061
|
}
|
|
2729
2062
|
|
|
2730
2063
|
/**
|
|
@@ -2738,15 +2071,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2738
2071
|
id: string,
|
|
2739
2072
|
tender: string,
|
|
2740
2073
|
options?: RequestOptions
|
|
2741
|
-
):
|
|
2742
|
-
return this.request(
|
|
2743
|
-
"mealplan",
|
|
2744
|
-
"delete_mealplan_tender",
|
|
2745
|
-
"delete",
|
|
2746
|
-
`/mealplan/${id}/tender/${tender}`,
|
|
2747
|
-
null,
|
|
2748
|
-
options
|
|
2749
|
-
);
|
|
2074
|
+
): Promise<DeleteMealplanTenderResponse> {
|
|
2075
|
+
return this.request("delete", `/mealplan/${id}/tender/${tender}`, null, options);
|
|
2750
2076
|
}
|
|
2751
2077
|
|
|
2752
2078
|
/**
|
|
@@ -2762,15 +2088,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2762
2088
|
tender: string,
|
|
2763
2089
|
body: PatchMealplanTenderBody,
|
|
2764
2090
|
options?: RequestOptions
|
|
2765
|
-
):
|
|
2766
|
-
return this.request(
|
|
2767
|
-
"mealplan",
|
|
2768
|
-
"patch_mealplan_tender",
|
|
2769
|
-
"patch",
|
|
2770
|
-
`/mealplan/${id}/tender/${tender}`,
|
|
2771
|
-
body,
|
|
2772
|
-
options
|
|
2773
|
-
);
|
|
2091
|
+
): Promise<PatchMealplanTenderResponse> {
|
|
2092
|
+
return this.request("patch", `/mealplan/${id}/tender/${tender}`, body, options);
|
|
2774
2093
|
}
|
|
2775
2094
|
|
|
2776
2095
|
/**
|
|
@@ -2786,15 +2105,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2786
2105
|
options?: {
|
|
2787
2106
|
query?: PostMealplanVerifyQuery;
|
|
2788
2107
|
} & RequestOptions
|
|
2789
|
-
):
|
|
2790
|
-
return this.request(
|
|
2791
|
-
"mealplan",
|
|
2792
|
-
"post_mealplan_verify",
|
|
2793
|
-
"post",
|
|
2794
|
-
`/mealplan/${id}/verify`,
|
|
2795
|
-
body,
|
|
2796
|
-
options
|
|
2797
|
-
);
|
|
2108
|
+
): Promise<PostMealplanVerifyResponse> {
|
|
2109
|
+
return this.request("post", `/mealplan/${id}/verify`, body, options);
|
|
2798
2110
|
}
|
|
2799
2111
|
|
|
2800
2112
|
/**
|
|
@@ -2808,15 +2120,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2808
2120
|
id: string,
|
|
2809
2121
|
body: PutMealplanVerifyBody,
|
|
2810
2122
|
options?: RequestOptions
|
|
2811
|
-
):
|
|
2812
|
-
return this.request(
|
|
2813
|
-
"mealplan",
|
|
2814
|
-
"put_mealplan_verify",
|
|
2815
|
-
"put",
|
|
2816
|
-
`/mealplan/${id}/verify`,
|
|
2817
|
-
body,
|
|
2818
|
-
options
|
|
2819
|
-
);
|
|
2123
|
+
): Promise<PutMealplanVerifyResponse> {
|
|
2124
|
+
return this.request("put", `/mealplan/${id}/verify`, body, options);
|
|
2820
2125
|
}
|
|
2821
2126
|
|
|
2822
2127
|
/**
|
|
@@ -2830,15 +2135,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2830
2135
|
id: string,
|
|
2831
2136
|
body: PostMealplanAuthorizeBody,
|
|
2832
2137
|
options?: RequestOptions
|
|
2833
|
-
):
|
|
2834
|
-
return this.request(
|
|
2835
|
-
"mealplan",
|
|
2836
|
-
"post_mealplan_authorize",
|
|
2837
|
-
"post",
|
|
2838
|
-
`/mealplan/${id}/authorize`,
|
|
2839
|
-
body,
|
|
2840
|
-
options
|
|
2841
|
-
);
|
|
2138
|
+
): Promise<PostMealplanAuthorizeResponse> {
|
|
2139
|
+
return this.request("post", `/mealplan/${id}/authorize`, body, options);
|
|
2842
2140
|
}
|
|
2843
2141
|
|
|
2844
2142
|
/**
|
|
@@ -2850,8 +2148,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2850
2148
|
post_datalake_sql(
|
|
2851
2149
|
body: PostDatalakeSqlBody,
|
|
2852
2150
|
options?: RequestOptions
|
|
2853
|
-
):
|
|
2854
|
-
return this.request("
|
|
2151
|
+
): Promise<PostDatalakeSqlResponse> {
|
|
2152
|
+
return this.request("post", `/datalake/sql`, body, options);
|
|
2855
2153
|
}
|
|
2856
2154
|
|
|
2857
2155
|
/**
|
|
@@ -2859,8 +2157,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2859
2157
|
*
|
|
2860
2158
|
* @param options - additional request options
|
|
2861
2159
|
*/
|
|
2862
|
-
get_swagger(options?: RequestOptions):
|
|
2863
|
-
return this.request("
|
|
2160
|
+
get_swagger(options?: RequestOptions): Promise<GetSwaggerResponse> {
|
|
2161
|
+
return this.request("get", `/swagger.json`, null, options);
|
|
2864
2162
|
}
|
|
2865
2163
|
|
|
2866
2164
|
/**
|
|
@@ -2869,8 +2167,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2869
2167
|
* @param body
|
|
2870
2168
|
* @param options - additional request options
|
|
2871
2169
|
*/
|
|
2872
|
-
post_promo(body: PostPromoBody, options?: RequestOptions):
|
|
2873
|
-
return this.request("
|
|
2170
|
+
post_promo(body: PostPromoBody, options?: RequestOptions): Promise<PostPromoResponse> {
|
|
2171
|
+
return this.request("post", `/promo`, body, options);
|
|
2874
2172
|
}
|
|
2875
2173
|
|
|
2876
2174
|
/**
|
|
@@ -2882,8 +2180,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2882
2180
|
options?: {
|
|
2883
2181
|
query?: GetPromosQuery;
|
|
2884
2182
|
} & RequestOptions
|
|
2885
|
-
):
|
|
2886
|
-
return this.request("
|
|
2183
|
+
): Promise<GetPromosResponse> {
|
|
2184
|
+
return this.request("get", `/promo`, null, options);
|
|
2887
2185
|
}
|
|
2888
2186
|
|
|
2889
2187
|
/**
|
|
@@ -2897,8 +2195,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2897
2195
|
options?: {
|
|
2898
2196
|
query?: GetPromoQuery;
|
|
2899
2197
|
} & RequestOptions
|
|
2900
|
-
):
|
|
2901
|
-
return this.request("
|
|
2198
|
+
): Promise<GetPromoResponse> {
|
|
2199
|
+
return this.request("get", `/promo/${id}`, null, options);
|
|
2902
2200
|
}
|
|
2903
2201
|
|
|
2904
2202
|
/**
|
|
@@ -2908,12 +2206,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2908
2206
|
* @param body
|
|
2909
2207
|
* @param options - additional request options
|
|
2910
2208
|
*/
|
|
2911
|
-
put_promo(
|
|
2912
|
-
id
|
|
2913
|
-
body: PutPromoBody,
|
|
2914
|
-
options?: RequestOptions
|
|
2915
|
-
): ResponsePromise<PutPromoResponse> {
|
|
2916
|
-
return this.request("promo", "put_promo", "put", `/promo/${id}`, body, options);
|
|
2209
|
+
put_promo(id: string, body: PutPromoBody, options?: RequestOptions): Promise<PutPromoResponse> {
|
|
2210
|
+
return this.request("put", `/promo/${id}`, body, options);
|
|
2917
2211
|
}
|
|
2918
2212
|
|
|
2919
2213
|
/**
|
|
@@ -2922,8 +2216,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2922
2216
|
* @param id - Id of a promotion
|
|
2923
2217
|
* @param options - additional request options
|
|
2924
2218
|
*/
|
|
2925
|
-
delete_promo(id: string, options?: RequestOptions):
|
|
2926
|
-
return this.request("
|
|
2219
|
+
delete_promo(id: string, options?: RequestOptions): Promise<DeletePromoResponse> {
|
|
2220
|
+
return this.request("delete", `/promo/${id}`, null, options);
|
|
2927
2221
|
}
|
|
2928
2222
|
|
|
2929
2223
|
/**
|
|
@@ -2939,10 +2233,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2939
2233
|
options?: {
|
|
2940
2234
|
query?: GetPromoCompanyLocationGroupQuery;
|
|
2941
2235
|
} & RequestOptions
|
|
2942
|
-
):
|
|
2236
|
+
): Promise<GetPromoCompanyLocationGroupResponse> {
|
|
2943
2237
|
return this.request(
|
|
2944
|
-
"promo",
|
|
2945
|
-
"get_promo_company_location_group",
|
|
2946
2238
|
"get",
|
|
2947
2239
|
`/promo/company/${company}/location/group/${location_group}`,
|
|
2948
2240
|
null,
|
|
@@ -2959,15 +2251,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2959
2251
|
post_promo_validate_voucher(
|
|
2960
2252
|
body: PostPromoValidateVoucherBody,
|
|
2961
2253
|
options?: RequestOptions
|
|
2962
|
-
):
|
|
2963
|
-
return this.request(
|
|
2964
|
-
"promo",
|
|
2965
|
-
"post_promo_validate_voucher",
|
|
2966
|
-
"post",
|
|
2967
|
-
`/promo/validate/voucher`,
|
|
2968
|
-
body,
|
|
2969
|
-
options
|
|
2970
|
-
);
|
|
2254
|
+
): Promise<PostPromoValidateVoucherResponse> {
|
|
2255
|
+
return this.request("post", `/promo/validate/voucher`, body, options);
|
|
2971
2256
|
}
|
|
2972
2257
|
|
|
2973
2258
|
/**
|
|
@@ -2979,15 +2264,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2979
2264
|
post_promo_redeem_voucher(
|
|
2980
2265
|
body: PostPromoRedeemVoucherBody,
|
|
2981
2266
|
options?: RequestOptions
|
|
2982
|
-
):
|
|
2983
|
-
return this.request(
|
|
2984
|
-
"promo",
|
|
2985
|
-
"post_promo_redeem_voucher",
|
|
2986
|
-
"post",
|
|
2987
|
-
`/promo/redeem/voucher`,
|
|
2988
|
-
body,
|
|
2989
|
-
options
|
|
2990
|
-
);
|
|
2267
|
+
): Promise<PostPromoRedeemVoucherResponse> {
|
|
2268
|
+
return this.request("post", `/promo/redeem/voucher`, body, options);
|
|
2991
2269
|
}
|
|
2992
2270
|
|
|
2993
2271
|
/**
|
|
@@ -2999,8 +2277,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2999
2277
|
post_promo_voucher(
|
|
3000
2278
|
body: PostPromoVoucherBody,
|
|
3001
2279
|
options?: RequestOptions
|
|
3002
|
-
):
|
|
3003
|
-
return this.request("
|
|
2280
|
+
): Promise<PostPromoVoucherResponse> {
|
|
2281
|
+
return this.request("post", `/promo/voucher`, body, options);
|
|
3004
2282
|
}
|
|
3005
2283
|
|
|
3006
2284
|
/**
|
|
@@ -3014,8 +2292,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3014
2292
|
id: string,
|
|
3015
2293
|
body: PutPromoVoucherBody,
|
|
3016
2294
|
options?: RequestOptions
|
|
3017
|
-
):
|
|
3018
|
-
return this.request("
|
|
2295
|
+
): Promise<PutPromoVoucherResponse> {
|
|
2296
|
+
return this.request("put", `/promo/voucher/${id}`, body, options);
|
|
3019
2297
|
}
|
|
3020
2298
|
|
|
3021
2299
|
/**
|
|
@@ -3029,15 +2307,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3029
2307
|
options?: {
|
|
3030
2308
|
query?: DeletePromoVoucherQuery;
|
|
3031
2309
|
} & RequestOptions
|
|
3032
|
-
):
|
|
3033
|
-
return this.request(
|
|
3034
|
-
"promo",
|
|
3035
|
-
"delete_promo_voucher",
|
|
3036
|
-
"delete",
|
|
3037
|
-
`/promo/voucher/${id}`,
|
|
3038
|
-
null,
|
|
3039
|
-
options
|
|
3040
|
-
);
|
|
2310
|
+
): Promise<DeletePromoVoucherResponse> {
|
|
2311
|
+
return this.request("delete", `/promo/voucher/${id}`, null, options);
|
|
3041
2312
|
}
|
|
3042
2313
|
|
|
3043
2314
|
/**
|
|
@@ -3049,8 +2320,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3049
2320
|
post_promo_customer(
|
|
3050
2321
|
body: PostPromoCustomerBody,
|
|
3051
2322
|
options?: RequestOptions
|
|
3052
|
-
):
|
|
3053
|
-
return this.request("
|
|
2323
|
+
): Promise<PostPromoCustomerResponse> {
|
|
2324
|
+
return this.request("post", `/promo/customer/`, body, options);
|
|
3054
2325
|
}
|
|
3055
2326
|
|
|
3056
2327
|
/**
|
|
@@ -3062,15 +2333,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3062
2333
|
delete_promo_customer(
|
|
3063
2334
|
body: DeletePromoCustomerBody,
|
|
3064
2335
|
options?: RequestOptions
|
|
3065
|
-
):
|
|
3066
|
-
return this.request(
|
|
3067
|
-
"promo",
|
|
3068
|
-
"delete_promo_customer",
|
|
3069
|
-
"delete",
|
|
3070
|
-
`/promo/customer/`,
|
|
3071
|
-
body,
|
|
3072
|
-
options
|
|
3073
|
-
);
|
|
2336
|
+
): Promise<DeletePromoCustomerResponse> {
|
|
2337
|
+
return this.request("delete", `/promo/customer/`, body, options);
|
|
3074
2338
|
}
|
|
3075
2339
|
|
|
3076
2340
|
/**
|
|
@@ -3084,15 +2348,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3084
2348
|
id: string,
|
|
3085
2349
|
body: PostPromoVoucherReverseBody,
|
|
3086
2350
|
options?: RequestOptions
|
|
3087
|
-
):
|
|
3088
|
-
return this.request(
|
|
3089
|
-
"promo",
|
|
3090
|
-
"post_promo_voucher_reverse",
|
|
3091
|
-
"post",
|
|
3092
|
-
`/promo/voucher/${id}/reverse`,
|
|
3093
|
-
body,
|
|
3094
|
-
options
|
|
3095
|
-
);
|
|
2351
|
+
): Promise<PostPromoVoucherReverseResponse> {
|
|
2352
|
+
return this.request("post", `/promo/voucher/${id}/reverse`, body, options);
|
|
3096
2353
|
}
|
|
3097
2354
|
|
|
3098
2355
|
/**
|
|
@@ -3104,15 +2361,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3104
2361
|
post_promo_voucherify_activity_execute(
|
|
3105
2362
|
body: PostPromoVoucherifyActivityExecuteBody,
|
|
3106
2363
|
options?: RequestOptions
|
|
3107
|
-
):
|
|
3108
|
-
return this.request(
|
|
3109
|
-
"promo",
|
|
3110
|
-
"post_promo_voucherify_activity_execute",
|
|
3111
|
-
"post",
|
|
3112
|
-
`/promo/voucherify/activity/execute`,
|
|
3113
|
-
body,
|
|
3114
|
-
options
|
|
3115
|
-
);
|
|
2364
|
+
): Promise<PostPromoVoucherifyActivityExecuteResponse> {
|
|
2365
|
+
return this.request("post", `/promo/voucherify/activity/execute`, body, options);
|
|
3116
2366
|
}
|
|
3117
2367
|
|
|
3118
2368
|
/**
|
|
@@ -3122,15 +2372,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3122
2372
|
*/
|
|
3123
2373
|
get_promo_voucherify_activity_config(
|
|
3124
2374
|
options?: RequestOptions
|
|
3125
|
-
):
|
|
3126
|
-
return this.request(
|
|
3127
|
-
"promo",
|
|
3128
|
-
"get_promo_voucherify_activity_config",
|
|
3129
|
-
"get",
|
|
3130
|
-
`/promo/voucherify/activity/config.json`,
|
|
3131
|
-
null,
|
|
3132
|
-
options
|
|
3133
|
-
);
|
|
2375
|
+
): Promise<GetPromoVoucherifyActivityConfigResponse> {
|
|
2376
|
+
return this.request("get", `/promo/voucherify/activity/config.json`, null, options);
|
|
3134
2377
|
}
|
|
3135
2378
|
|
|
3136
2379
|
/**
|
|
@@ -3138,8 +2381,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3138
2381
|
*
|
|
3139
2382
|
* @param options - additional request options
|
|
3140
2383
|
*/
|
|
3141
|
-
post_dh_sql(options?: RequestOptions):
|
|
3142
|
-
return this.request("
|
|
2384
|
+
post_dh_sql(options?: RequestOptions): Promise<PostDhSqlResponse> {
|
|
2385
|
+
return this.request("post", `/dh/sql`, null, options);
|
|
3143
2386
|
}
|
|
3144
2387
|
|
|
3145
2388
|
/**
|
|
@@ -3148,8 +2391,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3148
2391
|
* @param key - configuration key
|
|
3149
2392
|
* @param options - additional request options
|
|
3150
2393
|
*/
|
|
3151
|
-
get_config(key: string, options?: RequestOptions):
|
|
3152
|
-
return this.request("
|
|
2394
|
+
get_config(key: string, options?: RequestOptions): Promise<GetConfigResponse> {
|
|
2395
|
+
return this.request("get", `/config/${key}`, null, options);
|
|
3153
2396
|
}
|
|
3154
2397
|
|
|
3155
2398
|
/**
|
|
@@ -3163,8 +2406,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3163
2406
|
key: string,
|
|
3164
2407
|
body: PostConfigBody,
|
|
3165
2408
|
options?: RequestOptions
|
|
3166
|
-
):
|
|
3167
|
-
return this.request("
|
|
2409
|
+
): Promise<PostConfigResponse> {
|
|
2410
|
+
return this.request("post", `/config/${key}`, body, options);
|
|
3168
2411
|
}
|
|
3169
2412
|
|
|
3170
2413
|
/**
|
|
@@ -3178,8 +2421,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3178
2421
|
key: string,
|
|
3179
2422
|
body: PutConfigBody,
|
|
3180
2423
|
options?: RequestOptions
|
|
3181
|
-
):
|
|
3182
|
-
return this.request("
|
|
2424
|
+
): Promise<PutConfigResponse> {
|
|
2425
|
+
return this.request("put", `/config/${key}`, body, options);
|
|
3183
2426
|
}
|
|
3184
2427
|
|
|
3185
2428
|
/**
|
|
@@ -3188,8 +2431,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3188
2431
|
* @param key - configuration key
|
|
3189
2432
|
* @param options - additional request options
|
|
3190
2433
|
*/
|
|
3191
|
-
delete_config(key: string, options?: RequestOptions):
|
|
3192
|
-
return this.request("
|
|
2434
|
+
delete_config(key: string, options?: RequestOptions): Promise<DeleteConfigResponse> {
|
|
2435
|
+
return this.request("delete", `/config/${key}`, null, options);
|
|
3193
2436
|
}
|
|
3194
2437
|
|
|
3195
2438
|
/**
|
|
@@ -3198,18 +2441,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3198
2441
|
* @param key - configuration key
|
|
3199
2442
|
* @param options - additional request options
|
|
3200
2443
|
*/
|
|
3201
|
-
get_config_public(
|
|
3202
|
-
key
|
|
3203
|
-
options?: RequestOptions
|
|
3204
|
-
): ResponsePromise<GetConfigPublicResponse> {
|
|
3205
|
-
return this.request(
|
|
3206
|
-
"config",
|
|
3207
|
-
"get_config_public",
|
|
3208
|
-
"get",
|
|
3209
|
-
`/config/public/${key}`,
|
|
3210
|
-
null,
|
|
3211
|
-
options
|
|
3212
|
-
);
|
|
2444
|
+
get_config_public(key: string, options?: RequestOptions): Promise<GetConfigPublicResponse> {
|
|
2445
|
+
return this.request("get", `/config/public/${key}`, null, options);
|
|
3213
2446
|
}
|
|
3214
2447
|
|
|
3215
2448
|
/**
|
|
@@ -3223,15 +2456,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3223
2456
|
key: string,
|
|
3224
2457
|
body: PostConfigPublicBody,
|
|
3225
2458
|
options?: RequestOptions
|
|
3226
|
-
):
|
|
3227
|
-
return this.request(
|
|
3228
|
-
"config",
|
|
3229
|
-
"post_config_public",
|
|
3230
|
-
"post",
|
|
3231
|
-
`/config/public/${key}`,
|
|
3232
|
-
body,
|
|
3233
|
-
options
|
|
3234
|
-
);
|
|
2459
|
+
): Promise<PostConfigPublicResponse> {
|
|
2460
|
+
return this.request("post", `/config/public/${key}`, body, options);
|
|
3235
2461
|
}
|
|
3236
2462
|
|
|
3237
2463
|
/**
|
|
@@ -3245,15 +2471,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3245
2471
|
key: string,
|
|
3246
2472
|
body: PutConfigPublicBody,
|
|
3247
2473
|
options?: RequestOptions
|
|
3248
|
-
):
|
|
3249
|
-
return this.request(
|
|
3250
|
-
"config",
|
|
3251
|
-
"put_config_public",
|
|
3252
|
-
"put",
|
|
3253
|
-
`/config/public/${key}`,
|
|
3254
|
-
body,
|
|
3255
|
-
options
|
|
3256
|
-
);
|
|
2474
|
+
): Promise<PutConfigPublicResponse> {
|
|
2475
|
+
return this.request("put", `/config/public/${key}`, body, options);
|
|
3257
2476
|
}
|
|
3258
2477
|
|
|
3259
2478
|
/**
|
|
@@ -3262,18 +2481,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3262
2481
|
* @param key - configuration key
|
|
3263
2482
|
* @param options - additional request options
|
|
3264
2483
|
*/
|
|
3265
|
-
delete_config_public(
|
|
3266
|
-
key
|
|
3267
|
-
options?: RequestOptions
|
|
3268
|
-
): ResponsePromise<DeleteConfigPublicResponse> {
|
|
3269
|
-
return this.request(
|
|
3270
|
-
"config",
|
|
3271
|
-
"delete_config_public",
|
|
3272
|
-
"delete",
|
|
3273
|
-
`/config/public/${key}`,
|
|
3274
|
-
null,
|
|
3275
|
-
options
|
|
3276
|
-
);
|
|
2484
|
+
delete_config_public(key: string, options?: RequestOptions): Promise<DeleteConfigPublicResponse> {
|
|
2485
|
+
return this.request("delete", `/config/public/${key}`, null, options);
|
|
3277
2486
|
}
|
|
3278
2487
|
|
|
3279
2488
|
/**
|
|
@@ -3285,15 +2494,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3285
2494
|
post_announcement(
|
|
3286
2495
|
body: PostAnnouncementBody,
|
|
3287
2496
|
options?: RequestOptions
|
|
3288
|
-
):
|
|
3289
|
-
return this.request(
|
|
3290
|
-
"announcement",
|
|
3291
|
-
"post_announcement",
|
|
3292
|
-
"post",
|
|
3293
|
-
`/announcement`,
|
|
3294
|
-
body,
|
|
3295
|
-
options
|
|
3296
|
-
);
|
|
2497
|
+
): Promise<PostAnnouncementResponse> {
|
|
2498
|
+
return this.request("post", `/announcement`, body, options);
|
|
3297
2499
|
}
|
|
3298
2500
|
|
|
3299
2501
|
/**
|
|
@@ -3307,15 +2509,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3307
2509
|
options?: {
|
|
3308
2510
|
query?: GetAnnouncementResourceQuery;
|
|
3309
2511
|
} & RequestOptions
|
|
3310
|
-
):
|
|
3311
|
-
return this.request(
|
|
3312
|
-
"announcement",
|
|
3313
|
-
"get_announcement_resource",
|
|
3314
|
-
"get",
|
|
3315
|
-
`/announcement/resource/${id}`,
|
|
3316
|
-
null,
|
|
3317
|
-
options
|
|
3318
|
-
);
|
|
2512
|
+
): Promise<GetAnnouncementResourceResponse> {
|
|
2513
|
+
return this.request("get", `/announcement/resource/${id}`, null, options);
|
|
3319
2514
|
}
|
|
3320
2515
|
|
|
3321
2516
|
/**
|
|
@@ -3327,15 +2522,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3327
2522
|
options?: {
|
|
3328
2523
|
query?: GetAnnouncementResourcesQuery;
|
|
3329
2524
|
} & RequestOptions
|
|
3330
|
-
):
|
|
3331
|
-
return this.request(
|
|
3332
|
-
"announcement",
|
|
3333
|
-
"get_announcement_resources",
|
|
3334
|
-
"get",
|
|
3335
|
-
`/announcement/resource`,
|
|
3336
|
-
null,
|
|
3337
|
-
options
|
|
3338
|
-
);
|
|
2525
|
+
): Promise<GetAnnouncementResourcesResponse> {
|
|
2526
|
+
return this.request("get", `/announcement/resource`, null, options);
|
|
3339
2527
|
}
|
|
3340
2528
|
|
|
3341
2529
|
/**
|
|
@@ -3344,15 +2532,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3344
2532
|
* @param id - Id of the entity to which announcement is specifically related.
|
|
3345
2533
|
* @param options - additional request options
|
|
3346
2534
|
*/
|
|
3347
|
-
get_announcement(id: string, options?: RequestOptions):
|
|
3348
|
-
return this.request(
|
|
3349
|
-
"announcement",
|
|
3350
|
-
"get_announcement",
|
|
3351
|
-
"get",
|
|
3352
|
-
`/announcement/${id}`,
|
|
3353
|
-
null,
|
|
3354
|
-
options
|
|
3355
|
-
);
|
|
2535
|
+
get_announcement(id: string, options?: RequestOptions): Promise<GetAnnouncementResponse> {
|
|
2536
|
+
return this.request("get", `/announcement/${id}`, null, options);
|
|
3356
2537
|
}
|
|
3357
2538
|
|
|
3358
2539
|
/**
|
|
@@ -3366,15 +2547,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3366
2547
|
id: string,
|
|
3367
2548
|
body: PutAnnouncementBody,
|
|
3368
2549
|
options?: RequestOptions
|
|
3369
|
-
):
|
|
3370
|
-
return this.request(
|
|
3371
|
-
"announcement",
|
|
3372
|
-
"put_announcement",
|
|
3373
|
-
"put",
|
|
3374
|
-
`/announcement/${id}`,
|
|
3375
|
-
body,
|
|
3376
|
-
options
|
|
3377
|
-
);
|
|
2550
|
+
): Promise<PutAnnouncementResponse> {
|
|
2551
|
+
return this.request("put", `/announcement/${id}`, body, options);
|
|
3378
2552
|
}
|
|
3379
2553
|
|
|
3380
2554
|
/**
|
|
@@ -3383,18 +2557,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3383
2557
|
* @param id - Id of the announcement
|
|
3384
2558
|
* @param options - additional request options
|
|
3385
2559
|
*/
|
|
3386
|
-
delete_announcement(
|
|
3387
|
-
id
|
|
3388
|
-
options?: RequestOptions
|
|
3389
|
-
): ResponsePromise<DeleteAnnouncementResponse> {
|
|
3390
|
-
return this.request(
|
|
3391
|
-
"announcement",
|
|
3392
|
-
"delete_announcement",
|
|
3393
|
-
"delete",
|
|
3394
|
-
`/announcement/${id}`,
|
|
3395
|
-
null,
|
|
3396
|
-
options
|
|
3397
|
-
);
|
|
2560
|
+
delete_announcement(id: string, options?: RequestOptions): Promise<DeleteAnnouncementResponse> {
|
|
2561
|
+
return this.request("delete", `/announcement/${id}`, null, options);
|
|
3398
2562
|
}
|
|
3399
2563
|
|
|
3400
2564
|
/**
|
|
@@ -3410,10 +2574,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3410
2574
|
options: {
|
|
3411
2575
|
query: GetReportAnalyticsGroupQuery;
|
|
3412
2576
|
} & RequestOptions
|
|
3413
|
-
):
|
|
2577
|
+
): Promise<GetReportAnalyticsGroupResponse> {
|
|
3414
2578
|
return this.request(
|
|
3415
|
-
"report",
|
|
3416
|
-
"get_report_analytics_group",
|
|
3417
2579
|
"get",
|
|
3418
2580
|
`/report/analytics/group/${location_group}/${report_type}`,
|
|
3419
2581
|
null,
|
|
@@ -3432,15 +2594,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3432
2594
|
options: {
|
|
3433
2595
|
query: GetReportAnalyticsCombinedGroupQuery;
|
|
3434
2596
|
} & RequestOptions
|
|
3435
|
-
):
|
|
3436
|
-
return this.request(
|
|
3437
|
-
"report",
|
|
3438
|
-
"get_report_analytics_combined_group",
|
|
3439
|
-
"get",
|
|
3440
|
-
`/report/analytics/combined/group/${location_group}`,
|
|
3441
|
-
null,
|
|
3442
|
-
options
|
|
3443
|
-
);
|
|
2597
|
+
): Promise<GetReportAnalyticsCombinedGroupResponse> {
|
|
2598
|
+
return this.request("get", `/report/analytics/combined/group/${location_group}`, null, options);
|
|
3444
2599
|
}
|
|
3445
2600
|
|
|
3446
2601
|
/**
|
|
@@ -3452,15 +2607,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3452
2607
|
options: {
|
|
3453
2608
|
query: GetReportAnalyticsExactmobileTotalsQuery;
|
|
3454
2609
|
} & RequestOptions
|
|
3455
|
-
):
|
|
3456
|
-
return this.request(
|
|
3457
|
-
"report",
|
|
3458
|
-
"get_report_analytics_exactmobile_totals",
|
|
3459
|
-
"get",
|
|
3460
|
-
`/report/analytics/exactmobile/totals`,
|
|
3461
|
-
null,
|
|
3462
|
-
options
|
|
3463
|
-
);
|
|
2610
|
+
): Promise<GetReportAnalyticsExactmobileTotalsResponse> {
|
|
2611
|
+
return this.request("get", `/report/analytics/exactmobile/totals`, null, options);
|
|
3464
2612
|
}
|
|
3465
2613
|
|
|
3466
2614
|
/**
|
|
@@ -3472,15 +2620,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3472
2620
|
options: {
|
|
3473
2621
|
query: GetReportAnalyticsExactmobileTransactionsQuery;
|
|
3474
2622
|
} & RequestOptions
|
|
3475
|
-
):
|
|
3476
|
-
return this.request(
|
|
3477
|
-
"report",
|
|
3478
|
-
"get_report_analytics_exactmobile_transactions",
|
|
3479
|
-
"get",
|
|
3480
|
-
`/report/analytics/exactmobile/transactions`,
|
|
3481
|
-
null,
|
|
3482
|
-
options
|
|
3483
|
-
);
|
|
2623
|
+
): Promise<GetReportAnalyticsExactmobileTransactionsResponse> {
|
|
2624
|
+
return this.request("get", `/report/analytics/exactmobile/transactions`, null, options);
|
|
3484
2625
|
}
|
|
3485
2626
|
|
|
3486
2627
|
/**
|
|
@@ -3492,15 +2633,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3492
2633
|
options: {
|
|
3493
2634
|
query: GetReportAnalyticsExactmobileDiscrepanciesQuery;
|
|
3494
2635
|
} & RequestOptions
|
|
3495
|
-
):
|
|
3496
|
-
return this.request(
|
|
3497
|
-
"report",
|
|
3498
|
-
"get_report_analytics_exactmobile_discrepancies",
|
|
3499
|
-
"get",
|
|
3500
|
-
`/report/analytics/exactmobile/discrepancies`,
|
|
3501
|
-
null,
|
|
3502
|
-
options
|
|
3503
|
-
);
|
|
2636
|
+
): Promise<GetReportAnalyticsExactmobileDiscrepanciesResponse> {
|
|
2637
|
+
return this.request("get", `/report/analytics/exactmobile/discrepancies`, null, options);
|
|
3504
2638
|
}
|
|
3505
2639
|
|
|
3506
2640
|
/**
|
|
@@ -3512,15 +2646,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3512
2646
|
get_report_analytics_tracker_report(
|
|
3513
2647
|
id: string,
|
|
3514
2648
|
options?: RequestOptions
|
|
3515
|
-
):
|
|
3516
|
-
return this.request(
|
|
3517
|
-
"report",
|
|
3518
|
-
"get_report_analytics_tracker_report",
|
|
3519
|
-
"get",
|
|
3520
|
-
`/report/analytics/tracker/report/${id}`,
|
|
3521
|
-
null,
|
|
3522
|
-
options
|
|
3523
|
-
);
|
|
2649
|
+
): Promise<GetReportAnalyticsTrackerReportResponse> {
|
|
2650
|
+
return this.request("get", `/report/analytics/tracker/report/${id}`, null, options);
|
|
3524
2651
|
}
|
|
3525
2652
|
|
|
3526
2653
|
/**
|
|
@@ -3534,15 +2661,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3534
2661
|
options?: {
|
|
3535
2662
|
query?: GetReportEodGroupQuery;
|
|
3536
2663
|
} & RequestOptions
|
|
3537
|
-
):
|
|
3538
|
-
return this.request(
|
|
3539
|
-
"report",
|
|
3540
|
-
"get_report_eod_group",
|
|
3541
|
-
"get",
|
|
3542
|
-
`/report/eod/group/${id}`,
|
|
3543
|
-
null,
|
|
3544
|
-
options
|
|
3545
|
-
);
|
|
2664
|
+
): Promise<GetReportEodGroupResponse> {
|
|
2665
|
+
return this.request("get", `/report/eod/group/${id}`, null, options);
|
|
3546
2666
|
}
|
|
3547
2667
|
|
|
3548
2668
|
/**
|
|
@@ -3554,15 +2674,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3554
2674
|
get_report_eod_group_subscribers(
|
|
3555
2675
|
id: string,
|
|
3556
2676
|
options?: RequestOptions
|
|
3557
|
-
):
|
|
3558
|
-
return this.request(
|
|
3559
|
-
"report",
|
|
3560
|
-
"get_report_eod_group_subscribers",
|
|
3561
|
-
"get",
|
|
3562
|
-
`/report/eod/group/${id}/subscribers`,
|
|
3563
|
-
null,
|
|
3564
|
-
options
|
|
3565
|
-
);
|
|
2677
|
+
): Promise<GetReportEodGroupSubscribersResponse> {
|
|
2678
|
+
return this.request("get", `/report/eod/group/${id}/subscribers`, null, options);
|
|
3566
2679
|
}
|
|
3567
2680
|
|
|
3568
2681
|
/**
|
|
@@ -3576,15 +2689,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3576
2689
|
id: string,
|
|
3577
2690
|
body: PostReportEodGroupSubscribersBody,
|
|
3578
2691
|
options?: RequestOptions
|
|
3579
|
-
):
|
|
3580
|
-
return this.request(
|
|
3581
|
-
"report",
|
|
3582
|
-
"post_report_eod_group_subscribers",
|
|
3583
|
-
"post",
|
|
3584
|
-
`/report/eod/group/${id}/subscribers`,
|
|
3585
|
-
body,
|
|
3586
|
-
options
|
|
3587
|
-
);
|
|
2692
|
+
): Promise<PostReportEodGroupSubscribersResponse> {
|
|
2693
|
+
return this.request("post", `/report/eod/group/${id}/subscribers`, body, options);
|
|
3588
2694
|
}
|
|
3589
2695
|
|
|
3590
2696
|
/**
|
|
@@ -3596,15 +2702,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3596
2702
|
delete_report_eod_group_subscribers(
|
|
3597
2703
|
id: string,
|
|
3598
2704
|
options?: RequestOptions
|
|
3599
|
-
):
|
|
3600
|
-
return this.request(
|
|
3601
|
-
"report",
|
|
3602
|
-
"delete_report_eod_group_subscribers",
|
|
3603
|
-
"delete",
|
|
3604
|
-
`/report/eod/group/${id}/subscribers`,
|
|
3605
|
-
null,
|
|
3606
|
-
options
|
|
3607
|
-
);
|
|
2705
|
+
): Promise<DeleteReportEodGroupSubscribersResponse> {
|
|
2706
|
+
return this.request("delete", `/report/eod/group/${id}/subscribers`, null, options);
|
|
3608
2707
|
}
|
|
3609
2708
|
|
|
3610
2709
|
/**
|
|
@@ -3618,15 +2717,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3618
2717
|
id: string,
|
|
3619
2718
|
body: PutReportEodGroupSubscribersBody,
|
|
3620
2719
|
options?: RequestOptions
|
|
3621
|
-
):
|
|
3622
|
-
return this.request(
|
|
3623
|
-
"report",
|
|
3624
|
-
"put_report_eod_group_subscribers",
|
|
3625
|
-
"put",
|
|
3626
|
-
`/report/eod/group/${id}/subscribers`,
|
|
3627
|
-
body,
|
|
3628
|
-
options
|
|
3629
|
-
);
|
|
2720
|
+
): Promise<PutReportEodGroupSubscribersResponse> {
|
|
2721
|
+
return this.request("put", `/report/eod/group/${id}/subscribers`, body, options);
|
|
3630
2722
|
}
|
|
3631
2723
|
|
|
3632
2724
|
/**
|
|
@@ -3638,15 +2730,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3638
2730
|
options?: {
|
|
3639
2731
|
query?: GetReportDiscrepancySubscribersQuery;
|
|
3640
2732
|
} & RequestOptions
|
|
3641
|
-
):
|
|
3642
|
-
return this.request(
|
|
3643
|
-
"report",
|
|
3644
|
-
"get_report_discrepancy_subscribers",
|
|
3645
|
-
"get",
|
|
3646
|
-
`/report/discrepancy/subscribers`,
|
|
3647
|
-
null,
|
|
3648
|
-
options
|
|
3649
|
-
);
|
|
2733
|
+
): Promise<GetReportDiscrepancySubscribersResponse> {
|
|
2734
|
+
return this.request("get", `/report/discrepancy/subscribers`, null, options);
|
|
3650
2735
|
}
|
|
3651
2736
|
|
|
3652
2737
|
/**
|
|
@@ -3658,15 +2743,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3658
2743
|
options: {
|
|
3659
2744
|
query: DeleteReportDiscrepancySubscribersQuery;
|
|
3660
2745
|
} & RequestOptions
|
|
3661
|
-
):
|
|
3662
|
-
return this.request(
|
|
3663
|
-
"report",
|
|
3664
|
-
"delete_report_discrepancy_subscribers",
|
|
3665
|
-
"delete",
|
|
3666
|
-
`/report/discrepancy/subscribers`,
|
|
3667
|
-
null,
|
|
3668
|
-
options
|
|
3669
|
-
);
|
|
2746
|
+
): Promise<DeleteReportDiscrepancySubscribersResponse> {
|
|
2747
|
+
return this.request("delete", `/report/discrepancy/subscribers`, null, options);
|
|
3670
2748
|
}
|
|
3671
2749
|
|
|
3672
2750
|
/**
|
|
@@ -3678,15 +2756,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3678
2756
|
post_report_discrepancy_subscribers(
|
|
3679
2757
|
body: PostReportDiscrepancySubscribersBody,
|
|
3680
2758
|
options?: RequestOptions
|
|
3681
|
-
):
|
|
3682
|
-
return this.request(
|
|
3683
|
-
"report",
|
|
3684
|
-
"post_report_discrepancy_subscribers",
|
|
3685
|
-
"post",
|
|
3686
|
-
`/report/discrepancy/subscribers`,
|
|
3687
|
-
body,
|
|
3688
|
-
options
|
|
3689
|
-
);
|
|
2759
|
+
): Promise<PostReportDiscrepancySubscribersResponse> {
|
|
2760
|
+
return this.request("post", `/report/discrepancy/subscribers`, body, options);
|
|
3690
2761
|
}
|
|
3691
2762
|
|
|
3692
2763
|
/**
|
|
@@ -3698,8 +2769,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3698
2769
|
options?: {
|
|
3699
2770
|
query?: GetUserAuthQuery;
|
|
3700
2771
|
} & RequestOptions
|
|
3701
|
-
):
|
|
3702
|
-
return this.request("
|
|
2772
|
+
): Promise<GetUserAuthResponse> {
|
|
2773
|
+
return this.request("get", `/user/auth`, null, options);
|
|
3703
2774
|
}
|
|
3704
2775
|
|
|
3705
2776
|
/**
|
|
@@ -3708,11 +2779,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3708
2779
|
* @param body
|
|
3709
2780
|
* @param options - additional request options
|
|
3710
2781
|
*/
|
|
3711
|
-
post_user_auth(
|
|
3712
|
-
body
|
|
3713
|
-
options?: RequestOptions
|
|
3714
|
-
): ResponsePromise<PostUserAuthResponse> {
|
|
3715
|
-
return this.request("user", "post_user_auth", "post", `/user/auth`, body, options);
|
|
2782
|
+
post_user_auth(body: PostUserAuthBody, options?: RequestOptions): Promise<PostUserAuthResponse> {
|
|
2783
|
+
return this.request("post", `/user/auth`, body, options);
|
|
3716
2784
|
}
|
|
3717
2785
|
|
|
3718
2786
|
/**
|
|
@@ -3720,8 +2788,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3720
2788
|
*
|
|
3721
2789
|
* @param options - additional request options
|
|
3722
2790
|
*/
|
|
3723
|
-
get_user_zendesk(options?: RequestOptions):
|
|
3724
|
-
return this.request("
|
|
2791
|
+
get_user_zendesk(options?: RequestOptions): Promise<GetUserZendeskResponse> {
|
|
2792
|
+
return this.request("get", `/user/zendesk`, null, options);
|
|
3725
2793
|
}
|
|
3726
2794
|
|
|
3727
2795
|
/**
|
|
@@ -3735,8 +2803,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3735
2803
|
options?: {
|
|
3736
2804
|
query?: PostUserQuery;
|
|
3737
2805
|
} & RequestOptions
|
|
3738
|
-
):
|
|
3739
|
-
return this.request("
|
|
2806
|
+
): Promise<PostUserResponse> {
|
|
2807
|
+
return this.request("post", `/user`, body, options);
|
|
3740
2808
|
}
|
|
3741
2809
|
|
|
3742
2810
|
/**
|
|
@@ -3750,8 +2818,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3750
2818
|
options?: {
|
|
3751
2819
|
query?: GetUserQuery;
|
|
3752
2820
|
} & RequestOptions
|
|
3753
|
-
):
|
|
3754
|
-
return this.request("
|
|
2821
|
+
): Promise<GetUserResponse> {
|
|
2822
|
+
return this.request("get", `/user/${id}`, null, options);
|
|
3755
2823
|
}
|
|
3756
2824
|
|
|
3757
2825
|
/**
|
|
@@ -3767,8 +2835,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3767
2835
|
options?: {
|
|
3768
2836
|
query?: PutUserQuery;
|
|
3769
2837
|
} & RequestOptions
|
|
3770
|
-
):
|
|
3771
|
-
return this.request("
|
|
2838
|
+
): Promise<PutUserResponse> {
|
|
2839
|
+
return this.request("put", `/user/${id}`, body, options);
|
|
3772
2840
|
}
|
|
3773
2841
|
|
|
3774
2842
|
/**
|
|
@@ -3784,8 +2852,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3784
2852
|
options?: {
|
|
3785
2853
|
query?: PatchUserQuery;
|
|
3786
2854
|
} & RequestOptions
|
|
3787
|
-
):
|
|
3788
|
-
return this.request("
|
|
2855
|
+
): Promise<PatchUserResponse> {
|
|
2856
|
+
return this.request("patch", `/user/${id}`, body, options);
|
|
3789
2857
|
}
|
|
3790
2858
|
|
|
3791
2859
|
/**
|
|
@@ -3799,8 +2867,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3799
2867
|
options?: {
|
|
3800
2868
|
query?: DeleteUserQuery;
|
|
3801
2869
|
} & RequestOptions
|
|
3802
|
-
):
|
|
3803
|
-
return this.request("
|
|
2870
|
+
): Promise<DeleteUserResponse> {
|
|
2871
|
+
return this.request("delete", `/user/${id}`, null, options);
|
|
3804
2872
|
}
|
|
3805
2873
|
|
|
3806
2874
|
/**
|
|
@@ -3812,8 +2880,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3812
2880
|
post_user_kds_token(
|
|
3813
2881
|
body: PostUserKdsTokenBody,
|
|
3814
2882
|
options?: RequestOptions
|
|
3815
|
-
):
|
|
3816
|
-
return this.request("
|
|
2883
|
+
): Promise<PostUserKdsTokenResponse> {
|
|
2884
|
+
return this.request("post", `/user/device/auth`, body, options);
|
|
3817
2885
|
}
|
|
3818
2886
|
|
|
3819
2887
|
/**
|
|
@@ -3825,8 +2893,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3825
2893
|
options?: {
|
|
3826
2894
|
query?: GetUserKdsTokenQuery;
|
|
3827
2895
|
} & RequestOptions
|
|
3828
|
-
):
|
|
3829
|
-
return this.request("
|
|
2896
|
+
): Promise<GetUserKdsTokenResponse> {
|
|
2897
|
+
return this.request("get", `/user/device/auth`, null, options);
|
|
3830
2898
|
}
|
|
3831
2899
|
|
|
3832
2900
|
/**
|
|
@@ -3838,37 +2906,21 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3838
2906
|
delete_user_device_auth(
|
|
3839
2907
|
device_id: string,
|
|
3840
2908
|
options?: RequestOptions
|
|
3841
|
-
):
|
|
3842
|
-
return this.request(
|
|
3843
|
-
"user",
|
|
3844
|
-
"delete_user_device_auth",
|
|
3845
|
-
"delete",
|
|
3846
|
-
`/user/device/auth/${device_id}`,
|
|
3847
|
-
null,
|
|
3848
|
-
options
|
|
3849
|
-
);
|
|
2909
|
+
): Promise<DeleteUserDeviceAuthResponse> {
|
|
2910
|
+
return this.request("delete", `/user/device/auth/${device_id}`, null, options);
|
|
3850
2911
|
}
|
|
3851
2912
|
|
|
3852
2913
|
/**
|
|
3853
2914
|
* PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
|
|
3854
2915
|
*
|
|
3855
2916
|
* @param device_id - KDS device ID
|
|
3856
|
-
* @param body
|
|
3857
2917
|
* @param options - additional request options
|
|
3858
2918
|
*/
|
|
3859
2919
|
patch_user_auth_kds(
|
|
3860
2920
|
device_id: string,
|
|
3861
|
-
body: PatchUserAuthKdsBody,
|
|
3862
2921
|
options?: RequestOptions
|
|
3863
|
-
):
|
|
3864
|
-
return this.request(
|
|
3865
|
-
"user",
|
|
3866
|
-
"patch_user_auth_kds",
|
|
3867
|
-
"patch",
|
|
3868
|
-
`/user/device/auth/${device_id}`,
|
|
3869
|
-
body,
|
|
3870
|
-
options
|
|
3871
|
-
);
|
|
2922
|
+
): Promise<PatchUserAuthKdsResponse> {
|
|
2923
|
+
return this.request("patch", `/user/device/auth/${device_id}`, null, options);
|
|
3872
2924
|
}
|
|
3873
2925
|
|
|
3874
2926
|
/**
|
|
@@ -3882,15 +2934,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3882
2934
|
id: string,
|
|
3883
2935
|
body: PostUserChangePasswordBody,
|
|
3884
2936
|
options?: RequestOptions
|
|
3885
|
-
):
|
|
3886
|
-
return this.request(
|
|
3887
|
-
"user",
|
|
3888
|
-
"post_user_change_password",
|
|
3889
|
-
"post",
|
|
3890
|
-
`/user/${id}/changepassword`,
|
|
3891
|
-
body,
|
|
3892
|
-
options
|
|
3893
|
-
);
|
|
2937
|
+
): Promise<PostUserChangePasswordResponse> {
|
|
2938
|
+
return this.request("post", `/user/${id}/changepassword`, body, options);
|
|
3894
2939
|
}
|
|
3895
2940
|
|
|
3896
2941
|
/**
|
|
@@ -3898,8 +2943,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3898
2943
|
*
|
|
3899
2944
|
* @param options - additional request options
|
|
3900
2945
|
*/
|
|
3901
|
-
delete_user_logout(options?: RequestOptions):
|
|
3902
|
-
return this.request("
|
|
2946
|
+
delete_user_logout(options?: RequestOptions): Promise<DeleteUserLogoutResponse> {
|
|
2947
|
+
return this.request("delete", `/user/logout`, null, options);
|
|
3903
2948
|
}
|
|
3904
2949
|
|
|
3905
2950
|
/**
|
|
@@ -3915,15 +2960,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3915
2960
|
key: string,
|
|
3916
2961
|
body: PostUserAddSecretBody,
|
|
3917
2962
|
options?: RequestOptions
|
|
3918
|
-
):
|
|
3919
|
-
return this.request(
|
|
3920
|
-
"user",
|
|
3921
|
-
"post_user_add_secret",
|
|
3922
|
-
"post",
|
|
3923
|
-
`/user/${id}/secret/${key}`,
|
|
3924
|
-
body,
|
|
3925
|
-
options
|
|
3926
|
-
);
|
|
2963
|
+
): Promise<PostUserAddSecretResponse> {
|
|
2964
|
+
return this.request("post", `/user/${id}/secret/${key}`, body, options);
|
|
3927
2965
|
}
|
|
3928
2966
|
|
|
3929
2967
|
/**
|
|
@@ -3937,15 +2975,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3937
2975
|
id: string,
|
|
3938
2976
|
key: string,
|
|
3939
2977
|
options?: RequestOptions
|
|
3940
|
-
):
|
|
3941
|
-
return this.request(
|
|
3942
|
-
"user",
|
|
3943
|
-
"get_user_secret",
|
|
3944
|
-
"get",
|
|
3945
|
-
`/user/${id}/secret/${key}`,
|
|
3946
|
-
null,
|
|
3947
|
-
options
|
|
3948
|
-
);
|
|
2978
|
+
): Promise<GetUserSecretResponse> {
|
|
2979
|
+
return this.request("get", `/user/${id}/secret/${key}`, null, options);
|
|
3949
2980
|
}
|
|
3950
2981
|
|
|
3951
2982
|
/**
|
|
@@ -3959,15 +2990,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3959
2990
|
options?: {
|
|
3960
2991
|
query?: PostUserResetPasswordQuery;
|
|
3961
2992
|
} & RequestOptions
|
|
3962
|
-
):
|
|
3963
|
-
return this.request(
|
|
3964
|
-
"user",
|
|
3965
|
-
"post_user_reset_password",
|
|
3966
|
-
"post",
|
|
3967
|
-
`/user/forgotpassword`,
|
|
3968
|
-
body,
|
|
3969
|
-
options
|
|
3970
|
-
);
|
|
2993
|
+
): Promise<PostUserResetPasswordResponse> {
|
|
2994
|
+
return this.request("post", `/user/forgotpassword`, body, options);
|
|
3971
2995
|
}
|
|
3972
2996
|
|
|
3973
2997
|
/**
|
|
@@ -3983,15 +3007,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3983
3007
|
options: {
|
|
3984
3008
|
query: PostUserResetPasswordTokenQuery;
|
|
3985
3009
|
} & RequestOptions
|
|
3986
|
-
):
|
|
3987
|
-
return this.request(
|
|
3988
|
-
"user",
|
|
3989
|
-
"post_user_reset_password_token",
|
|
3990
|
-
"post",
|
|
3991
|
-
`/user/${id}/resetpassword`,
|
|
3992
|
-
body,
|
|
3993
|
-
options
|
|
3994
|
-
);
|
|
3010
|
+
): Promise<PostUserResetPasswordTokenResponse> {
|
|
3011
|
+
return this.request("post", `/user/${id}/resetpassword`, body, options);
|
|
3995
3012
|
}
|
|
3996
3013
|
|
|
3997
3014
|
/**
|
|
@@ -4005,15 +3022,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4005
3022
|
options?: {
|
|
4006
3023
|
query?: GetUserRealmUsersQuery;
|
|
4007
3024
|
} & RequestOptions
|
|
4008
|
-
):
|
|
4009
|
-
return this.request(
|
|
4010
|
-
"user",
|
|
4011
|
-
"get_user_realm_users",
|
|
4012
|
-
"get",
|
|
4013
|
-
`/user/realm/${realm}`,
|
|
4014
|
-
null,
|
|
4015
|
-
options
|
|
4016
|
-
);
|
|
3025
|
+
): Promise<GetUserRealmUsersResponse> {
|
|
3026
|
+
return this.request("get", `/user/realm/${realm}`, null, options);
|
|
4017
3027
|
}
|
|
4018
3028
|
|
|
4019
3029
|
/**
|
|
@@ -4027,15 +3037,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4027
3037
|
options?: {
|
|
4028
3038
|
query?: GetUserPermissionsQuery;
|
|
4029
3039
|
} & RequestOptions
|
|
4030
|
-
):
|
|
4031
|
-
return this.request(
|
|
4032
|
-
"user",
|
|
4033
|
-
"get_user_permissions",
|
|
4034
|
-
"get",
|
|
4035
|
-
`/user/${id}/permissions`,
|
|
4036
|
-
null,
|
|
4037
|
-
options
|
|
4038
|
-
);
|
|
3040
|
+
): Promise<GetUserPermissionsResponse> {
|
|
3041
|
+
return this.request("get", `/user/${id}/permissions`, null, options);
|
|
4039
3042
|
}
|
|
4040
3043
|
|
|
4041
3044
|
/**
|
|
@@ -4051,15 +3054,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4051
3054
|
options?: {
|
|
4052
3055
|
query?: PutUserPermissionsQuery;
|
|
4053
3056
|
} & RequestOptions
|
|
4054
|
-
):
|
|
4055
|
-
return this.request(
|
|
4056
|
-
"user",
|
|
4057
|
-
"put_user_permissions",
|
|
4058
|
-
"put",
|
|
4059
|
-
`/user/${id}/permissions`,
|
|
4060
|
-
body,
|
|
4061
|
-
options
|
|
4062
|
-
);
|
|
3057
|
+
): Promise<PutUserPermissionsResponse> {
|
|
3058
|
+
return this.request("put", `/user/${id}/permissions`, body, options);
|
|
4063
3059
|
}
|
|
4064
3060
|
|
|
4065
3061
|
/**
|
|
@@ -4073,8 +3069,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4073
3069
|
id: string,
|
|
4074
3070
|
body: PostUserCheckInBody,
|
|
4075
3071
|
options?: RequestOptions
|
|
4076
|
-
):
|
|
4077
|
-
return this.request("
|
|
3072
|
+
): Promise<PostUserCheckInResponse> {
|
|
3073
|
+
return this.request("post", `/user/${id}/checkin`, body, options);
|
|
4078
3074
|
}
|
|
4079
3075
|
|
|
4080
3076
|
/**
|
|
@@ -4090,15 +3086,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4090
3086
|
checkin_id: string,
|
|
4091
3087
|
body: PatchUserCheckinBody,
|
|
4092
3088
|
options?: RequestOptions
|
|
4093
|
-
):
|
|
4094
|
-
return this.request(
|
|
4095
|
-
"user",
|
|
4096
|
-
"patch_user_checkin",
|
|
4097
|
-
"patch",
|
|
4098
|
-
`/user/${id}/checkin/${checkin_id}`,
|
|
4099
|
-
body,
|
|
4100
|
-
options
|
|
4101
|
-
);
|
|
3089
|
+
): Promise<PatchUserCheckinResponse> {
|
|
3090
|
+
return this.request("patch", `/user/${id}/checkin/${checkin_id}`, body, options);
|
|
4102
3091
|
}
|
|
4103
3092
|
|
|
4104
3093
|
/**
|
|
@@ -4110,15 +3099,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4110
3099
|
options?: {
|
|
4111
3100
|
query?: GetUserSearchCheckInQuery;
|
|
4112
3101
|
} & RequestOptions
|
|
4113
|
-
):
|
|
4114
|
-
return this.request(
|
|
4115
|
-
"user",
|
|
4116
|
-
"get_user_search_check_in",
|
|
4117
|
-
"get",
|
|
4118
|
-
`/user/checkin/search`,
|
|
4119
|
-
null,
|
|
4120
|
-
options
|
|
4121
|
-
);
|
|
3102
|
+
): Promise<GetUserSearchCheckInResponse> {
|
|
3103
|
+
return this.request("get", `/user/checkin/search`, null, options);
|
|
4122
3104
|
}
|
|
4123
3105
|
|
|
4124
3106
|
/**
|
|
@@ -4130,15 +3112,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4130
3112
|
post_user_send_email_verification(
|
|
4131
3113
|
id: string,
|
|
4132
3114
|
options?: RequestOptions
|
|
4133
|
-
):
|
|
4134
|
-
return this.request(
|
|
4135
|
-
"user",
|
|
4136
|
-
"post_user_send_email_verification",
|
|
4137
|
-
"post",
|
|
4138
|
-
`/user/${id}/verification`,
|
|
4139
|
-
null,
|
|
4140
|
-
options
|
|
4141
|
-
);
|
|
3115
|
+
): Promise<PostUserSendEmailVerificationResponse> {
|
|
3116
|
+
return this.request("post", `/user/${id}/verification`, null, options);
|
|
4142
3117
|
}
|
|
4143
3118
|
|
|
4144
3119
|
/**
|
|
@@ -4152,15 +3127,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4152
3127
|
id: string,
|
|
4153
3128
|
body: PutUserVerifyUserEmailBody,
|
|
4154
3129
|
options?: RequestOptions
|
|
4155
|
-
):
|
|
4156
|
-
return this.request(
|
|
4157
|
-
"user",
|
|
4158
|
-
"put_user_verify_user_email",
|
|
4159
|
-
"put",
|
|
4160
|
-
`/user/${id}/verification/confirm`,
|
|
4161
|
-
body,
|
|
4162
|
-
options
|
|
4163
|
-
);
|
|
3130
|
+
): Promise<PutUserVerifyUserEmailResponse> {
|
|
3131
|
+
return this.request("put", `/user/${id}/verification/confirm`, body, options);
|
|
4164
3132
|
}
|
|
4165
3133
|
|
|
4166
3134
|
/**
|
|
@@ -4176,15 +3144,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4176
3144
|
options?: {
|
|
4177
3145
|
query?: PostLoyaltyEnrollQuery;
|
|
4178
3146
|
} & RequestOptions
|
|
4179
|
-
):
|
|
4180
|
-
return this.request(
|
|
4181
|
-
"loyalty",
|
|
4182
|
-
"post_loyalty_enroll",
|
|
4183
|
-
"post",
|
|
4184
|
-
`/loyalty/${id}/enroll/${user_id}`,
|
|
4185
|
-
null,
|
|
4186
|
-
options
|
|
4187
|
-
);
|
|
3147
|
+
): Promise<PostLoyaltyEnrollResponse> {
|
|
3148
|
+
return this.request("post", `/loyalty/${id}/enroll/${user_id}`, null, options);
|
|
4188
3149
|
}
|
|
4189
3150
|
|
|
4190
3151
|
/**
|
|
@@ -4198,15 +3159,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4198
3159
|
options: {
|
|
4199
3160
|
query: GetLoyaltyPointsQuery;
|
|
4200
3161
|
} & RequestOptions
|
|
4201
|
-
):
|
|
4202
|
-
return this.request(
|
|
4203
|
-
"loyalty",
|
|
4204
|
-
"get_loyalty_points",
|
|
4205
|
-
"get",
|
|
4206
|
-
`/loyalty/${id}/points`,
|
|
4207
|
-
null,
|
|
4208
|
-
options
|
|
4209
|
-
);
|
|
3162
|
+
): Promise<GetLoyaltyPointsResponse> {
|
|
3163
|
+
return this.request("get", `/loyalty/${id}/points`, null, options);
|
|
4210
3164
|
}
|
|
4211
3165
|
|
|
4212
3166
|
/**
|
|
@@ -4220,15 +3174,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4220
3174
|
id: string,
|
|
4221
3175
|
user_id: string,
|
|
4222
3176
|
options?: RequestOptions
|
|
4223
|
-
):
|
|
4224
|
-
return this.request(
|
|
4225
|
-
"loyalty",
|
|
4226
|
-
"get_loyalty_offers",
|
|
4227
|
-
"get",
|
|
4228
|
-
`/loyalty/${id}/offers/${user_id}`,
|
|
4229
|
-
null,
|
|
4230
|
-
options
|
|
4231
|
-
);
|
|
3177
|
+
): Promise<GetLoyaltyOffersResponse> {
|
|
3178
|
+
return this.request("get", `/loyalty/${id}/offers/${user_id}`, null, options);
|
|
4232
3179
|
}
|
|
4233
3180
|
|
|
4234
3181
|
/**
|
|
@@ -4242,15 +3189,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4242
3189
|
id: string,
|
|
4243
3190
|
user_id: string,
|
|
4244
3191
|
options?: RequestOptions
|
|
4245
|
-
):
|
|
4246
|
-
return this.request(
|
|
4247
|
-
"loyalty",
|
|
4248
|
-
"get_loyalty_enrollmentstatus",
|
|
4249
|
-
"get",
|
|
4250
|
-
`/loyalty/${id}/enrollmentstatus/${user_id}`,
|
|
4251
|
-
null,
|
|
4252
|
-
options
|
|
4253
|
-
);
|
|
3192
|
+
): Promise<GetLoyaltyEnrollmentstatusResponse> {
|
|
3193
|
+
return this.request("get", `/loyalty/${id}/enrollmentstatus/${user_id}`, null, options);
|
|
4254
3194
|
}
|
|
4255
3195
|
|
|
4256
3196
|
/**
|
|
@@ -4264,15 +3204,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4264
3204
|
id: string,
|
|
4265
3205
|
user_id: string,
|
|
4266
3206
|
options?: RequestOptions
|
|
4267
|
-
):
|
|
4268
|
-
return this.request(
|
|
4269
|
-
"loyalty",
|
|
4270
|
-
"get_loyalty_balance",
|
|
4271
|
-
"get",
|
|
4272
|
-
`/loyalty/${id}/balance/${user_id}`,
|
|
4273
|
-
null,
|
|
4274
|
-
options
|
|
4275
|
-
);
|
|
3207
|
+
): Promise<GetLoyaltyBalanceResponse> {
|
|
3208
|
+
return this.request("get", `/loyalty/${id}/balance/${user_id}`, null, options);
|
|
4276
3209
|
}
|
|
4277
3210
|
|
|
4278
3211
|
/**
|
|
@@ -4288,15 +3221,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4288
3221
|
options?: {
|
|
4289
3222
|
query?: GetLoyaltyOpportunitiesQuery;
|
|
4290
3223
|
} & RequestOptions
|
|
4291
|
-
):
|
|
4292
|
-
return this.request(
|
|
4293
|
-
"loyalty",
|
|
4294
|
-
"get_loyalty_opportunities",
|
|
4295
|
-
"get",
|
|
4296
|
-
`/loyalty/${id}/opportunities/${user_id}`,
|
|
4297
|
-
null,
|
|
4298
|
-
options
|
|
4299
|
-
);
|
|
3224
|
+
): Promise<GetLoyaltyOpportunitiesResponse> {
|
|
3225
|
+
return this.request("get", `/loyalty/${id}/opportunities/${user_id}`, null, options);
|
|
4300
3226
|
}
|
|
4301
3227
|
|
|
4302
3228
|
/**
|
|
@@ -4312,15 +3238,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4312
3238
|
options: {
|
|
4313
3239
|
query: PostLoyaltyOpportunitiesQuery;
|
|
4314
3240
|
} & RequestOptions
|
|
4315
|
-
):
|
|
4316
|
-
return this.request(
|
|
4317
|
-
"loyalty",
|
|
4318
|
-
"post_loyalty_opportunities",
|
|
4319
|
-
"post",
|
|
4320
|
-
`/loyalty/${id}/opportunities/${user_id}`,
|
|
4321
|
-
null,
|
|
4322
|
-
options
|
|
4323
|
-
);
|
|
3241
|
+
): Promise<PostLoyaltyOpportunitiesResponse> {
|
|
3242
|
+
return this.request("post", `/loyalty/${id}/opportunities/${user_id}`, null, options);
|
|
4324
3243
|
}
|
|
4325
3244
|
|
|
4326
3245
|
/**
|
|
@@ -4334,15 +3253,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4334
3253
|
id: string,
|
|
4335
3254
|
user_id: string,
|
|
4336
3255
|
options?: RequestOptions
|
|
4337
|
-
):
|
|
4338
|
-
return this.request(
|
|
4339
|
-
"loyalty",
|
|
4340
|
-
"get_loyalty_rewards",
|
|
4341
|
-
"get",
|
|
4342
|
-
`/loyalty/${id}/rewards/${user_id}`,
|
|
4343
|
-
null,
|
|
4344
|
-
options
|
|
4345
|
-
);
|
|
3256
|
+
): Promise<GetLoyaltyRewardsResponse> {
|
|
3257
|
+
return this.request("get", `/loyalty/${id}/rewards/${user_id}`, null, options);
|
|
4346
3258
|
}
|
|
4347
3259
|
|
|
4348
3260
|
/**
|
|
@@ -4356,15 +3268,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4356
3268
|
id: string,
|
|
4357
3269
|
user_id: string,
|
|
4358
3270
|
options?: RequestOptions
|
|
4359
|
-
):
|
|
4360
|
-
return this.request(
|
|
4361
|
-
"loyalty",
|
|
4362
|
-
"get_loyalty_coupons",
|
|
4363
|
-
"get",
|
|
4364
|
-
`/loyalty/${id}/coupons/${user_id}`,
|
|
4365
|
-
null,
|
|
4366
|
-
options
|
|
4367
|
-
);
|
|
3271
|
+
): Promise<GetLoyaltyCouponsResponse> {
|
|
3272
|
+
return this.request("get", `/loyalty/${id}/coupons/${user_id}`, null, options);
|
|
4368
3273
|
}
|
|
4369
3274
|
|
|
4370
3275
|
/**
|
|
@@ -4380,15 +3285,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4380
3285
|
options: {
|
|
4381
3286
|
query: GetLoyaltyOrderpointsQuery;
|
|
4382
3287
|
} & RequestOptions
|
|
4383
|
-
):
|
|
4384
|
-
return this.request(
|
|
4385
|
-
"loyalty",
|
|
4386
|
-
"get_loyalty_orderpoints",
|
|
4387
|
-
"get",
|
|
4388
|
-
`/loyalty/${id}/orderpoints/${user_id}`,
|
|
4389
|
-
null,
|
|
4390
|
-
options
|
|
4391
|
-
);
|
|
3288
|
+
): Promise<GetLoyaltyOrderpointsResponse> {
|
|
3289
|
+
return this.request("get", `/loyalty/${id}/orderpoints/${user_id}`, null, options);
|
|
4392
3290
|
}
|
|
4393
3291
|
|
|
4394
3292
|
/**
|
|
@@ -4404,15 +3302,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4404
3302
|
user_id: string,
|
|
4405
3303
|
body: PostLoyaltyOrderpointsBody,
|
|
4406
3304
|
options?: RequestOptions
|
|
4407
|
-
):
|
|
4408
|
-
return this.request(
|
|
4409
|
-
"loyalty",
|
|
4410
|
-
"post_loyalty_orderpoints",
|
|
4411
|
-
"post",
|
|
4412
|
-
`/loyalty/${id}/orderpoints/${user_id}`,
|
|
4413
|
-
body,
|
|
4414
|
-
options
|
|
4415
|
-
);
|
|
3305
|
+
): Promise<PostLoyaltyOrderpointsResponse> {
|
|
3306
|
+
return this.request("post", `/loyalty/${id}/orderpoints/${user_id}`, body, options);
|
|
4416
3307
|
}
|
|
4417
3308
|
|
|
4418
3309
|
/**
|
|
@@ -4430,15 +3321,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4430
3321
|
options?: {
|
|
4431
3322
|
query?: PostLoyaltyPurchaseQuery;
|
|
4432
3323
|
} & RequestOptions
|
|
4433
|
-
):
|
|
4434
|
-
return this.request(
|
|
4435
|
-
"loyalty",
|
|
4436
|
-
"post_loyalty_purchase",
|
|
4437
|
-
"post",
|
|
4438
|
-
`/loyalty/${id}/purchase/${user_id}`,
|
|
4439
|
-
body,
|
|
4440
|
-
options
|
|
4441
|
-
);
|
|
3324
|
+
): Promise<PostLoyaltyPurchaseResponse> {
|
|
3325
|
+
return this.request("post", `/loyalty/${id}/purchase/${user_id}`, body, options);
|
|
4442
3326
|
}
|
|
4443
3327
|
|
|
4444
3328
|
/**
|
|
@@ -4456,15 +3340,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4456
3340
|
options?: {
|
|
4457
3341
|
query?: PostLoyaltyBuyrewardQuery;
|
|
4458
3342
|
} & RequestOptions
|
|
4459
|
-
):
|
|
4460
|
-
return this.request(
|
|
4461
|
-
"loyalty",
|
|
4462
|
-
"post_loyalty_buyreward",
|
|
4463
|
-
"post",
|
|
4464
|
-
`/loyalty/${id}/buyreward/${user_id}`,
|
|
4465
|
-
body,
|
|
4466
|
-
options
|
|
4467
|
-
);
|
|
3343
|
+
): Promise<PostLoyaltyBuyrewardResponse> {
|
|
3344
|
+
return this.request("post", `/loyalty/${id}/buyreward/${user_id}`, body, options);
|
|
4468
3345
|
}
|
|
4469
3346
|
|
|
4470
3347
|
/**
|
|
@@ -4480,15 +3357,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4480
3357
|
options?: {
|
|
4481
3358
|
query?: GetLoyaltyHistoryQuery;
|
|
4482
3359
|
} & RequestOptions
|
|
4483
|
-
):
|
|
4484
|
-
return this.request(
|
|
4485
|
-
"loyalty",
|
|
4486
|
-
"get_loyalty_history",
|
|
4487
|
-
"get",
|
|
4488
|
-
`/loyalty/${id}/history/${user_id}`,
|
|
4489
|
-
null,
|
|
4490
|
-
options
|
|
4491
|
-
);
|
|
3360
|
+
): Promise<GetLoyaltyHistoryResponse> {
|
|
3361
|
+
return this.request("get", `/loyalty/${id}/history/${user_id}`, null, options);
|
|
4492
3362
|
}
|
|
4493
3363
|
|
|
4494
3364
|
/**
|
|
@@ -4504,15 +3374,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4504
3374
|
user_id: string,
|
|
4505
3375
|
coupon_id: string,
|
|
4506
3376
|
options?: RequestOptions
|
|
4507
|
-
):
|
|
4508
|
-
return this.request(
|
|
4509
|
-
"loyalty",
|
|
4510
|
-
"get_loyalty_coupon",
|
|
4511
|
-
"get",
|
|
4512
|
-
`/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
|
|
4513
|
-
null,
|
|
4514
|
-
options
|
|
4515
|
-
);
|
|
3377
|
+
): Promise<GetLoyaltyCouponResponse> {
|
|
3378
|
+
return this.request("get", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, null, options);
|
|
4516
3379
|
}
|
|
4517
3380
|
|
|
4518
3381
|
/**
|
|
@@ -4530,15 +3393,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4530
3393
|
coupon_id: string,
|
|
4531
3394
|
body: PatchLoyaltyCouponBody,
|
|
4532
3395
|
options?: RequestOptions
|
|
4533
|
-
):
|
|
4534
|
-
return this.request(
|
|
4535
|
-
"loyalty",
|
|
4536
|
-
"patch_loyalty_coupon",
|
|
4537
|
-
"patch",
|
|
4538
|
-
`/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
|
|
4539
|
-
body,
|
|
4540
|
-
options
|
|
4541
|
-
);
|
|
3396
|
+
): Promise<PatchLoyaltyCouponResponse> {
|
|
3397
|
+
return this.request("patch", `/loyalty/${id}/coupon/${user_id}/${coupon_id}`, body, options);
|
|
4542
3398
|
}
|
|
4543
3399
|
|
|
4544
3400
|
/**
|
|
@@ -4552,15 +3408,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4552
3408
|
options: {
|
|
4553
3409
|
query: GetLoyaltySearchQuery;
|
|
4554
3410
|
} & RequestOptions
|
|
4555
|
-
):
|
|
4556
|
-
return this.request(
|
|
4557
|
-
"loyalty",
|
|
4558
|
-
"get_loyalty_search",
|
|
4559
|
-
"get",
|
|
4560
|
-
`/loyalty/${id}/search`,
|
|
4561
|
-
null,
|
|
4562
|
-
options
|
|
4563
|
-
);
|
|
3411
|
+
): Promise<GetLoyaltySearchResponse> {
|
|
3412
|
+
return this.request("get", `/loyalty/${id}/search`, null, options);
|
|
4564
3413
|
}
|
|
4565
3414
|
|
|
4566
3415
|
/**
|
|
@@ -4574,15 +3423,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4574
3423
|
options: {
|
|
4575
3424
|
query: GetLoyaltyUsersQuery;
|
|
4576
3425
|
} & RequestOptions
|
|
4577
|
-
):
|
|
4578
|
-
return this.request(
|
|
4579
|
-
"loyalty",
|
|
4580
|
-
"get_loyalty_users",
|
|
4581
|
-
"get",
|
|
4582
|
-
`/loyalty/${id}/users`,
|
|
4583
|
-
null,
|
|
4584
|
-
options
|
|
4585
|
-
);
|
|
3426
|
+
): Promise<GetLoyaltyUsersResponse> {
|
|
3427
|
+
return this.request("get", `/loyalty/${id}/users`, null, options);
|
|
4586
3428
|
}
|
|
4587
3429
|
|
|
4588
3430
|
/**
|
|
@@ -4596,15 +3438,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4596
3438
|
options: {
|
|
4597
3439
|
query: GetLoyaltyEventsQuery;
|
|
4598
3440
|
} & RequestOptions
|
|
4599
|
-
):
|
|
4600
|
-
return this.request(
|
|
4601
|
-
"loyalty",
|
|
4602
|
-
"get_loyalty_events",
|
|
4603
|
-
"get",
|
|
4604
|
-
`/loyalty/${id}/events`,
|
|
4605
|
-
null,
|
|
4606
|
-
options
|
|
4607
|
-
);
|
|
3441
|
+
): Promise<GetLoyaltyEventsResponse> {
|
|
3442
|
+
return this.request("get", `/loyalty/${id}/events`, null, options);
|
|
4608
3443
|
}
|
|
4609
3444
|
|
|
4610
3445
|
/**
|
|
@@ -4613,8 +3448,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4613
3448
|
* @param id - TODO: add parameter to swagger.json
|
|
4614
3449
|
* @param options - additional request options
|
|
4615
3450
|
*/
|
|
4616
|
-
get_brand(id: string, options?: RequestOptions):
|
|
4617
|
-
return this.request("
|
|
3451
|
+
get_brand(id: string, options?: RequestOptions): Promise<GetBrandResponse> {
|
|
3452
|
+
return this.request("get", `/brand/${id}`, null, options);
|
|
4618
3453
|
}
|
|
4619
3454
|
|
|
4620
3455
|
/**
|
|
@@ -4622,8 +3457,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4622
3457
|
*
|
|
4623
3458
|
* @param options - additional request options
|
|
4624
3459
|
*/
|
|
4625
|
-
get_brands(options?: RequestOptions):
|
|
4626
|
-
return this.request("
|
|
3460
|
+
get_brands(options?: RequestOptions): Promise<GetBrandsResponse> {
|
|
3461
|
+
return this.request("get", `/brand`, null, options);
|
|
4627
3462
|
}
|
|
4628
3463
|
|
|
4629
3464
|
/**
|
|
@@ -4632,8 +3467,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4632
3467
|
* @param id - brand
|
|
4633
3468
|
* @param options - additional request options
|
|
4634
3469
|
*/
|
|
4635
|
-
get_calendar(id: string, options?: RequestOptions):
|
|
4636
|
-
return this.request("
|
|
3470
|
+
get_calendar(id: string, options?: RequestOptions): Promise<GetCalendarResponse> {
|
|
3471
|
+
return this.request("get", `/calendar/${id}`, null, options);
|
|
4637
3472
|
}
|
|
4638
3473
|
|
|
4639
3474
|
/**
|
|
@@ -4647,8 +3482,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4647
3482
|
id: string,
|
|
4648
3483
|
body: PutCalendarBody,
|
|
4649
3484
|
options?: RequestOptions
|
|
4650
|
-
):
|
|
4651
|
-
return this.request("
|
|
3485
|
+
): Promise<PutCalendarResponse> {
|
|
3486
|
+
return this.request("put", `/calendar/${id}`, body, options);
|
|
4652
3487
|
}
|
|
4653
3488
|
|
|
4654
3489
|
/**
|
|
@@ -4662,15 +3497,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4662
3497
|
options?: {
|
|
4663
3498
|
query?: GetCalendarCdlQuery;
|
|
4664
3499
|
} & RequestOptions
|
|
4665
|
-
):
|
|
4666
|
-
return this.request(
|
|
4667
|
-
"calendar",
|
|
4668
|
-
"get_calendar_cdl",
|
|
4669
|
-
"get",
|
|
4670
|
-
`/calendar/${id}/cdl`,
|
|
4671
|
-
null,
|
|
4672
|
-
options
|
|
4673
|
-
);
|
|
3500
|
+
): Promise<GetCalendarCdlResponse> {
|
|
3501
|
+
return this.request("get", `/calendar/${id}/cdl`, null, options);
|
|
4674
3502
|
}
|
|
4675
3503
|
|
|
4676
3504
|
/**
|
|
@@ -4678,15 +3506,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4678
3506
|
*
|
|
4679
3507
|
* @param options - additional request options
|
|
4680
3508
|
*/
|
|
4681
|
-
get_calendar_swagger(options?: RequestOptions):
|
|
4682
|
-
return this.request(
|
|
4683
|
-
"calendar",
|
|
4684
|
-
"get_calendar_swagger",
|
|
4685
|
-
"get",
|
|
4686
|
-
`/calendar/swagger.json`,
|
|
4687
|
-
null,
|
|
4688
|
-
options
|
|
4689
|
-
);
|
|
3509
|
+
get_calendar_swagger(options?: RequestOptions): Promise<GetCalendarSwaggerResponse> {
|
|
3510
|
+
return this.request("get", `/calendar/swagger.json`, null, options);
|
|
4690
3511
|
}
|
|
4691
3512
|
|
|
4692
3513
|
/**
|
|
@@ -4695,18 +3516,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4695
3516
|
* @param id - brand
|
|
4696
3517
|
* @param options - additional request options
|
|
4697
3518
|
*/
|
|
4698
|
-
post_calendar_sync(
|
|
4699
|
-
id
|
|
4700
|
-
options?: RequestOptions
|
|
4701
|
-
): ResponsePromise<PostCalendarSyncResponse> {
|
|
4702
|
-
return this.request(
|
|
4703
|
-
"calendar",
|
|
4704
|
-
"post_calendar_sync",
|
|
4705
|
-
"post",
|
|
4706
|
-
`/calendar/${id}/sync`,
|
|
4707
|
-
null,
|
|
4708
|
-
options
|
|
4709
|
-
);
|
|
3519
|
+
post_calendar_sync(id: string, options?: RequestOptions): Promise<PostCalendarSyncResponse> {
|
|
3520
|
+
return this.request("post", `/calendar/${id}/sync`, null, options);
|
|
4710
3521
|
}
|
|
4711
3522
|
|
|
4712
3523
|
/**
|
|
@@ -4718,15 +3529,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4718
3529
|
post_delivery_order(
|
|
4719
3530
|
body: PostDeliveryOrderBody,
|
|
4720
3531
|
options?: RequestOptions
|
|
4721
|
-
):
|
|
4722
|
-
return this.request(
|
|
4723
|
-
"delivery",
|
|
4724
|
-
"post_delivery_order",
|
|
4725
|
-
"post",
|
|
4726
|
-
`/delivery/order`,
|
|
4727
|
-
body,
|
|
4728
|
-
options
|
|
4729
|
-
);
|
|
3532
|
+
): Promise<PostDeliveryOrderResponse> {
|
|
3533
|
+
return this.request("post", `/delivery/order`, body, options);
|
|
4730
3534
|
}
|
|
4731
3535
|
|
|
4732
3536
|
/**
|
|
@@ -4738,15 +3542,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4738
3542
|
patch_delivery_order(
|
|
4739
3543
|
order_id: string,
|
|
4740
3544
|
options?: RequestOptions
|
|
4741
|
-
):
|
|
4742
|
-
return this.request(
|
|
4743
|
-
"delivery",
|
|
4744
|
-
"patch_delivery_order",
|
|
4745
|
-
"patch",
|
|
4746
|
-
`/delivery/order/${order_id}`,
|
|
4747
|
-
null,
|
|
4748
|
-
options
|
|
4749
|
-
);
|
|
3545
|
+
): Promise<PatchDeliveryOrderResponse> {
|
|
3546
|
+
return this.request("patch", `/delivery/order/${order_id}`, null, options);
|
|
4750
3547
|
}
|
|
4751
3548
|
|
|
4752
3549
|
/**
|
|
@@ -4758,15 +3555,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4758
3555
|
get_delivery_order(
|
|
4759
3556
|
order_id: string,
|
|
4760
3557
|
options?: RequestOptions
|
|
4761
|
-
):
|
|
4762
|
-
return this.request(
|
|
4763
|
-
"delivery",
|
|
4764
|
-
"get_delivery_order",
|
|
4765
|
-
"get",
|
|
4766
|
-
`/delivery/order/${order_id}`,
|
|
4767
|
-
null,
|
|
4768
|
-
options
|
|
4769
|
-
);
|
|
3558
|
+
): Promise<GetDeliveryOrderResponse> {
|
|
3559
|
+
return this.request("get", `/delivery/order/${order_id}`, null, options);
|
|
4770
3560
|
}
|
|
4771
3561
|
|
|
4772
3562
|
/**
|
|
@@ -4775,11 +3565,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4775
3565
|
* @param body
|
|
4776
3566
|
* @param options - additional request options
|
|
4777
3567
|
*/
|
|
4778
|
-
post_schedule(
|
|
4779
|
-
body
|
|
4780
|
-
options?: RequestOptions
|
|
4781
|
-
): ResponsePromise<PostScheduleResponse> {
|
|
4782
|
-
return this.request("schedule", "post_schedule", "post", `/schedule`, body, options);
|
|
3568
|
+
post_schedule(body: PostScheduleBody, options?: RequestOptions): Promise<PostScheduleResponse> {
|
|
3569
|
+
return this.request("post", `/schedule`, body, options);
|
|
4783
3570
|
}
|
|
4784
3571
|
|
|
4785
3572
|
/**
|
|
@@ -4791,8 +3578,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4791
3578
|
options: {
|
|
4792
3579
|
query: GetSchedulesQuery;
|
|
4793
3580
|
} & RequestOptions
|
|
4794
|
-
):
|
|
4795
|
-
return this.request("
|
|
3581
|
+
): Promise<GetSchedulesResponse> {
|
|
3582
|
+
return this.request("get", `/schedule`, null, options);
|
|
4796
3583
|
}
|
|
4797
3584
|
|
|
4798
3585
|
/**
|
|
@@ -4801,8 +3588,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4801
3588
|
* @param id - schedule id
|
|
4802
3589
|
* @param options - additional request options
|
|
4803
3590
|
*/
|
|
4804
|
-
get_schedule(id: string, options?: RequestOptions):
|
|
4805
|
-
return this.request("
|
|
3591
|
+
get_schedule(id: string, options?: RequestOptions): Promise<GetScheduleResponse> {
|
|
3592
|
+
return this.request("get", `/schedule/${id}`, null, options);
|
|
4806
3593
|
}
|
|
4807
3594
|
|
|
4808
3595
|
/**
|
|
@@ -4816,8 +3603,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4816
3603
|
id: string,
|
|
4817
3604
|
body: PutScheduleBody,
|
|
4818
3605
|
options?: RequestOptions
|
|
4819
|
-
):
|
|
4820
|
-
return this.request("
|
|
3606
|
+
): Promise<PutScheduleResponse> {
|
|
3607
|
+
return this.request("put", `/schedule/${id}`, body, options);
|
|
4821
3608
|
}
|
|
4822
3609
|
|
|
4823
3610
|
/**
|
|
@@ -4826,8 +3613,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4826
3613
|
* @param id - Id of a schedule
|
|
4827
3614
|
* @param options - additional request options
|
|
4828
3615
|
*/
|
|
4829
|
-
delete_schedule(id: string, options?: RequestOptions):
|
|
4830
|
-
return this.request("
|
|
3616
|
+
delete_schedule(id: string, options?: RequestOptions): Promise<DeleteScheduleResponse> {
|
|
3617
|
+
return this.request("delete", `/schedule/${id}`, null, options);
|
|
4831
3618
|
}
|
|
4832
3619
|
|
|
4833
3620
|
/**
|
|
@@ -4836,8 +3623,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4836
3623
|
* @param body
|
|
4837
3624
|
* @param options - additional request options
|
|
4838
3625
|
*/
|
|
4839
|
-
post_vote(body: PostVoteBody, options?: RequestOptions):
|
|
4840
|
-
return this.request("
|
|
3626
|
+
post_vote(body: PostVoteBody, options?: RequestOptions): Promise<PostVoteResponse> {
|
|
3627
|
+
return this.request("post", `/vote`, body, options);
|
|
4841
3628
|
}
|
|
4842
3629
|
|
|
4843
3630
|
/**
|
|
@@ -4851,8 +3638,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4851
3638
|
options?: {
|
|
4852
3639
|
query?: GetVoteIdfaQuery;
|
|
4853
3640
|
} & RequestOptions
|
|
4854
|
-
):
|
|
4855
|
-
return this.request("
|
|
3641
|
+
): Promise<GetVoteIdfaResponse> {
|
|
3642
|
+
return this.request("get", `/vote/idfa/${idfa}`, null, options);
|
|
4856
3643
|
}
|
|
4857
3644
|
|
|
4858
3645
|
/**
|
|
@@ -4861,8 +3648,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4861
3648
|
* @param body
|
|
4862
3649
|
* @param options - additional request options
|
|
4863
3650
|
*/
|
|
4864
|
-
post_file(body: PostFileBody, options?: RequestOptions):
|
|
4865
|
-
return this.request("
|
|
3651
|
+
post_file(body: PostFileBody, options?: RequestOptions): Promise<PostFileResponse> {
|
|
3652
|
+
return this.request("post", `/file`, body, options);
|
|
4866
3653
|
}
|
|
4867
3654
|
|
|
4868
3655
|
/**
|
|
@@ -4871,11 +3658,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4871
3658
|
* @param body - Message object that needs to be created
|
|
4872
3659
|
* @param options - additional request options
|
|
4873
3660
|
*/
|
|
4874
|
-
post_message(
|
|
4875
|
-
body
|
|
4876
|
-
options?: RequestOptions
|
|
4877
|
-
): ResponsePromise<PostMessageResponse> {
|
|
4878
|
-
return this.request("message", "post_message", "post", `/message`, body, options);
|
|
3661
|
+
post_message(body: PostMessageBody, options?: RequestOptions): Promise<PostMessageResponse> {
|
|
3662
|
+
return this.request("post", `/message`, body, options);
|
|
4879
3663
|
}
|
|
4880
3664
|
|
|
4881
3665
|
/**
|
|
@@ -4884,8 +3668,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4884
3668
|
* @param id - Message CDL encoded id
|
|
4885
3669
|
* @param options - additional request options
|
|
4886
3670
|
*/
|
|
4887
|
-
get_message(id: string, options?: RequestOptions):
|
|
4888
|
-
return this.request("
|
|
3671
|
+
get_message(id: string, options?: RequestOptions): Promise<GetMessageResponse> {
|
|
3672
|
+
return this.request("get", `/message/${id}`, null, options);
|
|
4889
3673
|
}
|
|
4890
3674
|
|
|
4891
3675
|
/**
|
|
@@ -4899,451 +3683,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4899
3683
|
options?: {
|
|
4900
3684
|
query?: GetLoggerBrandStatusQuery;
|
|
4901
3685
|
} & RequestOptions
|
|
4902
|
-
):
|
|
4903
|
-
return this.request(
|
|
4904
|
-
"logger",
|
|
4905
|
-
"get_logger_brand_status",
|
|
4906
|
-
"get",
|
|
4907
|
-
`/logger/${id}/brand/status`,
|
|
4908
|
-
null,
|
|
4909
|
-
options
|
|
4910
|
-
);
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
/**
|
|
4914
|
-
* GET /menu/client/{client_id} - Get menu client
|
|
4915
|
-
*
|
|
4916
|
-
* @param client_id
|
|
4917
|
-
* @param options - additional request options
|
|
4918
|
-
*/
|
|
4919
|
-
get_menu_client(
|
|
4920
|
-
client_id: string,
|
|
4921
|
-
options?: RequestOptions
|
|
4922
|
-
): ResponsePromise<GetMenuClientResponse> {
|
|
4923
|
-
return this.request(
|
|
4924
|
-
"menu",
|
|
4925
|
-
"get_menu_client",
|
|
4926
|
-
"get",
|
|
4927
|
-
`/menu/client/${client_id}`,
|
|
4928
|
-
null,
|
|
4929
|
-
options
|
|
4930
|
-
);
|
|
4931
|
-
}
|
|
4932
|
-
|
|
4933
|
-
/**
|
|
4934
|
-
* GET /menu - Get Menus or search for Menus
|
|
4935
|
-
*
|
|
4936
|
-
* @param options - additional request options
|
|
4937
|
-
*/
|
|
4938
|
-
get_menus(
|
|
4939
|
-
options: {
|
|
4940
|
-
query: GetMenusQuery;
|
|
4941
|
-
} & RequestOptions
|
|
4942
|
-
): ResponsePromise<GetMenusResponse> {
|
|
4943
|
-
return this.request("menu", "get_menus", "get", `/menu`, null, options);
|
|
4944
|
-
}
|
|
4945
|
-
|
|
4946
|
-
/**
|
|
4947
|
-
* POST /menu - Create a new Menu
|
|
4948
|
-
*
|
|
4949
|
-
* @param body
|
|
4950
|
-
* @param options - additional request options
|
|
4951
|
-
*/
|
|
4952
|
-
post_menu(body: PostMenuBody, options?: RequestOptions): ResponsePromise<PostMenuResponse> {
|
|
4953
|
-
return this.request("menu", "post_menu", "post", `/menu`, body, options);
|
|
4954
|
-
}
|
|
4955
|
-
|
|
4956
|
-
/**
|
|
4957
|
-
* HEAD /menu/{id} - Get an individual Menu
|
|
4958
|
-
*
|
|
4959
|
-
* @param id - menu
|
|
4960
|
-
* @param options - additional request options
|
|
4961
|
-
*/
|
|
4962
|
-
head_menu(
|
|
4963
|
-
id: string,
|
|
4964
|
-
options?: {
|
|
4965
|
-
query?: HeadMenuQuery;
|
|
4966
|
-
} & RequestOptions
|
|
4967
|
-
): ResponsePromise<HeadMenuResponse> {
|
|
4968
|
-
return this.request("menu", "head_menu", "head", `/menu/${id}`, null, options);
|
|
4969
|
-
}
|
|
4970
|
-
|
|
4971
|
-
/**
|
|
4972
|
-
* GET /menu/{id} - Get an individual Menu
|
|
4973
|
-
*
|
|
4974
|
-
* @param id - menu
|
|
4975
|
-
* @param options - additional request options
|
|
4976
|
-
*/
|
|
4977
|
-
get_menu(
|
|
4978
|
-
id: string,
|
|
4979
|
-
options?: {
|
|
4980
|
-
query?: GetMenuQuery;
|
|
4981
|
-
} & RequestOptions
|
|
4982
|
-
): ResponsePromise<GetMenuResponse> {
|
|
4983
|
-
return this.request("menu", "get_menu", "get", `/menu/${id}`, null, options);
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
/**
|
|
4987
|
-
* PUT /menu/{id} - Override a complete Menu
|
|
4988
|
-
*
|
|
4989
|
-
* @param id - menu
|
|
4990
|
-
* @param body
|
|
4991
|
-
* @param options - additional request options
|
|
4992
|
-
*/
|
|
4993
|
-
put_menu(
|
|
4994
|
-
id: string,
|
|
4995
|
-
body: PutMenuBody,
|
|
4996
|
-
options?: {
|
|
4997
|
-
query?: PutMenuQuery;
|
|
4998
|
-
} & RequestOptions
|
|
4999
|
-
): ResponsePromise<PutMenuResponse> {
|
|
5000
|
-
return this.request("menu", "put_menu", "put", `/menu/${id}`, body, options);
|
|
5001
|
-
}
|
|
5002
|
-
|
|
5003
|
-
/**
|
|
5004
|
-
* DELETE /menu/{id} - Delete a Menu
|
|
5005
|
-
*
|
|
5006
|
-
* @param id - menu
|
|
5007
|
-
* @param options - additional request options
|
|
5008
|
-
*/
|
|
5009
|
-
delete_menu(
|
|
5010
|
-
id: string,
|
|
5011
|
-
options?: {
|
|
5012
|
-
query?: DeleteMenuQuery;
|
|
5013
|
-
} & RequestOptions
|
|
5014
|
-
): ResponsePromise<DeleteMenuResponse> {
|
|
5015
|
-
return this.request("menu", "delete_menu", "delete", `/menu/${id}`, null, options);
|
|
5016
|
-
}
|
|
5017
|
-
|
|
5018
|
-
/**
|
|
5019
|
-
* PATCH /menu/{id} - Update a menu
|
|
5020
|
-
*
|
|
5021
|
-
* @param id - menu
|
|
5022
|
-
* @param body
|
|
5023
|
-
* @param options - additional request options
|
|
5024
|
-
*/
|
|
5025
|
-
patch_menu(
|
|
5026
|
-
id: string,
|
|
5027
|
-
body: PatchMenuBody,
|
|
5028
|
-
options?: {
|
|
5029
|
-
query?: PatchMenuQuery;
|
|
5030
|
-
} & RequestOptions
|
|
5031
|
-
): ResponsePromise<PatchMenuResponse> {
|
|
5032
|
-
return this.request("menu", "patch_menu", "patch", `/menu/${id}`, body, options);
|
|
5033
|
-
}
|
|
5034
|
-
|
|
5035
|
-
/**
|
|
5036
|
-
* POST /menu/import - Import an existing Menu
|
|
5037
|
-
*
|
|
5038
|
-
* @param body
|
|
5039
|
-
* @param options - additional request options
|
|
5040
|
-
*/
|
|
5041
|
-
post_menu_import_menu(
|
|
5042
|
-
body: PostMenuImportMenuBody,
|
|
5043
|
-
options?: RequestOptions
|
|
5044
|
-
): ResponsePromise<PostMenuImportMenuResponse> {
|
|
5045
|
-
return this.request("menu", "post_menu_import_menu", "post", `/menu/import`, body, options);
|
|
5046
|
-
}
|
|
5047
|
-
|
|
5048
|
-
/**
|
|
5049
|
-
* GET /menu/item/{id} - Get menu item
|
|
5050
|
-
*
|
|
5051
|
-
* @param id - Item ID
|
|
5052
|
-
* @param options - additional request options
|
|
5053
|
-
*/
|
|
5054
|
-
get_menu_item(id: string, options?: RequestOptions): ResponsePromise<GetMenuItemResponse> {
|
|
5055
|
-
return this.request("menu", "get_menu_item", "get", `/menu/item/${id}`, null, options);
|
|
5056
|
-
}
|
|
5057
|
-
|
|
5058
|
-
/**
|
|
5059
|
-
* DELETE /menu/item/{id} - Delete a menu item
|
|
5060
|
-
*
|
|
5061
|
-
* @param id - Item ID
|
|
5062
|
-
* @param options - additional request options
|
|
5063
|
-
*/
|
|
5064
|
-
delete_menu_item(id: string, options?: RequestOptions): ResponsePromise<DeleteMenuItemResponse> {
|
|
5065
|
-
return this.request("menu", "delete_menu_item", "delete", `/menu/item/${id}`, null, options);
|
|
5066
|
-
}
|
|
5067
|
-
|
|
5068
|
-
/**
|
|
5069
|
-
* POST /menu/item - Create a menu item
|
|
5070
|
-
*
|
|
5071
|
-
* @param body
|
|
5072
|
-
* @param options - additional request options
|
|
5073
|
-
*/
|
|
5074
|
-
post_menu_item(
|
|
5075
|
-
body: PostMenuItemBody,
|
|
5076
|
-
options?: RequestOptions
|
|
5077
|
-
): ResponsePromise<PostMenuItemResponse> {
|
|
5078
|
-
return this.request("menu", "post_menu_item", "post", `/menu/item`, body, options);
|
|
5079
|
-
}
|
|
5080
|
-
|
|
5081
|
-
/**
|
|
5082
|
-
* GET /menu/items - Search for menu items
|
|
5083
|
-
*
|
|
5084
|
-
* @param options - additional request options
|
|
5085
|
-
*/
|
|
5086
|
-
get_menu_items(
|
|
5087
|
-
options: {
|
|
5088
|
-
query: GetMenuItemsQuery;
|
|
5089
|
-
} & RequestOptions
|
|
5090
|
-
): ResponsePromise<GetMenuItemsResponse> {
|
|
5091
|
-
return this.request("menu", "get_menu_items", "get", `/menu/items`, null, options);
|
|
5092
|
-
}
|
|
5093
|
-
|
|
5094
|
-
/**
|
|
5095
|
-
* POST /menu/items/import/{location} - trigger import items
|
|
5096
|
-
*
|
|
5097
|
-
* @param location - Location ID
|
|
5098
|
-
* @param options - additional request options
|
|
5099
|
-
*/
|
|
5100
|
-
post_menu_import_items_canteen(
|
|
5101
|
-
location: string,
|
|
5102
|
-
options?: RequestOptions
|
|
5103
|
-
): ResponsePromise<PostMenuImportItemsCanteenResponse> {
|
|
5104
|
-
return this.request(
|
|
5105
|
-
"menu",
|
|
5106
|
-
"post_menu_import_items_canteen",
|
|
5107
|
-
"post",
|
|
5108
|
-
`/menu/items/import/${location}`,
|
|
5109
|
-
null,
|
|
5110
|
-
options
|
|
5111
|
-
);
|
|
5112
|
-
}
|
|
5113
|
-
|
|
5114
|
-
/**
|
|
5115
|
-
* GET /menu/items/location/{location} - Get all menu items for a location
|
|
5116
|
-
*
|
|
5117
|
-
* @param location - Location ID
|
|
5118
|
-
* @param options - additional request options
|
|
5119
|
-
*/
|
|
5120
|
-
get_menu_location_items(
|
|
5121
|
-
location: string,
|
|
5122
|
-
options?: RequestOptions
|
|
5123
|
-
): ResponsePromise<GetMenuLocationItemsResponse> {
|
|
5124
|
-
return this.request(
|
|
5125
|
-
"menu",
|
|
5126
|
-
"get_menu_location_items",
|
|
5127
|
-
"get",
|
|
5128
|
-
`/menu/items/location/${location}`,
|
|
5129
|
-
null,
|
|
5130
|
-
options
|
|
5131
|
-
);
|
|
5132
|
-
}
|
|
5133
|
-
|
|
5134
|
-
/**
|
|
5135
|
-
* GET /menu/item/random/location/{location} - Get a random item
|
|
5136
|
-
*
|
|
5137
|
-
* @param location - Location ID
|
|
5138
|
-
* @param options - additional request options
|
|
5139
|
-
*/
|
|
5140
|
-
get_menu_location_item_random(
|
|
5141
|
-
location: string,
|
|
5142
|
-
options?: {
|
|
5143
|
-
query?: GetMenuLocationItemRandomQuery;
|
|
5144
|
-
} & RequestOptions
|
|
5145
|
-
): ResponsePromise<GetMenuLocationItemRandomResponse> {
|
|
5146
|
-
return this.request(
|
|
5147
|
-
"menu",
|
|
5148
|
-
"get_menu_location_item_random",
|
|
5149
|
-
"get",
|
|
5150
|
-
`/menu/item/random/location/${location}`,
|
|
5151
|
-
null,
|
|
5152
|
-
options
|
|
5153
|
-
);
|
|
5154
|
-
}
|
|
5155
|
-
|
|
5156
|
-
/**
|
|
5157
|
-
* GET /menu/items/random/location/{location} - Get a set of random items
|
|
5158
|
-
*
|
|
5159
|
-
* @param location - Location ID
|
|
5160
|
-
* @param options - additional request options
|
|
5161
|
-
*/
|
|
5162
|
-
get_menu_location_items_random(
|
|
5163
|
-
location: string,
|
|
5164
|
-
options?: {
|
|
5165
|
-
query?: GetMenuLocationItemsRandomQuery;
|
|
5166
|
-
} & RequestOptions
|
|
5167
|
-
): ResponsePromise<GetMenuLocationItemsRandomResponse> {
|
|
5168
|
-
return this.request(
|
|
5169
|
-
"menu",
|
|
5170
|
-
"get_menu_location_items_random",
|
|
5171
|
-
"get",
|
|
5172
|
-
`/menu/items/random/location/${location}`,
|
|
5173
|
-
null,
|
|
5174
|
-
options
|
|
5175
|
-
);
|
|
5176
|
-
}
|
|
5177
|
-
|
|
5178
|
-
/**
|
|
5179
|
-
* GET /menu/sector/{sector} - Get menus that belong to sector
|
|
5180
|
-
*
|
|
5181
|
-
* @param sector - Sector ID
|
|
5182
|
-
* @param options - additional request options
|
|
5183
|
-
*/
|
|
5184
|
-
get_menu_sector_menus(
|
|
5185
|
-
sector: string,
|
|
5186
|
-
options?: RequestOptions
|
|
5187
|
-
): ResponsePromise<GetMenuSectorMenusResponse> {
|
|
5188
|
-
return this.request(
|
|
5189
|
-
"menu",
|
|
5190
|
-
"get_menu_sector_menus",
|
|
5191
|
-
"get",
|
|
5192
|
-
`/menu/sector/${sector}`,
|
|
5193
|
-
null,
|
|
5194
|
-
options
|
|
5195
|
-
);
|
|
5196
|
-
}
|
|
5197
|
-
|
|
5198
|
-
/**
|
|
5199
|
-
* GET /menu/company/{company} - Get menus that belong to company
|
|
5200
|
-
*
|
|
5201
|
-
* @param company - Company ID
|
|
5202
|
-
* @param options - additional request options
|
|
5203
|
-
*/
|
|
5204
|
-
get_menu_company_menus(
|
|
5205
|
-
company: string,
|
|
5206
|
-
options?: RequestOptions
|
|
5207
|
-
): ResponsePromise<GetMenuCompanyMenusResponse> {
|
|
5208
|
-
return this.request(
|
|
5209
|
-
"menu",
|
|
5210
|
-
"get_menu_company_menus",
|
|
5211
|
-
"get",
|
|
5212
|
-
`/menu/company/${company}`,
|
|
5213
|
-
null,
|
|
5214
|
-
options
|
|
5215
|
-
);
|
|
5216
|
-
}
|
|
5217
|
-
|
|
5218
|
-
/**
|
|
5219
|
-
* POST /menu/modifier/group - Create a new Menu Modifier Group
|
|
5220
|
-
*
|
|
5221
|
-
* @param body
|
|
5222
|
-
* @param options - additional request options
|
|
5223
|
-
*/
|
|
5224
|
-
post_menu_modifier_group(
|
|
5225
|
-
body: PostMenuModifierGroupBody,
|
|
5226
|
-
options?: RequestOptions
|
|
5227
|
-
): ResponsePromise<PostMenuModifierGroupResponse> {
|
|
5228
|
-
return this.request(
|
|
5229
|
-
"menu",
|
|
5230
|
-
"post_menu_modifier_group",
|
|
5231
|
-
"post",
|
|
5232
|
-
`/menu/modifier/group`,
|
|
5233
|
-
body,
|
|
5234
|
-
options
|
|
5235
|
-
);
|
|
5236
|
-
}
|
|
5237
|
-
|
|
5238
|
-
/**
|
|
5239
|
-
* GET /menu/modifier/group/{id} - Get a Menu Modifier Group
|
|
5240
|
-
*
|
|
5241
|
-
* @param id - modifier_group
|
|
5242
|
-
* @param options - additional request options
|
|
5243
|
-
*/
|
|
5244
|
-
get_menu_modifier_group(
|
|
5245
|
-
id: string,
|
|
5246
|
-
options?: RequestOptions
|
|
5247
|
-
): ResponsePromise<GetMenuModifierGroupResponse> {
|
|
5248
|
-
return this.request(
|
|
5249
|
-
"menu",
|
|
5250
|
-
"get_menu_modifier_group",
|
|
5251
|
-
"get",
|
|
5252
|
-
`/menu/modifier/group/${id}`,
|
|
5253
|
-
null,
|
|
5254
|
-
options
|
|
5255
|
-
);
|
|
5256
|
-
}
|
|
5257
|
-
|
|
5258
|
-
/**
|
|
5259
|
-
* PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
|
|
5260
|
-
*
|
|
5261
|
-
* @param id - modifier_group
|
|
5262
|
-
* @param body
|
|
5263
|
-
* @param options - additional request options
|
|
5264
|
-
*/
|
|
5265
|
-
put_menu_modifier_group(
|
|
5266
|
-
id: string,
|
|
5267
|
-
body: PutMenuModifierGroupBody,
|
|
5268
|
-
options?: RequestOptions
|
|
5269
|
-
): ResponsePromise<PutMenuModifierGroupResponse> {
|
|
5270
|
-
return this.request(
|
|
5271
|
-
"menu",
|
|
5272
|
-
"put_menu_modifier_group",
|
|
5273
|
-
"put",
|
|
5274
|
-
`/menu/modifier/group/${id}`,
|
|
5275
|
-
body,
|
|
5276
|
-
options
|
|
5277
|
-
);
|
|
5278
|
-
}
|
|
5279
|
-
|
|
5280
|
-
/**
|
|
5281
|
-
* DELETE /menu/modifier/group/{id} - Delete a Menu Modifier Group
|
|
5282
|
-
*
|
|
5283
|
-
* @param id - modifier_group
|
|
5284
|
-
* @param options - additional request options
|
|
5285
|
-
*/
|
|
5286
|
-
delete_menu_modifier_group(
|
|
5287
|
-
id: string,
|
|
5288
|
-
options?: RequestOptions
|
|
5289
|
-
): ResponsePromise<DeleteMenuModifierGroupResponse> {
|
|
5290
|
-
return this.request(
|
|
5291
|
-
"menu",
|
|
5292
|
-
"delete_menu_modifier_group",
|
|
5293
|
-
"delete",
|
|
5294
|
-
`/menu/modifier/group/${id}`,
|
|
5295
|
-
null,
|
|
5296
|
-
options
|
|
5297
|
-
);
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
/**
|
|
5301
|
-
* GET /menu/modifier/group/company/{company} - Get the modifier groups that belong to company
|
|
5302
|
-
*
|
|
5303
|
-
* @param company - Company ID
|
|
5304
|
-
* @param options - additional request options
|
|
5305
|
-
*/
|
|
5306
|
-
get_menu_company_modifier_groups(
|
|
5307
|
-
company: string,
|
|
5308
|
-
options?: RequestOptions
|
|
5309
|
-
): ResponsePromise<GetMenuCompanyModifierGroupsResponse> {
|
|
5310
|
-
return this.request(
|
|
5311
|
-
"menu",
|
|
5312
|
-
"get_menu_company_modifier_groups",
|
|
5313
|
-
"get",
|
|
5314
|
-
`/menu/modifier/group/company/${company}`,
|
|
5315
|
-
null,
|
|
5316
|
-
options
|
|
5317
|
-
);
|
|
5318
|
-
}
|
|
5319
|
-
|
|
5320
|
-
/**
|
|
5321
|
-
* GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
|
|
5322
|
-
*
|
|
5323
|
-
* @param company - Company ID
|
|
5324
|
-
* @param options - additional request options
|
|
5325
|
-
*/
|
|
5326
|
-
get_menu_company_modifier_groups_export(
|
|
5327
|
-
company: string,
|
|
5328
|
-
options?: RequestOptions
|
|
5329
|
-
): ResponsePromise<GetMenuCompanyModifierGroupsExportResponse> {
|
|
5330
|
-
return this.request(
|
|
5331
|
-
"menu",
|
|
5332
|
-
"get_menu_company_modifier_groups_export",
|
|
5333
|
-
"get",
|
|
5334
|
-
`/menu/modifier/group/company/${company}/export`,
|
|
5335
|
-
null,
|
|
5336
|
-
options
|
|
5337
|
-
);
|
|
5338
|
-
}
|
|
5339
|
-
|
|
5340
|
-
/**
|
|
5341
|
-
* GET /menu/{id}/export - Export menu set to zipped excel file.
|
|
5342
|
-
*
|
|
5343
|
-
* @param id - menu; TODO: cannot use compassdigital.id as path parameter
|
|
5344
|
-
* @param options - additional request options
|
|
5345
|
-
*/
|
|
5346
|
-
get_menu_export(id: string, options?: RequestOptions): ResponsePromise<GetMenuExportResponse> {
|
|
5347
|
-
return this.request("menu", "get_menu_export", "get", `/menu/${id}/export`, null, options);
|
|
3686
|
+
): Promise<GetLoggerBrandStatusResponse> {
|
|
3687
|
+
return this.request("get", `/logger/${id}/brand/status`, null, options);
|
|
5348
3688
|
}
|
|
5349
3689
|
}
|