@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
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface Error {
|
|
4
2
|
error?: string;
|
|
5
3
|
message?: string;
|
|
@@ -47,8 +45,6 @@ export interface AuthPostBodyResponse {
|
|
|
47
45
|
export interface GetKdsDevicesQuery {
|
|
48
46
|
// Unit numbers string separated with commas
|
|
49
47
|
unitNumber: string;
|
|
50
|
-
// Do not return cached device information
|
|
51
|
-
nocache?: boolean;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
export type GetKdsDevicesResponse = Units;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface POS {
|
|
4
2
|
// pos
|
|
5
3
|
id?: string;
|
|
@@ -135,8 +133,6 @@ export interface Brand {
|
|
|
135
133
|
brand?: string;
|
|
136
134
|
// location
|
|
137
135
|
location?: string;
|
|
138
|
-
// location group
|
|
139
|
-
group?: string;
|
|
140
136
|
// payment
|
|
141
137
|
payment_provider?: string;
|
|
142
138
|
location_description?: string;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface CreateOrder {
|
|
4
2
|
// brand
|
|
5
3
|
location_brand?: string;
|
|
@@ -378,12 +376,12 @@ export interface GetOrderCustomerOrdersBrandRequest extends GetOrderCustomerOrde
|
|
|
378
376
|
|
|
379
377
|
// GET /order/location/brand/{id} - Get all orders for a location Brand
|
|
380
378
|
|
|
381
|
-
export interface
|
|
379
|
+
export interface GetOrderBrandOrdersPath {
|
|
382
380
|
// The location brand ID
|
|
383
381
|
id: string;
|
|
384
382
|
}
|
|
385
383
|
|
|
386
|
-
export interface
|
|
384
|
+
export interface GetOrderBrandOrdersQuery {
|
|
387
385
|
// Filter orders by their pickup date. Only return orders that have a date greater than or equal to the date in milliseconds.
|
|
388
386
|
pickup_start?: number;
|
|
389
387
|
// Filter orders by their pickup date. Only return orders that have a date less than or equal to the date in milliseconds.
|
|
@@ -400,11 +398,11 @@ export interface GetOrderLocationBrandQuery {
|
|
|
400
398
|
limit?: number;
|
|
401
399
|
}
|
|
402
400
|
|
|
403
|
-
export type
|
|
401
|
+
export type GetOrderBrandOrdersResponse = Orders;
|
|
404
402
|
|
|
405
|
-
export interface
|
|
406
|
-
extends
|
|
407
|
-
|
|
403
|
+
export interface GetOrderBrandOrdersRequest
|
|
404
|
+
extends GetOrderBrandOrdersQuery,
|
|
405
|
+
GetOrderBrandOrdersPath {}
|
|
408
406
|
|
|
409
407
|
// GET /order/location/{id} - Get all orders for a location
|
|
410
408
|
|
|
@@ -452,8 +450,6 @@ export interface GetOrderGroupOrdersQuery {
|
|
|
452
450
|
end?: number;
|
|
453
451
|
// Filter orders by their order type
|
|
454
452
|
order_type?: string;
|
|
455
|
-
// Filter orders by brand ID. Only return orders that involve brand ID, either as the only brand, or as part of a market place order.
|
|
456
|
-
brand?: string;
|
|
457
453
|
}
|
|
458
454
|
|
|
459
455
|
export interface GetOrderGroupOrdersResponse {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface Error {
|
|
4
2
|
message?: string;
|
|
5
3
|
code?: number;
|
|
@@ -291,8 +289,6 @@ export interface LocationGroup {
|
|
|
291
289
|
brand?: string;
|
|
292
290
|
// location
|
|
293
291
|
location?: string;
|
|
294
|
-
// location group
|
|
295
|
-
group?: string;
|
|
296
292
|
// payment
|
|
297
293
|
payment_provider?: string;
|
|
298
294
|
location_description?: string;
|
|
@@ -399,252 +395,6 @@ export type Hours = any;
|
|
|
399
395
|
|
|
400
396
|
export type DeliveryHours = any;
|
|
401
397
|
|
|
402
|
-
export interface Menu {
|
|
403
|
-
// menu
|
|
404
|
-
id?: string;
|
|
405
|
-
date?: {
|
|
406
|
-
created?: string;
|
|
407
|
-
modified?: string;
|
|
408
|
-
published?: string;
|
|
409
|
-
};
|
|
410
|
-
label?: {
|
|
411
|
-
en?: string;
|
|
412
|
-
};
|
|
413
|
-
groups?: {
|
|
414
|
-
// group
|
|
415
|
-
id?: string;
|
|
416
|
-
label?: {
|
|
417
|
-
en?: string;
|
|
418
|
-
fr?: string;
|
|
419
|
-
};
|
|
420
|
-
items?: {
|
|
421
|
-
// item
|
|
422
|
-
id?: string;
|
|
423
|
-
label?: {
|
|
424
|
-
en?: string;
|
|
425
|
-
};
|
|
426
|
-
description?: {
|
|
427
|
-
en?: string;
|
|
428
|
-
};
|
|
429
|
-
price?: {
|
|
430
|
-
amount?: number;
|
|
431
|
-
currency?: string;
|
|
432
|
-
};
|
|
433
|
-
// Meal exchange value of the item
|
|
434
|
-
meal_value?: number;
|
|
435
|
-
sale_price?: {
|
|
436
|
-
amount?: number;
|
|
437
|
-
currency?: string;
|
|
438
|
-
};
|
|
439
|
-
// The number of units that belong to this item. For example, a dozen doughnuts should have a unit value of 12
|
|
440
|
-
unit?: number;
|
|
441
|
-
ingredients?: any[];
|
|
442
|
-
amount_off_exclusions?: string[];
|
|
443
|
-
nutrition?: {
|
|
444
|
-
kcal?: number;
|
|
445
|
-
calories?: any;
|
|
446
|
-
serving_size?: any;
|
|
447
|
-
total_fat?: any;
|
|
448
|
-
saturated_fat?: any;
|
|
449
|
-
trans_fat?: any;
|
|
450
|
-
cholesterol?: any;
|
|
451
|
-
sodium?: {
|
|
452
|
-
amount?: number;
|
|
453
|
-
unit?: string;
|
|
454
|
-
};
|
|
455
|
-
total_carbohydrate?: any;
|
|
456
|
-
dietary_fiber?: any;
|
|
457
|
-
sugars?: any;
|
|
458
|
-
protein?: any;
|
|
459
|
-
well_being?: any;
|
|
460
|
-
[index: string]: any;
|
|
461
|
-
};
|
|
462
|
-
certified?: {
|
|
463
|
-
vegan?: boolean;
|
|
464
|
-
vegetarian?: boolean;
|
|
465
|
-
seafood_watch?: boolean;
|
|
466
|
-
wellbeing?: boolean;
|
|
467
|
-
farm_to_fork?: boolean;
|
|
468
|
-
in_balance?: boolean;
|
|
469
|
-
organic?: boolean;
|
|
470
|
-
no_gluten_ingredients?: boolean;
|
|
471
|
-
halal?: boolean;
|
|
472
|
-
kosher?: boolean;
|
|
473
|
-
humane?: boolean;
|
|
474
|
-
locally_crafted?: boolean;
|
|
475
|
-
nuts?: boolean;
|
|
476
|
-
oracle_garden_grown?: boolean;
|
|
477
|
-
oracle_oyes?: boolean;
|
|
478
|
-
peanut_free?: boolean;
|
|
479
|
-
tree_nut_free?: boolean;
|
|
480
|
-
wheat_free?: boolean;
|
|
481
|
-
non_gmo?: boolean;
|
|
482
|
-
milk_free?: boolean;
|
|
483
|
-
egg_free?: boolean;
|
|
484
|
-
soy_free?: boolean;
|
|
485
|
-
fair_trade?: boolean;
|
|
486
|
-
rainforest_alliance?: boolean;
|
|
487
|
-
salt_free?: boolean;
|
|
488
|
-
};
|
|
489
|
-
options?: {
|
|
490
|
-
// modifier_group
|
|
491
|
-
id?: string;
|
|
492
|
-
label?: {
|
|
493
|
-
en?: string;
|
|
494
|
-
};
|
|
495
|
-
unique_name?: string;
|
|
496
|
-
items?: {
|
|
497
|
-
// option
|
|
498
|
-
id?: string;
|
|
499
|
-
label?: {
|
|
500
|
-
en?: string;
|
|
501
|
-
};
|
|
502
|
-
price?: {
|
|
503
|
-
amount?: number;
|
|
504
|
-
currency?: string;
|
|
505
|
-
};
|
|
506
|
-
sku?: number;
|
|
507
|
-
nutrition?: {
|
|
508
|
-
kcal?: number;
|
|
509
|
-
calories?: any;
|
|
510
|
-
};
|
|
511
|
-
certified?: {
|
|
512
|
-
vegan?: boolean;
|
|
513
|
-
};
|
|
514
|
-
modifier_sets?: {
|
|
515
|
-
category?: string;
|
|
516
|
-
list?: string[];
|
|
517
|
-
}[];
|
|
518
|
-
meta?: {
|
|
519
|
-
// chit sort order
|
|
520
|
-
sort_number?: number;
|
|
521
|
-
// menu sort order
|
|
522
|
-
menu_sort_number?: number;
|
|
523
|
-
[index: string]: any;
|
|
524
|
-
};
|
|
525
|
-
is?: {
|
|
526
|
-
disabled?: boolean;
|
|
527
|
-
hidden?: boolean;
|
|
528
|
-
out_of_stock?: boolean;
|
|
529
|
-
};
|
|
530
|
-
amount_off_exclusions?: any[];
|
|
531
|
-
}[];
|
|
532
|
-
min?: number;
|
|
533
|
-
max?: number;
|
|
534
|
-
is?: {
|
|
535
|
-
disabled?: boolean;
|
|
536
|
-
hidden?: boolean;
|
|
537
|
-
out_of_stock?: boolean;
|
|
538
|
-
};
|
|
539
|
-
meta?: {
|
|
540
|
-
// chit sort order
|
|
541
|
-
sort_number?: number;
|
|
542
|
-
// menu sort order
|
|
543
|
-
menu_sort_number?: number;
|
|
544
|
-
[index: string]: any;
|
|
545
|
-
};
|
|
546
|
-
[index: string]: any;
|
|
547
|
-
}[];
|
|
548
|
-
required?: boolean;
|
|
549
|
-
special?: boolean;
|
|
550
|
-
meta?: {
|
|
551
|
-
superplate?: {
|
|
552
|
-
type_id?: number;
|
|
553
|
-
type?: string;
|
|
554
|
-
};
|
|
555
|
-
featured?: {
|
|
556
|
-
sort_number?: number;
|
|
557
|
-
dates?: {
|
|
558
|
-
start?: string;
|
|
559
|
-
end?: string;
|
|
560
|
-
};
|
|
561
|
-
};
|
|
562
|
-
// chit sort order
|
|
563
|
-
sort_number?: number;
|
|
564
|
-
// menu sort order
|
|
565
|
-
menu_sort_number?: number;
|
|
566
|
-
};
|
|
567
|
-
category?: {
|
|
568
|
-
en?: string;
|
|
569
|
-
};
|
|
570
|
-
location?: string;
|
|
571
|
-
sku?: number;
|
|
572
|
-
item_number?: number;
|
|
573
|
-
image?: {
|
|
574
|
-
src?: string;
|
|
575
|
-
};
|
|
576
|
-
is_deleted?: boolean;
|
|
577
|
-
is?: {
|
|
578
|
-
disabled?: boolean;
|
|
579
|
-
hidden?: boolean;
|
|
580
|
-
meq_eligible?: boolean;
|
|
581
|
-
out_of_stock?: boolean;
|
|
582
|
-
deleted?: boolean;
|
|
583
|
-
featured?: boolean;
|
|
584
|
-
};
|
|
585
|
-
}[];
|
|
586
|
-
is_disabled?: boolean;
|
|
587
|
-
name?: string;
|
|
588
|
-
is?: {
|
|
589
|
-
disabled?: boolean;
|
|
590
|
-
hidden?: boolean;
|
|
591
|
-
};
|
|
592
|
-
meta?: {
|
|
593
|
-
// chit sort order
|
|
594
|
-
sort_number?: number;
|
|
595
|
-
// menu sort order
|
|
596
|
-
menu_sort_number?: number;
|
|
597
|
-
[index: string]: any;
|
|
598
|
-
};
|
|
599
|
-
}[];
|
|
600
|
-
// menu
|
|
601
|
-
parent_id?: string;
|
|
602
|
-
// brand
|
|
603
|
-
location_brand?: string;
|
|
604
|
-
// company
|
|
605
|
-
company?: string;
|
|
606
|
-
// sector
|
|
607
|
-
sector?: string;
|
|
608
|
-
is?: {
|
|
609
|
-
disabled?: boolean;
|
|
610
|
-
hidden?: boolean;
|
|
611
|
-
linked?: boolean;
|
|
612
|
-
promo_exemptions_enabled?: boolean;
|
|
613
|
-
plu_enabled?: boolean;
|
|
614
|
-
item_images_enabled?: boolean;
|
|
615
|
-
item_showcase_enabled?: boolean;
|
|
616
|
-
item_desc_edit_enabled?: boolean;
|
|
617
|
-
calories_edit_enabled?: boolean;
|
|
618
|
-
item_label_edit_enabled?: boolean;
|
|
619
|
-
};
|
|
620
|
-
meta?: {
|
|
621
|
-
// User ID
|
|
622
|
-
locked_by_user?: string;
|
|
623
|
-
// User ID
|
|
624
|
-
last_modified_user?: string;
|
|
625
|
-
[index: string]: any;
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export type Group = any;
|
|
630
|
-
|
|
631
|
-
export interface CognitionStore {
|
|
632
|
-
// UUID for external store
|
|
633
|
-
uuid?: string;
|
|
634
|
-
// Store name
|
|
635
|
-
name?: string;
|
|
636
|
-
// Full address
|
|
637
|
-
address?: string;
|
|
638
|
-
city?: string;
|
|
639
|
-
state?: string;
|
|
640
|
-
// Abbreviated address
|
|
641
|
-
street_address?: string;
|
|
642
|
-
// ISO code for currency
|
|
643
|
-
currency_code?: string;
|
|
644
|
-
latitude?: number;
|
|
645
|
-
longitude?: number;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
398
|
export interface CoolrLocations {
|
|
649
399
|
// location
|
|
650
400
|
id?: string;
|
|
@@ -664,14 +414,14 @@ export type CoolrImages = any[];
|
|
|
664
414
|
// POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
|
|
665
415
|
|
|
666
416
|
export interface PostPartnerStandardcognitionShoppingcartBody {
|
|
667
|
-
items
|
|
417
|
+
items?: {
|
|
668
418
|
sku?: string;
|
|
669
419
|
quantity?: number;
|
|
670
420
|
}[];
|
|
671
421
|
// brand
|
|
672
|
-
location_brand
|
|
673
|
-
//
|
|
674
|
-
shoppingcart
|
|
422
|
+
location_brand?: string;
|
|
423
|
+
// shoppingcart
|
|
424
|
+
shoppingcart?: string;
|
|
675
425
|
}
|
|
676
426
|
|
|
677
427
|
export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCart;
|
|
@@ -688,31 +438,6 @@ export interface GetPartnerStandardcognitionLocationsResponse {
|
|
|
688
438
|
|
|
689
439
|
export type GetPartnerStandardcognitionLocationsRequest = {};
|
|
690
440
|
|
|
691
|
-
// GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
|
|
692
|
-
|
|
693
|
-
export type GetPartnerStandardcognitionStoresResponse = CognitionStore;
|
|
694
|
-
|
|
695
|
-
export type GetPartnerStandardcognitionStoresRequest = {};
|
|
696
|
-
|
|
697
|
-
// POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
|
|
698
|
-
|
|
699
|
-
export interface PostPartnerStandardcognitionMenuBody {
|
|
700
|
-
// CDL company ID
|
|
701
|
-
company: string;
|
|
702
|
-
// CDL sector ID
|
|
703
|
-
sector: string;
|
|
704
|
-
// CDL location brand ID
|
|
705
|
-
location_brand: string;
|
|
706
|
-
// Link for S3 menu file provided by Standard Cognition
|
|
707
|
-
s3_link: string;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
export type PostPartnerStandardcognitionMenuResponse = Menu;
|
|
711
|
-
|
|
712
|
-
export interface PostPartnerStandardcognitionMenuRequest {
|
|
713
|
-
body: PostPartnerStandardcognitionMenuBody;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
441
|
// GET /partner/coolr/locations - Gets the locations where Coolr is available
|
|
717
442
|
|
|
718
443
|
export interface GetPartnerCoolrLocationsResponse {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface Transaction {
|
|
4
2
|
success?: boolean;
|
|
5
3
|
[index: string]: any;
|
|
@@ -206,8 +204,6 @@ export interface PostPaymentPaymenttokenBody {
|
|
|
206
204
|
options?: Options;
|
|
207
205
|
// postal or zip code
|
|
208
206
|
postal_code?: string;
|
|
209
|
-
// flag to determine if the card should be saved or used once
|
|
210
|
-
use_card_once?: boolean;
|
|
211
207
|
}
|
|
212
208
|
|
|
213
209
|
export type PostPaymentPaymenttokenResponse = PaymentMethod;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
-
|
|
3
1
|
export interface Error {
|
|
4
2
|
message?: string;
|
|
5
3
|
code?: number;
|
|
@@ -358,13 +356,9 @@ export interface PatchUserAuthKdsPath {
|
|
|
358
356
|
device_id: string;
|
|
359
357
|
}
|
|
360
358
|
|
|
361
|
-
export type PatchUserAuthKdsBody = KDSDevice["device"];
|
|
362
|
-
|
|
363
359
|
export type PatchUserAuthKdsResponse = KDSDevice;
|
|
364
360
|
|
|
365
|
-
export interface PatchUserAuthKdsRequest extends PatchUserAuthKdsPath {
|
|
366
|
-
body: PatchUserAuthKdsBody;
|
|
367
|
-
}
|
|
361
|
+
export interface PatchUserAuthKdsRequest extends PatchUserAuthKdsPath {}
|
|
368
362
|
|
|
369
363
|
// POST /user/{id}/changepassword - Change the users password
|
|
370
364
|
|
package/template.ejs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { BaseServiceClient, RequestOptions
|
|
3
|
-
export * from "./base";
|
|
2
|
+
import { BaseServiceClient, RequestOptions } from "./base";
|
|
4
3
|
|
|
5
4
|
export class ServiceClient extends BaseServiceClient {
|
|
6
5
|
|
|
@@ -14,7 +13,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
14
13
|
* @param <%- param.name %><%- param.description ? " - " + param.description : "" %>
|
|
15
14
|
<% } -%>
|
|
16
15
|
*/
|
|
17
|
-
<%- name %>(<% for (let i = 0; i < params.length; i++) { %><%- i > 0 ? ", " : "" %><%- params[i].name %><%= params[i].required ? "" : "?" %>: <%- params[i].type %><% } %>):
|
|
16
|
+
<%- name %>(<% for (let i = 0; i < params.length; i++) { %><%- i > 0 ? ", " : "" %><%- params[i].name %><%= params[i].required ? "" : "?" %>: <%- params[i].type %><% } %>): Promise<<%= response %>> {
|
|
18
17
|
return this.request(<% for (let i = 0; i < args.length; i++) { %><%- i > 0 ? ", " : "" %><%- args[i] %><% } %>);
|
|
19
18
|
}
|
|
20
19
|
<% } %>
|