@feedmepos/mf-common 1.1.1-alpha.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.vue.d.ts +0 -1
- package/dist/api/index.d.ts +0 -6
- package/dist/app.d.ts +279 -719
- package/dist/app.js +27312 -17662
- package/dist/{plugins/auth.d.ts → auth.d.ts} +2 -9
- package/dist/components/UserInfo.vue.d.ts +143 -7
- package/dist/{plugins/store.d.ts → store.d.ts} +87 -231
- package/dist/style.css +1 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vite-preset.js +26 -27
- package/package.json +14 -14
@@ -20,90 +20,36 @@ export declare class FmpUser {
|
|
20
20
|
photoURL?: string | null;
|
21
21
|
displayName?: string | null;
|
22
22
|
phoneNumber?: string | null;
|
23
|
-
token: string;
|
24
|
-
|
25
|
-
setToken(token: string, tokenExpiredAt: Date): void;
|
23
|
+
get token(): string | null;
|
24
|
+
getCustomToken(): Promise<string>;
|
26
25
|
private _adminPermissions;
|
27
26
|
setAdminPermisssions(permissions: FdoPermissionRule[]): void;
|
28
27
|
private _permissions;
|
29
|
-
|
28
|
+
setPermissions(permissions: FdoPermissionRule[]): void;
|
30
29
|
get permissions(): FdoPermissionRule[];
|
31
30
|
}
|
32
31
|
type FmNamespace = 'prod' | 'dev';
|
32
|
+
export interface PortalApp {
|
33
|
+
icon: string;
|
34
|
+
name: string;
|
35
|
+
description: string;
|
36
|
+
path: string;
|
37
|
+
color: string;
|
38
|
+
}
|
33
39
|
export declare const useCore: import("pinia").StoreDefinition<"portal-core", import("pinia")._UnwrapAll<Pick<{
|
40
|
+
signIn: () => Promise<void>;
|
41
|
+
signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
|
42
|
+
signOut: () => Promise<void>;
|
34
43
|
sessionUser: import("vue").Ref<{
|
35
44
|
id: string;
|
36
45
|
email?: string | null | undefined;
|
37
46
|
photoURL?: string | null | undefined;
|
38
47
|
displayName?: string | null | undefined;
|
39
48
|
phoneNumber?: string | null | undefined;
|
40
|
-
token: string;
|
41
|
-
|
42
|
-
toString: () => string;
|
43
|
-
toDateString: () => string;
|
44
|
-
toTimeString: () => string;
|
45
|
-
toLocaleString: {
|
46
|
-
(): string;
|
47
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
48
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
49
|
-
};
|
50
|
-
toLocaleDateString: {
|
51
|
-
(): string;
|
52
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
53
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
54
|
-
};
|
55
|
-
toLocaleTimeString: {
|
56
|
-
(): string;
|
57
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
58
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
59
|
-
};
|
60
|
-
valueOf: () => number;
|
61
|
-
getTime: () => number;
|
62
|
-
getFullYear: () => number;
|
63
|
-
getUTCFullYear: () => number;
|
64
|
-
getMonth: () => number;
|
65
|
-
getUTCMonth: () => number;
|
66
|
-
getDate: () => number;
|
67
|
-
getUTCDate: () => number;
|
68
|
-
getDay: () => number;
|
69
|
-
getUTCDay: () => number;
|
70
|
-
getHours: () => number;
|
71
|
-
getUTCHours: () => number;
|
72
|
-
getMinutes: () => number;
|
73
|
-
getUTCMinutes: () => number;
|
74
|
-
getSeconds: () => number;
|
75
|
-
getUTCSeconds: () => number;
|
76
|
-
getMilliseconds: () => number;
|
77
|
-
getUTCMilliseconds: () => number;
|
78
|
-
getTimezoneOffset: () => number;
|
79
|
-
setTime: (time: number) => number;
|
80
|
-
setMilliseconds: (ms: number) => number;
|
81
|
-
setUTCMilliseconds: (ms: number) => number;
|
82
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
83
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
84
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
85
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
86
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
87
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
88
|
-
setDate: (date: number) => number;
|
89
|
-
setUTCDate: (date: number) => number;
|
90
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
91
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
92
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
93
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
94
|
-
toUTCString: () => string;
|
95
|
-
toISOString: () => string;
|
96
|
-
toJSON: (key?: any) => string;
|
97
|
-
[Symbol.toPrimitive]: {
|
98
|
-
(hint: "default"): string;
|
99
|
-
(hint: "string"): string;
|
100
|
-
(hint: "number"): number;
|
101
|
-
(hint: string): string | number;
|
102
|
-
};
|
103
|
-
};
|
104
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
49
|
+
readonly token: string | null;
|
50
|
+
getCustomToken: () => Promise<string>;
|
105
51
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
106
|
-
|
52
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
107
53
|
readonly permissions: {
|
108
54
|
fields?: string[] | undefined;
|
109
55
|
conditions?: any;
|
@@ -223,11 +169,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
223
169
|
address: {
|
224
170
|
coordinates?: number[] | undefined;
|
225
171
|
line2?: string | undefined;
|
226
|
-
country: string;
|
227
172
|
state: string;
|
228
173
|
line1: string;
|
229
174
|
city: string;
|
230
175
|
postcode: string;
|
176
|
+
country: string;
|
231
177
|
};
|
232
178
|
name: string;
|
233
179
|
email: string;
|
@@ -348,11 +294,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
348
294
|
address: {
|
349
295
|
coordinates?: number[] | undefined;
|
350
296
|
line2?: string | undefined;
|
351
|
-
country: string;
|
352
297
|
state: string;
|
353
298
|
line1: string;
|
354
299
|
city: string;
|
355
300
|
postcode: string;
|
301
|
+
country: string;
|
356
302
|
};
|
357
303
|
name: string;
|
358
304
|
email: string;
|
@@ -431,8 +377,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
431
377
|
};
|
432
378
|
} | null | undefined;
|
433
379
|
day: {
|
434
|
-
max: number;
|
435
380
|
min: number;
|
381
|
+
max: number;
|
436
382
|
};
|
437
383
|
} | null | undefined;
|
438
384
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -538,8 +484,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
538
484
|
ignoreStock?: boolean | undefined;
|
539
485
|
pickupTime?: {
|
540
486
|
day: {
|
541
|
-
max: number;
|
542
487
|
min: number;
|
488
|
+
max: number;
|
543
489
|
};
|
544
490
|
} | null | undefined;
|
545
491
|
pickupPointConfig?: {
|
@@ -681,11 +627,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
681
627
|
address: {
|
682
628
|
coordinates?: number[] | undefined;
|
683
629
|
line2?: string | undefined;
|
684
|
-
country: string;
|
685
630
|
state: string;
|
686
631
|
line1: string;
|
687
632
|
city: string;
|
688
633
|
postcode: string;
|
634
|
+
country: string;
|
689
635
|
};
|
690
636
|
name: string;
|
691
637
|
email: string;
|
@@ -798,11 +744,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
798
744
|
address: {
|
799
745
|
coordinates?: number[] | undefined;
|
800
746
|
line2?: string | undefined;
|
801
|
-
country: string;
|
802
747
|
state: string;
|
803
748
|
line1: string;
|
804
749
|
city: string;
|
805
750
|
postcode: string;
|
751
|
+
country: string;
|
806
752
|
};
|
807
753
|
name: string;
|
808
754
|
email: string;
|
@@ -881,8 +827,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
881
827
|
};
|
882
828
|
} | null | undefined;
|
883
829
|
day: {
|
884
|
-
max: number;
|
885
830
|
min: number;
|
831
|
+
max: number;
|
886
832
|
};
|
887
833
|
} | null | undefined;
|
888
834
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -988,8 +934,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
988
934
|
ignoreStock?: boolean | undefined;
|
989
935
|
pickupTime?: {
|
990
936
|
day: {
|
991
|
-
max: number;
|
992
937
|
min: number;
|
938
|
+
max: number;
|
993
939
|
};
|
994
940
|
} | null | undefined;
|
995
941
|
pickupPointConfig?: {
|
@@ -1131,11 +1077,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1131
1077
|
address: {
|
1132
1078
|
coordinates?: number[] | undefined;
|
1133
1079
|
line2?: string | undefined;
|
1134
|
-
country: string;
|
1135
1080
|
state: string;
|
1136
1081
|
line1: string;
|
1137
1082
|
city: string;
|
1138
1083
|
postcode: string;
|
1084
|
+
country: string;
|
1139
1085
|
};
|
1140
1086
|
name: string;
|
1141
1087
|
email: string;
|
@@ -1144,80 +1090,30 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1144
1090
|
};
|
1145
1091
|
}[] | undefined>;
|
1146
1092
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
1147
|
-
|
1093
|
+
apps: import("vue").Ref<{
|
1094
|
+
icon: string;
|
1095
|
+
name: string;
|
1096
|
+
description: string;
|
1097
|
+
path: string;
|
1098
|
+
color: string;
|
1099
|
+
}[]>;
|
1100
|
+
selectedApp: import("vue").Ref<PortalApp | undefined>;
|
1101
|
+
registerApp: (app: PortalApp) => void;
|
1102
|
+
selectApp: (app: PortalApp) => void;
|
1103
|
+
}, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "apps" | "selectedApp">>, Pick<{
|
1104
|
+
signIn: () => Promise<void>;
|
1105
|
+
signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
|
1106
|
+
signOut: () => Promise<void>;
|
1148
1107
|
sessionUser: import("vue").Ref<{
|
1149
1108
|
id: string;
|
1150
1109
|
email?: string | null | undefined;
|
1151
1110
|
photoURL?: string | null | undefined;
|
1152
1111
|
displayName?: string | null | undefined;
|
1153
1112
|
phoneNumber?: string | null | undefined;
|
1154
|
-
token: string;
|
1155
|
-
|
1156
|
-
toString: () => string;
|
1157
|
-
toDateString: () => string;
|
1158
|
-
toTimeString: () => string;
|
1159
|
-
toLocaleString: {
|
1160
|
-
(): string;
|
1161
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1162
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1163
|
-
};
|
1164
|
-
toLocaleDateString: {
|
1165
|
-
(): string;
|
1166
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1167
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1168
|
-
};
|
1169
|
-
toLocaleTimeString: {
|
1170
|
-
(): string;
|
1171
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1172
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1173
|
-
};
|
1174
|
-
valueOf: () => number;
|
1175
|
-
getTime: () => number;
|
1176
|
-
getFullYear: () => number;
|
1177
|
-
getUTCFullYear: () => number;
|
1178
|
-
getMonth: () => number;
|
1179
|
-
getUTCMonth: () => number;
|
1180
|
-
getDate: () => number;
|
1181
|
-
getUTCDate: () => number;
|
1182
|
-
getDay: () => number;
|
1183
|
-
getUTCDay: () => number;
|
1184
|
-
getHours: () => number;
|
1185
|
-
getUTCHours: () => number;
|
1186
|
-
getMinutes: () => number;
|
1187
|
-
getUTCMinutes: () => number;
|
1188
|
-
getSeconds: () => number;
|
1189
|
-
getUTCSeconds: () => number;
|
1190
|
-
getMilliseconds: () => number;
|
1191
|
-
getUTCMilliseconds: () => number;
|
1192
|
-
getTimezoneOffset: () => number;
|
1193
|
-
setTime: (time: number) => number;
|
1194
|
-
setMilliseconds: (ms: number) => number;
|
1195
|
-
setUTCMilliseconds: (ms: number) => number;
|
1196
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
1197
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
1198
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1199
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1200
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1201
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1202
|
-
setDate: (date: number) => number;
|
1203
|
-
setUTCDate: (date: number) => number;
|
1204
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
1205
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
1206
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1207
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1208
|
-
toUTCString: () => string;
|
1209
|
-
toISOString: () => string;
|
1210
|
-
toJSON: (key?: any) => string;
|
1211
|
-
[Symbol.toPrimitive]: {
|
1212
|
-
(hint: "default"): string;
|
1213
|
-
(hint: "string"): string;
|
1214
|
-
(hint: "number"): number;
|
1215
|
-
(hint: string): string | number;
|
1216
|
-
};
|
1217
|
-
};
|
1218
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1113
|
+
readonly token: string | null;
|
1114
|
+
getCustomToken: () => Promise<string>;
|
1219
1115
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
1220
|
-
|
1116
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
1221
1117
|
readonly permissions: {
|
1222
1118
|
fields?: string[] | undefined;
|
1223
1119
|
conditions?: any;
|
@@ -1337,11 +1233,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1337
1233
|
address: {
|
1338
1234
|
coordinates?: number[] | undefined;
|
1339
1235
|
line2?: string | undefined;
|
1340
|
-
country: string;
|
1341
1236
|
state: string;
|
1342
1237
|
line1: string;
|
1343
1238
|
city: string;
|
1344
1239
|
postcode: string;
|
1240
|
+
country: string;
|
1345
1241
|
};
|
1346
1242
|
name: string;
|
1347
1243
|
email: string;
|
@@ -1462,11 +1358,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1462
1358
|
address: {
|
1463
1359
|
coordinates?: number[] | undefined;
|
1464
1360
|
line2?: string | undefined;
|
1465
|
-
country: string;
|
1466
1361
|
state: string;
|
1467
1362
|
line1: string;
|
1468
1363
|
city: string;
|
1469
1364
|
postcode: string;
|
1365
|
+
country: string;
|
1470
1366
|
};
|
1471
1367
|
name: string;
|
1472
1368
|
email: string;
|
@@ -1545,8 +1441,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1545
1441
|
};
|
1546
1442
|
} | null | undefined;
|
1547
1443
|
day: {
|
1548
|
-
max: number;
|
1549
1444
|
min: number;
|
1445
|
+
max: number;
|
1550
1446
|
};
|
1551
1447
|
} | null | undefined;
|
1552
1448
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -1652,8 +1548,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1652
1548
|
ignoreStock?: boolean | undefined;
|
1653
1549
|
pickupTime?: {
|
1654
1550
|
day: {
|
1655
|
-
max: number;
|
1656
1551
|
min: number;
|
1552
|
+
max: number;
|
1657
1553
|
};
|
1658
1554
|
} | null | undefined;
|
1659
1555
|
pickupPointConfig?: {
|
@@ -1795,11 +1691,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1795
1691
|
address: {
|
1796
1692
|
coordinates?: number[] | undefined;
|
1797
1693
|
line2?: string | undefined;
|
1798
|
-
country: string;
|
1799
1694
|
state: string;
|
1800
1695
|
line1: string;
|
1801
1696
|
city: string;
|
1802
1697
|
postcode: string;
|
1698
|
+
country: string;
|
1803
1699
|
};
|
1804
1700
|
name: string;
|
1805
1701
|
email: string;
|
@@ -1912,11 +1808,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1912
1808
|
address: {
|
1913
1809
|
coordinates?: number[] | undefined;
|
1914
1810
|
line2?: string | undefined;
|
1915
|
-
country: string;
|
1916
1811
|
state: string;
|
1917
1812
|
line1: string;
|
1918
1813
|
city: string;
|
1919
1814
|
postcode: string;
|
1815
|
+
country: string;
|
1920
1816
|
};
|
1921
1817
|
name: string;
|
1922
1818
|
email: string;
|
@@ -1995,8 +1891,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1995
1891
|
};
|
1996
1892
|
} | null | undefined;
|
1997
1893
|
day: {
|
1998
|
-
max: number;
|
1999
1894
|
min: number;
|
1895
|
+
max: number;
|
2000
1896
|
};
|
2001
1897
|
} | null | undefined;
|
2002
1898
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -2102,8 +1998,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2102
1998
|
ignoreStock?: boolean | undefined;
|
2103
1999
|
pickupTime?: {
|
2104
2000
|
day: {
|
2105
|
-
max: number;
|
2106
2001
|
min: number;
|
2002
|
+
max: number;
|
2107
2003
|
};
|
2108
2004
|
} | null | undefined;
|
2109
2005
|
pickupPointConfig?: {
|
@@ -2245,11 +2141,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2245
2141
|
address: {
|
2246
2142
|
coordinates?: number[] | undefined;
|
2247
2143
|
line2?: string | undefined;
|
2248
|
-
country: string;
|
2249
2144
|
state: string;
|
2250
2145
|
line1: string;
|
2251
2146
|
city: string;
|
2252
2147
|
postcode: string;
|
2148
|
+
country: string;
|
2253
2149
|
};
|
2254
2150
|
name: string;
|
2255
2151
|
email: string;
|
@@ -2258,80 +2154,30 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2258
2154
|
};
|
2259
2155
|
}[] | undefined>;
|
2260
2156
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
2157
|
+
apps: import("vue").Ref<{
|
2158
|
+
icon: string;
|
2159
|
+
name: string;
|
2160
|
+
description: string;
|
2161
|
+
path: string;
|
2162
|
+
color: string;
|
2163
|
+
}[]>;
|
2164
|
+
selectedApp: import("vue").Ref<PortalApp | undefined>;
|
2165
|
+
registerApp: (app: PortalApp) => void;
|
2166
|
+
selectApp: (app: PortalApp) => void;
|
2261
2167
|
}, never>, Pick<{
|
2168
|
+
signIn: () => Promise<void>;
|
2169
|
+
signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
|
2170
|
+
signOut: () => Promise<void>;
|
2262
2171
|
sessionUser: import("vue").Ref<{
|
2263
2172
|
id: string;
|
2264
2173
|
email?: string | null | undefined;
|
2265
2174
|
photoURL?: string | null | undefined;
|
2266
2175
|
displayName?: string | null | undefined;
|
2267
2176
|
phoneNumber?: string | null | undefined;
|
2268
|
-
token: string;
|
2269
|
-
|
2270
|
-
toString: () => string;
|
2271
|
-
toDateString: () => string;
|
2272
|
-
toTimeString: () => string;
|
2273
|
-
toLocaleString: {
|
2274
|
-
(): string;
|
2275
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2276
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2277
|
-
};
|
2278
|
-
toLocaleDateString: {
|
2279
|
-
(): string;
|
2280
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2281
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2282
|
-
};
|
2283
|
-
toLocaleTimeString: {
|
2284
|
-
(): string;
|
2285
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2286
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2287
|
-
};
|
2288
|
-
valueOf: () => number;
|
2289
|
-
getTime: () => number;
|
2290
|
-
getFullYear: () => number;
|
2291
|
-
getUTCFullYear: () => number;
|
2292
|
-
getMonth: () => number;
|
2293
|
-
getUTCMonth: () => number;
|
2294
|
-
getDate: () => number;
|
2295
|
-
getUTCDate: () => number;
|
2296
|
-
getDay: () => number;
|
2297
|
-
getUTCDay: () => number;
|
2298
|
-
getHours: () => number;
|
2299
|
-
getUTCHours: () => number;
|
2300
|
-
getMinutes: () => number;
|
2301
|
-
getUTCMinutes: () => number;
|
2302
|
-
getSeconds: () => number;
|
2303
|
-
getUTCSeconds: () => number;
|
2304
|
-
getMilliseconds: () => number;
|
2305
|
-
getUTCMilliseconds: () => number;
|
2306
|
-
getTimezoneOffset: () => number;
|
2307
|
-
setTime: (time: number) => number;
|
2308
|
-
setMilliseconds: (ms: number) => number;
|
2309
|
-
setUTCMilliseconds: (ms: number) => number;
|
2310
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
2311
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
2312
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2313
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2314
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2315
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2316
|
-
setDate: (date: number) => number;
|
2317
|
-
setUTCDate: (date: number) => number;
|
2318
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
2319
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
2320
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2321
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2322
|
-
toUTCString: () => string;
|
2323
|
-
toISOString: () => string;
|
2324
|
-
toJSON: (key?: any) => string;
|
2325
|
-
[Symbol.toPrimitive]: {
|
2326
|
-
(hint: "default"): string;
|
2327
|
-
(hint: "string"): string;
|
2328
|
-
(hint: "number"): number;
|
2329
|
-
(hint: string): string | number;
|
2330
|
-
};
|
2331
|
-
};
|
2332
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
2177
|
+
readonly token: string | null;
|
2178
|
+
getCustomToken: () => Promise<string>;
|
2333
2179
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
2334
|
-
|
2180
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
2335
2181
|
readonly permissions: {
|
2336
2182
|
fields?: string[] | undefined;
|
2337
2183
|
conditions?: any;
|
@@ -2451,11 +2297,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2451
2297
|
address: {
|
2452
2298
|
coordinates?: number[] | undefined;
|
2453
2299
|
line2?: string | undefined;
|
2454
|
-
country: string;
|
2455
2300
|
state: string;
|
2456
2301
|
line1: string;
|
2457
2302
|
city: string;
|
2458
2303
|
postcode: string;
|
2304
|
+
country: string;
|
2459
2305
|
};
|
2460
2306
|
name: string;
|
2461
2307
|
email: string;
|
@@ -2576,11 +2422,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2576
2422
|
address: {
|
2577
2423
|
coordinates?: number[] | undefined;
|
2578
2424
|
line2?: string | undefined;
|
2579
|
-
country: string;
|
2580
2425
|
state: string;
|
2581
2426
|
line1: string;
|
2582
2427
|
city: string;
|
2583
2428
|
postcode: string;
|
2429
|
+
country: string;
|
2584
2430
|
};
|
2585
2431
|
name: string;
|
2586
2432
|
email: string;
|
@@ -2659,8 +2505,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2659
2505
|
};
|
2660
2506
|
} | null | undefined;
|
2661
2507
|
day: {
|
2662
|
-
max: number;
|
2663
2508
|
min: number;
|
2509
|
+
max: number;
|
2664
2510
|
};
|
2665
2511
|
} | null | undefined;
|
2666
2512
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -2766,8 +2612,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2766
2612
|
ignoreStock?: boolean | undefined;
|
2767
2613
|
pickupTime?: {
|
2768
2614
|
day: {
|
2769
|
-
max: number;
|
2770
2615
|
min: number;
|
2616
|
+
max: number;
|
2771
2617
|
};
|
2772
2618
|
} | null | undefined;
|
2773
2619
|
pickupPointConfig?: {
|
@@ -2909,11 +2755,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2909
2755
|
address: {
|
2910
2756
|
coordinates?: number[] | undefined;
|
2911
2757
|
line2?: string | undefined;
|
2912
|
-
country: string;
|
2913
2758
|
state: string;
|
2914
2759
|
line1: string;
|
2915
2760
|
city: string;
|
2916
2761
|
postcode: string;
|
2762
|
+
country: string;
|
2917
2763
|
};
|
2918
2764
|
name: string;
|
2919
2765
|
email: string;
|
@@ -3026,11 +2872,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3026
2872
|
address: {
|
3027
2873
|
coordinates?: number[] | undefined;
|
3028
2874
|
line2?: string | undefined;
|
3029
|
-
country: string;
|
3030
2875
|
state: string;
|
3031
2876
|
line1: string;
|
3032
2877
|
city: string;
|
3033
2878
|
postcode: string;
|
2879
|
+
country: string;
|
3034
2880
|
};
|
3035
2881
|
name: string;
|
3036
2882
|
email: string;
|
@@ -3109,8 +2955,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3109
2955
|
};
|
3110
2956
|
} | null | undefined;
|
3111
2957
|
day: {
|
3112
|
-
max: number;
|
3113
2958
|
min: number;
|
2959
|
+
max: number;
|
3114
2960
|
};
|
3115
2961
|
} | null | undefined;
|
3116
2962
|
paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
|
@@ -3216,8 +3062,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3216
3062
|
ignoreStock?: boolean | undefined;
|
3217
3063
|
pickupTime?: {
|
3218
3064
|
day: {
|
3219
|
-
max: number;
|
3220
3065
|
min: number;
|
3066
|
+
max: number;
|
3221
3067
|
};
|
3222
3068
|
} | null | undefined;
|
3223
3069
|
pickupPointConfig?: {
|
@@ -3359,11 +3205,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3359
3205
|
address: {
|
3360
3206
|
coordinates?: number[] | undefined;
|
3361
3207
|
line2?: string | undefined;
|
3362
|
-
country: string;
|
3363
3208
|
state: string;
|
3364
3209
|
line1: string;
|
3365
3210
|
city: string;
|
3366
3211
|
postcode: string;
|
3212
|
+
country: string;
|
3367
3213
|
};
|
3368
3214
|
name: string;
|
3369
3215
|
email: string;
|
@@ -3372,5 +3218,15 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3372
3218
|
};
|
3373
3219
|
}[] | undefined>;
|
3374
3220
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
3375
|
-
|
3221
|
+
apps: import("vue").Ref<{
|
3222
|
+
icon: string;
|
3223
|
+
name: string;
|
3224
|
+
description: string;
|
3225
|
+
path: string;
|
3226
|
+
color: string;
|
3227
|
+
}[]>;
|
3228
|
+
selectedApp: import("vue").Ref<PortalApp | undefined>;
|
3229
|
+
registerApp: (app: PortalApp) => void;
|
3230
|
+
selectApp: (app: PortalApp) => void;
|
3231
|
+
}, "signIn" | "signInWithToken" | "signOut" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant" | "registerApp" | "selectApp">>;
|
3376
3232
|
export {};
|
package/dist/style.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.user-info-icon[data-v-3956f5be]{height:32px;min-height:32px;min-width:32px;width:32px}.user-info-btn[data-v-3956f5be]{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:289px}
|