@feedmepos/mf-common 1.1.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/store.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { F_COUNTRY, FdoPermissionRule, FdoRestaurant } from '@feedmepos/core/entity';
1
+ import { F_COUNTRY, FdoBusiness, FdoPermissionRule, FdoRestaurant } from '@feedmepos/core/entity';
2
2
  import { type FeedMeUser } from './auth';
3
- export interface FmpBusiness {
3
+ export interface FmpBusiness extends FdoBusiness {
4
4
  id: string;
5
- name: string;
6
5
  }
7
6
  export interface FmpRestaurant extends FdoRestaurant {
8
7
  managable: boolean;
@@ -20,13 +19,12 @@ export declare class FmpUser {
20
19
  photoURL?: string | null;
21
20
  displayName?: string | null;
22
21
  phoneNumber?: string | null;
23
- token: string;
24
- tokenExpiredAt: Date;
25
- setToken(token: string, tokenExpiredAt: Date): void;
22
+ get token(): string | null;
23
+ getCustomToken(): Promise<string>;
26
24
  private _adminPermissions;
27
25
  setAdminPermisssions(permissions: FdoPermissionRule[]): void;
28
26
  private _permissions;
29
- setPermisssions(permissions: FdoPermissionRule[]): void;
27
+ setPermissions(permissions: FdoPermissionRule[]): void;
30
28
  get permissions(): FdoPermissionRule[];
31
29
  }
32
30
  type FmNamespace = 'prod' | 'dev';
@@ -38,89 +36,19 @@ export interface PortalApp {
38
36
  color: string;
39
37
  }
40
38
  export declare const useCore: import("pinia").StoreDefinition<"portal-core", import("pinia")._UnwrapAll<Pick<{
41
- apps: import("vue").Ref<{
42
- icon: string;
43
- name: string;
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;
39
+ signIn: () => Promise<void>;
40
+ signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
41
+ signOut: () => Promise<void>;
51
42
  sessionUser: import("vue").Ref<{
52
43
  id: string;
53
44
  email?: string | null | undefined;
54
45
  photoURL?: string | null | undefined;
55
46
  displayName?: string | null | undefined;
56
47
  phoneNumber?: string | null | undefined;
57
- token: string;
58
- tokenExpiredAt: {
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;
48
+ readonly token: string | null;
49
+ getCustomToken: () => Promise<string>;
122
50
  setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
123
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
51
+ setPermissions: (permissions: FdoPermissionRule[]) => void;
124
52
  readonly permissions: {
125
53
  fields?: string[] | undefined;
126
54
  conditions?: any;
@@ -139,6 +67,7 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
139
67
  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">;
140
68
  changeCountry: (country: F_COUNTRY) => Promise<void>;
141
69
  businesses: import("vue").Ref<{
70
+ id: string;
142
71
  internal?: boolean | null | undefined;
143
72
  expiredAt?: string | null | undefined;
144
73
  url?: string | null | undefined;
@@ -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
- currentAppName: import("vue").Ref<string>;
1100
+ selectedApp: import("vue").Ref<PortalApp | undefined>;
1173
1101
  registerApp: (app: PortalApp) => void;
1174
- setCurrentApp: (path: string) => 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>;
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
- tokenExpiredAt: {
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
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
1116
+ setPermissions: (permissions: FdoPermissionRule[]) => void;
1248
1117
  readonly permissions: {
1249
1118
  fields?: string[] | undefined;
1250
1119
  conditions?: any;
@@ -1263,6 +1132,7 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1263
1132
  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">;
1264
1133
  changeCountry: (country: F_COUNTRY) => Promise<void>;
1265
1134
  businesses: import("vue").Ref<{
1135
+ id: string;
1266
1136
  internal?: boolean | null | undefined;
1267
1137
  expiredAt?: string | null | undefined;
1268
1138
  url?: string | null | undefined;
@@ -2285,7 +2155,6 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2285
2155
  };
2286
2156
  }[] | undefined>;
2287
2157
  changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
2288
- }, never>, Pick<{
2289
2158
  apps: import("vue").Ref<{
2290
2159
  icon: string;
2291
2160
  name: string;
@@ -2293,82 +2162,23 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2293
2162
  path: string;
2294
2163
  color: string;
2295
2164
  }[]>;
2296
- currentAppName: import("vue").Ref<string>;
2165
+ selectedApp: import("vue").Ref<PortalApp | undefined>;
2297
2166
  registerApp: (app: PortalApp) => void;
2298
- setCurrentApp: (path: string) => void;
2167
+ selectApp: (app: PortalApp) => void;
2168
+ }, never>, Pick<{
2169
+ signIn: () => Promise<void>;
2170
+ signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
2171
+ signOut: () => Promise<void>;
2299
2172
  sessionUser: import("vue").Ref<{
2300
2173
  id: string;
2301
2174
  email?: string | null | undefined;
2302
2175
  photoURL?: string | null | undefined;
2303
2176
  displayName?: string | null | undefined;
2304
2177
  phoneNumber?: string | null | undefined;
2305
- token: string;
2306
- tokenExpiredAt: {
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;
2178
+ readonly token: string | null;
2179
+ getCustomToken: () => Promise<string>;
2370
2180
  setAdminPermisssions: (permissions: FdoPermissionRule[]) => void;
2371
- setPermisssions: (permissions: FdoPermissionRule[]) => void;
2181
+ setPermissions: (permissions: FdoPermissionRule[]) => void;
2372
2182
  readonly permissions: {
2373
2183
  fields?: string[] | undefined;
2374
2184
  conditions?: any;
@@ -2387,6 +2197,7 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2387
2197
  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">;
2388
2198
  changeCountry: (country: F_COUNTRY) => Promise<void>;
2389
2199
  businesses: import("vue").Ref<{
2200
+ id: string;
2390
2201
  internal?: boolean | null | undefined;
2391
2202
  expiredAt?: string | null | undefined;
2392
2203
  url?: string | null | undefined;
@@ -3409,5 +3220,15 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3409
3220
  };
3410
3221
  }[] | undefined>;
3411
3222
  changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
3412
- }, "registerApp" | "setCurrentApp" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant">>;
3223
+ apps: import("vue").Ref<{
3224
+ icon: string;
3225
+ name: string;
3226
+ description: string;
3227
+ path: string;
3228
+ color: string;
3229
+ }[]>;
3230
+ selectedApp: import("vue").Ref<PortalApp | undefined>;
3231
+ registerApp: (app: PortalApp) => void;
3232
+ selectApp: (app: PortalApp) => void;
3233
+ }, "signIn" | "signInWithToken" | "signOut" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant" | "registerApp" | "selectApp">>;
3413
3234
  export {};
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .user-info-icon[data-v-ae89d941]{height:32px;min-height:32px;min-width:32px;width:32px}.user-info-btn[data-v-ae89d941]{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:289px}
1
+ .business-info-icon{height:45px;min-height:45px;min-width:45px;width:45px;vertical-align:middle;border-radius:50%}.user-info-icon[data-v-c717a0b5]{height:32px;min-height:32px;min-width:32px;width:32px}.user-info-btn[data-v-c717a0b5]{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:289px}