@feedmepos/mf-common 1.12.1 → 1.12.3

Sign up to get free protection for your applications and to get access to all the features.
package/dist/store.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { F_COUNTRY, FdoAgent, FdoBusiness, FdoPermissionRule, FdoRestaurant } from "@feedmepos/core/entity";
2
+ import { type PublicSettingApi } from "./api";
2
3
  import { type FeedMeUser } from "@feedmepos/auth";
3
4
  import type { Breakpoints } from "@feedmepos/ui-library/dist/composables/useBreakpoints";
4
5
  import { useI18n } from "@feedmepos/i18n";
@@ -1041,29 +1042,189 @@ export declare const useCoreStore: () => {
1041
1042
  hideSidebar: import("vue").Ref<boolean, boolean>;
1042
1043
  sidebarComponent: import("vue").ShallowRef<any>;
1043
1044
  isEmbedded: import("vue").Ref<boolean, boolean>;
1044
- adsConfig: import("vue").Ref<{
1045
- url?: string | undefined;
1046
- desktop?: {
1047
- imageUrl: string;
1048
- } | undefined;
1049
- tablet?: {
1050
- imageUrl: string;
1051
- } | undefined;
1052
- mobile?: {
1053
- imageUrl: string;
1054
- } | undefined;
1055
- }, PortalAdConfig | {
1056
- url?: string | undefined;
1057
- desktop?: {
1058
- imageUrl: string;
1059
- } | undefined;
1060
- tablet?: {
1061
- imageUrl: string;
1062
- } | undefined;
1063
- mobile?: {
1064
- imageUrl: string;
1065
- } | undefined;
1066
- }>;
1045
+ publicSetting: import("vue").Ref<{
1046
+ delivery: {
1047
+ feedMe: {
1048
+ operatingHours?: {
1049
+ 0: {
1050
+ hours: {
1051
+ end: string;
1052
+ start: string;
1053
+ }[];
1054
+ enable: boolean;
1055
+ };
1056
+ 2: {
1057
+ hours: {
1058
+ end: string;
1059
+ start: string;
1060
+ }[];
1061
+ enable: boolean;
1062
+ };
1063
+ 1: {
1064
+ hours: {
1065
+ end: string;
1066
+ start: string;
1067
+ }[];
1068
+ enable: boolean;
1069
+ };
1070
+ 3: {
1071
+ hours: {
1072
+ end: string;
1073
+ start: string;
1074
+ }[];
1075
+ enable: boolean;
1076
+ };
1077
+ 4: {
1078
+ hours: {
1079
+ end: string;
1080
+ start: string;
1081
+ }[];
1082
+ enable: boolean;
1083
+ };
1084
+ 5: {
1085
+ hours: {
1086
+ end: string;
1087
+ start: string;
1088
+ }[];
1089
+ enable: boolean;
1090
+ };
1091
+ 6: {
1092
+ hours: {
1093
+ end: string;
1094
+ start: string;
1095
+ }[];
1096
+ enable: boolean;
1097
+ };
1098
+ } | null | undefined;
1099
+ maxDistance: number;
1100
+ enable: boolean;
1101
+ areas: {
1102
+ polygon: number[][];
1103
+ }[];
1104
+ };
1105
+ };
1106
+ assets: {
1107
+ groups: {
1108
+ key: "pos";
1109
+ assets: {
1110
+ type: "image" | "lottie";
1111
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
1112
+ path: string;
1113
+ files: {
1114
+ url: string;
1115
+ createdAt: string;
1116
+ config: {
1117
+ useWhen: {
1118
+ end: string;
1119
+ start: string;
1120
+ };
1121
+ recurring: boolean;
1122
+ };
1123
+ lastUpdate: string;
1124
+ }[];
1125
+ }[];
1126
+ }[];
1127
+ };
1128
+ sms: {
1129
+ firebase: boolean;
1130
+ };
1131
+ aiSettings: {
1132
+ remy: {
1133
+ enable: boolean;
1134
+ };
1135
+ };
1136
+ } | null, PublicSettingApi | {
1137
+ delivery: {
1138
+ feedMe: {
1139
+ operatingHours?: {
1140
+ 0: {
1141
+ hours: {
1142
+ end: string;
1143
+ start: string;
1144
+ }[];
1145
+ enable: boolean;
1146
+ };
1147
+ 2: {
1148
+ hours: {
1149
+ end: string;
1150
+ start: string;
1151
+ }[];
1152
+ enable: boolean;
1153
+ };
1154
+ 1: {
1155
+ hours: {
1156
+ end: string;
1157
+ start: string;
1158
+ }[];
1159
+ enable: boolean;
1160
+ };
1161
+ 3: {
1162
+ hours: {
1163
+ end: string;
1164
+ start: string;
1165
+ }[];
1166
+ enable: boolean;
1167
+ };
1168
+ 4: {
1169
+ hours: {
1170
+ end: string;
1171
+ start: string;
1172
+ }[];
1173
+ enable: boolean;
1174
+ };
1175
+ 5: {
1176
+ hours: {
1177
+ end: string;
1178
+ start: string;
1179
+ }[];
1180
+ enable: boolean;
1181
+ };
1182
+ 6: {
1183
+ hours: {
1184
+ end: string;
1185
+ start: string;
1186
+ }[];
1187
+ enable: boolean;
1188
+ };
1189
+ } | null | undefined;
1190
+ maxDistance: number;
1191
+ enable: boolean;
1192
+ areas: {
1193
+ polygon: number[][];
1194
+ }[];
1195
+ };
1196
+ };
1197
+ assets: {
1198
+ groups: {
1199
+ key: "pos";
1200
+ assets: {
1201
+ type: "image" | "lottie";
1202
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
1203
+ path: string;
1204
+ files: {
1205
+ url: string;
1206
+ createdAt: string;
1207
+ config: {
1208
+ useWhen: {
1209
+ end: string;
1210
+ start: string;
1211
+ };
1212
+ recurring: boolean;
1213
+ };
1214
+ lastUpdate: string;
1215
+ }[];
1216
+ }[];
1217
+ }[];
1218
+ };
1219
+ sms: {
1220
+ firebase: boolean;
1221
+ };
1222
+ aiSettings: {
1223
+ remy: {
1224
+ enable: boolean;
1225
+ };
1226
+ };
1227
+ } | null>;
1067
1228
  currentRestaurantSetting: import("vue").ComputedRef<{
1068
1229
  catalogId?: string | null | undefined;
1069
1230
  takeaway?: {
@@ -2285,18 +2446,98 @@ export declare const useCoreStore: () => {
2285
2446
  hideSidebar: boolean;
2286
2447
  sidebarComponent: any;
2287
2448
  isEmbedded: boolean;
2288
- adsConfig: {
2289
- url?: string | undefined;
2290
- desktop?: {
2291
- imageUrl: string;
2292
- } | undefined;
2293
- tablet?: {
2294
- imageUrl: string;
2295
- } | undefined;
2296
- mobile?: {
2297
- imageUrl: string;
2298
- } | undefined;
2299
- };
2449
+ publicSetting: {
2450
+ delivery: {
2451
+ feedMe: {
2452
+ operatingHours?: {
2453
+ 0: {
2454
+ hours: {
2455
+ end: string;
2456
+ start: string;
2457
+ }[];
2458
+ enable: boolean;
2459
+ };
2460
+ 2: {
2461
+ hours: {
2462
+ end: string;
2463
+ start: string;
2464
+ }[];
2465
+ enable: boolean;
2466
+ };
2467
+ 1: {
2468
+ hours: {
2469
+ end: string;
2470
+ start: string;
2471
+ }[];
2472
+ enable: boolean;
2473
+ };
2474
+ 3: {
2475
+ hours: {
2476
+ end: string;
2477
+ start: string;
2478
+ }[];
2479
+ enable: boolean;
2480
+ };
2481
+ 4: {
2482
+ hours: {
2483
+ end: string;
2484
+ start: string;
2485
+ }[];
2486
+ enable: boolean;
2487
+ };
2488
+ 5: {
2489
+ hours: {
2490
+ end: string;
2491
+ start: string;
2492
+ }[];
2493
+ enable: boolean;
2494
+ };
2495
+ 6: {
2496
+ hours: {
2497
+ end: string;
2498
+ start: string;
2499
+ }[];
2500
+ enable: boolean;
2501
+ };
2502
+ } | null | undefined;
2503
+ maxDistance: number;
2504
+ enable: boolean;
2505
+ areas: {
2506
+ polygon: number[][];
2507
+ }[];
2508
+ };
2509
+ };
2510
+ assets: {
2511
+ groups: {
2512
+ key: "pos";
2513
+ assets: {
2514
+ type: "image" | "lottie";
2515
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
2516
+ path: string;
2517
+ files: {
2518
+ url: string;
2519
+ createdAt: string;
2520
+ config: {
2521
+ useWhen: {
2522
+ end: string;
2523
+ start: string;
2524
+ };
2525
+ recurring: boolean;
2526
+ };
2527
+ lastUpdate: string;
2528
+ }[];
2529
+ }[];
2530
+ }[];
2531
+ };
2532
+ sms: {
2533
+ firebase: boolean;
2534
+ };
2535
+ aiSettings: {
2536
+ remy: {
2537
+ enable: boolean;
2538
+ };
2539
+ };
2540
+ } | null;
2300
2541
  } & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
2301
2542
  signIn: () => Promise<void>;
2302
2543
  signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
@@ -2358,7 +2599,7 @@ export declare const useCoreStore: () => {
2358
2599
  } | null>;
2359
2600
  setUser: (user: FeedMeUser | null) => Promise<void>;
2360
2601
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
2361
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
2602
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
2362
2603
  namespace: import("vue").Ref<FmNamespace, FmNamespace>;
2363
2604
  setNamespace: (ns: FmNamespace) => void;
2364
2605
  currentCountry: import("vue").Ref<string | undefined, string | undefined>;
@@ -2490,7 +2731,7 @@ export declare const useCoreStore: () => {
2490
2731
  menuVersion: string;
2491
2732
  }[]>;
2492
2733
  currentBusiness: import("vue").Ref<FmpBusiness | undefined, FmpBusiness | undefined>;
2493
- readBusinesses: () => Promise<FmpBusiness | undefined>;
2734
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
2494
2735
  setCachedBusiness: (id: string) => void;
2495
2736
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
2496
2737
  restaurants: import("vue").Ref<{
@@ -3962,31 +4203,191 @@ export declare const useCoreStore: () => {
3962
4203
  */
3963
4204
  isEmbedded: import("vue").Ref<boolean, boolean>;
3964
4205
  setEmbdded: (value: boolean) => void;
3965
- adsConfig: import("vue").Ref<{
3966
- url?: string | undefined;
3967
- desktop?: {
3968
- imageUrl: string;
3969
- } | undefined;
3970
- tablet?: {
3971
- imageUrl: string;
3972
- } | undefined;
3973
- mobile?: {
3974
- imageUrl: string;
3975
- } | undefined;
3976
- }, PortalAdConfig | {
3977
- url?: string | undefined;
3978
- desktop?: {
3979
- imageUrl: string;
3980
- } | undefined;
3981
- tablet?: {
3982
- imageUrl: string;
3983
- } | undefined;
3984
- mobile?: {
3985
- imageUrl: string;
3986
- } | undefined;
3987
- }>;
3988
- setAdsConfig: (config: PortalAdConfig) => void;
3989
- }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "adsConfig">>>;
4206
+ publicSetting: import("vue").Ref<{
4207
+ delivery: {
4208
+ feedMe: {
4209
+ operatingHours?: {
4210
+ 0: {
4211
+ hours: {
4212
+ end: string;
4213
+ start: string;
4214
+ }[];
4215
+ enable: boolean;
4216
+ };
4217
+ 2: {
4218
+ hours: {
4219
+ end: string;
4220
+ start: string;
4221
+ }[];
4222
+ enable: boolean;
4223
+ };
4224
+ 1: {
4225
+ hours: {
4226
+ end: string;
4227
+ start: string;
4228
+ }[];
4229
+ enable: boolean;
4230
+ };
4231
+ 3: {
4232
+ hours: {
4233
+ end: string;
4234
+ start: string;
4235
+ }[];
4236
+ enable: boolean;
4237
+ };
4238
+ 4: {
4239
+ hours: {
4240
+ end: string;
4241
+ start: string;
4242
+ }[];
4243
+ enable: boolean;
4244
+ };
4245
+ 5: {
4246
+ hours: {
4247
+ end: string;
4248
+ start: string;
4249
+ }[];
4250
+ enable: boolean;
4251
+ };
4252
+ 6: {
4253
+ hours: {
4254
+ end: string;
4255
+ start: string;
4256
+ }[];
4257
+ enable: boolean;
4258
+ };
4259
+ } | null | undefined;
4260
+ maxDistance: number;
4261
+ enable: boolean;
4262
+ areas: {
4263
+ polygon: number[][];
4264
+ }[];
4265
+ };
4266
+ };
4267
+ assets: {
4268
+ groups: {
4269
+ key: "pos";
4270
+ assets: {
4271
+ type: "image" | "lottie";
4272
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
4273
+ path: string;
4274
+ files: {
4275
+ url: string;
4276
+ createdAt: string;
4277
+ config: {
4278
+ useWhen: {
4279
+ end: string;
4280
+ start: string;
4281
+ };
4282
+ recurring: boolean;
4283
+ };
4284
+ lastUpdate: string;
4285
+ }[];
4286
+ }[];
4287
+ }[];
4288
+ };
4289
+ sms: {
4290
+ firebase: boolean;
4291
+ };
4292
+ aiSettings: {
4293
+ remy: {
4294
+ enable: boolean;
4295
+ };
4296
+ };
4297
+ } | null, PublicSettingApi | {
4298
+ delivery: {
4299
+ feedMe: {
4300
+ operatingHours?: {
4301
+ 0: {
4302
+ hours: {
4303
+ end: string;
4304
+ start: string;
4305
+ }[];
4306
+ enable: boolean;
4307
+ };
4308
+ 2: {
4309
+ hours: {
4310
+ end: string;
4311
+ start: string;
4312
+ }[];
4313
+ enable: boolean;
4314
+ };
4315
+ 1: {
4316
+ hours: {
4317
+ end: string;
4318
+ start: string;
4319
+ }[];
4320
+ enable: boolean;
4321
+ };
4322
+ 3: {
4323
+ hours: {
4324
+ end: string;
4325
+ start: string;
4326
+ }[];
4327
+ enable: boolean;
4328
+ };
4329
+ 4: {
4330
+ hours: {
4331
+ end: string;
4332
+ start: string;
4333
+ }[];
4334
+ enable: boolean;
4335
+ };
4336
+ 5: {
4337
+ hours: {
4338
+ end: string;
4339
+ start: string;
4340
+ }[];
4341
+ enable: boolean;
4342
+ };
4343
+ 6: {
4344
+ hours: {
4345
+ end: string;
4346
+ start: string;
4347
+ }[];
4348
+ enable: boolean;
4349
+ };
4350
+ } | null | undefined;
4351
+ maxDistance: number;
4352
+ enable: boolean;
4353
+ areas: {
4354
+ polygon: number[][];
4355
+ }[];
4356
+ };
4357
+ };
4358
+ assets: {
4359
+ groups: {
4360
+ key: "pos";
4361
+ assets: {
4362
+ type: "image" | "lottie";
4363
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
4364
+ path: string;
4365
+ files: {
4366
+ url: string;
4367
+ createdAt: string;
4368
+ config: {
4369
+ useWhen: {
4370
+ end: string;
4371
+ start: string;
4372
+ };
4373
+ recurring: boolean;
4374
+ };
4375
+ lastUpdate: string;
4376
+ }[];
4377
+ }[];
4378
+ }[];
4379
+ };
4380
+ sms: {
4381
+ firebase: boolean;
4382
+ };
4383
+ aiSettings: {
4384
+ remy: {
4385
+ enable: boolean;
4386
+ };
4387
+ };
4388
+ } | null>;
4389
+ readPublicSetting: () => Promise<PublicSettingApi>;
4390
+ }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "publicSetting">>>;
3990
4391
  $patch(partialState: import("pinia")._DeepPartial<{
3991
4392
  sessionUser: {
3992
4393
  id: string;
@@ -4950,18 +5351,98 @@ export declare const useCoreStore: () => {
4950
5351
  hideSidebar: boolean;
4951
5352
  sidebarComponent: any;
4952
5353
  isEmbedded: boolean;
4953
- adsConfig: {
4954
- url?: string | undefined;
4955
- desktop?: {
4956
- imageUrl: string;
4957
- } | undefined;
4958
- tablet?: {
4959
- imageUrl: string;
4960
- } | undefined;
4961
- mobile?: {
4962
- imageUrl: string;
4963
- } | undefined;
4964
- };
5354
+ publicSetting: {
5355
+ delivery: {
5356
+ feedMe: {
5357
+ operatingHours?: {
5358
+ 0: {
5359
+ hours: {
5360
+ end: string;
5361
+ start: string;
5362
+ }[];
5363
+ enable: boolean;
5364
+ };
5365
+ 2: {
5366
+ hours: {
5367
+ end: string;
5368
+ start: string;
5369
+ }[];
5370
+ enable: boolean;
5371
+ };
5372
+ 1: {
5373
+ hours: {
5374
+ end: string;
5375
+ start: string;
5376
+ }[];
5377
+ enable: boolean;
5378
+ };
5379
+ 3: {
5380
+ hours: {
5381
+ end: string;
5382
+ start: string;
5383
+ }[];
5384
+ enable: boolean;
5385
+ };
5386
+ 4: {
5387
+ hours: {
5388
+ end: string;
5389
+ start: string;
5390
+ }[];
5391
+ enable: boolean;
5392
+ };
5393
+ 5: {
5394
+ hours: {
5395
+ end: string;
5396
+ start: string;
5397
+ }[];
5398
+ enable: boolean;
5399
+ };
5400
+ 6: {
5401
+ hours: {
5402
+ end: string;
5403
+ start: string;
5404
+ }[];
5405
+ enable: boolean;
5406
+ };
5407
+ } | null | undefined;
5408
+ maxDistance: number;
5409
+ enable: boolean;
5410
+ areas: {
5411
+ polygon: number[][];
5412
+ }[];
5413
+ };
5414
+ };
5415
+ assets: {
5416
+ groups: {
5417
+ key: "pos";
5418
+ assets: {
5419
+ type: "image" | "lottie";
5420
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
5421
+ path: string;
5422
+ files: {
5423
+ url: string;
5424
+ createdAt: string;
5425
+ config: {
5426
+ useWhen: {
5427
+ end: string;
5428
+ start: string;
5429
+ };
5430
+ recurring: boolean;
5431
+ };
5432
+ lastUpdate: string;
5433
+ }[];
5434
+ }[];
5435
+ }[];
5436
+ };
5437
+ sms: {
5438
+ firebase: boolean;
5439
+ };
5440
+ aiSettings: {
5441
+ remy: {
5442
+ enable: boolean;
5443
+ };
5444
+ };
5445
+ } | null;
4965
5446
  }>): void;
4966
5447
  $patch<F extends (state: {
4967
5448
  sessionUser: {
@@ -5926,18 +6407,98 @@ export declare const useCoreStore: () => {
5926
6407
  hideSidebar: boolean;
5927
6408
  sidebarComponent: any;
5928
6409
  isEmbedded: boolean;
5929
- adsConfig: {
5930
- url?: string | undefined;
5931
- desktop?: {
5932
- imageUrl: string;
5933
- } | undefined;
5934
- tablet?: {
5935
- imageUrl: string;
5936
- } | undefined;
5937
- mobile?: {
5938
- imageUrl: string;
5939
- } | undefined;
5940
- };
6410
+ publicSetting: {
6411
+ delivery: {
6412
+ feedMe: {
6413
+ operatingHours?: {
6414
+ 0: {
6415
+ hours: {
6416
+ end: string;
6417
+ start: string;
6418
+ }[];
6419
+ enable: boolean;
6420
+ };
6421
+ 2: {
6422
+ hours: {
6423
+ end: string;
6424
+ start: string;
6425
+ }[];
6426
+ enable: boolean;
6427
+ };
6428
+ 1: {
6429
+ hours: {
6430
+ end: string;
6431
+ start: string;
6432
+ }[];
6433
+ enable: boolean;
6434
+ };
6435
+ 3: {
6436
+ hours: {
6437
+ end: string;
6438
+ start: string;
6439
+ }[];
6440
+ enable: boolean;
6441
+ };
6442
+ 4: {
6443
+ hours: {
6444
+ end: string;
6445
+ start: string;
6446
+ }[];
6447
+ enable: boolean;
6448
+ };
6449
+ 5: {
6450
+ hours: {
6451
+ end: string;
6452
+ start: string;
6453
+ }[];
6454
+ enable: boolean;
6455
+ };
6456
+ 6: {
6457
+ hours: {
6458
+ end: string;
6459
+ start: string;
6460
+ }[];
6461
+ enable: boolean;
6462
+ };
6463
+ } | null | undefined;
6464
+ maxDistance: number;
6465
+ enable: boolean;
6466
+ areas: {
6467
+ polygon: number[][];
6468
+ }[];
6469
+ };
6470
+ };
6471
+ assets: {
6472
+ groups: {
6473
+ key: "pos";
6474
+ assets: {
6475
+ type: "image" | "lottie";
6476
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
6477
+ path: string;
6478
+ files: {
6479
+ url: string;
6480
+ createdAt: string;
6481
+ config: {
6482
+ useWhen: {
6483
+ end: string;
6484
+ start: string;
6485
+ };
6486
+ recurring: boolean;
6487
+ };
6488
+ lastUpdate: string;
6489
+ }[];
6490
+ }[];
6491
+ }[];
6492
+ };
6493
+ sms: {
6494
+ firebase: boolean;
6495
+ };
6496
+ aiSettings: {
6497
+ remy: {
6498
+ enable: boolean;
6499
+ };
6500
+ };
6501
+ } | null;
5941
6502
  }) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
5942
6503
  $reset(): void;
5943
6504
  $subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
@@ -6001,7 +6562,7 @@ export declare const useCoreStore: () => {
6001
6562
  } | null>;
6002
6563
  setUser: (user: FeedMeUser | null) => Promise<void>;
6003
6564
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
6004
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
6565
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
6005
6566
  namespace: import("vue").Ref<FmNamespace, FmNamespace>;
6006
6567
  setNamespace: (ns: FmNamespace) => void;
6007
6568
  currentCountry: import("vue").Ref<string | undefined, string | undefined>;
@@ -6133,7 +6694,7 @@ export declare const useCoreStore: () => {
6133
6694
  menuVersion: string;
6134
6695
  }[]>;
6135
6696
  currentBusiness: import("vue").Ref<FmpBusiness | undefined, FmpBusiness | undefined>;
6136
- readBusinesses: () => Promise<FmpBusiness | undefined>;
6697
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
6137
6698
  setCachedBusiness: (id: string) => void;
6138
6699
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
6139
6700
  restaurants: import("vue").Ref<{
@@ -7605,31 +8166,191 @@ export declare const useCoreStore: () => {
7605
8166
  */
7606
8167
  isEmbedded: import("vue").Ref<boolean, boolean>;
7607
8168
  setEmbdded: (value: boolean) => void;
7608
- adsConfig: import("vue").Ref<{
7609
- url?: string | undefined;
7610
- desktop?: {
7611
- imageUrl: string;
7612
- } | undefined;
7613
- tablet?: {
7614
- imageUrl: string;
7615
- } | undefined;
7616
- mobile?: {
7617
- imageUrl: string;
7618
- } | undefined;
7619
- }, PortalAdConfig | {
7620
- url?: string | undefined;
7621
- desktop?: {
7622
- imageUrl: string;
7623
- } | undefined;
7624
- tablet?: {
7625
- imageUrl: string;
7626
- } | undefined;
7627
- mobile?: {
7628
- imageUrl: string;
7629
- } | undefined;
7630
- }>;
7631
- setAdsConfig: (config: PortalAdConfig) => void;
7632
- }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "adsConfig">>>, options?: ({
8169
+ publicSetting: import("vue").Ref<{
8170
+ delivery: {
8171
+ feedMe: {
8172
+ operatingHours?: {
8173
+ 0: {
8174
+ hours: {
8175
+ end: string;
8176
+ start: string;
8177
+ }[];
8178
+ enable: boolean;
8179
+ };
8180
+ 2: {
8181
+ hours: {
8182
+ end: string;
8183
+ start: string;
8184
+ }[];
8185
+ enable: boolean;
8186
+ };
8187
+ 1: {
8188
+ hours: {
8189
+ end: string;
8190
+ start: string;
8191
+ }[];
8192
+ enable: boolean;
8193
+ };
8194
+ 3: {
8195
+ hours: {
8196
+ end: string;
8197
+ start: string;
8198
+ }[];
8199
+ enable: boolean;
8200
+ };
8201
+ 4: {
8202
+ hours: {
8203
+ end: string;
8204
+ start: string;
8205
+ }[];
8206
+ enable: boolean;
8207
+ };
8208
+ 5: {
8209
+ hours: {
8210
+ end: string;
8211
+ start: string;
8212
+ }[];
8213
+ enable: boolean;
8214
+ };
8215
+ 6: {
8216
+ hours: {
8217
+ end: string;
8218
+ start: string;
8219
+ }[];
8220
+ enable: boolean;
8221
+ };
8222
+ } | null | undefined;
8223
+ maxDistance: number;
8224
+ enable: boolean;
8225
+ areas: {
8226
+ polygon: number[][];
8227
+ }[];
8228
+ };
8229
+ };
8230
+ assets: {
8231
+ groups: {
8232
+ key: "pos";
8233
+ assets: {
8234
+ type: "image" | "lottie";
8235
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
8236
+ path: string;
8237
+ files: {
8238
+ url: string;
8239
+ createdAt: string;
8240
+ config: {
8241
+ useWhen: {
8242
+ end: string;
8243
+ start: string;
8244
+ };
8245
+ recurring: boolean;
8246
+ };
8247
+ lastUpdate: string;
8248
+ }[];
8249
+ }[];
8250
+ }[];
8251
+ };
8252
+ sms: {
8253
+ firebase: boolean;
8254
+ };
8255
+ aiSettings: {
8256
+ remy: {
8257
+ enable: boolean;
8258
+ };
8259
+ };
8260
+ } | null, PublicSettingApi | {
8261
+ delivery: {
8262
+ feedMe: {
8263
+ operatingHours?: {
8264
+ 0: {
8265
+ hours: {
8266
+ end: string;
8267
+ start: string;
8268
+ }[];
8269
+ enable: boolean;
8270
+ };
8271
+ 2: {
8272
+ hours: {
8273
+ end: string;
8274
+ start: string;
8275
+ }[];
8276
+ enable: boolean;
8277
+ };
8278
+ 1: {
8279
+ hours: {
8280
+ end: string;
8281
+ start: string;
8282
+ }[];
8283
+ enable: boolean;
8284
+ };
8285
+ 3: {
8286
+ hours: {
8287
+ end: string;
8288
+ start: string;
8289
+ }[];
8290
+ enable: boolean;
8291
+ };
8292
+ 4: {
8293
+ hours: {
8294
+ end: string;
8295
+ start: string;
8296
+ }[];
8297
+ enable: boolean;
8298
+ };
8299
+ 5: {
8300
+ hours: {
8301
+ end: string;
8302
+ start: string;
8303
+ }[];
8304
+ enable: boolean;
8305
+ };
8306
+ 6: {
8307
+ hours: {
8308
+ end: string;
8309
+ start: string;
8310
+ }[];
8311
+ enable: boolean;
8312
+ };
8313
+ } | null | undefined;
8314
+ maxDistance: number;
8315
+ enable: boolean;
8316
+ areas: {
8317
+ polygon: number[][];
8318
+ }[];
8319
+ };
8320
+ };
8321
+ assets: {
8322
+ groups: {
8323
+ key: "pos";
8324
+ assets: {
8325
+ type: "image" | "lottie";
8326
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
8327
+ path: string;
8328
+ files: {
8329
+ url: string;
8330
+ createdAt: string;
8331
+ config: {
8332
+ useWhen: {
8333
+ end: string;
8334
+ start: string;
8335
+ };
8336
+ recurring: boolean;
8337
+ };
8338
+ lastUpdate: string;
8339
+ }[];
8340
+ }[];
8341
+ }[];
8342
+ };
8343
+ sms: {
8344
+ firebase: boolean;
8345
+ };
8346
+ aiSettings: {
8347
+ remy: {
8348
+ enable: boolean;
8349
+ };
8350
+ };
8351
+ } | null>;
8352
+ readPublicSetting: () => Promise<PublicSettingApi>;
8353
+ }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "publicSetting">>>, options?: ({
7633
8354
  detached?: boolean | undefined;
7634
8355
  } & import("vue").WatchOptions<boolean>) | undefined): () => void;
7635
8356
  $onAction(callback: import("pinia").StoreOnActionListener<"portal-core", import("pinia")._UnwrapAll<Pick<{
@@ -7693,7 +8414,7 @@ export declare const useCoreStore: () => {
7693
8414
  } | null>;
7694
8415
  setUser: (user: FeedMeUser | null) => Promise<void>;
7695
8416
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
7696
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
8417
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
7697
8418
  namespace: import("vue").Ref<FmNamespace, FmNamespace>;
7698
8419
  setNamespace: (ns: FmNamespace) => void;
7699
8420
  currentCountry: import("vue").Ref<string | undefined, string | undefined>;
@@ -7825,7 +8546,7 @@ export declare const useCoreStore: () => {
7825
8546
  menuVersion: string;
7826
8547
  }[]>;
7827
8548
  currentBusiness: import("vue").Ref<FmpBusiness | undefined, FmpBusiness | undefined>;
7828
- readBusinesses: () => Promise<FmpBusiness | undefined>;
8549
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
7829
8550
  setCachedBusiness: (id: string) => void;
7830
8551
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
7831
8552
  restaurants: import("vue").Ref<{
@@ -9297,31 +10018,191 @@ export declare const useCoreStore: () => {
9297
10018
  */
9298
10019
  isEmbedded: import("vue").Ref<boolean, boolean>;
9299
10020
  setEmbdded: (value: boolean) => void;
9300
- adsConfig: import("vue").Ref<{
9301
- url?: string | undefined;
9302
- desktop?: {
9303
- imageUrl: string;
9304
- } | undefined;
9305
- tablet?: {
9306
- imageUrl: string;
9307
- } | undefined;
9308
- mobile?: {
9309
- imageUrl: string;
9310
- } | undefined;
9311
- }, PortalAdConfig | {
9312
- url?: string | undefined;
9313
- desktop?: {
9314
- imageUrl: string;
9315
- } | undefined;
9316
- tablet?: {
9317
- imageUrl: string;
9318
- } | undefined;
9319
- mobile?: {
9320
- imageUrl: string;
9321
- } | undefined;
9322
- }>;
9323
- setAdsConfig: (config: PortalAdConfig) => void;
9324
- }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "adsConfig">>, Pick<{
10021
+ publicSetting: import("vue").Ref<{
10022
+ delivery: {
10023
+ feedMe: {
10024
+ operatingHours?: {
10025
+ 0: {
10026
+ hours: {
10027
+ end: string;
10028
+ start: string;
10029
+ }[];
10030
+ enable: boolean;
10031
+ };
10032
+ 2: {
10033
+ hours: {
10034
+ end: string;
10035
+ start: string;
10036
+ }[];
10037
+ enable: boolean;
10038
+ };
10039
+ 1: {
10040
+ hours: {
10041
+ end: string;
10042
+ start: string;
10043
+ }[];
10044
+ enable: boolean;
10045
+ };
10046
+ 3: {
10047
+ hours: {
10048
+ end: string;
10049
+ start: string;
10050
+ }[];
10051
+ enable: boolean;
10052
+ };
10053
+ 4: {
10054
+ hours: {
10055
+ end: string;
10056
+ start: string;
10057
+ }[];
10058
+ enable: boolean;
10059
+ };
10060
+ 5: {
10061
+ hours: {
10062
+ end: string;
10063
+ start: string;
10064
+ }[];
10065
+ enable: boolean;
10066
+ };
10067
+ 6: {
10068
+ hours: {
10069
+ end: string;
10070
+ start: string;
10071
+ }[];
10072
+ enable: boolean;
10073
+ };
10074
+ } | null | undefined;
10075
+ maxDistance: number;
10076
+ enable: boolean;
10077
+ areas: {
10078
+ polygon: number[][];
10079
+ }[];
10080
+ };
10081
+ };
10082
+ assets: {
10083
+ groups: {
10084
+ key: "pos";
10085
+ assets: {
10086
+ type: "image" | "lottie";
10087
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
10088
+ path: string;
10089
+ files: {
10090
+ url: string;
10091
+ createdAt: string;
10092
+ config: {
10093
+ useWhen: {
10094
+ end: string;
10095
+ start: string;
10096
+ };
10097
+ recurring: boolean;
10098
+ };
10099
+ lastUpdate: string;
10100
+ }[];
10101
+ }[];
10102
+ }[];
10103
+ };
10104
+ sms: {
10105
+ firebase: boolean;
10106
+ };
10107
+ aiSettings: {
10108
+ remy: {
10109
+ enable: boolean;
10110
+ };
10111
+ };
10112
+ } | null, PublicSettingApi | {
10113
+ delivery: {
10114
+ feedMe: {
10115
+ operatingHours?: {
10116
+ 0: {
10117
+ hours: {
10118
+ end: string;
10119
+ start: string;
10120
+ }[];
10121
+ enable: boolean;
10122
+ };
10123
+ 2: {
10124
+ hours: {
10125
+ end: string;
10126
+ start: string;
10127
+ }[];
10128
+ enable: boolean;
10129
+ };
10130
+ 1: {
10131
+ hours: {
10132
+ end: string;
10133
+ start: string;
10134
+ }[];
10135
+ enable: boolean;
10136
+ };
10137
+ 3: {
10138
+ hours: {
10139
+ end: string;
10140
+ start: string;
10141
+ }[];
10142
+ enable: boolean;
10143
+ };
10144
+ 4: {
10145
+ hours: {
10146
+ end: string;
10147
+ start: string;
10148
+ }[];
10149
+ enable: boolean;
10150
+ };
10151
+ 5: {
10152
+ hours: {
10153
+ end: string;
10154
+ start: string;
10155
+ }[];
10156
+ enable: boolean;
10157
+ };
10158
+ 6: {
10159
+ hours: {
10160
+ end: string;
10161
+ start: string;
10162
+ }[];
10163
+ enable: boolean;
10164
+ };
10165
+ } | null | undefined;
10166
+ maxDistance: number;
10167
+ enable: boolean;
10168
+ areas: {
10169
+ polygon: number[][];
10170
+ }[];
10171
+ };
10172
+ };
10173
+ assets: {
10174
+ groups: {
10175
+ key: "pos";
10176
+ assets: {
10177
+ type: "image" | "lottie";
10178
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
10179
+ path: string;
10180
+ files: {
10181
+ url: string;
10182
+ createdAt: string;
10183
+ config: {
10184
+ useWhen: {
10185
+ end: string;
10186
+ start: string;
10187
+ };
10188
+ recurring: boolean;
10189
+ };
10190
+ lastUpdate: string;
10191
+ }[];
10192
+ }[];
10193
+ }[];
10194
+ };
10195
+ sms: {
10196
+ firebase: boolean;
10197
+ };
10198
+ aiSettings: {
10199
+ remy: {
10200
+ enable: boolean;
10201
+ };
10202
+ };
10203
+ } | null>;
10204
+ readPublicSetting: () => Promise<PublicSettingApi>;
10205
+ }, "sessionUser" | "namespace" | "currentCountry" | "businesses" | "currentBusiness" | "restaurants" | "currentRestaurant" | "selectedApp" | "hideSidebar" | "sidebarComponent" | "isEmbedded" | "publicSetting">>, Pick<{
9325
10206
  signIn: () => Promise<void>;
9326
10207
  signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
9327
10208
  signOut: () => Promise<void>;
@@ -9382,7 +10263,7 @@ export declare const useCoreStore: () => {
9382
10263
  } | null>;
9383
10264
  setUser: (user: FeedMeUser | null) => Promise<void>;
9384
10265
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
9385
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
10266
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
9386
10267
  namespace: import("vue").Ref<FmNamespace, FmNamespace>;
9387
10268
  setNamespace: (ns: FmNamespace) => void;
9388
10269
  currentCountry: import("vue").Ref<string | undefined, string | undefined>;
@@ -9514,7 +10395,7 @@ export declare const useCoreStore: () => {
9514
10395
  menuVersion: string;
9515
10396
  }[]>;
9516
10397
  currentBusiness: import("vue").Ref<FmpBusiness | undefined, FmpBusiness | undefined>;
9517
- readBusinesses: () => Promise<FmpBusiness | undefined>;
10398
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
9518
10399
  setCachedBusiness: (id: string) => void;
9519
10400
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
9520
10401
  restaurants: import("vue").Ref<{
@@ -10986,30 +11867,190 @@ export declare const useCoreStore: () => {
10986
11867
  */
10987
11868
  isEmbedded: import("vue").Ref<boolean, boolean>;
10988
11869
  setEmbdded: (value: boolean) => void;
10989
- adsConfig: import("vue").Ref<{
10990
- url?: string | undefined;
10991
- desktop?: {
10992
- imageUrl: string;
10993
- } | undefined;
10994
- tablet?: {
10995
- imageUrl: string;
10996
- } | undefined;
10997
- mobile?: {
10998
- imageUrl: string;
10999
- } | undefined;
11000
- }, PortalAdConfig | {
11001
- url?: string | undefined;
11002
- desktop?: {
11003
- imageUrl: string;
11004
- } | undefined;
11005
- tablet?: {
11006
- imageUrl: string;
11007
- } | undefined;
11008
- mobile?: {
11009
- imageUrl: string;
11010
- } | undefined;
11011
- }>;
11012
- setAdsConfig: (config: PortalAdConfig) => void;
11870
+ publicSetting: import("vue").Ref<{
11871
+ delivery: {
11872
+ feedMe: {
11873
+ operatingHours?: {
11874
+ 0: {
11875
+ hours: {
11876
+ end: string;
11877
+ start: string;
11878
+ }[];
11879
+ enable: boolean;
11880
+ };
11881
+ 2: {
11882
+ hours: {
11883
+ end: string;
11884
+ start: string;
11885
+ }[];
11886
+ enable: boolean;
11887
+ };
11888
+ 1: {
11889
+ hours: {
11890
+ end: string;
11891
+ start: string;
11892
+ }[];
11893
+ enable: boolean;
11894
+ };
11895
+ 3: {
11896
+ hours: {
11897
+ end: string;
11898
+ start: string;
11899
+ }[];
11900
+ enable: boolean;
11901
+ };
11902
+ 4: {
11903
+ hours: {
11904
+ end: string;
11905
+ start: string;
11906
+ }[];
11907
+ enable: boolean;
11908
+ };
11909
+ 5: {
11910
+ hours: {
11911
+ end: string;
11912
+ start: string;
11913
+ }[];
11914
+ enable: boolean;
11915
+ };
11916
+ 6: {
11917
+ hours: {
11918
+ end: string;
11919
+ start: string;
11920
+ }[];
11921
+ enable: boolean;
11922
+ };
11923
+ } | null | undefined;
11924
+ maxDistance: number;
11925
+ enable: boolean;
11926
+ areas: {
11927
+ polygon: number[][];
11928
+ }[];
11929
+ };
11930
+ };
11931
+ assets: {
11932
+ groups: {
11933
+ key: "pos";
11934
+ assets: {
11935
+ type: "image" | "lottie";
11936
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
11937
+ path: string;
11938
+ files: {
11939
+ url: string;
11940
+ createdAt: string;
11941
+ config: {
11942
+ useWhen: {
11943
+ end: string;
11944
+ start: string;
11945
+ };
11946
+ recurring: boolean;
11947
+ };
11948
+ lastUpdate: string;
11949
+ }[];
11950
+ }[];
11951
+ }[];
11952
+ };
11953
+ sms: {
11954
+ firebase: boolean;
11955
+ };
11956
+ aiSettings: {
11957
+ remy: {
11958
+ enable: boolean;
11959
+ };
11960
+ };
11961
+ } | null, PublicSettingApi | {
11962
+ delivery: {
11963
+ feedMe: {
11964
+ operatingHours?: {
11965
+ 0: {
11966
+ hours: {
11967
+ end: string;
11968
+ start: string;
11969
+ }[];
11970
+ enable: boolean;
11971
+ };
11972
+ 2: {
11973
+ hours: {
11974
+ end: string;
11975
+ start: string;
11976
+ }[];
11977
+ enable: boolean;
11978
+ };
11979
+ 1: {
11980
+ hours: {
11981
+ end: string;
11982
+ start: string;
11983
+ }[];
11984
+ enable: boolean;
11985
+ };
11986
+ 3: {
11987
+ hours: {
11988
+ end: string;
11989
+ start: string;
11990
+ }[];
11991
+ enable: boolean;
11992
+ };
11993
+ 4: {
11994
+ hours: {
11995
+ end: string;
11996
+ start: string;
11997
+ }[];
11998
+ enable: boolean;
11999
+ };
12000
+ 5: {
12001
+ hours: {
12002
+ end: string;
12003
+ start: string;
12004
+ }[];
12005
+ enable: boolean;
12006
+ };
12007
+ 6: {
12008
+ hours: {
12009
+ end: string;
12010
+ start: string;
12011
+ }[];
12012
+ enable: boolean;
12013
+ };
12014
+ } | null | undefined;
12015
+ maxDistance: number;
12016
+ enable: boolean;
12017
+ areas: {
12018
+ polygon: number[][];
12019
+ }[];
12020
+ };
12021
+ };
12022
+ assets: {
12023
+ groups: {
12024
+ key: "pos";
12025
+ assets: {
12026
+ type: "image" | "lottie";
12027
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
12028
+ path: string;
12029
+ files: {
12030
+ url: string;
12031
+ createdAt: string;
12032
+ config: {
12033
+ useWhen: {
12034
+ end: string;
12035
+ start: string;
12036
+ };
12037
+ recurring: boolean;
12038
+ };
12039
+ lastUpdate: string;
12040
+ }[];
12041
+ }[];
12042
+ }[];
12043
+ };
12044
+ sms: {
12045
+ firebase: boolean;
12046
+ };
12047
+ aiSettings: {
12048
+ remy: {
12049
+ enable: boolean;
12050
+ };
12051
+ };
12052
+ } | null>;
12053
+ readPublicSetting: () => Promise<PublicSettingApi>;
11013
12054
  }, "currentRestaurantSetting" | "isInternalOrAgent">, Pick<{
11014
12055
  signIn: () => Promise<void>;
11015
12056
  signInWithToken: (user: FeedMeUser, token: string) => Promise<void>;
@@ -11071,7 +12112,7 @@ export declare const useCoreStore: () => {
11071
12112
  } | null>;
11072
12113
  setUser: (user: FeedMeUser | null) => Promise<void>;
11073
12114
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
11074
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
12115
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
11075
12116
  namespace: import("vue").Ref<FmNamespace, FmNamespace>;
11076
12117
  setNamespace: (ns: FmNamespace) => void;
11077
12118
  currentCountry: import("vue").Ref<string | undefined, string | undefined>;
@@ -11203,7 +12244,7 @@ export declare const useCoreStore: () => {
11203
12244
  menuVersion: string;
11204
12245
  }[]>;
11205
12246
  currentBusiness: import("vue").Ref<FmpBusiness | undefined, FmpBusiness | undefined>;
11206
- readBusinesses: () => Promise<FmpBusiness | undefined>;
12247
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
11207
12248
  setCachedBusiness: (id: string) => void;
11208
12249
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
11209
12250
  restaurants: import("vue").Ref<{
@@ -12675,31 +13716,191 @@ export declare const useCoreStore: () => {
12675
13716
  */
12676
13717
  isEmbedded: import("vue").Ref<boolean, boolean>;
12677
13718
  setEmbdded: (value: boolean) => void;
12678
- adsConfig: import("vue").Ref<{
12679
- url?: string | undefined;
12680
- desktop?: {
12681
- imageUrl: string;
12682
- } | undefined;
12683
- tablet?: {
12684
- imageUrl: string;
12685
- } | undefined;
12686
- mobile?: {
12687
- imageUrl: string;
12688
- } | undefined;
12689
- }, PortalAdConfig | {
12690
- url?: string | undefined;
12691
- desktop?: {
12692
- imageUrl: string;
12693
- } | undefined;
12694
- tablet?: {
12695
- imageUrl: string;
12696
- } | undefined;
12697
- mobile?: {
12698
- imageUrl: string;
12699
- } | undefined;
12700
- }>;
12701
- setAdsConfig: (config: PortalAdConfig) => void;
12702
- }, "signIn" | "signInWithToken" | "signOut" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "setCachedCountry" | "changeCountry" | "readBusinesses" | "setCachedBusiness" | "changeBusiness" | "readRestaurants" | "changeRestaurant" | "getApps" | "selectApp" | "getDeveloperApps" | "hideSidebarToggle" | "registerSidebarComponent" | "setEmbdded" | "setAdsConfig">>, detached?: boolean | undefined): () => void;
13719
+ publicSetting: import("vue").Ref<{
13720
+ delivery: {
13721
+ feedMe: {
13722
+ operatingHours?: {
13723
+ 0: {
13724
+ hours: {
13725
+ end: string;
13726
+ start: string;
13727
+ }[];
13728
+ enable: boolean;
13729
+ };
13730
+ 2: {
13731
+ hours: {
13732
+ end: string;
13733
+ start: string;
13734
+ }[];
13735
+ enable: boolean;
13736
+ };
13737
+ 1: {
13738
+ hours: {
13739
+ end: string;
13740
+ start: string;
13741
+ }[];
13742
+ enable: boolean;
13743
+ };
13744
+ 3: {
13745
+ hours: {
13746
+ end: string;
13747
+ start: string;
13748
+ }[];
13749
+ enable: boolean;
13750
+ };
13751
+ 4: {
13752
+ hours: {
13753
+ end: string;
13754
+ start: string;
13755
+ }[];
13756
+ enable: boolean;
13757
+ };
13758
+ 5: {
13759
+ hours: {
13760
+ end: string;
13761
+ start: string;
13762
+ }[];
13763
+ enable: boolean;
13764
+ };
13765
+ 6: {
13766
+ hours: {
13767
+ end: string;
13768
+ start: string;
13769
+ }[];
13770
+ enable: boolean;
13771
+ };
13772
+ } | null | undefined;
13773
+ maxDistance: number;
13774
+ enable: boolean;
13775
+ areas: {
13776
+ polygon: number[][];
13777
+ }[];
13778
+ };
13779
+ };
13780
+ assets: {
13781
+ groups: {
13782
+ key: "pos";
13783
+ assets: {
13784
+ type: "image" | "lottie";
13785
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
13786
+ path: string;
13787
+ files: {
13788
+ url: string;
13789
+ createdAt: string;
13790
+ config: {
13791
+ useWhen: {
13792
+ end: string;
13793
+ start: string;
13794
+ };
13795
+ recurring: boolean;
13796
+ };
13797
+ lastUpdate: string;
13798
+ }[];
13799
+ }[];
13800
+ }[];
13801
+ };
13802
+ sms: {
13803
+ firebase: boolean;
13804
+ };
13805
+ aiSettings: {
13806
+ remy: {
13807
+ enable: boolean;
13808
+ };
13809
+ };
13810
+ } | null, PublicSettingApi | {
13811
+ delivery: {
13812
+ feedMe: {
13813
+ operatingHours?: {
13814
+ 0: {
13815
+ hours: {
13816
+ end: string;
13817
+ start: string;
13818
+ }[];
13819
+ enable: boolean;
13820
+ };
13821
+ 2: {
13822
+ hours: {
13823
+ end: string;
13824
+ start: string;
13825
+ }[];
13826
+ enable: boolean;
13827
+ };
13828
+ 1: {
13829
+ hours: {
13830
+ end: string;
13831
+ start: string;
13832
+ }[];
13833
+ enable: boolean;
13834
+ };
13835
+ 3: {
13836
+ hours: {
13837
+ end: string;
13838
+ start: string;
13839
+ }[];
13840
+ enable: boolean;
13841
+ };
13842
+ 4: {
13843
+ hours: {
13844
+ end: string;
13845
+ start: string;
13846
+ }[];
13847
+ enable: boolean;
13848
+ };
13849
+ 5: {
13850
+ hours: {
13851
+ end: string;
13852
+ start: string;
13853
+ }[];
13854
+ enable: boolean;
13855
+ };
13856
+ 6: {
13857
+ hours: {
13858
+ end: string;
13859
+ start: string;
13860
+ }[];
13861
+ enable: boolean;
13862
+ };
13863
+ } | null | undefined;
13864
+ maxDistance: number;
13865
+ enable: boolean;
13866
+ areas: {
13867
+ polygon: number[][];
13868
+ }[];
13869
+ };
13870
+ };
13871
+ assets: {
13872
+ groups: {
13873
+ key: "pos";
13874
+ assets: {
13875
+ type: "image" | "lottie";
13876
+ key: "activeMascotDark" | "activeMascotLight" | "inactiveMascotDark" | "inactiveMascotLight" | "odsMascot";
13877
+ path: string;
13878
+ files: {
13879
+ url: string;
13880
+ createdAt: string;
13881
+ config: {
13882
+ useWhen: {
13883
+ end: string;
13884
+ start: string;
13885
+ };
13886
+ recurring: boolean;
13887
+ };
13888
+ lastUpdate: string;
13889
+ }[];
13890
+ }[];
13891
+ }[];
13892
+ };
13893
+ sms: {
13894
+ firebase: boolean;
13895
+ };
13896
+ aiSettings: {
13897
+ remy: {
13898
+ enable: boolean;
13899
+ };
13900
+ };
13901
+ } | null>;
13902
+ readPublicSetting: () => Promise<PublicSettingApi>;
13903
+ }, "signIn" | "signInWithToken" | "signOut" | "setUser" | "fetchUserAdminPermissions" | "fetchUserPermissions" | "setNamespace" | "setCachedCountry" | "changeCountry" | "readBusinesses" | "setCachedBusiness" | "changeBusiness" | "readRestaurants" | "changeRestaurant" | "getApps" | "selectApp" | "getDeveloperApps" | "hideSidebarToggle" | "registerSidebarComponent" | "setEmbdded" | "readPublicSetting">>, detached?: boolean | undefined): () => void;
12703
13904
  $dispose(): void;
12704
13905
  $id: "portal-core";
12705
13906
  _customProperties: Set<string>;
@@ -12708,11 +13909,11 @@ export declare const useCoreStore: () => {
12708
13909
  signOut: () => Promise<void>;
12709
13910
  setUser: (user: FeedMeUser | null) => Promise<void>;
12710
13911
  fetchUserAdminPermissions: (_sessionUser?: FmpUser) => Promise<void>;
12711
- fetchUserPermissions: (_sessionUser?: FmpUser) => Promise<void>;
13912
+ fetchUserPermissions: (_sessionUser?: FmpUser, businessId?: string) => Promise<void>;
12712
13913
  setNamespace: (ns: FmNamespace) => void;
12713
13914
  setCachedCountry: (country: F_COUNTRY) => void;
12714
13915
  changeCountry: (country: F_COUNTRY) => Promise<void>;
12715
- readBusinesses: () => Promise<FmpBusiness | undefined>;
13916
+ readBusinesses: (forceUpdate?: boolean) => Promise<FmpBusiness | undefined>;
12716
13917
  setCachedBusiness: (id: string) => void;
12717
13918
  changeBusiness: (business: FmpBusiness | undefined) => Promise<void>;
12718
13919
  readRestaurants: () => Promise<{
@@ -13119,7 +14320,7 @@ export declare const useCoreStore: () => {
13119
14320
  hideSidebarToggle: (hide?: boolean) => void;
13120
14321
  registerSidebarComponent: (component: any) => void;
13121
14322
  setEmbdded: (value: boolean) => void;
13122
- setAdsConfig: (config: PortalAdConfig) => void;
14323
+ readPublicSetting: () => Promise<PublicSettingApi>;
13123
14324
  };
13124
14325
  /**
13125
14326
  * @param callback fire when business changed