@compassdigital/sdk.typescript 4.108.0 → 4.110.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/lib/index.d.ts +115 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +125 -10
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +0 -10
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +5 -22
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +88 -69
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +174 -14
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -29
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +0 -25
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +14 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +59 -0
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/review.d.ts +0 -8
- package/lib/interface/review.d.ts.map +1 -1
- package/lib/interface/search.d.ts +7 -7
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +0 -6
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +10 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +36 -9
- package/package.json +2 -2
- package/pipeline.yml +1 -0
- package/src/index.ts +304 -18
- package/src/interface/ai.ts +0 -12
- package/src/interface/auth.ts +6 -30
- package/src/interface/centricos.ts +146 -108
- package/src/interface/consumer.ts +277 -23
- package/src/interface/discount.ts +32 -35
- package/src/interface/frictionless.ts +0 -47
- package/src/interface/menu.ts +14 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/review.ts +0 -11
- package/src/interface/search.ts +8 -8
- package/src/interface/tax.ts +0 -6
- package/src/interface/user.ts +14 -2
|
@@ -771,18 +771,156 @@ export interface HomePageRequest {
|
|
|
771
771
|
end: number;
|
|
772
772
|
// current date as a long
|
|
773
773
|
date: number;
|
|
774
|
+
reorderEligible: boolean;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export interface LocalizedGreetingMessage {
|
|
778
|
+
en: string;
|
|
779
|
+
fr: string;
|
|
780
|
+
es: string;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export interface DiverseGreetingMessages {
|
|
784
|
+
start: string;
|
|
785
|
+
end: string;
|
|
786
|
+
messages: LocalizedGreetingMessage[];
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export interface HeroImage {
|
|
790
|
+
start: string;
|
|
791
|
+
end: string;
|
|
792
|
+
images: string[];
|
|
774
793
|
}
|
|
775
794
|
|
|
776
795
|
export interface HomePageResponse {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
// valid hero images
|
|
780
|
-
heroImages: Record<string, any>[];
|
|
796
|
+
greetingMessage: DiverseGreetingMessages;
|
|
797
|
+
heroImages: HeroImage;
|
|
781
798
|
orders: Record<string, any>[][];
|
|
782
799
|
// location object for the site
|
|
783
800
|
location: Record<string, any>;
|
|
784
801
|
}
|
|
785
802
|
|
|
803
|
+
export interface FrictionlessCheckinResponse {
|
|
804
|
+
id: string;
|
|
805
|
+
provider: Record<string, any>;
|
|
806
|
+
status: Record<string, any>;
|
|
807
|
+
reasonOfFail?: string;
|
|
808
|
+
thirdPartyCorrelatedID?: string;
|
|
809
|
+
shoppingCartID?: string;
|
|
810
|
+
brandID: string;
|
|
811
|
+
userID: string;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export interface FrictionlessQrCodeRequest {
|
|
815
|
+
// brand id
|
|
816
|
+
brandId: string;
|
|
817
|
+
// payment method
|
|
818
|
+
paymentMethod: Record<string, any>;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
export interface FrictionlessQrCodeResponse {
|
|
822
|
+
qrcode: string;
|
|
823
|
+
expiration: number;
|
|
824
|
+
id: string;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export interface ForgotPasswordRequest {
|
|
828
|
+
// email
|
|
829
|
+
email: string;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface ForgotPasswordResponse {
|
|
833
|
+
code?: number;
|
|
834
|
+
success?: boolean;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export interface AddUserSecretResponse {
|
|
838
|
+
key?: string;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export interface GetConsumerLocationGroupResponse {
|
|
842
|
+
// id
|
|
843
|
+
id: string;
|
|
844
|
+
date?: {
|
|
845
|
+
created?: string;
|
|
846
|
+
modified?: string;
|
|
847
|
+
};
|
|
848
|
+
// name
|
|
849
|
+
name: string;
|
|
850
|
+
label?: {
|
|
851
|
+
en?: string;
|
|
852
|
+
fr?: string;
|
|
853
|
+
};
|
|
854
|
+
// distance in meters from the group
|
|
855
|
+
distance?: number;
|
|
856
|
+
// list of locations
|
|
857
|
+
locations?: Record<string, any>[];
|
|
858
|
+
// location address
|
|
859
|
+
address?: Record<string, any>;
|
|
860
|
+
// meta data
|
|
861
|
+
meta?: Record<string, any>;
|
|
862
|
+
style?: {
|
|
863
|
+
logo?: string | null;
|
|
864
|
+
main_logo?: string | null;
|
|
865
|
+
alt_logo?: string | null;
|
|
866
|
+
};
|
|
867
|
+
// timezone
|
|
868
|
+
timezone?: string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export interface GetConsumerLocationMultiGroupResponse {
|
|
872
|
+
// id
|
|
873
|
+
id: string;
|
|
874
|
+
// name
|
|
875
|
+
name: string;
|
|
876
|
+
// groups
|
|
877
|
+
groups: Record<string, any>[];
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export interface ConsumerGetActiveMenusResponse {
|
|
881
|
+
// menus
|
|
882
|
+
menus: Record<string, any>[];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export interface GetConsumerMenuResponse {
|
|
886
|
+
// menu id
|
|
887
|
+
id: string;
|
|
888
|
+
date?: {
|
|
889
|
+
created?: string;
|
|
890
|
+
modified?: string;
|
|
891
|
+
published?: string;
|
|
892
|
+
};
|
|
893
|
+
label?: {
|
|
894
|
+
en?: string;
|
|
895
|
+
};
|
|
896
|
+
// menu groups
|
|
897
|
+
groups: Record<string, any>[];
|
|
898
|
+
// menu parent id
|
|
899
|
+
parent_id: string;
|
|
900
|
+
// menu location brand
|
|
901
|
+
location_brand?: string;
|
|
902
|
+
// menu company
|
|
903
|
+
company?: string;
|
|
904
|
+
// menu sector
|
|
905
|
+
sector?: string;
|
|
906
|
+
is?: {
|
|
907
|
+
disabled?: boolean;
|
|
908
|
+
hidden?: boolean;
|
|
909
|
+
linked?: boolean;
|
|
910
|
+
promo_exemptions_enabled?: boolean;
|
|
911
|
+
plu_enabled?: boolean;
|
|
912
|
+
item_images_enabled?: boolean;
|
|
913
|
+
item_showcase_enabled?: boolean;
|
|
914
|
+
item_desc_edit_enabled?: boolean;
|
|
915
|
+
calories_edit_enabled?: boolean;
|
|
916
|
+
item_label_edit_enabled?: boolean;
|
|
917
|
+
frictionless?: boolean;
|
|
918
|
+
category_images_enabled?: boolean;
|
|
919
|
+
};
|
|
920
|
+
// menu meta
|
|
921
|
+
meta?: Record<string, any>;
|
|
922
|
+
}
|
|
923
|
+
|
|
786
924
|
// GET /consumer/v1/health-check
|
|
787
925
|
|
|
788
926
|
export interface HealthCheckControllerExecuteQuery {
|
|
@@ -792,10 +930,6 @@ export interface HealthCheckControllerExecuteQuery {
|
|
|
792
930
|
|
|
793
931
|
export type HealthCheckControllerExecuteResponse = {};
|
|
794
932
|
|
|
795
|
-
export interface HealthCheckControllerExecuteRequest
|
|
796
|
-
extends BaseRequest,
|
|
797
|
-
RequestQuery<HealthCheckControllerExecuteQuery> {}
|
|
798
|
-
|
|
799
933
|
// GET /consumer/v1/payment-methods - List payment methods available in a given brand
|
|
800
934
|
|
|
801
935
|
export interface GetPaymentListByBrandQuery {
|
|
@@ -809,10 +943,6 @@ export interface GetPaymentListByBrandQuery {
|
|
|
809
943
|
|
|
810
944
|
export type GetPaymentListByBrandResponse = ListAvailablePaymentsResponseDTO;
|
|
811
945
|
|
|
812
|
-
export interface GetPaymentListByBrandRequest
|
|
813
|
-
extends BaseRequest,
|
|
814
|
-
RequestQuery<GetPaymentListByBrandQuery> {}
|
|
815
|
-
|
|
816
946
|
// GET /consumer/customer-orders/{userId} - Get customer orders
|
|
817
947
|
|
|
818
948
|
export interface GetCustomerOrdersPath {
|
|
@@ -831,27 +961,151 @@ export interface GetCustomerOrdersQuery {
|
|
|
831
961
|
|
|
832
962
|
export type GetCustomerOrdersResponse = GetCustomerOrdersResponseDTO;
|
|
833
963
|
|
|
834
|
-
export interface GetCustomerOrdersRequest
|
|
835
|
-
extends BaseRequest,
|
|
836
|
-
RequestQuery<GetCustomerOrdersQuery>,
|
|
837
|
-
GetCustomerOrdersPath {}
|
|
838
|
-
|
|
839
964
|
// POST /consumer/review/order-items - Submit reviews for order items
|
|
840
965
|
|
|
841
966
|
export type PostReviewOrderItemsBody = PostReviewOrderItemsRequestDTO;
|
|
842
967
|
|
|
843
968
|
export type PostReviewOrderItemsResponse = PostReviewOrderItemsResponseDTO;
|
|
844
969
|
|
|
845
|
-
export interface PostReviewOrderItemsRequest extends BaseRequest {
|
|
846
|
-
body: PostReviewOrderItemsBody;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
970
|
// POST /consumer/home - Provide the front end all the data required to render the home page
|
|
850
971
|
|
|
851
972
|
export type PostHomePageBody = HomePageRequest;
|
|
852
973
|
|
|
853
974
|
export type PostHomePageResponse = HomePageResponse;
|
|
854
975
|
|
|
855
|
-
|
|
856
|
-
|
|
976
|
+
// GET /consumer/frictionless/checkin/{id} - Allow a user to check in to a location using frictionless technology
|
|
977
|
+
|
|
978
|
+
export interface GetConsumerFrictionlessCheckinPath {
|
|
979
|
+
id: string;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export interface GetConsumerFrictionlessCheckinQuery {
|
|
983
|
+
// Graphql query string
|
|
984
|
+
_query?: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export type GetConsumerFrictionlessCheckinResponse = FrictionlessCheckinResponse;
|
|
988
|
+
|
|
989
|
+
// POST /consumer/frictionless/qrCode - Create a QR code for a frictionless checkin
|
|
990
|
+
|
|
991
|
+
export type PostFrictionlessQrcodeBody = FrictionlessQrCodeRequest;
|
|
992
|
+
|
|
993
|
+
export type PostFrictionlessQrcodeResponse = FrictionlessQrCodeResponse;
|
|
994
|
+
|
|
995
|
+
// POST /consumer/forgotpassword - Forgot password
|
|
996
|
+
|
|
997
|
+
export type PostConsumerForgotPasswordBody = ForgotPasswordRequest;
|
|
998
|
+
|
|
999
|
+
export type PostConsumerForgotPasswordResponse = ForgotPasswordResponse;
|
|
1000
|
+
|
|
1001
|
+
// POST /consumer/secret - Add user secret
|
|
1002
|
+
|
|
1003
|
+
export type PostConsumerAddSecretResponse = AddUserSecretResponse;
|
|
1004
|
+
|
|
1005
|
+
// GET /consumer/location-group/{id} - Get location group
|
|
1006
|
+
|
|
1007
|
+
export interface GetConsumerLocationGroupPath {
|
|
1008
|
+
// TODO: add parameter to swagger.json
|
|
1009
|
+
id: string;
|
|
857
1010
|
}
|
|
1011
|
+
|
|
1012
|
+
export interface GetConsumerLocationGroupQuery {
|
|
1013
|
+
// Latitude of the user
|
|
1014
|
+
latitude?: number;
|
|
1015
|
+
// Show disabled marketplace
|
|
1016
|
+
show_disabled_marketplace?: boolean;
|
|
1017
|
+
// Longitude of the user
|
|
1018
|
+
longitude?: number;
|
|
1019
|
+
// Include brands config
|
|
1020
|
+
include_brands_config?: boolean;
|
|
1021
|
+
// Public config only
|
|
1022
|
+
public_config_only?: boolean;
|
|
1023
|
+
// Extended
|
|
1024
|
+
extended?: boolean;
|
|
1025
|
+
// Web
|
|
1026
|
+
web?: boolean;
|
|
1027
|
+
// Non marketplace
|
|
1028
|
+
non_market_places?: boolean;
|
|
1029
|
+
// Non scan go
|
|
1030
|
+
non_scan_go?: boolean;
|
|
1031
|
+
// Include estimated wait time
|
|
1032
|
+
include_estimated_wait_time?: boolean;
|
|
1033
|
+
// Graphql query string
|
|
1034
|
+
_query?: string;
|
|
1035
|
+
// Latitude of the user
|
|
1036
|
+
nocache?: boolean;
|
|
1037
|
+
// Location Group ID as Encoded CDL ID
|
|
1038
|
+
id?: string;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
export type GetConsumerLocationGroupResponse$0 = GetConsumerLocationGroupResponse;
|
|
1042
|
+
|
|
1043
|
+
// GET /consumer/location-multigroup/{id} - Get location multi group
|
|
1044
|
+
|
|
1045
|
+
export interface GetConsumerLocationMultigroupPath {
|
|
1046
|
+
// TODO: add parameter to swagger.json
|
|
1047
|
+
id: string;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export interface GetConsumerLocationMultigroupQuery {
|
|
1051
|
+
// Latitude of the user
|
|
1052
|
+
latitude?: number;
|
|
1053
|
+
// Longitude of the user
|
|
1054
|
+
longitude?: number;
|
|
1055
|
+
// Show disabled marketplace
|
|
1056
|
+
merge?: string;
|
|
1057
|
+
// Include brands config
|
|
1058
|
+
expanded?: boolean;
|
|
1059
|
+
// Extended
|
|
1060
|
+
extended?: boolean;
|
|
1061
|
+
// Public config only
|
|
1062
|
+
hours?: boolean;
|
|
1063
|
+
// Web
|
|
1064
|
+
web?: boolean;
|
|
1065
|
+
// Non marketplace
|
|
1066
|
+
non_market_places?: boolean;
|
|
1067
|
+
// Non scan go
|
|
1068
|
+
non_scan_go?: boolean;
|
|
1069
|
+
// Graphql query string
|
|
1070
|
+
_query?: string;
|
|
1071
|
+
nocache?: boolean;
|
|
1072
|
+
// Location Group ID as Encoded CDL ID
|
|
1073
|
+
id?: string;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
1077
|
+
|
|
1078
|
+
// GET /consumer/active-menus/{stationId} - Get current menu
|
|
1079
|
+
|
|
1080
|
+
export interface GetConsumerActiveMenusPath {
|
|
1081
|
+
// TODO: add parameter to swagger.json
|
|
1082
|
+
stationId: string;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
export interface GetConsumerActiveMenusQuery {
|
|
1086
|
+
// Station ID as Encoded CDL ID
|
|
1087
|
+
id?: string;
|
|
1088
|
+
// current time in epoch time
|
|
1089
|
+
currentTime: number;
|
|
1090
|
+
// is pickup
|
|
1091
|
+
isPickUp?: boolean;
|
|
1092
|
+
// is drop off
|
|
1093
|
+
isDropOff?: boolean;
|
|
1094
|
+
// Graphql query string
|
|
1095
|
+
_query?: string;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export type GetConsumerActiveMenusResponse = ConsumerGetActiveMenusResponse;
|
|
1099
|
+
|
|
1100
|
+
// GET /consumer/menu/{id} - Provide the front end all the data required to render the home page
|
|
1101
|
+
|
|
1102
|
+
export interface GetConsumerMenuPath {
|
|
1103
|
+
id: string;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export interface GetConsumerMenuQuery {
|
|
1107
|
+
// Graphql query string
|
|
1108
|
+
_query?: string;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export type GetConsumerMenuResponse$0 = GetConsumerMenuResponse;
|
|
@@ -37,11 +37,12 @@ export interface DiscountMeta {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface GetDiscountResponseDTO {
|
|
40
|
+
// discount id
|
|
41
|
+
id: string;
|
|
40
42
|
// user id of discount creator
|
|
41
43
|
createdBy: string;
|
|
42
44
|
// user id of most recent update
|
|
43
45
|
updatedBy: string;
|
|
44
|
-
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
47
48
|
name: string;
|
|
@@ -50,6 +51,12 @@ export interface GetDiscountResponseDTO {
|
|
|
50
51
|
meta?: DiscountMeta;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
export interface BadRequestErrorDTO {
|
|
55
|
+
message: string;
|
|
56
|
+
code: number;
|
|
57
|
+
data: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
export interface UnauthorizedErrorDTO {
|
|
54
61
|
message: string;
|
|
55
62
|
code: number;
|
|
@@ -62,12 +69,15 @@ export interface NotFoundErrorDTO {
|
|
|
62
69
|
data: Record<string, any>;
|
|
63
70
|
}
|
|
64
71
|
|
|
72
|
+
export type InternalServerErrorException = Record<string, any>;
|
|
73
|
+
|
|
65
74
|
export interface DiscountDTO {
|
|
75
|
+
// discount id
|
|
76
|
+
id: string;
|
|
66
77
|
// user id of discount creator
|
|
67
78
|
createdBy: string;
|
|
68
79
|
// user id of most recent update
|
|
69
80
|
updatedBy: string;
|
|
70
|
-
id: string;
|
|
71
81
|
createdAt: string;
|
|
72
82
|
updatedAt: string;
|
|
73
83
|
name: string;
|
|
@@ -80,30 +90,38 @@ export interface GetDiscountsResponseDTO {
|
|
|
80
90
|
discounts: DiscountDTO[];
|
|
81
91
|
}
|
|
82
92
|
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
data: Record<string, any>;
|
|
93
|
+
export interface DiscountTaxonomy {
|
|
94
|
+
site?: string[];
|
|
95
|
+
brand?: string[];
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
export interface PostDiscountRequestDTO {
|
|
90
99
|
createdBy: string;
|
|
100
|
+
updatedBy?: string;
|
|
91
101
|
name: string;
|
|
102
|
+
status?: DiscountStatus;
|
|
103
|
+
is?: DiscountIs;
|
|
104
|
+
meta?: DiscountMeta;
|
|
105
|
+
taxonomy?: DiscountTaxonomy;
|
|
92
106
|
}
|
|
93
107
|
|
|
94
108
|
export interface PostDiscountResponseDTO {
|
|
95
|
-
createdBy: string;
|
|
96
|
-
name: string;
|
|
97
109
|
id: string;
|
|
98
110
|
createdAt: string;
|
|
99
111
|
updatedAt: string;
|
|
100
112
|
updatedBy: string;
|
|
113
|
+
name: string;
|
|
114
|
+
status?: DiscountStatus;
|
|
115
|
+
is?: DiscountIs;
|
|
116
|
+
meta?: DiscountMeta;
|
|
117
|
+
taxonomy?: DiscountTaxonomy;
|
|
118
|
+
createdBy: string;
|
|
101
119
|
}
|
|
102
120
|
|
|
103
121
|
export interface PutDiscountRequestDTO {
|
|
104
122
|
// user id of most recent update
|
|
105
123
|
updatedBy: string;
|
|
106
|
-
taxonomy?:
|
|
124
|
+
taxonomy?: DiscountTaxonomy;
|
|
107
125
|
name: string;
|
|
108
126
|
status?: DiscountStatus;
|
|
109
127
|
is?: DiscountIs;
|
|
@@ -111,11 +129,12 @@ export interface PutDiscountRequestDTO {
|
|
|
111
129
|
}
|
|
112
130
|
|
|
113
131
|
export interface PutDiscountResponseDTO {
|
|
132
|
+
// discount id
|
|
133
|
+
id: string;
|
|
114
134
|
// user id of discount creator
|
|
115
135
|
createdBy: string;
|
|
116
136
|
// user id of most recent update
|
|
117
137
|
updatedBy: string;
|
|
118
|
-
id: string;
|
|
119
138
|
createdAt: string;
|
|
120
139
|
updatedAt: string;
|
|
121
140
|
name: string;
|
|
@@ -124,19 +143,18 @@ export interface PutDiscountResponseDTO {
|
|
|
124
143
|
meta?: DiscountMeta;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
|
-
export type InternalServerErrorException = Record<string, any>;
|
|
128
|
-
|
|
129
146
|
export interface PutDiscountPublishRequestDTO {
|
|
130
147
|
// user id of most recent update
|
|
131
148
|
updatedBy: string;
|
|
132
149
|
}
|
|
133
150
|
|
|
134
151
|
export interface PutDiscountPublishResponseDTO {
|
|
152
|
+
// discount id
|
|
153
|
+
id: string;
|
|
135
154
|
// user id of discount creator
|
|
136
155
|
createdBy: string;
|
|
137
156
|
// user id of most recent update
|
|
138
157
|
updatedBy: string;
|
|
139
|
-
id: string;
|
|
140
158
|
createdAt: string;
|
|
141
159
|
updatedAt: string;
|
|
142
160
|
name: string;
|
|
@@ -152,6 +170,7 @@ export interface DeleteDiscountResponseDTO {
|
|
|
152
170
|
// GET /discount/{id} - Get a discount
|
|
153
171
|
|
|
154
172
|
export interface GetDiscountPath {
|
|
173
|
+
// a discount id
|
|
155
174
|
id: string;
|
|
156
175
|
}
|
|
157
176
|
|
|
@@ -162,11 +181,6 @@ export interface GetDiscountQuery {
|
|
|
162
181
|
|
|
163
182
|
export type GetDiscountResponse = GetDiscountResponseDTO;
|
|
164
183
|
|
|
165
|
-
export interface GetDiscountRequest
|
|
166
|
-
extends BaseRequest,
|
|
167
|
-
RequestQuery<GetDiscountQuery>,
|
|
168
|
-
GetDiscountPath {}
|
|
169
|
-
|
|
170
184
|
// PUT /discount/{id} - update a discount
|
|
171
185
|
|
|
172
186
|
export interface PutDiscountPath {
|
|
@@ -178,10 +192,6 @@ export type PutDiscountBody = PutDiscountRequestDTO;
|
|
|
178
192
|
|
|
179
193
|
export type PutDiscountResponse = PutDiscountResponseDTO;
|
|
180
194
|
|
|
181
|
-
export interface PutDiscountRequest extends BaseRequest, PutDiscountPath {
|
|
182
|
-
body: PutDiscountBody;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
195
|
// DELETE /discount/{id} - delete a discount
|
|
186
196
|
|
|
187
197
|
export interface DeleteDiscountPath {
|
|
@@ -191,31 +201,22 @@ export interface DeleteDiscountPath {
|
|
|
191
201
|
|
|
192
202
|
export type DeleteDiscountResponse = DeleteDiscountResponseDTO;
|
|
193
203
|
|
|
194
|
-
export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {}
|
|
195
|
-
|
|
196
204
|
// GET /discount - Get discounts by taxonomy
|
|
197
205
|
|
|
198
206
|
export interface GetDiscountsQuery {
|
|
199
207
|
taxonomyFilter: string;
|
|
200
|
-
active: boolean;
|
|
201
208
|
// Graphql query string
|
|
202
209
|
_query?: string;
|
|
203
210
|
}
|
|
204
211
|
|
|
205
212
|
export type GetDiscountsResponse = GetDiscountsResponseDTO;
|
|
206
213
|
|
|
207
|
-
export interface GetDiscountsRequest extends BaseRequest, RequestQuery<GetDiscountsQuery> {}
|
|
208
|
-
|
|
209
214
|
// POST /discount - Post a discount
|
|
210
215
|
|
|
211
216
|
export type PostDiscountBody = PostDiscountRequestDTO;
|
|
212
217
|
|
|
213
218
|
export type PostDiscountResponse = PostDiscountResponseDTO;
|
|
214
219
|
|
|
215
|
-
export interface PostDiscountRequest extends BaseRequest {
|
|
216
|
-
body: PostDiscountBody;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
220
|
// PUT /discount/{id}/publish - update and publish a discount
|
|
220
221
|
|
|
221
222
|
export interface PutDiscountPublishPath {
|
|
@@ -226,7 +227,3 @@ export interface PutDiscountPublishPath {
|
|
|
226
227
|
export type PutDiscountPublishBody = PutDiscountPublishRequestDTO;
|
|
227
228
|
|
|
228
229
|
export type PutDiscountPublishResponse = PutDiscountPublishResponseDTO;
|
|
229
|
-
|
|
230
|
-
export interface PutDiscountPublishRequest extends BaseRequest, PutDiscountPublishPath {
|
|
231
|
-
body: PutDiscountPublishBody;
|
|
232
|
-
}
|
|
@@ -221,21 +221,12 @@ export interface GetFrictionlessBrandFrictionlessStatusQuery {
|
|
|
221
221
|
|
|
222
222
|
export type GetFrictionlessBrandFrictionlessStatusResponse = FrictionlessSupportResponseDTO;
|
|
223
223
|
|
|
224
|
-
export interface GetFrictionlessBrandFrictionlessStatusRequest
|
|
225
|
-
extends BaseRequest,
|
|
226
|
-
RequestQuery<GetFrictionlessBrandFrictionlessStatusQuery>,
|
|
227
|
-
GetFrictionlessBrandFrictionlessStatusPath {}
|
|
228
|
-
|
|
229
224
|
// POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
230
225
|
|
|
231
226
|
export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommandDTO;
|
|
232
227
|
|
|
233
228
|
export type PostFrictionlessQrCodeResponse = QRCodeCreationResponseDTO;
|
|
234
229
|
|
|
235
|
-
export interface PostFrictionlessQrCodeRequest extends BaseRequest {
|
|
236
|
-
body: PostFrictionlessQrCodeBody;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
230
|
// GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn Status
|
|
240
231
|
|
|
241
232
|
export interface GetFrictionlessCheckinStatusPath {
|
|
@@ -249,11 +240,6 @@ export interface GetFrictionlessCheckinStatusQuery {
|
|
|
249
240
|
|
|
250
241
|
export type GetFrictionlessCheckinStatusResponse = GetCheckInStatusResponseDTO;
|
|
251
242
|
|
|
252
|
-
export interface GetFrictionlessCheckinStatusRequest
|
|
253
|
-
extends BaseRequest,
|
|
254
|
-
RequestQuery<GetFrictionlessCheckinStatusQuery>,
|
|
255
|
-
GetFrictionlessCheckinStatusPath {}
|
|
256
|
-
|
|
257
243
|
// GET /frictionless/checkin/{id_checkin} - Fetch CheckIn
|
|
258
244
|
|
|
259
245
|
export interface GetFrictionlessCheckinPath {
|
|
@@ -267,11 +253,6 @@ export interface GetFrictionlessCheckinQuery {
|
|
|
267
253
|
|
|
268
254
|
export type GetFrictionlessCheckinResponse = GetCheckinResponseDTO;
|
|
269
255
|
|
|
270
|
-
export interface GetFrictionlessCheckinRequest
|
|
271
|
-
extends BaseRequest,
|
|
272
|
-
RequestQuery<GetFrictionlessCheckinQuery>,
|
|
273
|
-
GetFrictionlessCheckinPath {}
|
|
274
|
-
|
|
275
256
|
// GET /frictionless/users/{user_id}/checkins/payment-issues - List check-ins with update payment required per user
|
|
276
257
|
|
|
277
258
|
export interface GetFrictionlessUsersPaymentIssuesPath {
|
|
@@ -285,11 +266,6 @@ export interface GetFrictionlessUsersPaymentIssuesQuery {
|
|
|
285
266
|
|
|
286
267
|
export type GetFrictionlessUsersPaymentIssuesResponse = CheckInPaymentRequiredDTO[];
|
|
287
268
|
|
|
288
|
-
export interface GetFrictionlessUsersPaymentIssuesRequest
|
|
289
|
-
extends BaseRequest,
|
|
290
|
-
RequestQuery<GetFrictionlessUsersPaymentIssuesQuery>,
|
|
291
|
-
GetFrictionlessUsersPaymentIssuesPath {}
|
|
292
|
-
|
|
293
269
|
// GET /frictionless/failed-checkins - List check-ins on error
|
|
294
270
|
|
|
295
271
|
export interface GetFrictionlessFailedCheckinsQuery {
|
|
@@ -299,10 +275,6 @@ export interface GetFrictionlessFailedCheckinsQuery {
|
|
|
299
275
|
|
|
300
276
|
export type GetFrictionlessFailedCheckinsResponse = FailedCheckInDTO[];
|
|
301
277
|
|
|
302
|
-
export interface GetFrictionlessFailedCheckinsRequest
|
|
303
|
-
extends BaseRequest,
|
|
304
|
-
RequestQuery<GetFrictionlessFailedCheckinsQuery> {}
|
|
305
|
-
|
|
306
278
|
// POST /frictionless/checkins/{id_checkin}/reprocess - Reprocess checkin on error
|
|
307
279
|
|
|
308
280
|
export interface PostFrictionlessCheckinsReprocessPath {
|
|
@@ -311,10 +283,6 @@ export interface PostFrictionlessCheckinsReprocessPath {
|
|
|
311
283
|
|
|
312
284
|
export type PostFrictionlessCheckinsReprocessResponse = {};
|
|
313
285
|
|
|
314
|
-
export interface PostFrictionlessCheckinsReprocessRequest
|
|
315
|
-
extends BaseRequest,
|
|
316
|
-
PostFrictionlessCheckinsReprocessPath {}
|
|
317
|
-
|
|
318
286
|
// POST /frictionless/checkins/{checkin_id}/reprocess-payment - Update payment at checkin and trigger reprocessing
|
|
319
287
|
|
|
320
288
|
export interface PostFrictionlessCheckinReprocessPaymentPath {
|
|
@@ -325,12 +293,6 @@ export type PostFrictionlessCheckinReprocessPaymentBody = PaymentMethodDTO;
|
|
|
325
293
|
|
|
326
294
|
export type PostFrictionlessCheckinReprocessPaymentResponse = {};
|
|
327
295
|
|
|
328
|
-
export interface PostFrictionlessCheckinReprocessPaymentRequest
|
|
329
|
-
extends BaseRequest,
|
|
330
|
-
PostFrictionlessCheckinReprocessPaymentPath {
|
|
331
|
-
body: PostFrictionlessCheckinReprocessPaymentBody;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
296
|
// POST /frictionless/amazon-jwo-connector/v1/identity/identity-keys - Amazon JWO Identity Key Connector
|
|
335
297
|
|
|
336
298
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody =
|
|
@@ -339,18 +301,9 @@ export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody =
|
|
|
339
301
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse =
|
|
340
302
|
AmazonJWOIdentityKeysResponseDTO;
|
|
341
303
|
|
|
342
|
-
export interface PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysRequest
|
|
343
|
-
extends BaseRequest {
|
|
344
|
-
body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
304
|
// POST /frictionless/amazon-jwo-connector/v1/order/purchases - Amazon JWO Ordering Connector
|
|
348
305
|
|
|
349
306
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody = AmazonJWOOrderingRequestDTO;
|
|
350
307
|
|
|
351
308
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse =
|
|
352
309
|
AmazonJWOOrderingResponseDTO;
|
|
353
|
-
|
|
354
|
-
export interface PostFrictionlessAmazonJwoConnectorV1OrderPurchasesRequest extends BaseRequest {
|
|
355
|
-
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody;
|
|
356
|
-
}
|