@feedmepos/mf-common 1.0.1 → 1.1.1-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/store.d.ts DELETED
@@ -1,520 +0,0 @@
1
- import { F_COUNTRY, FdoPermissionRule } from '@feedmepos/core/entity';
2
- import { type FeedMeUser } from './auth';
3
- export interface FmpBusiness {
4
- id: string;
5
- name: string;
6
- }
7
- export interface FmpRestaurant {
8
- id: string;
9
- name: string;
10
- managable: boolean;
11
- }
12
- export declare class FmpUser {
13
- constructor(user: {
14
- id: string;
15
- email?: string | null;
16
- photoURL?: string | null;
17
- displayName?: string | null;
18
- phoneNumber?: string | null;
19
- });
20
- id: string;
21
- email?: string | null;
22
- photoURL?: string | null;
23
- displayName?: string | null;
24
- phoneNumber?: string | null;
25
- private _token;
26
- private _tokenExpiredAt;
27
- setToken(token: string, tokenExpiredAt: Date): void;
28
- private _adminPermissions;
29
- setAdminPermisssions(permissions: FdoPermissionRule[]): void;
30
- private _permissions;
31
- setPermisssions(permissions: FdoPermissionRule[]): void;
32
- get permissions(): FdoPermissionRule[];
33
- getIdToken(): Promise<string>;
34
- }
35
- type FmNamespace = 'prod' | 'dev';
36
- export declare const useCore: import("pinia").StoreDefinition<"portal-core", import("pinia")._UnwrapAll<Pick<{
37
- sessionUser: import("vue").Ref<{
38
- id: string;
39
- email?: string | null | undefined;
40
- photoURL?: string | null | undefined;
41
- displayName?: string | null | undefined;
42
- phoneNumber?: string | null | undefined;
43
- setToken: (token: string, tokenExpiredAt: Date) => void;
44
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
45
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
46
- readonly permissions: {
47
- fields?: string[] | undefined;
48
- conditions?: any;
49
- inverted?: boolean | undefined;
50
- reason?: string | undefined;
51
- label: string;
52
- actions: string | string[];
53
- subject: string | string[];
54
- }[];
55
- getIdToken: () => Promise<string>;
56
- } | null>;
57
- setUser: (user: FeedMeUser | null) => Promise<void>;
58
- signIn: () => Promise<void>;
59
- signOut: () => void;
60
- fetchUserAdminPermissions: () => Promise<void>;
61
- fetchUserPermissions: () => Promise<void>;
62
- namespace: import("vue").Ref<FmNamespace>;
63
- 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">;
64
- businesses: import("vue").Ref<{
65
- internal?: boolean | null | undefined;
66
- expiredAt?: string | null | undefined;
67
- url?: string | null | undefined;
68
- agentId?: string | null | undefined;
69
- pf_agent?: {
70
- clickupId?: string | null | undefined;
71
- members?: {
72
- pf_user?: {
73
- email?: string | null | undefined;
74
- birthday?: {
75
- toString: () => string;
76
- toDateString: () => string;
77
- toTimeString: () => string;
78
- toLocaleString: {
79
- (): string;
80
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
81
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
82
- };
83
- toLocaleDateString: {
84
- (): string;
85
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
86
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
87
- };
88
- toLocaleTimeString: {
89
- (): string;
90
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
91
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
92
- };
93
- valueOf: () => number;
94
- getTime: () => number;
95
- getFullYear: () => number;
96
- getUTCFullYear: () => number;
97
- getMonth: () => number;
98
- getUTCMonth: () => number;
99
- getDate: () => number;
100
- getUTCDate: () => number;
101
- getDay: () => number;
102
- getUTCDay: () => number;
103
- getHours: () => number;
104
- getUTCHours: () => number;
105
- getMinutes: () => number;
106
- getUTCMinutes: () => number;
107
- getSeconds: () => number;
108
- getUTCSeconds: () => number;
109
- getMilliseconds: () => number;
110
- getUTCMilliseconds: () => number;
111
- getTimezoneOffset: () => number;
112
- setTime: (time: number) => number;
113
- setMilliseconds: (ms: number) => number;
114
- setUTCMilliseconds: (ms: number) => number;
115
- setSeconds: (sec: number, ms?: number | undefined) => number;
116
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
117
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
118
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
119
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
120
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
121
- setDate: (date: number) => number;
122
- setUTCDate: (date: number) => number;
123
- setMonth: (month: number, date?: number | undefined) => number;
124
- setUTCMonth: (month: number, date?: number | undefined) => number;
125
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
126
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
127
- toUTCString: () => string;
128
- toISOString: () => string;
129
- toJSON: (key?: any) => string;
130
- [Symbol.toPrimitive]: {
131
- (hint: "default"): string;
132
- (hint: "string"): string;
133
- (hint: "number"): number;
134
- (hint: string): string | number;
135
- };
136
- } | null | undefined;
137
- gender?: "MALE" | "FEMALE" | null | undefined;
138
- addresses?: {
139
- address: string;
140
- name: string;
141
- coordinates: number[];
142
- }[] | null | undefined;
143
- photoURL?: string | null | undefined;
144
- displayName?: string | null | undefined;
145
- phoneNumber?: string | null | undefined;
146
- imported?: {
147
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
148
- raw: Record<string, any>;
149
- } | null | undefined;
150
- _id: string;
151
- } | null | undefined;
152
- role: "ADMIN";
153
- userId: string;
154
- }[] | null | undefined;
155
- code: string;
156
- name: string;
157
- _id: string;
158
- isReseller: boolean;
159
- } | null | undefined;
160
- thumbnail?: string | null | undefined;
161
- billingInfos?: {
162
- _id?: string | undefined;
163
- address: {
164
- coordinates?: number[] | undefined;
165
- line2?: string | undefined;
166
- country: string;
167
- line1: string;
168
- state: string;
169
- city: string;
170
- postcode: string;
171
- };
172
- name: string;
173
- email: string;
174
- companyName: string;
175
- contact: string;
176
- }[] | null | undefined;
177
- name: string;
178
- _id: string;
179
- ownerId: string;
180
- restaurantQuota: number;
181
- warehouseQuota: number;
182
- menuVersion: "v2" | "v3" | "v4";
183
- }[]>;
184
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
185
- restaurants: import("vue").Ref<{
186
- id: string;
187
- name: string;
188
- managable: boolean;
189
- }[]>;
190
- readRestaurants: () => Promise<void>;
191
- currentApp: import("vue").Ref<string>;
192
- setNamespace: (ns: FmNamespace) => void;
193
- changeCountry: (country: F_COUNTRY) => Promise<void>;
194
- readBusinesses: () => Promise<FmpBusiness | undefined>;
195
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
196
- setCurrentApp: (app: string) => void;
197
- }, "businesses" | "sessionUser" | "namespace" | "currentCountry" | "currentBusiness" | "restaurants" | "currentApp">>, Pick<{
198
- sessionUser: import("vue").Ref<{
199
- id: string;
200
- email?: string | null | undefined;
201
- photoURL?: string | null | undefined;
202
- displayName?: string | null | undefined;
203
- phoneNumber?: string | null | undefined;
204
- setToken: (token: string, tokenExpiredAt: Date) => void;
205
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
206
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
207
- readonly permissions: {
208
- fields?: string[] | undefined;
209
- conditions?: any;
210
- inverted?: boolean | undefined;
211
- reason?: string | undefined;
212
- label: string;
213
- actions: string | string[];
214
- subject: string | string[];
215
- }[];
216
- getIdToken: () => Promise<string>;
217
- } | null>;
218
- setUser: (user: FeedMeUser | null) => Promise<void>;
219
- signIn: () => Promise<void>;
220
- signOut: () => void;
221
- fetchUserAdminPermissions: () => Promise<void>;
222
- fetchUserPermissions: () => Promise<void>;
223
- namespace: import("vue").Ref<FmNamespace>;
224
- 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">;
225
- businesses: import("vue").Ref<{
226
- internal?: boolean | null | undefined;
227
- expiredAt?: string | null | undefined;
228
- url?: string | null | undefined;
229
- agentId?: string | null | undefined;
230
- pf_agent?: {
231
- clickupId?: string | null | undefined;
232
- members?: {
233
- pf_user?: {
234
- email?: string | null | undefined;
235
- birthday?: {
236
- toString: () => string;
237
- toDateString: () => string;
238
- toTimeString: () => string;
239
- toLocaleString: {
240
- (): string;
241
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
242
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
243
- };
244
- toLocaleDateString: {
245
- (): string;
246
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
247
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
248
- };
249
- toLocaleTimeString: {
250
- (): string;
251
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
252
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
253
- };
254
- valueOf: () => number;
255
- getTime: () => number;
256
- getFullYear: () => number;
257
- getUTCFullYear: () => number;
258
- getMonth: () => number;
259
- getUTCMonth: () => number;
260
- getDate: () => number;
261
- getUTCDate: () => number;
262
- getDay: () => number;
263
- getUTCDay: () => number;
264
- getHours: () => number;
265
- getUTCHours: () => number;
266
- getMinutes: () => number;
267
- getUTCMinutes: () => number;
268
- getSeconds: () => number;
269
- getUTCSeconds: () => number;
270
- getMilliseconds: () => number;
271
- getUTCMilliseconds: () => number;
272
- getTimezoneOffset: () => number;
273
- setTime: (time: number) => number;
274
- setMilliseconds: (ms: number) => number;
275
- setUTCMilliseconds: (ms: number) => number;
276
- setSeconds: (sec: number, ms?: number | undefined) => number;
277
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
278
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
279
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
280
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
281
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
282
- setDate: (date: number) => number;
283
- setUTCDate: (date: number) => number;
284
- setMonth: (month: number, date?: number | undefined) => number;
285
- setUTCMonth: (month: number, date?: number | undefined) => number;
286
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
287
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
288
- toUTCString: () => string;
289
- toISOString: () => string;
290
- toJSON: (key?: any) => string;
291
- [Symbol.toPrimitive]: {
292
- (hint: "default"): string;
293
- (hint: "string"): string;
294
- (hint: "number"): number;
295
- (hint: string): string | number;
296
- };
297
- } | null | undefined;
298
- gender?: "MALE" | "FEMALE" | null | undefined;
299
- addresses?: {
300
- address: string;
301
- name: string;
302
- coordinates: number[];
303
- }[] | null | undefined;
304
- photoURL?: string | null | undefined;
305
- displayName?: string | null | undefined;
306
- phoneNumber?: string | null | undefined;
307
- imported?: {
308
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
309
- raw: Record<string, any>;
310
- } | null | undefined;
311
- _id: string;
312
- } | null | undefined;
313
- role: "ADMIN";
314
- userId: string;
315
- }[] | null | undefined;
316
- code: string;
317
- name: string;
318
- _id: string;
319
- isReseller: boolean;
320
- } | null | undefined;
321
- thumbnail?: string | null | undefined;
322
- billingInfos?: {
323
- _id?: string | undefined;
324
- address: {
325
- coordinates?: number[] | undefined;
326
- line2?: string | undefined;
327
- country: string;
328
- line1: string;
329
- state: string;
330
- city: string;
331
- postcode: string;
332
- };
333
- name: string;
334
- email: string;
335
- companyName: string;
336
- contact: string;
337
- }[] | null | undefined;
338
- name: string;
339
- _id: string;
340
- ownerId: string;
341
- restaurantQuota: number;
342
- warehouseQuota: number;
343
- menuVersion: "v2" | "v3" | "v4";
344
- }[]>;
345
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
346
- restaurants: import("vue").Ref<{
347
- id: string;
348
- name: string;
349
- managable: boolean;
350
- }[]>;
351
- readRestaurants: () => Promise<void>;
352
- currentApp: import("vue").Ref<string>;
353
- setNamespace: (ns: FmNamespace) => void;
354
- changeCountry: (country: F_COUNTRY) => Promise<void>;
355
- readBusinesses: () => Promise<FmpBusiness | undefined>;
356
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
357
- setCurrentApp: (app: string) => void;
358
- }, never>, Pick<{
359
- sessionUser: import("vue").Ref<{
360
- id: string;
361
- email?: string | null | undefined;
362
- photoURL?: string | null | undefined;
363
- displayName?: string | null | undefined;
364
- phoneNumber?: string | null | undefined;
365
- setToken: (token: string, tokenExpiredAt: Date) => void;
366
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
367
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
368
- readonly permissions: {
369
- fields?: string[] | undefined;
370
- conditions?: any;
371
- inverted?: boolean | undefined;
372
- reason?: string | undefined;
373
- label: string;
374
- actions: string | string[];
375
- subject: string | string[];
376
- }[];
377
- getIdToken: () => Promise<string>;
378
- } | null>;
379
- setUser: (user: FeedMeUser | null) => Promise<void>;
380
- signIn: () => Promise<void>;
381
- signOut: () => void;
382
- fetchUserAdminPermissions: () => Promise<void>;
383
- fetchUserPermissions: () => Promise<void>;
384
- namespace: import("vue").Ref<FmNamespace>;
385
- 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">;
386
- businesses: import("vue").Ref<{
387
- internal?: boolean | null | undefined;
388
- expiredAt?: string | null | undefined;
389
- url?: string | null | undefined;
390
- agentId?: string | null | undefined;
391
- pf_agent?: {
392
- clickupId?: string | null | undefined;
393
- members?: {
394
- pf_user?: {
395
- email?: string | null | undefined;
396
- birthday?: {
397
- toString: () => string;
398
- toDateString: () => string;
399
- toTimeString: () => string;
400
- toLocaleString: {
401
- (): string;
402
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
403
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
404
- };
405
- toLocaleDateString: {
406
- (): string;
407
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
408
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
409
- };
410
- toLocaleTimeString: {
411
- (): string;
412
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
413
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
414
- };
415
- valueOf: () => number;
416
- getTime: () => number;
417
- getFullYear: () => number;
418
- getUTCFullYear: () => number;
419
- getMonth: () => number;
420
- getUTCMonth: () => number;
421
- getDate: () => number;
422
- getUTCDate: () => number;
423
- getDay: () => number;
424
- getUTCDay: () => number;
425
- getHours: () => number;
426
- getUTCHours: () => number;
427
- getMinutes: () => number;
428
- getUTCMinutes: () => number;
429
- getSeconds: () => number;
430
- getUTCSeconds: () => number;
431
- getMilliseconds: () => number;
432
- getUTCMilliseconds: () => number;
433
- getTimezoneOffset: () => number;
434
- setTime: (time: number) => number;
435
- setMilliseconds: (ms: number) => number;
436
- setUTCMilliseconds: (ms: number) => number;
437
- setSeconds: (sec: number, ms?: number | undefined) => number;
438
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
439
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
440
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
441
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
442
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
443
- setDate: (date: number) => number;
444
- setUTCDate: (date: number) => number;
445
- setMonth: (month: number, date?: number | undefined) => number;
446
- setUTCMonth: (month: number, date?: number | undefined) => number;
447
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
448
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
449
- toUTCString: () => string;
450
- toISOString: () => string;
451
- toJSON: (key?: any) => string;
452
- [Symbol.toPrimitive]: {
453
- (hint: "default"): string;
454
- (hint: "string"): string;
455
- (hint: "number"): number;
456
- (hint: string): string | number;
457
- };
458
- } | null | undefined;
459
- gender?: "MALE" | "FEMALE" | null | undefined;
460
- addresses?: {
461
- address: string;
462
- name: string;
463
- coordinates: number[];
464
- }[] | null | undefined;
465
- photoURL?: string | null | undefined;
466
- displayName?: string | null | undefined;
467
- phoneNumber?: string | null | undefined;
468
- imported?: {
469
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
470
- raw: Record<string, any>;
471
- } | null | undefined;
472
- _id: string;
473
- } | null | undefined;
474
- role: "ADMIN";
475
- userId: string;
476
- }[] | null | undefined;
477
- code: string;
478
- name: string;
479
- _id: string;
480
- isReseller: boolean;
481
- } | null | undefined;
482
- thumbnail?: string | null | undefined;
483
- billingInfos?: {
484
- _id?: string | undefined;
485
- address: {
486
- coordinates?: number[] | undefined;
487
- line2?: string | undefined;
488
- country: string;
489
- line1: string;
490
- state: string;
491
- city: string;
492
- postcode: string;
493
- };
494
- name: string;
495
- email: string;
496
- companyName: string;
497
- contact: string;
498
- }[] | null | undefined;
499
- name: string;
500
- _id: string;
501
- ownerId: string;
502
- restaurantQuota: number;
503
- warehouseQuota: number;
504
- menuVersion: "v2" | "v3" | "v4";
505
- }[]>;
506
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
507
- restaurants: import("vue").Ref<{
508
- id: string;
509
- name: string;
510
- managable: boolean;
511
- }[]>;
512
- readRestaurants: () => Promise<void>;
513
- currentApp: import("vue").Ref<string>;
514
- setNamespace: (ns: FmNamespace) => void;
515
- changeCountry: (country: F_COUNTRY) => Promise<void>;
516
- readBusinesses: () => Promise<FmpBusiness | undefined>;
517
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
518
- setCurrentApp: (app: string) => void;
519
- }, "setUser" | "signIn" | "signOut" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "readRestaurants" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "setCurrentApp">>;
520
- export {};
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .user-info-icon[data-v-76ddafe8]{height:32px;min-height:32px;min-width:32px;width:32px}