@onylab/common-api 1.1.5 → 1.2.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/data/mockup/api/hubrise/account.json +5 -0
- package/data/mockup/api/hubrise/catalog.json +15 -0
- package/data/mockup/api/hubrise/catalogs.json +12 -0
- package/data/mockup/api/hubrise/customer.json +39 -0
- package/data/mockup/api/hubrise/customer_lists.json +12 -0
- package/data/mockup/api/hubrise/customers.json +75 -0
- package/data/mockup/api/hubrise/locations.json +15 -0
- package/data/mockup/api/hubrise/order.json +76 -0
- package/data/mockup/api/hubrise/user.json +13 -0
- package/dist/common-api.d.ts +1200 -66
- package/dist/common-api.node.min.js +1 -1
- package/dist/common-api.node.min.js.map +1 -1
- package/dist/data/mockup/api/hubrise/account.json +5 -0
- package/dist/data/mockup/api/hubrise/catalog.json +15 -0
- package/dist/data/mockup/api/hubrise/catalogs.json +12 -0
- package/dist/data/mockup/api/hubrise/customer.json +39 -0
- package/dist/data/mockup/api/hubrise/customer_lists.json +12 -0
- package/dist/data/mockup/api/hubrise/customers.json +75 -0
- package/dist/data/mockup/api/hubrise/locations.json +15 -0
- package/dist/data/mockup/api/hubrise/order.json +76 -0
- package/dist/data/mockup/api/hubrise/user.json +13 -0
- package/mocha.env.js +1 -0
- package/package.json +30 -32
package/dist/common-api.d.ts
CHANGED
|
@@ -1,16 +1,1055 @@
|
|
|
1
|
-
declare module "
|
|
2
|
-
export class
|
|
3
|
-
|
|
4
|
-
static
|
|
5
|
-
static
|
|
6
|
-
static db(): string;
|
|
7
|
-
static root(): string;
|
|
8
|
-
static session(): string;
|
|
9
|
-
static storage(): string;
|
|
1
|
+
declare module "api/mockup/ApiMockup" {
|
|
2
|
+
export class ApiMockup {
|
|
3
|
+
static isDone(): boolean;
|
|
4
|
+
static pending(): string;
|
|
5
|
+
static reset(): void;
|
|
10
6
|
}
|
|
11
7
|
}
|
|
12
|
-
declare module "
|
|
13
|
-
export
|
|
8
|
+
declare module "api/hubrise/model/order/HubriseOrderStatus" {
|
|
9
|
+
export enum HubriseOrderStatus {
|
|
10
|
+
new = "new",
|
|
11
|
+
received = "received",
|
|
12
|
+
accepted = "accepted",
|
|
13
|
+
in_preparation = "in_preparation",
|
|
14
|
+
awaiting_shipment = "awaiting_shipment",
|
|
15
|
+
awaiting_collection = "awaiting_collection",
|
|
16
|
+
in_delivery = "in_delivery",
|
|
17
|
+
completed = "completed",
|
|
18
|
+
rejected = "rejected",
|
|
19
|
+
cancelled = "cancelled",
|
|
20
|
+
delivery_failed = "delivery_failed"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
declare module "api/hubrise/model/customer/HubriseCustomerContract" {
|
|
24
|
+
export interface HubriseCustomerContract {
|
|
25
|
+
first_name?: string;
|
|
26
|
+
last_name?: string;
|
|
27
|
+
gender?: string;
|
|
28
|
+
birth_date?: string;
|
|
29
|
+
company_name?: string;
|
|
30
|
+
email?: string;
|
|
31
|
+
phone?: string;
|
|
32
|
+
phone_access_code?: string;
|
|
33
|
+
address_1?: string;
|
|
34
|
+
address_2?: string;
|
|
35
|
+
postal_code?: string;
|
|
36
|
+
city?: string;
|
|
37
|
+
state?: string;
|
|
38
|
+
country?: string;
|
|
39
|
+
latitude?: string;
|
|
40
|
+
longitude?: string;
|
|
41
|
+
delivery_notes?: string;
|
|
42
|
+
sms_marketing?: boolean;
|
|
43
|
+
email_marketing?: boolean;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
declare module "api/hubrise/model/order/HubriseOrderOptionContract" {
|
|
47
|
+
export interface HubriseOrderOptionContract {
|
|
48
|
+
option_list_name: string;
|
|
49
|
+
name: string;
|
|
50
|
+
ref?: string;
|
|
51
|
+
price?: string;
|
|
52
|
+
removed?: boolean;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
declare module "api/hubrise/model/order/HubriseOrderItemContract" {
|
|
56
|
+
import { HubriseOrderOptionContract } from "api/hubrise/model/order/HubriseOrderOptionContract";
|
|
57
|
+
export interface HubriseOrderItemContract {
|
|
58
|
+
private_ref?: string;
|
|
59
|
+
product_name: string;
|
|
60
|
+
sku_name?: string;
|
|
61
|
+
sku_ref?: string;
|
|
62
|
+
price?: string;
|
|
63
|
+
quantity?: string;
|
|
64
|
+
subtotal?: string;
|
|
65
|
+
tax_rate?: string;
|
|
66
|
+
customer_notes?: string;
|
|
67
|
+
points_earned?: string;
|
|
68
|
+
points_used?: string;
|
|
69
|
+
options?: HubriseOrderOptionContract[];
|
|
70
|
+
deleted?: boolean;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
declare module "api/hubrise/model/order/HubriseOrderLoyaltyOperationContract" {
|
|
74
|
+
export interface HubriseOrderLoyaltyOperationContract {
|
|
75
|
+
ref?: string;
|
|
76
|
+
delta: string;
|
|
77
|
+
reason?: string;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
declare module "api/hubrise/model/order/HubriseOrderChargeContract" {
|
|
81
|
+
export interface HubriseOrderChargeContract {
|
|
82
|
+
private_ref?: string;
|
|
83
|
+
type: 'delivery' | 'other';
|
|
84
|
+
name: string;
|
|
85
|
+
ref?: string;
|
|
86
|
+
price: string;
|
|
87
|
+
tax_rate?: string;
|
|
88
|
+
deleted?: boolean;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
declare module "api/hubrise/model/order/HubriseOrderPaymentContract" {
|
|
92
|
+
export interface HubriseOrderPaymentContract {
|
|
93
|
+
id?: string;
|
|
94
|
+
private_ref?: string;
|
|
95
|
+
name?: string;
|
|
96
|
+
ref?: 'cash' | 'online';
|
|
97
|
+
amount: string;
|
|
98
|
+
info?: Record<string, string>;
|
|
99
|
+
deleted?: boolean;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
declare module "api/hubrise/model/order/HubriseOrderDiscountContract" {
|
|
103
|
+
export interface HubriseOrderDiscountContract {
|
|
104
|
+
private_ref?: string;
|
|
105
|
+
name: string;
|
|
106
|
+
ref?: string;
|
|
107
|
+
pricing_effect?: 'unchanged' | 'fixed_price' | 'price_off' | 'percentage_off';
|
|
108
|
+
price_off: string;
|
|
109
|
+
pricing_value?: string;
|
|
110
|
+
deleted?: boolean;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
declare module "api/hubrise/model/order/HubriseOrderDealContract" {
|
|
114
|
+
export interface HubriseOrderDealContract {
|
|
115
|
+
name: string;
|
|
116
|
+
ref?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
declare module "api/hubrise/model/order/HubriseOrderContract" {
|
|
120
|
+
import { HubriseOrderStatus } from "api/hubrise/model/order/HubriseOrderStatus";
|
|
121
|
+
import { HubriseCustomerContract } from "api/hubrise/model/customer/HubriseCustomerContract";
|
|
122
|
+
import { HubriseOrderItemContract } from "api/hubrise/model/order/HubriseOrderItemContract";
|
|
123
|
+
import { HubriseOrderLoyaltyOperationContract } from "api/hubrise/model/order/HubriseOrderLoyaltyOperationContract";
|
|
124
|
+
import { HubriseOrderChargeContract } from "api/hubrise/model/order/HubriseOrderChargeContract";
|
|
125
|
+
import { HubriseOrderPaymentContract } from "api/hubrise/model/order/HubriseOrderPaymentContract";
|
|
126
|
+
import { HubriseOrderDiscountContract } from "api/hubrise/model/order/HubriseOrderDiscountContract";
|
|
127
|
+
import { HubriseOrderDealContract } from "api/hubrise/model/order/HubriseOrderDealContract";
|
|
128
|
+
export interface HubriseOrderContract {
|
|
129
|
+
id?: string;
|
|
130
|
+
location_id?: string;
|
|
131
|
+
private_ref?: string;
|
|
132
|
+
status: HubriseOrderStatus;
|
|
133
|
+
service_type?: 'delivery' | 'collection' | 'eat_in';
|
|
134
|
+
service_type_ref?: string;
|
|
135
|
+
channel?: string;
|
|
136
|
+
expected_time?: string;
|
|
137
|
+
confirmed_time?: string;
|
|
138
|
+
customer_id?: string;
|
|
139
|
+
customer_list_id?: string;
|
|
140
|
+
customer_private_ref?: string;
|
|
141
|
+
customer?: HubriseCustomerContract;
|
|
142
|
+
customer_notes?: string;
|
|
143
|
+
seller_notes?: string;
|
|
144
|
+
coupon_codes?: string[];
|
|
145
|
+
collection_code?: string;
|
|
146
|
+
total?: string;
|
|
147
|
+
custom_fields?: Record<string, string>;
|
|
148
|
+
items?: HubriseOrderItemContract[];
|
|
149
|
+
loyalty_operations?: HubriseOrderLoyaltyOperationContract[];
|
|
150
|
+
charges?: HubriseOrderChargeContract[];
|
|
151
|
+
payments?: HubriseOrderPaymentContract[];
|
|
152
|
+
discounts?: HubriseOrderDiscountContract[];
|
|
153
|
+
deals?: HubriseOrderDealContract[];
|
|
154
|
+
created_at?: string;
|
|
155
|
+
created_by?: string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
declare module "api/hubrise/mockup/HubriseApiMockup" {
|
|
159
|
+
import { ApiMockup } from "api/mockup/ApiMockup";
|
|
160
|
+
export class HubriseApiMockup extends ApiMockup {
|
|
161
|
+
static readonly BASE_URL: string;
|
|
162
|
+
static getUser(times?: number): void;
|
|
163
|
+
static getLocations(times?: number): void;
|
|
164
|
+
static createCustomer(times?: number): void;
|
|
165
|
+
static getCustomer(times?: number): void;
|
|
166
|
+
static getCustomers(times?: number): void;
|
|
167
|
+
static getCustomerLists(times?: number): void;
|
|
168
|
+
static createOrder(times?: number): void;
|
|
169
|
+
static getOrder(times?: number, generateRandomId?: boolean): void;
|
|
170
|
+
static setOrderStatus(times?: number): void;
|
|
171
|
+
static getCatalog(times?: number): void;
|
|
172
|
+
static getCatalogs(times?: number): void;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
declare module "api/hubrise/model/menu/HubriseMenuCategoryContract" {
|
|
176
|
+
export interface HubriseMenuCategoryContract {
|
|
177
|
+
ref: string;
|
|
178
|
+
parent_ref?: string;
|
|
179
|
+
name: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
tags: string[];
|
|
182
|
+
image_ids: string[];
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
declare module "api/hubrise/model/menu/HubriseMenuRestrictionsContract" {
|
|
186
|
+
export interface HubriseMenuRestrictionsContract {
|
|
187
|
+
dow?: string;
|
|
188
|
+
start_time?: string;
|
|
189
|
+
end_time?: string;
|
|
190
|
+
start_date?: string;
|
|
191
|
+
end_date?: string;
|
|
192
|
+
service_types?: string[];
|
|
193
|
+
min_order_amount?: string;
|
|
194
|
+
max_per_order?: string;
|
|
195
|
+
max_per_customer?: string;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
declare module "api/hubrise/model/menu/HubriseMenuPriceOverrideContract" {
|
|
199
|
+
export interface HubriseMenuPriceOverrideContract {
|
|
200
|
+
dow?: string;
|
|
201
|
+
start_time?: string;
|
|
202
|
+
end_time?: string;
|
|
203
|
+
start_date?: string;
|
|
204
|
+
end_date?: string;
|
|
205
|
+
service_types?: ('delivery' | 'collection' | 'eat_in')[];
|
|
206
|
+
price: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
declare module "api/hubrise/model/menu/HubriseMenuSkuContract" {
|
|
210
|
+
import { HubriseMenuRestrictionsContract } from "api/hubrise/model/menu/HubriseMenuRestrictionsContract";
|
|
211
|
+
import { HubriseMenuPriceOverrideContract } from "api/hubrise/model/menu/HubriseMenuPriceOverrideContract";
|
|
212
|
+
export interface HubriseMenuSkuContract {
|
|
213
|
+
ref?: string;
|
|
214
|
+
name?: string;
|
|
215
|
+
restrictions?: HubriseMenuRestrictionsContract;
|
|
216
|
+
price: string;
|
|
217
|
+
price_overrides: HubriseMenuPriceOverrideContract[];
|
|
218
|
+
option_list_refs?: string[];
|
|
219
|
+
tags?: string[];
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
declare module "api/hubrise/model/menu/HubriseMenuProductContract" {
|
|
223
|
+
import { HubriseMenuSkuContract } from "api/hubrise/model/menu/HubriseMenuSkuContract";
|
|
224
|
+
export interface HubriseMenuProductContract {
|
|
225
|
+
ref?: string;
|
|
226
|
+
category_ref: string;
|
|
227
|
+
name: string;
|
|
228
|
+
description?: string;
|
|
229
|
+
tags?: string[];
|
|
230
|
+
image_ids: string[];
|
|
231
|
+
skus: HubriseMenuSkuContract[];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
declare module "api/hubrise/model/menu/HubriseMenuProductOptionContract" {
|
|
235
|
+
import { HubriseMenuPriceOverrideContract } from "api/hubrise/model/menu/HubriseMenuPriceOverrideContract";
|
|
236
|
+
export interface HubriseMenuProductOptionContract {
|
|
237
|
+
ref?: string;
|
|
238
|
+
name: string;
|
|
239
|
+
price: string;
|
|
240
|
+
price_overrides: HubriseMenuPriceOverrideContract[];
|
|
241
|
+
default?: boolean;
|
|
242
|
+
tags?: string[];
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
declare module "api/hubrise/model/menu/HubriseMenuProductOptionListContract" {
|
|
246
|
+
import { HubriseMenuProductOptionContract } from "api/hubrise/model/menu/HubriseMenuProductOptionContract";
|
|
247
|
+
export interface HubriseMenuProductOptionListContract {
|
|
248
|
+
ref: string;
|
|
249
|
+
name: string;
|
|
250
|
+
min_selections?: number;
|
|
251
|
+
max_selections?: number;
|
|
252
|
+
tags?: string[];
|
|
253
|
+
options: HubriseMenuProductOptionContract[];
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
declare module "api/hubrise/model/menu/HubriseMenuDealLineContract" {
|
|
257
|
+
export interface HubriseMenuDealLineContract {
|
|
258
|
+
skus?: {
|
|
259
|
+
ref: string;
|
|
260
|
+
extra_charge?: string;
|
|
261
|
+
};
|
|
262
|
+
pricing_effect: 'unchanged' | 'fixed_price' | 'price_off' | 'percentage_off';
|
|
263
|
+
pricing_value?: string;
|
|
264
|
+
label?: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
declare module "api/hubrise/model/menu/HubriseMenuDealContract" {
|
|
268
|
+
import { HubriseMenuRestrictionsContract } from "api/hubrise/model/menu/HubriseMenuRestrictionsContract";
|
|
269
|
+
import { HubriseMenuDealLineContract } from "api/hubrise/model/menu/HubriseMenuDealLineContract";
|
|
270
|
+
export interface HubriseMenuDealContract {
|
|
271
|
+
ref?: string;
|
|
272
|
+
category_ref?: string;
|
|
273
|
+
name: string;
|
|
274
|
+
description?: string;
|
|
275
|
+
restrictions?: HubriseMenuRestrictionsContract;
|
|
276
|
+
coupon_codes?: string[];
|
|
277
|
+
tags?: string[];
|
|
278
|
+
image_ids?: string[];
|
|
279
|
+
lines: HubriseMenuDealLineContract[];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
declare module "api/hubrise/model/menu/HubriseMenuDiscountContract" {
|
|
283
|
+
import { HubriseMenuRestrictionsContract } from "api/hubrise/model/menu/HubriseMenuRestrictionsContract";
|
|
284
|
+
export interface HubriseMenuDiscountContract {
|
|
285
|
+
ref?: string;
|
|
286
|
+
name: string;
|
|
287
|
+
description?: string;
|
|
288
|
+
restrictions?: HubriseMenuRestrictionsContract;
|
|
289
|
+
coupon_codes?: string[];
|
|
290
|
+
pricing_effect: 'price_off' | 'percentage_off';
|
|
291
|
+
pricing_value?: string;
|
|
292
|
+
image_ids?: string[];
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
declare module "api/hubrise/model/menu/HubriseMenuChargeContract" {
|
|
296
|
+
export interface HubriseMenuChargeContract {
|
|
297
|
+
ref?: string;
|
|
298
|
+
name: string;
|
|
299
|
+
type: 'delivery' | 'payment_fee' | 'tip' | 'tax' | 'other';
|
|
300
|
+
price?: string;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
declare module "api/hubrise/model/menu/HubriseMenuCatalogContract" {
|
|
304
|
+
import { HubriseMenuCategoryContract } from "api/hubrise/model/menu/HubriseMenuCategoryContract";
|
|
305
|
+
import { HubriseMenuProductContract } from "api/hubrise/model/menu/HubriseMenuProductContract";
|
|
306
|
+
import { HubriseMenuProductOptionListContract } from "api/hubrise/model/menu/HubriseMenuProductOptionListContract";
|
|
307
|
+
import { HubriseMenuDealContract } from "api/hubrise/model/menu/HubriseMenuDealContract";
|
|
308
|
+
import { HubriseMenuDiscountContract } from "api/hubrise/model/menu/HubriseMenuDiscountContract";
|
|
309
|
+
import { HubriseMenuChargeContract } from "api/hubrise/model/menu/HubriseMenuChargeContract";
|
|
310
|
+
export interface HubriseMenuCatalogContract {
|
|
311
|
+
id?: string;
|
|
312
|
+
location_id?: string;
|
|
313
|
+
name: string;
|
|
314
|
+
created_at?: string;
|
|
315
|
+
data: {
|
|
316
|
+
categories?: HubriseMenuCategoryContract[];
|
|
317
|
+
products?: HubriseMenuProductContract[];
|
|
318
|
+
option_lists?: HubriseMenuProductOptionListContract[];
|
|
319
|
+
deals?: HubriseMenuDealContract[];
|
|
320
|
+
discounts?: HubriseMenuDiscountContract[];
|
|
321
|
+
charges?: HubriseMenuChargeContract[];
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
declare module "api/hubrise/model/customer/HubriseCustomerListContract" {
|
|
326
|
+
export interface HubriseCustomerListContract {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
created_at: string;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
declare module "api/hubrise/model/location/HubriseOpeningHoursContract" {
|
|
333
|
+
export interface HubriseOpeningHoursContract {
|
|
334
|
+
monday?: {
|
|
335
|
+
from: string;
|
|
336
|
+
to: string;
|
|
337
|
+
}[];
|
|
338
|
+
tuesday?: {
|
|
339
|
+
from: string;
|
|
340
|
+
to: string;
|
|
341
|
+
}[];
|
|
342
|
+
wednesday?: {
|
|
343
|
+
from: string;
|
|
344
|
+
to: string;
|
|
345
|
+
}[];
|
|
346
|
+
thursday?: {
|
|
347
|
+
from: string;
|
|
348
|
+
to: string;
|
|
349
|
+
}[];
|
|
350
|
+
friday?: {
|
|
351
|
+
from: string;
|
|
352
|
+
to: string;
|
|
353
|
+
}[];
|
|
354
|
+
saturday?: {
|
|
355
|
+
from: string;
|
|
356
|
+
to: string;
|
|
357
|
+
}[];
|
|
358
|
+
sunday?: {
|
|
359
|
+
from: string;
|
|
360
|
+
to: string;
|
|
361
|
+
}[];
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
declare module "api/hubrise/model/common/HubriseCurrencyCode" {
|
|
365
|
+
export enum HubriseCurrencyCode {
|
|
366
|
+
AED = "AED",// UAE Dirham
|
|
367
|
+
AFN = "AFN",// Afghani
|
|
368
|
+
ALL = "ALL",// Lek
|
|
369
|
+
AMD = "AMD",// Armenian Dram
|
|
370
|
+
ANG = "ANG",// Netherlands Antillean Guilder
|
|
371
|
+
AOA = "AOA",// Kwanza
|
|
372
|
+
ARS = "ARS",// Argentine Peso
|
|
373
|
+
AUD = "AUD",// Australian Dollar
|
|
374
|
+
AWG = "AWG",// Aruban Florin
|
|
375
|
+
AZN = "AZN",// Azerbaijanian Manat
|
|
376
|
+
BAM = "BAM",// Convertible Mark
|
|
377
|
+
BBD = "BBD",// Barbados Dollar
|
|
378
|
+
BDT = "BDT",// Taka
|
|
379
|
+
BGN = "BGN",// Bulgarian Lev
|
|
380
|
+
BHD = "BHD",// Bahraini Dinar
|
|
381
|
+
BIF = "BIF",// Burundi Franc
|
|
382
|
+
BMD = "BMD",// Bermudian Dollar
|
|
383
|
+
BND = "BND",// Brunei Dollar
|
|
384
|
+
BOB = "BOB",// Boliviano
|
|
385
|
+
BOV = "BOV",// Mvdol
|
|
386
|
+
BRL = "BRL",// Brazilian Real
|
|
387
|
+
BSD = "BSD",// Bahamian Dollar
|
|
388
|
+
BTN = "BTN",// Ngultrum
|
|
389
|
+
BWP = "BWP",// Pula
|
|
390
|
+
BYN = "BYN",// Belarussian Ruble
|
|
391
|
+
BZD = "BZD",// Belize Dollar
|
|
392
|
+
CAD = "CAD",// Canadian Dollar
|
|
393
|
+
CDF = "CDF",// Congolese Franc
|
|
394
|
+
CHE = "CHE",// WIR Euro
|
|
395
|
+
CHF = "CHF",// Swiss Franc
|
|
396
|
+
CHW = "CHW",// WIR Franc
|
|
397
|
+
CLF = "CLF",// Unidad de Fomento
|
|
398
|
+
CLP = "CLP",// Chilean Peso
|
|
399
|
+
CNY = "CNY",// Yuan Renminbi
|
|
400
|
+
COP = "COP",// Colombian Peso
|
|
401
|
+
COU = "COU",// Unidad de Valor Real
|
|
402
|
+
CRC = "CRC",// Costa Rican Colon
|
|
403
|
+
CUC = "CUC",// Peso Convertible
|
|
404
|
+
CUP = "CUP",// Cuban Peso
|
|
405
|
+
CVE = "CVE",// Cabo Verde Escudo
|
|
406
|
+
CZK = "CZK",// Czech Koruna
|
|
407
|
+
DJF = "DJF",// Djibouti Franc
|
|
408
|
+
DKK = "DKK",// Danish Krone
|
|
409
|
+
DOP = "DOP",// Dominican Peso
|
|
410
|
+
DZD = "DZD",// Algerian Dinar
|
|
411
|
+
EGP = "EGP",// Egyptian Pound
|
|
412
|
+
ERN = "ERN",// Nakfa
|
|
413
|
+
ETB = "ETB",// Ethiopian Birr
|
|
414
|
+
EUR = "EUR",// Euro
|
|
415
|
+
FJD = "FJD",// Fiji Dollar
|
|
416
|
+
FKP = "FKP",// Falkland Islands Pound
|
|
417
|
+
GBP = "GBP",// Pound Sterling
|
|
418
|
+
GEL = "GEL",// Lari
|
|
419
|
+
GHS = "GHS",// Ghana Cedi
|
|
420
|
+
GIP = "GIP",// Gibraltar Pound
|
|
421
|
+
GMD = "GMD",// Dalasi
|
|
422
|
+
GNF = "GNF",// Guinea Franc
|
|
423
|
+
GTQ = "GTQ",// Quetzal
|
|
424
|
+
GYD = "GYD",// Guyana Dollar
|
|
425
|
+
HKD = "HKD",// Hong Kong Dollar
|
|
426
|
+
HNL = "HNL",// Lempira
|
|
427
|
+
HRK = "HRK",// Croatian Kuna
|
|
428
|
+
HTG = "HTG",// Gourde
|
|
429
|
+
HUF = "HUF",// Forint
|
|
430
|
+
IDR = "IDR",// Rupiah
|
|
431
|
+
ILS = "ILS",// New Israeli Sheqel
|
|
432
|
+
INR = "INR",// Indian Rupee
|
|
433
|
+
IQD = "IQD",// Iraqi Dinar
|
|
434
|
+
IRR = "IRR",// Iranian Rial
|
|
435
|
+
ISK = "ISK",// Iceland Krona
|
|
436
|
+
JMD = "JMD",// Jamaican Dollar
|
|
437
|
+
JOD = "JOD",// Jordanian Dinar
|
|
438
|
+
JPY = "JPY",// Yen
|
|
439
|
+
KES = "KES",// Kenyan Shilling
|
|
440
|
+
KGS = "KGS",// Som
|
|
441
|
+
KHR = "KHR",// Riel
|
|
442
|
+
KMF = "KMF",// Comoro Franc
|
|
443
|
+
KPW = "KPW",// North Korean Won
|
|
444
|
+
KRW = "KRW",// Won
|
|
445
|
+
KWD = "KWD",// Kuwaiti Dinar
|
|
446
|
+
KYD = "KYD",// Cayman Islands Dollar
|
|
447
|
+
KZT = "KZT",// Tenge
|
|
448
|
+
LAK = "LAK",// Kip
|
|
449
|
+
LBP = "LBP",// Lebanese Pound
|
|
450
|
+
LKR = "LKR",// Sri Lanka Rupee
|
|
451
|
+
LRD = "LRD",// Liberian Dollar
|
|
452
|
+
LSL = "LSL",// Loti
|
|
453
|
+
LYD = "LYD",// Libyan Dinar
|
|
454
|
+
MAD = "MAD",// Moroccan Dirham
|
|
455
|
+
MDL = "MDL",// Moldovan Leu
|
|
456
|
+
MGA = "MGA",// Malagasy Ariary
|
|
457
|
+
MKD = "MKD",// Denar
|
|
458
|
+
MMK = "MMK",// Kyat
|
|
459
|
+
MNT = "MNT",// Tugrik
|
|
460
|
+
MOP = "MOP",// Pataca
|
|
461
|
+
MRU = "MRU",// Ouguiya
|
|
462
|
+
MUR = "MUR",// Mauritius Rupee
|
|
463
|
+
MVR = "MVR",// Rufiyaa
|
|
464
|
+
MWK = "MWK",// Kwacha
|
|
465
|
+
MXN = "MXN",// Mexican Peso
|
|
466
|
+
MXV = "MXV",// Mexican Unidad de Inversion (UDI)
|
|
467
|
+
MYR = "MYR",// Malaysian Ringgit
|
|
468
|
+
MZN = "MZN",// Mozambique Metical
|
|
469
|
+
NAD = "NAD",// Namibia Dollar
|
|
470
|
+
NGN = "NGN",// Naira
|
|
471
|
+
NIO = "NIO",// Cordoba Oro
|
|
472
|
+
NOK = "NOK",// Norwegian Krone
|
|
473
|
+
NPR = "NPR",// Nepalese Rupee
|
|
474
|
+
NZD = "NZD",// New Zealand Dollar
|
|
475
|
+
OMR = "OMR",// Rial Omani
|
|
476
|
+
PAB = "PAB",// Balboa
|
|
477
|
+
PEN = "PEN",// Nuevo Sol
|
|
478
|
+
PGK = "PGK",// Kina
|
|
479
|
+
PHP = "PHP",// Philippine Peso
|
|
480
|
+
PKR = "PKR",// Pakistan Rupee
|
|
481
|
+
PLN = "PLN",// Zloty
|
|
482
|
+
PYG = "PYG",// Guarani
|
|
483
|
+
QAR = "QAR",// Qatari Rial
|
|
484
|
+
RON = "RON",// Romanian Leu
|
|
485
|
+
RSD = "RSD",// Serbian Dinar
|
|
486
|
+
RUB = "RUB",// Russian Ruble
|
|
487
|
+
RWF = "RWF",// Rwanda Franc
|
|
488
|
+
SAR = "SAR",// Saudi Riyal
|
|
489
|
+
SBD = "SBD",// Solomon Islands Dollar
|
|
490
|
+
SCR = "SCR",// Seychelles Rupee
|
|
491
|
+
SDG = "SDG",// Sudanese Pound
|
|
492
|
+
SEK = "SEK",// Swedish Krona
|
|
493
|
+
SGD = "SGD",// Singapore Dollar
|
|
494
|
+
SHP = "SHP",// Saint Helena Pound
|
|
495
|
+
SLE = "SLE",// Leone
|
|
496
|
+
SOS = "SOS",// Somali Shilling
|
|
497
|
+
SRD = "SRD",// Surinam Dollar
|
|
498
|
+
SSP = "SSP",// South Sudanese Pound
|
|
499
|
+
STN = "STN",// Dobra
|
|
500
|
+
SVC = "SVC",// El Salvador Colon
|
|
501
|
+
SYP = "SYP",// Syrian Pound
|
|
502
|
+
SZL = "SZL",// Lilangeni
|
|
503
|
+
THB = "THB",// Baht
|
|
504
|
+
TJS = "TJS",// Somoni
|
|
505
|
+
TMT = "TMT",// Turkmenistan New Manat
|
|
506
|
+
TND = "TND",// Tunisian Dinar
|
|
507
|
+
TOP = "TOP",// Pa'anga
|
|
508
|
+
TRY = "TRY",// Turkish Lira
|
|
509
|
+
TTD = "TTD",// Trinidad and Tobago Dollar
|
|
510
|
+
TWD = "TWD",// New Taiwan Dollar
|
|
511
|
+
TZS = "TZS",// Tanzanian Shilling
|
|
512
|
+
UAH = "UAH",// Hryvnia
|
|
513
|
+
UGX = "UGX",// Uganda Shilling
|
|
514
|
+
USD = "USD",// US Dollar
|
|
515
|
+
USN = "USN",// US Dollar (Next day)
|
|
516
|
+
UYI = "UYI",// Uruguay Peso en Unidades Indexadas
|
|
517
|
+
UYU = "UYU",// Peso Uruguayo
|
|
518
|
+
UZS = "UZS",// Uzbekistan Sum
|
|
519
|
+
VED = "VED",// Bolivar
|
|
520
|
+
VEF = "VEF",// Bolivar
|
|
521
|
+
VND = "VND",// Dong
|
|
522
|
+
VUV = "VUV",// Vatu
|
|
523
|
+
WST = "WST",// Tala
|
|
524
|
+
XAF = "XAF",// CFA Franc BEAC
|
|
525
|
+
XCD = "XCD",// East Caribbean Dollar
|
|
526
|
+
XDR = "XDR",// SDR (Special Drawing Right)
|
|
527
|
+
XOF = "XOF",// CFA Franc BCEAO
|
|
528
|
+
XPF = "XPF",// CFP Franc
|
|
529
|
+
XSU = "XSU",// Sucre
|
|
530
|
+
XUA = "XUA",// ADB Unit of Account
|
|
531
|
+
YER = "YER",// Yemeni Rial
|
|
532
|
+
ZAR = "ZAR",// Rand
|
|
533
|
+
ZMW = "ZMW",// Zambian Kwacha
|
|
534
|
+
ZWL = "ZWL"
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
declare module "api/hubrise/model/account/HubriseAccountContract" {
|
|
538
|
+
import { HubriseCurrencyCode } from "api/hubrise/model/common/HubriseCurrencyCode";
|
|
539
|
+
export interface HubriseAccountContract {
|
|
540
|
+
id: string;
|
|
541
|
+
name: string;
|
|
542
|
+
currency: HubriseCurrencyCode;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
declare module "api/hubrise/model/common/HubriseTimezoneId" {
|
|
546
|
+
export enum HubriseTimezoneId {
|
|
547
|
+
Africa_Abidjan = "Africa/Abidjan",
|
|
548
|
+
Africa_Algiers = "Africa/Algiers",
|
|
549
|
+
Africa_Bissau = "Africa/Bissau",
|
|
550
|
+
Africa_Cairo = "Africa/Cairo",
|
|
551
|
+
Africa_Casablanca = "Africa/Casablanca",
|
|
552
|
+
Africa_Ceuta = "Africa/Ceuta",
|
|
553
|
+
Africa_El_Aaiun = "Africa/El_Aaiun",
|
|
554
|
+
Africa_Johannesburg = "Africa/Johannesburg",
|
|
555
|
+
Africa_Juba = "Africa/Juba",
|
|
556
|
+
Africa_Khartoum = "Africa/Khartoum",
|
|
557
|
+
Africa_Lagos = "Africa/Lagos",
|
|
558
|
+
Africa_Maputo = "Africa/Maputo",
|
|
559
|
+
Africa_Monrovia = "Africa/Monrovia",
|
|
560
|
+
Africa_Nairobi = "Africa/Nairobi",
|
|
561
|
+
Africa_Ndjamena = "Africa/Ndjamena",
|
|
562
|
+
Africa_Sao_Tome = "Africa/Sao_Tome",
|
|
563
|
+
Africa_Tripoli = "Africa/Tripoli",
|
|
564
|
+
Africa_Tunis = "Africa/Tunis",
|
|
565
|
+
Africa_Windhoek = "Africa/Windhoek",
|
|
566
|
+
America_Adak = "America/Adak",
|
|
567
|
+
America_Anchorage = "America/Anchorage",
|
|
568
|
+
America_Araguaina = "America/Araguaina",
|
|
569
|
+
America_Argentina_Buenos_Aires = "America/Argentina/Buenos_Aires",
|
|
570
|
+
America_Argentina_Catamarca = "America/Argentina/Catamarca",
|
|
571
|
+
America_Argentina_Cordoba = "America/Argentina/Cordoba",
|
|
572
|
+
America_Argentina_Jujuy = "America/Argentina/Jujuy",
|
|
573
|
+
America_Argentina_La_Rioja = "America/Argentina/La_Rioja",
|
|
574
|
+
America_Argentina_Mendoza = "America/Argentina/Mendoza",
|
|
575
|
+
America_Argentina_Rio_Gallegos = "America/Argentina/Rio_Gallegos",
|
|
576
|
+
America_Argentina_Salta = "America/Argentina/Salta",
|
|
577
|
+
America_Argentina_San_Juan = "America/Argentina/San_Juan",
|
|
578
|
+
America_Argentina_San_Luis = "America/Argentina/San_Luis",
|
|
579
|
+
America_Argentina_Tucuman = "America/Argentina/Tucuman",
|
|
580
|
+
America_Argentina_Ushuaia = "America/Argentina/Ushuaia",
|
|
581
|
+
America_Asuncion = "America/Asuncion",
|
|
582
|
+
America_Bahia = "America/Bahia",
|
|
583
|
+
America_Bahia_Banderas = "America/Bahia_Banderas",
|
|
584
|
+
America_Barbados = "America/Barbados",
|
|
585
|
+
America_Belem = "America/Belem",
|
|
586
|
+
America_Belize = "America/Belize",
|
|
587
|
+
America_Boa_Vista = "America/Boa_Vista",
|
|
588
|
+
America_Bogota = "America/Bogota",
|
|
589
|
+
America_Boise = "America/Boise",
|
|
590
|
+
America_Cambridge_Bay = "America/Cambridge_Bay",
|
|
591
|
+
America_Campo_Grande = "America/Campo_Grande",
|
|
592
|
+
America_Cancun = "America/Cancun",
|
|
593
|
+
America_Caracas = "America/Caracas",
|
|
594
|
+
America_Cayenne = "America/Cayenne",
|
|
595
|
+
America_Chicago = "America/Chicago",
|
|
596
|
+
America_Chihuahua = "America/Chihuahua",
|
|
597
|
+
America_Ciudad_Juarez = "America/Ciudad_Juarez",
|
|
598
|
+
America_Costa_Rica = "America/Costa_Rica",
|
|
599
|
+
America_Coyhaique = "America/Coyhaique",
|
|
600
|
+
America_Cuiaba = "America/Cuiaba",
|
|
601
|
+
America_Danmarkshavn = "America/Danmarkshavn",
|
|
602
|
+
America_Dawson = "America/Dawson",
|
|
603
|
+
America_Dawson_Creek = "America/Dawson_Creek",
|
|
604
|
+
America_Denver = "America/Denver",
|
|
605
|
+
America_Detroit = "America/Detroit",
|
|
606
|
+
America_Edmonton = "America/Edmonton",
|
|
607
|
+
America_Eirunepe = "America/Eirunepe",
|
|
608
|
+
America_El_Salvador = "America/El_Salvador",
|
|
609
|
+
America_Fort_Nelson = "America/Fort_Nelson",
|
|
610
|
+
America_Fortaleza = "America/Fortaleza",
|
|
611
|
+
America_Glace_Bay = "America/Glace_Bay",
|
|
612
|
+
America_Goose_Bay = "America/Goose_Bay",
|
|
613
|
+
America_Grand_Turk = "America/Grand_Turk",
|
|
614
|
+
America_Guatemala = "America/Guatemala",
|
|
615
|
+
America_Guayaquil = "America/Guayaquil",
|
|
616
|
+
America_Guyana = "America/Guyana",
|
|
617
|
+
America_Halifax = "America/Halifax",
|
|
618
|
+
America_Havana = "America/Havana",
|
|
619
|
+
America_Hermosillo = "America/Hermosillo",
|
|
620
|
+
America_Indiana_Indianapolis = "America/Indiana/Indianapolis",
|
|
621
|
+
America_Indiana_Knox = "America/Indiana/Knox",
|
|
622
|
+
America_Indiana_Marengo = "America/Indiana/Marengo",
|
|
623
|
+
America_Indiana_Petersburg = "America/Indiana/Petersburg",
|
|
624
|
+
America_Indiana_Tell_City = "America/Indiana/Tell_City",
|
|
625
|
+
America_Indiana_Vevay = "America/Indiana/Vevay",
|
|
626
|
+
America_Indiana_Vincennes = "America/Indiana/Vincennes",
|
|
627
|
+
America_Indiana_Winamac = "America/Indiana/Winamac",
|
|
628
|
+
America_Inuvik = "America/Inuvik",
|
|
629
|
+
America_Iqaluit = "America/Iqaluit",
|
|
630
|
+
America_Jamaica = "America/Jamaica",
|
|
631
|
+
America_Juneau = "America/Juneau",
|
|
632
|
+
America_Kentucky_Louisville = "America/Kentucky/Louisville",
|
|
633
|
+
America_Kentucky_Monticello = "America/Kentucky/Monticello",
|
|
634
|
+
America_La_Paz = "America/La_Paz",
|
|
635
|
+
America_Lima = "America/Lima",
|
|
636
|
+
America_Los_Angeles = "America/Los_Angeles",
|
|
637
|
+
America_Maceio = "America/Maceio",
|
|
638
|
+
America_Managua = "America/Managua",
|
|
639
|
+
America_Manaus = "America/Manaus",
|
|
640
|
+
America_Martinique = "America/Martinique",
|
|
641
|
+
America_Matamoros = "America/Matamoros",
|
|
642
|
+
America_Mazatlan = "America/Mazatlan",
|
|
643
|
+
America_Menominee = "America/Menominee",
|
|
644
|
+
America_Merida = "America/Merida",
|
|
645
|
+
America_Metlakatla = "America/Metlakatla",
|
|
646
|
+
America_Mexico_City = "America/Mexico_City",
|
|
647
|
+
America_Miquelon = "America/Miquelon",
|
|
648
|
+
America_Moncton = "America/Moncton",
|
|
649
|
+
America_Monterrey = "America/Monterrey",
|
|
650
|
+
America_Montevideo = "America/Montevideo",
|
|
651
|
+
America_New_York = "America/New_York",
|
|
652
|
+
America_Nome = "America/Nome",
|
|
653
|
+
America_Noronha = "America/Noronha",
|
|
654
|
+
America_North_Dakota_Beulah = "America/North_Dakota/Beulah",
|
|
655
|
+
America_North_Dakota_Center = "America/North_Dakota/Center",
|
|
656
|
+
America_North_Dakota_New_Salem = "America/North_Dakota/New_Salem",
|
|
657
|
+
America_Nuuk = "America/Nuuk",
|
|
658
|
+
America_Ojinaga = "America/Ojinaga",
|
|
659
|
+
America_Panama = "America/Panama",
|
|
660
|
+
America_Paramaribo = "America/Paramaribo",
|
|
661
|
+
America_Phoenix = "America/Phoenix",
|
|
662
|
+
America_Port_au_Prince = "America/Port-au-Prince",
|
|
663
|
+
America_Porto_Velho = "America/Porto_Velho",
|
|
664
|
+
America_Puerto_Rico = "America/Puerto_Rico",
|
|
665
|
+
America_Punta_Arenas = "America/Punta_Arenas",
|
|
666
|
+
America_Rankin_Inlet = "America/Rankin_Inlet",
|
|
667
|
+
America_Recife = "America/Recife",
|
|
668
|
+
America_Regina = "America/Regina",
|
|
669
|
+
America_Resolute = "America/Resolute",
|
|
670
|
+
America_Rio_Branco = "America/Rio_Branco",
|
|
671
|
+
America_Santarem = "America/Santarem",
|
|
672
|
+
America_Santiago = "America/Santiago",
|
|
673
|
+
America_Santo_Domingo = "America/Santo_Domingo",
|
|
674
|
+
America_Sao_Paulo = "America/Sao_Paulo",
|
|
675
|
+
America_Scoresbysund = "America/Scoresbysund",
|
|
676
|
+
America_Sitka = "America/Sitka",
|
|
677
|
+
America_St_Johns = "America/St_Johns",
|
|
678
|
+
America_Swift_Current = "America/Swift_Current",
|
|
679
|
+
America_Tegucigalpa = "America/Tegucigalpa",
|
|
680
|
+
America_Thule = "America/Thule",
|
|
681
|
+
America_Tijuana = "America/Tijuana",
|
|
682
|
+
America_Toronto = "America/Toronto",
|
|
683
|
+
America_Vancouver = "America/Vancouver",
|
|
684
|
+
America_Whitehorse = "America/Whitehorse",
|
|
685
|
+
America_Winnipeg = "America/Winnipeg",
|
|
686
|
+
America_Yakutat = "America/Yakutat",
|
|
687
|
+
Antarctica_Casey = "Antarctica/Casey",
|
|
688
|
+
Antarctica_Davis = "Antarctica/Davis",
|
|
689
|
+
Antarctica_Macquarie = "Antarctica/Macquarie",
|
|
690
|
+
Antarctica_Mawson = "Antarctica/Mawson",
|
|
691
|
+
Antarctica_Palmer = "Antarctica/Palmer",
|
|
692
|
+
Antarctica_Rothera = "Antarctica/Rothera",
|
|
693
|
+
Antarctica_Troll = "Antarctica/Troll",
|
|
694
|
+
Antarctica_Vostok = "Antarctica/Vostok",
|
|
695
|
+
Asia_Almaty = "Asia/Almaty",
|
|
696
|
+
Asia_Amman = "Asia/Amman",
|
|
697
|
+
Asia_Anadyr = "Asia/Anadyr",
|
|
698
|
+
Asia_Aqtau = "Asia/Aqtau",
|
|
699
|
+
Asia_Aqtobe = "Asia/Aqtobe",
|
|
700
|
+
Asia_Ashgabat = "Asia/Ashgabat",
|
|
701
|
+
Asia_Atyrau = "Asia/Atyrau",
|
|
702
|
+
Asia_Baghdad = "Asia/Baghdad",
|
|
703
|
+
Asia_Baku = "Asia/Baku",
|
|
704
|
+
Asia_Bangkok = "Asia/Bangkok",
|
|
705
|
+
Asia_Barnaul = "Asia/Barnaul",
|
|
706
|
+
Asia_Beirut = "Asia/Beirut",
|
|
707
|
+
Asia_Bishkek = "Asia/Bishkek",
|
|
708
|
+
Asia_Chita = "Asia/Chita",
|
|
709
|
+
Asia_Colombo = "Asia/Colombo",
|
|
710
|
+
Asia_Damascus = "Asia/Damascus",
|
|
711
|
+
Asia_Dhaka = "Asia/Dhaka",
|
|
712
|
+
Asia_Dili = "Asia/Dili",
|
|
713
|
+
Asia_Dubai = "Asia/Dubai",
|
|
714
|
+
Asia_Dushanbe = "Asia/Dushanbe",
|
|
715
|
+
Asia_Famagusta = "Asia/Famagusta",
|
|
716
|
+
Asia_Gaza = "Asia/Gaza",
|
|
717
|
+
Asia_Hebron = "Asia/Hebron",
|
|
718
|
+
Asia_Ho_Chi_Minh = "Asia/Ho_Chi_Minh",
|
|
719
|
+
Asia_Hong_Kong = "Asia/Hong_Kong",
|
|
720
|
+
Asia_Hovd = "Asia/Hovd",
|
|
721
|
+
Asia_Irkutsk = "Asia/Irkutsk",
|
|
722
|
+
Asia_Jakarta = "Asia/Jakarta",
|
|
723
|
+
Asia_Jayapura = "Asia/Jayapura",
|
|
724
|
+
Asia_Jerusalem = "Asia/Jerusalem",
|
|
725
|
+
Asia_Kabul = "Asia/Kabul",
|
|
726
|
+
Asia_Kamchatka = "Asia/Kamchatka",
|
|
727
|
+
Asia_Karachi = "Asia/Karachi",
|
|
728
|
+
Asia_Kathmandu = "Asia/Kathmandu",
|
|
729
|
+
Asia_Khandyga = "Asia/Khandyga",
|
|
730
|
+
Asia_Kolkata = "Asia/Kolkata",
|
|
731
|
+
Asia_Krasnoyarsk = "Asia/Krasnoyarsk",
|
|
732
|
+
Asia_Kuching = "Asia/Kuching",
|
|
733
|
+
Asia_Macau = "Asia/Macau",
|
|
734
|
+
Asia_Magadan = "Asia/Magadan",
|
|
735
|
+
Asia_Makassar = "Asia/Makassar",
|
|
736
|
+
Asia_Manila = "Asia/Manila",
|
|
737
|
+
Asia_Nicosia = "Asia/Nicosia",
|
|
738
|
+
Asia_Novokuznetsk = "Asia/Novokuznetsk",
|
|
739
|
+
Asia_Novosibirsk = "Asia/Novosibirsk",
|
|
740
|
+
Asia_Omsk = "Asia/Omsk",
|
|
741
|
+
Asia_Oral = "Asia/Oral",
|
|
742
|
+
Asia_Pontianak = "Asia/Pontianak",
|
|
743
|
+
Asia_Pyongyang = "Asia/Pyongyang",
|
|
744
|
+
Asia_Qatar = "Asia/Qatar",
|
|
745
|
+
Asia_Qostanay = "Asia/Qostanay",
|
|
746
|
+
Asia_Qyzylorda = "Asia/Qyzylorda",
|
|
747
|
+
Asia_Riyadh = "Asia/Riyadh",
|
|
748
|
+
Asia_Sakhalin = "Asia/Sakhalin",
|
|
749
|
+
Asia_Samarkand = "Asia/Samarkand",
|
|
750
|
+
Asia_Seoul = "Asia/Seoul",
|
|
751
|
+
Asia_Shanghai = "Asia/Shanghai",
|
|
752
|
+
Asia_Singapore = "Asia/Singapore",
|
|
753
|
+
Asia_Srednekolymsk = "Asia/Srednekolymsk",
|
|
754
|
+
Asia_Taipei = "Asia/Taipei",
|
|
755
|
+
Asia_Tashkent = "Asia/Tashkent",
|
|
756
|
+
Asia_Tbilisi = "Asia/Tbilisi",
|
|
757
|
+
Asia_Tehran = "Asia/Tehran",
|
|
758
|
+
Asia_Thimphu = "Asia/Thimphu",
|
|
759
|
+
Asia_Tokyo = "Asia/Tokyo",
|
|
760
|
+
Asia_Tomsk = "Asia/Tomsk",
|
|
761
|
+
Asia_Ulaanbaatar = "Asia/Ulaanbaatar",
|
|
762
|
+
Asia_Urumqi = "Asia/Urumqi",
|
|
763
|
+
Asia_Ust_Nera = "Asia/Ust-Nera",
|
|
764
|
+
Asia_Vladivostok = "Asia/Vladivostok",
|
|
765
|
+
Asia_Yakutsk = "Asia/Yakutsk",
|
|
766
|
+
Asia_Yangon = "Asia/Yangon",
|
|
767
|
+
Asia_Yekaterinburg = "Asia/Yekaterinburg",
|
|
768
|
+
Asia_Yerevan = "Asia/Yerevan",
|
|
769
|
+
Atlantic_Azores = "Atlantic/Azores",
|
|
770
|
+
Atlantic_Bermuda = "Atlantic/Bermuda",
|
|
771
|
+
Atlantic_Canary = "Atlantic/Canary",
|
|
772
|
+
Atlantic_Cape_Verde = "Atlantic/Cape_Verde",
|
|
773
|
+
Atlantic_Faroe = "Atlantic/Faroe",
|
|
774
|
+
Atlantic_Madeira = "Atlantic/Madeira",
|
|
775
|
+
Atlantic_South_Georgia = "Atlantic/South_Georgia",
|
|
776
|
+
Atlantic_Stanley = "Atlantic/Stanley",
|
|
777
|
+
Australia_Adelaide = "Australia/Adelaide",
|
|
778
|
+
Australia_Brisbane = "Australia/Brisbane",
|
|
779
|
+
Australia_Broken_Hill = "Australia/Broken_Hill",
|
|
780
|
+
Australia_Darwin = "Australia/Darwin",
|
|
781
|
+
Australia_Eucla = "Australia/Eucla",
|
|
782
|
+
Australia_Hobart = "Australia/Hobart",
|
|
783
|
+
Australia_Lindeman = "Australia/Lindeman",
|
|
784
|
+
Australia_Lord_Howe = "Australia/Lord_Howe",
|
|
785
|
+
Australia_Melbourne = "Australia/Melbourne",
|
|
786
|
+
Australia_Perth = "Australia/Perth",
|
|
787
|
+
Australia_Sydney = "Australia/Sydney",
|
|
788
|
+
Etc_GMT = "Etc/GMT",
|
|
789
|
+
Etc_GMT_Minus_1 = "Etc/GMT-1",
|
|
790
|
+
Etc_GMT_Minus_10 = "Etc/GMT-10",
|
|
791
|
+
Etc_GMT_Minus_11 = "Etc/GMT-11",
|
|
792
|
+
Etc_GMT_Minus_12 = "Etc/GMT-12",
|
|
793
|
+
Etc_GMT_Minus_13 = "Etc/GMT-13",
|
|
794
|
+
Etc_GMT_Minus_14 = "Etc/GMT-14",
|
|
795
|
+
Etc_GMT_Minus_2 = "Etc/GMT-2",
|
|
796
|
+
Etc_GMT_Minus_3 = "Etc/GMT-3",
|
|
797
|
+
Etc_GMT_Minus_4 = "Etc/GMT-4",
|
|
798
|
+
Etc_GMT_Minus_5 = "Etc/GMT-5",
|
|
799
|
+
Etc_GMT_Minus_6 = "Etc/GMT-6",
|
|
800
|
+
Etc_GMT_Minus_7 = "Etc/GMT-7",
|
|
801
|
+
Etc_GMT_Minus_8 = "Etc/GMT-8",
|
|
802
|
+
Etc_GMT_Minus_9 = "Etc/GMT-9",
|
|
803
|
+
Etc_GMT_Plus_1 = "Etc/GMT+1",
|
|
804
|
+
Etc_GMT_Plus_10 = "Etc/GMT+10",
|
|
805
|
+
Etc_GMT_Plus_11 = "Etc/GMT+11",
|
|
806
|
+
Etc_GMT_Plus_12 = "Etc/GMT+12",
|
|
807
|
+
Etc_GMT_Plus_2 = "Etc/GMT+2",
|
|
808
|
+
Etc_GMT_Plus_3 = "Etc/GMT+3",
|
|
809
|
+
Etc_GMT_Plus_4 = "Etc/GMT+4",
|
|
810
|
+
Etc_GMT_Plus_5 = "Etc/GMT+5",
|
|
811
|
+
Etc_GMT_Plus_6 = "Etc/GMT+6",
|
|
812
|
+
Etc_GMT_Plus_7 = "Etc/GMT+7",
|
|
813
|
+
Etc_GMT_Plus_8 = "Etc/GMT+8",
|
|
814
|
+
Etc_GMT_Plus_9 = "Etc/GMT+9",
|
|
815
|
+
Etc_UTC = "Etc/UTC",
|
|
816
|
+
Europe_Andorra = "Europe/Andorra",
|
|
817
|
+
Europe_Astrakhan = "Europe/Astrakhan",
|
|
818
|
+
Europe_Athens = "Europe/Athens",
|
|
819
|
+
Europe_Belgrade = "Europe/Belgrade",
|
|
820
|
+
Europe_Berlin = "Europe/Berlin",
|
|
821
|
+
Europe_Brussels = "Europe/Brussels",
|
|
822
|
+
Europe_Bucharest = "Europe/Bucharest",
|
|
823
|
+
Europe_Budapest = "Europe/Budapest",
|
|
824
|
+
Europe_Chisinau = "Europe/Chisinau",
|
|
825
|
+
Europe_Dublin = "Europe/Dublin",
|
|
826
|
+
Europe_Gibraltar = "Europe/Gibraltar",
|
|
827
|
+
Europe_Helsinki = "Europe/Helsinki",
|
|
828
|
+
Europe_Istanbul = "Europe/Istanbul",
|
|
829
|
+
Europe_Kaliningrad = "Europe/Kaliningrad",
|
|
830
|
+
Europe_Kirov = "Europe/Kirov",
|
|
831
|
+
Europe_Kyiv = "Europe/Kyiv",
|
|
832
|
+
Europe_Lisbon = "Europe/Lisbon",
|
|
833
|
+
Europe_London = "Europe/London",
|
|
834
|
+
Europe_Madrid = "Europe/Madrid",
|
|
835
|
+
Europe_Malta = "Europe/Malta",
|
|
836
|
+
Europe_Minsk = "Europe/Minsk",
|
|
837
|
+
Europe_Moscow = "Europe/Moscow",
|
|
838
|
+
Europe_Paris = "Europe/Paris",
|
|
839
|
+
Europe_Prague = "Europe/Prague",
|
|
840
|
+
Europe_Riga = "Europe/Riga",
|
|
841
|
+
Europe_Rome = "Europe/Rome",
|
|
842
|
+
Europe_Samara = "Europe/Samara",
|
|
843
|
+
Europe_Saratov = "Europe/Saratov",
|
|
844
|
+
Europe_Simferopol = "Europe/Simferopol",
|
|
845
|
+
Europe_Sofia = "Europe/Sofia",
|
|
846
|
+
Europe_Tallinn = "Europe/Tallinn",
|
|
847
|
+
Europe_Tirane = "Europe/Tirane",
|
|
848
|
+
Europe_Ulyanovsk = "Europe/Ulyanovsk",
|
|
849
|
+
Europe_Vienna = "Europe/Vienna",
|
|
850
|
+
Europe_Vilnius = "Europe/Vilnius",
|
|
851
|
+
Europe_Volgograd = "Europe/Volgograd",
|
|
852
|
+
Europe_Warsaw = "Europe/Warsaw",
|
|
853
|
+
Europe_Zurich = "Europe/Zurich",
|
|
854
|
+
Indian_Chagos = "Indian/Chagos",
|
|
855
|
+
Indian_Maldives = "Indian/Maldives",
|
|
856
|
+
Indian_Mauritius = "Indian/Mauritius",
|
|
857
|
+
Pacific_Apia = "Pacific/Apia",
|
|
858
|
+
Pacific_Auckland = "Pacific/Auckland",
|
|
859
|
+
Pacific_Bougainville = "Pacific/Bougainville",
|
|
860
|
+
Pacific_Chatham = "Pacific/Chatham",
|
|
861
|
+
Pacific_Easter = "Pacific/Easter",
|
|
862
|
+
Pacific_Efate = "Pacific/Efate",
|
|
863
|
+
Pacific_Fakaofo = "Pacific/Fakaofo",
|
|
864
|
+
Pacific_Fiji = "Pacific/Fiji",
|
|
865
|
+
Pacific_Galapagos = "Pacific/Galapagos",
|
|
866
|
+
Pacific_Gambier = "Pacific/Gambier",
|
|
867
|
+
Pacific_Guadalcanal = "Pacific/Guadalcanal",
|
|
868
|
+
Pacific_Guam = "Pacific/Guam",
|
|
869
|
+
Pacific_Honolulu = "Pacific/Honolulu",
|
|
870
|
+
Pacific_Kanton = "Pacific/Kanton",
|
|
871
|
+
Pacific_Kiritimati = "Pacific/Kiritimati",
|
|
872
|
+
Pacific_Kosrae = "Pacific/Kosrae",
|
|
873
|
+
Pacific_Kwajalein = "Pacific/Kwajalein",
|
|
874
|
+
Pacific_Marquesas = "Pacific/Marquesas",
|
|
875
|
+
Pacific_Nauru = "Pacific/Nauru",
|
|
876
|
+
Pacific_Niue = "Pacific/Niue",
|
|
877
|
+
Pacific_Norfolk = "Pacific/Norfolk",
|
|
878
|
+
Pacific_Noumea = "Pacific/Noumea",
|
|
879
|
+
Pacific_Pago_Pago = "Pacific/Pago_Pago",
|
|
880
|
+
Pacific_Palau = "Pacific/Palau",
|
|
881
|
+
Pacific_Pitcairn = "Pacific/Pitcairn",
|
|
882
|
+
Pacific_Port_Moresby = "Pacific/Port_Moresby",
|
|
883
|
+
Pacific_Rarotonga = "Pacific/Rarotonga",
|
|
884
|
+
Pacific_Tahiti = "Pacific/Tahiti",
|
|
885
|
+
Pacific_Tarawa = "Pacific/Tarawa",
|
|
886
|
+
Pacific_Tongatapu = "Pacific/Tongatapu"
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
declare module "api/hubrise/model/common/HubriseTimezoneContract" {
|
|
890
|
+
import { HubriseTimezoneId } from "api/hubrise/model/common/HubriseTimezoneId";
|
|
891
|
+
export interface HubriseTimezoneContract {
|
|
892
|
+
name: HubriseTimezoneId;
|
|
893
|
+
offset: number;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
declare module "api/hubrise/model/location/HubriseOrderAcceptanceContract" {
|
|
897
|
+
export interface HubriseOrderAcceptanceContract {
|
|
898
|
+
mode: 'normal' | 'busy' | 'paused';
|
|
899
|
+
resume_at?: string;
|
|
900
|
+
extra_preparation_time?: number;
|
|
901
|
+
reason?: string;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
declare module "api/hubrise/model/common/HubriseCustomFieldsContract" {
|
|
905
|
+
export interface HubriseCustomFieldsContract {
|
|
906
|
+
[key: string]: string;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
declare module "api/hubrise/model/location/HubriseLocationContract" {
|
|
910
|
+
import { HubriseOpeningHoursContract } from "api/hubrise/model/location/HubriseOpeningHoursContract";
|
|
911
|
+
import { HubriseAccountContract } from "api/hubrise/model/account/HubriseAccountContract";
|
|
912
|
+
import { HubriseTimezoneContract } from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
913
|
+
import { HubriseOrderAcceptanceContract } from "api/hubrise/model/location/HubriseOrderAcceptanceContract";
|
|
914
|
+
import { HubriseCustomFieldsContract } from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
915
|
+
export interface HubriseLocationContract {
|
|
916
|
+
id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
account: HubriseAccountContract;
|
|
919
|
+
address: string;
|
|
920
|
+
postal_code: string;
|
|
921
|
+
city: string;
|
|
922
|
+
country: string;
|
|
923
|
+
timezone: HubriseTimezoneContract;
|
|
924
|
+
cutoff_time: string;
|
|
925
|
+
opening_hours?: HubriseOpeningHoursContract;
|
|
926
|
+
preparation_time: number;
|
|
927
|
+
order_acceptance: HubriseOrderAcceptanceContract;
|
|
928
|
+
custom_fields?: HubriseCustomFieldsContract;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
declare module "api/hubrise/model/common/HubriseLocale" {
|
|
932
|
+
export enum HubriseLocale {
|
|
933
|
+
EN_US = "en-US",// Anglais (États-Unis)
|
|
934
|
+
EN_GB = "en-GB",// Anglais (Royaume-Uni)
|
|
935
|
+
EN_CA = "en-CA",// Anglais (Canada)
|
|
936
|
+
EN_AU = "en-AU",// Anglais (Australie)
|
|
937
|
+
EN_NZ = "en-NZ",// Anglais (Nouvelle-Zélande)
|
|
938
|
+
EN_ZA = "en-ZA",// Anglais (Afrique du Sud)
|
|
939
|
+
FR_FR = "fr-FR",// Français (France)
|
|
940
|
+
FR_CA = "fr-CA",// Français (Canada)
|
|
941
|
+
FR_BE = "fr-BE",// Français (Belgique)
|
|
942
|
+
FR_CH = "fr-CH",// Français (Suisse)
|
|
943
|
+
ES_ES = "es-ES",// Espagnol (Espagne)
|
|
944
|
+
ES_MX = "es-MX",// Espagnol (Mexique)
|
|
945
|
+
ES_AR = "es-AR",// Espagnol (Argentine)
|
|
946
|
+
ES_CO = "es-CO",// Espagnol (Colombie)
|
|
947
|
+
ES_CL = "es-CL",// Espagnol (Chili)
|
|
948
|
+
DE_DE = "de-DE",// Allemand (Allemagne)
|
|
949
|
+
DE_AT = "de-AT",// Allemand (Autriche)
|
|
950
|
+
DE_CH = "de-CH",// Allemand (Suisse)
|
|
951
|
+
IT_IT = "it-IT",// Italien (Italie)
|
|
952
|
+
IT_CH = "it-CH",// Italien (Suisse)
|
|
953
|
+
PT_PT = "pt-PT",// Portugais (Portugal)
|
|
954
|
+
PT_BR = "pt-BR",// Portugais (Brésil)
|
|
955
|
+
NL_NL = "nl-NL",// Néerlandais (Pays-Bas)
|
|
956
|
+
NL_BE = "nl-BE",// Néerlandais (Belgique)
|
|
957
|
+
SV_SE = "sv-SE",// Suédois (Suède)
|
|
958
|
+
NO_NO = "no-NO",// Norvégien (Norvège)
|
|
959
|
+
DA_DK = "da-DK",// Danois (Danemark)
|
|
960
|
+
FI_FI = "fi-FI",// Finnois (Finlande)
|
|
961
|
+
IS_IS = "is-IS",// Islandais (Islande)
|
|
962
|
+
RU_RU = "ru-RU",// Russe (Russie)
|
|
963
|
+
PL_PL = "pl-PL",// Polonais (Pologne)
|
|
964
|
+
CS_CZ = "cs-CZ",// Tchèque (République tchèque)
|
|
965
|
+
SK_SK = "sk-SK",// Slovaque (Slovaquie)
|
|
966
|
+
HR_HR = "hr-HR",// Croate (Croatie)
|
|
967
|
+
SR_RS = "sr-RS",// Serbe (Serbie)
|
|
968
|
+
BG_BG = "bg-BG",// Bulgare (Bulgarie)
|
|
969
|
+
UK_UA = "uk-UA",// Ukrainien (Ukraine)
|
|
970
|
+
JA_JP = "ja-JP",// Japonais (Japon)
|
|
971
|
+
KO_KR = "ko-KR",// Coréen (Corée du Sud)
|
|
972
|
+
ZH_CN = "zh-CN",// Chinois simplifié (Chine)
|
|
973
|
+
ZH_TW = "zh-TW",// Chinois traditionnel (Taïwan)
|
|
974
|
+
ZH_HK = "zh-HK",// Chinois traditionnel (Hong Kong)
|
|
975
|
+
TH_TH = "th-TH",// Thaï (Thaïlande)
|
|
976
|
+
VI_VN = "vi-VN",// Vietnamien (Vietnam)
|
|
977
|
+
ID_ID = "id-ID",// Indonésien (Indonésie)
|
|
978
|
+
MS_MY = "ms-MY",// Malais (Malaisie)
|
|
979
|
+
AR_SA = "ar-SA",// Arabe (Arabie saoudite)
|
|
980
|
+
AR_EG = "ar-EG",// Arabe (Égypte)
|
|
981
|
+
AR_AE = "ar-AE",// Arabe (Émirats arabes unis)
|
|
982
|
+
HE_IL = "he-IL",// Hébreu (Israël)
|
|
983
|
+
FA_IR = "fa-IR",// Persan (Iran)
|
|
984
|
+
TR_TR = "tr-TR",// Turc (Turquie)
|
|
985
|
+
HI_IN = "hi-IN",// Hindi (Inde)
|
|
986
|
+
BN_BD = "bn-BD",// Bengali (Bangladesh)
|
|
987
|
+
TA_IN = "ta-IN",// Tamoul (Inde)
|
|
988
|
+
TE_IN = "te-IN",// Telugu (Inde)
|
|
989
|
+
UR_PK = "ur-PK",// Ourdou (Pakistan)
|
|
990
|
+
EL_GR = "el-GR",// Grec (Grèce)
|
|
991
|
+
HU_HU = "hu-HU",// Hongrois (Hongrie)
|
|
992
|
+
RO_RO = "ro-RO",// Roumain (Roumanie)
|
|
993
|
+
LT_LT = "lt-LT",// Lituanien (Lituanie)
|
|
994
|
+
LV_LV = "lv-LV",// Letton (Lettonie)
|
|
995
|
+
ET_EE = "et-EE",// Estonien (Estonie)
|
|
996
|
+
SL_SI = "sl-SI",// Slovène (Slovénie)
|
|
997
|
+
MT_MT = "mt-MT",// Maltais (Malte)
|
|
998
|
+
SW_KE = "sw-KE",// Swahili (Kenya)
|
|
999
|
+
AF_ZA = "af-ZA",// Afrikaans (Afrique du Sud)
|
|
1000
|
+
AM_ET = "am-ET"
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
declare module "api/hubrise/model/user/HubriseUserContract" {
|
|
1004
|
+
import { HubriseTimezoneContract } from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
1005
|
+
import { HubriseLocale } from "api/hubrise/model/common/HubriseLocale";
|
|
1006
|
+
export interface HubriseUserContract {
|
|
1007
|
+
id: string;
|
|
1008
|
+
first_name: string;
|
|
1009
|
+
last_name: string;
|
|
1010
|
+
email: string;
|
|
1011
|
+
timezone: HubriseTimezoneContract;
|
|
1012
|
+
locales: HubriseLocale[];
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
declare module "api/hubrise/model/account/HubriseAuthContract" {
|
|
1016
|
+
export interface HubriseAuthContract {
|
|
1017
|
+
access_token: string;
|
|
1018
|
+
token_type: 'Bearer';
|
|
1019
|
+
account_id: string;
|
|
1020
|
+
location_id: string;
|
|
1021
|
+
catalog_id: string;
|
|
1022
|
+
customer_list_id: string;
|
|
1023
|
+
account_name: string;
|
|
1024
|
+
location_name: string;
|
|
1025
|
+
catalog_name: string;
|
|
1026
|
+
customer_list_name: string;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
declare module "api/hubrise/service/HubriseApiContract" {
|
|
1030
|
+
import { HubriseOrderContract } from "api/hubrise/model/order/HubriseOrderContract";
|
|
1031
|
+
import { HubriseOrderStatus } from "api/hubrise/model/order/HubriseOrderStatus";
|
|
1032
|
+
import { HubriseMenuCatalogContract } from "api/hubrise/model/menu/HubriseMenuCatalogContract";
|
|
1033
|
+
import { HubriseCustomerContract } from "api/hubrise/model/customer/HubriseCustomerContract";
|
|
1034
|
+
import { HubriseCustomerListContract } from "api/hubrise/model/customer/HubriseCustomerListContract";
|
|
1035
|
+
import { HubriseLocationContract } from "api/hubrise/model/location/HubriseLocationContract";
|
|
1036
|
+
import { HubriseUserContract } from "api/hubrise/model/user/HubriseUserContract";
|
|
1037
|
+
import { HubriseAuthContract } from "api/hubrise/model/account/HubriseAuthContract";
|
|
1038
|
+
export interface HubriseApiContract {
|
|
1039
|
+
authorize(clientId: string, redirect: string): Promise<string>;
|
|
1040
|
+
getToken(clientId: string, clientSecret: string, code: string): Promise<HubriseAuthContract>;
|
|
1041
|
+
getUser(): Promise<HubriseUserContract>;
|
|
1042
|
+
getLocations(): Promise<HubriseLocationContract[]>;
|
|
1043
|
+
createCustomer(hubriseCustomerListId: string, hubriseCustomer: HubriseCustomerContract): Promise<void>;
|
|
1044
|
+
getCustomer(hubriseCustomerListId: string, hubriseCustomerId: string): Promise<HubriseCustomerContract>;
|
|
1045
|
+
getCustomers(hubriseCustomerListId: string, reference?: string, email?: string, phone?: string): Promise<HubriseCustomerContract[]>;
|
|
1046
|
+
getCustomerLists(hubriseLocationId: string): Promise<HubriseCustomerListContract[]>;
|
|
1047
|
+
createOrder(hubriseLocationId: string, hubriseOrder: HubriseOrderContract): Promise<void>;
|
|
1048
|
+
getOrder(hubriseLocationId: string, hubriseOrderId: string): Promise<HubriseOrderContract>;
|
|
1049
|
+
setOrderStatus(hubriseLocationId: string, hubriseOrderId: string, status: HubriseOrderStatus): Promise<void>;
|
|
1050
|
+
getCatalog(hubriseCatalogId: string): Promise<HubriseMenuCatalogContract>;
|
|
1051
|
+
getCatalogs(hubriseLocationId: string): Promise<HubriseMenuCatalogContract[]>;
|
|
1052
|
+
}
|
|
14
1053
|
}
|
|
15
1054
|
declare module "exception/ExceptionContract" {
|
|
16
1055
|
export interface ExceptionContract {
|
|
@@ -35,6 +1074,152 @@ declare module "exception/MainException" {
|
|
|
35
1074
|
});
|
|
36
1075
|
}
|
|
37
1076
|
}
|
|
1077
|
+
declare module "exception/ExternalApiException" {
|
|
1078
|
+
import { MainException } from "exception/MainException";
|
|
1079
|
+
import { ExceptionContract } from "exception/ExceptionContract";
|
|
1080
|
+
export class ExternalApiException extends MainException implements ExceptionContract {
|
|
1081
|
+
constructor(message: string, data?: {
|
|
1082
|
+
[key: string]: any;
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
declare module "tool/Env" {
|
|
1087
|
+
export enum Env {
|
|
1088
|
+
PRODUCTION = "prod",
|
|
1089
|
+
DEVELOPMENT = "dev",
|
|
1090
|
+
TEST = "test"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
declare module "tool/Environment" {
|
|
1094
|
+
import { Env } from "tool/Env";
|
|
1095
|
+
export class Environment {
|
|
1096
|
+
static getMode(): Env;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
declare module "exception/UnauthorizedException" {
|
|
1100
|
+
import { MainException } from "exception/MainException";
|
|
1101
|
+
import { ExceptionContract } from "exception/ExceptionContract";
|
|
1102
|
+
export class UnauthorizedException extends MainException implements ExceptionContract {
|
|
1103
|
+
static readonly ERROR_CODE: number;
|
|
1104
|
+
constructor(message: string, data?: {
|
|
1105
|
+
[key: string]: any;
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
declare module "util/HelperUtil" {
|
|
1110
|
+
export const isNullOrUndefined: (obj: unknown) => boolean;
|
|
1111
|
+
}
|
|
1112
|
+
declare module "tool/Logger" {
|
|
1113
|
+
import { ExceptionContract } from "exception/ExceptionContract";
|
|
1114
|
+
import * as express from 'express';
|
|
1115
|
+
export class Logger {
|
|
1116
|
+
static init(sentryToken: string, app: express.Express): void;
|
|
1117
|
+
static trace(message: string, extra?: any): void;
|
|
1118
|
+
static debug(message: string, extra?: any): void;
|
|
1119
|
+
static info(message: string, extra?: any): void;
|
|
1120
|
+
static warning(error: ExceptionContract, extra?: any): void;
|
|
1121
|
+
static error(error: ExceptionContract, extra?: any): void;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
declare module "tool/Retry" {
|
|
1125
|
+
export class Retry {
|
|
1126
|
+
static request(process: () => Promise<void>, retries: number, logger: (error: Error) => void): Promise<any>;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
declare module "api/hubrise/service/HubriseApi" {
|
|
1130
|
+
import { HubriseApiContract } from "api/hubrise/service/HubriseApiContract";
|
|
1131
|
+
import { HubriseOrderContract } from "api/hubrise/model/order/HubriseOrderContract";
|
|
1132
|
+
import { HubriseOrderStatus } from "api/hubrise/model/order/HubriseOrderStatus";
|
|
1133
|
+
import { HubriseMenuCatalogContract } from "api/hubrise/model/menu/HubriseMenuCatalogContract";
|
|
1134
|
+
import { HubriseCustomerContract } from "api/hubrise/model/customer/HubriseCustomerContract";
|
|
1135
|
+
import { HubriseCustomerListContract } from "api/hubrise/model/customer/HubriseCustomerListContract";
|
|
1136
|
+
import { HubriseLocationContract } from "api/hubrise/model/location/HubriseLocationContract";
|
|
1137
|
+
import { HubriseUserContract } from "api/hubrise/model/user/HubriseUserContract";
|
|
1138
|
+
import { HubriseAuthContract } from "api/hubrise/model/account/HubriseAuthContract";
|
|
1139
|
+
export class HubriseApi implements HubriseApiContract {
|
|
1140
|
+
static readonly BASE_URL: string;
|
|
1141
|
+
static readonly BASE_AUTH_URL: string;
|
|
1142
|
+
private static readonly TIMEOUT;
|
|
1143
|
+
private readonly token;
|
|
1144
|
+
constructor(token: string);
|
|
1145
|
+
authorize(clientId: string, redirect: string): Promise<string>;
|
|
1146
|
+
getToken(clientId: string, clientSecret: string, code: string): Promise<HubriseAuthContract>;
|
|
1147
|
+
getUser(): Promise<HubriseUserContract>;
|
|
1148
|
+
getLocations(): Promise<HubriseLocationContract[]>;
|
|
1149
|
+
createCustomer(hubriseCustomerListId: string, hubriseCustomer: HubriseCustomerContract): Promise<void>;
|
|
1150
|
+
getCustomer(hubriseCustomerListId: string, hubriseCustomerId: string): Promise<HubriseCustomerContract>;
|
|
1151
|
+
getCustomers(hubriseCustomerListId: string, reference?: string, email?: string, phone?: string): Promise<HubriseCustomerContract[]>;
|
|
1152
|
+
getCustomerLists(hubriseLocationId: string): Promise<HubriseCustomerListContract[]>;
|
|
1153
|
+
createOrder(hubriseLocationId: string, hubriseOrder: HubriseOrderContract): Promise<void>;
|
|
1154
|
+
getOrder(hubriseLocationId: string, hubriseOrderId: string): Promise<HubriseOrderContract>;
|
|
1155
|
+
setOrderStatus(hubriseLocationId: string, hubriseOrderId: string, status: HubriseOrderStatus): Promise<void>;
|
|
1156
|
+
getCatalog(hubriseCatalogId: string): Promise<HubriseMenuCatalogContract>;
|
|
1157
|
+
getCatalogs(hubriseLocationId: string): Promise<HubriseMenuCatalogContract[]>;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
|
|
1161
|
+
export interface HubriseMenuImageContract {
|
|
1162
|
+
id: string;
|
|
1163
|
+
type: string;
|
|
1164
|
+
size: string;
|
|
1165
|
+
md5: string;
|
|
1166
|
+
seconds_before_removal: number;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
declare module "api/index" {
|
|
1170
|
+
export * from "api/hubrise/mockup/HubriseApiMockup";
|
|
1171
|
+
export * from "api/hubrise/service/HubriseApiContract";
|
|
1172
|
+
export * from "api/hubrise/service/HubriseApi";
|
|
1173
|
+
export * from "api/hubrise/model/account/HubriseAccountContract";
|
|
1174
|
+
export * from "api/hubrise/model/account/HubriseAuthContract";
|
|
1175
|
+
export * from "api/hubrise/model/common/HubriseCurrencyCode";
|
|
1176
|
+
export * from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
1177
|
+
export * from "api/hubrise/model/common/HubriseLocale";
|
|
1178
|
+
export * from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
1179
|
+
export * from "api/hubrise/model/common/HubriseTimezoneId";
|
|
1180
|
+
export * from "api/hubrise/model/customer/HubriseCustomerContract";
|
|
1181
|
+
export * from "api/hubrise/model/customer/HubriseCustomerListContract";
|
|
1182
|
+
export * from "api/hubrise/model/location/HubriseLocationContract";
|
|
1183
|
+
export * from "api/hubrise/model/location/HubriseOpeningHoursContract";
|
|
1184
|
+
export * from "api/hubrise/model/location/HubriseOrderAcceptanceContract";
|
|
1185
|
+
export * from "api/hubrise/model/menu/HubriseMenuCatalogContract";
|
|
1186
|
+
export * from "api/hubrise/model/menu/HubriseMenuCategoryContract";
|
|
1187
|
+
export * from "api/hubrise/model/menu/HubriseMenuChargeContract";
|
|
1188
|
+
export * from "api/hubrise/model/menu/HubriseMenuDealContract";
|
|
1189
|
+
export * from "api/hubrise/model/menu/HubriseMenuDealLineContract";
|
|
1190
|
+
export * from "api/hubrise/model/menu/HubriseMenuDiscountContract";
|
|
1191
|
+
export * from "api/hubrise/model/menu/HubriseMenuImageContract";
|
|
1192
|
+
export * from "api/hubrise/model/menu/HubriseMenuPriceOverrideContract";
|
|
1193
|
+
export * from "api/hubrise/model/menu/HubriseMenuProductContract";
|
|
1194
|
+
export * from "api/hubrise/model/menu/HubriseMenuProductOptionContract";
|
|
1195
|
+
export * from "api/hubrise/model/menu/HubriseMenuProductOptionListContract";
|
|
1196
|
+
export * from "api/hubrise/model/menu/HubriseMenuRestrictionsContract";
|
|
1197
|
+
export * from "api/hubrise/model/menu/HubriseMenuSkuContract";
|
|
1198
|
+
export * from "api/hubrise/model/order/HubriseOrderChargeContract";
|
|
1199
|
+
export * from "api/hubrise/model/order/HubriseOrderContract";
|
|
1200
|
+
export * from "api/hubrise/model/order/HubriseOrderDealContract";
|
|
1201
|
+
export * from "api/hubrise/model/order/HubriseOrderDiscountContract";
|
|
1202
|
+
export * from "api/hubrise/model/order/HubriseOrderItemContract";
|
|
1203
|
+
export * from "api/hubrise/model/order/HubriseOrderLoyaltyOperationContract";
|
|
1204
|
+
export * from "api/hubrise/model/order/HubriseOrderOptionContract";
|
|
1205
|
+
export * from "api/hubrise/model/order/HubriseOrderPaymentContract";
|
|
1206
|
+
export * from "api/hubrise/model/order/HubriseOrderStatus";
|
|
1207
|
+
export * from "api/hubrise/model/user/HubriseUserContract";
|
|
1208
|
+
}
|
|
1209
|
+
declare module "constant/Path" {
|
|
1210
|
+
export class Path {
|
|
1211
|
+
private static BASE_PATH;
|
|
1212
|
+
static registerBasePath(basePath: string): void;
|
|
1213
|
+
static data(): string;
|
|
1214
|
+
static db(): string;
|
|
1215
|
+
static root(): string;
|
|
1216
|
+
static session(): string;
|
|
1217
|
+
static storage(): string;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
declare module "constant/index" {
|
|
1221
|
+
export * from "constant/Path";
|
|
1222
|
+
}
|
|
38
1223
|
declare module "exception/BadParameterException" {
|
|
39
1224
|
import { MainException } from "exception/MainException";
|
|
40
1225
|
import { ExceptionContract } from "exception/ExceptionContract";
|
|
@@ -71,15 +1256,6 @@ declare module "exception/DuplicateException" {
|
|
|
71
1256
|
});
|
|
72
1257
|
}
|
|
73
1258
|
}
|
|
74
|
-
declare module "exception/ExternalApiException" {
|
|
75
|
-
import { MainException } from "exception/MainException";
|
|
76
|
-
import { ExceptionContract } from "exception/ExceptionContract";
|
|
77
|
-
export class ExternalApiException extends MainException implements ExceptionContract {
|
|
78
|
-
constructor(message: string, data?: {
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
1259
|
declare module "exception/InternalException" {
|
|
84
1260
|
import { MainException } from "exception/MainException";
|
|
85
1261
|
import { ExceptionContract } from "exception/ExceptionContract";
|
|
@@ -116,16 +1292,6 @@ declare module "exception/PageNotFoundException" {
|
|
|
116
1292
|
});
|
|
117
1293
|
}
|
|
118
1294
|
}
|
|
119
|
-
declare module "exception/UnauthorizedException" {
|
|
120
|
-
import { MainException } from "exception/MainException";
|
|
121
|
-
import { ExceptionContract } from "exception/ExceptionContract";
|
|
122
|
-
export class UnauthorizedException extends MainException implements ExceptionContract {
|
|
123
|
-
static readonly ERROR_CODE: number;
|
|
124
|
-
constructor(message: string, data?: {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
1295
|
declare module "exception/index" {
|
|
130
1296
|
export * from "exception/BadParameterException";
|
|
131
1297
|
export * from "exception/BadRequestException";
|
|
@@ -162,34 +1328,6 @@ declare module "http/AuthentificationConfigurationContract" {
|
|
|
162
1328
|
};
|
|
163
1329
|
}
|
|
164
1330
|
}
|
|
165
|
-
declare module "tool/Env" {
|
|
166
|
-
export enum Env {
|
|
167
|
-
PRODUCTION = "prod",
|
|
168
|
-
DEVELOPMENT = "dev",
|
|
169
|
-
TEST = "test"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
declare module "tool/Environment" {
|
|
173
|
-
import { Env } from "tool/Env";
|
|
174
|
-
export class Environment {
|
|
175
|
-
static getMode(): Env;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
declare module "util/HelperUtil" {
|
|
179
|
-
export const isNullOrUndefined: (obj: unknown) => boolean;
|
|
180
|
-
}
|
|
181
|
-
declare module "tool/Logger" {
|
|
182
|
-
import { ExceptionContract } from "exception/ExceptionContract";
|
|
183
|
-
import * as express from 'express';
|
|
184
|
-
export class Logger {
|
|
185
|
-
static init(sentryToken: string, app: express.Express): void;
|
|
186
|
-
static trace(message: string, extra?: any): void;
|
|
187
|
-
static debug(message: string, extra?: any): void;
|
|
188
|
-
static info(message: string, extra?: any): void;
|
|
189
|
-
static warning(error: ExceptionContract, extra?: any): void;
|
|
190
|
-
static error(error: ExceptionContract, extra?: any): void;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
1331
|
declare module "http/HandlerController" {
|
|
194
1332
|
import * as express from 'express';
|
|
195
1333
|
export class HandlerController {
|
|
@@ -227,13 +1365,13 @@ declare module "http/ServerContract" {
|
|
|
227
1365
|
}
|
|
228
1366
|
}
|
|
229
1367
|
declare module "http/Server" {
|
|
230
|
-
import
|
|
1368
|
+
import { Express } from 'express';
|
|
231
1369
|
import { ServerContract } from "http/ServerContract";
|
|
232
1370
|
export class Server implements ServerContract {
|
|
233
1371
|
static readonly DEFAULT_PORT: number;
|
|
234
1372
|
static readonly SALT: string;
|
|
235
1373
|
private app;
|
|
236
|
-
create(origins: string[], port?: number): Promise<
|
|
1374
|
+
create(origins: string[], port?: number): Promise<Express>;
|
|
237
1375
|
getSessionSecret(sessionCookieName: string): string;
|
|
238
1376
|
}
|
|
239
1377
|
}
|
|
@@ -251,11 +1389,6 @@ declare module "service/sender/SmsSenderServiceContract" {
|
|
|
251
1389
|
send(senderName: string, message: string, phones: string[], isCommercial?: boolean, sendAt?: string): Promise<void>;
|
|
252
1390
|
}
|
|
253
1391
|
}
|
|
254
|
-
declare module "tool/Retry" {
|
|
255
|
-
export class Retry {
|
|
256
|
-
static request(process: () => Promise<void>, retries: number, logger: (error: Error) => void): Promise<any>;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
1392
|
declare module "util/ValidatorUtil" {
|
|
260
1393
|
export class ValidatorUtil {
|
|
261
1394
|
static isEmail(email: string): boolean;
|
|
@@ -786,6 +1919,7 @@ declare module "util/index" {
|
|
|
786
1919
|
}
|
|
787
1920
|
/// <amd-module name="@onylab/common-api" />
|
|
788
1921
|
declare module "@onylab/common-api" {
|
|
1922
|
+
import * as Api from "api/index";
|
|
789
1923
|
import * as Constant from "constant/index";
|
|
790
1924
|
import * as Exception from "exception/index";
|
|
791
1925
|
import * as Http from "http/index";
|
|
@@ -793,7 +1927,7 @@ declare module "@onylab/common-api" {
|
|
|
793
1927
|
import * as Template from "templating/index";
|
|
794
1928
|
import * as Tool from "tool/index";
|
|
795
1929
|
import * as Util from "util/index";
|
|
796
|
-
export { Constant, Exception, Http, Service, Template, Tool, Util };
|
|
1930
|
+
export { Api, Constant, Exception, Http, Service, Template, Tool, Util };
|
|
797
1931
|
}
|
|
798
1932
|
declare module "exception/ForbiddenException" {
|
|
799
1933
|
import { MainException } from "exception/MainException";
|