@feedmepos/mf-common 0.0.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.vue.d.ts +1 -3
- package/dist/UserInfo.vue.d.ts +36 -36
- package/dist/api/index.d.ts +5 -5
- package/dist/app.d.ts +528 -257
- package/dist/app.js +37516 -11886
- package/dist/auth.d.ts +8 -53
- package/dist/store.d.ts +160 -42
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/app.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
export declare const useCoreStore: () => {
|
2
|
-
namespace: import("vue").Ref<"prod" | "dev">;
|
3
|
-
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">;
|
4
2
|
businesses: import("vue").Ref<{
|
5
3
|
internal?: boolean | null | undefined;
|
6
4
|
expiredAt?: string | null | undefined;
|
@@ -10,6 +8,7 @@ export declare const useCoreStore: () => {
|
|
10
8
|
clickupId?: string | null | undefined;
|
11
9
|
members?: {
|
12
10
|
pf_user?: {
|
11
|
+
email?: string | null | undefined;
|
13
12
|
birthday?: {
|
14
13
|
toString: () => string;
|
15
14
|
toDateString: () => string;
|
@@ -75,11 +74,10 @@ export declare const useCoreStore: () => {
|
|
75
74
|
} | null | undefined;
|
76
75
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
77
76
|
addresses?: {
|
78
|
-
name: string;
|
79
77
|
address: string;
|
78
|
+
name: string;
|
80
79
|
coordinates: number[];
|
81
80
|
}[] | null | undefined;
|
82
|
-
email?: string | null | undefined;
|
83
81
|
photoURL?: string | null | undefined;
|
84
82
|
displayName?: string | null | undefined;
|
85
83
|
phoneNumber?: string | null | undefined;
|
@@ -89,46 +87,87 @@ export declare const useCoreStore: () => {
|
|
89
87
|
} | null | undefined;
|
90
88
|
_id: string;
|
91
89
|
} | null | undefined;
|
92
|
-
userId: string;
|
93
90
|
role: "ADMIN";
|
91
|
+
userId: string;
|
94
92
|
}[] | null | undefined;
|
95
|
-
_id: string;
|
96
|
-
name: string;
|
97
93
|
code: string;
|
94
|
+
name: string;
|
95
|
+
_id: string;
|
98
96
|
isReseller: boolean;
|
99
97
|
} | null | undefined;
|
100
98
|
thumbnail?: string | null | undefined;
|
101
99
|
billingInfos?: {
|
102
100
|
_id?: string | undefined;
|
103
|
-
name: string;
|
104
|
-
email: string;
|
105
101
|
address: {
|
106
102
|
coordinates?: number[] | undefined;
|
107
103
|
line2?: string | undefined;
|
104
|
+
country: string;
|
108
105
|
line1: string;
|
109
106
|
state: string;
|
110
107
|
city: string;
|
111
108
|
postcode: string;
|
112
|
-
country: string;
|
113
109
|
};
|
110
|
+
name: string;
|
111
|
+
email: string;
|
114
112
|
companyName: string;
|
115
113
|
contact: string;
|
116
114
|
}[] | null | undefined;
|
115
|
+
name: string;
|
117
116
|
_id: string;
|
118
117
|
ownerId: string;
|
119
|
-
name: string;
|
120
118
|
restaurantQuota: number;
|
121
119
|
warehouseQuota: number;
|
122
120
|
menuVersion: "v2" | "v3" | "v4";
|
123
121
|
}[]>;
|
122
|
+
sessionUser: import("vue").Ref<{
|
123
|
+
id: string;
|
124
|
+
email?: string | null | undefined;
|
125
|
+
photoURL?: string | null | undefined;
|
126
|
+
displayName?: string | null | undefined;
|
127
|
+
phoneNumber?: string | null | undefined;
|
128
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
129
|
+
setAdminPermisssions: (permissions: {
|
130
|
+
fields?: string[] | undefined;
|
131
|
+
conditions?: any;
|
132
|
+
inverted?: boolean | undefined;
|
133
|
+
reason?: string | undefined;
|
134
|
+
label: string;
|
135
|
+
actions: string | string[];
|
136
|
+
subject: string | string[];
|
137
|
+
}[]) => void;
|
138
|
+
setPermisssions: (permissions: {
|
139
|
+
fields?: string[] | undefined;
|
140
|
+
conditions?: any;
|
141
|
+
inverted?: boolean | undefined;
|
142
|
+
reason?: string | undefined;
|
143
|
+
label: string;
|
144
|
+
actions: string | string[];
|
145
|
+
subject: string | string[];
|
146
|
+
}[]) => void;
|
147
|
+
readonly permissions: {
|
148
|
+
fields?: string[] | undefined;
|
149
|
+
conditions?: any;
|
150
|
+
inverted?: boolean | undefined;
|
151
|
+
reason?: string | undefined;
|
152
|
+
label: string;
|
153
|
+
actions: string | string[];
|
154
|
+
subject: string | string[];
|
155
|
+
}[];
|
156
|
+
getIdToken: () => Promise<string>;
|
157
|
+
} | null>;
|
158
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
159
|
+
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">;
|
124
160
|
currentBusiness: import("vue").Ref<{
|
125
161
|
id: string;
|
126
162
|
name: string;
|
127
163
|
} | undefined>;
|
164
|
+
restaurants: import("vue").Ref<{
|
165
|
+
id: string;
|
166
|
+
name: string;
|
167
|
+
managable: boolean;
|
168
|
+
}[]>;
|
128
169
|
currentApp: import("vue").Ref<string>;
|
129
170
|
$state: {
|
130
|
-
namespace: "prod" | "dev";
|
131
|
-
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";
|
132
171
|
businesses: {
|
133
172
|
internal?: boolean | null | undefined;
|
134
173
|
expiredAt?: string | null | undefined;
|
@@ -138,6 +177,7 @@ export declare const useCoreStore: () => {
|
|
138
177
|
clickupId?: string | null | undefined;
|
139
178
|
members?: {
|
140
179
|
pf_user?: {
|
180
|
+
email?: string | null | undefined;
|
141
181
|
birthday?: {
|
142
182
|
toString: () => string;
|
143
183
|
toDateString: () => string;
|
@@ -203,11 +243,10 @@ export declare const useCoreStore: () => {
|
|
203
243
|
} | null | undefined;
|
204
244
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
205
245
|
addresses?: {
|
206
|
-
name: string;
|
207
246
|
address: string;
|
247
|
+
name: string;
|
208
248
|
coordinates: number[];
|
209
249
|
}[] | null | undefined;
|
210
|
-
email?: string | null | undefined;
|
211
250
|
photoURL?: string | null | undefined;
|
212
251
|
displayName?: string | null | undefined;
|
213
252
|
phoneNumber?: string | null | undefined;
|
@@ -217,45 +256,129 @@ export declare const useCoreStore: () => {
|
|
217
256
|
} | null | undefined;
|
218
257
|
_id: string;
|
219
258
|
} | null | undefined;
|
220
|
-
userId: string;
|
221
259
|
role: "ADMIN";
|
260
|
+
userId: string;
|
222
261
|
}[] | null | undefined;
|
223
|
-
_id: string;
|
224
|
-
name: string;
|
225
262
|
code: string;
|
263
|
+
name: string;
|
264
|
+
_id: string;
|
226
265
|
isReseller: boolean;
|
227
266
|
} | null | undefined;
|
228
267
|
thumbnail?: string | null | undefined;
|
229
268
|
billingInfos?: {
|
230
269
|
_id?: string | undefined;
|
231
|
-
name: string;
|
232
|
-
email: string;
|
233
270
|
address: {
|
234
271
|
coordinates?: number[] | undefined;
|
235
272
|
line2?: string | undefined;
|
273
|
+
country: string;
|
236
274
|
line1: string;
|
237
275
|
state: string;
|
238
276
|
city: string;
|
239
277
|
postcode: string;
|
240
|
-
country: string;
|
241
278
|
};
|
279
|
+
name: string;
|
280
|
+
email: string;
|
242
281
|
companyName: string;
|
243
282
|
contact: string;
|
244
283
|
}[] | null | undefined;
|
284
|
+
name: string;
|
245
285
|
_id: string;
|
246
286
|
ownerId: string;
|
247
|
-
name: string;
|
248
287
|
restaurantQuota: number;
|
249
288
|
warehouseQuota: number;
|
250
289
|
menuVersion: "v2" | "v3" | "v4";
|
251
290
|
}[];
|
291
|
+
sessionUser: {
|
292
|
+
id: string;
|
293
|
+
email?: string | null | undefined;
|
294
|
+
photoURL?: string | null | undefined;
|
295
|
+
displayName?: string | null | undefined;
|
296
|
+
phoneNumber?: string | null | undefined;
|
297
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
298
|
+
setAdminPermisssions: (permissions: {
|
299
|
+
fields?: string[] | undefined;
|
300
|
+
conditions?: any;
|
301
|
+
inverted?: boolean | undefined;
|
302
|
+
reason?: string | undefined;
|
303
|
+
label: string;
|
304
|
+
actions: string | string[];
|
305
|
+
subject: string | string[];
|
306
|
+
}[]) => void;
|
307
|
+
setPermisssions: (permissions: {
|
308
|
+
fields?: string[] | undefined;
|
309
|
+
conditions?: any;
|
310
|
+
inverted?: boolean | undefined;
|
311
|
+
reason?: string | undefined;
|
312
|
+
label: string;
|
313
|
+
actions: string | string[];
|
314
|
+
subject: string | string[];
|
315
|
+
}[]) => void;
|
316
|
+
readonly permissions: {
|
317
|
+
fields?: string[] | undefined;
|
318
|
+
conditions?: any;
|
319
|
+
inverted?: boolean | undefined;
|
320
|
+
reason?: string | undefined;
|
321
|
+
label: string;
|
322
|
+
actions: string | string[];
|
323
|
+
subject: string | string[];
|
324
|
+
}[];
|
325
|
+
getIdToken: () => Promise<string>;
|
326
|
+
} | null;
|
327
|
+
namespace: "dev" | "prod";
|
328
|
+
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";
|
252
329
|
currentBusiness: {
|
253
330
|
id: string;
|
254
331
|
name: string;
|
255
332
|
} | undefined;
|
333
|
+
restaurants: {
|
334
|
+
id: string;
|
335
|
+
name: string;
|
336
|
+
managable: boolean;
|
337
|
+
}[];
|
256
338
|
currentApp: string;
|
257
339
|
} & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
|
258
|
-
|
340
|
+
sessionUser: import("vue").Ref<{
|
341
|
+
id: string;
|
342
|
+
email?: string | null | undefined;
|
343
|
+
photoURL?: string | null | undefined;
|
344
|
+
displayName?: string | null | undefined;
|
345
|
+
phoneNumber?: string | null | undefined;
|
346
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
347
|
+
setAdminPermisssions: (permissions: {
|
348
|
+
fields?: string[] | undefined;
|
349
|
+
conditions?: any;
|
350
|
+
inverted?: boolean | undefined;
|
351
|
+
reason?: string | undefined;
|
352
|
+
label: string;
|
353
|
+
actions: string | string[];
|
354
|
+
subject: string | string[];
|
355
|
+
}[]) => void;
|
356
|
+
setPermisssions: (permissions: {
|
357
|
+
fields?: string[] | undefined;
|
358
|
+
conditions?: any;
|
359
|
+
inverted?: boolean | undefined;
|
360
|
+
reason?: string | undefined;
|
361
|
+
label: string;
|
362
|
+
actions: string | string[];
|
363
|
+
subject: string | string[];
|
364
|
+
}[]) => void;
|
365
|
+
readonly permissions: {
|
366
|
+
fields?: string[] | undefined;
|
367
|
+
conditions?: any;
|
368
|
+
inverted?: boolean | undefined;
|
369
|
+
reason?: string | undefined;
|
370
|
+
label: string;
|
371
|
+
actions: string | string[];
|
372
|
+
subject: string | string[];
|
373
|
+
}[];
|
374
|
+
getIdToken: () => Promise<string>;
|
375
|
+
} | null>;
|
376
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
377
|
+
signIn: () => Promise<void>;
|
378
|
+
signOut: () => void;
|
379
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
380
|
+
fetchUserPermissions: () => Promise<void>;
|
381
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
259
382
|
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">;
|
260
383
|
businesses: import("vue").Ref<{
|
261
384
|
internal?: boolean | null | undefined;
|
@@ -266,6 +389,7 @@ export declare const useCoreStore: () => {
|
|
266
389
|
clickupId?: string | null | undefined;
|
267
390
|
members?: {
|
268
391
|
pf_user?: {
|
392
|
+
email?: string | null | undefined;
|
269
393
|
birthday?: {
|
270
394
|
toString: () => string;
|
271
395
|
toDateString: () => string;
|
@@ -331,11 +455,10 @@ export declare const useCoreStore: () => {
|
|
331
455
|
} | null | undefined;
|
332
456
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
333
457
|
addresses?: {
|
334
|
-
name: string;
|
335
458
|
address: string;
|
459
|
+
name: string;
|
336
460
|
coordinates: number[];
|
337
461
|
}[] | null | undefined;
|
338
|
-
email?: string | null | undefined;
|
339
462
|
photoURL?: string | null | undefined;
|
340
463
|
displayName?: string | null | undefined;
|
341
464
|
phoneNumber?: string | null | undefined;
|
@@ -345,49 +468,53 @@ export declare const useCoreStore: () => {
|
|
345
468
|
} | null | undefined;
|
346
469
|
_id: string;
|
347
470
|
} | null | undefined;
|
348
|
-
userId: string;
|
349
471
|
role: "ADMIN";
|
472
|
+
userId: string;
|
350
473
|
}[] | null | undefined;
|
351
|
-
_id: string;
|
352
|
-
name: string;
|
353
474
|
code: string;
|
475
|
+
name: string;
|
476
|
+
_id: string;
|
354
477
|
isReseller: boolean;
|
355
478
|
} | null | undefined;
|
356
479
|
thumbnail?: string | null | undefined;
|
357
480
|
billingInfos?: {
|
358
481
|
_id?: string | undefined;
|
359
|
-
name: string;
|
360
|
-
email: string;
|
361
482
|
address: {
|
362
483
|
coordinates?: number[] | undefined;
|
363
484
|
line2?: string | undefined;
|
485
|
+
country: string;
|
364
486
|
line1: string;
|
365
487
|
state: string;
|
366
488
|
city: string;
|
367
489
|
postcode: string;
|
368
|
-
country: string;
|
369
490
|
};
|
491
|
+
name: string;
|
492
|
+
email: string;
|
370
493
|
companyName: string;
|
371
494
|
contact: string;
|
372
495
|
}[] | null | undefined;
|
496
|
+
name: string;
|
373
497
|
_id: string;
|
374
498
|
ownerId: string;
|
375
|
-
name: string;
|
376
499
|
restaurantQuota: number;
|
377
500
|
warehouseQuota: number;
|
378
501
|
menuVersion: "v2" | "v3" | "v4";
|
379
502
|
}[]>;
|
380
503
|
currentBusiness: import("vue").Ref<import("./store").FmpBusiness | undefined>;
|
504
|
+
restaurants: import("vue").Ref<{
|
505
|
+
id: string;
|
506
|
+
name: string;
|
507
|
+
managable: boolean;
|
508
|
+
}[]>;
|
509
|
+
readRestaurants: () => Promise<void>;
|
381
510
|
currentApp: import("vue").Ref<string>;
|
382
|
-
setNamespace: (ns: "
|
383
|
-
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") => void
|
384
|
-
|
385
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void
|
511
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
512
|
+
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>;
|
513
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
514
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
386
515
|
setCurrentApp: (app: string) => void;
|
387
|
-
}, "namespace" | "currentCountry" | "
|
516
|
+
}, "businesses" | "sessionUser" | "namespace" | "currentCountry" | "currentBusiness" | "restaurants" | "currentApp">>>;
|
388
517
|
$patch(partialState: import("pinia")._DeepPartial<{
|
389
|
-
namespace: "prod" | "dev";
|
390
|
-
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";
|
391
518
|
businesses: {
|
392
519
|
internal?: boolean | null | undefined;
|
393
520
|
expiredAt?: string | null | undefined;
|
@@ -397,6 +524,7 @@ export declare const useCoreStore: () => {
|
|
397
524
|
clickupId?: string | null | undefined;
|
398
525
|
members?: {
|
399
526
|
pf_user?: {
|
527
|
+
email?: string | null | undefined;
|
400
528
|
birthday?: {
|
401
529
|
toString: () => string;
|
402
530
|
toDateString: () => string;
|
@@ -462,11 +590,10 @@ export declare const useCoreStore: () => {
|
|
462
590
|
} | null | undefined;
|
463
591
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
464
592
|
addresses?: {
|
465
|
-
name: string;
|
466
593
|
address: string;
|
594
|
+
name: string;
|
467
595
|
coordinates: number[];
|
468
596
|
}[] | null | undefined;
|
469
|
-
email?: string | null | undefined;
|
470
597
|
photoURL?: string | null | undefined;
|
471
598
|
displayName?: string | null | undefined;
|
472
599
|
phoneNumber?: string | null | undefined;
|
@@ -476,47 +603,88 @@ export declare const useCoreStore: () => {
|
|
476
603
|
} | null | undefined;
|
477
604
|
_id: string;
|
478
605
|
} | null | undefined;
|
479
|
-
userId: string;
|
480
606
|
role: "ADMIN";
|
607
|
+
userId: string;
|
481
608
|
}[] | null | undefined;
|
482
|
-
_id: string;
|
483
|
-
name: string;
|
484
609
|
code: string;
|
610
|
+
name: string;
|
611
|
+
_id: string;
|
485
612
|
isReseller: boolean;
|
486
613
|
} | null | undefined;
|
487
614
|
thumbnail?: string | null | undefined;
|
488
615
|
billingInfos?: {
|
489
616
|
_id?: string | undefined;
|
490
|
-
name: string;
|
491
|
-
email: string;
|
492
617
|
address: {
|
493
618
|
coordinates?: number[] | undefined;
|
494
619
|
line2?: string | undefined;
|
620
|
+
country: string;
|
495
621
|
line1: string;
|
496
622
|
state: string;
|
497
623
|
city: string;
|
498
624
|
postcode: string;
|
499
|
-
country: string;
|
500
625
|
};
|
626
|
+
name: string;
|
627
|
+
email: string;
|
501
628
|
companyName: string;
|
502
629
|
contact: string;
|
503
630
|
}[] | null | undefined;
|
631
|
+
name: string;
|
504
632
|
_id: string;
|
505
633
|
ownerId: string;
|
506
|
-
name: string;
|
507
634
|
restaurantQuota: number;
|
508
635
|
warehouseQuota: number;
|
509
636
|
menuVersion: "v2" | "v3" | "v4";
|
510
637
|
}[];
|
638
|
+
sessionUser: {
|
639
|
+
id: string;
|
640
|
+
email?: string | null | undefined;
|
641
|
+
photoURL?: string | null | undefined;
|
642
|
+
displayName?: string | null | undefined;
|
643
|
+
phoneNumber?: string | null | undefined;
|
644
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
645
|
+
setAdminPermisssions: (permissions: {
|
646
|
+
fields?: string[] | undefined;
|
647
|
+
conditions?: any;
|
648
|
+
inverted?: boolean | undefined;
|
649
|
+
reason?: string | undefined;
|
650
|
+
label: string;
|
651
|
+
actions: string | string[];
|
652
|
+
subject: string | string[];
|
653
|
+
}[]) => void;
|
654
|
+
setPermisssions: (permissions: {
|
655
|
+
fields?: string[] | undefined;
|
656
|
+
conditions?: any;
|
657
|
+
inverted?: boolean | undefined;
|
658
|
+
reason?: string | undefined;
|
659
|
+
label: string;
|
660
|
+
actions: string | string[];
|
661
|
+
subject: string | string[];
|
662
|
+
}[]) => void;
|
663
|
+
readonly permissions: {
|
664
|
+
fields?: string[] | undefined;
|
665
|
+
conditions?: any;
|
666
|
+
inverted?: boolean | undefined;
|
667
|
+
reason?: string | undefined;
|
668
|
+
label: string;
|
669
|
+
actions: string | string[];
|
670
|
+
subject: string | string[];
|
671
|
+
}[];
|
672
|
+
getIdToken: () => Promise<string>;
|
673
|
+
} | null;
|
674
|
+
namespace: "dev" | "prod";
|
675
|
+
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";
|
511
676
|
currentBusiness: {
|
512
677
|
id: string;
|
513
678
|
name: string;
|
514
679
|
} | undefined;
|
680
|
+
restaurants: {
|
681
|
+
id: string;
|
682
|
+
name: string;
|
683
|
+
managable: boolean;
|
684
|
+
}[];
|
515
685
|
currentApp: string;
|
516
686
|
}>): void;
|
517
687
|
$patch<F extends (state: {
|
518
|
-
namespace: "prod" | "dev";
|
519
|
-
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";
|
520
688
|
businesses: {
|
521
689
|
internal?: boolean | null | undefined;
|
522
690
|
expiredAt?: string | null | undefined;
|
@@ -526,6 +694,7 @@ export declare const useCoreStore: () => {
|
|
526
694
|
clickupId?: string | null | undefined;
|
527
695
|
members?: {
|
528
696
|
pf_user?: {
|
697
|
+
email?: string | null | undefined;
|
529
698
|
birthday?: {
|
530
699
|
toString: () => string;
|
531
700
|
toDateString: () => string;
|
@@ -591,11 +760,10 @@ export declare const useCoreStore: () => {
|
|
591
760
|
} | null | undefined;
|
592
761
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
593
762
|
addresses?: {
|
594
|
-
name: string;
|
595
763
|
address: string;
|
764
|
+
name: string;
|
596
765
|
coordinates: number[];
|
597
766
|
}[] | null | undefined;
|
598
|
-
email?: string | null | undefined;
|
599
767
|
photoURL?: string | null | undefined;
|
600
768
|
displayName?: string | null | undefined;
|
601
769
|
phoneNumber?: string | null | undefined;
|
@@ -605,47 +773,131 @@ export declare const useCoreStore: () => {
|
|
605
773
|
} | null | undefined;
|
606
774
|
_id: string;
|
607
775
|
} | null | undefined;
|
608
|
-
userId: string;
|
609
776
|
role: "ADMIN";
|
777
|
+
userId: string;
|
610
778
|
}[] | null | undefined;
|
611
|
-
_id: string;
|
612
|
-
name: string;
|
613
779
|
code: string;
|
780
|
+
name: string;
|
781
|
+
_id: string;
|
614
782
|
isReseller: boolean;
|
615
783
|
} | null | undefined;
|
616
784
|
thumbnail?: string | null | undefined;
|
617
785
|
billingInfos?: {
|
618
786
|
_id?: string | undefined;
|
619
|
-
name: string;
|
620
|
-
email: string;
|
621
787
|
address: {
|
622
788
|
coordinates?: number[] | undefined;
|
623
789
|
line2?: string | undefined;
|
790
|
+
country: string;
|
624
791
|
line1: string;
|
625
792
|
state: string;
|
626
793
|
city: string;
|
627
794
|
postcode: string;
|
628
|
-
country: string;
|
629
795
|
};
|
796
|
+
name: string;
|
797
|
+
email: string;
|
630
798
|
companyName: string;
|
631
799
|
contact: string;
|
632
800
|
}[] | null | undefined;
|
801
|
+
name: string;
|
633
802
|
_id: string;
|
634
803
|
ownerId: string;
|
635
|
-
name: string;
|
636
804
|
restaurantQuota: number;
|
637
805
|
warehouseQuota: number;
|
638
806
|
menuVersion: "v2" | "v3" | "v4";
|
639
807
|
}[];
|
808
|
+
sessionUser: {
|
809
|
+
id: string;
|
810
|
+
email?: string | null | undefined;
|
811
|
+
photoURL?: string | null | undefined;
|
812
|
+
displayName?: string | null | undefined;
|
813
|
+
phoneNumber?: string | null | undefined;
|
814
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
815
|
+
setAdminPermisssions: (permissions: {
|
816
|
+
fields?: string[] | undefined;
|
817
|
+
conditions?: any;
|
818
|
+
inverted?: boolean | undefined;
|
819
|
+
reason?: string | undefined;
|
820
|
+
label: string;
|
821
|
+
actions: string | string[];
|
822
|
+
subject: string | string[];
|
823
|
+
}[]) => void;
|
824
|
+
setPermisssions: (permissions: {
|
825
|
+
fields?: string[] | undefined;
|
826
|
+
conditions?: any;
|
827
|
+
inverted?: boolean | undefined;
|
828
|
+
reason?: string | undefined;
|
829
|
+
label: string;
|
830
|
+
actions: string | string[];
|
831
|
+
subject: string | string[];
|
832
|
+
}[]) => void;
|
833
|
+
readonly permissions: {
|
834
|
+
fields?: string[] | undefined;
|
835
|
+
conditions?: any;
|
836
|
+
inverted?: boolean | undefined;
|
837
|
+
reason?: string | undefined;
|
838
|
+
label: string;
|
839
|
+
actions: string | string[];
|
840
|
+
subject: string | string[];
|
841
|
+
}[];
|
842
|
+
getIdToken: () => Promise<string>;
|
843
|
+
} | null;
|
844
|
+
namespace: "dev" | "prod";
|
845
|
+
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";
|
640
846
|
currentBusiness: {
|
641
847
|
id: string;
|
642
848
|
name: string;
|
643
849
|
} | undefined;
|
850
|
+
restaurants: {
|
851
|
+
id: string;
|
852
|
+
name: string;
|
853
|
+
managable: boolean;
|
854
|
+
}[];
|
644
855
|
currentApp: string;
|
645
856
|
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
646
857
|
$reset(): void;
|
647
858
|
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
648
|
-
|
859
|
+
sessionUser: import("vue").Ref<{
|
860
|
+
id: string;
|
861
|
+
email?: string | null | undefined;
|
862
|
+
photoURL?: string | null | undefined;
|
863
|
+
displayName?: string | null | undefined;
|
864
|
+
phoneNumber?: string | null | undefined;
|
865
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
866
|
+
setAdminPermisssions: (permissions: {
|
867
|
+
fields?: string[] | undefined;
|
868
|
+
conditions?: any;
|
869
|
+
inverted?: boolean | undefined;
|
870
|
+
reason?: string | undefined;
|
871
|
+
label: string;
|
872
|
+
actions: string | string[];
|
873
|
+
subject: string | string[];
|
874
|
+
}[]) => void;
|
875
|
+
setPermisssions: (permissions: {
|
876
|
+
fields?: string[] | undefined;
|
877
|
+
conditions?: any;
|
878
|
+
inverted?: boolean | undefined;
|
879
|
+
reason?: string | undefined;
|
880
|
+
label: string;
|
881
|
+
actions: string | string[];
|
882
|
+
subject: string | string[];
|
883
|
+
}[]) => void;
|
884
|
+
readonly permissions: {
|
885
|
+
fields?: string[] | undefined;
|
886
|
+
conditions?: any;
|
887
|
+
inverted?: boolean | undefined;
|
888
|
+
reason?: string | undefined;
|
889
|
+
label: string;
|
890
|
+
actions: string | string[];
|
891
|
+
subject: string | string[];
|
892
|
+
}[];
|
893
|
+
getIdToken: () => Promise<string>;
|
894
|
+
} | null>;
|
895
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
896
|
+
signIn: () => Promise<void>;
|
897
|
+
signOut: () => void;
|
898
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
899
|
+
fetchUserPermissions: () => Promise<void>;
|
900
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
649
901
|
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">;
|
650
902
|
businesses: import("vue").Ref<{
|
651
903
|
internal?: boolean | null | undefined;
|
@@ -656,6 +908,7 @@ export declare const useCoreStore: () => {
|
|
656
908
|
clickupId?: string | null | undefined;
|
657
909
|
members?: {
|
658
910
|
pf_user?: {
|
911
|
+
email?: string | null | undefined;
|
659
912
|
birthday?: {
|
660
913
|
toString: () => string;
|
661
914
|
toDateString: () => string;
|
@@ -721,11 +974,10 @@ export declare const useCoreStore: () => {
|
|
721
974
|
} | null | undefined;
|
722
975
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
723
976
|
addresses?: {
|
724
|
-
name: string;
|
725
977
|
address: string;
|
978
|
+
name: string;
|
726
979
|
coordinates: number[];
|
727
980
|
}[] | null | undefined;
|
728
|
-
email?: string | null | undefined;
|
729
981
|
photoURL?: string | null | undefined;
|
730
982
|
displayName?: string | null | undefined;
|
731
983
|
phoneNumber?: string | null | undefined;
|
@@ -735,50 +987,97 @@ export declare const useCoreStore: () => {
|
|
735
987
|
} | null | undefined;
|
736
988
|
_id: string;
|
737
989
|
} | null | undefined;
|
738
|
-
userId: string;
|
739
990
|
role: "ADMIN";
|
991
|
+
userId: string;
|
740
992
|
}[] | null | undefined;
|
741
|
-
_id: string;
|
742
|
-
name: string;
|
743
993
|
code: string;
|
994
|
+
name: string;
|
995
|
+
_id: string;
|
744
996
|
isReseller: boolean;
|
745
997
|
} | null | undefined;
|
746
998
|
thumbnail?: string | null | undefined;
|
747
999
|
billingInfos?: {
|
748
1000
|
_id?: string | undefined;
|
749
|
-
name: string;
|
750
|
-
email: string;
|
751
1001
|
address: {
|
752
1002
|
coordinates?: number[] | undefined;
|
753
1003
|
line2?: string | undefined;
|
1004
|
+
country: string;
|
754
1005
|
line1: string;
|
755
1006
|
state: string;
|
756
1007
|
city: string;
|
757
1008
|
postcode: string;
|
758
|
-
country: string;
|
759
1009
|
};
|
1010
|
+
name: string;
|
1011
|
+
email: string;
|
760
1012
|
companyName: string;
|
761
1013
|
contact: string;
|
762
1014
|
}[] | null | undefined;
|
1015
|
+
name: string;
|
763
1016
|
_id: string;
|
764
1017
|
ownerId: string;
|
765
|
-
name: string;
|
766
1018
|
restaurantQuota: number;
|
767
1019
|
warehouseQuota: number;
|
768
1020
|
menuVersion: "v2" | "v3" | "v4";
|
769
1021
|
}[]>;
|
770
1022
|
currentBusiness: import("vue").Ref<import("./store").FmpBusiness | undefined>;
|
1023
|
+
restaurants: import("vue").Ref<{
|
1024
|
+
id: string;
|
1025
|
+
name: string;
|
1026
|
+
managable: boolean;
|
1027
|
+
}[]>;
|
1028
|
+
readRestaurants: () => Promise<void>;
|
771
1029
|
currentApp: import("vue").Ref<string>;
|
772
|
-
setNamespace: (ns: "
|
773
|
-
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") => void
|
774
|
-
|
775
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void
|
1030
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
1031
|
+
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>;
|
1032
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
1033
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
776
1034
|
setCurrentApp: (app: string) => void;
|
777
|
-
}, "namespace" | "currentCountry" | "
|
1035
|
+
}, "businesses" | "sessionUser" | "namespace" | "currentCountry" | "currentBusiness" | "restaurants" | "currentApp">>>, options?: ({
|
778
1036
|
detached?: boolean | undefined;
|
779
1037
|
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
780
1038
|
$onAction(callback: import("pinia").StoreOnActionListener<"portal-core", import("pinia")._UnwrapAll<Pick<{
|
781
|
-
|
1039
|
+
sessionUser: import("vue").Ref<{
|
1040
|
+
id: string;
|
1041
|
+
email?: string | null | undefined;
|
1042
|
+
photoURL?: string | null | undefined;
|
1043
|
+
displayName?: string | null | undefined;
|
1044
|
+
phoneNumber?: string | null | undefined;
|
1045
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1046
|
+
setAdminPermisssions: (permissions: {
|
1047
|
+
fields?: string[] | undefined;
|
1048
|
+
conditions?: any;
|
1049
|
+
inverted?: boolean | undefined;
|
1050
|
+
reason?: string | undefined;
|
1051
|
+
label: string;
|
1052
|
+
actions: string | string[];
|
1053
|
+
subject: string | string[];
|
1054
|
+
}[]) => void;
|
1055
|
+
setPermisssions: (permissions: {
|
1056
|
+
fields?: string[] | undefined;
|
1057
|
+
conditions?: any;
|
1058
|
+
inverted?: boolean | undefined;
|
1059
|
+
reason?: string | undefined;
|
1060
|
+
label: string;
|
1061
|
+
actions: string | string[];
|
1062
|
+
subject: string | string[];
|
1063
|
+
}[]) => void;
|
1064
|
+
readonly permissions: {
|
1065
|
+
fields?: string[] | undefined;
|
1066
|
+
conditions?: any;
|
1067
|
+
inverted?: boolean | undefined;
|
1068
|
+
reason?: string | undefined;
|
1069
|
+
label: string;
|
1070
|
+
actions: string | string[];
|
1071
|
+
subject: string | string[];
|
1072
|
+
}[];
|
1073
|
+
getIdToken: () => Promise<string>;
|
1074
|
+
} | null>;
|
1075
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
1076
|
+
signIn: () => Promise<void>;
|
1077
|
+
signOut: () => void;
|
1078
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
1079
|
+
fetchUserPermissions: () => Promise<void>;
|
1080
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
782
1081
|
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">;
|
783
1082
|
businesses: import("vue").Ref<{
|
784
1083
|
internal?: boolean | null | undefined;
|
@@ -789,6 +1088,7 @@ export declare const useCoreStore: () => {
|
|
789
1088
|
clickupId?: string | null | undefined;
|
790
1089
|
members?: {
|
791
1090
|
pf_user?: {
|
1091
|
+
email?: string | null | undefined;
|
792
1092
|
birthday?: {
|
793
1093
|
toString: () => string;
|
794
1094
|
toDateString: () => string;
|
@@ -854,11 +1154,10 @@ export declare const useCoreStore: () => {
|
|
854
1154
|
} | null | undefined;
|
855
1155
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
856
1156
|
addresses?: {
|
857
|
-
name: string;
|
858
1157
|
address: string;
|
1158
|
+
name: string;
|
859
1159
|
coordinates: number[];
|
860
1160
|
}[] | null | undefined;
|
861
|
-
email?: string | null | undefined;
|
862
1161
|
photoURL?: string | null | undefined;
|
863
1162
|
displayName?: string | null | undefined;
|
864
1163
|
phoneNumber?: string | null | undefined;
|
@@ -868,47 +1167,94 @@ export declare const useCoreStore: () => {
|
|
868
1167
|
} | null | undefined;
|
869
1168
|
_id: string;
|
870
1169
|
} | null | undefined;
|
871
|
-
userId: string;
|
872
1170
|
role: "ADMIN";
|
1171
|
+
userId: string;
|
873
1172
|
}[] | null | undefined;
|
874
|
-
_id: string;
|
875
|
-
name: string;
|
876
1173
|
code: string;
|
1174
|
+
name: string;
|
1175
|
+
_id: string;
|
877
1176
|
isReseller: boolean;
|
878
1177
|
} | null | undefined;
|
879
1178
|
thumbnail?: string | null | undefined;
|
880
1179
|
billingInfos?: {
|
881
1180
|
_id?: string | undefined;
|
882
|
-
name: string;
|
883
|
-
email: string;
|
884
1181
|
address: {
|
885
1182
|
coordinates?: number[] | undefined;
|
886
1183
|
line2?: string | undefined;
|
1184
|
+
country: string;
|
887
1185
|
line1: string;
|
888
1186
|
state: string;
|
889
1187
|
city: string;
|
890
1188
|
postcode: string;
|
891
|
-
country: string;
|
892
1189
|
};
|
1190
|
+
name: string;
|
1191
|
+
email: string;
|
893
1192
|
companyName: string;
|
894
1193
|
contact: string;
|
895
1194
|
}[] | null | undefined;
|
1195
|
+
name: string;
|
896
1196
|
_id: string;
|
897
1197
|
ownerId: string;
|
898
|
-
name: string;
|
899
1198
|
restaurantQuota: number;
|
900
1199
|
warehouseQuota: number;
|
901
1200
|
menuVersion: "v2" | "v3" | "v4";
|
902
1201
|
}[]>;
|
903
1202
|
currentBusiness: import("vue").Ref<import("./store").FmpBusiness | undefined>;
|
1203
|
+
restaurants: import("vue").Ref<{
|
1204
|
+
id: string;
|
1205
|
+
name: string;
|
1206
|
+
managable: boolean;
|
1207
|
+
}[]>;
|
1208
|
+
readRestaurants: () => Promise<void>;
|
904
1209
|
currentApp: import("vue").Ref<string>;
|
905
|
-
setNamespace: (ns: "
|
906
|
-
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") => void
|
907
|
-
|
908
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void
|
1210
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
1211
|
+
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>;
|
1212
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
1213
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
909
1214
|
setCurrentApp: (app: string) => void;
|
910
|
-
}, "namespace" | "currentCountry" | "
|
911
|
-
|
1215
|
+
}, "businesses" | "sessionUser" | "namespace" | "currentCountry" | "currentBusiness" | "restaurants" | "currentApp">>, Pick<{
|
1216
|
+
sessionUser: import("vue").Ref<{
|
1217
|
+
id: string;
|
1218
|
+
email?: string | null | undefined;
|
1219
|
+
photoURL?: string | null | undefined;
|
1220
|
+
displayName?: string | null | undefined;
|
1221
|
+
phoneNumber?: string | null | undefined;
|
1222
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1223
|
+
setAdminPermisssions: (permissions: {
|
1224
|
+
fields?: string[] | undefined;
|
1225
|
+
conditions?: any;
|
1226
|
+
inverted?: boolean | undefined;
|
1227
|
+
reason?: string | undefined;
|
1228
|
+
label: string;
|
1229
|
+
actions: string | string[];
|
1230
|
+
subject: string | string[];
|
1231
|
+
}[]) => void;
|
1232
|
+
setPermisssions: (permissions: {
|
1233
|
+
fields?: string[] | undefined;
|
1234
|
+
conditions?: any;
|
1235
|
+
inverted?: boolean | undefined;
|
1236
|
+
reason?: string | undefined;
|
1237
|
+
label: string;
|
1238
|
+
actions: string | string[];
|
1239
|
+
subject: string | string[];
|
1240
|
+
}[]) => void;
|
1241
|
+
readonly permissions: {
|
1242
|
+
fields?: string[] | undefined;
|
1243
|
+
conditions?: any;
|
1244
|
+
inverted?: boolean | undefined;
|
1245
|
+
reason?: string | undefined;
|
1246
|
+
label: string;
|
1247
|
+
actions: string | string[];
|
1248
|
+
subject: string | string[];
|
1249
|
+
}[];
|
1250
|
+
getIdToken: () => Promise<string>;
|
1251
|
+
} | null>;
|
1252
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
1253
|
+
signIn: () => Promise<void>;
|
1254
|
+
signOut: () => void;
|
1255
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
1256
|
+
fetchUserPermissions: () => Promise<void>;
|
1257
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
912
1258
|
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">;
|
913
1259
|
businesses: import("vue").Ref<{
|
914
1260
|
internal?: boolean | null | undefined;
|
@@ -919,6 +1265,7 @@ export declare const useCoreStore: () => {
|
|
919
1265
|
clickupId?: string | null | undefined;
|
920
1266
|
members?: {
|
921
1267
|
pf_user?: {
|
1268
|
+
email?: string | null | undefined;
|
922
1269
|
birthday?: {
|
923
1270
|
toString: () => string;
|
924
1271
|
toDateString: () => string;
|
@@ -984,11 +1331,10 @@ export declare const useCoreStore: () => {
|
|
984
1331
|
} | null | undefined;
|
985
1332
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
986
1333
|
addresses?: {
|
987
|
-
name: string;
|
988
1334
|
address: string;
|
1335
|
+
name: string;
|
989
1336
|
coordinates: number[];
|
990
1337
|
}[] | null | undefined;
|
991
|
-
email?: string | null | undefined;
|
992
1338
|
photoURL?: string | null | undefined;
|
993
1339
|
displayName?: string | null | undefined;
|
994
1340
|
phoneNumber?: string | null | undefined;
|
@@ -998,47 +1344,94 @@ export declare const useCoreStore: () => {
|
|
998
1344
|
} | null | undefined;
|
999
1345
|
_id: string;
|
1000
1346
|
} | null | undefined;
|
1001
|
-
userId: string;
|
1002
1347
|
role: "ADMIN";
|
1348
|
+
userId: string;
|
1003
1349
|
}[] | null | undefined;
|
1004
|
-
_id: string;
|
1005
|
-
name: string;
|
1006
1350
|
code: string;
|
1351
|
+
name: string;
|
1352
|
+
_id: string;
|
1007
1353
|
isReseller: boolean;
|
1008
1354
|
} | null | undefined;
|
1009
1355
|
thumbnail?: string | null | undefined;
|
1010
1356
|
billingInfos?: {
|
1011
1357
|
_id?: string | undefined;
|
1012
|
-
name: string;
|
1013
|
-
email: string;
|
1014
1358
|
address: {
|
1015
1359
|
coordinates?: number[] | undefined;
|
1016
1360
|
line2?: string | undefined;
|
1361
|
+
country: string;
|
1017
1362
|
line1: string;
|
1018
1363
|
state: string;
|
1019
1364
|
city: string;
|
1020
1365
|
postcode: string;
|
1021
|
-
country: string;
|
1022
1366
|
};
|
1367
|
+
name: string;
|
1368
|
+
email: string;
|
1023
1369
|
companyName: string;
|
1024
1370
|
contact: string;
|
1025
1371
|
}[] | null | undefined;
|
1372
|
+
name: string;
|
1026
1373
|
_id: string;
|
1027
1374
|
ownerId: string;
|
1028
|
-
name: string;
|
1029
1375
|
restaurantQuota: number;
|
1030
1376
|
warehouseQuota: number;
|
1031
1377
|
menuVersion: "v2" | "v3" | "v4";
|
1032
1378
|
}[]>;
|
1033
1379
|
currentBusiness: import("vue").Ref<import("./store").FmpBusiness | undefined>;
|
1380
|
+
restaurants: import("vue").Ref<{
|
1381
|
+
id: string;
|
1382
|
+
name: string;
|
1383
|
+
managable: boolean;
|
1384
|
+
}[]>;
|
1385
|
+
readRestaurants: () => Promise<void>;
|
1034
1386
|
currentApp: import("vue").Ref<string>;
|
1035
|
-
setNamespace: (ns: "
|
1036
|
-
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") => void
|
1037
|
-
|
1038
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void
|
1387
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
1388
|
+
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>;
|
1389
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
1390
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
1039
1391
|
setCurrentApp: (app: string) => void;
|
1040
1392
|
}, never>, Pick<{
|
1041
|
-
|
1393
|
+
sessionUser: import("vue").Ref<{
|
1394
|
+
id: string;
|
1395
|
+
email?: string | null | undefined;
|
1396
|
+
photoURL?: string | null | undefined;
|
1397
|
+
displayName?: string | null | undefined;
|
1398
|
+
phoneNumber?: string | null | undefined;
|
1399
|
+
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1400
|
+
setAdminPermisssions: (permissions: {
|
1401
|
+
fields?: string[] | undefined;
|
1402
|
+
conditions?: any;
|
1403
|
+
inverted?: boolean | undefined;
|
1404
|
+
reason?: string | undefined;
|
1405
|
+
label: string;
|
1406
|
+
actions: string | string[];
|
1407
|
+
subject: string | string[];
|
1408
|
+
}[]) => void;
|
1409
|
+
setPermisssions: (permissions: {
|
1410
|
+
fields?: string[] | undefined;
|
1411
|
+
conditions?: any;
|
1412
|
+
inverted?: boolean | undefined;
|
1413
|
+
reason?: string | undefined;
|
1414
|
+
label: string;
|
1415
|
+
actions: string | string[];
|
1416
|
+
subject: string | string[];
|
1417
|
+
}[]) => void;
|
1418
|
+
readonly permissions: {
|
1419
|
+
fields?: string[] | undefined;
|
1420
|
+
conditions?: any;
|
1421
|
+
inverted?: boolean | undefined;
|
1422
|
+
reason?: string | undefined;
|
1423
|
+
label: string;
|
1424
|
+
actions: string | string[];
|
1425
|
+
subject: string | string[];
|
1426
|
+
}[];
|
1427
|
+
getIdToken: () => Promise<string>;
|
1428
|
+
} | null>;
|
1429
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
1430
|
+
signIn: () => Promise<void>;
|
1431
|
+
signOut: () => void;
|
1432
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
1433
|
+
fetchUserPermissions: () => Promise<void>;
|
1434
|
+
namespace: import("vue").Ref<"dev" | "prod">;
|
1042
1435
|
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">;
|
1043
1436
|
businesses: import("vue").Ref<{
|
1044
1437
|
internal?: boolean | null | undefined;
|
@@ -1049,6 +1442,7 @@ export declare const useCoreStore: () => {
|
|
1049
1442
|
clickupId?: string | null | undefined;
|
1050
1443
|
members?: {
|
1051
1444
|
pf_user?: {
|
1445
|
+
email?: string | null | undefined;
|
1052
1446
|
birthday?: {
|
1053
1447
|
toString: () => string;
|
1054
1448
|
toDateString: () => string;
|
@@ -1114,11 +1508,10 @@ export declare const useCoreStore: () => {
|
|
1114
1508
|
} | null | undefined;
|
1115
1509
|
gender?: "MALE" | "FEMALE" | null | undefined;
|
1116
1510
|
addresses?: {
|
1117
|
-
name: string;
|
1118
1511
|
address: string;
|
1512
|
+
name: string;
|
1119
1513
|
coordinates: number[];
|
1120
1514
|
}[] | null | undefined;
|
1121
|
-
email?: string | null | undefined;
|
1122
1515
|
photoURL?: string | null | undefined;
|
1123
1516
|
displayName?: string | null | undefined;
|
1124
1517
|
phoneNumber?: string | null | undefined;
|
@@ -1128,188 +1521,66 @@ export declare const useCoreStore: () => {
|
|
1128
1521
|
} | null | undefined;
|
1129
1522
|
_id: string;
|
1130
1523
|
} | null | undefined;
|
1131
|
-
userId: string;
|
1132
1524
|
role: "ADMIN";
|
1525
|
+
userId: string;
|
1133
1526
|
}[] | null | undefined;
|
1134
|
-
_id: string;
|
1135
|
-
name: string;
|
1136
1527
|
code: string;
|
1528
|
+
name: string;
|
1529
|
+
_id: string;
|
1137
1530
|
isReseller: boolean;
|
1138
1531
|
} | null | undefined;
|
1139
1532
|
thumbnail?: string | null | undefined;
|
1140
1533
|
billingInfos?: {
|
1141
1534
|
_id?: string | undefined;
|
1142
|
-
name: string;
|
1143
|
-
email: string;
|
1144
1535
|
address: {
|
1145
1536
|
coordinates?: number[] | undefined;
|
1146
1537
|
line2?: string | undefined;
|
1538
|
+
country: string;
|
1147
1539
|
line1: string;
|
1148
1540
|
state: string;
|
1149
1541
|
city: string;
|
1150
1542
|
postcode: string;
|
1151
|
-
country: string;
|
1152
1543
|
};
|
1544
|
+
name: string;
|
1545
|
+
email: string;
|
1153
1546
|
companyName: string;
|
1154
1547
|
contact: string;
|
1155
1548
|
}[] | null | undefined;
|
1549
|
+
name: string;
|
1156
1550
|
_id: string;
|
1157
1551
|
ownerId: string;
|
1158
|
-
name: string;
|
1159
1552
|
restaurantQuota: number;
|
1160
1553
|
warehouseQuota: number;
|
1161
1554
|
menuVersion: "v2" | "v3" | "v4";
|
1162
1555
|
}[]>;
|
1163
1556
|
currentBusiness: import("vue").Ref<import("./store").FmpBusiness | undefined>;
|
1557
|
+
restaurants: import("vue").Ref<{
|
1558
|
+
id: string;
|
1559
|
+
name: string;
|
1560
|
+
managable: boolean;
|
1561
|
+
}[]>;
|
1562
|
+
readRestaurants: () => Promise<void>;
|
1164
1563
|
currentApp: import("vue").Ref<string>;
|
1165
|
-
setNamespace: (ns: "
|
1166
|
-
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") => void
|
1167
|
-
|
1168
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void
|
1564
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
1565
|
+
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>;
|
1566
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
1567
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
1169
1568
|
setCurrentApp: (app: string) => void;
|
1170
|
-
}, "setNamespace" | "changeCountry" | "
|
1569
|
+
}, "setUser" | "signIn" | "signOut" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "readRestaurants" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "setCurrentApp">>, detached?: boolean | undefined): () => void;
|
1171
1570
|
$dispose(): void;
|
1172
1571
|
$id: "portal-core";
|
1173
1572
|
_customProperties: Set<string>;
|
1174
|
-
|
1175
|
-
|
1176
|
-
getBusinesses: () => Promise<void>;
|
1177
|
-
changeBusiness: (business: import("./store").FmpBusiness | undefined) => void;
|
1178
|
-
setCurrentApp: (app: string) => void;
|
1179
|
-
};
|
1180
|
-
export declare const useAuthStore: () => {
|
1181
|
-
currentUser: import("vue").Ref<{
|
1182
|
-
id: string;
|
1183
|
-
email?: string | null | undefined;
|
1184
|
-
photoURL?: string | null | undefined;
|
1185
|
-
displayName?: string | null | undefined;
|
1186
|
-
phoneNumber?: string | null | undefined;
|
1187
|
-
} | null>;
|
1188
|
-
token: import("vue").Ref<string | null>;
|
1189
|
-
$state: {
|
1190
|
-
currentUser: {
|
1191
|
-
id: string;
|
1192
|
-
email?: string | null | undefined;
|
1193
|
-
photoURL?: string | null | undefined;
|
1194
|
-
displayName?: string | null | undefined;
|
1195
|
-
phoneNumber?: string | null | undefined;
|
1196
|
-
} | null;
|
1197
|
-
token: string | null;
|
1198
|
-
} & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
|
1199
|
-
config: (config: {
|
1200
|
-
clientId: string;
|
1201
|
-
customUrl?: string | undefined;
|
1202
|
-
}) => void;
|
1203
|
-
currentUser: import("vue").Ref<{
|
1204
|
-
id: string;
|
1205
|
-
email?: string | null | undefined;
|
1206
|
-
photoURL?: string | null | undefined;
|
1207
|
-
displayName?: string | null | undefined;
|
1208
|
-
phoneNumber?: string | null | undefined;
|
1209
|
-
} | null>;
|
1210
|
-
token: import("vue").Ref<string | null>;
|
1211
|
-
signOut: () => void;
|
1212
|
-
prompt: (root?: HTMLElement | undefined) => void;
|
1213
|
-
onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
|
1214
|
-
}, "currentUser" | "token">>>;
|
1215
|
-
$patch(partialState: import("pinia")._DeepPartial<{
|
1216
|
-
currentUser: {
|
1217
|
-
id: string;
|
1218
|
-
email?: string | null | undefined;
|
1219
|
-
photoURL?: string | null | undefined;
|
1220
|
-
displayName?: string | null | undefined;
|
1221
|
-
phoneNumber?: string | null | undefined;
|
1222
|
-
} | null;
|
1223
|
-
token: string | null;
|
1224
|
-
}>): void;
|
1225
|
-
$patch<F extends (state: {
|
1226
|
-
currentUser: {
|
1227
|
-
id: string;
|
1228
|
-
email?: string | null | undefined;
|
1229
|
-
photoURL?: string | null | undefined;
|
1230
|
-
displayName?: string | null | undefined;
|
1231
|
-
phoneNumber?: string | null | undefined;
|
1232
|
-
} | null;
|
1233
|
-
token: string | null;
|
1234
|
-
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
1235
|
-
$reset(): void;
|
1236
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
1237
|
-
config: (config: {
|
1238
|
-
clientId: string;
|
1239
|
-
customUrl?: string | undefined;
|
1240
|
-
}) => void;
|
1241
|
-
currentUser: import("vue").Ref<{
|
1242
|
-
id: string;
|
1243
|
-
email?: string | null | undefined;
|
1244
|
-
photoURL?: string | null | undefined;
|
1245
|
-
displayName?: string | null | undefined;
|
1246
|
-
phoneNumber?: string | null | undefined;
|
1247
|
-
} | null>;
|
1248
|
-
token: import("vue").Ref<string | null>;
|
1249
|
-
signOut: () => void;
|
1250
|
-
prompt: (root?: HTMLElement | undefined) => void;
|
1251
|
-
onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
|
1252
|
-
}, "currentUser" | "token">>>, options?: ({
|
1253
|
-
detached?: boolean | undefined;
|
1254
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
1255
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"auth", import("pinia")._UnwrapAll<Pick<{
|
1256
|
-
config: (config: {
|
1257
|
-
clientId: string;
|
1258
|
-
customUrl?: string | undefined;
|
1259
|
-
}) => void;
|
1260
|
-
currentUser: import("vue").Ref<{
|
1261
|
-
id: string;
|
1262
|
-
email?: string | null | undefined;
|
1263
|
-
photoURL?: string | null | undefined;
|
1264
|
-
displayName?: string | null | undefined;
|
1265
|
-
phoneNumber?: string | null | undefined;
|
1266
|
-
} | null>;
|
1267
|
-
token: import("vue").Ref<string | null>;
|
1268
|
-
signOut: () => void;
|
1269
|
-
prompt: (root?: HTMLElement | undefined) => void;
|
1270
|
-
onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
|
1271
|
-
}, "currentUser" | "token">>, Pick<{
|
1272
|
-
config: (config: {
|
1273
|
-
clientId: string;
|
1274
|
-
customUrl?: string | undefined;
|
1275
|
-
}) => void;
|
1276
|
-
currentUser: import("vue").Ref<{
|
1277
|
-
id: string;
|
1278
|
-
email?: string | null | undefined;
|
1279
|
-
photoURL?: string | null | undefined;
|
1280
|
-
displayName?: string | null | undefined;
|
1281
|
-
phoneNumber?: string | null | undefined;
|
1282
|
-
} | null>;
|
1283
|
-
token: import("vue").Ref<string | null>;
|
1284
|
-
signOut: () => void;
|
1285
|
-
prompt: (root?: HTMLElement | undefined) => void;
|
1286
|
-
onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
|
1287
|
-
}, never>, Pick<{
|
1288
|
-
config: (config: {
|
1289
|
-
clientId: string;
|
1290
|
-
customUrl?: string | undefined;
|
1291
|
-
}) => void;
|
1292
|
-
currentUser: import("vue").Ref<{
|
1293
|
-
id: string;
|
1294
|
-
email?: string | null | undefined;
|
1295
|
-
photoURL?: string | null | undefined;
|
1296
|
-
displayName?: string | null | undefined;
|
1297
|
-
phoneNumber?: string | null | undefined;
|
1298
|
-
} | null>;
|
1299
|
-
token: import("vue").Ref<string | null>;
|
1300
|
-
signOut: () => void;
|
1301
|
-
prompt: (root?: HTMLElement | undefined) => void;
|
1302
|
-
onAuthStateChanged: (callback: (user: import("./auth").FeedMeUser | null, token: string | null) => void) => void;
|
1303
|
-
}, "config" | "signOut" | "prompt" | "onAuthStateChanged">>, detached?: boolean | undefined): () => void;
|
1304
|
-
$dispose(): void;
|
1305
|
-
$id: "auth";
|
1306
|
-
_customProperties: Set<string>;
|
1307
|
-
config: (config: {
|
1308
|
-
clientId: string;
|
1309
|
-
customUrl?: string | undefined;
|
1310
|
-
}) => void;
|
1573
|
+
setUser: (user: import("./auth").FeedMeUser | null) => Promise<void>;
|
1574
|
+
signIn: () => Promise<void>;
|
1311
1575
|
signOut: () => void;
|
1312
|
-
|
1313
|
-
|
1576
|
+
fetchUserAdminPermissions: () => Promise<void>;
|
1577
|
+
fetchUserPermissions: () => Promise<void>;
|
1578
|
+
readRestaurants: () => Promise<void>;
|
1579
|
+
setNamespace: (ns: "dev" | "prod") => void;
|
1580
|
+
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>;
|
1581
|
+
readBusinesses: () => Promise<import("./store").FmpBusiness | undefined>;
|
1582
|
+
changeBusiness: (business: import("./store").FmpBusiness | undefined) => Promise<void>;
|
1583
|
+
setCurrentApp: (app: string) => void;
|
1314
1584
|
};
|
1585
|
+
export { FeedMeAuth } from './auth';
|
1315
1586
|
export { default as FmNavBar } from './App.vue';
|