@compassdigital/sdk.typescript 4.29.0 → 4.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +5 -0
- package/lib/base.js +5 -5
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +67 -28
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +73 -31
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +2 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/location.d.ts +3 -3
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +68 -4
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +3 -2
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +0 -11
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +67 -0
- package/lib/interface/tax.d.ts.map +1 -0
- package/lib/interface/tax.js +5 -0
- package/lib/interface/tax.js.map +1 -0
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +144 -48
- package/src/interface/consumer.ts +3 -1
- package/src/interface/location.ts +3 -3
- package/src/interface/menu.ts +99 -4
- package/src/interface/partner.ts +3 -2
- package/src/interface/payment.ts +8 -28
- package/src/interface/promo.ts +2 -4
- package/src/interface/shoppingcart.ts +3 -3
- package/src/interface/tax.ts +113 -0
package/src/index.ts
CHANGED
|
@@ -13,8 +13,6 @@ import {
|
|
|
13
13
|
PostPaymentConsumerResponse,
|
|
14
14
|
PostPaymentMethodBody,
|
|
15
15
|
PostPaymentMethodResponse,
|
|
16
|
-
DeletePaymentMethodBody,
|
|
17
|
-
DeletePaymentMethodResponse,
|
|
18
16
|
GetPaymentTokenQuery,
|
|
19
17
|
GetPaymentTokenResponse,
|
|
20
18
|
PostPaymentTokenBody,
|
|
@@ -549,6 +547,14 @@ import {
|
|
|
549
547
|
GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse,
|
|
550
548
|
PostMenuV3LocalMenuGroupImportBrandsQuery,
|
|
551
549
|
PostMenuV3LocalMenuGroupImportBrandsResponse,
|
|
550
|
+
GetMenuV3LocalMenuGroupSiteQuery,
|
|
551
|
+
GetMenuV3LocalMenuGroupSiteResponse,
|
|
552
|
+
GetMenuV3LocalMenuGroupMenuGroupQuery,
|
|
553
|
+
GetMenuV3LocalMenuGroupMenuGroupResponse,
|
|
554
|
+
PostMenuV3LocalMenuGroupsSiteGroupsBody,
|
|
555
|
+
PostMenuV3LocalMenuGroupsSiteGroupsResponse,
|
|
556
|
+
DeleteMenuV3LocalMenuGroupsSiteGroupsBody,
|
|
557
|
+
DeleteMenuV3LocalMenuGroupsSiteGroupsResponse,
|
|
552
558
|
PostMenuV3GlobalMenuGroupBody,
|
|
553
559
|
PostMenuV3GlobalMenuGroupResponse,
|
|
554
560
|
GetMenuV3GlobalMenuGroupQuery,
|
|
@@ -931,6 +937,13 @@ import {
|
|
|
931
937
|
GetCentricosLookerEmbedurlResponse,
|
|
932
938
|
} from "./interface/centricos";
|
|
933
939
|
|
|
940
|
+
import {
|
|
941
|
+
TaxHealthCheckQuery,
|
|
942
|
+
TaxHealthCheckResponse,
|
|
943
|
+
QuoteBody,
|
|
944
|
+
QuoteResponse,
|
|
945
|
+
} from "./interface/tax";
|
|
946
|
+
|
|
934
947
|
import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
|
|
935
948
|
export * from "./base";
|
|
936
949
|
|
|
@@ -938,7 +951,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
938
951
|
/**
|
|
939
952
|
* POST /payment/{id}/transaction
|
|
940
953
|
*
|
|
941
|
-
* @param id -
|
|
954
|
+
* @param id - Payment ID
|
|
942
955
|
* @param body
|
|
943
956
|
* @param options - additional request options
|
|
944
957
|
*/
|
|
@@ -960,8 +973,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
960
973
|
/**
|
|
961
974
|
* POST /payment/{id}/transaction/{transaction_id}/refund
|
|
962
975
|
*
|
|
963
|
-
* @param id -
|
|
964
|
-
* @param transaction_id -
|
|
976
|
+
* @param id - Payment ID
|
|
977
|
+
* @param transaction_id - Transaction ID
|
|
965
978
|
* @param body
|
|
966
979
|
* @param options - additional request options
|
|
967
980
|
*/
|
|
@@ -984,7 +997,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
984
997
|
/**
|
|
985
998
|
* GET /payment/{id}/clienttoken
|
|
986
999
|
*
|
|
987
|
-
* @param id -
|
|
1000
|
+
* @param id - Payment ID
|
|
988
1001
|
* @param options - additional request options
|
|
989
1002
|
*/
|
|
990
1003
|
get_payment_clienttoken(
|
|
@@ -1006,7 +1019,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1006
1019
|
/**
|
|
1007
1020
|
* POST /payment/{id}/paymenttoken
|
|
1008
1021
|
*
|
|
1009
|
-
* @param id -
|
|
1022
|
+
* @param id - Payment ID
|
|
1010
1023
|
* @param body
|
|
1011
1024
|
* @param options - additional request options
|
|
1012
1025
|
*/
|
|
@@ -1058,30 +1071,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1058
1071
|
return this.request("payment", "post_payment_method", "post", `/payment/method`, body, options);
|
|
1059
1072
|
}
|
|
1060
1073
|
|
|
1061
|
-
/**
|
|
1062
|
-
* DELETE /payment/{id}/method/{method_id}
|
|
1063
|
-
*
|
|
1064
|
-
* @param id - TODO: add parameter to swagger.json
|
|
1065
|
-
* @param method_id - TODO: add parameter to swagger.json
|
|
1066
|
-
* @param body
|
|
1067
|
-
* @param options - additional request options
|
|
1068
|
-
*/
|
|
1069
|
-
delete_payment_method(
|
|
1070
|
-
id: string,
|
|
1071
|
-
method_id: string,
|
|
1072
|
-
body: DeletePaymentMethodBody,
|
|
1073
|
-
options?: RequestOptions,
|
|
1074
|
-
): ResponsePromise<DeletePaymentMethodResponse> {
|
|
1075
|
-
return this.request(
|
|
1076
|
-
"payment",
|
|
1077
|
-
"delete_payment_method",
|
|
1078
|
-
"delete",
|
|
1079
|
-
`/payment/${id}/method/${method_id}`,
|
|
1080
|
-
body,
|
|
1081
|
-
options,
|
|
1082
|
-
);
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
1074
|
/**
|
|
1086
1075
|
* GET /payment/token
|
|
1087
1076
|
*
|
|
@@ -1170,7 +1159,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1170
1159
|
/**
|
|
1171
1160
|
* GET /payment/{id}/cashless
|
|
1172
1161
|
*
|
|
1173
|
-
* @param id -
|
|
1162
|
+
* @param id - Payment ID
|
|
1174
1163
|
* @param options - additional request options
|
|
1175
1164
|
*/
|
|
1176
1165
|
get_payment_cashless(
|
|
@@ -1192,7 +1181,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1192
1181
|
/**
|
|
1193
1182
|
* POST /payment/{id}/cashless
|
|
1194
1183
|
*
|
|
1195
|
-
* @param id -
|
|
1184
|
+
* @param id - Payment ID
|
|
1196
1185
|
* @param body
|
|
1197
1186
|
* @param options - additional request options
|
|
1198
1187
|
*/
|
|
@@ -1214,7 +1203,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1214
1203
|
/**
|
|
1215
1204
|
* DELETE /payment/{id}/cashless
|
|
1216
1205
|
*
|
|
1217
|
-
* @param id -
|
|
1206
|
+
* @param id - Payment ID
|
|
1218
1207
|
* @param body
|
|
1219
1208
|
* @param options - additional request options
|
|
1220
1209
|
*/
|
|
@@ -2573,7 +2562,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2573
2562
|
}
|
|
2574
2563
|
|
|
2575
2564
|
/**
|
|
2576
|
-
* POST /shoppingcart
|
|
2565
|
+
* POST /shoppingcart - Create a new ShoppingCart
|
|
2577
2566
|
*
|
|
2578
2567
|
* @param body
|
|
2579
2568
|
* @param options - additional request options
|
|
@@ -2586,7 +2575,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2586
2575
|
"shoppingcart",
|
|
2587
2576
|
"post_shoppingcart_cart",
|
|
2588
2577
|
"post",
|
|
2589
|
-
`/shoppingcart
|
|
2578
|
+
`/shoppingcart`,
|
|
2590
2579
|
body,
|
|
2591
2580
|
options,
|
|
2592
2581
|
);
|
|
@@ -2723,7 +2712,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2723
2712
|
}
|
|
2724
2713
|
|
|
2725
2714
|
/**
|
|
2726
|
-
* PUT /shoppingcart/{id}/paymentmethod
|
|
2715
|
+
* PUT /shoppingcart/{id}/paymentmethod - Change payment method used in shopping cart
|
|
2727
2716
|
*
|
|
2728
2717
|
* @param id - Shopping cart ID
|
|
2729
2718
|
* @param body
|
|
@@ -2738,7 +2727,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2738
2727
|
"shoppingcart",
|
|
2739
2728
|
"put_shoppingcart_cart_payment",
|
|
2740
2729
|
"put",
|
|
2741
|
-
`/shoppingcart/${id}/paymentmethod
|
|
2730
|
+
`/shoppingcart/${id}/paymentmethod`,
|
|
2742
2731
|
body,
|
|
2743
2732
|
options,
|
|
2744
2733
|
);
|
|
@@ -2767,7 +2756,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2767
2756
|
}
|
|
2768
2757
|
|
|
2769
2758
|
/**
|
|
2770
|
-
* PUT /shoppingcart/{id}/order
|
|
2759
|
+
* PUT /shoppingcart/{id}/order - Store information about the order created with this shopping cart
|
|
2771
2760
|
*
|
|
2772
2761
|
* @param id - Shopping cart ID
|
|
2773
2762
|
* @param body
|
|
@@ -2782,7 +2771,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2782
2771
|
"shoppingcart",
|
|
2783
2772
|
"put_shoppingcart_cart_order",
|
|
2784
2773
|
"put",
|
|
2785
|
-
`/shoppingcart/${id}/order
|
|
2774
|
+
`/shoppingcart/${id}/order`,
|
|
2786
2775
|
body,
|
|
2787
2776
|
options,
|
|
2788
2777
|
);
|
|
@@ -3668,7 +3657,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3668
3657
|
/**
|
|
3669
3658
|
* PUT /promo/voucher/{id} - Update voucher
|
|
3670
3659
|
*
|
|
3671
|
-
* @param id
|
|
3660
|
+
* @param id
|
|
3672
3661
|
* @param body
|
|
3673
3662
|
* @param options - additional request options
|
|
3674
3663
|
*/
|
|
@@ -3683,7 +3672,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3683
3672
|
/**
|
|
3684
3673
|
* DELETE /promo/voucher/{id} - Delete voucher
|
|
3685
3674
|
*
|
|
3686
|
-
* @param id
|
|
3675
|
+
* @param id
|
|
3687
3676
|
* @param options - additional request options
|
|
3688
3677
|
*/
|
|
3689
3678
|
delete_promo_voucher(
|
|
@@ -3703,7 +3692,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3703
3692
|
}
|
|
3704
3693
|
|
|
3705
3694
|
/**
|
|
3706
|
-
* POST /promo/customer
|
|
3695
|
+
* POST /promo/customer - Add user to voucherify
|
|
3707
3696
|
*
|
|
3708
3697
|
* @param body
|
|
3709
3698
|
* @param options - additional request options
|
|
@@ -3712,11 +3701,11 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3712
3701
|
body: PostPromoCustomerBody,
|
|
3713
3702
|
options?: RequestOptions,
|
|
3714
3703
|
): ResponsePromise<PostPromoCustomerResponse> {
|
|
3715
|
-
return this.request("promo", "post_promo_customer", "post", `/promo/customer
|
|
3704
|
+
return this.request("promo", "post_promo_customer", "post", `/promo/customer`, body, options);
|
|
3716
3705
|
}
|
|
3717
3706
|
|
|
3718
3707
|
/**
|
|
3719
|
-
* DELETE /promo/customer
|
|
3708
|
+
* DELETE /promo/customer - Delete user from voucherify
|
|
3720
3709
|
*
|
|
3721
3710
|
* @param body
|
|
3722
3711
|
* @param options - additional request options
|
|
@@ -3729,7 +3718,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3729
3718
|
"promo",
|
|
3730
3719
|
"delete_promo_customer",
|
|
3731
3720
|
"delete",
|
|
3732
|
-
`/promo/customer
|
|
3721
|
+
`/promo/customer`,
|
|
3733
3722
|
body,
|
|
3734
3723
|
options,
|
|
3735
3724
|
);
|
|
@@ -5768,6 +5757,90 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5768
5757
|
);
|
|
5769
5758
|
}
|
|
5770
5759
|
|
|
5760
|
+
/**
|
|
5761
|
+
* GET /menu/v3/local-menu-group/{id}/site
|
|
5762
|
+
*
|
|
5763
|
+
* @param id
|
|
5764
|
+
* @param options - additional request options
|
|
5765
|
+
*/
|
|
5766
|
+
get_menu_v3_local_menu_group_site(
|
|
5767
|
+
id: string,
|
|
5768
|
+
options?: {
|
|
5769
|
+
query?: GetMenuV3LocalMenuGroupSiteQuery;
|
|
5770
|
+
} & RequestOptions,
|
|
5771
|
+
): ResponsePromise<GetMenuV3LocalMenuGroupSiteResponse> {
|
|
5772
|
+
return this.request(
|
|
5773
|
+
"menu",
|
|
5774
|
+
"get_menu_v3_local_menu_group_site",
|
|
5775
|
+
"get",
|
|
5776
|
+
`/menu/v3/local-menu-group/${id}/site`,
|
|
5777
|
+
null,
|
|
5778
|
+
options,
|
|
5779
|
+
);
|
|
5780
|
+
}
|
|
5781
|
+
|
|
5782
|
+
/**
|
|
5783
|
+
* GET /menu/v3/local-menu-group/{id}/menu-group
|
|
5784
|
+
*
|
|
5785
|
+
* @param id
|
|
5786
|
+
* @param options - additional request options
|
|
5787
|
+
*/
|
|
5788
|
+
get_menu_v3_local_menu_group_menu_group(
|
|
5789
|
+
id: string,
|
|
5790
|
+
options?: {
|
|
5791
|
+
query?: GetMenuV3LocalMenuGroupMenuGroupQuery;
|
|
5792
|
+
} & RequestOptions,
|
|
5793
|
+
): ResponsePromise<GetMenuV3LocalMenuGroupMenuGroupResponse> {
|
|
5794
|
+
return this.request(
|
|
5795
|
+
"menu",
|
|
5796
|
+
"get_menu_v3_local_menu_group_menu_group",
|
|
5797
|
+
"get",
|
|
5798
|
+
`/menu/v3/local-menu-group/${id}/menu-group`,
|
|
5799
|
+
null,
|
|
5800
|
+
options,
|
|
5801
|
+
);
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
/**
|
|
5805
|
+
* POST /menu/v3/local-menu-groups/site-groups
|
|
5806
|
+
*
|
|
5807
|
+
* @param body
|
|
5808
|
+
* @param options - additional request options
|
|
5809
|
+
*/
|
|
5810
|
+
post_menu_v3_local_menu_groups_site_groups(
|
|
5811
|
+
body: PostMenuV3LocalMenuGroupsSiteGroupsBody,
|
|
5812
|
+
options?: RequestOptions,
|
|
5813
|
+
): ResponsePromise<PostMenuV3LocalMenuGroupsSiteGroupsResponse> {
|
|
5814
|
+
return this.request(
|
|
5815
|
+
"menu",
|
|
5816
|
+
"post_menu_v3_local_menu_groups_site_groups",
|
|
5817
|
+
"post",
|
|
5818
|
+
`/menu/v3/local-menu-groups/site-groups`,
|
|
5819
|
+
body,
|
|
5820
|
+
options,
|
|
5821
|
+
);
|
|
5822
|
+
}
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* DELETE /menu/v3/local-menu-groups/site-groups
|
|
5826
|
+
*
|
|
5827
|
+
* @param body
|
|
5828
|
+
* @param options - additional request options
|
|
5829
|
+
*/
|
|
5830
|
+
delete_menu_v3_local_menu_groups_site_groups(
|
|
5831
|
+
body: DeleteMenuV3LocalMenuGroupsSiteGroupsBody,
|
|
5832
|
+
options?: RequestOptions,
|
|
5833
|
+
): ResponsePromise<DeleteMenuV3LocalMenuGroupsSiteGroupsResponse> {
|
|
5834
|
+
return this.request(
|
|
5835
|
+
"menu",
|
|
5836
|
+
"delete_menu_v3_local_menu_groups_site_groups",
|
|
5837
|
+
"delete",
|
|
5838
|
+
`/menu/v3/local-menu-groups/site-groups`,
|
|
5839
|
+
body,
|
|
5840
|
+
options,
|
|
5841
|
+
);
|
|
5842
|
+
}
|
|
5843
|
+
|
|
5771
5844
|
/**
|
|
5772
5845
|
* POST /menu/v3/global-menu-group
|
|
5773
5846
|
*
|
|
@@ -9290,8 +9363,8 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9290
9363
|
* @param options - additional request options
|
|
9291
9364
|
*/
|
|
9292
9365
|
get_payment_list_by_brand(
|
|
9293
|
-
options
|
|
9294
|
-
query
|
|
9366
|
+
options?: {
|
|
9367
|
+
query?: GetPaymentListByBrandQuery;
|
|
9295
9368
|
} & RequestOptions,
|
|
9296
9369
|
): ResponsePromise<GetPaymentListByBrandResponse> {
|
|
9297
9370
|
return this.request(
|
|
@@ -9509,4 +9582,27 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
9509
9582
|
options,
|
|
9510
9583
|
);
|
|
9511
9584
|
}
|
|
9585
|
+
|
|
9586
|
+
/**
|
|
9587
|
+
* GET /tax/v1/health-check - Health Check
|
|
9588
|
+
*
|
|
9589
|
+
* @param options - additional request options
|
|
9590
|
+
*/
|
|
9591
|
+
tax_health_check(
|
|
9592
|
+
options?: {
|
|
9593
|
+
query?: TaxHealthCheckQuery;
|
|
9594
|
+
} & RequestOptions,
|
|
9595
|
+
): ResponsePromise<TaxHealthCheckResponse> {
|
|
9596
|
+
return this.request("tax", "tax_health_check", "get", `/tax/v1/health-check`, null, options);
|
|
9597
|
+
}
|
|
9598
|
+
|
|
9599
|
+
/**
|
|
9600
|
+
* POST /tax/quote - get tax quote from 3rd party tax library
|
|
9601
|
+
*
|
|
9602
|
+
* @param body
|
|
9603
|
+
* @param options - additional request options
|
|
9604
|
+
*/
|
|
9605
|
+
quote(body: QuoteBody, options?: RequestOptions): ResponsePromise<QuoteResponse> {
|
|
9606
|
+
return this.request("tax", "quote", "post", `/tax/quote`, body, options);
|
|
9607
|
+
}
|
|
9512
9608
|
}
|
|
@@ -93,7 +93,9 @@ export interface HealthCheckControllerExecuteRequest
|
|
|
93
93
|
|
|
94
94
|
export interface GetPaymentListByBrandQuery {
|
|
95
95
|
// Brand ID as Encoded CDL ID
|
|
96
|
-
brandID
|
|
96
|
+
brandID?: string;
|
|
97
|
+
// Site ID as Encoded CDL ID
|
|
98
|
+
siteID?: string;
|
|
97
99
|
// Graphql query string
|
|
98
100
|
_query?: string;
|
|
99
101
|
}
|
|
@@ -257,8 +257,8 @@ export interface Location {
|
|
|
257
257
|
en?: string;
|
|
258
258
|
fr?: string;
|
|
259
259
|
};
|
|
260
|
-
hours?:
|
|
261
|
-
deliveryHours?:
|
|
260
|
+
hours?: Hours[];
|
|
261
|
+
deliveryHours?: DeliveryHours[];
|
|
262
262
|
service_fee?: {
|
|
263
263
|
type?: string;
|
|
264
264
|
value?: number;
|
|
@@ -521,7 +521,7 @@ export interface GetLocationQuery {
|
|
|
521
521
|
// When fetching location, brands will come with private and public configs
|
|
522
522
|
include_brands_config?: boolean;
|
|
523
523
|
// active cafes
|
|
524
|
-
active_cafes?:
|
|
524
|
+
active_cafes?: string[];
|
|
525
525
|
// show additional hidden properties/entities
|
|
526
526
|
extended?: boolean;
|
|
527
527
|
// Graphql query string
|
package/src/interface/menu.ts
CHANGED
|
@@ -34,7 +34,6 @@ export interface Menu {
|
|
|
34
34
|
item_desc_edit_enabled?: boolean;
|
|
35
35
|
calories_edit_enabled?: boolean;
|
|
36
36
|
item_label_edit_enabled?: boolean;
|
|
37
|
-
frictionless?: boolean;
|
|
38
37
|
};
|
|
39
38
|
meta?: {
|
|
40
39
|
// User ID
|
|
@@ -645,6 +644,7 @@ export interface DraftModifierGroupDTO {
|
|
|
645
644
|
order_type?: "selection" | "option" | "quantity";
|
|
646
645
|
sizing?: string;
|
|
647
646
|
is_out_of_stock?: FilterFieldDTO;
|
|
647
|
+
is_incremental?: FilterFieldDTO;
|
|
648
648
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
649
649
|
brand?: Record<string, any>;
|
|
650
650
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -749,7 +749,6 @@ export interface MenuWorksDTO {
|
|
|
749
749
|
portion_unit_name?: FilterFieldDTO;
|
|
750
750
|
grams?: number;
|
|
751
751
|
cost?: number;
|
|
752
|
-
calories?: number;
|
|
753
752
|
id?: Record<string, any>;
|
|
754
753
|
[index: string]: any;
|
|
755
754
|
}
|
|
@@ -835,6 +834,23 @@ export interface BrandStatusDTO {
|
|
|
835
834
|
[index: string]: any;
|
|
836
835
|
}
|
|
837
836
|
|
|
837
|
+
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
838
|
+
site_id: string;
|
|
839
|
+
local_menu_group_id: string;
|
|
840
|
+
local_menu_group_name: string;
|
|
841
|
+
created_at?: string;
|
|
842
|
+
updated_at?: string;
|
|
843
|
+
[index: string]: any;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
export interface SiteGroupDTO {
|
|
847
|
+
site_id: string;
|
|
848
|
+
local_menu_group_id: string;
|
|
849
|
+
created_at?: string;
|
|
850
|
+
updated_at?: string;
|
|
851
|
+
[index: string]: any;
|
|
852
|
+
}
|
|
853
|
+
|
|
838
854
|
export interface DraftMenuDraftMenuDTO {
|
|
839
855
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
840
856
|
parent_id?: FilterFieldDTO;
|
|
@@ -907,6 +923,7 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
907
923
|
order_type?: FilterFieldDTO;
|
|
908
924
|
sizing?: FilterFieldDTO;
|
|
909
925
|
is_out_of_stock?: FilterFieldDTO;
|
|
926
|
+
is_incremental?: FilterFieldDTO;
|
|
910
927
|
id?: FilterFieldDTO;
|
|
911
928
|
version?: FilterFieldDTO;
|
|
912
929
|
created_at?: FilterFieldDTO;
|
|
@@ -1107,6 +1124,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
1107
1124
|
order_type?: "selection" | "option" | "quantity";
|
|
1108
1125
|
sizing?: string;
|
|
1109
1126
|
is_out_of_stock?: boolean;
|
|
1127
|
+
is_incremental?: boolean;
|
|
1110
1128
|
permissions?: Record<string, any>;
|
|
1111
1129
|
[index: string]: any;
|
|
1112
1130
|
}
|
|
@@ -1671,6 +1689,7 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1671
1689
|
order_type?: FilterFieldDTO;
|
|
1672
1690
|
sizing?: FilterFieldDTO;
|
|
1673
1691
|
is_out_of_stock?: FilterFieldDTO;
|
|
1692
|
+
is_incremental?: FilterFieldDTO;
|
|
1674
1693
|
id?: FilterFieldDTO;
|
|
1675
1694
|
version?: FilterFieldDTO;
|
|
1676
1695
|
created_at?: FilterFieldDTO;
|
|
@@ -1896,6 +1915,8 @@ export interface GetMenuQuery {
|
|
|
1896
1915
|
show_unlinked?: boolean;
|
|
1897
1916
|
// Show items and modifiers with weight
|
|
1898
1917
|
include_items_with_weight?: boolean;
|
|
1918
|
+
// Show out of stock entities, lower in priority to hidden and disabled
|
|
1919
|
+
show_out_of_stock?: boolean;
|
|
1899
1920
|
// Graphql query string
|
|
1900
1921
|
_query?: string;
|
|
1901
1922
|
nocache?: boolean;
|
|
@@ -2706,6 +2727,76 @@ export interface PostMenuV3LocalMenuGroupImportBrandsRequest
|
|
|
2706
2727
|
RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
|
|
2707
2728
|
PostMenuV3LocalMenuGroupImportBrandsPath {}
|
|
2708
2729
|
|
|
2730
|
+
// GET /menu/v3/local-menu-group/{id}/site
|
|
2731
|
+
|
|
2732
|
+
export interface GetMenuV3LocalMenuGroupSitePath {
|
|
2733
|
+
id: string;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
export interface GetMenuV3LocalMenuGroupSiteQuery {
|
|
2737
|
+
// Graphql query string
|
|
2738
|
+
_query?: string;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
export interface GetMenuV3LocalMenuGroupSiteResponse {
|
|
2742
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
export interface GetMenuV3LocalMenuGroupSiteRequest
|
|
2746
|
+
extends BaseRequest,
|
|
2747
|
+
RequestQuery<GetMenuV3LocalMenuGroupSiteQuery>,
|
|
2748
|
+
GetMenuV3LocalMenuGroupSitePath {}
|
|
2749
|
+
|
|
2750
|
+
// GET /menu/v3/local-menu-group/{id}/menu-group
|
|
2751
|
+
|
|
2752
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupPath {
|
|
2753
|
+
id: string;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupQuery {
|
|
2757
|
+
// Graphql query string
|
|
2758
|
+
_query?: string;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupResponse {
|
|
2762
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
export interface GetMenuV3LocalMenuGroupMenuGroupRequest
|
|
2766
|
+
extends BaseRequest,
|
|
2767
|
+
RequestQuery<GetMenuV3LocalMenuGroupMenuGroupQuery>,
|
|
2768
|
+
GetMenuV3LocalMenuGroupMenuGroupPath {}
|
|
2769
|
+
|
|
2770
|
+
// POST /menu/v3/local-menu-groups/site-groups
|
|
2771
|
+
|
|
2772
|
+
export type PostMenuV3LocalMenuGroupsSiteGroupsBody = {
|
|
2773
|
+
site_id: string;
|
|
2774
|
+
local_menu_group_id: string;
|
|
2775
|
+
created_at?: string;
|
|
2776
|
+
updated_at?: string;
|
|
2777
|
+
[index: string]: any;
|
|
2778
|
+
}[];
|
|
2779
|
+
|
|
2780
|
+
export interface PostMenuV3LocalMenuGroupsSiteGroupsResponse {
|
|
2781
|
+
results?: SiteGroupDTO[];
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
export interface PostMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
|
|
2785
|
+
body: PostMenuV3LocalMenuGroupsSiteGroupsBody;
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
// DELETE /menu/v3/local-menu-groups/site-groups
|
|
2789
|
+
|
|
2790
|
+
export type DeleteMenuV3LocalMenuGroupsSiteGroupsBody = SiteGroupDTO[];
|
|
2791
|
+
|
|
2792
|
+
export interface DeleteMenuV3LocalMenuGroupsSiteGroupsResponse {
|
|
2793
|
+
results?: SiteGroupDTO[];
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
export interface DeleteMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
|
|
2797
|
+
body: DeleteMenuV3LocalMenuGroupsSiteGroupsBody;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2709
2800
|
// POST /menu/v3/global-menu-group
|
|
2710
2801
|
|
|
2711
2802
|
export interface PostMenuV3GlobalMenuGroupBody {
|
|
@@ -5396,6 +5487,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
5396
5487
|
order_type?: "selection" | "option" | "quantity";
|
|
5397
5488
|
sizing?: string;
|
|
5398
5489
|
is_out_of_stock?: boolean;
|
|
5490
|
+
is_incremental?: boolean;
|
|
5399
5491
|
id?: Record<string, any>;
|
|
5400
5492
|
applied_diff_snapshot?: Record<string, any>;
|
|
5401
5493
|
brand?: DraftBrandDTO;
|
|
@@ -5456,6 +5548,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
5456
5548
|
order_type?: "selection" | "option" | "quantity";
|
|
5457
5549
|
sizing?: string;
|
|
5458
5550
|
is_out_of_stock?: boolean;
|
|
5551
|
+
is_incremental?: boolean;
|
|
5459
5552
|
applied_diff_snapshot?: Record<string, any>;
|
|
5460
5553
|
version?: number;
|
|
5461
5554
|
brand?: DraftBrandDTO;
|
|
@@ -5536,6 +5629,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
5536
5629
|
order_type?: "selection" | "option" | "quantity";
|
|
5537
5630
|
sizing?: string;
|
|
5538
5631
|
is_out_of_stock?: boolean;
|
|
5632
|
+
is_incremental?: boolean;
|
|
5539
5633
|
id?: Record<string, any>;
|
|
5540
5634
|
applied_diff_snapshot?: Record<string, any>;
|
|
5541
5635
|
brand?: DraftBrandDTO;
|
|
@@ -5601,6 +5695,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
5601
5695
|
order_type?: "selection" | "option" | "quantity";
|
|
5602
5696
|
sizing?: string;
|
|
5603
5697
|
is_out_of_stock?: boolean;
|
|
5698
|
+
is_incremental?: boolean;
|
|
5604
5699
|
applied_diff_snapshot?: Record<string, any>;
|
|
5605
5700
|
version?: number;
|
|
5606
5701
|
brand?: DraftBrandDTO;
|
|
@@ -6433,19 +6528,19 @@ export interface GetMenuV3GlobalDiffsCountRequest
|
|
|
6433
6528
|
|
|
6434
6529
|
export interface GetMenuV3MenuworksQuery {
|
|
6435
6530
|
unit_id?: string;
|
|
6436
|
-
MRN?:
|
|
6531
|
+
MRN?: number;
|
|
6437
6532
|
// Graphql query string
|
|
6438
6533
|
_query?: string;
|
|
6439
6534
|
}
|
|
6440
6535
|
|
|
6441
6536
|
export interface GetMenuV3MenuworksResponse {
|
|
6537
|
+
calories?: number;
|
|
6442
6538
|
MRN?: string;
|
|
6443
6539
|
unit_id?: string;
|
|
6444
6540
|
portion_quantity?: number;
|
|
6445
6541
|
portion_unit_name?: string;
|
|
6446
6542
|
grams?: number;
|
|
6447
6543
|
cost?: number;
|
|
6448
|
-
calories?: number;
|
|
6449
6544
|
[index: string]: any;
|
|
6450
6545
|
}
|
|
6451
6546
|
|
package/src/interface/partner.ts
CHANGED
|
@@ -335,8 +335,8 @@ export interface Location {
|
|
|
335
335
|
en?: string;
|
|
336
336
|
fr?: string;
|
|
337
337
|
};
|
|
338
|
-
hours?:
|
|
339
|
-
deliveryHours?:
|
|
338
|
+
hours?: Hours[];
|
|
339
|
+
deliveryHours?: DeliveryHours[];
|
|
340
340
|
service_fee?: {
|
|
341
341
|
type?: string;
|
|
342
342
|
value?: number;
|
|
@@ -574,6 +574,7 @@ export interface Menu {
|
|
|
574
574
|
item_desc_edit_enabled?: boolean;
|
|
575
575
|
calories_edit_enabled?: boolean;
|
|
576
576
|
item_label_edit_enabled?: boolean;
|
|
577
|
+
frictionless?: boolean;
|
|
577
578
|
};
|
|
578
579
|
meta?: {
|
|
579
580
|
// User ID
|