@onylab/common-api 2.1.5 → 2.1.6
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/dist/common-api.d.ts
CHANGED
|
@@ -13,14 +13,216 @@ declare module "api/hubrise/model/order/HubriseOrderStatus" {
|
|
|
13
13
|
delivery_failed = "delivery_failed"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
declare module "api/hubrise/model/address/HubriseCountryCode" {
|
|
17
|
+
export enum HubriseCountryCode {
|
|
18
|
+
AF = "AF",
|
|
19
|
+
AL = "AL",
|
|
20
|
+
DZ = "DZ",
|
|
21
|
+
AD = "AD",
|
|
22
|
+
AO = "AO",
|
|
23
|
+
AG = "AG",
|
|
24
|
+
AR = "AR",
|
|
25
|
+
AM = "AM",
|
|
26
|
+
AU = "AU",
|
|
27
|
+
AT = "AT",
|
|
28
|
+
AZ = "AZ",
|
|
29
|
+
BS = "BS",
|
|
30
|
+
BH = "BH",
|
|
31
|
+
BD = "BD",
|
|
32
|
+
BB = "BB",
|
|
33
|
+
BY = "BY",
|
|
34
|
+
BE = "BE",
|
|
35
|
+
BZ = "BZ",
|
|
36
|
+
BJ = "BJ",
|
|
37
|
+
BT = "BT",
|
|
38
|
+
BO = "BO",
|
|
39
|
+
BA = "BA",
|
|
40
|
+
BW = "BW",
|
|
41
|
+
BR = "BR",
|
|
42
|
+
BN = "BN",
|
|
43
|
+
BG = "BG",
|
|
44
|
+
BF = "BF",
|
|
45
|
+
BI = "BI",
|
|
46
|
+
CV = "CV",
|
|
47
|
+
KH = "KH",
|
|
48
|
+
CM = "CM",
|
|
49
|
+
CA = "CA",
|
|
50
|
+
CF = "CF",
|
|
51
|
+
TD = "TD",
|
|
52
|
+
CL = "CL",
|
|
53
|
+
CN = "CN",
|
|
54
|
+
CO = "CO",
|
|
55
|
+
KM = "KM",
|
|
56
|
+
CG = "CG",
|
|
57
|
+
CD = "CD",
|
|
58
|
+
CR = "CR",
|
|
59
|
+
CI = "CI",
|
|
60
|
+
HR = "HR",
|
|
61
|
+
CU = "CU",
|
|
62
|
+
CY = "CY",
|
|
63
|
+
CZ = "CZ",
|
|
64
|
+
DK = "DK",
|
|
65
|
+
DJ = "DJ",
|
|
66
|
+
DM = "DM",
|
|
67
|
+
DO = "DO",
|
|
68
|
+
TL = "TL",
|
|
69
|
+
EC = "EC",
|
|
70
|
+
EG = "EG",
|
|
71
|
+
SV = "SV",
|
|
72
|
+
GQ = "GQ",
|
|
73
|
+
ER = "ER",
|
|
74
|
+
EE = "EE",
|
|
75
|
+
SZ = "SZ",
|
|
76
|
+
ET = "ET",
|
|
77
|
+
FJ = "FJ",
|
|
78
|
+
FI = "FI",
|
|
79
|
+
FR = "FR",
|
|
80
|
+
GA = "GA",
|
|
81
|
+
GM = "GM",
|
|
82
|
+
GE = "GE",
|
|
83
|
+
DE = "DE",
|
|
84
|
+
GH = "GH",
|
|
85
|
+
GR = "GR",
|
|
86
|
+
GD = "GD",
|
|
87
|
+
GT = "GT",
|
|
88
|
+
GN = "GN",
|
|
89
|
+
GW = "GW",
|
|
90
|
+
GY = "GY",
|
|
91
|
+
HT = "HT",
|
|
92
|
+
VA = "VA",
|
|
93
|
+
HN = "HN",
|
|
94
|
+
HU = "HU",
|
|
95
|
+
IS = "IS",
|
|
96
|
+
IN = "IN",
|
|
97
|
+
ID = "ID",
|
|
98
|
+
IR = "IR",
|
|
99
|
+
IQ = "IQ",
|
|
100
|
+
IE = "IE",
|
|
101
|
+
IL = "IL",
|
|
102
|
+
IT = "IT",
|
|
103
|
+
JM = "JM",
|
|
104
|
+
JP = "JP",
|
|
105
|
+
JO = "JO",
|
|
106
|
+
KZ = "KZ",
|
|
107
|
+
KE = "KE",
|
|
108
|
+
KI = "KI",
|
|
109
|
+
XK = "XK",
|
|
110
|
+
KW = "KW",
|
|
111
|
+
KG = "KG",
|
|
112
|
+
LA = "LA",
|
|
113
|
+
LV = "LV",
|
|
114
|
+
LB = "LB",
|
|
115
|
+
LS = "LS",
|
|
116
|
+
LR = "LR",
|
|
117
|
+
LY = "LY",
|
|
118
|
+
LI = "LI",
|
|
119
|
+
LT = "LT",
|
|
120
|
+
LU = "LU",
|
|
121
|
+
MG = "MG",
|
|
122
|
+
MW = "MW",
|
|
123
|
+
MY = "MY",
|
|
124
|
+
MV = "MV",
|
|
125
|
+
ML = "ML",
|
|
126
|
+
MT = "MT",
|
|
127
|
+
MH = "MH",
|
|
128
|
+
MR = "MR",
|
|
129
|
+
MU = "MU",
|
|
130
|
+
MX = "MX",
|
|
131
|
+
FM = "FM",
|
|
132
|
+
MD = "MD",
|
|
133
|
+
MC = "MC",
|
|
134
|
+
MN = "MN",
|
|
135
|
+
ME = "ME",
|
|
136
|
+
MA = "MA",
|
|
137
|
+
MZ = "MZ",
|
|
138
|
+
MM = "MM",
|
|
139
|
+
NA = "NA",
|
|
140
|
+
NR = "NR",
|
|
141
|
+
NP = "NP",
|
|
142
|
+
NL = "NL",
|
|
143
|
+
NZ = "NZ",
|
|
144
|
+
NI = "NI",
|
|
145
|
+
NE = "NE",
|
|
146
|
+
NG = "NG",
|
|
147
|
+
KP = "KP",
|
|
148
|
+
MK = "MK",
|
|
149
|
+
NO = "NO",
|
|
150
|
+
OM = "OM",
|
|
151
|
+
PK = "PK",
|
|
152
|
+
PW = "PW",
|
|
153
|
+
PS = "PS",
|
|
154
|
+
PA = "PA",
|
|
155
|
+
PG = "PG",
|
|
156
|
+
PY = "PY",
|
|
157
|
+
PE = "PE",
|
|
158
|
+
PH = "PH",
|
|
159
|
+
PL = "PL",
|
|
160
|
+
PT = "PT",
|
|
161
|
+
QA = "QA",
|
|
162
|
+
RO = "RO",
|
|
163
|
+
RU = "RU",
|
|
164
|
+
RW = "RW",
|
|
165
|
+
KN = "KN",
|
|
166
|
+
LC = "LC",
|
|
167
|
+
VC = "VC",
|
|
168
|
+
WS = "WS",
|
|
169
|
+
SM = "SM",
|
|
170
|
+
ST = "ST",
|
|
171
|
+
SA = "SA",
|
|
172
|
+
SN = "SN",
|
|
173
|
+
RS = "RS",
|
|
174
|
+
SC = "SC",
|
|
175
|
+
SL = "SL",
|
|
176
|
+
SG = "SG",
|
|
177
|
+
SK = "SK",
|
|
178
|
+
SI = "SI",
|
|
179
|
+
SB = "SB",
|
|
180
|
+
SO = "SO",
|
|
181
|
+
ZA = "ZA",
|
|
182
|
+
KR = "KR",
|
|
183
|
+
SS = "SS",
|
|
184
|
+
ES = "ES",
|
|
185
|
+
LK = "LK",
|
|
186
|
+
SD = "SD",
|
|
187
|
+
SR = "SR",
|
|
188
|
+
SE = "SE",
|
|
189
|
+
CH = "CH",
|
|
190
|
+
SY = "SY",
|
|
191
|
+
TW = "TW",
|
|
192
|
+
TJ = "TJ",
|
|
193
|
+
TZ = "TZ",
|
|
194
|
+
TH = "TH",
|
|
195
|
+
TG = "TG",
|
|
196
|
+
TO = "TO",
|
|
197
|
+
TT = "TT",
|
|
198
|
+
TN = "TN",
|
|
199
|
+
TR = "TR",
|
|
200
|
+
TM = "TM",
|
|
201
|
+
TV = "TV",
|
|
202
|
+
UG = "UG",
|
|
203
|
+
UA = "UA",
|
|
204
|
+
AE = "AE",
|
|
205
|
+
GB = "GB",
|
|
206
|
+
US = "US",
|
|
207
|
+
UY = "UY",
|
|
208
|
+
UZ = "UZ",
|
|
209
|
+
VU = "VU",
|
|
210
|
+
VE = "VE",
|
|
211
|
+
VN = "VN",
|
|
212
|
+
YE = "YE",
|
|
213
|
+
ZM = "ZM",
|
|
214
|
+
ZW = "ZW"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
16
217
|
declare module "api/hubrise/model/address/HubriseAddressContract" {
|
|
218
|
+
import { HubriseCountryCode } from "api/hubrise/model/address/HubriseCountryCode";
|
|
17
219
|
export interface HubriseAddressContract {
|
|
18
220
|
address_1?: string;
|
|
19
221
|
address_2?: string;
|
|
20
222
|
postal_code?: string;
|
|
21
223
|
city?: string;
|
|
22
224
|
state?: string;
|
|
23
|
-
country?:
|
|
225
|
+
country?: HubriseCountryCode;
|
|
24
226
|
latitude?: string;
|
|
25
227
|
longitude?: string;
|
|
26
228
|
}
|
|
@@ -917,6 +1119,7 @@ declare module "api/hubrise/model/location/HubriseLocationContract" {
|
|
|
917
1119
|
import { HubriseTimezoneContract } from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
918
1120
|
import { HubriseOrderAcceptanceContract } from "api/hubrise/model/location/HubriseOrderAcceptanceContract";
|
|
919
1121
|
import { HubriseCustomFieldsContract } from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
1122
|
+
import { HubriseCountryCode } from "api/hubrise/model/address/HubriseCountryCode";
|
|
920
1123
|
export interface HubriseLocationContract {
|
|
921
1124
|
id: string;
|
|
922
1125
|
name: string;
|
|
@@ -924,7 +1127,7 @@ declare module "api/hubrise/model/location/HubriseLocationContract" {
|
|
|
924
1127
|
address: string;
|
|
925
1128
|
postal_code: string;
|
|
926
1129
|
city: string;
|
|
927
|
-
country:
|
|
1130
|
+
country: HubriseCountryCode;
|
|
928
1131
|
timezone: HubriseTimezoneContract;
|
|
929
1132
|
cutoff_time: string;
|
|
930
1133
|
opening_hours?: HubriseOpeningHoursContract;
|
|
@@ -1209,6 +1412,16 @@ declare module "api/hubrise/service/HubriseApi" {
|
|
|
1209
1412
|
createWebhook(url: string, events: Record<HubriseResourceType, HubriseEventType[]>): Promise<void>;
|
|
1210
1413
|
}
|
|
1211
1414
|
}
|
|
1415
|
+
declare module "api/hubrise/model/common/HubriseLanguage" {
|
|
1416
|
+
export enum HubriseLanguage {
|
|
1417
|
+
ar = "ar",
|
|
1418
|
+
de = "de",
|
|
1419
|
+
en = "en",
|
|
1420
|
+
es = "es",
|
|
1421
|
+
fr = "fr",
|
|
1422
|
+
pt = "pt"
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1212
1425
|
declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
|
|
1213
1426
|
export interface HubriseMenuImageContract {
|
|
1214
1427
|
id: string;
|
|
@@ -1360,8 +1573,10 @@ declare module "api/web" {
|
|
|
1360
1573
|
export * from "api/hubrise/model/account/HubriseAuthResource";
|
|
1361
1574
|
export * from "api/hubrise/model/account/HubriseRightAccess";
|
|
1362
1575
|
export * from "api/hubrise/model/address/HubriseAddressContract";
|
|
1576
|
+
export * from "api/hubrise/model/address/HubriseCountryCode";
|
|
1363
1577
|
export * from "api/hubrise/model/common/HubriseCurrencyCode";
|
|
1364
1578
|
export * from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
1579
|
+
export * from "api/hubrise/model/common/HubriseLanguage";
|
|
1365
1580
|
export * from "api/hubrise/model/common/HubriseLocale";
|
|
1366
1581
|
export * from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
1367
1582
|
export * from "api/hubrise/model/common/HubriseTimezoneId";
|