@feedmepos/mf-common 1.1.0 → 1.1.1-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/store.d.ts DELETED
@@ -1,702 +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
- token: string;
26
- tokenExpiredAt: Date;
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
- }
34
- type FmNamespace = 'prod' | 'dev';
35
- export declare const useCore: import("pinia").StoreDefinition<"portal-core", import("pinia")._UnwrapAll<Pick<{
36
- sessionUser: import("vue").Ref<{
37
- id: string;
38
- email?: string | null | undefined;
39
- photoURL?: string | null | undefined;
40
- displayName?: string | null | undefined;
41
- phoneNumber?: string | null | undefined;
42
- token: string;
43
- tokenExpiredAt: {
44
- toString: () => string;
45
- toDateString: () => string;
46
- toTimeString: () => string;
47
- toLocaleString: {
48
- (): string;
49
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
50
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
51
- };
52
- toLocaleDateString: {
53
- (): string;
54
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
55
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
56
- };
57
- toLocaleTimeString: {
58
- (): string;
59
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
60
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
61
- };
62
- valueOf: () => number;
63
- getTime: () => number;
64
- getFullYear: () => number;
65
- getUTCFullYear: () => number;
66
- getMonth: () => number;
67
- getUTCMonth: () => number;
68
- getDate: () => number;
69
- getUTCDate: () => number;
70
- getDay: () => number;
71
- getUTCDay: () => number;
72
- getHours: () => number;
73
- getUTCHours: () => number;
74
- getMinutes: () => number;
75
- getUTCMinutes: () => number;
76
- getSeconds: () => number;
77
- getUTCSeconds: () => number;
78
- getMilliseconds: () => number;
79
- getUTCMilliseconds: () => number;
80
- getTimezoneOffset: () => number;
81
- setTime: (time: number) => number;
82
- setMilliseconds: (ms: number) => number;
83
- setUTCMilliseconds: (ms: number) => number;
84
- setSeconds: (sec: number, ms?: number | undefined) => number;
85
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
86
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
87
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
88
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
89
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
90
- setDate: (date: number) => number;
91
- setUTCDate: (date: number) => number;
92
- setMonth: (month: number, date?: number | undefined) => number;
93
- setUTCMonth: (month: number, date?: number | undefined) => number;
94
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
95
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
96
- toUTCString: () => string;
97
- toISOString: () => string;
98
- toJSON: (key?: any) => string;
99
- [Symbol.toPrimitive]: {
100
- (hint: "default"): string;
101
- (hint: "string"): string;
102
- (hint: "number"): number;
103
- (hint: string): string | number;
104
- };
105
- };
106
- setToken: (token: string, tokenExpiredAt: Date) => void;
107
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
108
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
109
- readonly permissions: {
110
- fields?: string[] | undefined;
111
- conditions?: any;
112
- inverted?: boolean | undefined;
113
- reason?: string | undefined;
114
- label: string;
115
- actions: string | string[];
116
- subject: string | string[];
117
- }[];
118
- } | null>;
119
- setUser: (user: FeedMeUser | null) => Promise<void>;
120
- fetchUserAdminPermissions: () => Promise<void>;
121
- fetchUserPermissions: () => Promise<void>;
122
- namespace: import("vue").Ref<FmNamespace>;
123
- 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
- businesses: import("vue").Ref<{
125
- internal?: boolean | null | undefined;
126
- expiredAt?: string | null | undefined;
127
- url?: string | null | undefined;
128
- agentId?: string | null | undefined;
129
- pf_agent?: {
130
- clickupId?: string | null | undefined;
131
- members?: {
132
- pf_user?: {
133
- email?: string | null | undefined;
134
- birthday?: {
135
- toString: () => string;
136
- toDateString: () => string;
137
- toTimeString: () => string;
138
- toLocaleString: {
139
- (): string;
140
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
141
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
142
- };
143
- toLocaleDateString: {
144
- (): string;
145
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
146
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
147
- };
148
- toLocaleTimeString: {
149
- (): string;
150
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
151
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
152
- };
153
- valueOf: () => number;
154
- getTime: () => number;
155
- getFullYear: () => number;
156
- getUTCFullYear: () => number;
157
- getMonth: () => number;
158
- getUTCMonth: () => number;
159
- getDate: () => number;
160
- getUTCDate: () => number;
161
- getDay: () => number;
162
- getUTCDay: () => number;
163
- getHours: () => number;
164
- getUTCHours: () => number;
165
- getMinutes: () => number;
166
- getUTCMinutes: () => number;
167
- getSeconds: () => number;
168
- getUTCSeconds: () => number;
169
- getMilliseconds: () => number;
170
- getUTCMilliseconds: () => number;
171
- getTimezoneOffset: () => number;
172
- setTime: (time: number) => number;
173
- setMilliseconds: (ms: number) => number;
174
- setUTCMilliseconds: (ms: number) => number;
175
- setSeconds: (sec: number, ms?: number | undefined) => number;
176
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
177
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
178
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
179
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
180
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
181
- setDate: (date: number) => number;
182
- setUTCDate: (date: number) => number;
183
- setMonth: (month: number, date?: number | undefined) => number;
184
- setUTCMonth: (month: number, date?: number | undefined) => number;
185
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
186
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
187
- toUTCString: () => string;
188
- toISOString: () => string;
189
- toJSON: (key?: any) => string;
190
- [Symbol.toPrimitive]: {
191
- (hint: "default"): string;
192
- (hint: "string"): string;
193
- (hint: "number"): number;
194
- (hint: string): string | number;
195
- };
196
- } | null | undefined;
197
- gender?: "MALE" | "FEMALE" | null | undefined;
198
- addresses?: {
199
- address: string;
200
- name: string;
201
- coordinates: number[];
202
- }[] | null | undefined;
203
- photoURL?: string | null | undefined;
204
- displayName?: string | null | undefined;
205
- phoneNumber?: string | null | undefined;
206
- imported?: {
207
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
208
- raw: Record<string, any>;
209
- } | null | undefined;
210
- _id: string;
211
- } | null | undefined;
212
- role: "ADMIN";
213
- userId: string;
214
- }[] | null | undefined;
215
- code: string;
216
- name: string;
217
- _id: string;
218
- isReseller: boolean;
219
- } | null | undefined;
220
- thumbnail?: string | null | undefined;
221
- billingInfos?: {
222
- _id?: string | undefined;
223
- address: {
224
- coordinates?: number[] | undefined;
225
- line2?: string | undefined;
226
- country: string;
227
- line1: string;
228
- state: string;
229
- city: string;
230
- postcode: string;
231
- };
232
- name: string;
233
- email: string;
234
- companyName: string;
235
- contact: string;
236
- }[] | null | undefined;
237
- name: string;
238
- _id: string;
239
- ownerId: string;
240
- restaurantQuota: number;
241
- warehouseQuota: number;
242
- menuVersion: "v2" | "v3" | "v4";
243
- }[]>;
244
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
245
- restaurants: import("vue").Ref<{
246
- id: string;
247
- name: string;
248
- managable: boolean;
249
- }[]>;
250
- readRestaurants: () => Promise<void>;
251
- currentApp: import("vue").Ref<string>;
252
- setNamespace: (ns: FmNamespace) => void;
253
- changeCountry: (country: F_COUNTRY) => Promise<void>;
254
- readBusinesses: () => Promise<FmpBusiness | undefined>;
255
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
256
- setCurrentApp: (app: string) => void;
257
- }, "businesses" | "sessionUser" | "namespace" | "currentCountry" | "currentBusiness" | "restaurants" | "currentApp">>, Pick<{
258
- sessionUser: import("vue").Ref<{
259
- id: string;
260
- email?: string | null | undefined;
261
- photoURL?: string | null | undefined;
262
- displayName?: string | null | undefined;
263
- phoneNumber?: string | null | undefined;
264
- token: string;
265
- tokenExpiredAt: {
266
- toString: () => string;
267
- toDateString: () => string;
268
- toTimeString: () => string;
269
- toLocaleString: {
270
- (): string;
271
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
272
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
273
- };
274
- toLocaleDateString: {
275
- (): string;
276
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
277
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
278
- };
279
- toLocaleTimeString: {
280
- (): string;
281
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
282
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
283
- };
284
- valueOf: () => number;
285
- getTime: () => number;
286
- getFullYear: () => number;
287
- getUTCFullYear: () => number;
288
- getMonth: () => number;
289
- getUTCMonth: () => number;
290
- getDate: () => number;
291
- getUTCDate: () => number;
292
- getDay: () => number;
293
- getUTCDay: () => number;
294
- getHours: () => number;
295
- getUTCHours: () => number;
296
- getMinutes: () => number;
297
- getUTCMinutes: () => number;
298
- getSeconds: () => number;
299
- getUTCSeconds: () => number;
300
- getMilliseconds: () => number;
301
- getUTCMilliseconds: () => number;
302
- getTimezoneOffset: () => number;
303
- setTime: (time: number) => number;
304
- setMilliseconds: (ms: number) => number;
305
- setUTCMilliseconds: (ms: number) => number;
306
- setSeconds: (sec: number, ms?: number | undefined) => number;
307
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
308
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
309
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
310
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
311
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
312
- setDate: (date: number) => number;
313
- setUTCDate: (date: number) => number;
314
- setMonth: (month: number, date?: number | undefined) => number;
315
- setUTCMonth: (month: number, date?: number | undefined) => number;
316
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
317
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
318
- toUTCString: () => string;
319
- toISOString: () => string;
320
- toJSON: (key?: any) => string;
321
- [Symbol.toPrimitive]: {
322
- (hint: "default"): string;
323
- (hint: "string"): string;
324
- (hint: "number"): number;
325
- (hint: string): string | number;
326
- };
327
- };
328
- setToken: (token: string, tokenExpiredAt: Date) => void;
329
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
330
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
331
- readonly permissions: {
332
- fields?: string[] | undefined;
333
- conditions?: any;
334
- inverted?: boolean | undefined;
335
- reason?: string | undefined;
336
- label: string;
337
- actions: string | string[];
338
- subject: string | string[];
339
- }[];
340
- } | null>;
341
- setUser: (user: FeedMeUser | null) => Promise<void>;
342
- fetchUserAdminPermissions: () => Promise<void>;
343
- fetchUserPermissions: () => Promise<void>;
344
- namespace: import("vue").Ref<FmNamespace>;
345
- 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">;
346
- businesses: import("vue").Ref<{
347
- internal?: boolean | null | undefined;
348
- expiredAt?: string | null | undefined;
349
- url?: string | null | undefined;
350
- agentId?: string | null | undefined;
351
- pf_agent?: {
352
- clickupId?: string | null | undefined;
353
- members?: {
354
- pf_user?: {
355
- email?: string | null | undefined;
356
- birthday?: {
357
- toString: () => string;
358
- toDateString: () => string;
359
- toTimeString: () => string;
360
- toLocaleString: {
361
- (): string;
362
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
363
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
364
- };
365
- toLocaleDateString: {
366
- (): string;
367
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
368
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
369
- };
370
- toLocaleTimeString: {
371
- (): string;
372
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
373
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
374
- };
375
- valueOf: () => number;
376
- getTime: () => number;
377
- getFullYear: () => number;
378
- getUTCFullYear: () => number;
379
- getMonth: () => number;
380
- getUTCMonth: () => number;
381
- getDate: () => number;
382
- getUTCDate: () => number;
383
- getDay: () => number;
384
- getUTCDay: () => number;
385
- getHours: () => number;
386
- getUTCHours: () => number;
387
- getMinutes: () => number;
388
- getUTCMinutes: () => number;
389
- getSeconds: () => number;
390
- getUTCSeconds: () => number;
391
- getMilliseconds: () => number;
392
- getUTCMilliseconds: () => number;
393
- getTimezoneOffset: () => number;
394
- setTime: (time: number) => number;
395
- setMilliseconds: (ms: number) => number;
396
- setUTCMilliseconds: (ms: number) => number;
397
- setSeconds: (sec: number, ms?: number | undefined) => number;
398
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
399
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
400
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
401
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
402
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
403
- setDate: (date: number) => number;
404
- setUTCDate: (date: number) => number;
405
- setMonth: (month: number, date?: number | undefined) => number;
406
- setUTCMonth: (month: number, date?: number | undefined) => number;
407
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
408
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
409
- toUTCString: () => string;
410
- toISOString: () => string;
411
- toJSON: (key?: any) => string;
412
- [Symbol.toPrimitive]: {
413
- (hint: "default"): string;
414
- (hint: "string"): string;
415
- (hint: "number"): number;
416
- (hint: string): string | number;
417
- };
418
- } | null | undefined;
419
- gender?: "MALE" | "FEMALE" | null | undefined;
420
- addresses?: {
421
- address: string;
422
- name: string;
423
- coordinates: number[];
424
- }[] | null | undefined;
425
- photoURL?: string | null | undefined;
426
- displayName?: string | null | undefined;
427
- phoneNumber?: string | null | undefined;
428
- imported?: {
429
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
430
- raw: Record<string, any>;
431
- } | null | undefined;
432
- _id: string;
433
- } | null | undefined;
434
- role: "ADMIN";
435
- userId: string;
436
- }[] | null | undefined;
437
- code: string;
438
- name: string;
439
- _id: string;
440
- isReseller: boolean;
441
- } | null | undefined;
442
- thumbnail?: string | null | undefined;
443
- billingInfos?: {
444
- _id?: string | undefined;
445
- address: {
446
- coordinates?: number[] | undefined;
447
- line2?: string | undefined;
448
- country: string;
449
- line1: string;
450
- state: string;
451
- city: string;
452
- postcode: string;
453
- };
454
- name: string;
455
- email: string;
456
- companyName: string;
457
- contact: string;
458
- }[] | null | undefined;
459
- name: string;
460
- _id: string;
461
- ownerId: string;
462
- restaurantQuota: number;
463
- warehouseQuota: number;
464
- menuVersion: "v2" | "v3" | "v4";
465
- }[]>;
466
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
467
- restaurants: import("vue").Ref<{
468
- id: string;
469
- name: string;
470
- managable: boolean;
471
- }[]>;
472
- readRestaurants: () => Promise<void>;
473
- currentApp: import("vue").Ref<string>;
474
- setNamespace: (ns: FmNamespace) => void;
475
- changeCountry: (country: F_COUNTRY) => Promise<void>;
476
- readBusinesses: () => Promise<FmpBusiness | undefined>;
477
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
478
- setCurrentApp: (app: string) => void;
479
- }, never>, Pick<{
480
- sessionUser: import("vue").Ref<{
481
- id: string;
482
- email?: string | null | undefined;
483
- photoURL?: string | null | undefined;
484
- displayName?: string | null | undefined;
485
- phoneNumber?: string | null | undefined;
486
- token: string;
487
- tokenExpiredAt: {
488
- toString: () => string;
489
- toDateString: () => string;
490
- toTimeString: () => string;
491
- toLocaleString: {
492
- (): string;
493
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
494
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
495
- };
496
- toLocaleDateString: {
497
- (): string;
498
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
499
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
500
- };
501
- toLocaleTimeString: {
502
- (): string;
503
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
504
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
505
- };
506
- valueOf: () => number;
507
- getTime: () => number;
508
- getFullYear: () => number;
509
- getUTCFullYear: () => number;
510
- getMonth: () => number;
511
- getUTCMonth: () => number;
512
- getDate: () => number;
513
- getUTCDate: () => number;
514
- getDay: () => number;
515
- getUTCDay: () => number;
516
- getHours: () => number;
517
- getUTCHours: () => number;
518
- getMinutes: () => number;
519
- getUTCMinutes: () => number;
520
- getSeconds: () => number;
521
- getUTCSeconds: () => number;
522
- getMilliseconds: () => number;
523
- getUTCMilliseconds: () => number;
524
- getTimezoneOffset: () => number;
525
- setTime: (time: number) => number;
526
- setMilliseconds: (ms: number) => number;
527
- setUTCMilliseconds: (ms: number) => number;
528
- setSeconds: (sec: number, ms?: number | undefined) => number;
529
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
530
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
531
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
532
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
533
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
534
- setDate: (date: number) => number;
535
- setUTCDate: (date: number) => number;
536
- setMonth: (month: number, date?: number | undefined) => number;
537
- setUTCMonth: (month: number, date?: number | undefined) => number;
538
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
539
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
540
- toUTCString: () => string;
541
- toISOString: () => string;
542
- toJSON: (key?: any) => string;
543
- [Symbol.toPrimitive]: {
544
- (hint: "default"): string;
545
- (hint: "string"): string;
546
- (hint: "number"): number;
547
- (hint: string): string | number;
548
- };
549
- };
550
- setToken: (token: string, tokenExpiredAt: Date) => void;
551
- setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
552
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
553
- readonly permissions: {
554
- fields?: string[] | undefined;
555
- conditions?: any;
556
- inverted?: boolean | undefined;
557
- reason?: string | undefined;
558
- label: string;
559
- actions: string | string[];
560
- subject: string | string[];
561
- }[];
562
- } | null>;
563
- setUser: (user: FeedMeUser | null) => Promise<void>;
564
- fetchUserAdminPermissions: () => Promise<void>;
565
- fetchUserPermissions: () => Promise<void>;
566
- namespace: import("vue").Ref<FmNamespace>;
567
- 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">;
568
- businesses: import("vue").Ref<{
569
- internal?: boolean | null | undefined;
570
- expiredAt?: string | null | undefined;
571
- url?: string | null | undefined;
572
- agentId?: string | null | undefined;
573
- pf_agent?: {
574
- clickupId?: string | null | undefined;
575
- members?: {
576
- pf_user?: {
577
- email?: string | null | undefined;
578
- birthday?: {
579
- toString: () => string;
580
- toDateString: () => string;
581
- toTimeString: () => string;
582
- toLocaleString: {
583
- (): string;
584
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
585
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
586
- };
587
- toLocaleDateString: {
588
- (): string;
589
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
590
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
591
- };
592
- toLocaleTimeString: {
593
- (): string;
594
- (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
595
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
596
- };
597
- valueOf: () => number;
598
- getTime: () => number;
599
- getFullYear: () => number;
600
- getUTCFullYear: () => number;
601
- getMonth: () => number;
602
- getUTCMonth: () => number;
603
- getDate: () => number;
604
- getUTCDate: () => number;
605
- getDay: () => number;
606
- getUTCDay: () => number;
607
- getHours: () => number;
608
- getUTCHours: () => number;
609
- getMinutes: () => number;
610
- getUTCMinutes: () => number;
611
- getSeconds: () => number;
612
- getUTCSeconds: () => number;
613
- getMilliseconds: () => number;
614
- getUTCMilliseconds: () => number;
615
- getTimezoneOffset: () => number;
616
- setTime: (time: number) => number;
617
- setMilliseconds: (ms: number) => number;
618
- setUTCMilliseconds: (ms: number) => number;
619
- setSeconds: (sec: number, ms?: number | undefined) => number;
620
- setUTCSeconds: (sec: number, ms?: number | undefined) => number;
621
- setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
622
- setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
623
- setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
624
- setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
625
- setDate: (date: number) => number;
626
- setUTCDate: (date: number) => number;
627
- setMonth: (month: number, date?: number | undefined) => number;
628
- setUTCMonth: (month: number, date?: number | undefined) => number;
629
- setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
630
- setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
631
- toUTCString: () => string;
632
- toISOString: () => string;
633
- toJSON: (key?: any) => string;
634
- [Symbol.toPrimitive]: {
635
- (hint: "default"): string;
636
- (hint: "string"): string;
637
- (hint: "number"): number;
638
- (hint: string): string | number;
639
- };
640
- } | null | undefined;
641
- gender?: "MALE" | "FEMALE" | null | undefined;
642
- addresses?: {
643
- address: string;
644
- name: string;
645
- coordinates: number[];
646
- }[] | null | undefined;
647
- photoURL?: string | null | undefined;
648
- displayName?: string | null | undefined;
649
- phoneNumber?: string | null | undefined;
650
- imported?: {
651
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
652
- raw: Record<string, any>;
653
- } | null | undefined;
654
- _id: string;
655
- } | null | undefined;
656
- role: "ADMIN";
657
- userId: string;
658
- }[] | null | undefined;
659
- code: string;
660
- name: string;
661
- _id: string;
662
- isReseller: boolean;
663
- } | null | undefined;
664
- thumbnail?: string | null | undefined;
665
- billingInfos?: {
666
- _id?: string | undefined;
667
- address: {
668
- coordinates?: number[] | undefined;
669
- line2?: string | undefined;
670
- country: string;
671
- line1: string;
672
- state: string;
673
- city: string;
674
- postcode: string;
675
- };
676
- name: string;
677
- email: string;
678
- companyName: string;
679
- contact: string;
680
- }[] | null | undefined;
681
- name: string;
682
- _id: string;
683
- ownerId: string;
684
- restaurantQuota: number;
685
- warehouseQuota: number;
686
- menuVersion: "v2" | "v3" | "v4";
687
- }[]>;
688
- currentBusiness: import("vue").Ref<FmpBusiness | undefined>;
689
- restaurants: import("vue").Ref<{
690
- id: string;
691
- name: string;
692
- managable: boolean;
693
- }[]>;
694
- readRestaurants: () => Promise<void>;
695
- currentApp: import("vue").Ref<string>;
696
- setNamespace: (ns: FmNamespace) => void;
697
- changeCountry: (country: F_COUNTRY) => Promise<void>;
698
- readBusinesses: () => Promise<FmpBusiness | undefined>;
699
- changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
700
- setCurrentApp: (app: string) => void;
701
- }, "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "readRestaurants" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "setCurrentApp">>;
702
- export {};