@feedmepos/mf-order-setting 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DisplaySystemView-aLqc6lz9.js +9068 -0
- package/dist/{FoodCourtInvitationsView-Bo174yfB.js → FoodCourtInvitationsView-B30qld2i.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-uUe53O0Z.js → FoodCourtOrderSettingsView-CWmaKgbe.js} +1 -1
- package/dist/{FoodCourtOrdersView-CxC5oGp2.js → FoodCourtOrdersView-FfrganVo.js} +4 -4
- package/dist/{FoodCourtStallsView-BEpRBmSL.js → FoodCourtStallsView-CpGZNP6p.js} +2 -2
- package/dist/{FoodCourtStatusView-DA7mdsuf.js → FoodCourtStatusView-ljQUwIwk.js} +1 -1
- package/dist/{KioskDevicesView-BY9Egk75.js → KioskDevicesView-BwDAYIhX.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js} +487 -473
- package/dist/KioskSettingView-mfhi9vuf.js +1240 -0
- package/dist/{KioskView-BYL0u6kj.js → KioskView-6p5h92fk.js} +173 -167
- package/dist/{OrderSettingsView-BBHAhgE9.js → OrderSettingsView-Cf_Ye9U_.js} +11 -11
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang--9bdtLE1.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js} +1 -1
- package/dist/{app-BV2USn83.js → app-BorqCaJT.js} +6965 -6415
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Bp4Kgnt_.js → dayjs.min-CTTY2vkL.js} +1 -1
- package/dist/display-preview/assets/{BandBoard-DIcfXsNV.js → BandBoard-BLwgs3WX.js} +1 -1
- package/dist/display-preview/assets/{CarouselBlock-XAhTyEWB.js → CarouselBlock-CUrVSbQp.js} +1 -1
- package/dist/display-preview/assets/{CategoryBoard-DBKe18hv.js → CategoryBoard-BkvpcxHR.js} +1 -1
- package/dist/display-preview/assets/{ImageBlock-BCbnYSHq.js → ImageBlock-0UYDHTm0.js} +1 -1
- package/dist/display-preview/assets/{PickupMode-Df_TPCh8.js → PickupMode-BY4iL0BH.js} +1 -1
- package/dist/display-preview/assets/{StatusBoard-28z3bPOf.js → StatusBoard-DGEZ6hvH.js} +1 -1
- package/dist/display-preview/assets/{TextBlock-CvJKITtx.js → TextBlock-CxKwtqoO.js} +1 -1
- package/dist/display-preview/assets/{VideoBlock-Dop43wDv.js → VideoBlock-BKkxdLAd.js} +1 -1
- package/dist/display-preview/assets/{index-cqMoOpSN.js → index-B1olKQmQ.js} +2 -2
- package/dist/display-preview/assets/{pickupView-DRMVXqrc.js → pickupView-CB9fV5jD.js} +1 -1
- package/dist/display-preview/images/feedme-bg-left-image.png +0 -0
- package/dist/display-preview/index.html +1 -1
- package/dist/{featureFlag-C1uGG7u6.js → featureFlag-DFenoxmg.js} +1 -1
- package/dist/frontend/mf-order/src/api/display-system/index.d.ts +2 -2
- package/dist/frontend/mf-order/src/app.d.ts +118 -12
- package/dist/frontend/mf-order/src/composables/useDisplaySystemPermission.d.ts +5 -0
- package/dist/frontend/mf-order/src/main.d.ts +118 -12
- package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +9 -11
- package/dist/frontend/mf-order/src/modules/display-system/legacy-ods/convert.d.ts +10 -0
- package/dist/frontend/mf-order/src/modules/kiosk/deviceCount.d.ts +18 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +12 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/tableNumberHint.d.ts +33 -0
- package/dist/frontend/mf-order/src/stores/display-system/index.d.ts +10 -70
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +51 -0
- package/dist/frontend/mf-order/src/views/display-system/DisplayTemplateEditor.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue.d.ts +11 -2
- package/dist/frontend/mf-order/src/views/display-system/view-selection.d.ts +1 -2
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-0GuybwuA.js → index-BZkJr7iu.js} +1 -1
- package/dist/{index-HF3qh9qG.js → index-C4Isv-r7.js} +1 -1
- package/dist/{index-CRNutZC_.js → index-DuJOWWP8.js} +4 -4
- package/dist/{index-D0ZIByef.js → index-nUvyt9Wm.js} +1 -1
- package/dist/{index-KWOCCun9.js → index-tLkJL436.js} +2 -2
- package/dist/{order.dto-GQaBESZq.js → order.dto-nVwtcdX2.js} +6049 -5992
- package/dist/package/entity/display/mediaHosts.d.ts +4 -0
- package/dist/package/entity/food-court/order-v2.do.d.ts +667 -0
- package/dist/package/entity/food-court/order-v2.dto.d.ts +262 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +16 -0
- package/dist/package/entity/order-platform/menu.dto.d.ts +44 -44
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +52 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +293 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +42 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +174 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +42 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +92 -0
- package/dist/style.css +1 -1
- package/dist/{useInternalUser-C39xpsBU.js → useInternalUser-HhxjbzGl.js} +1 -1
- package/package.json +3 -3
- package/src/api/display-system/index.ts +2 -2
- package/src/composables/useDisplaySystemPermission.spec.ts +27 -0
- package/src/composables/useDisplaySystemPermission.ts +16 -0
- package/src/locales/en-US.json +51 -17
- package/src/locales/ja-JP.json +26 -11
- package/src/locales/th-TH.json +32 -17
- package/src/locales/zh-CN.json +51 -17
- package/src/modules/display-system/interface.spec.ts +1 -32
- package/src/modules/display-system/interface.ts +7 -24
- package/src/modules/display-system/legacy-ods/convert.spec.ts +65 -0
- package/src/modules/display-system/legacy-ods/convert.ts +95 -0
- package/src/modules/display-system/legacy-ods/media.spec.ts +16 -0
- package/src/modules/kiosk/deviceCount.spec.ts +23 -0
- package/src/modules/kiosk/deviceCount.ts +21 -0
- package/src/modules/order-setting/kiosk/interface.ts +13 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.spec.ts +68 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.ts +71 -0
- package/src/router/display-system-permission.spec.ts +13 -0
- package/src/router/routes.ts +2 -1
- package/src/stores/display-system/index.spec.ts +104 -0
- package/src/stores/display-system/index.ts +18 -7
- package/src/stores/order-setting/mapper.ts +11 -2
- package/src/views/display-system/DisplayInspector.vue +3 -0
- package/src/views/display-system/DisplayModulePickerDialog.vue +8 -0
- package/src/views/display-system/DisplaySystemView.conversion.spec.ts +164 -0
- package/src/views/display-system/DisplaySystemView.vue +72 -26
- package/src/views/display-system/DisplayTemplateEditor.spec.ts +18 -0
- package/src/views/display-system/DisplayTemplateEditor.vue +8 -2
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.spec.ts +44 -4
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue +12 -4
- package/src/views/display-system/view-selection.spec.ts +4 -17
- package/src/views/display-system/view-selection.ts +3 -4
- package/src/views/kiosk/devices/KioskDevicesView.vue +6 -2
- package/src/views/kiosk/devices/KioskLicenseSummary.spec.ts +45 -0
- package/src/views/kiosk/devices/KioskLicenseSummary.vue +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +140 -6
- package/vitest.config.ts +1 -0
- package/dist/DisplaySystemView-CFr9DnaD.js +0 -8926
- package/dist/KioskSettingView-DPaQ7YFV.js +0 -1124
|
@@ -2,6 +2,10 @@ import type { DisplayBlockDefinition } from '@entity';
|
|
|
2
2
|
import type { DisplayEntitlement, FdoDisplayScreen, FdoDisplayTemplate, FdtoCreateDisplayScreen, FdtoCreateDisplayTemplate, FdtoUpdateDisplayScreen, FdtoUpdateDisplayTemplate } from '@entity';
|
|
3
3
|
export type DisplayTemplate = FdoDisplayTemplate;
|
|
4
4
|
export type DisplayScreen = FdoDisplayScreen;
|
|
5
|
+
/** GET projection; mutation responses contain only the stored screen fields. */
|
|
6
|
+
export type DisplayScreenWithLicense = DisplayScreen & {
|
|
7
|
+
licensed: boolean;
|
|
8
|
+
};
|
|
5
9
|
export type CreateDisplayTemplate = FdtoCreateDisplayTemplate;
|
|
6
10
|
export type UpdateDisplayTemplate = FdtoUpdateDisplayTemplate;
|
|
7
11
|
export type CreateDisplayScreen = FdtoCreateDisplayScreen;
|
|
@@ -11,6 +15,11 @@ export type DisplayCapability = DisplayEntitlement['capabilities'][number];
|
|
|
11
15
|
export interface DisplayScreenCapabilities {
|
|
12
16
|
posVersion: string | null;
|
|
13
17
|
posV8: boolean;
|
|
18
|
+
/** Server-authoritative: can this outlet's POS host Display System at all?
|
|
19
|
+
* Absent on responses from a backend that predates the v7 host gate. */
|
|
20
|
+
posSupported?: boolean;
|
|
21
|
+
/** v7 settings rollout; null/absent = unknown. v8 does not require this flag. */
|
|
22
|
+
tvDisplaySettingsEnabled?: boolean | null;
|
|
14
23
|
screenLimit: number;
|
|
15
24
|
screenUsed: number;
|
|
16
25
|
capabilities: DisplayCapability[];
|
|
@@ -64,17 +73,6 @@ export interface DisplayTemplateDraft {
|
|
|
64
73
|
};
|
|
65
74
|
root: DisplayLayoutDraft;
|
|
66
75
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Screens the POS will watermark as unlicensed.
|
|
69
|
-
*
|
|
70
|
-
* Mirrors `rebuildSnapshotsLocked` in
|
|
71
|
-
* `go/packages/display_host/runtime/source.go` — that is the authority, because
|
|
72
|
-
* the POS decides this offline from its own cached entitlement. Kept as one
|
|
73
|
-
* function so the duplicate is in a single place: DISABLED screens do not
|
|
74
|
-
* count, the rest are ordered oldest first, and everything past the limit
|
|
75
|
-
* loses its licence.
|
|
76
|
-
*/
|
|
77
|
-
export declare function unlicensedScreenIds(screens: Pick<DisplayScreen, '_id' | 'status' | 'createdAt'>[], screenLimit: number): Set<string>;
|
|
78
76
|
/** Where a media pick lands, and which kind the picker should offer. Absent
|
|
79
77
|
* mediaKind means image: a zone background and every carousel item render as
|
|
80
78
|
* one. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DisplayTemplateDraft } from '../interface';
|
|
2
|
+
import type { OdsConfigEntry } from './interface';
|
|
3
|
+
export interface LegacyOdsConversion {
|
|
4
|
+
draft: DisplayTemplateDraft;
|
|
5
|
+
/** Stable zone identity lets repeated conversion reopen the saved template. */
|
|
6
|
+
sourceZoneId: string;
|
|
7
|
+
notices: string[];
|
|
8
|
+
}
|
|
9
|
+
/** Convert configuration only. Never writes the legacy brandkit or binds screens. */
|
|
10
|
+
export declare function convertLegacyOds(entry: OdsConfigEntry, label: string): Promise<LegacyOdsConversion>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The count next to the device search (ITS-003092).
|
|
3
|
+
*
|
|
4
|
+
* It counts this outlet's DEVICES, never licences: licences are a business-wide
|
|
5
|
+
* pool and live in the licence cards above (`KioskLicenseSummary`, from the
|
|
6
|
+
* licence service). The old "Showing 38 of 38" read like "38 used of 38
|
|
7
|
+
* licences", so after an unbind support saw "37 of 37" and lost the licence
|
|
8
|
+
* total. Now the text names devices, and "Showing X of Y" appears only while a
|
|
9
|
+
* search or type filter hides some of them.
|
|
10
|
+
*/
|
|
11
|
+
export interface DeviceCountLabel {
|
|
12
|
+
key: 'order.devicesAtOutlet' | 'order.showingDevices';
|
|
13
|
+
params: {
|
|
14
|
+
count: number;
|
|
15
|
+
total: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function deviceCountLabel(shown: number, total: number): DeviceCountLabel;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { FdoEPaymentMethod, F_ORDER_PAYMENT_TYPE, type OrderKioskSettings } from "@entity";
|
|
2
2
|
import { FdoOfflinePaymentMethod } from '@feedmepos/core/entity';
|
|
3
|
+
import type { TableNumberHintMessage } from './tableNumberHint';
|
|
4
|
+
/**
|
|
5
|
+
* Kiosk table number page hint (`displayStand.hint` in the entity). `show`: show the
|
|
6
|
+
* hint below the number pad; absent = true. `messages`: custom hint text per kiosk
|
|
7
|
+
* language; null = the kiosk's own text.
|
|
8
|
+
*/
|
|
9
|
+
export interface MfKioskHintSetting {
|
|
10
|
+
show: boolean;
|
|
11
|
+
messages: TableNumberHintMessage | null;
|
|
12
|
+
}
|
|
3
13
|
export interface MfKioskSubmitOrderInstruction {
|
|
4
14
|
payAtCounter: string | null;
|
|
5
15
|
paid: string | null;
|
|
@@ -15,6 +25,7 @@ export interface MfDisplayStandSetting {
|
|
|
15
25
|
padDigit: number;
|
|
16
26
|
enablePaxDialog: boolean;
|
|
17
27
|
submitOrderInstruction: MfKioskSubmitOrderInstruction;
|
|
28
|
+
hint: MfKioskHintSetting;
|
|
18
29
|
}
|
|
19
30
|
export interface DisplayStandSettingForm {
|
|
20
31
|
enabled: boolean;
|
|
@@ -26,6 +37,7 @@ export interface DisplayStandSettingForm {
|
|
|
26
37
|
padDigit: number | null;
|
|
27
38
|
enablePaxDialog: boolean;
|
|
28
39
|
submitOrderInstruction: KioskSubmitOrderInstructionForm;
|
|
40
|
+
hint: MfKioskHintSetting;
|
|
29
41
|
}
|
|
30
42
|
export interface MfKioskPickAtCounterSetting {
|
|
31
43
|
enabled: boolean;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { KioskLocale } from '@entity';
|
|
2
|
+
import { type KioskLanguageOption } from './languages';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hint below the number pad on the kiosk's table number page (display stand mode),
|
|
5
|
+
* one text per kiosk language: `{ 'en-US': '…', 'th-TH': '…' }`, the same shape as the
|
|
6
|
+
* other kiosk texts (`KioskTextSettingDto`). null = no custom hint; the kiosk shows its
|
|
7
|
+
* own text.
|
|
8
|
+
*/
|
|
9
|
+
export type TableNumberHintMessage = Partial<Record<KioskLocale, string>>;
|
|
10
|
+
/**
|
|
11
|
+
* The languages the hint needs a text for: exactly the ones the kiosk can show.
|
|
12
|
+
* With "Limit the languages shown" on, that is the ticked ones; off (`null`) or
|
|
13
|
+
* nothing ticked yet, every language the kiosk ships. Always in the kiosk's order.
|
|
14
|
+
*/
|
|
15
|
+
export declare function tableNumberHintLanguages(languages: string[] | null): KioskLanguageOption[];
|
|
16
|
+
/**
|
|
17
|
+
* The kiosk's default hint in one language, with the table range filled in. null
|
|
18
|
+
* while the range is incomplete (a min or max field cleared mid-edit), so the input
|
|
19
|
+
* shows no placeholder instead of a sentence with blank numbers.
|
|
20
|
+
*/
|
|
21
|
+
export declare function defaultTableNumberHint(code: KioskLocale, range: {
|
|
22
|
+
prefix: string | null;
|
|
23
|
+
min: number | null;
|
|
24
|
+
max: number | null;
|
|
25
|
+
}): string | null;
|
|
26
|
+
/**
|
|
27
|
+
* What to save: every kiosk language's text, trimmed, without empty ones (an empty
|
|
28
|
+
* language keeps the kiosk's own text). Languages not ticked under "Limit the
|
|
29
|
+
* languages shown" keep their text too, so it is still there when the merchant
|
|
30
|
+
* ticks them again. null when nothing is left, so a switched-on hint with no text
|
|
31
|
+
* saves as "no custom hint".
|
|
32
|
+
*/
|
|
33
|
+
export declare function normalizeTableNumberHint(message: TableNumberHintMessage | null | undefined): TableNumberHintMessage | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateDisplayScreen, CreateDisplayTemplate, DisplayScreen, DisplayScreenCapabilities, UpdateDisplayScreen, UpdateDisplayTemplate } from '@/modules/display-system/interface';
|
|
1
|
+
import type { CreateDisplayScreen, CreateDisplayTemplate, DisplayScreen, DisplayScreenWithLicense, DisplayScreenCapabilities, UpdateDisplayScreen, UpdateDisplayTemplate } from '@/modules/display-system/interface';
|
|
2
2
|
export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"display-system", Pick<{
|
|
3
3
|
screens: import("vue").Ref<{
|
|
4
4
|
scale?: number | null | undefined;
|
|
@@ -22,29 +22,8 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
22
22
|
tokenVersion: number;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
updatedAt: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
deviceId?: string | null | undefined;
|
|
28
|
-
boundAt?: string | null | undefined;
|
|
29
|
-
boundBy?: string | null | undefined;
|
|
30
|
-
lastSeenAt?: string | null | undefined;
|
|
31
|
-
appVersion?: string | null | undefined;
|
|
32
|
-
bundleVersion?: string | null | undefined;
|
|
33
|
-
userAgent?: string | null | undefined;
|
|
34
|
-
viewport?: {
|
|
35
|
-
height: number;
|
|
36
|
-
width: number;
|
|
37
|
-
} | null | undefined;
|
|
38
|
-
name: string;
|
|
39
|
-
status: "DISABLED" | "UNBOUND" | "ACTIVE";
|
|
40
|
-
restaurantId: string;
|
|
41
|
-
_id: string;
|
|
42
|
-
businessId: string;
|
|
43
|
-
templateId: string;
|
|
44
|
-
tokenVersion: number;
|
|
45
|
-
createdAt: string;
|
|
46
|
-
updatedAt: string;
|
|
47
|
-
}[] | {
|
|
25
|
+
licensed: boolean;
|
|
26
|
+
}[], DisplayScreenWithLicense[] | {
|
|
48
27
|
scale?: number | null | undefined;
|
|
49
28
|
deviceId?: string | null | undefined;
|
|
50
29
|
boundAt?: string | null | undefined;
|
|
@@ -66,6 +45,7 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
66
45
|
tokenVersion: number;
|
|
67
46
|
createdAt: string;
|
|
68
47
|
updatedAt: string;
|
|
48
|
+
licensed: boolean;
|
|
69
49
|
}[]>;
|
|
70
50
|
screenCapabilities: import("vue").Ref<DisplayScreenCapabilities | undefined, DisplayScreenCapabilities | undefined>;
|
|
71
51
|
templates: import("vue").Ref<{
|
|
@@ -422,29 +402,8 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
422
402
|
tokenVersion: number;
|
|
423
403
|
createdAt: string;
|
|
424
404
|
updatedAt: string;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
deviceId?: string | null | undefined;
|
|
428
|
-
boundAt?: string | null | undefined;
|
|
429
|
-
boundBy?: string | null | undefined;
|
|
430
|
-
lastSeenAt?: string | null | undefined;
|
|
431
|
-
appVersion?: string | null | undefined;
|
|
432
|
-
bundleVersion?: string | null | undefined;
|
|
433
|
-
userAgent?: string | null | undefined;
|
|
434
|
-
viewport?: {
|
|
435
|
-
height: number;
|
|
436
|
-
width: number;
|
|
437
|
-
} | null | undefined;
|
|
438
|
-
name: string;
|
|
439
|
-
status: "DISABLED" | "UNBOUND" | "ACTIVE";
|
|
440
|
-
restaurantId: string;
|
|
441
|
-
_id: string;
|
|
442
|
-
businessId: string;
|
|
443
|
-
templateId: string;
|
|
444
|
-
tokenVersion: number;
|
|
445
|
-
createdAt: string;
|
|
446
|
-
updatedAt: string;
|
|
447
|
-
}[] | {
|
|
405
|
+
licensed: boolean;
|
|
406
|
+
}[], DisplayScreenWithLicense[] | {
|
|
448
407
|
scale?: number | null | undefined;
|
|
449
408
|
deviceId?: string | null | undefined;
|
|
450
409
|
boundAt?: string | null | undefined;
|
|
@@ -466,6 +425,7 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
466
425
|
tokenVersion: number;
|
|
467
426
|
createdAt: string;
|
|
468
427
|
updatedAt: string;
|
|
428
|
+
licensed: boolean;
|
|
469
429
|
}[]>;
|
|
470
430
|
screenCapabilities: import("vue").Ref<DisplayScreenCapabilities | undefined, DisplayScreenCapabilities | undefined>;
|
|
471
431
|
templates: import("vue").Ref<{
|
|
@@ -822,29 +782,8 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
822
782
|
tokenVersion: number;
|
|
823
783
|
createdAt: string;
|
|
824
784
|
updatedAt: string;
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
deviceId?: string | null | undefined;
|
|
828
|
-
boundAt?: string | null | undefined;
|
|
829
|
-
boundBy?: string | null | undefined;
|
|
830
|
-
lastSeenAt?: string | null | undefined;
|
|
831
|
-
appVersion?: string | null | undefined;
|
|
832
|
-
bundleVersion?: string | null | undefined;
|
|
833
|
-
userAgent?: string | null | undefined;
|
|
834
|
-
viewport?: {
|
|
835
|
-
height: number;
|
|
836
|
-
width: number;
|
|
837
|
-
} | null | undefined;
|
|
838
|
-
name: string;
|
|
839
|
-
status: "DISABLED" | "UNBOUND" | "ACTIVE";
|
|
840
|
-
restaurantId: string;
|
|
841
|
-
_id: string;
|
|
842
|
-
businessId: string;
|
|
843
|
-
templateId: string;
|
|
844
|
-
tokenVersion: number;
|
|
845
|
-
createdAt: string;
|
|
846
|
-
updatedAt: string;
|
|
847
|
-
}[] | {
|
|
785
|
+
licensed: boolean;
|
|
786
|
+
}[], DisplayScreenWithLicense[] | {
|
|
848
787
|
scale?: number | null | undefined;
|
|
849
788
|
deviceId?: string | null | undefined;
|
|
850
789
|
boundAt?: string | null | undefined;
|
|
@@ -866,6 +805,7 @@ export declare const useDisplaySystemStore: import("pinia").StoreDefinition<"dis
|
|
|
866
805
|
tokenVersion: number;
|
|
867
806
|
createdAt: string;
|
|
868
807
|
updatedAt: string;
|
|
808
|
+
licensed: boolean;
|
|
869
809
|
}[]>;
|
|
870
810
|
screenCapabilities: import("vue").Ref<DisplayScreenCapabilities | undefined, DisplayScreenCapabilities | undefined>;
|
|
871
811
|
templates: import("vue").Ref<{
|
|
@@ -21,6 +21,19 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
21
21
|
payAtCounter: string | null;
|
|
22
22
|
paid: string | null;
|
|
23
23
|
};
|
|
24
|
+
hint: {
|
|
25
|
+
show: boolean;
|
|
26
|
+
messages: {
|
|
27
|
+
"en-US"?: string | undefined;
|
|
28
|
+
"zh-CN"?: string | undefined;
|
|
29
|
+
"th-TH"?: string | undefined;
|
|
30
|
+
"vi-VN"?: string | undefined;
|
|
31
|
+
"id-ID"?: string | undefined;
|
|
32
|
+
"ko-KR"?: string | undefined;
|
|
33
|
+
"ja-JP"?: string | undefined;
|
|
34
|
+
"ar-SA"?: string | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
};
|
|
24
37
|
};
|
|
25
38
|
pickUp: {
|
|
26
39
|
enabled: boolean;
|
|
@@ -161,6 +174,10 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
161
174
|
paid?: Record<string, string> | null | undefined;
|
|
162
175
|
payAtCounter?: Record<string, string> | null | undefined;
|
|
163
176
|
} | null | undefined;
|
|
177
|
+
hint?: {
|
|
178
|
+
show?: boolean | null | undefined;
|
|
179
|
+
messages?: Record<string, string> | null | undefined;
|
|
180
|
+
} | null | undefined;
|
|
164
181
|
enabled: boolean;
|
|
165
182
|
standSlotRange: {
|
|
166
183
|
min: number;
|
|
@@ -334,6 +351,19 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
334
351
|
payAtCounter: string | null;
|
|
335
352
|
paid: string | null;
|
|
336
353
|
};
|
|
354
|
+
hint: {
|
|
355
|
+
show: boolean;
|
|
356
|
+
messages: {
|
|
357
|
+
"en-US"?: string | undefined;
|
|
358
|
+
"zh-CN"?: string | undefined;
|
|
359
|
+
"th-TH"?: string | undefined;
|
|
360
|
+
"vi-VN"?: string | undefined;
|
|
361
|
+
"id-ID"?: string | undefined;
|
|
362
|
+
"ko-KR"?: string | undefined;
|
|
363
|
+
"ja-JP"?: string | undefined;
|
|
364
|
+
"ar-SA"?: string | undefined;
|
|
365
|
+
} | null;
|
|
366
|
+
};
|
|
337
367
|
};
|
|
338
368
|
pickUp: {
|
|
339
369
|
enabled: boolean;
|
|
@@ -474,6 +504,10 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
474
504
|
paid?: Record<string, string> | null | undefined;
|
|
475
505
|
payAtCounter?: Record<string, string> | null | undefined;
|
|
476
506
|
} | null | undefined;
|
|
507
|
+
hint?: {
|
|
508
|
+
show?: boolean | null | undefined;
|
|
509
|
+
messages?: Record<string, string> | null | undefined;
|
|
510
|
+
} | null | undefined;
|
|
477
511
|
enabled: boolean;
|
|
478
512
|
standSlotRange: {
|
|
479
513
|
min: number;
|
|
@@ -647,6 +681,19 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
647
681
|
payAtCounter: string | null;
|
|
648
682
|
paid: string | null;
|
|
649
683
|
};
|
|
684
|
+
hint: {
|
|
685
|
+
show: boolean;
|
|
686
|
+
messages: {
|
|
687
|
+
"en-US"?: string | undefined;
|
|
688
|
+
"zh-CN"?: string | undefined;
|
|
689
|
+
"th-TH"?: string | undefined;
|
|
690
|
+
"vi-VN"?: string | undefined;
|
|
691
|
+
"id-ID"?: string | undefined;
|
|
692
|
+
"ko-KR"?: string | undefined;
|
|
693
|
+
"ja-JP"?: string | undefined;
|
|
694
|
+
"ar-SA"?: string | undefined;
|
|
695
|
+
} | null;
|
|
696
|
+
};
|
|
650
697
|
};
|
|
651
698
|
pickUp: {
|
|
652
699
|
enabled: boolean;
|
|
@@ -787,6 +834,10 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
787
834
|
paid?: Record<string, string> | null | undefined;
|
|
788
835
|
payAtCounter?: Record<string, string> | null | undefined;
|
|
789
836
|
} | null | undefined;
|
|
837
|
+
hint?: {
|
|
838
|
+
show?: boolean | null | undefined;
|
|
839
|
+
messages?: Record<string, string> | null | undefined;
|
|
840
|
+
} | null | undefined;
|
|
790
841
|
enabled: boolean;
|
|
791
842
|
standSlotRange: {
|
|
792
843
|
min: number;
|
|
@@ -2,6 +2,8 @@ import type { DisplayCapability, DisplayTemplate, DisplayTemplateDraft } from '@
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
modelValue: boolean;
|
|
4
4
|
template?: DisplayTemplate;
|
|
5
|
+
initialDraft?: DisplayTemplateDraft;
|
|
6
|
+
conversionNotices?: string[];
|
|
5
7
|
previewRestaurantId?: string;
|
|
6
8
|
/** The selected outlet's entitlement. Used only for the warning line --
|
|
7
9
|
* neither authoring nor the preview is ever gated, because a template is
|
package/dist/frontend/mf-order/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { type OdsConfigEntry } from '@/modules/display-system/legacy-ods/interface';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
canConvert?: boolean;
|
|
4
|
+
converting?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
2
7
|
addOdsEntry: () => void;
|
|
3
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
convert: (entry: OdsConfigEntry, label: string) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onConvert?: ((entry: OdsConfigEntry, label: string) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
13
|
export default _default;
|
|
@@ -5,8 +5,7 @@ interface Outlet {
|
|
|
5
5
|
}
|
|
6
6
|
export declare function isPosV8(posVersion: string | null | undefined): boolean;
|
|
7
7
|
export declare function availableDisplaySystemViews(options: {
|
|
8
|
-
|
|
9
|
-
canManageBrandkit: boolean;
|
|
8
|
+
canManageDisplaySystem: boolean;
|
|
10
9
|
outlets: Outlet[];
|
|
11
10
|
hasLegacyOdsConfigs: boolean;
|
|
12
11
|
}): DisplaySystemView[];
|