@onylab/common-api 2.1.4 → 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,8 +13,223 @@ 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
|
+
}
|
|
217
|
+
declare module "api/hubrise/model/address/HubriseAddressContract" {
|
|
218
|
+
import { HubriseCountryCode } from "api/hubrise/model/address/HubriseCountryCode";
|
|
219
|
+
export interface HubriseAddressContract {
|
|
220
|
+
address_1?: string;
|
|
221
|
+
address_2?: string;
|
|
222
|
+
postal_code?: string;
|
|
223
|
+
city?: string;
|
|
224
|
+
state?: string;
|
|
225
|
+
country?: HubriseCountryCode;
|
|
226
|
+
latitude?: string;
|
|
227
|
+
longitude?: string;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
16
230
|
declare module "api/hubrise/model/customer/HubriseCustomerContract" {
|
|
17
|
-
|
|
231
|
+
import { HubriseAddressContract } from "api/hubrise/model/address/HubriseAddressContract";
|
|
232
|
+
export interface HubriseCustomerContract extends HubriseAddressContract {
|
|
18
233
|
id?: string;
|
|
19
234
|
first_name?: string;
|
|
20
235
|
last_name?: string;
|
|
@@ -24,14 +239,6 @@ declare module "api/hubrise/model/customer/HubriseCustomerContract" {
|
|
|
24
239
|
email?: string;
|
|
25
240
|
phone?: string;
|
|
26
241
|
phone_access_code?: string;
|
|
27
|
-
address_1?: string;
|
|
28
|
-
address_2?: string;
|
|
29
|
-
postal_code?: string;
|
|
30
|
-
city?: string;
|
|
31
|
-
state?: string;
|
|
32
|
-
country?: string;
|
|
33
|
-
latitude?: string;
|
|
34
|
-
longitude?: string;
|
|
35
242
|
delivery_notes?: string;
|
|
36
243
|
sms_marketing?: boolean;
|
|
37
244
|
email_marketing?: boolean;
|
|
@@ -912,6 +1119,7 @@ declare module "api/hubrise/model/location/HubriseLocationContract" {
|
|
|
912
1119
|
import { HubriseTimezoneContract } from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
913
1120
|
import { HubriseOrderAcceptanceContract } from "api/hubrise/model/location/HubriseOrderAcceptanceContract";
|
|
914
1121
|
import { HubriseCustomFieldsContract } from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
1122
|
+
import { HubriseCountryCode } from "api/hubrise/model/address/HubriseCountryCode";
|
|
915
1123
|
export interface HubriseLocationContract {
|
|
916
1124
|
id: string;
|
|
917
1125
|
name: string;
|
|
@@ -919,7 +1127,7 @@ declare module "api/hubrise/model/location/HubriseLocationContract" {
|
|
|
919
1127
|
address: string;
|
|
920
1128
|
postal_code: string;
|
|
921
1129
|
city: string;
|
|
922
|
-
country:
|
|
1130
|
+
country: HubriseCountryCode;
|
|
923
1131
|
timezone: HubriseTimezoneContract;
|
|
924
1132
|
cutoff_time: string;
|
|
925
1133
|
opening_hours?: HubriseOpeningHoursContract;
|
|
@@ -1204,6 +1412,16 @@ declare module "api/hubrise/service/HubriseApi" {
|
|
|
1204
1412
|
createWebhook(url: string, events: Record<HubriseResourceType, HubriseEventType[]>): Promise<void>;
|
|
1205
1413
|
}
|
|
1206
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
|
+
}
|
|
1207
1425
|
declare module "api/hubrise/model/menu/HubriseMenuImageContract" {
|
|
1208
1426
|
export interface HubriseMenuImageContract {
|
|
1209
1427
|
id: string;
|
|
@@ -1354,8 +1572,11 @@ declare module "api/web" {
|
|
|
1354
1572
|
export * from "api/hubrise/model/account/HubriseAuthContract";
|
|
1355
1573
|
export * from "api/hubrise/model/account/HubriseAuthResource";
|
|
1356
1574
|
export * from "api/hubrise/model/account/HubriseRightAccess";
|
|
1575
|
+
export * from "api/hubrise/model/address/HubriseAddressContract";
|
|
1576
|
+
export * from "api/hubrise/model/address/HubriseCountryCode";
|
|
1357
1577
|
export * from "api/hubrise/model/common/HubriseCurrencyCode";
|
|
1358
1578
|
export * from "api/hubrise/model/common/HubriseCustomFieldsContract";
|
|
1579
|
+
export * from "api/hubrise/model/common/HubriseLanguage";
|
|
1359
1580
|
export * from "api/hubrise/model/common/HubriseLocale";
|
|
1360
1581
|
export * from "api/hubrise/model/common/HubriseTimezoneContract";
|
|
1361
1582
|
export * from "api/hubrise/model/common/HubriseTimezoneId";
|