@feedmepos/mf-brand-app-builder 0.5.22-dev.0 → 0.5.23-dev.0
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/{App-DSjCJtmn.js → App-BRIDkK5d.js} +5 -5
- package/dist/{AssetsSettings-e8FjbJ_2.js → AssetsSettings-DhprCc4v.js} +6 -6
- package/dist/{BaDivider-DWZv3fqi.js → BaDivider-Cp9gfB4r.js} +2 -2
- package/dist/{BrandkitView-YRlmRZnS.js → BrandkitView-DzLVTHjo.js} +2867 -2033
- package/dist/{BuilderView-BLM7vEZA.js → BuilderView-BwXnOIit.js} +460 -474
- package/dist/{ButtonGroup-D_HkX122.js → ButtonGroup-2ilMTPHH.js} +2 -2
- package/dist/{CircularProgress-h90pbjU3.js → CircularProgress-DdblYCtV.js} +4 -4
- package/dist/ColorPicker-RKWzhLBO.js +543 -0
- package/dist/{ColorPicker-I6CkNIxt.js → ColorPicker-dVFIiu94.js} +14 -14
- package/dist/{Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js → Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js} +2 -2
- package/dist/{ImageUpload-CDR7v2YB.js → ImageUpload-OqPKnQQI.js} +9 -9
- package/dist/{LinkButton-DvF93Arq.js → LinkButton-De-YNclu.js} +4 -4
- package/dist/{ListRepeater-Dri1M_Xh.js → ListRepeater-DIlTKjtE.js} +2 -2
- package/dist/{ManagementSettings-CROYjeuM.js → ManagementSettings-Cz4HkNm1.js} +4 -4
- package/dist/ProjectView-ByxaVBFb.js +428 -0
- package/dist/{Select-BRYuMWoQ.js → Select-DQx6OfZx.js} +9 -9
- package/dist/{SettingsView-DHA7hXUx.js → SettingsView-uft0uKio.js} +2 -2
- package/dist/{StepperField-BeeZ_sl9.js → StepperField-nyaUK9ht.js} +2 -2
- package/dist/{Switch-8mmNQUDo.js → Switch-uc_zN-mb.js} +2 -2
- package/dist/{TextAlign-BOC8ekaH.js → TextAlign-BSp1Xi7F.js} +2 -2
- package/dist/{TextDecorators-BJC4umDR.js → TextDecorators-1C54q7us.js} +4 -4
- package/dist/{TextField-BiVH5rLX.js → TextField-DfBJB6vQ.js} +2 -2
- package/dist/{TextStyleList-CuPE80Py.js → TextStyleList-Bef3irUx.js} +3 -3
- package/dist/{app-OPl2Khtq.js → app-CY0-wVrG.js} +6513 -3895
- package/dist/app.js +1 -1
- package/dist/brand-core/src/brandkit.d.ts +5 -0
- package/dist/brand-core/src/entity.d.ts +89 -0
- package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +1 -1
- package/dist/client/components/src/components/Homepage.vue.d.ts +19 -0
- package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/Member/TransactionList.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/NavigationBar.vue.d.ts +4 -4
- package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +4 -3
- package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +4 -4
- package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +2 -2
- package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +3 -3
- package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +4 -4
- package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/views/_Credit.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/views/_MemberProfile.vue.d.ts +4 -4
- package/dist/{components → client/components}/src/views/_Point.vue.d.ts +1 -1
- package/dist/{components → client/components}/src/views/_Referral.vue.d.ts +4 -4
- package/dist/{components → client/components}/src/views/_ReferralTutorial.vue.d.ts +4 -4
- package/dist/{merchant → client/merchant}/src/api/business/index.d.ts +41 -1
- package/dist/{merchant → client/merchant}/src/app.d.ts +2614 -0
- package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/components/brandkit/ColorSelection.vue.d.ts +1 -1
- package/dist/client/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/editor/toolbar/TemplatePicker.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +1 -1
- package/dist/client/merchant/src/components/inspector/Inspector.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +12 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +13 -0
- package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +1 -1
- package/dist/client/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/order-template/LayoutTemplateSection.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorButton.vue.d.ts +10 -0
- package/dist/client/merchant/src/components/order-template/OrderTemplateEditorForm.vue.d.ts +14 -0
- package/dist/client/merchant/src/components/order-template/TemplateVersionHistory.vue.d.ts +18 -0
- package/dist/client/merchant/src/components/settings/AssetsSettings.vue.d.ts +2 -0
- package/dist/client/merchant/src/components/settings/ManagementSettings.vue.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/components/template/TemplatePreview.vue.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/stores/business/index.d.ts +217 -1
- package/dist/client/merchant/src/views/BrandkitView.vue.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/views/BuilderView.vue.d.ts +1 -1
- package/dist/client/merchant/src/views/ProjectView.vue.d.ts +2 -0
- package/dist/client/merchant/src/views/SettingsView.vue.d.ts +2 -0
- package/dist/dayjs.min-DnbY0e60.js +282 -0
- package/dist/{image-HDqbMgOR.js → image-D_Djf1PS.js} +1 -1
- package/dist/{index-V999lx_3.js → index-Bk6TOZrx.js} +2 -2
- package/dist/{index-BodukiEf.js → index-C1rSMuKA.js} +1 -1
- package/dist/index-C4vwWvn_.js +112 -0
- package/dist/index-D0LOMBBD.js +1822 -0
- package/dist/{main--RZvbXYz.js → main-DzMHu5qo.js} +3566 -3577
- package/dist/package.json +7 -4
- package/dist/style.css +1 -1
- package/dist/{v4-ANoOI1Qw.js → v4-CKwdnpQf.js} +8 -8
- package/dist/{vue-sonner-PX6Req0V.js → vue-sonner-CBFYmm8_.js} +129 -125
- package/package.json +7 -4
- package/dist/ColorPicker-CHzKbuCD.js +0 -543
- package/dist/ProjectView-Tb44Sm_z.js +0 -705
- package/dist/components/src/components/Homepage.vue.d.ts +0 -19
- package/dist/components/src/components/atoms/Divider.vue.d.ts +0 -2
- package/dist/index-CvbnxMT4.js +0 -1736
- package/dist/index-DbvZZQr6.js +0 -90
- package/dist/merchant/src/components/atoms/BaDivider.vue.d.ts +0 -2
- package/dist/merchant/src/components/editor/Editor.vue.d.ts +0 -2
- package/dist/merchant/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -2
- package/dist/merchant/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -2
- package/dist/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +0 -2
- package/dist/merchant/src/components/inspector/Inspector.vue.d.ts +0 -2
- package/dist/merchant/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -12
- package/dist/merchant/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -18
- package/dist/merchant/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -13
- package/dist/merchant/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -2
- package/dist/merchant/src/components/settings/AssetsSettings.vue.d.ts +0 -2
- package/dist/merchant/src/components/settings/ManagementSettings.vue.d.ts +0 -2
- package/dist/merchant/src/views/BrandkitView.vue.d.ts +0 -2
- package/dist/merchant/src/views/ProjectView.vue.d.ts +0 -2
- package/dist/merchant/src/views/SettingsView.vue.d.ts +0 -2
- /package/dist/{components → client/components}/src/components/Member/MemberAchievements.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberCards.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/Member/MemberSummary.vue.d.ts +0 -0
- /package/dist/{merchant/src/App.vue.d.ts → client/components/src/components/atoms/Divider.vue.d.ts} +0 -0
- /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/i18n.d.ts +0 -0
- /package/dist/{components → client/components}/src/main.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/date.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/image.d.ts +0 -0
- /package/dist/{merchant/src/Entry.vue.d.ts → client/merchant/src/App.vue.d.ts} +0 -0
- /package/dist/{merchant/src/components/editor/toolbar/PreviewQrCode.vue.d.ts → client/merchant/src/Entry.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +0 -0
- /package/dist/{merchant/src/components/editor/toolbar/TemplatePicker.vue.d.ts → client/merchant/src/components/atoms/BaDivider.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
- /package/dist/{merchant/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts → client/merchant/src/components/editor/Editor.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkBrandkitColor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/modals/TemplateSelectionModal.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/composables/useToast/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/config/defaultTemplateConfig.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/helpers/businessUrl.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-achievements/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-cards/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-history/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-profile/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-referral-tutorial/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-summary/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit-i18n.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/i18n.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/image.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/views/views.d.ts +0 -0
package/dist/app.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BrandKit } from './entity';
|
|
2
|
+
export declare const brandkit: BrandKit;
|
|
3
|
+
export declare function applyBrandKitFromAPI(url: string): Promise<void>;
|
|
4
|
+
export declare function applyBrandKit(kit?: BrandKit, target?: HTMLElement): void;
|
|
5
|
+
export declare function applyBrandkitFeedmeUI(kit?: BrandKit, target?: HTMLElement): void;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type TemplateNode } from '@feedmepos/ordering-ui';
|
|
2
|
+
export type BrandFont = {
|
|
3
|
+
name: string;
|
|
4
|
+
source: 'google' | 'custom';
|
|
5
|
+
weights: string[];
|
|
6
|
+
files: {
|
|
7
|
+
[weight: string]: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type TemplateVersion = {
|
|
11
|
+
version: number;
|
|
12
|
+
template: {
|
|
13
|
+
mainView?: Record<string, unknown>;
|
|
14
|
+
cartView?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
createdAt: string;
|
|
17
|
+
createdBy?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
};
|
|
20
|
+
export type LayoutConfig = {
|
|
21
|
+
template?: {
|
|
22
|
+
mainView?: Record<string, unknown>;
|
|
23
|
+
cartView?: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
templateHistory?: TemplateVersion[];
|
|
26
|
+
currentVersion?: number;
|
|
27
|
+
};
|
|
28
|
+
export type BrandKit = {
|
|
29
|
+
colors: {
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
accent: string;
|
|
33
|
+
background: {
|
|
34
|
+
base: string;
|
|
35
|
+
elevated: string;
|
|
36
|
+
};
|
|
37
|
+
neutral: {
|
|
38
|
+
light: string;
|
|
39
|
+
mid: string;
|
|
40
|
+
dark: string;
|
|
41
|
+
};
|
|
42
|
+
status: {
|
|
43
|
+
success: string;
|
|
44
|
+
warning: string;
|
|
45
|
+
error: string;
|
|
46
|
+
info?: string;
|
|
47
|
+
};
|
|
48
|
+
text: {
|
|
49
|
+
onPrimary: string;
|
|
50
|
+
primary: string;
|
|
51
|
+
secondary: string;
|
|
52
|
+
tertiary: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
fonts: {
|
|
56
|
+
brand: string;
|
|
57
|
+
heading?: string;
|
|
58
|
+
body?: string;
|
|
59
|
+
};
|
|
60
|
+
fontFamilies: {
|
|
61
|
+
stylesheet: string;
|
|
62
|
+
}[];
|
|
63
|
+
ordering?: {
|
|
64
|
+
app: {
|
|
65
|
+
category: 'HORIZONTAL' | 'VERTICAL';
|
|
66
|
+
items: 'LIST' | 'GRID';
|
|
67
|
+
singleCategory: boolean;
|
|
68
|
+
};
|
|
69
|
+
kiosk: {
|
|
70
|
+
category: 'HORIZONTAL' | 'VERTICAL';
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
layout?: {
|
|
74
|
+
app?: LayoutConfig;
|
|
75
|
+
kiosk?: LayoutConfig;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export { type TemplateNode };
|
|
79
|
+
export type FdoMetadata = {
|
|
80
|
+
type: 'BUSINESS' | 'RESTAURANT';
|
|
81
|
+
country: string;
|
|
82
|
+
pwaConfig: {
|
|
83
|
+
short_name: string;
|
|
84
|
+
name: string;
|
|
85
|
+
background_color: string;
|
|
86
|
+
theme_color: string;
|
|
87
|
+
};
|
|
88
|
+
brandkit: BrandKit | null;
|
|
89
|
+
};
|
|
@@ -11,5 +11,5 @@ declare const _default: import("vue").DefineComponent<IBranchListProps, {}, {},
|
|
|
11
11
|
click: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<IBranchListProps> & Readonly<{
|
|
13
13
|
onClick?: (() => any) | undefined;
|
|
14
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -17,5 +17,5 @@ declare const _default: import("vue").DefineComponent<IButtonListProps, {}, {},
|
|
|
17
17
|
linkClick: (linkTo: ILink) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<IButtonListProps> & Readonly<{
|
|
19
19
|
onLinkClick?: ((linkTo: ILink) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -8,5 +8,5 @@ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {},
|
|
|
8
8
|
switchCountry: () => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{
|
|
10
10
|
onSwitchCountry?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface IHomepageProps {
|
|
2
|
+
data: any;
|
|
3
|
+
paddingTop?: string;
|
|
4
|
+
paddingBottom?: string;
|
|
5
|
+
paddingLeft?: string;
|
|
6
|
+
paddingRight?: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
hideCountrySwitcher?: boolean;
|
|
9
|
+
showNavigationBar?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<IHomepageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IHomepageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?: ((props: {}) => any) | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -16,5 +16,5 @@ declare const _default: import("vue").DefineComponent<IImageCarousel, {}, {}, {}
|
|
|
16
16
|
linkClick: (linkTo: ILink) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<IImageCarousel> & Readonly<{
|
|
18
18
|
onLinkClick?: ((linkTo: ILink) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -11,5 +11,5 @@ declare const _default: import("vue").DefineComponent<IImageDisplayProps, {}, {}
|
|
|
11
11
|
linkClick: (linkTo: ILink) => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<IImageDisplayProps> & Readonly<{
|
|
13
13
|
onLinkClick?: ((linkTo: ILink) => any) | undefined;
|
|
14
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
package/dist/{components → client/components}/src/components/Member/TransactionList.vue.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
transactions: any[];
|
|
3
3
|
};
|
|
4
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -41,5 +41,5 @@ declare const _default: import("vue").DefineComponent<IMembershipCardProps, {},
|
|
|
41
41
|
primaryColor: string;
|
|
42
42
|
accentColor: string;
|
|
43
43
|
textOnPrimaryColor: string;
|
|
44
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
export default _default;
|
|
@@ -2,15 +2,15 @@ type __VLS_Props = {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
className?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
6
|
back: () => any;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
8
|
onBack?: (() => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
10
|
-
append
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
+
append?: ((props: {}) => any) | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export default _default;
|
|
13
|
-
type
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
14
|
new (): {
|
|
15
15
|
$slots: S;
|
|
16
16
|
};
|
|
@@ -5,6 +5,7 @@ interface IOrderHistoryData {
|
|
|
5
5
|
orderDate: string;
|
|
6
6
|
orderType: 'DINE_IN' | 'PICKUP' | 'DELIVERY' | string;
|
|
7
7
|
orderId: string;
|
|
8
|
+
restaurantId: string;
|
|
8
9
|
}
|
|
9
10
|
interface IOrderHistoryCardProps {
|
|
10
11
|
containerStyles: IContainerProps;
|
|
@@ -16,12 +17,12 @@ interface IOrderHistoryCardProps {
|
|
|
16
17
|
}
|
|
17
18
|
declare const _default: import("vue").DefineComponent<IOrderHistoryCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
19
|
signIn: () => any;
|
|
19
|
-
orderClicked: (orderId: string) => any;
|
|
20
|
+
orderClicked: (orderId: string, restaurantId: string) => any;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<IOrderHistoryCardProps> & Readonly<{
|
|
21
22
|
onSignIn?: (() => any) | undefined;
|
|
22
|
-
onOrderClicked?: ((orderId: string) => any) | undefined;
|
|
23
|
+
onOrderClicked?: ((orderId: string, restaurantId: string) => any) | undefined;
|
|
23
24
|
}>, {
|
|
24
25
|
primaryColor: string;
|
|
25
26
|
textOnPrimaryColor: string;
|
|
26
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
28
|
export default _default;
|
|
@@ -25,5 +25,5 @@ declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {},
|
|
|
25
25
|
onDelivery?: (() => any) | undefined;
|
|
26
26
|
onPickup?: (() => any) | undefined;
|
|
27
27
|
onQueue?: (() => any) | undefined;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
export default _default;
|
|
@@ -17,5 +17,5 @@ interface ITextDisplayProps {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
20
|
+
declare const _default: import("vue").DefineComponent<ITextDisplayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ITextDisplayProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -6,17 +6,17 @@ export interface IButtonProps {
|
|
|
6
6
|
textColor?: string;
|
|
7
7
|
iconColor?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<IButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IButtonProps> & Readonly<{}>, {
|
|
10
10
|
type: string;
|
|
11
11
|
textColor: string;
|
|
12
12
|
prependIcon: string;
|
|
13
13
|
appendIcon: string;
|
|
14
14
|
buttonColor: string;
|
|
15
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
16
|
-
default
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
16
|
+
default?: ((props: {}) => any) | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export default _default;
|
|
19
|
-
type
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
20
|
new (): {
|
|
21
21
|
$slots: S;
|
|
22
22
|
};
|
package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts
RENAMED
|
@@ -4,8 +4,8 @@ export interface FmCircularProgressProps {
|
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import("vue").DefineComponent<FmCircularProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FmCircularProgressProps> & Readonly<{}>, {
|
|
7
|
-
size: "md" | "lg" | "xxl" | "xl";
|
|
8
7
|
color: string;
|
|
8
|
+
size: "md" | "lg" | "xxl" | "xl";
|
|
9
9
|
indeterminate: boolean;
|
|
10
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -15,11 +15,11 @@ export interface IContainerProps {
|
|
|
15
15
|
height: string;
|
|
16
16
|
boxShadow: string;
|
|
17
17
|
}
|
|
18
|
-
declare const _default:
|
|
19
|
-
default
|
|
18
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Partial<IContainerProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<IContainerProps>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
19
|
+
default?: ((props: {}) => any) | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export default _default;
|
|
22
|
-
type
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
23
|
new (): {
|
|
24
24
|
$slots: S;
|
|
25
25
|
};
|
|
@@ -4,5 +4,5 @@ interface IIconProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare const _default: import("vue").DefineComponent<IIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IIconProps> & Readonly<{}>, {
|
|
6
6
|
filled: boolean;
|
|
7
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -5,15 +5,15 @@ export interface ILink {
|
|
|
5
5
|
interface ILinkSlotProps {
|
|
6
6
|
linkTo: ILink;
|
|
7
7
|
}
|
|
8
|
-
declare const _default:
|
|
8
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ILinkSlotProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
9
|
linkClick: (linkTo: ILink) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<ILinkSlotProps> & Readonly<{
|
|
11
11
|
onLinkClick?: ((linkTo: ILink) => any) | undefined;
|
|
12
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
13
|
-
default
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export default _default;
|
|
16
|
-
type
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
17
|
new (): {
|
|
18
18
|
$slots: S;
|
|
19
19
|
};
|
|
@@ -5,5 +5,5 @@ declare const _default: import("vue").DefineComponent<IOrderDetailsProps, {}, {}
|
|
|
5
5
|
back: () => any;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<IOrderDetailsProps> & Readonly<{
|
|
7
7
|
onBack?: (() => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -20,5 +20,5 @@ declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {},
|
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
|
|
21
21
|
onBack?: (() => any) | undefined;
|
|
22
22
|
"onView-all"?: (() => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
export default _default;
|
|
@@ -17,17 +17,17 @@ interface MemberProfileProps {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
declare const _default:
|
|
20
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<MemberProfileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
[x: string]: any;
|
|
22
22
|
} & {
|
|
23
23
|
[x: string]: any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<MemberProfileProps> & Readonly<{
|
|
25
25
|
[x: `on${Capitalize<any>}`]: ((...args: any[] | unknown[]) => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
27
|
-
default
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
27
|
+
default?: ((props: {}) => any) | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export default _default;
|
|
30
|
-
type
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
31
|
new (): {
|
|
32
32
|
$slots: S;
|
|
33
33
|
};
|
|
@@ -20,5 +20,5 @@ declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {},
|
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
|
|
21
21
|
onBack?: (() => any) | undefined;
|
|
22
22
|
"onView-all"?: (() => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
export default _default;
|
|
@@ -6,7 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
submitReferrerCodeError?: string;
|
|
7
7
|
} | null;
|
|
8
8
|
};
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
10
|
back: () => any;
|
|
11
11
|
"copy-code": (code: string) => any;
|
|
12
12
|
"share-code": (code: string) => any;
|
|
@@ -20,11 +20,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
20
|
"onSubmit-code"?: ((code: string) => any) | undefined;
|
|
21
21
|
"onInvite-history"?: (() => any) | undefined;
|
|
22
22
|
"onHow-it-works"?: (() => any) | undefined;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
24
|
-
default
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
24
|
+
default?: ((props: {}) => any) | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
export default _default;
|
|
27
|
-
type
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
28
|
new (): {
|
|
29
29
|
$slots: S;
|
|
30
30
|
};
|
|
@@ -7,17 +7,17 @@ type __VLS_Props = {
|
|
|
7
7
|
programName: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
declare const _default:
|
|
10
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
11
|
back: () => any;
|
|
12
12
|
tnc: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
onBack?: (() => any) | undefined;
|
|
15
15
|
onTnc?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
17
|
-
default
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
17
|
+
default?: ((props: {}) => any) | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export default _default;
|
|
20
|
-
type
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
21
|
new (): {
|
|
22
22
|
$slots: S;
|
|
23
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IBaResponse } from '..';
|
|
2
|
-
import type { BrandKit } from '
|
|
2
|
+
import type { BrandKit, TemplateVersion } from '../../../../../brand-core/src/entity';
|
|
3
3
|
/**
|
|
4
4
|
* Get all business and country info from top-level slug
|
|
5
5
|
* @param slug
|
|
@@ -35,6 +35,43 @@ declare function getBusinessBrandkit(businessId: string): Promise<BrandKit>;
|
|
|
35
35
|
* @param businessId
|
|
36
36
|
*/
|
|
37
37
|
declare function setBusinessBrandkit(businessId: string, brandkit: BrandKit): Promise<unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Get template version history for a specific target (app or kiosk)
|
|
40
|
+
* @param businessId
|
|
41
|
+
* @param target - 'app' or 'kiosk'
|
|
42
|
+
*/
|
|
43
|
+
declare function getTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{
|
|
44
|
+
currentVersion: number;
|
|
45
|
+
templateHistory: TemplateVersion[];
|
|
46
|
+
currentTemplate: {
|
|
47
|
+
mainView?: Record<string, unknown>;
|
|
48
|
+
cartView?: Record<string, unknown>;
|
|
49
|
+
} | null;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* Restore a specific template version
|
|
53
|
+
* @param businessId
|
|
54
|
+
* @param target - 'app' or 'kiosk'
|
|
55
|
+
* @param version - version number to restore
|
|
56
|
+
*/
|
|
57
|
+
declare function restoreTemplateVersion(businessId: string, target: 'app' | 'kiosk', version: number): Promise<{
|
|
58
|
+
message: string;
|
|
59
|
+
data: {
|
|
60
|
+
restoredTemplate: {
|
|
61
|
+
mainView?: Record<string, unknown>;
|
|
62
|
+
cartView?: Record<string, unknown>;
|
|
63
|
+
};
|
|
64
|
+
newVersion: number;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* Clear template version history for a specific target (app or kiosk)
|
|
69
|
+
* @param businessId
|
|
70
|
+
* @param target - 'app' or 'kiosk'
|
|
71
|
+
*/
|
|
72
|
+
declare function clearTemplateHistory(businessId: string, target: 'app' | 'kiosk'): Promise<{
|
|
73
|
+
message: string;
|
|
74
|
+
}>;
|
|
38
75
|
declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise<any>;
|
|
39
76
|
declare function getBusinessPremiumStatus(businessId: string): Promise<boolean>;
|
|
40
77
|
export declare const BusinessApi: {
|
|
@@ -44,6 +81,9 @@ export declare const BusinessApi: {
|
|
|
44
81
|
setBusinessMetadata: typeof setBusinessMetadata;
|
|
45
82
|
getBusinessBrandkit: typeof getBusinessBrandkit;
|
|
46
83
|
setBusinessBrandkit: typeof setBusinessBrandkit;
|
|
84
|
+
getTemplateHistory: typeof getTemplateHistory;
|
|
85
|
+
restoreTemplateVersion: typeof restoreTemplateVersion;
|
|
86
|
+
clearTemplateHistory: typeof clearTemplateHistory;
|
|
47
87
|
updateBusinessProfile: typeof updateBusinessProfile;
|
|
48
88
|
getBusinessPremiumStatus: typeof getBusinessPremiumStatus;
|
|
49
89
|
};
|