@feedmepos/mf-common 1.1.1-alpha.2 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
- import type { FeedMeUser } from '../plugins/auth';
2
+ import type { FeedMeUser } from '../auth';
3
+ import type { FmpBusiness } from '../store';
3
4
  declare const _default: import("vue").DefineComponent<{
4
5
  user: {
5
6
  type: PropType<FeedMeUser | null>;
@@ -46,11 +47,11 @@ declare const _default: import("vue").DefineComponent<{
46
47
  address: {
47
48
  coordinates?: number[] | undefined;
48
49
  line2?: string | undefined;
49
- country: string;
50
50
  state: string;
51
51
  line1: string;
52
52
  city: string;
53
53
  postcode: string;
54
+ country: string;
54
55
  };
55
56
  name: string;
56
57
  email: string;
@@ -66,7 +67,44 @@ declare const _default: import("vue").DefineComponent<{
66
67
  }[]>;
67
68
  required: true;
68
69
  };
69
- currentBusinessId: {
70
+ currentBusiness: {
71
+ type: PropType<FmpBusiness>;
72
+ default: undefined;
73
+ };
74
+ countries: {
75
+ type: PropType<{
76
+ code: "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";
77
+ name: string;
78
+ currency: {
79
+ symbol: string;
80
+ code: string;
81
+ precision: number;
82
+ format: string;
83
+ };
84
+ taxSystems: {
85
+ code: string;
86
+ name: string;
87
+ variants: {
88
+ default?: boolean | null | undefined;
89
+ rateByTime?: {
90
+ rate: {
91
+ amount: number;
92
+ precision: number;
93
+ };
94
+ startDate: string;
95
+ }[] | undefined;
96
+ code: string;
97
+ name: string;
98
+ rate: {
99
+ amount: number;
100
+ precision: number;
101
+ };
102
+ }[];
103
+ }[];
104
+ }[]>;
105
+ required: true;
106
+ };
107
+ currentCountry: {
70
108
  type: StringConstructor;
71
109
  required: true;
72
110
  };
@@ -113,11 +151,11 @@ declare const _default: import("vue").DefineComponent<{
113
151
  address: {
114
152
  coordinates?: number[] | undefined;
115
153
  line2?: string | undefined;
116
- country: string;
117
154
  state: string;
118
155
  line1: string;
119
156
  city: string;
120
157
  postcode: string;
158
+ country: string;
121
159
  };
122
160
  name: string;
123
161
  email: string;
@@ -131,6 +169,36 @@ declare const _default: import("vue").DefineComponent<{
131
169
  warehouseQuota: number;
132
170
  menuVersion: "v2" | "v3" | "v4";
133
171
  }) => void;
172
+ "select-country": (country: {
173
+ code: "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";
174
+ name: string;
175
+ currency: {
176
+ symbol: string;
177
+ code: string;
178
+ precision: number;
179
+ format: string;
180
+ };
181
+ taxSystems: {
182
+ code: string;
183
+ name: string;
184
+ variants: {
185
+ default?: boolean | null | undefined;
186
+ rateByTime?: {
187
+ rate: {
188
+ amount: number;
189
+ precision: number;
190
+ };
191
+ startDate: string;
192
+ }[] | undefined;
193
+ code: string;
194
+ name: string;
195
+ rate: {
196
+ amount: number;
197
+ precision: number;
198
+ };
199
+ }[];
200
+ }[];
201
+ }) => void;
134
202
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
135
203
  user: {
136
204
  type: PropType<FeedMeUser | null>;
@@ -177,11 +245,11 @@ declare const _default: import("vue").DefineComponent<{
177
245
  address: {
178
246
  coordinates?: number[] | undefined;
179
247
  line2?: string | undefined;
180
- country: string;
181
248
  state: string;
182
249
  line1: string;
183
250
  city: string;
184
251
  postcode: string;
252
+ country: string;
185
253
  };
186
254
  name: string;
187
255
  email: string;
@@ -197,7 +265,44 @@ declare const _default: import("vue").DefineComponent<{
197
265
  }[]>;
198
266
  required: true;
199
267
  };
200
- currentBusinessId: {
268
+ currentBusiness: {
269
+ type: PropType<FmpBusiness>;
270
+ default: undefined;
271
+ };
272
+ countries: {
273
+ type: PropType<{
274
+ code: "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";
275
+ name: string;
276
+ currency: {
277
+ symbol: string;
278
+ code: string;
279
+ precision: number;
280
+ format: string;
281
+ };
282
+ taxSystems: {
283
+ code: string;
284
+ name: string;
285
+ variants: {
286
+ default?: boolean | null | undefined;
287
+ rateByTime?: {
288
+ rate: {
289
+ amount: number;
290
+ precision: number;
291
+ };
292
+ startDate: string;
293
+ }[] | undefined;
294
+ code: string;
295
+ name: string;
296
+ rate: {
297
+ amount: number;
298
+ precision: number;
299
+ };
300
+ }[];
301
+ }[];
302
+ }[]>;
303
+ required: true;
304
+ };
305
+ currentCountry: {
201
306
  type: StringConstructor;
202
307
  required: true;
203
308
  };
@@ -244,11 +349,11 @@ declare const _default: import("vue").DefineComponent<{
244
349
  address: {
245
350
  coordinates?: number[] | undefined;
246
351
  line2?: string | undefined;
247
- country: string;
248
352
  state: string;
249
353
  line1: string;
250
354
  city: string;
251
355
  postcode: string;
356
+ country: string;
252
357
  };
253
358
  name: string;
254
359
  email: string;
@@ -262,7 +367,38 @@ declare const _default: import("vue").DefineComponent<{
262
367
  warehouseQuota: number;
263
368
  menuVersion: "v2" | "v3" | "v4";
264
369
  }) => any) | undefined;
370
+ "onSelect-country"?: ((country: {
371
+ code: "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";
372
+ name: string;
373
+ currency: {
374
+ symbol: string;
375
+ code: string;
376
+ precision: number;
377
+ format: string;
378
+ };
379
+ taxSystems: {
380
+ code: string;
381
+ name: string;
382
+ variants: {
383
+ default?: boolean | null | undefined;
384
+ rateByTime?: {
385
+ rate: {
386
+ amount: number;
387
+ precision: number;
388
+ };
389
+ startDate: string;
390
+ }[] | undefined;
391
+ code: string;
392
+ name: string;
393
+ rate: {
394
+ amount: number;
395
+ precision: number;
396
+ };
397
+ }[];
398
+ }[];
399
+ }) => any) | undefined;
265
400
  }, {
401
+ currentBusiness: FmpBusiness;
266
402
  user: FeedMeUser | null;
267
403
  }, {}>;
268
404
  export default _default;
@@ -30,7 +30,24 @@ export declare class FmpUser {
30
30
  get permissions(): FdoPermissionRule[];
31
31
  }
32
32
  type FmNamespace = 'prod' | 'dev';
33
+ export interface PortalApp {
34
+ icon: string;
35
+ name: string;
36
+ description: string;
37
+ path: string;
38
+ color: string;
39
+ }
33
40
  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;
34
51
  sessionUser: import("vue").Ref<{
35
52
  id: string;
36
53
  email?: string | null | undefined;
@@ -223,11 +240,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
223
240
  address: {
224
241
  coordinates?: number[] | undefined;
225
242
  line2?: string | undefined;
226
- country: string;
227
243
  state: string;
228
244
  line1: string;
229
245
  city: string;
230
246
  postcode: string;
247
+ country: string;
231
248
  };
232
249
  name: string;
233
250
  email: string;
@@ -348,11 +365,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
348
365
  address: {
349
366
  coordinates?: number[] | undefined;
350
367
  line2?: string | undefined;
351
- country: string;
352
368
  state: string;
353
369
  line1: string;
354
370
  city: string;
355
371
  postcode: string;
372
+ country: string;
356
373
  };
357
374
  name: string;
358
375
  email: string;
@@ -431,8 +448,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
431
448
  };
432
449
  } | null | undefined;
433
450
  day: {
434
- max: number;
435
451
  min: number;
452
+ max: number;
436
453
  };
437
454
  } | null | undefined;
438
455
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -538,8 +555,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
538
555
  ignoreStock?: boolean | undefined;
539
556
  pickupTime?: {
540
557
  day: {
541
- max: number;
542
558
  min: number;
559
+ max: number;
543
560
  };
544
561
  } | null | undefined;
545
562
  pickupPointConfig?: {
@@ -681,11 +698,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
681
698
  address: {
682
699
  coordinates?: number[] | undefined;
683
700
  line2?: string | undefined;
684
- country: string;
685
701
  state: string;
686
702
  line1: string;
687
703
  city: string;
688
704
  postcode: string;
705
+ country: string;
689
706
  };
690
707
  name: string;
691
708
  email: string;
@@ -798,11 +815,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
798
815
  address: {
799
816
  coordinates?: number[] | undefined;
800
817
  line2?: string | undefined;
801
- country: string;
802
818
  state: string;
803
819
  line1: string;
804
820
  city: string;
805
821
  postcode: string;
822
+ country: string;
806
823
  };
807
824
  name: string;
808
825
  email: string;
@@ -881,8 +898,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
881
898
  };
882
899
  } | null | undefined;
883
900
  day: {
884
- max: number;
885
901
  min: number;
902
+ max: number;
886
903
  };
887
904
  } | null | undefined;
888
905
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -988,8 +1005,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
988
1005
  ignoreStock?: boolean | undefined;
989
1006
  pickupTime?: {
990
1007
  day: {
991
- max: number;
992
1008
  min: number;
1009
+ max: number;
993
1010
  };
994
1011
  } | null | undefined;
995
1012
  pickupPointConfig?: {
@@ -1131,11 +1148,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1131
1148
  address: {
1132
1149
  coordinates?: number[] | undefined;
1133
1150
  line2?: string | undefined;
1134
- country: string;
1135
1151
  state: string;
1136
1152
  line1: string;
1137
1153
  city: string;
1138
1154
  postcode: string;
1155
+ country: string;
1139
1156
  };
1140
1157
  name: string;
1141
1158
  email: string;
@@ -1144,7 +1161,17 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1144
1161
  };
1145
1162
  }[] | undefined>;
1146
1163
  changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
1147
- }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant">>, Pick<{
1164
+ }, "apps" | "currentAppName" | "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant">>, Pick<{
1165
+ apps: import("vue").Ref<{
1166
+ icon: string;
1167
+ name: string;
1168
+ description: string;
1169
+ path: string;
1170
+ color: string;
1171
+ }[]>;
1172
+ currentAppName: import("vue").Ref<string>;
1173
+ registerApp: (app: PortalApp) => void;
1174
+ setCurrentApp: (path: string) => void;
1148
1175
  sessionUser: import("vue").Ref<{
1149
1176
  id: string;
1150
1177
  email?: string | null | undefined;
@@ -1337,11 +1364,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1337
1364
  address: {
1338
1365
  coordinates?: number[] | undefined;
1339
1366
  line2?: string | undefined;
1340
- country: string;
1341
1367
  state: string;
1342
1368
  line1: string;
1343
1369
  city: string;
1344
1370
  postcode: string;
1371
+ country: string;
1345
1372
  };
1346
1373
  name: string;
1347
1374
  email: string;
@@ -1462,11 +1489,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1462
1489
  address: {
1463
1490
  coordinates?: number[] | undefined;
1464
1491
  line2?: string | undefined;
1465
- country: string;
1466
1492
  state: string;
1467
1493
  line1: string;
1468
1494
  city: string;
1469
1495
  postcode: string;
1496
+ country: string;
1470
1497
  };
1471
1498
  name: string;
1472
1499
  email: string;
@@ -1545,8 +1572,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1545
1572
  };
1546
1573
  } | null | undefined;
1547
1574
  day: {
1548
- max: number;
1549
1575
  min: number;
1576
+ max: number;
1550
1577
  };
1551
1578
  } | null | undefined;
1552
1579
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -1652,8 +1679,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1652
1679
  ignoreStock?: boolean | undefined;
1653
1680
  pickupTime?: {
1654
1681
  day: {
1655
- max: number;
1656
1682
  min: number;
1683
+ max: number;
1657
1684
  };
1658
1685
  } | null | undefined;
1659
1686
  pickupPointConfig?: {
@@ -1795,11 +1822,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1795
1822
  address: {
1796
1823
  coordinates?: number[] | undefined;
1797
1824
  line2?: string | undefined;
1798
- country: string;
1799
1825
  state: string;
1800
1826
  line1: string;
1801
1827
  city: string;
1802
1828
  postcode: string;
1829
+ country: string;
1803
1830
  };
1804
1831
  name: string;
1805
1832
  email: string;
@@ -1912,11 +1939,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1912
1939
  address: {
1913
1940
  coordinates?: number[] | undefined;
1914
1941
  line2?: string | undefined;
1915
- country: string;
1916
1942
  state: string;
1917
1943
  line1: string;
1918
1944
  city: string;
1919
1945
  postcode: string;
1946
+ country: string;
1920
1947
  };
1921
1948
  name: string;
1922
1949
  email: string;
@@ -1995,8 +2022,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
1995
2022
  };
1996
2023
  } | null | undefined;
1997
2024
  day: {
1998
- max: number;
1999
2025
  min: number;
2026
+ max: number;
2000
2027
  };
2001
2028
  } | null | undefined;
2002
2029
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -2102,8 +2129,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2102
2129
  ignoreStock?: boolean | undefined;
2103
2130
  pickupTime?: {
2104
2131
  day: {
2105
- max: number;
2106
2132
  min: number;
2133
+ max: number;
2107
2134
  };
2108
2135
  } | null | undefined;
2109
2136
  pickupPointConfig?: {
@@ -2245,11 +2272,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2245
2272
  address: {
2246
2273
  coordinates?: number[] | undefined;
2247
2274
  line2?: string | undefined;
2248
- country: string;
2249
2275
  state: string;
2250
2276
  line1: string;
2251
2277
  city: string;
2252
2278
  postcode: string;
2279
+ country: string;
2253
2280
  };
2254
2281
  name: string;
2255
2282
  email: string;
@@ -2259,6 +2286,16 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2259
2286
  }[] | undefined>;
2260
2287
  changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
2261
2288
  }, never>, Pick<{
2289
+ apps: import("vue").Ref<{
2290
+ icon: string;
2291
+ name: string;
2292
+ description: string;
2293
+ path: string;
2294
+ color: string;
2295
+ }[]>;
2296
+ currentAppName: import("vue").Ref<string>;
2297
+ registerApp: (app: PortalApp) => void;
2298
+ setCurrentApp: (path: string) => void;
2262
2299
  sessionUser: import("vue").Ref<{
2263
2300
  id: string;
2264
2301
  email?: string | null | undefined;
@@ -2451,11 +2488,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2451
2488
  address: {
2452
2489
  coordinates?: number[] | undefined;
2453
2490
  line2?: string | undefined;
2454
- country: string;
2455
2491
  state: string;
2456
2492
  line1: string;
2457
2493
  city: string;
2458
2494
  postcode: string;
2495
+ country: string;
2459
2496
  };
2460
2497
  name: string;
2461
2498
  email: string;
@@ -2576,11 +2613,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2576
2613
  address: {
2577
2614
  coordinates?: number[] | undefined;
2578
2615
  line2?: string | undefined;
2579
- country: string;
2580
2616
  state: string;
2581
2617
  line1: string;
2582
2618
  city: string;
2583
2619
  postcode: string;
2620
+ country: string;
2584
2621
  };
2585
2622
  name: string;
2586
2623
  email: string;
@@ -2659,8 +2696,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2659
2696
  };
2660
2697
  } | null | undefined;
2661
2698
  day: {
2662
- max: number;
2663
2699
  min: number;
2700
+ max: number;
2664
2701
  };
2665
2702
  } | null | undefined;
2666
2703
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -2766,8 +2803,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2766
2803
  ignoreStock?: boolean | undefined;
2767
2804
  pickupTime?: {
2768
2805
  day: {
2769
- max: number;
2770
2806
  min: number;
2807
+ max: number;
2771
2808
  };
2772
2809
  } | null | undefined;
2773
2810
  pickupPointConfig?: {
@@ -2909,11 +2946,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
2909
2946
  address: {
2910
2947
  coordinates?: number[] | undefined;
2911
2948
  line2?: string | undefined;
2912
- country: string;
2913
2949
  state: string;
2914
2950
  line1: string;
2915
2951
  city: string;
2916
2952
  postcode: string;
2953
+ country: string;
2917
2954
  };
2918
2955
  name: string;
2919
2956
  email: string;
@@ -3026,11 +3063,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3026
3063
  address: {
3027
3064
  coordinates?: number[] | undefined;
3028
3065
  line2?: string | undefined;
3029
- country: string;
3030
3066
  state: string;
3031
3067
  line1: string;
3032
3068
  city: string;
3033
3069
  postcode: string;
3070
+ country: string;
3034
3071
  };
3035
3072
  name: string;
3036
3073
  email: string;
@@ -3109,8 +3146,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3109
3146
  };
3110
3147
  } | null | undefined;
3111
3148
  day: {
3112
- max: number;
3113
3149
  min: number;
3150
+ max: number;
3114
3151
  };
3115
3152
  } | null | undefined;
3116
3153
  paymentTypes?: ("cash" | "ePayment" | "credit" | "ePaymentSandbox")[] | undefined;
@@ -3216,8 +3253,8 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3216
3253
  ignoreStock?: boolean | undefined;
3217
3254
  pickupTime?: {
3218
3255
  day: {
3219
- max: number;
3220
3256
  min: number;
3257
+ max: number;
3221
3258
  };
3222
3259
  } | null | undefined;
3223
3260
  pickupPointConfig?: {
@@ -3359,11 +3396,11 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3359
3396
  address: {
3360
3397
  coordinates?: number[] | undefined;
3361
3398
  line2?: string | undefined;
3362
- country: string;
3363
3399
  state: string;
3364
3400
  line1: string;
3365
3401
  city: string;
3366
3402
  postcode: string;
3403
+ country: string;
3367
3404
  };
3368
3405
  name: string;
3369
3406
  email: string;
@@ -3372,5 +3409,5 @@ export declare const useCore: import("pinia").StoreDefinition<"portal-core", imp
3372
3409
  };
3373
3410
  }[] | undefined>;
3374
3411
  changeRestaurant: (restaurant: FmpRestaurant | undefined) => void;
3375
- }, "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant">>;
3412
+ }, "registerApp" | "setCurrentApp" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "changeCountry" | "readBusinesses" | "changeBusiness" | "readRestaurants" | "changeRestaurant">>;
3376
3413
  export {};
package/dist/style.css ADDED
@@ -0,0 +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}