@feedmepos/mf-common 1.1.1 → 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 +8 -1
- package/dist/app.d.ts +125 -648
- package/dist/app.js +3035 -3011
- package/dist/auth.d.ts +2 -9
- package/dist/store.d.ts +38 -219
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/auth.d.ts
CHANGED
@@ -12,23 +12,16 @@ export declare class FeedMeAuth {
|
|
12
12
|
static clientId: string;
|
13
13
|
static baseUrl: string;
|
14
14
|
private static _token;
|
15
|
-
private static _currentUser;
|
16
15
|
private static authStateChangeCallbacks;
|
17
16
|
private static bgIframe;
|
18
17
|
static setBaseUrl(isDev: boolean): void;
|
19
18
|
private static startBackground;
|
20
19
|
static initialize(clientId: string): void;
|
21
20
|
static signIn(root?: HTMLElement): void;
|
22
|
-
static
|
21
|
+
static setToken(token: string): void;
|
22
|
+
static onAuthStateChanged(callback: (user: FeedMeUser | null, token: string | null) => void): () => void;
|
23
23
|
static signOut(): void;
|
24
24
|
static unmountPrompt(): void;
|
25
|
-
static get currentUser(): {
|
26
|
-
id: string;
|
27
|
-
email?: string | null | undefined;
|
28
|
-
photoURL?: string | null | undefined;
|
29
|
-
displayName?: string | null | undefined;
|
30
|
-
phoneNumber?: string | null | undefined;
|
31
|
-
} | null;
|
32
25
|
static get token(): string | null;
|
33
26
|
static getCustomToken(): Promise<string>;
|
34
27
|
static refreshToken(): Promise<string>;
|
package/dist/store.d.ts
CHANGED
@@ -20,13 +20,12 @@ 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';
|
@@ -38,89 +37,19 @@ export interface PortalApp {
|
|
38
37
|
color: string;
|
39
38
|
}
|
40
39
|
export declare const useCore: import("pinia").StoreDefinition<"portal-core", import("pinia")._UnwrapAll<Pick<{
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
description: string;
|
45
|
-
path: string;
|
46
|
-
color: string;
|
47
|
-
}[]>;
|
48
|
-
currentAppName: import("vue").Ref<string>;
|
49
|
-
registerApp: (app: PortalApp) => void;
|
50
|
-
setCurrentApp: (path: string) => void;
|
40
|
+
signIn: () => Promise<void>;
|
41
|
+
signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
|
42
|
+
signOut: () => Promise<void>;
|
51
43
|
sessionUser: import("vue").Ref<{
|
52
44
|
id: string;
|
53
45
|
email?: string | null | undefined;
|
54
46
|
photoURL?: string | null | undefined;
|
55
47
|
displayName?: string | null | undefined;
|
56
48
|
phoneNumber?: string | null | undefined;
|
57
|
-
token: string;
|
58
|
-
|
59
|
-
toString: () => string;
|
60
|
-
toDateString: () => string;
|
61
|
-
toTimeString: () => string;
|
62
|
-
toLocaleString: {
|
63
|
-
(): string;
|
64
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
65
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
66
|
-
};
|
67
|
-
toLocaleDateString: {
|
68
|
-
(): string;
|
69
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
70
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
71
|
-
};
|
72
|
-
toLocaleTimeString: {
|
73
|
-
(): string;
|
74
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
75
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
76
|
-
};
|
77
|
-
valueOf: () => number;
|
78
|
-
getTime: () => number;
|
79
|
-
getFullYear: () => number;
|
80
|
-
getUTCFullYear: () => number;
|
81
|
-
getMonth: () => number;
|
82
|
-
getUTCMonth: () => number;
|
83
|
-
getDate: () => number;
|
84
|
-
getUTCDate: () => number;
|
85
|
-
getDay: () => number;
|
86
|
-
getUTCDay: () => number;
|
87
|
-
getHours: () => number;
|
88
|
-
getUTCHours: () => number;
|
89
|
-
getMinutes: () => number;
|
90
|
-
getUTCMinutes: () => number;
|
91
|
-
getSeconds: () => number;
|
92
|
-
getUTCSeconds: () => number;
|
93
|
-
getMilliseconds: () => number;
|
94
|
-
getUTCMilliseconds: () => number;
|
95
|
-
getTimezoneOffset: () => number;
|
96
|
-
setTime: (time: number) => number;
|
97
|
-
setMilliseconds: (ms: number) => number;
|
98
|
-
setUTCMilliseconds: (ms: number) => number;
|
99
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
100
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
101
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
102
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
103
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
104
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
105
|
-
setDate: (date: number) => number;
|
106
|
-
setUTCDate: (date: number) => number;
|
107
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
108
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
109
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
110
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
111
|
-
toUTCString: () => string;
|
112
|
-
toISOString: () => string;
|
113
|
-
toJSON: (key?: any) => string;
|
114
|
-
[Symbol.toPrimitive]: {
|
115
|
-
(hint: "default"): string;
|
116
|
-
(hint: "string"): string;
|
117
|
-
(hint: "number"): number;
|
118
|
-
(hint: string): string | number;
|
119
|
-
};
|
120
|
-
};
|
121
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
49
|
+
readonly token: string | null;
|
50
|
+
getCustomToken: () => Promise<string>;
|
122
51
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
123
|
-
|
52
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
124
53
|
readonly permissions: {
|
125
54
|
fields?: string[] | undefined;
|
126
55
|
conditions?: any;
|
@@ -1161,7 +1090,6 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1161
1090
|
};
|
1162
1091
|
}[] | undefined>;
|
1163
1092
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
1164
|
-
}, "apps" | "currentAppName" | "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant">>, Pick<{
|
1165
1093
|
apps: import("vue").Ref<{
|
1166
1094
|
icon: string;
|
1167
1095
|
name: string;
|
@@ -1169,82 +1097,23 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
1169
1097
|
path: string;
|
1170
1098
|
color: string;
|
1171
1099
|
}[]>;
|
1172
|
-
|
1100
|
+
selectedApp: import("vue").Ref<PortalApp | undefined>;
|
1173
1101
|
registerApp: (app: PortalApp) => void;
|
1174
|
-
|
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>;
|
1175
1107
|
sessionUser: import("vue").Ref<{
|
1176
1108
|
id: string;
|
1177
1109
|
email?: string | null | undefined;
|
1178
1110
|
photoURL?: string | null | undefined;
|
1179
1111
|
displayName?: string | null | undefined;
|
1180
1112
|
phoneNumber?: string | null | undefined;
|
1181
|
-
token: string;
|
1182
|
-
|
1183
|
-
toString: () => string;
|
1184
|
-
toDateString: () => string;
|
1185
|
-
toTimeString: () => string;
|
1186
|
-
toLocaleString: {
|
1187
|
-
(): string;
|
1188
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1189
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1190
|
-
};
|
1191
|
-
toLocaleDateString: {
|
1192
|
-
(): string;
|
1193
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1194
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1195
|
-
};
|
1196
|
-
toLocaleTimeString: {
|
1197
|
-
(): string;
|
1198
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1199
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
1200
|
-
};
|
1201
|
-
valueOf: () => number;
|
1202
|
-
getTime: () => number;
|
1203
|
-
getFullYear: () => number;
|
1204
|
-
getUTCFullYear: () => number;
|
1205
|
-
getMonth: () => number;
|
1206
|
-
getUTCMonth: () => number;
|
1207
|
-
getDate: () => number;
|
1208
|
-
getUTCDate: () => number;
|
1209
|
-
getDay: () => number;
|
1210
|
-
getUTCDay: () => number;
|
1211
|
-
getHours: () => number;
|
1212
|
-
getUTCHours: () => number;
|
1213
|
-
getMinutes: () => number;
|
1214
|
-
getUTCMinutes: () => number;
|
1215
|
-
getSeconds: () => number;
|
1216
|
-
getUTCSeconds: () => number;
|
1217
|
-
getMilliseconds: () => number;
|
1218
|
-
getUTCMilliseconds: () => number;
|
1219
|
-
getTimezoneOffset: () => number;
|
1220
|
-
setTime: (time: number) => number;
|
1221
|
-
setMilliseconds: (ms: number) => number;
|
1222
|
-
setUTCMilliseconds: (ms: number) => number;
|
1223
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
1224
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
1225
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1226
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
1227
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1228
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
1229
|
-
setDate: (date: number) => number;
|
1230
|
-
setUTCDate: (date: number) => number;
|
1231
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
1232
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
1233
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1234
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
1235
|
-
toUTCString: () => string;
|
1236
|
-
toISOString: () => string;
|
1237
|
-
toJSON: (key?: any) => string;
|
1238
|
-
[Symbol.toPrimitive]: {
|
1239
|
-
(hint: "default"): string;
|
1240
|
-
(hint: "string"): string;
|
1241
|
-
(hint: "number"): number;
|
1242
|
-
(hint: string): string | number;
|
1243
|
-
};
|
1244
|
-
};
|
1245
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
1113
|
+
readonly token: string | null;
|
1114
|
+
getCustomToken: () => Promise<string>;
|
1246
1115
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
1247
|
-
|
1116
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
1248
1117
|
readonly permissions: {
|
1249
1118
|
fields?: string[] | undefined;
|
1250
1119
|
conditions?: any;
|
@@ -2285,7 +2154,6 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2285
2154
|
};
|
2286
2155
|
}[] | undefined>;
|
2287
2156
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
2288
|
-
}, never>, Pick<{
|
2289
2157
|
apps: import("vue").Ref<{
|
2290
2158
|
icon: string;
|
2291
2159
|
name: string;
|
@@ -2293,82 +2161,23 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
2293
2161
|
path: string;
|
2294
2162
|
color: string;
|
2295
2163
|
}[]>;
|
2296
|
-
|
2164
|
+
selectedApp: import("vue").Ref<PortalApp | undefined>;
|
2297
2165
|
registerApp: (app: PortalApp) => void;
|
2298
|
-
|
2166
|
+
selectApp: (app: PortalApp) => void;
|
2167
|
+
}, never>, Pick<{
|
2168
|
+
signIn: () => Promise<void>;
|
2169
|
+
signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
|
2170
|
+
signOut: () => Promise<void>;
|
2299
2171
|
sessionUser: import("vue").Ref<{
|
2300
2172
|
id: string;
|
2301
2173
|
email?: string | null | undefined;
|
2302
2174
|
photoURL?: string | null | undefined;
|
2303
2175
|
displayName?: string | null | undefined;
|
2304
2176
|
phoneNumber?: string | null | undefined;
|
2305
|
-
token: string;
|
2306
|
-
|
2307
|
-
toString: () => string;
|
2308
|
-
toDateString: () => string;
|
2309
|
-
toTimeString: () => string;
|
2310
|
-
toLocaleString: {
|
2311
|
-
(): string;
|
2312
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2313
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2314
|
-
};
|
2315
|
-
toLocaleDateString: {
|
2316
|
-
(): string;
|
2317
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2318
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2319
|
-
};
|
2320
|
-
toLocaleTimeString: {
|
2321
|
-
(): string;
|
2322
|
-
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2323
|
-
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
|
2324
|
-
};
|
2325
|
-
valueOf: () => number;
|
2326
|
-
getTime: () => number;
|
2327
|
-
getFullYear: () => number;
|
2328
|
-
getUTCFullYear: () => number;
|
2329
|
-
getMonth: () => number;
|
2330
|
-
getUTCMonth: () => number;
|
2331
|
-
getDate: () => number;
|
2332
|
-
getUTCDate: () => number;
|
2333
|
-
getDay: () => number;
|
2334
|
-
getUTCDay: () => number;
|
2335
|
-
getHours: () => number;
|
2336
|
-
getUTCHours: () => number;
|
2337
|
-
getMinutes: () => number;
|
2338
|
-
getUTCMinutes: () => number;
|
2339
|
-
getSeconds: () => number;
|
2340
|
-
getUTCSeconds: () => number;
|
2341
|
-
getMilliseconds: () => number;
|
2342
|
-
getUTCMilliseconds: () => number;
|
2343
|
-
getTimezoneOffset: () => number;
|
2344
|
-
setTime: (time: number) => number;
|
2345
|
-
setMilliseconds: (ms: number) => number;
|
2346
|
-
setUTCMilliseconds: (ms: number) => number;
|
2347
|
-
setSeconds: (sec: number, ms?: number | undefined) => number;
|
2348
|
-
setUTCSeconds: (sec: number, ms?: number | undefined) => number;
|
2349
|
-
setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2350
|
-
setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
|
2351
|
-
setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2352
|
-
setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
|
2353
|
-
setDate: (date: number) => number;
|
2354
|
-
setUTCDate: (date: number) => number;
|
2355
|
-
setMonth: (month: number, date?: number | undefined) => number;
|
2356
|
-
setUTCMonth: (month: number, date?: number | undefined) => number;
|
2357
|
-
setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2358
|
-
setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
|
2359
|
-
toUTCString: () => string;
|
2360
|
-
toISOString: () => string;
|
2361
|
-
toJSON: (key?: any) => string;
|
2362
|
-
[Symbol.toPrimitive]: {
|
2363
|
-
(hint: "default"): string;
|
2364
|
-
(hint: "string"): string;
|
2365
|
-
(hint: "number"): number;
|
2366
|
-
(hint: string): string | number;
|
2367
|
-
};
|
2368
|
-
};
|
2369
|
-
setToken: (token: string, tokenExpiredAt: Date) => void;
|
2177
|
+
readonly token: string | null;
|
2178
|
+
getCustomToken: () => Promise<string>;
|
2370
2179
|
setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
|
2371
|
-
|
2180
|
+
setPermissions: (permissions: FdoPermissionRule[]) => void;
|
2372
2181
|
readonly permissions: {
|
2373
2182
|
fields?: string[] | undefined;
|
2374
2183
|
conditions?: any;
|
@@ -3409,5 +3218,15 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
|
|
3409
3218
|
};
|
3410
3219
|
}[] | undefined>;
|
3411
3220
|
changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
|
3412
|
-
|
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">>;
|
3413
3232
|
export {};
|
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.user-info-icon[data-v-
|
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}
|