@compassdigital/sdk.typescript 3.0.0-beta.13 → 3.0.0-beta.14
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 +10 -5
- package/gen.ts +13 -5
- package/lib/announcement.d.ts.map +1 -1
- package/lib/announcement.js +1 -0
- package/lib/announcement.js.map +1 -1
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js.map +1 -1
- package/lib/brand.d.ts.map +1 -1
- package/lib/brand.js +1 -0
- package/lib/brand.js.map +1 -1
- package/lib/calendar.d.ts.map +1 -1
- package/lib/calendar.js +1 -0
- package/lib/calendar.js.map +1 -1
- package/lib/client/base.d.ts +157 -0
- package/lib/client/base.d.ts.map +1 -0
- package/lib/client/base.js +392 -0
- package/lib/client/base.js.map +1 -0
- package/lib/client/index.d.ts +1877 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +2208 -0
- package/lib/client/index.js.map +1 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +1 -0
- package/lib/config.js.map +1 -1
- package/lib/datalake.d.ts.map +1 -1
- package/lib/datalake.js +1 -0
- package/lib/datalake.js.map +1 -1
- package/lib/delivery.d.ts.map +1 -1
- package/lib/delivery.js +1 -0
- package/lib/delivery.js.map +1 -1
- package/lib/dh.d.ts.map +1 -1
- package/lib/dh.js +1 -0
- package/lib/dh.js.map +1 -1
- package/lib/email.d.ts.map +1 -1
- package/lib/email.js +1 -0
- package/lib/email.js.map +1 -1
- package/lib/file.d.ts.map +1 -1
- package/lib/file.js +1 -0
- package/lib/file.js.map +1 -1
- package/lib/index.d.ts +8 -19
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -2
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +76 -0
- package/lib/interface/announcement.d.ts.map +1 -0
- package/lib/interface/announcement.js +4 -0
- package/lib/interface/announcement.js.map +1 -0
- package/lib/interface/brand.d.ts +16 -0
- package/lib/interface/brand.d.ts.map +1 -0
- package/lib/interface/brand.js +4 -0
- package/lib/interface/brand.js.map +1 -0
- package/lib/interface/calendar.d.ts +85 -0
- package/lib/interface/calendar.d.ts.map +1 -0
- package/lib/interface/calendar.js +4 -0
- package/lib/interface/calendar.js.map +1 -0
- package/lib/interface/config.d.ts +68 -0
- package/lib/interface/config.d.ts.map +1 -0
- package/lib/interface/config.js +4 -0
- package/lib/interface/config.js.map +1 -0
- package/lib/interface/datalake.d.ts +19 -0
- package/lib/interface/datalake.d.ts.map +1 -0
- package/lib/interface/datalake.js +4 -0
- package/lib/interface/datalake.js.map +1 -0
- package/lib/interface/delivery.d.ts +34 -0
- package/lib/interface/delivery.d.ts.map +1 -0
- package/lib/interface/delivery.js +4 -0
- package/lib/interface/delivery.js.map +1 -0
- package/lib/interface/dh.d.ts +9 -0
- package/lib/interface/dh.d.ts.map +1 -0
- package/lib/interface/dh.js +4 -0
- package/lib/interface/dh.js.map +1 -0
- package/lib/interface/email.d.ts +5 -0
- package/lib/interface/email.d.ts.map +1 -0
- package/lib/interface/email.js +4 -0
- package/lib/interface/email.js.map +1 -0
- package/lib/interface/file.d.ts +17 -0
- package/lib/interface/file.d.ts.map +1 -0
- package/lib/interface/file.js +4 -0
- package/lib/interface/file.js.map +1 -0
- package/lib/interface/kds.d.ts +58 -0
- package/lib/interface/kds.d.ts.map +1 -0
- package/lib/interface/kds.js +4 -0
- package/lib/interface/kds.js.map +1 -0
- package/lib/interface/location.d.ts +747 -0
- package/lib/interface/location.d.ts.map +1 -0
- package/lib/interface/location.js +4 -0
- package/lib/interface/location.js.map +1 -0
- package/lib/interface/logger.d.ts +29 -0
- package/lib/interface/logger.d.ts.map +1 -0
- package/lib/interface/logger.js +4 -0
- package/lib/interface/logger.js.map +1 -0
- package/lib/interface/loyalty.d.ts +350 -0
- package/lib/interface/loyalty.d.ts.map +1 -0
- package/lib/interface/loyalty.js +4 -0
- package/lib/interface/loyalty.js.map +1 -0
- package/lib/interface/mealplan.d.ts +177 -0
- package/lib/interface/mealplan.d.ts.map +1 -0
- package/lib/interface/mealplan.js +4 -0
- package/lib/interface/mealplan.js.map +1 -0
- package/lib/interface/message.d.ts +38 -0
- package/lib/interface/message.d.ts.map +1 -0
- package/lib/interface/message.js +4 -0
- package/lib/interface/message.js.map +1 -0
- package/lib/interface/order.d.ts +303 -0
- package/lib/interface/order.d.ts.map +1 -0
- package/lib/interface/order.js +4 -0
- package/lib/interface/order.js.map +1 -0
- package/lib/interface/partner.d.ts +402 -0
- package/lib/interface/partner.d.ts.map +1 -0
- package/lib/interface/partner.js +4 -0
- package/lib/interface/partner.js.map +1 -0
- package/lib/interface/payment.d.ts +250 -0
- package/lib/interface/payment.d.ts.map +1 -0
- package/lib/interface/payment.js +4 -0
- package/lib/interface/payment.js.map +1 -0
- package/lib/interface/promo.d.ts +312 -0
- package/lib/interface/promo.d.ts.map +1 -0
- package/lib/interface/promo.js +4 -0
- package/lib/interface/promo.js.map +1 -0
- package/lib/interface/report.d.ts +376 -0
- package/lib/interface/report.d.ts.map +1 -0
- package/lib/interface/report.js +4 -0
- package/lib/interface/report.js.map +1 -0
- package/lib/interface/schedule.d.ts +95 -0
- package/lib/interface/schedule.d.ts.map +1 -0
- package/lib/interface/schedule.js +4 -0
- package/lib/interface/schedule.js.map +1 -0
- package/lib/interface/shoppingcart.d.ts +279 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -0
- package/lib/interface/shoppingcart.js +4 -0
- package/lib/interface/shoppingcart.js.map +1 -0
- package/lib/interface/task.d.ts +171 -0
- package/lib/interface/task.d.ts.map +1 -0
- package/lib/interface/task.js +4 -0
- package/lib/interface/task.js.map +1 -0
- package/lib/interface/user.d.ts +359 -0
- package/lib/interface/user.d.ts.map +1 -0
- package/lib/interface/user.js +4 -0
- package/lib/interface/user.js.map +1 -0
- package/lib/interface/vote.d.ts +52 -0
- package/lib/interface/vote.d.ts.map +1 -0
- package/lib/interface/vote.js +4 -0
- package/lib/interface/vote.js.map +1 -0
- package/lib/kds.d.ts.map +1 -1
- package/lib/kds.js +1 -0
- package/lib/kds.js.map +1 -1
- package/lib/location.d.ts +4 -4
- package/lib/location.d.ts.map +1 -1
- package/lib/location.js +1 -0
- package/lib/location.js.map +1 -1
- package/lib/logger.d.ts.map +1 -1
- package/lib/logger.js +1 -0
- package/lib/logger.js.map +1 -1
- package/lib/loyalty.d.ts.map +1 -1
- package/lib/loyalty.js +1 -0
- package/lib/loyalty.js.map +1 -1
- package/lib/mealplan.d.ts.map +1 -1
- package/lib/mealplan.js +1 -0
- package/lib/mealplan.js.map +1 -1
- package/lib/message.d.ts.map +1 -1
- package/lib/message.js +1 -0
- package/lib/message.js.map +1 -1
- package/lib/order.d.ts.map +1 -1
- package/lib/order.js +1 -0
- package/lib/order.js.map +1 -1
- package/lib/partner.d.ts +13 -0
- package/lib/partner.d.ts.map +1 -1
- package/lib/partner.js +1 -0
- package/lib/partner.js.map +1 -1
- package/lib/payment.d.ts.map +1 -1
- package/lib/payment.js +1 -0
- package/lib/payment.js.map +1 -1
- package/lib/promo.d.ts.map +1 -1
- package/lib/promo.js +1 -0
- package/lib/promo.js.map +1 -1
- package/lib/report.d.ts.map +1 -1
- package/lib/report.js +1 -0
- package/lib/report.js.map +1 -1
- package/lib/schedule.d.ts.map +1 -1
- package/lib/schedule.js +1 -0
- package/lib/schedule.js.map +1 -1
- package/lib/shoppingcart.d.ts.map +1 -1
- package/lib/shoppingcart.js +1 -0
- package/lib/shoppingcart.js.map +1 -1
- package/lib/task.d.ts.map +1 -1
- package/lib/task.js +1 -0
- package/lib/task.js.map +1 -1
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +1 -0
- package/lib/user.js.map +1 -1
- package/lib/vote.d.ts.map +1 -1
- package/lib/vote.js +1 -0
- package/lib/vote.js.map +1 -1
- package/package.json +1 -1
- package/src/{index.ts → client/index.ts} +54 -24
- package/src/{announcement.ts → interface/announcement.ts} +2 -0
- package/src/{brand.ts → interface/brand.ts} +2 -0
- package/src/{calendar.ts → interface/calendar.ts} +2 -0
- package/src/{config.ts → interface/config.ts} +2 -0
- package/src/{datalake.ts → interface/datalake.ts} +2 -0
- package/src/{delivery.ts → interface/delivery.ts} +2 -0
- package/src/{dh.ts → interface/dh.ts} +2 -0
- package/src/{email.ts → interface/email.ts} +2 -0
- package/src/{file.ts → interface/file.ts} +2 -0
- package/src/{kds.ts → interface/kds.ts} +2 -0
- package/src/{location.ts → interface/location.ts} +2 -0
- package/src/{logger.ts → interface/logger.ts} +2 -0
- package/src/{loyalty.ts → interface/loyalty.ts} +2 -0
- package/src/{mealplan.ts → interface/mealplan.ts} +2 -0
- package/src/{message.ts → interface/message.ts} +2 -0
- package/src/{order.ts → interface/order.ts} +2 -0
- package/src/{partner.ts → interface/partner.ts} +25 -0
- package/src/{payment.ts → interface/payment.ts} +2 -0
- package/src/{promo.ts → interface/promo.ts} +2 -0
- package/src/{report.ts → interface/report.ts} +2 -0
- package/src/{schedule.ts → interface/schedule.ts} +2 -0
- package/src/{shoppingcart.ts → interface/shoppingcart.ts} +2 -0
- package/src/{task.ts → interface/task.ts} +2 -0
- package/src/{user.ts → interface/user.ts} +2 -0
- package/src/{vote.ts → interface/vote.ts} +2 -0
- package/test/client.test.ts +57 -73
- /package/src/{base.ts → client/base.ts} +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
export interface Error {
|
|
2
|
+
message?: string;
|
|
3
|
+
code?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface PromotionBody {
|
|
6
|
+
label: {
|
|
7
|
+
en?: string;
|
|
8
|
+
};
|
|
9
|
+
description: {
|
|
10
|
+
en?: string;
|
|
11
|
+
};
|
|
12
|
+
badge: {
|
|
13
|
+
en?: string;
|
|
14
|
+
fr?: string;
|
|
15
|
+
};
|
|
16
|
+
multigroup: string;
|
|
17
|
+
type: string;
|
|
18
|
+
items: PromotionItems;
|
|
19
|
+
status: Status;
|
|
20
|
+
location_group_ids: string[];
|
|
21
|
+
company: string;
|
|
22
|
+
calendar: Calendar;
|
|
23
|
+
}
|
|
24
|
+
export interface Promotion {
|
|
25
|
+
id: string;
|
|
26
|
+
label: {
|
|
27
|
+
en?: string;
|
|
28
|
+
};
|
|
29
|
+
date?: {
|
|
30
|
+
created?: string;
|
|
31
|
+
modified?: string;
|
|
32
|
+
};
|
|
33
|
+
description?: {
|
|
34
|
+
en?: string;
|
|
35
|
+
};
|
|
36
|
+
badge: {
|
|
37
|
+
en?: string;
|
|
38
|
+
fr?: string;
|
|
39
|
+
};
|
|
40
|
+
multigroup?: string;
|
|
41
|
+
type: string;
|
|
42
|
+
items: PromotionItems;
|
|
43
|
+
status: Status;
|
|
44
|
+
location_group_ids?: string[];
|
|
45
|
+
company: string;
|
|
46
|
+
calendar?: Calendar;
|
|
47
|
+
meta?: PromoMeta;
|
|
48
|
+
}
|
|
49
|
+
export declare type Status = string;
|
|
50
|
+
export interface DatetimeObject {
|
|
51
|
+
year: number;
|
|
52
|
+
month: number;
|
|
53
|
+
day: number;
|
|
54
|
+
hour: number;
|
|
55
|
+
minute: number;
|
|
56
|
+
zone?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface Event {
|
|
59
|
+
data?: {
|
|
60
|
+
calendar?: string;
|
|
61
|
+
[index: string]: any;
|
|
62
|
+
};
|
|
63
|
+
schedule?: {
|
|
64
|
+
start: DatetimeObject;
|
|
65
|
+
end?: DatetimeObject;
|
|
66
|
+
times?: string[];
|
|
67
|
+
duration?: number;
|
|
68
|
+
durationUnit?: string;
|
|
69
|
+
dayOfWeek?: number[];
|
|
70
|
+
dayOfMonth?: number[];
|
|
71
|
+
dayOfYear?: number[];
|
|
72
|
+
[index: string]: any;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface Calendar {
|
|
76
|
+
timezones: {
|
|
77
|
+
[index: string]: string;
|
|
78
|
+
};
|
|
79
|
+
events: Event[];
|
|
80
|
+
}
|
|
81
|
+
export interface Promotions {
|
|
82
|
+
promos?: Promotion[];
|
|
83
|
+
}
|
|
84
|
+
export interface PromotionItems {
|
|
85
|
+
main: PromotionMenuItems;
|
|
86
|
+
additional?: PromotionMenuItems;
|
|
87
|
+
}
|
|
88
|
+
export declare type PromotionMenuItems = {
|
|
89
|
+
id: string;
|
|
90
|
+
discount?: Discount;
|
|
91
|
+
min?: number;
|
|
92
|
+
max?: number;
|
|
93
|
+
quantity?: number;
|
|
94
|
+
meta?: {
|
|
95
|
+
[index: string]: any;
|
|
96
|
+
};
|
|
97
|
+
}[];
|
|
98
|
+
export interface PromoMeta {
|
|
99
|
+
promo_start?: string;
|
|
100
|
+
promo_end?: string;
|
|
101
|
+
hours?: {
|
|
102
|
+
start?: string;
|
|
103
|
+
end?: string;
|
|
104
|
+
}[];
|
|
105
|
+
}
|
|
106
|
+
export interface Success {
|
|
107
|
+
success?: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface VoucherCode {
|
|
110
|
+
code?: string;
|
|
111
|
+
email?: string;
|
|
112
|
+
app?: string;
|
|
113
|
+
realm?: string;
|
|
114
|
+
location_brand?: string;
|
|
115
|
+
}
|
|
116
|
+
export interface CreateVoucher {
|
|
117
|
+
code?: string;
|
|
118
|
+
discount?: {
|
|
119
|
+
amount_off?: number;
|
|
120
|
+
percent_off?: number;
|
|
121
|
+
};
|
|
122
|
+
[index: string]: any;
|
|
123
|
+
}
|
|
124
|
+
export interface UpdateVoucher {
|
|
125
|
+
active?: boolean;
|
|
126
|
+
[index: string]: any;
|
|
127
|
+
}
|
|
128
|
+
export interface Voucher {
|
|
129
|
+
code?: string;
|
|
130
|
+
valid?: boolean;
|
|
131
|
+
discount?: {
|
|
132
|
+
amount_off?: number;
|
|
133
|
+
percent_off?: number;
|
|
134
|
+
amount_limit?: number;
|
|
135
|
+
};
|
|
136
|
+
app?: string;
|
|
137
|
+
[index: string]: any;
|
|
138
|
+
}
|
|
139
|
+
export interface Redemption {
|
|
140
|
+
code?: string;
|
|
141
|
+
id?: string;
|
|
142
|
+
date?: string;
|
|
143
|
+
result?: boolean;
|
|
144
|
+
discount?: {
|
|
145
|
+
amount_off?: number;
|
|
146
|
+
percent_off?: number;
|
|
147
|
+
amount_limit?: number;
|
|
148
|
+
};
|
|
149
|
+
type?: string;
|
|
150
|
+
app?: string;
|
|
151
|
+
[index: string]: any;
|
|
152
|
+
}
|
|
153
|
+
export interface VoucherifyCustomer {
|
|
154
|
+
user_id?: string;
|
|
155
|
+
mealplan_id?: string;
|
|
156
|
+
app?: string;
|
|
157
|
+
realm?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface RedemptionReversal {
|
|
160
|
+
code?: string;
|
|
161
|
+
id?: string;
|
|
162
|
+
date?: string;
|
|
163
|
+
result?: boolean;
|
|
164
|
+
discount?: {
|
|
165
|
+
amount_off?: number;
|
|
166
|
+
percent_off?: number;
|
|
167
|
+
amount_limit?: number;
|
|
168
|
+
};
|
|
169
|
+
type?: string;
|
|
170
|
+
reason?: string;
|
|
171
|
+
original_redemption?: string;
|
|
172
|
+
app?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ReverseRedemption {
|
|
175
|
+
reason?: string;
|
|
176
|
+
app?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface Customer {
|
|
179
|
+
id?: string;
|
|
180
|
+
source_id?: string;
|
|
181
|
+
name?: string;
|
|
182
|
+
email?: string;
|
|
183
|
+
description?: string;
|
|
184
|
+
address?: any;
|
|
185
|
+
phone?: string;
|
|
186
|
+
summary?: any;
|
|
187
|
+
loyalty?: any;
|
|
188
|
+
metadata?: {
|
|
189
|
+
origin?: string;
|
|
190
|
+
};
|
|
191
|
+
created_at?: string;
|
|
192
|
+
updated_at?: string;
|
|
193
|
+
object?: string;
|
|
194
|
+
[index: string]: any;
|
|
195
|
+
}
|
|
196
|
+
export interface SFMCConfig {
|
|
197
|
+
[index: string]: any;
|
|
198
|
+
}
|
|
199
|
+
export interface Discount {
|
|
200
|
+
amount_off?: number;
|
|
201
|
+
percent_off?: number;
|
|
202
|
+
}
|
|
203
|
+
export declare type PostPromoBody = PromotionBody;
|
|
204
|
+
export declare type PostPromoResponse = Promotion;
|
|
205
|
+
export interface PostPromoRequest {
|
|
206
|
+
body: PostPromoBody;
|
|
207
|
+
}
|
|
208
|
+
export interface GetPromosQuery {
|
|
209
|
+
multigroup?: string;
|
|
210
|
+
}
|
|
211
|
+
export declare type GetPromosResponse = Promotions;
|
|
212
|
+
export interface GetPromosRequest extends GetPromosQuery {
|
|
213
|
+
}
|
|
214
|
+
export interface GetPromoPath {
|
|
215
|
+
id: string;
|
|
216
|
+
}
|
|
217
|
+
export interface GetPromoQuery {
|
|
218
|
+
extended?: boolean;
|
|
219
|
+
}
|
|
220
|
+
export declare type GetPromoResponse = Promotion;
|
|
221
|
+
export interface GetPromoRequest extends GetPromoQuery, GetPromoPath {
|
|
222
|
+
}
|
|
223
|
+
export interface PutPromoPath {
|
|
224
|
+
id: string;
|
|
225
|
+
}
|
|
226
|
+
export declare type PutPromoBody = Promotion;
|
|
227
|
+
export declare type PutPromoResponse = Promotion;
|
|
228
|
+
export interface PutPromoRequest extends PutPromoPath {
|
|
229
|
+
body: PutPromoBody;
|
|
230
|
+
}
|
|
231
|
+
export interface DeletePromoPath {
|
|
232
|
+
id: string;
|
|
233
|
+
}
|
|
234
|
+
export declare type DeletePromoResponse = Success;
|
|
235
|
+
export interface DeletePromoRequest extends DeletePromoPath {
|
|
236
|
+
}
|
|
237
|
+
export interface GetPromoCompanyLocationGroupPath {
|
|
238
|
+
company: string;
|
|
239
|
+
location_group: string;
|
|
240
|
+
}
|
|
241
|
+
export interface GetPromoCompanyLocationGroupQuery {
|
|
242
|
+
status?: string;
|
|
243
|
+
}
|
|
244
|
+
export declare type GetPromoCompanyLocationGroupResponse = Promotions;
|
|
245
|
+
export interface GetPromoCompanyLocationGroupRequest extends GetPromoCompanyLocationGroupQuery, GetPromoCompanyLocationGroupPath {
|
|
246
|
+
}
|
|
247
|
+
export declare type PostPromoValidateVoucherBody = VoucherCode;
|
|
248
|
+
export declare type PostPromoValidateVoucherResponse = Voucher;
|
|
249
|
+
export interface PostPromoValidateVoucherRequest {
|
|
250
|
+
body: PostPromoValidateVoucherBody;
|
|
251
|
+
}
|
|
252
|
+
export declare type PostPromoRedeemVoucherBody = VoucherCode;
|
|
253
|
+
export declare type PostPromoRedeemVoucherResponse = Redemption;
|
|
254
|
+
export interface PostPromoRedeemVoucherRequest {
|
|
255
|
+
body: PostPromoRedeemVoucherBody;
|
|
256
|
+
}
|
|
257
|
+
export declare type PostPromoVoucherBody = CreateVoucher;
|
|
258
|
+
export declare type PostPromoVoucherResponse = Voucher;
|
|
259
|
+
export interface PostPromoVoucherRequest {
|
|
260
|
+
body: PostPromoVoucherBody;
|
|
261
|
+
}
|
|
262
|
+
export interface PutPromoVoucherPath {
|
|
263
|
+
id: string;
|
|
264
|
+
}
|
|
265
|
+
export declare type PutPromoVoucherBody = UpdateVoucher;
|
|
266
|
+
export declare type PutPromoVoucherResponse = Voucher;
|
|
267
|
+
export interface PutPromoVoucherRequest extends PutPromoVoucherPath {
|
|
268
|
+
body: PutPromoVoucherBody;
|
|
269
|
+
}
|
|
270
|
+
export interface DeletePromoVoucherPath {
|
|
271
|
+
id: string;
|
|
272
|
+
}
|
|
273
|
+
export interface DeletePromoVoucherQuery {
|
|
274
|
+
app?: string;
|
|
275
|
+
}
|
|
276
|
+
export interface DeletePromoVoucherResponse {
|
|
277
|
+
success?: boolean;
|
|
278
|
+
}
|
|
279
|
+
export interface DeletePromoVoucherRequest extends DeletePromoVoucherQuery, DeletePromoVoucherPath {
|
|
280
|
+
}
|
|
281
|
+
export declare type PostPromoCustomerBody = VoucherifyCustomer;
|
|
282
|
+
export declare type PostPromoCustomerResponse = Customer;
|
|
283
|
+
export interface PostPromoCustomerRequest {
|
|
284
|
+
body: PostPromoCustomerBody;
|
|
285
|
+
}
|
|
286
|
+
export interface DeletePromoCustomerBody {
|
|
287
|
+
user_id?: string;
|
|
288
|
+
mealplan_id?: string;
|
|
289
|
+
realm?: string;
|
|
290
|
+
}
|
|
291
|
+
export interface DeletePromoCustomerResponse {
|
|
292
|
+
success?: boolean;
|
|
293
|
+
}
|
|
294
|
+
export interface DeletePromoCustomerRequest {
|
|
295
|
+
body: DeletePromoCustomerBody;
|
|
296
|
+
}
|
|
297
|
+
export interface PostPromoVoucherReversePath {
|
|
298
|
+
id: string;
|
|
299
|
+
}
|
|
300
|
+
export declare type PostPromoVoucherReverseBody = ReverseRedemption;
|
|
301
|
+
export declare type PostPromoVoucherReverseResponse = RedemptionReversal;
|
|
302
|
+
export interface PostPromoVoucherReverseRequest extends PostPromoVoucherReversePath {
|
|
303
|
+
body: PostPromoVoucherReverseBody;
|
|
304
|
+
}
|
|
305
|
+
export declare type PostPromoVoucherifyActivityExecuteBody = string;
|
|
306
|
+
export declare type PostPromoVoucherifyActivityExecuteResponse = Customer;
|
|
307
|
+
export interface PostPromoVoucherifyActivityExecuteRequest {
|
|
308
|
+
body: PostPromoVoucherifyActivityExecuteBody;
|
|
309
|
+
}
|
|
310
|
+
export declare type GetPromoVoucherifyActivityConfigResponse = SFMCConfig;
|
|
311
|
+
export declare type GetPromoVoucherifyActivityConfigRequest = {};
|
|
312
|
+
//# sourceMappingURL=promo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo.d.ts","sourceRoot":"","sources":["../../src/interface/promo.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,WAAW,EAAE;QACX,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,KAAK,EAAE;QACL,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EA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sB;CAAG;AAI7B,oBAAY,qBAAqB,GAAG,kBAAkB,CAAC;AAEvD,oBAAY,yBAAyB,GAAG,QAAQ,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAID,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAID,MAAM,WAAW,2BAA2B;IAE1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,oBAAY,2BAA2B,GAAG,iBAAiB,CAAC;AAE5D,oBAAY,+BAA+B,GAAG,kBAAkB,CAAC;AAEjE,MAAM,WAAW,8BAA+B,SAAQ,2BAA2B;IACjF,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAID,oBAAY,sCAAsC,GAAG,MAAM,CAAC;AAE5D,oBAAY,0CAA0C,GAAG,QAAQ,CAAC;AAElE,MAAM,WAAW,yCAAyC;IACxD,IAAI,EAAE,sCAAsC,CAAC;CAC9C;AAID,oBAAY,wCAAwC,GAAG,UAAU,CAAC;AAElE,oBAAY,uCAAuC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promo.js","sourceRoot":"","sources":["../../src/interface/promo.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
export interface Success {
|
|
2
|
+
success?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export interface Error {
|
|
5
|
+
message?: string;
|
|
6
|
+
code?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface EODReports {
|
|
9
|
+
reports?: {
|
|
10
|
+
id?: string;
|
|
11
|
+
unit?: number;
|
|
12
|
+
data?: Summary;
|
|
13
|
+
}[];
|
|
14
|
+
summary?: Summary;
|
|
15
|
+
file?: string;
|
|
16
|
+
format?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface TotalSummary {
|
|
19
|
+
beginning: number;
|
|
20
|
+
end: number;
|
|
21
|
+
subtotal: number;
|
|
22
|
+
gross: number;
|
|
23
|
+
discount: number;
|
|
24
|
+
fees: number;
|
|
25
|
+
taxes: number;
|
|
26
|
+
net_sales: number;
|
|
27
|
+
register: number;
|
|
28
|
+
count: number;
|
|
29
|
+
gst?: number;
|
|
30
|
+
pst?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface PaymentTypes {
|
|
33
|
+
types?: string;
|
|
34
|
+
num_order?: number;
|
|
35
|
+
subtotal?: number;
|
|
36
|
+
taxes?: number;
|
|
37
|
+
gst?: number;
|
|
38
|
+
pst?: number;
|
|
39
|
+
total?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface Disbursements {
|
|
42
|
+
types?: {
|
|
43
|
+
PAYMENT_NAME?: PaymentTypes;
|
|
44
|
+
};
|
|
45
|
+
num_order?: number;
|
|
46
|
+
total?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface Promo {
|
|
49
|
+
num_order?: number;
|
|
50
|
+
total?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface Discounts {
|
|
53
|
+
types?: {
|
|
54
|
+
promo?: {
|
|
55
|
+
DISCOUNT_CODE_NAME?: Promo;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
num_order?: number;
|
|
59
|
+
total?: number;
|
|
60
|
+
}
|
|
61
|
+
export interface Fee {
|
|
62
|
+
amounts?: {
|
|
63
|
+
num_order?: number;
|
|
64
|
+
total?: number;
|
|
65
|
+
};
|
|
66
|
+
total?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface Fees {
|
|
69
|
+
types?: {
|
|
70
|
+
FEE_NAME?: Fee;
|
|
71
|
+
};
|
|
72
|
+
num_order?: number;
|
|
73
|
+
total?: number;
|
|
74
|
+
}
|
|
75
|
+
export interface TimeOfDay {
|
|
76
|
+
times?: {
|
|
77
|
+
Breakfast?: {
|
|
78
|
+
num_order?: number;
|
|
79
|
+
total?: number;
|
|
80
|
+
num_orders_by_prep_time?: number;
|
|
81
|
+
total_by_prep_time?: number;
|
|
82
|
+
};
|
|
83
|
+
Lunch?: {
|
|
84
|
+
num_order?: number;
|
|
85
|
+
total?: number;
|
|
86
|
+
num_orders_by_prep_time?: number;
|
|
87
|
+
total_by_prep_time?: number;
|
|
88
|
+
};
|
|
89
|
+
Dinner?: {
|
|
90
|
+
num_order?: number;
|
|
91
|
+
total?: number;
|
|
92
|
+
num_orders_by_prep_time?: number;
|
|
93
|
+
total_by_prep_time?: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
taxes?: number;
|
|
97
|
+
gst?: number;
|
|
98
|
+
pst?: number;
|
|
99
|
+
count_total_daily?: number;
|
|
100
|
+
net_total_daily?: number;
|
|
101
|
+
}
|
|
102
|
+
export interface Distribution {
|
|
103
|
+
time_of_day?: TimeOfDay;
|
|
104
|
+
brands?: Brands;
|
|
105
|
+
grand_total?: GrandTotal;
|
|
106
|
+
web_total?: GrandTotal;
|
|
107
|
+
}
|
|
108
|
+
export interface BrandPayments {
|
|
109
|
+
count?: number;
|
|
110
|
+
subtotal?: number;
|
|
111
|
+
gross?: number;
|
|
112
|
+
total_discount?: number;
|
|
113
|
+
total_fees?: number;
|
|
114
|
+
taxes?: number;
|
|
115
|
+
gst?: number;
|
|
116
|
+
pst?: number;
|
|
117
|
+
net_sales?: number;
|
|
118
|
+
total?: number;
|
|
119
|
+
}
|
|
120
|
+
export interface BrandTotals {
|
|
121
|
+
PAYMENT_TYPE?: BrandPayments;
|
|
122
|
+
"Brand Total"?: BrandPayments;
|
|
123
|
+
}
|
|
124
|
+
export interface Brands {
|
|
125
|
+
names?: {
|
|
126
|
+
BRAND_NAME?: BrandTotals;
|
|
127
|
+
};
|
|
128
|
+
num_order?: number;
|
|
129
|
+
total?: number;
|
|
130
|
+
}
|
|
131
|
+
export interface GrandTotal {
|
|
132
|
+
gross?: number;
|
|
133
|
+
total?: number;
|
|
134
|
+
count?: number;
|
|
135
|
+
sub_total?: number;
|
|
136
|
+
service_fees?: number;
|
|
137
|
+
delivery_fees?: number;
|
|
138
|
+
discounts?: number;
|
|
139
|
+
taxes?: number;
|
|
140
|
+
net_sales?: number;
|
|
141
|
+
pst?: number;
|
|
142
|
+
gst?: number;
|
|
143
|
+
}
|
|
144
|
+
export interface Summary {
|
|
145
|
+
summary?: {
|
|
146
|
+
summary?: TotalSummary;
|
|
147
|
+
disbursement?: Disbursements;
|
|
148
|
+
discount?: Discounts;
|
|
149
|
+
fees?: Fees;
|
|
150
|
+
};
|
|
151
|
+
distribution?: Distribution;
|
|
152
|
+
}
|
|
153
|
+
export interface EODSubscribers {
|
|
154
|
+
subscribers?: {
|
|
155
|
+
email?: string;
|
|
156
|
+
units?: {
|
|
157
|
+
id?: string;
|
|
158
|
+
unit?: number;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
total_units?: number;
|
|
162
|
+
}
|
|
163
|
+
export interface Subscriber {
|
|
164
|
+
email?: string;
|
|
165
|
+
units?: number[];
|
|
166
|
+
}
|
|
167
|
+
export interface SAReport {
|
|
168
|
+
analytics?: {
|
|
169
|
+
avg_bill: number;
|
|
170
|
+
transactions_total: number;
|
|
171
|
+
sales_total: number;
|
|
172
|
+
years: string;
|
|
173
|
+
dates: string[];
|
|
174
|
+
series: {
|
|
175
|
+
name: string;
|
|
176
|
+
data: number[];
|
|
177
|
+
}[];
|
|
178
|
+
top_items: {
|
|
179
|
+
sales: number;
|
|
180
|
+
item_rank: number;
|
|
181
|
+
location_description: string;
|
|
182
|
+
[index: string]: any;
|
|
183
|
+
}[];
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
export interface DiscrepancySubscriber {
|
|
187
|
+
subscribers_response?: {
|
|
188
|
+
id?: string;
|
|
189
|
+
email?: string;
|
|
190
|
+
type?: string;
|
|
191
|
+
}[];
|
|
192
|
+
[index: string]: any;
|
|
193
|
+
}
|
|
194
|
+
export declare type DiscrepancySubscriberRequest = any[];
|
|
195
|
+
export interface P2AnalyticsReport {
|
|
196
|
+
message?: string;
|
|
197
|
+
date_resolved?: string;
|
|
198
|
+
payload?: {
|
|
199
|
+
location_group: string;
|
|
200
|
+
location_id?: string;
|
|
201
|
+
order_date?: string;
|
|
202
|
+
brandname: string;
|
|
203
|
+
brandid: string;
|
|
204
|
+
avg_bill?: number;
|
|
205
|
+
currency?: string;
|
|
206
|
+
avg_cad_against_usd?: number;
|
|
207
|
+
avg_cad_rate?: number;
|
|
208
|
+
order_net_sales?: number;
|
|
209
|
+
number_transactions?: number;
|
|
210
|
+
itemlabel?: string;
|
|
211
|
+
item_rank?: number;
|
|
212
|
+
sales?: number;
|
|
213
|
+
}[];
|
|
214
|
+
}
|
|
215
|
+
export interface DiscrepancyTotals {
|
|
216
|
+
message?: string;
|
|
217
|
+
date_resolved?: string;
|
|
218
|
+
payload?: {
|
|
219
|
+
unitid?: string;
|
|
220
|
+
date?: string;
|
|
221
|
+
exact_total?: number;
|
|
222
|
+
mobile_total?: number;
|
|
223
|
+
difference?: number;
|
|
224
|
+
}[];
|
|
225
|
+
}
|
|
226
|
+
export interface DiscrepancyCount {
|
|
227
|
+
message?: string;
|
|
228
|
+
date_resolved?: string;
|
|
229
|
+
payload?: {
|
|
230
|
+
discrepancy_count?: number;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
export interface DiscrepancyTranscation {
|
|
234
|
+
message?: string;
|
|
235
|
+
date_resolved?: string;
|
|
236
|
+
payload?: {
|
|
237
|
+
unitid?: string;
|
|
238
|
+
exact_tag?: string;
|
|
239
|
+
exact_order_time?: string;
|
|
240
|
+
exact_card_type?: string;
|
|
241
|
+
exact_pickup_name?: string;
|
|
242
|
+
exact_transcation_type?: string;
|
|
243
|
+
exact_total?: number;
|
|
244
|
+
exact_merchant_name?: string;
|
|
245
|
+
exact_status?: string;
|
|
246
|
+
mobile_orderid?: string;
|
|
247
|
+
mobile_order_time?: string;
|
|
248
|
+
mobile_payment_type?: string;
|
|
249
|
+
mobile_pickup_name?: string;
|
|
250
|
+
mobile_total?: number;
|
|
251
|
+
}[];
|
|
252
|
+
}
|
|
253
|
+
export interface TrackerReport {
|
|
254
|
+
file?: string;
|
|
255
|
+
format?: string;
|
|
256
|
+
}
|
|
257
|
+
export interface GetReportAnalyticsGroupPath {
|
|
258
|
+
location_group: string;
|
|
259
|
+
report_type: string;
|
|
260
|
+
}
|
|
261
|
+
export interface GetReportAnalyticsGroupQuery {
|
|
262
|
+
brand_id?: string;
|
|
263
|
+
brand_ids?: string;
|
|
264
|
+
start_date: string;
|
|
265
|
+
end_date: string;
|
|
266
|
+
time_frame: string;
|
|
267
|
+
order_type?: string;
|
|
268
|
+
}
|
|
269
|
+
export declare type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
|
|
270
|
+
export interface GetReportAnalyticsGroupRequest extends GetReportAnalyticsGroupQuery, GetReportAnalyticsGroupPath {
|
|
271
|
+
}
|
|
272
|
+
export interface GetReportAnalyticsCombinedGroupPath {
|
|
273
|
+
location_group: string;
|
|
274
|
+
}
|
|
275
|
+
export interface GetReportAnalyticsCombinedGroupQuery {
|
|
276
|
+
brand_id?: string;
|
|
277
|
+
brand_ids?: string;
|
|
278
|
+
start_date: string;
|
|
279
|
+
end_date: string;
|
|
280
|
+
time_frame: string;
|
|
281
|
+
order_type?: string;
|
|
282
|
+
}
|
|
283
|
+
export declare type GetReportAnalyticsCombinedGroupResponse = SAReport;
|
|
284
|
+
export interface GetReportAnalyticsCombinedGroupRequest extends GetReportAnalyticsCombinedGroupQuery, GetReportAnalyticsCombinedGroupPath {
|
|
285
|
+
}
|
|
286
|
+
export interface GetReportAnalyticsExactmobileTotalsQuery {
|
|
287
|
+
start_date: string;
|
|
288
|
+
end_date: string;
|
|
289
|
+
unitids: number[];
|
|
290
|
+
offset: number;
|
|
291
|
+
}
|
|
292
|
+
export declare type GetReportAnalyticsExactmobileTotalsResponse = DiscrepancyTotals;
|
|
293
|
+
export interface GetReportAnalyticsExactmobileTotalsRequest extends GetReportAnalyticsExactmobileTotalsQuery {
|
|
294
|
+
}
|
|
295
|
+
export interface GetReportAnalyticsExactmobileTransactionsQuery {
|
|
296
|
+
start_date: string;
|
|
297
|
+
end_date: string;
|
|
298
|
+
unitids: number[];
|
|
299
|
+
offset: number;
|
|
300
|
+
}
|
|
301
|
+
export declare type GetReportAnalyticsExactmobileTransactionsResponse = DiscrepancyTranscation;
|
|
302
|
+
export interface GetReportAnalyticsExactmobileTransactionsRequest extends GetReportAnalyticsExactmobileTransactionsQuery {
|
|
303
|
+
}
|
|
304
|
+
export interface GetReportAnalyticsExactmobileDiscrepanciesQuery {
|
|
305
|
+
start_date: string;
|
|
306
|
+
end_date: string;
|
|
307
|
+
unitids: number[];
|
|
308
|
+
offset: number;
|
|
309
|
+
}
|
|
310
|
+
export declare type GetReportAnalyticsExactmobileDiscrepanciesResponse = DiscrepancyCount;
|
|
311
|
+
export interface GetReportAnalyticsExactmobileDiscrepanciesRequest extends GetReportAnalyticsExactmobileDiscrepanciesQuery {
|
|
312
|
+
}
|
|
313
|
+
export interface GetReportAnalyticsTrackerReportPath {
|
|
314
|
+
id: string;
|
|
315
|
+
}
|
|
316
|
+
export declare type GetReportAnalyticsTrackerReportResponse = TrackerReport;
|
|
317
|
+
export interface GetReportAnalyticsTrackerReportRequest extends GetReportAnalyticsTrackerReportPath {
|
|
318
|
+
}
|
|
319
|
+
export interface GetReportEodGroupPath {
|
|
320
|
+
id: string;
|
|
321
|
+
}
|
|
322
|
+
export interface GetReportEodGroupQuery {
|
|
323
|
+
start?: string;
|
|
324
|
+
end?: string;
|
|
325
|
+
format?: string;
|
|
326
|
+
locations?: string;
|
|
327
|
+
}
|
|
328
|
+
export declare type GetReportEodGroupResponse = EODReports;
|
|
329
|
+
export interface GetReportEodGroupRequest extends GetReportEodGroupQuery, GetReportEodGroupPath {
|
|
330
|
+
}
|
|
331
|
+
export interface GetReportEodGroupSubscribersPath {
|
|
332
|
+
id: string;
|
|
333
|
+
}
|
|
334
|
+
export declare type GetReportEodGroupSubscribersResponse = EODSubscribers;
|
|
335
|
+
export interface GetReportEodGroupSubscribersRequest extends GetReportEodGroupSubscribersPath {
|
|
336
|
+
}
|
|
337
|
+
export interface PostReportEodGroupSubscribersPath {
|
|
338
|
+
id: string;
|
|
339
|
+
}
|
|
340
|
+
export declare type PostReportEodGroupSubscribersBody = EODSubscribers;
|
|
341
|
+
export declare type PostReportEodGroupSubscribersResponse = EODSubscribers;
|
|
342
|
+
export interface PostReportEodGroupSubscribersRequest extends PostReportEodGroupSubscribersPath {
|
|
343
|
+
body: PostReportEodGroupSubscribersBody;
|
|
344
|
+
}
|
|
345
|
+
export interface DeleteReportEodGroupSubscribersPath {
|
|
346
|
+
id: string;
|
|
347
|
+
}
|
|
348
|
+
export declare type DeleteReportEodGroupSubscribersResponse = Success;
|
|
349
|
+
export interface DeleteReportEodGroupSubscribersRequest extends DeleteReportEodGroupSubscribersPath {
|
|
350
|
+
}
|
|
351
|
+
export interface PutReportEodGroupSubscribersPath {
|
|
352
|
+
id: string;
|
|
353
|
+
}
|
|
354
|
+
export declare type PutReportEodGroupSubscribersBody = EODSubscribers;
|
|
355
|
+
export declare type PutReportEodGroupSubscribersResponse = EODSubscribers;
|
|
356
|
+
export interface PutReportEodGroupSubscribersRequest extends PutReportEodGroupSubscribersPath {
|
|
357
|
+
body: PutReportEodGroupSubscribersBody;
|
|
358
|
+
}
|
|
359
|
+
export interface GetReportDiscrepancySubscribersQuery {
|
|
360
|
+
email?: string;
|
|
361
|
+
}
|
|
362
|
+
export declare type GetReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
|
|
363
|
+
export interface GetReportDiscrepancySubscribersRequest extends GetReportDiscrepancySubscribersQuery {
|
|
364
|
+
}
|
|
365
|
+
export interface DeleteReportDiscrepancySubscribersQuery {
|
|
366
|
+
emailid: string;
|
|
367
|
+
}
|
|
368
|
+
export declare type DeleteReportDiscrepancySubscribersResponse = Success;
|
|
369
|
+
export interface DeleteReportDiscrepancySubscribersRequest extends DeleteReportDiscrepancySubscribersQuery {
|
|
370
|
+
}
|
|
371
|
+
export declare type PostReportDiscrepancySubscribersBody = DiscrepancySubscriberRequest;
|
|
372
|
+
export declare type PostReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
|
|
373
|
+
export interface PostReportDiscrepancySubscribersRequest {
|
|
374
|
+
body: PostReportDiscrepancySubscribersBody;
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=report.d.ts.map
|