@compassdigital/sdk.typescript 3.43.1 → 3.44.1
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 +14 -8
- package/lib/base.d.ts +4 -0
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +24 -1
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +75 -29
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +80 -26
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +2 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +102 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +3 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +0 -19
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +0 -12
- package/lib/interface/payment.d.ts.map +1 -1
- package/package.json +5 -5
- package/pipeline.yml +0 -2
- package/src/base.ts +28 -1
- package/src/index.ts +185 -70
- package/src/interface/location.ts +4 -0
- package/src/interface/menu.ts +171 -0
- package/src/interface/order.ts +4 -0
- package/src/interface/partner.ts +0 -36
- package/src/interface/payment.ts +0 -23
package/src/index.ts
CHANGED
|
@@ -13,8 +13,6 @@ import {
|
|
|
13
13
|
PostPaymentConsumerResponse,
|
|
14
14
|
PostPaymentMethodBody,
|
|
15
15
|
PostPaymentMethodResponse,
|
|
16
|
-
GetPaymentMethodQuery,
|
|
17
|
-
GetPaymentMethodResponse,
|
|
18
16
|
DeletePaymentMethodBody,
|
|
19
17
|
DeletePaymentMethodResponse,
|
|
20
18
|
GetPaymentTokenQuery,
|
|
@@ -210,10 +208,6 @@ import {
|
|
|
210
208
|
GetPartnerStandardcognitionStoresResponse,
|
|
211
209
|
PostPartnerStandardcognitionMenuBody,
|
|
212
210
|
PostPartnerStandardcognitionMenuResponse,
|
|
213
|
-
GetPartnerCoolrLocationsQuery,
|
|
214
|
-
GetPartnerCoolrLocationsResponse,
|
|
215
|
-
GetPartnerCoolrImagesQuery,
|
|
216
|
-
GetPartnerCoolrImagesResponse,
|
|
217
211
|
GetPartnerSwaggerQuery,
|
|
218
212
|
GetPartnerSwaggerResponse,
|
|
219
213
|
} from "./interface/partner";
|
|
@@ -477,6 +471,24 @@ import {
|
|
|
477
471
|
PatchMenuV2ModifierGroupResponse,
|
|
478
472
|
GetMenuV2ModifierGroupCountQuery,
|
|
479
473
|
GetMenuV2ModifierGroupCountResponse,
|
|
474
|
+
GetMenuV2ModifierGroupRelationshipsModifiersQuery,
|
|
475
|
+
GetMenuV2ModifierGroupRelationshipsModifiersResponse,
|
|
476
|
+
PostMenuV2ModifierGroupRelationshipsModifierBody,
|
|
477
|
+
PostMenuV2ModifierGroupRelationshipsModifierResponse,
|
|
478
|
+
GetMenuV2ModifierGroupRelationshipsModifierQuery,
|
|
479
|
+
GetMenuV2ModifierGroupRelationshipsModifierResponse,
|
|
480
|
+
PatchMenuV2ModifierGroupRelationshipsModifierBody,
|
|
481
|
+
PatchMenuV2ModifierGroupRelationshipsModifierResponse,
|
|
482
|
+
GetMenuV2ItemsQuery,
|
|
483
|
+
GetMenuV2ItemsResponse,
|
|
484
|
+
GetMenuV2ItemQuery,
|
|
485
|
+
GetMenuV2ItemResponse,
|
|
486
|
+
PatchMenuV2ItemBody,
|
|
487
|
+
PatchMenuV2ItemResponse,
|
|
488
|
+
PostMenuV2ItemBody,
|
|
489
|
+
PostMenuV2ItemResponse,
|
|
490
|
+
GetMenuV2ItemsCountQuery,
|
|
491
|
+
GetMenuV2ItemsCountResponse,
|
|
480
492
|
GetMenuClientQuery,
|
|
481
493
|
GetMenuClientResponse,
|
|
482
494
|
GetMenusQuery,
|
|
@@ -780,28 +792,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
780
792
|
return this.request("payment", "post_payment_method", "post", `/payment/method`, body, options);
|
|
781
793
|
}
|
|
782
794
|
|
|
783
|
-
/**
|
|
784
|
-
* GET /payment/{id}/method - Get a users available payment methods
|
|
785
|
-
*
|
|
786
|
-
* @param id - TODO: add parameter to swagger.json
|
|
787
|
-
* @param options - additional request options
|
|
788
|
-
*/
|
|
789
|
-
get_payment_method(
|
|
790
|
-
id: string,
|
|
791
|
-
options: {
|
|
792
|
-
query: GetPaymentMethodQuery;
|
|
793
|
-
} & RequestOptions
|
|
794
|
-
): ResponsePromise<GetPaymentMethodResponse> {
|
|
795
|
-
return this.request(
|
|
796
|
-
"payment",
|
|
797
|
-
"get_payment_method",
|
|
798
|
-
"get",
|
|
799
|
-
`/payment/${id}/method`,
|
|
800
|
-
null,
|
|
801
|
-
options
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
795
|
/**
|
|
806
796
|
* DELETE /payment/{id}/method/{method_id}
|
|
807
797
|
*
|
|
@@ -2678,48 +2668,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2678
2668
|
);
|
|
2679
2669
|
}
|
|
2680
2670
|
|
|
2681
|
-
/**
|
|
2682
|
-
* GET /partner/coolr/locations - Gets the locations where Coolr is available
|
|
2683
|
-
*
|
|
2684
|
-
* @param options - additional request options
|
|
2685
|
-
*/
|
|
2686
|
-
get_partner_coolr_locations(
|
|
2687
|
-
options?: {
|
|
2688
|
-
query?: GetPartnerCoolrLocationsQuery;
|
|
2689
|
-
} & RequestOptions
|
|
2690
|
-
): ResponsePromise<GetPartnerCoolrLocationsResponse> {
|
|
2691
|
-
return this.request(
|
|
2692
|
-
"partner",
|
|
2693
|
-
"get_partner_coolr_locations",
|
|
2694
|
-
"get",
|
|
2695
|
-
`/partner/coolr/locations`,
|
|
2696
|
-
null,
|
|
2697
|
-
options
|
|
2698
|
-
);
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
/**
|
|
2702
|
-
* GET /partner/coolr/{id}/images - Gets the latest images for Coolr Location AssetID
|
|
2703
|
-
*
|
|
2704
|
-
* @param id - location
|
|
2705
|
-
* @param options - additional request options
|
|
2706
|
-
*/
|
|
2707
|
-
get_partner_coolr_images(
|
|
2708
|
-
id: string,
|
|
2709
|
-
options?: {
|
|
2710
|
-
query?: GetPartnerCoolrImagesQuery;
|
|
2711
|
-
} & RequestOptions
|
|
2712
|
-
): ResponsePromise<GetPartnerCoolrImagesResponse> {
|
|
2713
|
-
return this.request(
|
|
2714
|
-
"partner",
|
|
2715
|
-
"get_partner_coolr_images",
|
|
2716
|
-
"get",
|
|
2717
|
-
`/partner/coolr/${id}/images`,
|
|
2718
|
-
null,
|
|
2719
|
-
options
|
|
2720
|
-
);
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
2671
|
/**
|
|
2724
2672
|
* GET /partner/swagger.json
|
|
2725
2673
|
*
|
|
@@ -4865,6 +4813,173 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4865
4813
|
);
|
|
4866
4814
|
}
|
|
4867
4815
|
|
|
4816
|
+
/**
|
|
4817
|
+
* GET /menu/v2/modifier-group/relationships/modifiers
|
|
4818
|
+
*
|
|
4819
|
+
* @param options - additional request options
|
|
4820
|
+
*/
|
|
4821
|
+
get_menu_v2_modifier_group_relationships_modifiers(
|
|
4822
|
+
options?: {
|
|
4823
|
+
query?: GetMenuV2ModifierGroupRelationshipsModifiersQuery;
|
|
4824
|
+
} & RequestOptions
|
|
4825
|
+
): ResponsePromise<GetMenuV2ModifierGroupRelationshipsModifiersResponse> {
|
|
4826
|
+
return this.request(
|
|
4827
|
+
"menu",
|
|
4828
|
+
"get_menu_v2_modifier_group_relationships_modifiers",
|
|
4829
|
+
"get",
|
|
4830
|
+
`/menu/v2/modifier-group/relationships/modifiers`,
|
|
4831
|
+
null,
|
|
4832
|
+
options
|
|
4833
|
+
);
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4836
|
+
/**
|
|
4837
|
+
* POST /menu/v2/modifier-group/relationships/modifier
|
|
4838
|
+
*
|
|
4839
|
+
* @param body
|
|
4840
|
+
* @param options - additional request options
|
|
4841
|
+
*/
|
|
4842
|
+
post_menu_v2_modifier_group_relationships_modifier(
|
|
4843
|
+
body: PostMenuV2ModifierGroupRelationshipsModifierBody,
|
|
4844
|
+
options?: RequestOptions
|
|
4845
|
+
): ResponsePromise<PostMenuV2ModifierGroupRelationshipsModifierResponse> {
|
|
4846
|
+
return this.request(
|
|
4847
|
+
"menu",
|
|
4848
|
+
"post_menu_v2_modifier_group_relationships_modifier",
|
|
4849
|
+
"post",
|
|
4850
|
+
`/menu/v2/modifier-group/relationships/modifier`,
|
|
4851
|
+
body,
|
|
4852
|
+
options
|
|
4853
|
+
);
|
|
4854
|
+
}
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* GET /menu/v2/modifier-group/relationships/modifier/{id}
|
|
4858
|
+
*
|
|
4859
|
+
* @param id
|
|
4860
|
+
* @param options - additional request options
|
|
4861
|
+
*/
|
|
4862
|
+
get_menu_v2_modifier_group_relationships_modifier(
|
|
4863
|
+
id: string,
|
|
4864
|
+
options?: {
|
|
4865
|
+
query?: GetMenuV2ModifierGroupRelationshipsModifierQuery;
|
|
4866
|
+
} & RequestOptions
|
|
4867
|
+
): ResponsePromise<GetMenuV2ModifierGroupRelationshipsModifierResponse> {
|
|
4868
|
+
return this.request(
|
|
4869
|
+
"menu",
|
|
4870
|
+
"get_menu_v2_modifier_group_relationships_modifier",
|
|
4871
|
+
"get",
|
|
4872
|
+
`/menu/v2/modifier-group/relationships/modifier/${id}`,
|
|
4873
|
+
null,
|
|
4874
|
+
options
|
|
4875
|
+
);
|
|
4876
|
+
}
|
|
4877
|
+
|
|
4878
|
+
/**
|
|
4879
|
+
* PATCH /menu/v2/modifier-group/relationships/modifier/{id}
|
|
4880
|
+
*
|
|
4881
|
+
* @param id
|
|
4882
|
+
* @param body
|
|
4883
|
+
* @param options - additional request options
|
|
4884
|
+
*/
|
|
4885
|
+
patch_menu_v2_modifier_group_relationships_modifier(
|
|
4886
|
+
id: string,
|
|
4887
|
+
body: PatchMenuV2ModifierGroupRelationshipsModifierBody,
|
|
4888
|
+
options?: RequestOptions
|
|
4889
|
+
): ResponsePromise<PatchMenuV2ModifierGroupRelationshipsModifierResponse> {
|
|
4890
|
+
return this.request(
|
|
4891
|
+
"menu",
|
|
4892
|
+
"patch_menu_v2_modifier_group_relationships_modifier",
|
|
4893
|
+
"patch",
|
|
4894
|
+
`/menu/v2/modifier-group/relationships/modifier/${id}`,
|
|
4895
|
+
body,
|
|
4896
|
+
options
|
|
4897
|
+
);
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
* GET /menu/v2/items
|
|
4902
|
+
*
|
|
4903
|
+
* @param options - additional request options
|
|
4904
|
+
*/
|
|
4905
|
+
get_menu_v2_items(
|
|
4906
|
+
options?: {
|
|
4907
|
+
query?: GetMenuV2ItemsQuery;
|
|
4908
|
+
} & RequestOptions
|
|
4909
|
+
): ResponsePromise<GetMenuV2ItemsResponse> {
|
|
4910
|
+
return this.request("menu", "get_menu_v2_items", "get", `/menu/v2/items`, null, options);
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
/**
|
|
4914
|
+
* GET /menu/v2/item/{id}
|
|
4915
|
+
*
|
|
4916
|
+
* @param id
|
|
4917
|
+
* @param options - additional request options
|
|
4918
|
+
*/
|
|
4919
|
+
get_menu_v2_item(
|
|
4920
|
+
id: string,
|
|
4921
|
+
options?: {
|
|
4922
|
+
query?: GetMenuV2ItemQuery;
|
|
4923
|
+
} & RequestOptions
|
|
4924
|
+
): ResponsePromise<GetMenuV2ItemResponse> {
|
|
4925
|
+
return this.request("menu", "get_menu_v2_item", "get", `/menu/v2/item/${id}`, null, options);
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
/**
|
|
4929
|
+
* PATCH /menu/v2/item/{id}
|
|
4930
|
+
*
|
|
4931
|
+
* @param id
|
|
4932
|
+
* @param body
|
|
4933
|
+
* @param options - additional request options
|
|
4934
|
+
*/
|
|
4935
|
+
patch_menu_v2_item(
|
|
4936
|
+
id: string,
|
|
4937
|
+
body: PatchMenuV2ItemBody,
|
|
4938
|
+
options?: RequestOptions
|
|
4939
|
+
): ResponsePromise<PatchMenuV2ItemResponse> {
|
|
4940
|
+
return this.request(
|
|
4941
|
+
"menu",
|
|
4942
|
+
"patch_menu_v2_item",
|
|
4943
|
+
"patch",
|
|
4944
|
+
`/menu/v2/item/${id}`,
|
|
4945
|
+
body,
|
|
4946
|
+
options
|
|
4947
|
+
);
|
|
4948
|
+
}
|
|
4949
|
+
|
|
4950
|
+
/**
|
|
4951
|
+
* POST /menu/v2/item
|
|
4952
|
+
*
|
|
4953
|
+
* @param body
|
|
4954
|
+
* @param options - additional request options
|
|
4955
|
+
*/
|
|
4956
|
+
post_menu_v2_item(
|
|
4957
|
+
body: PostMenuV2ItemBody,
|
|
4958
|
+
options?: RequestOptions
|
|
4959
|
+
): ResponsePromise<PostMenuV2ItemResponse> {
|
|
4960
|
+
return this.request("menu", "post_menu_v2_item", "post", `/menu/v2/item`, body, options);
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
/**
|
|
4964
|
+
* GET /menu/v2/items/count
|
|
4965
|
+
*
|
|
4966
|
+
* @param options - additional request options
|
|
4967
|
+
*/
|
|
4968
|
+
get_menu_v2_items_count(
|
|
4969
|
+
options?: {
|
|
4970
|
+
query?: GetMenuV2ItemsCountQuery;
|
|
4971
|
+
} & RequestOptions
|
|
4972
|
+
): ResponsePromise<GetMenuV2ItemsCountResponse> {
|
|
4973
|
+
return this.request(
|
|
4974
|
+
"menu",
|
|
4975
|
+
"get_menu_v2_items_count",
|
|
4976
|
+
"get",
|
|
4977
|
+
`/menu/v2/items/count`,
|
|
4978
|
+
null,
|
|
4979
|
+
options
|
|
4980
|
+
);
|
|
4981
|
+
}
|
|
4982
|
+
|
|
4868
4983
|
/**
|
|
4869
4984
|
* GET /menu/client/{client_id} - Get menu client
|
|
4870
4985
|
*
|
|
@@ -758,6 +758,8 @@ export interface GetLocationGroupQuery {
|
|
|
758
758
|
non_market_places?: boolean;
|
|
759
759
|
// return only groups with non-scan & go locations/brands
|
|
760
760
|
non_scan_go?: boolean;
|
|
761
|
+
// determine whether to calculate estimated_wait_time
|
|
762
|
+
include_estimated_wait_time?: number;
|
|
761
763
|
// Graphql query string
|
|
762
764
|
_query?: string;
|
|
763
765
|
nocache?: boolean;
|
|
@@ -1206,6 +1208,8 @@ export interface GetLocationBrandQuery {
|
|
|
1206
1208
|
include_config?: boolean;
|
|
1207
1209
|
// show additional hidden properties/entities
|
|
1208
1210
|
extended?: boolean;
|
|
1211
|
+
// determine whether to calculate estimated_wait_time
|
|
1212
|
+
include_estimated_wait_time?: number;
|
|
1209
1213
|
// Graphql query string
|
|
1210
1214
|
_query?: string;
|
|
1211
1215
|
nocache?: boolean;
|
package/src/interface/menu.ts
CHANGED
|
@@ -12,6 +12,16 @@ export interface ModifierGroupsListResponse {
|
|
|
12
12
|
results?: ModifierGroup[];
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export interface ItemsListResponse {
|
|
16
|
+
meta?: Meta;
|
|
17
|
+
results?: LocalItem[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ModifierGroupToModifierRelationshipListResponse {
|
|
21
|
+
meta?: Meta;
|
|
22
|
+
results?: ModifierGroupToModifierRelationship[];
|
|
23
|
+
}
|
|
24
|
+
|
|
15
25
|
export interface Meta {
|
|
16
26
|
limit?: number;
|
|
17
27
|
page?: number;
|
|
@@ -28,6 +38,7 @@ export interface Modifier {
|
|
|
28
38
|
id?: string;
|
|
29
39
|
name?: string;
|
|
30
40
|
description?: string;
|
|
41
|
+
label?: string;
|
|
31
42
|
price?: number;
|
|
32
43
|
calories?: number;
|
|
33
44
|
posid?: string;
|
|
@@ -53,6 +64,37 @@ export interface ModifierGroup {
|
|
|
53
64
|
[index: string]: any;
|
|
54
65
|
}
|
|
55
66
|
|
|
67
|
+
export interface LocalItem {
|
|
68
|
+
id?: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
label?: string;
|
|
72
|
+
price?: number;
|
|
73
|
+
calories?: number;
|
|
74
|
+
posid?: string;
|
|
75
|
+
barcode?: string;
|
|
76
|
+
tax_tags?: string[];
|
|
77
|
+
is_active?: boolean;
|
|
78
|
+
is_in_stock?: boolean;
|
|
79
|
+
created_at?: string;
|
|
80
|
+
updated_at?: string;
|
|
81
|
+
deleted_at?: string;
|
|
82
|
+
[index: string]: any;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ModifierGroupToModifierRelationship {
|
|
86
|
+
id?: string;
|
|
87
|
+
modifier?: Modifier;
|
|
88
|
+
modifier_id?: string;
|
|
89
|
+
modifier_group?: ModifierGroup;
|
|
90
|
+
modifier_group_id?: string;
|
|
91
|
+
sequence?: number;
|
|
92
|
+
created_at?: string;
|
|
93
|
+
updated_at?: string;
|
|
94
|
+
deleted_at?: string;
|
|
95
|
+
[index: string]: any;
|
|
96
|
+
}
|
|
97
|
+
|
|
56
98
|
export interface Menu {
|
|
57
99
|
// menu
|
|
58
100
|
id?: string;
|
|
@@ -490,6 +532,135 @@ export interface GetMenuV2ModifierGroupCountRequest
|
|
|
490
532
|
extends BaseRequest,
|
|
491
533
|
RequestQuery<GetMenuV2ModifierGroupCountQuery> {}
|
|
492
534
|
|
|
535
|
+
// GET /menu/v2/modifier-group/relationships/modifiers
|
|
536
|
+
|
|
537
|
+
export interface GetMenuV2ModifierGroupRelationshipsModifiersQuery {
|
|
538
|
+
// Graphql query string
|
|
539
|
+
_query?: string;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export type GetMenuV2ModifierGroupRelationshipsModifiersResponse =
|
|
543
|
+
ModifierGroupToModifierRelationshipListResponse;
|
|
544
|
+
|
|
545
|
+
export interface GetMenuV2ModifierGroupRelationshipsModifiersRequest
|
|
546
|
+
extends BaseRequest,
|
|
547
|
+
RequestQuery<GetMenuV2ModifierGroupRelationshipsModifiersQuery> {}
|
|
548
|
+
|
|
549
|
+
// POST /menu/v2/modifier-group/relationships/modifier
|
|
550
|
+
|
|
551
|
+
export type PostMenuV2ModifierGroupRelationshipsModifierBody = ModifierGroupToModifierRelationship;
|
|
552
|
+
|
|
553
|
+
export type PostMenuV2ModifierGroupRelationshipsModifierResponse =
|
|
554
|
+
ModifierGroupToModifierRelationship;
|
|
555
|
+
|
|
556
|
+
export interface PostMenuV2ModifierGroupRelationshipsModifierRequest extends BaseRequest {
|
|
557
|
+
body: PostMenuV2ModifierGroupRelationshipsModifierBody;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// GET /menu/v2/modifier-group/relationships/modifier/{id}
|
|
561
|
+
|
|
562
|
+
export interface GetMenuV2ModifierGroupRelationshipsModifierPath {
|
|
563
|
+
id: string;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export interface GetMenuV2ModifierGroupRelationshipsModifierQuery {
|
|
567
|
+
// Graphql query string
|
|
568
|
+
_query?: string;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export type GetMenuV2ModifierGroupRelationshipsModifierResponse =
|
|
572
|
+
ModifierGroupToModifierRelationship;
|
|
573
|
+
|
|
574
|
+
export interface GetMenuV2ModifierGroupRelationshipsModifierRequest
|
|
575
|
+
extends BaseRequest,
|
|
576
|
+
RequestQuery<GetMenuV2ModifierGroupRelationshipsModifierQuery>,
|
|
577
|
+
GetMenuV2ModifierGroupRelationshipsModifierPath {}
|
|
578
|
+
|
|
579
|
+
// PATCH /menu/v2/modifier-group/relationships/modifier/{id}
|
|
580
|
+
|
|
581
|
+
export interface PatchMenuV2ModifierGroupRelationshipsModifierPath {
|
|
582
|
+
id: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export type PatchMenuV2ModifierGroupRelationshipsModifierBody = ModifierGroupToModifierRelationship;
|
|
586
|
+
|
|
587
|
+
export type PatchMenuV2ModifierGroupRelationshipsModifierResponse =
|
|
588
|
+
ModifierGroupToModifierRelationship;
|
|
589
|
+
|
|
590
|
+
export interface PatchMenuV2ModifierGroupRelationshipsModifierRequest
|
|
591
|
+
extends BaseRequest,
|
|
592
|
+
PatchMenuV2ModifierGroupRelationshipsModifierPath {
|
|
593
|
+
body: PatchMenuV2ModifierGroupRelationshipsModifierBody;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// GET /menu/v2/items
|
|
597
|
+
|
|
598
|
+
export interface GetMenuV2ItemsQuery {
|
|
599
|
+
// Graphql query string
|
|
600
|
+
_query?: string;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export type GetMenuV2ItemsResponse = ItemsListResponse;
|
|
604
|
+
|
|
605
|
+
export interface GetMenuV2ItemsRequest extends BaseRequest, RequestQuery<GetMenuV2ItemsQuery> {}
|
|
606
|
+
|
|
607
|
+
// GET /menu/v2/item/{id}
|
|
608
|
+
|
|
609
|
+
export interface GetMenuV2ItemPath {
|
|
610
|
+
id: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface GetMenuV2ItemQuery {
|
|
614
|
+
// Graphql query string
|
|
615
|
+
_query?: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export type GetMenuV2ItemResponse = LocalItem;
|
|
619
|
+
|
|
620
|
+
export interface GetMenuV2ItemRequest
|
|
621
|
+
extends BaseRequest,
|
|
622
|
+
RequestQuery<GetMenuV2ItemQuery>,
|
|
623
|
+
GetMenuV2ItemPath {}
|
|
624
|
+
|
|
625
|
+
// PATCH /menu/v2/item/{id}
|
|
626
|
+
|
|
627
|
+
export interface PatchMenuV2ItemPath {
|
|
628
|
+
id: string;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export type PatchMenuV2ItemBody = LocalItem;
|
|
632
|
+
|
|
633
|
+
export type PatchMenuV2ItemResponse = LocalItem;
|
|
634
|
+
|
|
635
|
+
export interface PatchMenuV2ItemRequest extends BaseRequest, PatchMenuV2ItemPath {
|
|
636
|
+
body: PatchMenuV2ItemBody;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// POST /menu/v2/item
|
|
640
|
+
|
|
641
|
+
export type PostMenuV2ItemBody = LocalItem;
|
|
642
|
+
|
|
643
|
+
export type PostMenuV2ItemResponse = LocalItem;
|
|
644
|
+
|
|
645
|
+
export interface PostMenuV2ItemRequest extends BaseRequest {
|
|
646
|
+
body: PostMenuV2ItemBody;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// GET /menu/v2/items/count
|
|
650
|
+
|
|
651
|
+
export interface GetMenuV2ItemsCountQuery {
|
|
652
|
+
// Graphql query string
|
|
653
|
+
_query?: string;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export interface GetMenuV2ItemsCountResponse {
|
|
657
|
+
count?: number;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export interface GetMenuV2ItemsCountRequest
|
|
661
|
+
extends BaseRequest,
|
|
662
|
+
RequestQuery<GetMenuV2ItemsCountQuery> {}
|
|
663
|
+
|
|
493
664
|
// GET /menu/client/{client_id} - Get menu client
|
|
494
665
|
|
|
495
666
|
export interface GetMenuClientPath {
|
package/src/interface/order.ts
CHANGED
|
@@ -153,6 +153,10 @@ export interface Order {
|
|
|
153
153
|
total?: {
|
|
154
154
|
amount?: number;
|
|
155
155
|
};
|
|
156
|
+
// Total of first cart on order. Carts can change after refunds, so this is original value
|
|
157
|
+
original_total?: {
|
|
158
|
+
amount?: number;
|
|
159
|
+
};
|
|
156
160
|
[index: string]: any;
|
|
157
161
|
};
|
|
158
162
|
[index: string]: any;
|
package/src/interface/partner.ts
CHANGED
|
@@ -828,42 +828,6 @@ export interface PostPartnerStandardcognitionMenuRequest extends BaseRequest {
|
|
|
828
828
|
body: PostPartnerStandardcognitionMenuBody;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
// GET /partner/coolr/locations - Gets the locations where Coolr is available
|
|
832
|
-
|
|
833
|
-
export interface GetPartnerCoolrLocationsQuery {
|
|
834
|
-
// Graphql query string
|
|
835
|
-
_query?: string;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export interface GetPartnerCoolrLocationsResponse {
|
|
839
|
-
locations?: CoolrLocations[];
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
export interface GetPartnerCoolrLocationsRequest
|
|
843
|
-
extends BaseRequest,
|
|
844
|
-
RequestQuery<GetPartnerCoolrLocationsQuery> {}
|
|
845
|
-
|
|
846
|
-
// GET /partner/coolr/{id}/images - Gets the latest images for Coolr Location AssetID
|
|
847
|
-
|
|
848
|
-
export interface GetPartnerCoolrImagesPath {
|
|
849
|
-
// location
|
|
850
|
-
id: string;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
export interface GetPartnerCoolrImagesQuery {
|
|
854
|
-
// Graphql query string
|
|
855
|
-
_query?: string;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
export interface GetPartnerCoolrImagesResponse {
|
|
859
|
-
images?: CoolrImages;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
export interface GetPartnerCoolrImagesRequest
|
|
863
|
-
extends BaseRequest,
|
|
864
|
-
RequestQuery<GetPartnerCoolrImagesQuery>,
|
|
865
|
-
GetPartnerCoolrImagesPath {}
|
|
866
|
-
|
|
867
831
|
// GET /partner/swagger.json
|
|
868
832
|
|
|
869
833
|
export interface GetPartnerSwaggerQuery {
|
package/src/interface/payment.ts
CHANGED
|
@@ -263,29 +263,6 @@ export interface PostPaymentMethodRequest extends BaseRequest {
|
|
|
263
263
|
body: PostPaymentMethodBody;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
// GET /payment/{id}/method - Get a users available payment methods
|
|
267
|
-
|
|
268
|
-
export interface GetPaymentMethodPath {
|
|
269
|
-
// TODO: add parameter to swagger.json
|
|
270
|
-
id: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface GetPaymentMethodQuery {
|
|
274
|
-
// The user id
|
|
275
|
-
user_id: string;
|
|
276
|
-
// Graphql query string
|
|
277
|
-
_query?: string;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export interface GetPaymentMethodResponse {
|
|
281
|
-
payment_methods?: PaymentMethod[];
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export interface GetPaymentMethodRequest
|
|
285
|
-
extends BaseRequest,
|
|
286
|
-
RequestQuery<GetPaymentMethodQuery>,
|
|
287
|
-
GetPaymentMethodPath {}
|
|
288
|
-
|
|
289
266
|
// DELETE /payment/{id}/method/{method_id}
|
|
290
267
|
|
|
291
268
|
export interface DeletePaymentMethodPath {
|