@feedmepos/mf-common 1.1.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.vue.d.ts +8 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/app.d.ts +650 -695
- package/dist/app.js +6336 -6218
- package/dist/auth.d.ts +2 -9
- package/dist/components/AllStoreDialog.vue.d.ts +2 -0
- package/dist/components/UserInfo.vue.d.ts +13 -234
- package/dist/store.d.ts +43 -222
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/app.d.ts
CHANGED
@@ -1,83 +1,13 @@
|
|
1
|
+
import { FeedMeAuth } from './auth';
|
1
2
|
export declare const useCoreStore: () => {
|
2
|
-
apps: import("vue").Ref<{
|
3
|
-
icon: string;
|
4
|
-
name: string;
|
5
|
-
description: string;
|
6
|
-
path: string;
|
7
|
-
color: string;
|
8
|
-
}[]>;
|
9
|
-
currentAppName: import("vue").Ref<string>;
|
10
3
|
sessionUser: import("vue").Ref<{
|
11
4
|
id: string;
|
12
5
|
email?: string | null | undefined;
|
13
6
|
photoURL?: string | null | undefined;
|
14
7
|
displayName?: string | null | undefined;
|
15
8
|
phoneNumber?: string | null | undefined;
|
16
|
-
token: string;
|
17
|
-
|
18
|
-
toString: () => string;
|
19
|
-
toDateString: () => string;
|
20
|
-
toTimeString: () => string;
|
21
|
-
toLocaleString: {
|
22
|
-
(): string;
|
23
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
24
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
25
|
-
};
|
26
|
-
toLocaleDateString: {
|
27
|
-
(): string;
|
28
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
29
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
30
|
-
};
|
31
|
-
toLocaleTimeString: {
|
32
|
-
(): string;
|
33
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
34
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
35
|
-
};
|
36
|
-
valueOf: () => number;
|
37
|
-
getTime: () => number;
|
38
|
-
getFullYear: () => number;
|
39
|
-
getUTCFullYear: () => number;
|
40
|
-
getMonth: () => number;
|
41
|
-
getUTCMonth: () => number;
|
42
|
-
getDate: () => number;
|
43
|
-
getUTCDate: () => number;
|
44
|
-
getDay: () => number;
|
45
|
-
getUTCDay: () => number;
|
46
|
-
getHours: () => number;
|
47
|
-
getUTCHours: () => number;
|
48
|
-
getMinutes: () => number;
|
49
|
-
getUTCMinutes: () => number;
|
50
|
-
getSeconds: () => number;
|
51
|
-
getUTCSeconds: () => number;
|
52
|
-
getMilliseconds: () => number;
|
53
|
-
getUTCMilliseconds: () => number;
|
54
|
-
getTimezoneOffset: () => number;
|
55
|
-
setTime: (time: number) => number;
|
56
|
-
setMilliseconds: (ms: number) => number;
|
57
|
-
setUTCMilliseconds: (ms: number) => number;
|
58
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
59
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
60
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
61
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
62
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
63
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
64
|
-
setDate: (date: number) => number;
|
65
|
-
setUTCDate: (date: number) => number;
|
66
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
67
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
68
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
69
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
70
|
-
toUTCString: () => string;
|
71
|
-
toISOString: () => string;
|
72
|
-
toJSON: (key?: any) => string;
|
73
|
-
[Symbol.toPrimitive]: {
|
74
|
-
(hint: "default"): string;
|
75
|
-
(hint: "string"): string;
|
76
|
-
(hint: "number"): number;
|
77
|
-
(hint: string): string | number;
|
78
|
-
};
|
79
|
-
};
|
80
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
9
|
+
readonly token: string | null;
|
10
|
+
getCustomToken: () => Promise<string>;
|
81
11
|
setAdminPermisssions: (permissions: {
|
82
12
|
fields?: string[] | undefined;
|
83
13
|
conditions?: any;
|
@@ -87,7 +17,7 @@ export declare const useCoreStore: () => {
|
|
87
17
|
actions: string | string[];
|
88
18
|
subject: string | string[];
|
89
19
|
}[]) => void;
|
90
|
-
|
20
|
+
setPermissions: (permissions: {
|
91
21
|
fields?: string[] | undefined;
|
92
22
|
conditions?: any;
|
93
23
|
inverted?: boolean | undefined;
|
@@ -109,6 +39,7 @@ export declare const useCoreStore: () => {
|
|
109
39
|
namespace: import("vue").Ref<"dev" | "prod">;
|
110
40
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
111
41
|
businesses: import("vue").Ref<{
|
42
|
+
id: string;
|
112
43
|
internal?: boolean | null | undefined;
|
113
44
|
expiredAt?: string | null | undefined;
|
114
45
|
url?: string | null | undefined;
|
@@ -230,7 +161,124 @@ export declare const useCoreStore: () => {
|
|
230
161
|
}[]>;
|
231
162
|
currentBusiness: import("vue").Ref<{
|
232
163
|
id: string;
|
164
|
+
internal?: boolean | null | undefined;
|
165
|
+
expiredAt?: string | null | undefined;
|
166
|
+
url?: string | null | undefined;
|
167
|
+
agentId?: string | null | undefined;
|
168
|
+
pf_agent?: {
|
169
|
+
clickupId?: string | null | undefined;
|
170
|
+
members?: {
|
171
|
+
pf_user?: {
|
172
|
+
email?: string | null | undefined;
|
173
|
+
photoURL?: string | null | undefined;
|
174
|
+
displayName?: string | null | undefined;
|
175
|
+
phoneNumber?: string | null | undefined;
|
176
|
+
birthday?: {
|
177
|
+
toString: () => string;
|
178
|
+
toDateString: () => string;
|
179
|
+
toTimeString: () => string;
|
180
|
+
toLocaleString: {
|
181
|
+
(): string;
|
182
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
183
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
184
|
+
};
|
185
|
+
toLocaleDateString: {
|
186
|
+
(): string;
|
187
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
188
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
189
|
+
};
|
190
|
+
toLocaleTimeString: {
|
191
|
+
(): string;
|
192
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
193
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
194
|
+
};
|
195
|
+
valueOf: () => number;
|
196
|
+
getTime: () => number;
|
197
|
+
getFullYear: () => number;
|
198
|
+
getUTCFullYear: () => number;
|
199
|
+
getMonth: () => number;
|
200
|
+
getUTCMonth: () => number;
|
201
|
+
getDate: () => number;
|
202
|
+
getUTCDate: () => number;
|
203
|
+
getDay: () => number;
|
204
|
+
getUTCDay: () => number;
|
205
|
+
getHours: () => number;
|
206
|
+
getUTCHours: () => number;
|
207
|
+
getMinutes: () => number;
|
208
|
+
getUTCMinutes: () => number;
|
209
|
+
getSeconds: () => number;
|
210
|
+
getUTCSeconds: () => number;
|
211
|
+
getMilliseconds: () => number;
|
212
|
+
getUTCMilliseconds: () => number;
|
213
|
+
getTimezoneOffset: () => number;
|
214
|
+
setTime: (time: number) => number;
|
215
|
+
setMilliseconds: (ms: number) => number;
|
216
|
+
setUTCMilliseconds: (ms: number) => number;
|
217
|
+
setSeconds: (sec: number, ms?: number | undefined) => number;
|
218
|
+
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
219
|
+
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
220
|
+
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
221
|
+
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
222
|
+
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
223
|
+
setDate: (date: number) => number;
|
224
|
+
setUTCDate: (date: number) => number;
|
225
|
+
setMonth: (month: number, date?: number | undefined) => number;
|
226
|
+
setUTCMonth: (month: number, date?: number | undefined) => number;
|
227
|
+
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
228
|
+
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
229
|
+
toUTCString: () => string;
|
230
|
+
toISOString: () => string;
|
231
|
+
toJSON: (key?: any) => string;
|
232
|
+
[Symbol.toPrimitive]: {
|
233
|
+
(hint: "default"): string;
|
234
|
+
(hint: "string"): string;
|
235
|
+
(hint: "number"): number;
|
236
|
+
(hint: string): string | number;
|
237
|
+
};
|
238
|
+
} | null | undefined;
|
239
|
+
gender?: "MALE" | "FEMALE" | null | undefined;
|
240
|
+
addresses?: {
|
241
|
+
address: string;
|
242
|
+
name: string;
|
243
|
+
coordinates: number[];
|
244
|
+
}[] | null | undefined;
|
245
|
+
imported?: {
|
246
|
+
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
247
|
+
raw: Record<string, any>;
|
248
|
+
} | null | undefined;
|
249
|
+
_id: string;
|
250
|
+
} | null | undefined;
|
251
|
+
userId: string;
|
252
|
+
role: "ADMIN";
|
253
|
+
}[] | null | undefined;
|
254
|
+
code: string;
|
255
|
+
name: string;
|
256
|
+
_id: string;
|
257
|
+
isReseller: boolean;
|
258
|
+
} | null | undefined;
|
259
|
+
thumbnail?: string | null | undefined;
|
260
|
+
billingInfos?: {
|
261
|
+
_id?: string | undefined;
|
262
|
+
address: {
|
263
|
+
coordinates?: number[] | undefined;
|
264
|
+
line2?: string | undefined;
|
265
|
+
state: string;
|
266
|
+
line1: string;
|
267
|
+
city: string;
|
268
|
+
postcode: string;
|
269
|
+
country: string;
|
270
|
+
};
|
271
|
+
name: string;
|
272
|
+
email: string;
|
273
|
+
companyName: string;
|
274
|
+
contact: string;
|
275
|
+
}[] | null | undefined;
|
233
276
|
name: string;
|
277
|
+
_id: string;
|
278
|
+
ownerId: string;
|
279
|
+
restaurantQuota: number;
|
280
|
+
warehouseQuota: number;
|
281
|
+
menuVersion: "v2" | "v3" | "v4";
|
234
282
|
} | undefined>;
|
235
283
|
restaurants: import("vue").Ref<{
|
236
284
|
managable: boolean;
|
@@ -1130,86 +1178,29 @@ export declare const useCoreStore: () => {
|
|
1130
1178
|
regNo: string;
|
1131
1179
|
};
|
1132
1180
|
} | undefined>;
|
1181
|
+
apps: import("vue").Ref<{
|
1182
|
+
icon: string;
|
1183
|
+
name: string;
|
1184
|
+
description: string;
|
1185
|
+
path: string;
|
1186
|
+
color: string;
|
1187
|
+
}[]>;
|
1188
|
+
selectedApp: import("vue").Ref<{
|
1189
|
+
icon: string;
|
1190
|
+
name: string;
|
1191
|
+
description: string;
|
1192
|
+
path: string;
|
1193
|
+
color: string;
|
1194
|
+
} | undefined>;
|
1133
1195
|
$state: {
|
1134
|
-
apps: {
|
1135
|
-
icon: string;
|
1136
|
-
name: string;
|
1137
|
-
description: string;
|
1138
|
-
path: string;
|
1139
|
-
color: string;
|
1140
|
-
}[];
|
1141
|
-
currentAppName: string;
|
1142
1196
|
sessionUser: {
|
1143
1197
|
id: string;
|
1144
1198
|
email?: string | null | undefined;
|
1145
1199
|
photoURL?: string | null | undefined;
|
1146
1200
|
displayName?: string | null | undefined;
|
1147
1201
|
phoneNumber?: string | null | undefined;
|
1148
|
-
token: string;
|
1149
|
-
|
1150
|
-
toString: () => string;
|
1151
|
-
toDateString: () => string;
|
1152
|
-
toTimeString: () => string;
|
1153
|
-
toLocaleString: {
|
1154
|
-
(): string;
|
1155
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1156
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1157
|
-
};
|
1158
|
-
toLocaleDateString: {
|
1159
|
-
(): string;
|
1160
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1161
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1162
|
-
};
|
1163
|
-
toLocaleTimeString: {
|
1164
|
-
(): string;
|
1165
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1166
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1167
|
-
};
|
1168
|
-
valueOf: () => number;
|
1169
|
-
getTime: () => number;
|
1170
|
-
getFullYear: () => number;
|
1171
|
-
getUTCFullYear: () => number;
|
1172
|
-
getMonth: () => number;
|
1173
|
-
getUTCMonth: () => number;
|
1174
|
-
getDate: () => number;
|
1175
|
-
getUTCDate: () => number;
|
1176
|
-
getDay: () => number;
|
1177
|
-
getUTCDay: () => number;
|
1178
|
-
getHours: () => number;
|
1179
|
-
getUTCHours: () => number;
|
1180
|
-
getMinutes: () => number;
|
1181
|
-
getUTCMinutes: () => number;
|
1182
|
-
getSeconds: () => number;
|
1183
|
-
getUTCSeconds: () => number;
|
1184
|
-
getMilliseconds: () => number;
|
1185
|
-
getUTCMilliseconds: () => number;
|
1186
|
-
getTimezoneOffset: () => number;
|
1187
|
-
setTime: (time: number) => number;
|
1188
|
-
setMilliseconds: (ms: number) => number;
|
1189
|
-
setUTCMilliseconds: (ms: number) => number;
|
1190
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
1191
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
1192
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1193
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1194
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1195
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1196
|
-
setDate: (date: number) => number;
|
1197
|
-
setUTCDate: (date: number) => number;
|
1198
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
1199
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
1200
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1201
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1202
|
-
toUTCString: () => string;
|
1203
|
-
toISOString: () => string;
|
1204
|
-
toJSON: (key?: any) => string;
|
1205
|
-
[Symbol.toPrimitive]: {
|
1206
|
-
(hint: "default"): string;
|
1207
|
-
(hint: "string"): string;
|
1208
|
-
(hint: "number"): number;
|
1209
|
-
(hint: string): string | number;
|
1210
|
-
};
|
1211
|
-
};
|
1212
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1202
|
+
readonly token: string | null;
|
1203
|
+
getCustomToken: () => Promise<string>;
|
1213
1204
|
setAdminPermisssions: (permissions: {
|
1214
1205
|
fields?: string[] | undefined;
|
1215
1206
|
conditions?: any;
|
@@ -1219,7 +1210,7 @@ export declare const useCoreStore: () => {
|
|
1219
1210
|
actions: string | string[];
|
1220
1211
|
subject: string | string[];
|
1221
1212
|
}[]) => void;
|
1222
|
-
|
1213
|
+
setPermissions: (permissions: {
|
1223
1214
|
fields?: string[] | undefined;
|
1224
1215
|
conditions?: any;
|
1225
1216
|
inverted?: boolean | undefined;
|
@@ -1241,6 +1232,7 @@ export declare const useCoreStore: () => {
|
|
1241
1232
|
namespace: "dev" | "prod";
|
1242
1233
|
currentCountry: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
1243
1234
|
businesses: {
|
1235
|
+
id: string;
|
1244
1236
|
internal?: boolean | null | undefined;
|
1245
1237
|
expiredAt?: string | null | undefined;
|
1246
1238
|
url?: string | null | undefined;
|
@@ -1362,7 +1354,124 @@ export declare const useCoreStore: () => {
|
|
1362
1354
|
}[];
|
1363
1355
|
currentBusiness: {
|
1364
1356
|
id: string;
|
1357
|
+
internal?: boolean | null | undefined;
|
1358
|
+
expiredAt?: string | null | undefined;
|
1359
|
+
url?: string | null | undefined;
|
1360
|
+
agentId?: string | null | undefined;
|
1361
|
+
pf_agent?: {
|
1362
|
+
clickupId?: string | null | undefined;
|
1363
|
+
members?: {
|
1364
|
+
pf_user?: {
|
1365
|
+
email?: string | null | undefined;
|
1366
|
+
photoURL?: string | null | undefined;
|
1367
|
+
displayName?: string | null | undefined;
|
1368
|
+
phoneNumber?: string | null | undefined;
|
1369
|
+
birthday?: {
|
1370
|
+
toString: () => string;
|
1371
|
+
toDateString: () => string;
|
1372
|
+
toTimeString: () => string;
|
1373
|
+
toLocaleString: {
|
1374
|
+
(): string;
|
1375
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1376
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1377
|
+
};
|
1378
|
+
toLocaleDateString: {
|
1379
|
+
(): string;
|
1380
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1381
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1382
|
+
};
|
1383
|
+
toLocaleTimeString: {
|
1384
|
+
(): string;
|
1385
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1386
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1387
|
+
};
|
1388
|
+
valueOf: () => number;
|
1389
|
+
getTime: () => number;
|
1390
|
+
getFullYear: () => number;
|
1391
|
+
getUTCFullYear: () => number;
|
1392
|
+
getMonth: () => number;
|
1393
|
+
getUTCMonth: () => number;
|
1394
|
+
getDate: () => number;
|
1395
|
+
getUTCDate: () => number;
|
1396
|
+
getDay: () => number;
|
1397
|
+
getUTCDay: () => number;
|
1398
|
+
getHours: () => number;
|
1399
|
+
getUTCHours: () => number;
|
1400
|
+
getMinutes: () => number;
|
1401
|
+
getUTCMinutes: () => number;
|
1402
|
+
getSeconds: () => number;
|
1403
|
+
getUTCSeconds: () => number;
|
1404
|
+
getMilliseconds: () => number;
|
1405
|
+
getUTCMilliseconds: () => number;
|
1406
|
+
getTimezoneOffset: () => number;
|
1407
|
+
setTime: (time: number) => number;
|
1408
|
+
setMilliseconds: (ms: number) => number;
|
1409
|
+
setUTCMilliseconds: (ms: number) => number;
|
1410
|
+
setSeconds: (sec: number, ms?: number | undefined) => number;
|
1411
|
+
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
1412
|
+
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1413
|
+
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1414
|
+
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1415
|
+
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1416
|
+
setDate: (date: number) => number;
|
1417
|
+
setUTCDate: (date: number) => number;
|
1418
|
+
setMonth: (month: number, date?: number | undefined) => number;
|
1419
|
+
setUTCMonth: (month: number, date?: number | undefined) => number;
|
1420
|
+
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1421
|
+
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1422
|
+
toUTCString: () => string;
|
1423
|
+
toISOString: () => string;
|
1424
|
+
toJSON: (key?: any) => string;
|
1425
|
+
[Symbol.toPrimitive]: {
|
1426
|
+
(hint: "default"): string;
|
1427
|
+
(hint: "string"): string;
|
1428
|
+
(hint: "number"): number;
|
1429
|
+
(hint: string): string | number;
|
1430
|
+
};
|
1431
|
+
} | null | undefined;
|
1432
|
+
gender?: "MALE" | "FEMALE" | null | undefined;
|
1433
|
+
addresses?: {
|
1434
|
+
address: string;
|
1435
|
+
name: string;
|
1436
|
+
coordinates: number[];
|
1437
|
+
}[] | null | undefined;
|
1438
|
+
imported?: {
|
1439
|
+
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
1440
|
+
raw: Record<string, any>;
|
1441
|
+
} | null | undefined;
|
1442
|
+
_id: string;
|
1443
|
+
} | null | undefined;
|
1444
|
+
userId: string;
|
1445
|
+
role: "ADMIN";
|
1446
|
+
}[] | null | undefined;
|
1447
|
+
code: string;
|
1448
|
+
name: string;
|
1449
|
+
_id: string;
|
1450
|
+
isReseller: boolean;
|
1451
|
+
} | null | undefined;
|
1452
|
+
thumbnail?: string | null | undefined;
|
1453
|
+
billingInfos?: {
|
1454
|
+
_id?: string | undefined;
|
1455
|
+
address: {
|
1456
|
+
coordinates?: number[] | undefined;
|
1457
|
+
line2?: string | undefined;
|
1458
|
+
state: string;
|
1459
|
+
line1: string;
|
1460
|
+
city: string;
|
1461
|
+
postcode: string;
|
1462
|
+
country: string;
|
1463
|
+
};
|
1464
|
+
name: string;
|
1465
|
+
email: string;
|
1466
|
+
companyName: string;
|
1467
|
+
contact: string;
|
1468
|
+
}[] | null | undefined;
|
1365
1469
|
name: string;
|
1470
|
+
_id: string;
|
1471
|
+
ownerId: string;
|
1472
|
+
restaurantQuota: number;
|
1473
|
+
warehouseQuota: number;
|
1474
|
+
menuVersion: "v2" | "v3" | "v4";
|
1366
1475
|
} | undefined;
|
1367
1476
|
restaurants: {
|
1368
1477
|
managable: boolean;
|
@@ -2262,88 +2371,32 @@ export declare const useCoreStore: () => {
|
|
2262
2371
|
regNo: string;
|
2263
2372
|
};
|
2264
2373
|
} | undefined;
|
2265
|
-
|
2266
|
-
apps: import("vue").Ref<{
|
2374
|
+
apps: {
|
2267
2375
|
icon: string;
|
2268
2376
|
name: string;
|
2269
2377
|
description: string;
|
2270
2378
|
path: string;
|
2271
2379
|
color: string;
|
2272
|
-
}[]
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2380
|
+
}[];
|
2381
|
+
selectedApp: {
|
2382
|
+
icon: string;
|
2383
|
+
name: string;
|
2384
|
+
description: string;
|
2385
|
+
path: string;
|
2386
|
+
color: string;
|
2387
|
+
} | undefined;
|
2388
|
+
} & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
|
2389
|
+
signIn: () => Promise<void>;
|
2390
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
2391
|
+
signOut: () => Promise<void>;
|
2276
2392
|
sessionUser: import("vue").Ref<{
|
2277
2393
|
id: string;
|
2278
2394
|
email?: string | null | undefined;
|
2279
2395
|
photoURL?: string | null | undefined;
|
2280
2396
|
displayName?: string | null | undefined;
|
2281
2397
|
phoneNumber?: string | null | undefined;
|
2282
|
-
token: string;
|
2283
|
-
|
2284
|
-
toString: () => string;
|
2285
|
-
toDateString: () => string;
|
2286
|
-
toTimeString: () => string;
|
2287
|
-
toLocaleString: {
|
2288
|
-
(): string;
|
2289
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2290
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2291
|
-
};
|
2292
|
-
toLocaleDateString: {
|
2293
|
-
(): string;
|
2294
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2295
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2296
|
-
};
|
2297
|
-
toLocaleTimeString: {
|
2298
|
-
(): string;
|
2299
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2300
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2301
|
-
};
|
2302
|
-
valueOf: () => number;
|
2303
|
-
getTime: () => number;
|
2304
|
-
getFullYear: () => number;
|
2305
|
-
getUTCFullYear: () => number;
|
2306
|
-
getMonth: () => number;
|
2307
|
-
getUTCMonth: () => number;
|
2308
|
-
getDate: () => number;
|
2309
|
-
getUTCDate: () => number;
|
2310
|
-
getDay: () => number;
|
2311
|
-
getUTCDay: () => number;
|
2312
|
-
getHours: () => number;
|
2313
|
-
getUTCHours: () => number;
|
2314
|
-
getMinutes: () => number;
|
2315
|
-
getUTCMinutes: () => number;
|
2316
|
-
getSeconds: () => number;
|
2317
|
-
getUTCSeconds: () => number;
|
2318
|
-
getMilliseconds: () => number;
|
2319
|
-
getUTCMilliseconds: () => number;
|
2320
|
-
getTimezoneOffset: () => number;
|
2321
|
-
setTime: (time: number) => number;
|
2322
|
-
setMilliseconds: (ms: number) => number;
|
2323
|
-
setUTCMilliseconds: (ms: number) => number;
|
2324
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
2325
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
2326
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2327
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2328
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2329
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2330
|
-
setDate: (date: number) => number;
|
2331
|
-
setUTCDate: (date: number) => number;
|
2332
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
2333
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
2334
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2335
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2336
|
-
toUTCString: () => string;
|
2337
|
-
toISOString: () => string;
|
2338
|
-
toJSON: (key?: any) => string;
|
2339
|
-
[Symbol.toPrimitive]: {
|
2340
|
-
(hint: "default"): string;
|
2341
|
-
(hint: "string"): string;
|
2342
|
-
(hint: "number"): number;
|
2343
|
-
(hint: string): string | number;
|
2344
|
-
};
|
2345
|
-
};
|
2346
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
2398
|
+
readonly token: string | null;
|
2399
|
+
getCustomToken: () => Promise<string>;
|
2347
2400
|
setAdminPermisssions: (permissions: {
|
2348
2401
|
fields?: string[] | undefined;
|
2349
2402
|
conditions?: any;
|
@@ -2353,7 +2406,7 @@ export declare const useCoreStore: () => {
|
|
2353
2406
|
actions: string | string[];
|
2354
2407
|
subject: string | string[];
|
2355
2408
|
}[]) => void;
|
2356
|
-
|
2409
|
+
setPermissions: (permissions: {
|
2357
2410
|
fields?: string[] | undefined;
|
2358
2411
|
conditions?: any;
|
2359
2412
|
inverted?: boolean | undefined;
|
@@ -2380,6 +2433,7 @@ export declare const useCoreStore: () => {
|
|
2380
2433
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
2381
2434
|
changeCountry: (country: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW") => Promise<void>;
|
2382
2435
|
businesses: import("vue").Ref<{
|
2436
|
+
id: string;
|
2383
2437
|
internal?: boolean | null | undefined;
|
2384
2438
|
expiredAt?: string | null | undefined;
|
2385
2439
|
url?: string | null | undefined;
|
@@ -3397,123 +3451,184 @@ export declare const useCoreStore: () => {
|
|
3397
3451
|
};
|
3398
3452
|
name: string;
|
3399
3453
|
email: string;
|
3400
|
-
phoneNo: string;
|
3401
|
-
regNo: string;
|
3402
|
-
};
|
3403
|
-
}[] | undefined>;
|
3404
|
-
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
3405
|
-
|
3406
|
-
|
3407
|
-
|
3408
|
-
|
3454
|
+
phoneNo: string;
|
3455
|
+
regNo: string;
|
3456
|
+
};
|
3457
|
+
}[] | undefined>;
|
3458
|
+
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
3459
|
+
apps: import("vue").Ref<{
|
3460
|
+
icon: string;
|
3461
|
+
name: string;
|
3462
|
+
description: string;
|
3463
|
+
path: string;
|
3464
|
+
color: string;
|
3465
|
+
}[]>;
|
3466
|
+
selectedApp: import("vue").Ref<import("./store").PortalApp | undefined>;
|
3467
|
+
registerApp: (app: import("./store").PortalApp) => void;
|
3468
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
3469
|
+
}, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "apps" | "selectedApp">>>;
|
3470
|
+
$patch(partialState: import("pinia")._DeepPartial<{
|
3471
|
+
sessionUser: {
|
3472
|
+
id: string;
|
3473
|
+
email?: string | null | undefined;
|
3474
|
+
photoURL?: string | null | undefined;
|
3475
|
+
displayName?: string | null | undefined;
|
3476
|
+
phoneNumber?: string | null | undefined;
|
3477
|
+
readonly token: string | null;
|
3478
|
+
getCustomToken: () => Promise<string>;
|
3479
|
+
setAdminPermisssions: (permissions: {
|
3480
|
+
fields?: string[] | undefined;
|
3481
|
+
conditions?: any;
|
3482
|
+
inverted?: boolean | undefined;
|
3483
|
+
reason?: string | undefined;
|
3484
|
+
label: string;
|
3485
|
+
actions: string | string[];
|
3486
|
+
subject: string | string[];
|
3487
|
+
}[]) => void;
|
3488
|
+
setPermissions: (permissions: {
|
3489
|
+
fields?: string[] | undefined;
|
3490
|
+
conditions?: any;
|
3491
|
+
inverted?: boolean | undefined;
|
3492
|
+
reason?: string | undefined;
|
3493
|
+
label: string;
|
3494
|
+
actions: string | string[];
|
3495
|
+
subject: string | string[];
|
3496
|
+
}[]) => void;
|
3497
|
+
readonly permissions: {
|
3498
|
+
fields?: string[] | undefined;
|
3499
|
+
conditions?: any;
|
3500
|
+
inverted?: boolean | undefined;
|
3501
|
+
reason?: string | undefined;
|
3502
|
+
label: string;
|
3503
|
+
actions: string | string[];
|
3504
|
+
subject: string | string[];
|
3505
|
+
}[];
|
3506
|
+
} | null;
|
3507
|
+
namespace: "dev" | "prod";
|
3508
|
+
currentCountry: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
3509
|
+
businesses: {
|
3510
|
+
id: string;
|
3511
|
+
internal?: boolean | null | undefined;
|
3512
|
+
expiredAt?: string | null | undefined;
|
3513
|
+
url?: string | null | undefined;
|
3514
|
+
agentId?: string | null | undefined;
|
3515
|
+
pf_agent?: {
|
3516
|
+
clickupId?: string | null | undefined;
|
3517
|
+
members?: {
|
3518
|
+
pf_user?: {
|
3519
|
+
email?: string | null | undefined;
|
3520
|
+
photoURL?: string | null | undefined;
|
3521
|
+
displayName?: string | null | undefined;
|
3522
|
+
phoneNumber?: string | null | undefined;
|
3523
|
+
birthday?: {
|
3524
|
+
toString: () => string;
|
3525
|
+
toDateString: () => string;
|
3526
|
+
toTimeString: () => string;
|
3527
|
+
toLocaleString: {
|
3528
|
+
(): string;
|
3529
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3530
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3531
|
+
};
|
3532
|
+
toLocaleDateString: {
|
3533
|
+
(): string;
|
3534
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3535
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3536
|
+
};
|
3537
|
+
toLocaleTimeString: {
|
3538
|
+
(): string;
|
3539
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3540
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3541
|
+
};
|
3542
|
+
valueOf: () => number;
|
3543
|
+
getTime: () => number;
|
3544
|
+
getFullYear: () => number;
|
3545
|
+
getUTCFullYear: () => number;
|
3546
|
+
getMonth: () => number;
|
3547
|
+
getUTCMonth: () => number;
|
3548
|
+
getDate: () => number;
|
3549
|
+
getUTCDate: () => number;
|
3550
|
+
getDay: () => number;
|
3551
|
+
getUTCDay: () => number;
|
3552
|
+
getHours: () => number;
|
3553
|
+
getUTCHours: () => number;
|
3554
|
+
getMinutes: () => number;
|
3555
|
+
getUTCMinutes: () => number;
|
3556
|
+
getSeconds: () => number;
|
3557
|
+
getUTCSeconds: () => number;
|
3558
|
+
getMilliseconds: () => number;
|
3559
|
+
getUTCMilliseconds: () => number;
|
3560
|
+
getTimezoneOffset: () => number;
|
3561
|
+
setTime: (time: number) => number;
|
3562
|
+
setMilliseconds: (ms: number) => number;
|
3563
|
+
setUTCMilliseconds: (ms: number) => number;
|
3564
|
+
setSeconds: (sec: number, ms?: number | undefined) => number;
|
3565
|
+
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
3566
|
+
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
3567
|
+
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
3568
|
+
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
3569
|
+
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
3570
|
+
setDate: (date: number) => number;
|
3571
|
+
setUTCDate: (date: number) => number;
|
3572
|
+
setMonth: (month: number, date?: number | undefined) => number;
|
3573
|
+
setUTCMonth: (month: number, date?: number | undefined) => number;
|
3574
|
+
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
3575
|
+
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
3576
|
+
toUTCString: () => string;
|
3577
|
+
toISOString: () => string;
|
3578
|
+
toJSON: (key?: any) => string;
|
3579
|
+
[Symbol.toPrimitive]: {
|
3580
|
+
(hint: "default"): string;
|
3581
|
+
(hint: "string"): string;
|
3582
|
+
(hint: "number"): number;
|
3583
|
+
(hint: string): string | number;
|
3584
|
+
};
|
3585
|
+
} | null | undefined;
|
3586
|
+
gender?: "MALE" | "FEMALE" | null | undefined;
|
3587
|
+
addresses?: {
|
3588
|
+
address: string;
|
3589
|
+
name: string;
|
3590
|
+
coordinates: number[];
|
3591
|
+
}[] | null | undefined;
|
3592
|
+
imported?: {
|
3593
|
+
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
3594
|
+
raw: Record<string, any>;
|
3595
|
+
} | null | undefined;
|
3596
|
+
_id: string;
|
3597
|
+
} | null | undefined;
|
3598
|
+
userId: string;
|
3599
|
+
role: "ADMIN";
|
3600
|
+
}[] | null | undefined;
|
3601
|
+
code: string;
|
3602
|
+
name: string;
|
3603
|
+
_id: string;
|
3604
|
+
isReseller: boolean;
|
3605
|
+
} | null | undefined;
|
3606
|
+
thumbnail?: string | null | undefined;
|
3607
|
+
billingInfos?: {
|
3608
|
+
_id?: string | undefined;
|
3609
|
+
address: {
|
3610
|
+
coordinates?: number[] | undefined;
|
3611
|
+
line2?: string | undefined;
|
3612
|
+
state: string;
|
3613
|
+
line1: string;
|
3614
|
+
city: string;
|
3615
|
+
postcode: string;
|
3616
|
+
country: string;
|
3617
|
+
};
|
3618
|
+
name: string;
|
3619
|
+
email: string;
|
3620
|
+
companyName: string;
|
3621
|
+
contact: string;
|
3622
|
+
}[] | null | undefined;
|
3409
3623
|
name: string;
|
3410
|
-
|
3411
|
-
|
3412
|
-
|
3624
|
+
_id: string;
|
3625
|
+
ownerId: string;
|
3626
|
+
restaurantQuota: number;
|
3627
|
+
warehouseQuota: number;
|
3628
|
+
menuVersion: "v2" | "v3" | "v4";
|
3413
3629
|
}[];
|
3414
|
-
|
3415
|
-
sessionUser: {
|
3630
|
+
currentBusiness: {
|
3416
3631
|
id: string;
|
3417
|
-
email?: string | null | undefined;
|
3418
|
-
photoURL?: string | null | undefined;
|
3419
|
-
displayName?: string | null | undefined;
|
3420
|
-
phoneNumber?: string | null | undefined;
|
3421
|
-
token: string;
|
3422
|
-
tokenExpiredAt: {
|
3423
|
-
toString: () => string;
|
3424
|
-
toDateString: () => string;
|
3425
|
-
toTimeString: () => string;
|
3426
|
-
toLocaleString: {
|
3427
|
-
(): string;
|
3428
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3429
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3430
|
-
};
|
3431
|
-
toLocaleDateString: {
|
3432
|
-
(): string;
|
3433
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3434
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3435
|
-
};
|
3436
|
-
toLocaleTimeString: {
|
3437
|
-
(): string;
|
3438
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3439
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
3440
|
-
};
|
3441
|
-
valueOf: () => number;
|
3442
|
-
getTime: () => number;
|
3443
|
-
getFullYear: () => number;
|
3444
|
-
getUTCFullYear: () => number;
|
3445
|
-
getMonth: () => number;
|
3446
|
-
getUTCMonth: () => number;
|
3447
|
-
getDate: () => number;
|
3448
|
-
getUTCDate: () => number;
|
3449
|
-
getDay: () => number;
|
3450
|
-
getUTCDay: () => number;
|
3451
|
-
getHours: () => number;
|
3452
|
-
getUTCHours: () => number;
|
3453
|
-
getMinutes: () => number;
|
3454
|
-
getUTCMinutes: () => number;
|
3455
|
-
getSeconds: () => number;
|
3456
|
-
getUTCSeconds: () => number;
|
3457
|
-
getMilliseconds: () => number;
|
3458
|
-
getUTCMilliseconds: () => number;
|
3459
|
-
getTimezoneOffset: () => number;
|
3460
|
-
setTime: (time: number) => number;
|
3461
|
-
setMilliseconds: (ms: number) => number;
|
3462
|
-
setUTCMilliseconds: (ms: number) => number;
|
3463
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
3464
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
3465
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
3466
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
3467
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
3468
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
3469
|
-
setDate: (date: number) => number;
|
3470
|
-
setUTCDate: (date: number) => number;
|
3471
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
3472
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
3473
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
3474
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
3475
|
-
toUTCString: () => string;
|
3476
|
-
toISOString: () => string;
|
3477
|
-
toJSON: (key?: any) => string;
|
3478
|
-
[Symbol.toPrimitive]: {
|
3479
|
-
(hint: "default"): string;
|
3480
|
-
(hint: "string"): string;
|
3481
|
-
(hint: "number"): number;
|
3482
|
-
(hint: string): string | number;
|
3483
|
-
};
|
3484
|
-
};
|
3485
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
3486
|
-
setAdminPermisssions: (permissions: {
|
3487
|
-
fields?: string[] | undefined;
|
3488
|
-
conditions?: any;
|
3489
|
-
inverted?: boolean | undefined;
|
3490
|
-
reason?: string | undefined;
|
3491
|
-
label: string;
|
3492
|
-
actions: string | string[];
|
3493
|
-
subject: string | string[];
|
3494
|
-
}[]) => void;
|
3495
|
-
setPermisssions: (permissions: {
|
3496
|
-
fields?: string[] | undefined;
|
3497
|
-
conditions?: any;
|
3498
|
-
inverted?: boolean | undefined;
|
3499
|
-
reason?: string | undefined;
|
3500
|
-
label: string;
|
3501
|
-
actions: string | string[];
|
3502
|
-
subject: string | string[];
|
3503
|
-
}[]) => void;
|
3504
|
-
readonly permissions: {
|
3505
|
-
fields?: string[] | undefined;
|
3506
|
-
conditions?: any;
|
3507
|
-
inverted?: boolean | undefined;
|
3508
|
-
reason?: string | undefined;
|
3509
|
-
label: string;
|
3510
|
-
actions: string | string[];
|
3511
|
-
subject: string | string[];
|
3512
|
-
}[];
|
3513
|
-
} | null;
|
3514
|
-
namespace: "dev" | "prod";
|
3515
|
-
currentCountry: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
3516
|
-
businesses: {
|
3517
3632
|
internal?: boolean | null | undefined;
|
3518
3633
|
expiredAt?: string | null | undefined;
|
3519
3634
|
url?: string | null | undefined;
|
@@ -3632,10 +3747,6 @@ export declare const useCoreStore: () => {
|
|
3632
3747
|
restaurantQuota: number;
|
3633
3748
|
warehouseQuota: number;
|
3634
3749
|
menuVersion: "v2" | "v3" | "v4";
|
3635
|
-
}[];
|
3636
|
-
currentBusiness: {
|
3637
|
-
id: string;
|
3638
|
-
name: string;
|
3639
3750
|
} | undefined;
|
3640
3751
|
restaurants: {
|
3641
3752
|
managable: boolean;
|
@@ -4535,8 +4646,6 @@ export declare const useCoreStore: () => {
|
|
4535
4646
|
regNo: string;
|
4536
4647
|
};
|
4537
4648
|
} | undefined;
|
4538
|
-
}>): void;
|
4539
|
-
$patch<F extends (state: {
|
4540
4649
|
apps: {
|
4541
4650
|
icon: string;
|
4542
4651
|
name: string;
|
@@ -4544,78 +4653,23 @@ export declare const useCoreStore: () => {
|
|
4544
4653
|
path: string;
|
4545
4654
|
color: string;
|
4546
4655
|
}[];
|
4547
|
-
|
4656
|
+
selectedApp: {
|
4657
|
+
icon: string;
|
4658
|
+
name: string;
|
4659
|
+
description: string;
|
4660
|
+
path: string;
|
4661
|
+
color: string;
|
4662
|
+
} | undefined;
|
4663
|
+
}>): void;
|
4664
|
+
$patch<F extends (state: {
|
4548
4665
|
sessionUser: {
|
4549
4666
|
id: string;
|
4550
4667
|
email?: string | null | undefined;
|
4551
4668
|
photoURL?: string | null | undefined;
|
4552
4669
|
displayName?: string | null | undefined;
|
4553
4670
|
phoneNumber?: string | null | undefined;
|
4554
|
-
token: string;
|
4555
|
-
|
4556
|
-
toString: () => string;
|
4557
|
-
toDateString: () => string;
|
4558
|
-
toTimeString: () => string;
|
4559
|
-
toLocaleString: {
|
4560
|
-
(): string;
|
4561
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4562
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4563
|
-
};
|
4564
|
-
toLocaleDateString: {
|
4565
|
-
(): string;
|
4566
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4567
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4568
|
-
};
|
4569
|
-
toLocaleTimeString: {
|
4570
|
-
(): string;
|
4571
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4572
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4573
|
-
};
|
4574
|
-
valueOf: () => number;
|
4575
|
-
getTime: () => number;
|
4576
|
-
getFullYear: () => number;
|
4577
|
-
getUTCFullYear: () => number;
|
4578
|
-
getMonth: () => number;
|
4579
|
-
getUTCMonth: () => number;
|
4580
|
-
getDate: () => number;
|
4581
|
-
getUTCDate: () => number;
|
4582
|
-
getDay: () => number;
|
4583
|
-
getUTCDay: () => number;
|
4584
|
-
getHours: () => number;
|
4585
|
-
getUTCHours: () => number;
|
4586
|
-
getMinutes: () => number;
|
4587
|
-
getUTCMinutes: () => number;
|
4588
|
-
getSeconds: () => number;
|
4589
|
-
getUTCSeconds: () => number;
|
4590
|
-
getMilliseconds: () => number;
|
4591
|
-
getUTCMilliseconds: () => number;
|
4592
|
-
getTimezoneOffset: () => number;
|
4593
|
-
setTime: (time: number) => number;
|
4594
|
-
setMilliseconds: (ms: number) => number;
|
4595
|
-
setUTCMilliseconds: (ms: number) => number;
|
4596
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
4597
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
4598
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
4599
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
4600
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
4601
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
4602
|
-
setDate: (date: number) => number;
|
4603
|
-
setUTCDate: (date: number) => number;
|
4604
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
4605
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
4606
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
4607
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
4608
|
-
toUTCString: () => string;
|
4609
|
-
toISOString: () => string;
|
4610
|
-
toJSON: (key?: any) => string;
|
4611
|
-
[Symbol.toPrimitive]: {
|
4612
|
-
(hint: "default"): string;
|
4613
|
-
(hint: "string"): string;
|
4614
|
-
(hint: "number"): number;
|
4615
|
-
(hint: string): string | number;
|
4616
|
-
};
|
4617
|
-
};
|
4618
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
4671
|
+
readonly token: string | null;
|
4672
|
+
getCustomToken: () => Promise<string>;
|
4619
4673
|
setAdminPermisssions: (permissions: {
|
4620
4674
|
fields?: string[] | undefined;
|
4621
4675
|
conditions?: any;
|
@@ -4625,7 +4679,7 @@ export declare const useCoreStore: () => {
|
|
4625
4679
|
actions: string | string[];
|
4626
4680
|
subject: string | string[];
|
4627
4681
|
}[]) => void;
|
4628
|
-
|
4682
|
+
setPermissions: (permissions: {
|
4629
4683
|
fields?: string[] | undefined;
|
4630
4684
|
conditions?: any;
|
4631
4685
|
inverted?: boolean | undefined;
|
@@ -4647,6 +4701,7 @@ export declare const useCoreStore: () => {
|
|
4647
4701
|
namespace: "dev" | "prod";
|
4648
4702
|
currentCountry: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
4649
4703
|
businesses: {
|
4704
|
+
id: string;
|
4650
4705
|
internal?: boolean | null | undefined;
|
4651
4706
|
expiredAt?: string | null | undefined;
|
4652
4707
|
url?: string | null | undefined;
|
@@ -4768,7 +4823,124 @@ export declare const useCoreStore: () => {
|
|
4768
4823
|
}[];
|
4769
4824
|
currentBusiness: {
|
4770
4825
|
id: string;
|
4826
|
+
internal?: boolean | null | undefined;
|
4827
|
+
expiredAt?: string | null | undefined;
|
4828
|
+
url?: string | null | undefined;
|
4829
|
+
agentId?: string | null | undefined;
|
4830
|
+
pf_agent?: {
|
4831
|
+
clickupId?: string | null | undefined;
|
4832
|
+
members?: {
|
4833
|
+
pf_user?: {
|
4834
|
+
email?: string | null | undefined;
|
4835
|
+
photoURL?: string | null | undefined;
|
4836
|
+
displayName?: string | null | undefined;
|
4837
|
+
phoneNumber?: string | null | undefined;
|
4838
|
+
birthday?: {
|
4839
|
+
toString: () => string;
|
4840
|
+
toDateString: () => string;
|
4841
|
+
toTimeString: () => string;
|
4842
|
+
toLocaleString: {
|
4843
|
+
(): string;
|
4844
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4845
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4846
|
+
};
|
4847
|
+
toLocaleDateString: {
|
4848
|
+
(): string;
|
4849
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4850
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4851
|
+
};
|
4852
|
+
toLocaleTimeString: {
|
4853
|
+
(): string;
|
4854
|
+
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4855
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
4856
|
+
};
|
4857
|
+
valueOf: () => number;
|
4858
|
+
getTime: () => number;
|
4859
|
+
getFullYear: () => number;
|
4860
|
+
getUTCFullYear: () => number;
|
4861
|
+
getMonth: () => number;
|
4862
|
+
getUTCMonth: () => number;
|
4863
|
+
getDate: () => number;
|
4864
|
+
getUTCDate: () => number;
|
4865
|
+
getDay: () => number;
|
4866
|
+
getUTCDay: () => number;
|
4867
|
+
getHours: () => number;
|
4868
|
+
getUTCHours: () => number;
|
4869
|
+
getMinutes: () => number;
|
4870
|
+
getUTCMinutes: () => number;
|
4871
|
+
getSeconds: () => number;
|
4872
|
+
getUTCSeconds: () => number;
|
4873
|
+
getMilliseconds: () => number;
|
4874
|
+
getUTCMilliseconds: () => number;
|
4875
|
+
getTimezoneOffset: () => number;
|
4876
|
+
setTime: (time: number) => number;
|
4877
|
+
setMilliseconds: (ms: number) => number;
|
4878
|
+
setUTCMilliseconds: (ms: number) => number;
|
4879
|
+
setSeconds: (sec: number, ms?: number | undefined) => number;
|
4880
|
+
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
4881
|
+
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
4882
|
+
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
4883
|
+
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
4884
|
+
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
4885
|
+
setDate: (date: number) => number;
|
4886
|
+
setUTCDate: (date: number) => number;
|
4887
|
+
setMonth: (month: number, date?: number | undefined) => number;
|
4888
|
+
setUTCMonth: (month: number, date?: number | undefined) => number;
|
4889
|
+
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
4890
|
+
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
4891
|
+
toUTCString: () => string;
|
4892
|
+
toISOString: () => string;
|
4893
|
+
toJSON: (key?: any) => string;
|
4894
|
+
[Symbol.toPrimitive]: {
|
4895
|
+
(hint: "default"): string;
|
4896
|
+
(hint: "string"): string;
|
4897
|
+
(hint: "number"): number;
|
4898
|
+
(hint: string): string | number;
|
4899
|
+
};
|
4900
|
+
} | null | undefined;
|
4901
|
+
gender?: "MALE" | "FEMALE" | null | undefined;
|
4902
|
+
addresses?: {
|
4903
|
+
address: string;
|
4904
|
+
name: string;
|
4905
|
+
coordinates: number[];
|
4906
|
+
}[] | null | undefined;
|
4907
|
+
imported?: {
|
4908
|
+
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
4909
|
+
raw: Record<string, any>;
|
4910
|
+
} | null | undefined;
|
4911
|
+
_id: string;
|
4912
|
+
} | null | undefined;
|
4913
|
+
userId: string;
|
4914
|
+
role: "ADMIN";
|
4915
|
+
}[] | null | undefined;
|
4916
|
+
code: string;
|
4917
|
+
name: string;
|
4918
|
+
_id: string;
|
4919
|
+
isReseller: boolean;
|
4920
|
+
} | null | undefined;
|
4921
|
+
thumbnail?: string | null | undefined;
|
4922
|
+
billingInfos?: {
|
4923
|
+
_id?: string | undefined;
|
4924
|
+
address: {
|
4925
|
+
coordinates?: number[] | undefined;
|
4926
|
+
line2?: string | undefined;
|
4927
|
+
state: string;
|
4928
|
+
line1: string;
|
4929
|
+
city: string;
|
4930
|
+
postcode: string;
|
4931
|
+
country: string;
|
4932
|
+
};
|
4933
|
+
name: string;
|
4934
|
+
email: string;
|
4935
|
+
companyName: string;
|
4936
|
+
contact: string;
|
4937
|
+
}[] | null | undefined;
|
4771
4938
|
name: string;
|
4939
|
+
_id: string;
|
4940
|
+
ownerId: string;
|
4941
|
+
restaurantQuota: number;
|
4942
|
+
warehouseQuota: number;
|
4943
|
+
menuVersion: "v2" | "v3" | "v4";
|
4772
4944
|
} | undefined;
|
4773
4945
|
restaurants: {
|
4774
4946
|
managable: boolean;
|
@@ -5668,90 +5840,34 @@ export declare const useCoreStore: () => {
|
|
5668
5840
|
regNo: string;
|
5669
5841
|
};
|
5670
5842
|
} | undefined;
|
5671
|
-
|
5672
|
-
$reset(): void;
|
5673
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
5674
|
-
apps: import("vue").Ref<{
|
5843
|
+
apps: {
|
5675
5844
|
icon: string;
|
5676
5845
|
name: string;
|
5677
5846
|
description: string;
|
5678
5847
|
path: string;
|
5679
5848
|
color: string;
|
5680
|
-
}[]
|
5681
|
-
|
5682
|
-
|
5683
|
-
|
5849
|
+
}[];
|
5850
|
+
selectedApp: {
|
5851
|
+
icon: string;
|
5852
|
+
name: string;
|
5853
|
+
description: string;
|
5854
|
+
path: string;
|
5855
|
+
color: string;
|
5856
|
+
} | undefined;
|
5857
|
+
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
5858
|
+
$reset(): void;
|
5859
|
+
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
5860
|
+
signIn: () => Promise<void>;
|
5861
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
5862
|
+
signOut: () => Promise<void>;
|
5684
5863
|
sessionUser: import("vue").Ref<{
|
5685
5864
|
id: string;
|
5686
5865
|
email?: string | null | undefined;
|
5687
5866
|
photoURL?: string | null | undefined;
|
5688
5867
|
displayName?: string | null | undefined;
|
5689
5868
|
phoneNumber?: string | null | undefined;
|
5690
|
-
token: string;
|
5691
|
-
|
5692
|
-
toString: () => string;
|
5693
|
-
toDateString: () => string;
|
5694
|
-
toTimeString: () => string;
|
5695
|
-
toLocaleString: {
|
5696
|
-
(): string;
|
5697
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5698
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5699
|
-
};
|
5700
|
-
toLocaleDateString: {
|
5701
|
-
(): string;
|
5702
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5703
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5704
|
-
};
|
5705
|
-
toLocaleTimeString: {
|
5706
|
-
(): string;
|
5707
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5708
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
5709
|
-
};
|
5710
|
-
valueOf: () => number;
|
5711
|
-
getTime: () => number;
|
5712
|
-
getFullYear: () => number;
|
5713
|
-
getUTCFullYear: () => number;
|
5714
|
-
getMonth: () => number;
|
5715
|
-
getUTCMonth: () => number;
|
5716
|
-
getDate: () => number;
|
5717
|
-
getUTCDate: () => number;
|
5718
|
-
getDay: () => number;
|
5719
|
-
getUTCDay: () => number;
|
5720
|
-
getHours: () => number;
|
5721
|
-
getUTCHours: () => number;
|
5722
|
-
getMinutes: () => number;
|
5723
|
-
getUTCMinutes: () => number;
|
5724
|
-
getSeconds: () => number;
|
5725
|
-
getUTCSeconds: () => number;
|
5726
|
-
getMilliseconds: () => number;
|
5727
|
-
getUTCMilliseconds: () => number;
|
5728
|
-
getTimezoneOffset: () => number;
|
5729
|
-
setTime: (time: number) => number;
|
5730
|
-
setMilliseconds: (ms: number) => number;
|
5731
|
-
setUTCMilliseconds: (ms: number) => number;
|
5732
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
5733
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
5734
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
5735
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
5736
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
5737
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
5738
|
-
setDate: (date: number) => number;
|
5739
|
-
setUTCDate: (date: number) => number;
|
5740
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
5741
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
5742
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
5743
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
5744
|
-
toUTCString: () => string;
|
5745
|
-
toISOString: () => string;
|
5746
|
-
toJSON: (key?: any) => string;
|
5747
|
-
[Symbol.toPrimitive]: {
|
5748
|
-
(hint: "default"): string;
|
5749
|
-
(hint: "string"): string;
|
5750
|
-
(hint: "number"): number;
|
5751
|
-
(hint: string): string | number;
|
5752
|
-
};
|
5753
|
-
};
|
5754
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
5869
|
+
readonly token: string | null;
|
5870
|
+
getCustomToken: () => Promise<string>;
|
5755
5871
|
setAdminPermisssions: (permissions: {
|
5756
5872
|
fields?: string[] | undefined;
|
5757
5873
|
conditions?: any;
|
@@ -5761,7 +5877,7 @@ export declare const useCoreStore: () => {
|
|
5761
5877
|
actions: string | string[];
|
5762
5878
|
subject: string | string[];
|
5763
5879
|
}[]) => void;
|
5764
|
-
|
5880
|
+
setPermissions: (permissions: {
|
5765
5881
|
fields?: string[] | undefined;
|
5766
5882
|
conditions?: any;
|
5767
5883
|
inverted?: boolean | undefined;
|
@@ -5788,6 +5904,7 @@ export declare const useCoreStore: () => {
|
|
5788
5904
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
5789
5905
|
changeCountry: (country: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW") => Promise<void>;
|
5790
5906
|
businesses: import("vue").Ref<{
|
5907
|
+
id: string;
|
5791
5908
|
internal?: boolean | null | undefined;
|
5792
5909
|
expiredAt?: string | null | undefined;
|
5793
5910
|
url?: string | null | undefined;
|
@@ -6810,10 +6927,6 @@ export declare const useCoreStore: () => {
|
|
6810
6927
|
};
|
6811
6928
|
}[] | undefined>;
|
6812
6929
|
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
6813
|
-
}, "apps" | "currentAppName" | "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant">>>, options?: ({
|
6814
|
-
detached?: boolean | undefined;
|
6815
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
6816
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"portal-core", import("pinia")._UnwrapAll<Pick<{
|
6817
6930
|
apps: import("vue").Ref<{
|
6818
6931
|
icon: string;
|
6819
6932
|
name: string;
|
@@ -6821,80 +6934,24 @@ export declare const useCoreStore: () => {
|
|
6821
6934
|
path: string;
|
6822
6935
|
color: string;
|
6823
6936
|
}[]>;
|
6824
|
-
|
6937
|
+
selectedApp: import("vue").Ref<import("./store").PortalApp | undefined>;
|
6825
6938
|
registerApp: (app: import("./store").PortalApp) => void;
|
6826
|
-
|
6939
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
6940
|
+
}, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "apps" | "selectedApp">>>, options?: ({
|
6941
|
+
detached?: boolean | undefined;
|
6942
|
+
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
6943
|
+
$onAction(callback: import("pinia").StoreOnActionListener<"portal-core", import("pinia")._UnwrapAll<Pick<{
|
6944
|
+
signIn: () => Promise<void>;
|
6945
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
6946
|
+
signOut: () => Promise<void>;
|
6827
6947
|
sessionUser: import("vue").Ref<{
|
6828
6948
|
id: string;
|
6829
6949
|
email?: string | null | undefined;
|
6830
6950
|
photoURL?: string | null | undefined;
|
6831
6951
|
displayName?: string | null | undefined;
|
6832
6952
|
phoneNumber?: string | null | undefined;
|
6833
|
-
token: string;
|
6834
|
-
|
6835
|
-
toString: () => string;
|
6836
|
-
toDateString: () => string;
|
6837
|
-
toTimeString: () => string;
|
6838
|
-
toLocaleString: {
|
6839
|
-
(): string;
|
6840
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6841
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6842
|
-
};
|
6843
|
-
toLocaleDateString: {
|
6844
|
-
(): string;
|
6845
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6846
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6847
|
-
};
|
6848
|
-
toLocaleTimeString: {
|
6849
|
-
(): string;
|
6850
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6851
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
6852
|
-
};
|
6853
|
-
valueOf: () => number;
|
6854
|
-
getTime: () => number;
|
6855
|
-
getFullYear: () => number;
|
6856
|
-
getUTCFullYear: () => number;
|
6857
|
-
getMonth: () => number;
|
6858
|
-
getUTCMonth: () => number;
|
6859
|
-
getDate: () => number;
|
6860
|
-
getUTCDate: () => number;
|
6861
|
-
getDay: () => number;
|
6862
|
-
getUTCDay: () => number;
|
6863
|
-
getHours: () => number;
|
6864
|
-
getUTCHours: () => number;
|
6865
|
-
getMinutes: () => number;
|
6866
|
-
getUTCMinutes: () => number;
|
6867
|
-
getSeconds: () => number;
|
6868
|
-
getUTCSeconds: () => number;
|
6869
|
-
getMilliseconds: () => number;
|
6870
|
-
getUTCMilliseconds: () => number;
|
6871
|
-
getTimezoneOffset: () => number;
|
6872
|
-
setTime: (time: number) => number;
|
6873
|
-
setMilliseconds: (ms: number) => number;
|
6874
|
-
setUTCMilliseconds: (ms: number) => number;
|
6875
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
6876
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
6877
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
6878
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
6879
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
6880
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
6881
|
-
setDate: (date: number) => number;
|
6882
|
-
setUTCDate: (date: number) => number;
|
6883
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
6884
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
6885
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
6886
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
6887
|
-
toUTCString: () => string;
|
6888
|
-
toISOString: () => string;
|
6889
|
-
toJSON: (key?: any) => string;
|
6890
|
-
[Symbol.toPrimitive]: {
|
6891
|
-
(hint: "default"): string;
|
6892
|
-
(hint: "string"): string;
|
6893
|
-
(hint: "number"): number;
|
6894
|
-
(hint: string): string | number;
|
6895
|
-
};
|
6896
|
-
};
|
6897
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
6953
|
+
readonly token: string | null;
|
6954
|
+
getCustomToken: () => Promise<string>;
|
6898
6955
|
setAdminPermisssions: (permissions: {
|
6899
6956
|
fields?: string[] | undefined;
|
6900
6957
|
conditions?: any;
|
@@ -6904,7 +6961,7 @@ export declare const useCoreStore: () => {
|
|
6904
6961
|
actions: string | string[];
|
6905
6962
|
subject: string | string[];
|
6906
6963
|
}[]) => void;
|
6907
|
-
|
6964
|
+
setPermissions: (permissions: {
|
6908
6965
|
fields?: string[] | undefined;
|
6909
6966
|
conditions?: any;
|
6910
6967
|
inverted?: boolean | undefined;
|
@@ -6931,6 +6988,7 @@ export declare const useCoreStore: () => {
|
|
6931
6988
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
6932
6989
|
changeCountry: (country: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW") => Promise<void>;
|
6933
6990
|
businesses: import("vue").Ref<{
|
6991
|
+
id: string;
|
6934
6992
|
internal?: boolean | null | undefined;
|
6935
6993
|
expiredAt?: string | null | undefined;
|
6936
6994
|
url?: string | null | undefined;
|
@@ -7953,7 +8011,6 @@ export declare const useCoreStore: () => {
|
|
7953
8011
|
};
|
7954
8012
|
}[] | undefined>;
|
7955
8013
|
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
7956
|
-
}, "apps" | "currentAppName" | "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant">>, Pick<{
|
7957
8014
|
apps: import("vue").Ref<{
|
7958
8015
|
icon: string;
|
7959
8016
|
name: string;
|
@@ -7961,80 +8018,21 @@ export declare const useCoreStore: () => {
|
|
7961
8018
|
path: string;
|
7962
8019
|
color: string;
|
7963
8020
|
}[]>;
|
7964
|
-
|
8021
|
+
selectedApp: import("vue").Ref<import("./store").PortalApp | undefined>;
|
7965
8022
|
registerApp: (app: import("./store").PortalApp) => void;
|
7966
|
-
|
8023
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
8024
|
+
}, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "apps" | "selectedApp">>, Pick<{
|
8025
|
+
signIn: () => Promise<void>;
|
8026
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
8027
|
+
signOut: () => Promise<void>;
|
7967
8028
|
sessionUser: import("vue").Ref<{
|
7968
8029
|
id: string;
|
7969
8030
|
email?: string | null | undefined;
|
7970
8031
|
photoURL?: string | null | undefined;
|
7971
8032
|
displayName?: string | null | undefined;
|
7972
8033
|
phoneNumber?: string | null | undefined;
|
7973
|
-
token: string;
|
7974
|
-
|
7975
|
-
toString: () => string;
|
7976
|
-
toDateString: () => string;
|
7977
|
-
toTimeString: () => string;
|
7978
|
-
toLocaleString: {
|
7979
|
-
(): string;
|
7980
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7981
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7982
|
-
};
|
7983
|
-
toLocaleDateString: {
|
7984
|
-
(): string;
|
7985
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7986
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7987
|
-
};
|
7988
|
-
toLocaleTimeString: {
|
7989
|
-
(): string;
|
7990
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7991
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
7992
|
-
};
|
7993
|
-
valueOf: () => number;
|
7994
|
-
getTime: () => number;
|
7995
|
-
getFullYear: () => number;
|
7996
|
-
getUTCFullYear: () => number;
|
7997
|
-
getMonth: () => number;
|
7998
|
-
getUTCMonth: () => number;
|
7999
|
-
getDate: () => number;
|
8000
|
-
getUTCDate: () => number;
|
8001
|
-
getDay: () => number;
|
8002
|
-
getUTCDay: () => number;
|
8003
|
-
getHours: () => number;
|
8004
|
-
getUTCHours: () => number;
|
8005
|
-
getMinutes: () => number;
|
8006
|
-
getUTCMinutes: () => number;
|
8007
|
-
getSeconds: () => number;
|
8008
|
-
getUTCSeconds: () => number;
|
8009
|
-
getMilliseconds: () => number;
|
8010
|
-
getUTCMilliseconds: () => number;
|
8011
|
-
getTimezoneOffset: () => number;
|
8012
|
-
setTime: (time: number) => number;
|
8013
|
-
setMilliseconds: (ms: number) => number;
|
8014
|
-
setUTCMilliseconds: (ms: number) => number;
|
8015
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
8016
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
8017
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
8018
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
8019
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
8020
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
8021
|
-
setDate: (date: number) => number;
|
8022
|
-
setUTCDate: (date: number) => number;
|
8023
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
8024
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
8025
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
8026
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
8027
|
-
toUTCString: () => string;
|
8028
|
-
toISOString: () => string;
|
8029
|
-
toJSON: (key?: any) => string;
|
8030
|
-
[Symbol.toPrimitive]: {
|
8031
|
-
(hint: "default"): string;
|
8032
|
-
(hint: "string"): string;
|
8033
|
-
(hint: "number"): number;
|
8034
|
-
(hint: string): string | number;
|
8035
|
-
};
|
8036
|
-
};
|
8037
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
8034
|
+
readonly token: string | null;
|
8035
|
+
getCustomToken: () => Promise<string>;
|
8038
8036
|
setAdminPermisssions: (permissions: {
|
8039
8037
|
fields?: string[] | undefined;
|
8040
8038
|
conditions?: any;
|
@@ -8044,7 +8042,7 @@ export declare const useCoreStore: () => {
|
|
8044
8042
|
actions: string | string[];
|
8045
8043
|
subject: string | string[];
|
8046
8044
|
}[]) => void;
|
8047
|
-
|
8045
|
+
setPermissions: (permissions: {
|
8048
8046
|
fields?: string[] | undefined;
|
8049
8047
|
conditions?: any;
|
8050
8048
|
inverted?: boolean | undefined;
|
@@ -8071,6 +8069,7 @@ export declare const useCoreStore: () => {
|
|
8071
8069
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
8072
8070
|
changeCountry: (country: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW") => Promise<void>;
|
8073
8071
|
businesses: import("vue").Ref<{
|
8072
|
+
id: string;
|
8074
8073
|
internal?: boolean | null | undefined;
|
8075
8074
|
expiredAt?: string | null | undefined;
|
8076
8075
|
url?: string | null | undefined;
|
@@ -9093,7 +9092,6 @@ export declare const useCoreStore: () => {
|
|
9093
9092
|
};
|
9094
9093
|
}[] | undefined>;
|
9095
9094
|
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
9096
|
-
}, never>, Pick<{
|
9097
9095
|
apps: import("vue").Ref<{
|
9098
9096
|
icon: string;
|
9099
9097
|
name: string;
|
@@ -9101,80 +9099,21 @@ export declare const useCoreStore: () => {
|
|
9101
9099
|
path: string;
|
9102
9100
|
color: string;
|
9103
9101
|
}[]>;
|
9104
|
-
|
9102
|
+
selectedApp: import("vue").Ref<import("./store").PortalApp | undefined>;
|
9105
9103
|
registerApp: (app: import("./store").PortalApp) => void;
|
9106
|
-
|
9104
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
9105
|
+
}, never>, Pick<{
|
9106
|
+
signIn: () => Promise<void>;
|
9107
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
9108
|
+
signOut: () => Promise<void>;
|
9107
9109
|
sessionUser: import("vue").Ref<{
|
9108
9110
|
id: string;
|
9109
9111
|
email?: string | null | undefined;
|
9110
9112
|
photoURL?: string | null | undefined;
|
9111
9113
|
displayName?: string | null | undefined;
|
9112
9114
|
phoneNumber?: string | null | undefined;
|
9113
|
-
token: string;
|
9114
|
-
|
9115
|
-
toString: () => string;
|
9116
|
-
toDateString: () => string;
|
9117
|
-
toTimeString: () => string;
|
9118
|
-
toLocaleString: {
|
9119
|
-
(): string;
|
9120
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9121
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9122
|
-
};
|
9123
|
-
toLocaleDateString: {
|
9124
|
-
(): string;
|
9125
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9126
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9127
|
-
};
|
9128
|
-
toLocaleTimeString: {
|
9129
|
-
(): string;
|
9130
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9131
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
9132
|
-
};
|
9133
|
-
valueOf: () => number;
|
9134
|
-
getTime: () => number;
|
9135
|
-
getFullYear: () => number;
|
9136
|
-
getUTCFullYear: () => number;
|
9137
|
-
getMonth: () => number;
|
9138
|
-
getUTCMonth: () => number;
|
9139
|
-
getDate: () => number;
|
9140
|
-
getUTCDate: () => number;
|
9141
|
-
getDay: () => number;
|
9142
|
-
getUTCDay: () => number;
|
9143
|
-
getHours: () => number;
|
9144
|
-
getUTCHours: () => number;
|
9145
|
-
getMinutes: () => number;
|
9146
|
-
getUTCMinutes: () => number;
|
9147
|
-
getSeconds: () => number;
|
9148
|
-
getUTCSeconds: () => number;
|
9149
|
-
getMilliseconds: () => number;
|
9150
|
-
getUTCMilliseconds: () => number;
|
9151
|
-
getTimezoneOffset: () => number;
|
9152
|
-
setTime: (time: number) => number;
|
9153
|
-
setMilliseconds: (ms: number) => number;
|
9154
|
-
setUTCMilliseconds: (ms: number) => number;
|
9155
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
9156
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
9157
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
9158
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
9159
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
9160
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
9161
|
-
setDate: (date: number) => number;
|
9162
|
-
setUTCDate: (date: number) => number;
|
9163
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
9164
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
9165
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
9166
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
9167
|
-
toUTCString: () => string;
|
9168
|
-
toISOString: () => string;
|
9169
|
-
toJSON: (key?: any) => string;
|
9170
|
-
[Symbol.toPrimitive]: {
|
9171
|
-
(hint: "default"): string;
|
9172
|
-
(hint: "string"): string;
|
9173
|
-
(hint: "number"): number;
|
9174
|
-
(hint: string): string | number;
|
9175
|
-
};
|
9176
|
-
};
|
9177
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
9115
|
+
readonly token: string | null;
|
9116
|
+
getCustomToken: () => Promise<string>;
|
9178
9117
|
setAdminPermisssions: (permissions: {
|
9179
9118
|
fields?: string[] | undefined;
|
9180
9119
|
conditions?: any;
|
@@ -9184,7 +9123,7 @@ export declare const useCoreStore: () => {
|
|
9184
9123
|
actions: string | string[];
|
9185
9124
|
subject: string | string[];
|
9186
9125
|
}[]) => void;
|
9187
|
-
|
9126
|
+
setPermissions: (permissions: {
|
9188
9127
|
fields?: string[] | undefined;
|
9189
9128
|
conditions?: any;
|
9190
9129
|
inverted?: boolean | undefined;
|
@@ -9211,6 +9150,7 @@ export declare const useCoreStore: () => {
|
|
9211
9150
|
currentCountry: import("vue").Ref<"AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW">;
|
9212
9151
|
changeCountry: (country: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW") => Promise<void>;
|
9213
9152
|
businesses: import("vue").Ref<{
|
9153
|
+
id: string;
|
9214
9154
|
internal?: boolean | null | undefined;
|
9215
9155
|
expiredAt?: string | null | undefined;
|
9216
9156
|
url?: string | null | undefined;
|
@@ -10233,12 +10173,23 @@ export declare const useCoreStore: () => {
|
|
10233
10173
|
};
|
10234
10174
|
}[] | undefined>;
|
10235
10175
|
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
10236
|
-
|
10176
|
+
apps: import("vue").Ref<{
|
10177
|
+
icon: string;
|
10178
|
+
name: string;
|
10179
|
+
description: string;
|
10180
|
+
path: string;
|
10181
|
+
color: string;
|
10182
|
+
}[]>;
|
10183
|
+
selectedApp: import("vue").Ref<import("./store").PortalApp | undefined>;
|
10184
|
+
registerApp: (app: import("./store").PortalApp) => void;
|
10185
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
10186
|
+
}, "signIn" | "signInWithToken" | "signOut" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant" | "registerApp" | "selectApp">>, detached?: boolean | undefined): () => void;
|
10237
10187
|
$dispose(): void;
|
10238
10188
|
$id: "portal-core";
|
10239
10189
|
_customProperties: Set<string>;
|
10240
|
-
|
10241
|
-
|
10190
|
+
signIn: () => Promise<void>;
|
10191
|
+
signInWithToken: (user: import("./auth").FeedMeUser, token: string) => Promise<void>;
|
10192
|
+
signOut: () => Promise<void>;
|
10242
10193
|
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
10243
10194
|
fetchUserAdminPermissions: () => Promise<void>;
|
10244
10195
|
fetchUserPermissions: () => Promise<void>;
|
@@ -10696,6 +10647,10 @@ export declare const useCoreStore: () => {
|
|
10696
10647
|
};
|
10697
10648
|
}[] | undefined>;
|
10698
10649
|
changeRestaurant: (restaurant: import("./store").FmpRestaurant | undefined) => void;
|
10650
|
+
registerApp: (app: import("./store").PortalApp) => void;
|
10651
|
+
selectApp: (app: import("./store").PortalApp) => void;
|
10699
10652
|
};
|
10700
|
-
export
|
10653
|
+
export declare function initialize(clientId: string): void;
|
10654
|
+
export declare const onAuthStateChanged: typeof FeedMeAuth.onAuthStateChanged;
|
10655
|
+
export { baseClientInstance } from './api';
|
10701
10656
|
export { default as FmNavBar } from './App.vue';
|