@feedmepos/mf-report 5.0.13-beta.0 → 5.0.14-rc.2
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.vue.d.ts +2 -0
- package/dist/Entry.vue.d.ts +2 -0
- package/dist/api/accounting/index.d.ts +5 -0
- package/dist/api/business-config/index.d.ts +4 -0
- package/dist/api/categories/index.d.ts +2 -0
- package/dist/api/index.d.ts +26 -0
- package/dist/api/reports/index.d.ts +9 -0
- package/dist/api/scheduler/index.d.ts +6 -0
- package/dist/api/schemas/index.d.ts +2 -0
- package/dist/api/widget/index.d.ts +4 -0
- package/dist/app.d.ts +2 -0
- package/dist/app.js +107942 -111242
- package/dist/components/AddReportDialog.vue.d.ts +20 -0
- package/dist/components/BaseDialog.vue.d.ts +49 -0
- package/dist/components/Dialog.vue.d.ts +2 -0
- package/dist/components/DownloadDialog.vue.d.ts +12 -0
- package/dist/components/HeaderTab.vue.d.ts +10 -0
- package/dist/components/MenuTab.vue.d.ts +14 -0
- package/dist/components/NavigationTab.vue.d.ts +2 -0
- package/dist/components/NoData.vue.d.ts +39 -0
- package/dist/components/accounting/AccountingExportDialog.vue.d.ts +23 -0
- package/dist/components/accounting/api-integration/Bukku.vue.d.ts +19 -0
- package/dist/components/accounting/api-integration/NetSuite.vue.d.ts +19 -0
- package/dist/components/accounting/setting-exporter/index.d.ts +23 -0
- package/dist/components/accounting/setting-exporter/type.d.ts +53 -0
- package/dist/components/filter/Filter.vue.d.ts +2 -0
- package/dist/components/filter/FilterChip.vue.d.ts +32 -0
- package/dist/components/report/CustomReport.vue.d.ts +2 -0
- package/dist/components/report-editor-tab/ReportEditorTab.vue.d.ts +27 -0
- package/dist/components/report-editor-tab/ReportEditorTabDesktop.vue.d.ts +19 -0
- package/dist/components/report-editor-tab/ReportEditorTabHeader.vue.d.ts +20 -0
- package/dist/components/report-editor-tab/ReportEditorTabMobile.vue.d.ts +19 -0
- package/dist/components/schedule/CustomDate.vue.d.ts +25 -0
- package/dist/components/schedule/ManualSend.vue.d.ts +29 -0
- package/dist/components/schedule/Schedule.vue.d.ts +12 -0
- package/dist/components/schedule/ScheduleCard.vue.d.ts +16 -0
- package/dist/components/schedule/ScheduleEdit.vue.d.ts +29 -0
- package/dist/components/tile-editor-tab/TileEditorTab.vue.d.ts +27 -0
- package/dist/components/tile-editor-tab/TileEditorTabDesktop.vue.d.ts +19 -0
- package/dist/components/tile-editor-tab/TileEditorTabHeader.vue.d.ts +20 -0
- package/dist/components/tile-editor-tab/TileEditorTabMobile.vue.d.ts +19 -0
- package/dist/components/tile-editor-tab/datasource.d.ts +14 -0
- package/dist/components/tile-editor-tab/dialogs/SchemaDialog.vue.d.ts +24 -0
- package/dist/components/tile-editor-tab/filter.input.d.ts +32 -0
- package/dist/components/tile-editor-tab/layouts/Section.vue.d.ts +10 -0
- package/dist/components/tile-editor-tab/section/ConditionSection.vue.d.ts +33 -0
- package/dist/components/tile-editor-tab/section/Datasource.vue.d.ts +54 -0
- package/dist/components/tile-editor-tab/section/DimensionSection.vue.d.ts +54 -0
- package/dist/components/tile-editor-tab/section/FilterSection.vue.d.ts +18 -0
- package/dist/components/tile-editor-tab/section/FilterValueInput.vue.d.ts +24 -0
- package/dist/components/tile-editor-tab/section/LimitSection.vue.d.ts +12 -0
- package/dist/components/tile-editor-tab/section/MetricSection.vue.d.ts +49 -0
- package/dist/components/tile-editor-tab/section/SchemaSection.vue.d.ts +33 -0
- package/dist/components/tile-editor-tab/section/SortSection.vue.d.ts +18 -0
- package/dist/components/tile-editor-tab/select/SelectComponent.vue.d.ts +42 -0
- package/dist/components/tile-editor-tab/tile.d.ts +5 -0
- package/dist/components/transition/TransitionFade.vue.d.ts +20 -0
- package/dist/components/widget/DynamicWidget.vue.d.ts +36 -0
- package/dist/components/widget/WidgetBarchart.vue.d.ts +20 -0
- package/dist/components/widget/WidgetCircular.vue.d.ts +20 -0
- package/dist/components/widget/WidgetDialog.vue.d.ts +19 -0
- package/dist/components/widget/WidgetLinechart.vue.d.ts +20 -0
- package/dist/components/widget/WidgetScorecard.vue.d.ts +20 -0
- package/dist/components/widget/WidgetSpacer.vue.d.ts +2 -0
- package/dist/components/widget/WidgetStackBarChart.vue.d.ts +20 -0
- package/dist/components/widget/WidgetStackLineChart.vue.d.ts +20 -0
- package/dist/components/widget/WidgetTable.vue.d.ts +20 -0
- package/dist/components/widget/widget.d.ts +38 -0
- package/dist/layouts/Default.vue.d.ts +9 -0
- package/dist/layouts/FullScreen.vue.d.ts +9 -0
- package/dist/main.d.ts +2 -0
- package/dist/router/index.d.ts +2 -0
- package/dist/router/shared.d.ts +2 -0
- package/dist/stores/accounting.d.ts +7 -0
- package/dist/stores/counter.d.ts +13 -0
- package/dist/stores/global-loader.d.ts +10 -0
- package/dist/stores/message-dialog.d.ts +31 -0
- package/dist/stores/query.d.ts +19 -0
- package/dist/stores/report-filters.d.ts +154 -0
- package/dist/stores/report-schedule.d.ts +161 -0
- package/dist/stores/report-schema.d.ts +79 -0
- package/dist/stores/report.d.ts +2754 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -0
- package/dist/types/business.d.ts +46 -0
- package/dist/types/index.d.ts +24 -0
- package/dist/types/report.d.ts +170 -0
- package/dist/types/schedule.d.ts +29 -0
- package/dist/types/schema.d.ts +54 -0
- package/dist/types/widget.d.ts +98 -0
- package/dist/utils/calculated-grid.d.ts +3 -0
- package/dist/utils/component-key.d.ts +1 -0
- package/dist/utils/helper.d.ts +12 -0
- package/dist/utils/local-storage.d.ts +15 -0
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/update-row-column-config.d.ts +13 -0
- package/dist/views/InsightView.vue.d.ts +2 -0
- package/dist/views/overview/OverviewView.vue.d.ts +2 -0
- package/dist/views/report/Report.vue.d.ts +2 -0
- package/dist/views/report-editor/ReportEditor.vue.d.ts +2 -0
- package/dist/views/report-editor/ReportEditorDesktop.vue.d.ts +28 -0
- package/dist/views/report-editor/ReportEditorMobile.vue.d.ts +28 -0
- package/dist/views/report-view/ReportView.vue.d.ts +2 -0
- package/dist/views/tile-editor/TileEditor.vue.d.ts +2 -0
- package/dist/views/tile-editor/TileEditorDesktop.vue.d.ts +39 -0
- package/dist/views/tile-editor/TileEditorMobile.vue.d.ts +39 -0
- package/package.json +7 -9
- package/extra_packages/query-engine/LICENSE +0 -1749
- package/extra_packages/query-engine/README.md +0 -11
- package/extra_packages/query-engine/package.json +0 -1
- package/extra_packages/query-engine/query-engine-dart.dart.js +0 -15531
- package/extra_packages/query-engine/query-engine-dart.default.js +0 -4
- package/extra_packages/report-v4/LICENSE +0 -3107
- package/extra_packages/report-v4/README.md +0 -11
- package/extra_packages/report-v4/package.json +0 -1
- package/extra_packages/report-v4/report-v4-dart.dart.js +0 -12692
- package/extra_packages/report-v4/report-v4-dart.default.js +0 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type QueryRequestDimension, type QueryRequestMetric, WidgetType } from "@/types/report";
|
|
2
|
+
interface WidgetOption {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
type: WidgetType;
|
|
6
|
+
}
|
|
7
|
+
export declare const widgetOptions: WidgetOption[];
|
|
8
|
+
export interface WidgetHeaderConfig {
|
|
9
|
+
type: WidgetType;
|
|
10
|
+
showLabel: boolean;
|
|
11
|
+
showDrillDimension: boolean;
|
|
12
|
+
showRollup: boolean;
|
|
13
|
+
showSearchBar: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const widgetHeaderConfig: WidgetHeaderConfig[];
|
|
16
|
+
export declare function getFieldId(field: QueryRequestDimension | QueryRequestMetric): string;
|
|
17
|
+
export declare function validateChartData(type: WidgetType, data: any): boolean;
|
|
18
|
+
export declare function getChartColor({ index, isCompare, opacity }: {
|
|
19
|
+
index: number;
|
|
20
|
+
isCompare?: boolean;
|
|
21
|
+
opacity?: number;
|
|
22
|
+
}): string;
|
|
23
|
+
export declare function getChartColors(): string[];
|
|
24
|
+
export declare function getLineFillColor({ context, index, isCompare }: {
|
|
25
|
+
context: any;
|
|
26
|
+
index: number;
|
|
27
|
+
isCompare?: boolean;
|
|
28
|
+
}): any;
|
|
29
|
+
export interface Difference {
|
|
30
|
+
value: string;
|
|
31
|
+
icon: {
|
|
32
|
+
name: string;
|
|
33
|
+
color: string;
|
|
34
|
+
tailwind: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare function getDifference(main: string, comparison: string): Difference | null;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useAccountingStore: import("pinia").StoreDefinition<"accounting", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
isOpenAccountingDialog: import("vue").Ref<boolean>;
|
|
3
|
+
}, "isOpenAccountingDialog">>, Pick<{
|
|
4
|
+
isOpenAccountingDialog: import("vue").Ref<boolean>;
|
|
5
|
+
}, never>, Pick<{
|
|
6
|
+
isOpenAccountingDialog: import("vue").Ref<boolean>;
|
|
7
|
+
}, never>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const useCounterStore: import("pinia").StoreDefinition<"counter", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
count: import("vue").Ref<number>;
|
|
3
|
+
doubleCount: import("vue").ComputedRef<number>;
|
|
4
|
+
increment: () => void;
|
|
5
|
+
}, "count">>, Pick<{
|
|
6
|
+
count: import("vue").Ref<number>;
|
|
7
|
+
doubleCount: import("vue").ComputedRef<number>;
|
|
8
|
+
increment: () => void;
|
|
9
|
+
}, "doubleCount">, Pick<{
|
|
10
|
+
count: import("vue").Ref<number>;
|
|
11
|
+
doubleCount: import("vue").ComputedRef<number>;
|
|
12
|
+
increment: () => void;
|
|
13
|
+
}, "increment">>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const useGlobalLoaderStore: import("pinia").StoreDefinition<"global-loader", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
3
|
+
promptLoader: (callback: any) => Promise<any>;
|
|
4
|
+
}, never>>, Pick<{
|
|
5
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
6
|
+
promptLoader: (callback: any) => Promise<any>;
|
|
7
|
+
}, "isLoading">, Pick<{
|
|
8
|
+
isLoading: import("vue").ComputedRef<boolean>;
|
|
9
|
+
promptLoader: (callback: any) => Promise<any>;
|
|
10
|
+
}, "promptLoader">>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const useMessageDialogStore: import("pinia").StoreDefinition<"message-dialog", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
isOpened: import("vue").Ref<boolean>;
|
|
3
|
+
message: import("vue").Ref<string>;
|
|
4
|
+
title: import("vue").Ref<string>;
|
|
5
|
+
promptMessage: (option: {
|
|
6
|
+
message: string;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
}) => Promise<boolean>;
|
|
9
|
+
dismiss: () => void;
|
|
10
|
+
confirm: () => void;
|
|
11
|
+
}, "title" | "message" | "isOpened">>, Pick<{
|
|
12
|
+
isOpened: import("vue").Ref<boolean>;
|
|
13
|
+
message: import("vue").Ref<string>;
|
|
14
|
+
title: import("vue").Ref<string>;
|
|
15
|
+
promptMessage: (option: {
|
|
16
|
+
message: string;
|
|
17
|
+
title?: string | undefined;
|
|
18
|
+
}) => Promise<boolean>;
|
|
19
|
+
dismiss: () => void;
|
|
20
|
+
confirm: () => void;
|
|
21
|
+
}, never>, Pick<{
|
|
22
|
+
isOpened: import("vue").Ref<boolean>;
|
|
23
|
+
message: import("vue").Ref<string>;
|
|
24
|
+
title: import("vue").Ref<string>;
|
|
25
|
+
promptMessage: (option: {
|
|
26
|
+
message: string;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
}) => Promise<boolean>;
|
|
29
|
+
dismiss: () => void;
|
|
30
|
+
confirm: () => void;
|
|
31
|
+
}, "promptMessage" | "dismiss" | "confirm">>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Description
|
|
3
|
+
* This is to store general business logic for the page to run
|
|
4
|
+
* will include businessID for which merchant
|
|
5
|
+
* and token for the validation via firebase token
|
|
6
|
+
*/
|
|
7
|
+
export declare const useQueryStore: import("pinia").StoreDefinition<"query-store", import("pinia")._UnwrapAll<Pick<{
|
|
8
|
+
businessId: import("vue").Ref<string>;
|
|
9
|
+
token: import("vue").Ref<string>;
|
|
10
|
+
country: import("vue").Ref<string>;
|
|
11
|
+
}, "businessId" | "token" | "country">>, Pick<{
|
|
12
|
+
businessId: import("vue").Ref<string>;
|
|
13
|
+
token: import("vue").Ref<string>;
|
|
14
|
+
country: import("vue").Ref<string>;
|
|
15
|
+
}, never>, Pick<{
|
|
16
|
+
businessId: import("vue").Ref<string>;
|
|
17
|
+
token: import("vue").Ref<string>;
|
|
18
|
+
country: import("vue").Ref<string>;
|
|
19
|
+
}, never>>;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { type Time } from "@/types/schedule";
|
|
2
|
+
import { type DateRange, type TimeRange } from "@/types";
|
|
3
|
+
/**
|
|
4
|
+
* Description : Filter for all report
|
|
5
|
+
* Here we handle all filter :
|
|
6
|
+
* 1. Date / Time selected
|
|
7
|
+
* 2. Restaurant
|
|
8
|
+
* 3. Warehouse
|
|
9
|
+
* 4. Selected restaurant and warehouse
|
|
10
|
+
*/
|
|
11
|
+
export declare const dateFormat = "YYYY-MM-DD";
|
|
12
|
+
export declare const timeFormat = "HH:mm";
|
|
13
|
+
export interface Location {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}
|
|
17
|
+
export declare enum CompareType {
|
|
18
|
+
NoComparison = "no_comparison",
|
|
19
|
+
PrecedingPeriod = "preceding_period",
|
|
20
|
+
PrecedingWeek = "preceding_week",
|
|
21
|
+
PrecedingMonth = "preceding_month",
|
|
22
|
+
PrecedingYear = "preceding_year",
|
|
23
|
+
Custom = "custom"
|
|
24
|
+
}
|
|
25
|
+
export declare const useReportFilterStore: import("pinia").StoreDefinition<"report-filter-store", import("pinia")._UnwrapAll<Pick<{
|
|
26
|
+
restaurants: import("vue").Ref<{
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
closeSaleTime: string;
|
|
30
|
+
}[]>;
|
|
31
|
+
business: import("vue").Ref<{
|
|
32
|
+
_id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
} | null>;
|
|
35
|
+
warehouses: import("vue").Ref<{
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}[]>;
|
|
39
|
+
selectedLocationIds: import("vue").Ref<string[]>;
|
|
40
|
+
selectedRestaurantIds: import("vue").ComputedRef<string[]>;
|
|
41
|
+
selectedWarehouseIds: import("vue").ComputedRef<string[]>;
|
|
42
|
+
dateRange: import("vue").Ref<{
|
|
43
|
+
startDate: string | undefined;
|
|
44
|
+
endDate: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
timeRange: import("vue").Ref<{
|
|
47
|
+
start: {
|
|
48
|
+
hour: number;
|
|
49
|
+
minute: number;
|
|
50
|
+
} | null;
|
|
51
|
+
end: {
|
|
52
|
+
hour: number;
|
|
53
|
+
minute: number;
|
|
54
|
+
} | null;
|
|
55
|
+
}>;
|
|
56
|
+
compareDateRange: import("vue").Ref<{
|
|
57
|
+
startDate: string | undefined;
|
|
58
|
+
endDate: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
locations: import("vue").ComputedRef<Location[]>;
|
|
61
|
+
setDateRange: (newDateRange: DateRange) => void;
|
|
62
|
+
setCompareDateRange: (newDateRange: DateRange) => void;
|
|
63
|
+
getRestaurantAndWarehouse: () => Promise<void>;
|
|
64
|
+
isCachedTimeRange: import("vue").ComputedRef<boolean>;
|
|
65
|
+
setTimeRange: (newTimeRange: TimeRange) => void;
|
|
66
|
+
formatTime: (time: Time, format?: string) => string;
|
|
67
|
+
selectedCompareType: import("vue").Ref<CompareType>;
|
|
68
|
+
}, "restaurants" | "business" | "warehouses" | "selectedLocationIds" | "dateRange" | "timeRange" | "compareDateRange" | "selectedCompareType">>, Pick<{
|
|
69
|
+
restaurants: import("vue").Ref<{
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
closeSaleTime: string;
|
|
73
|
+
}[]>;
|
|
74
|
+
business: import("vue").Ref<{
|
|
75
|
+
_id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
} | null>;
|
|
78
|
+
warehouses: import("vue").Ref<{
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
}[]>;
|
|
82
|
+
selectedLocationIds: import("vue").Ref<string[]>;
|
|
83
|
+
selectedRestaurantIds: import("vue").ComputedRef<string[]>;
|
|
84
|
+
selectedWarehouseIds: import("vue").ComputedRef<string[]>;
|
|
85
|
+
dateRange: import("vue").Ref<{
|
|
86
|
+
startDate: string | undefined;
|
|
87
|
+
endDate: string | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
timeRange: import("vue").Ref<{
|
|
90
|
+
start: {
|
|
91
|
+
hour: number;
|
|
92
|
+
minute: number;
|
|
93
|
+
} | null;
|
|
94
|
+
end: {
|
|
95
|
+
hour: number;
|
|
96
|
+
minute: number;
|
|
97
|
+
} | null;
|
|
98
|
+
}>;
|
|
99
|
+
compareDateRange: import("vue").Ref<{
|
|
100
|
+
startDate: string | undefined;
|
|
101
|
+
endDate: string | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
locations: import("vue").ComputedRef<Location[]>;
|
|
104
|
+
setDateRange: (newDateRange: DateRange) => void;
|
|
105
|
+
setCompareDateRange: (newDateRange: DateRange) => void;
|
|
106
|
+
getRestaurantAndWarehouse: () => Promise<void>;
|
|
107
|
+
isCachedTimeRange: import("vue").ComputedRef<boolean>;
|
|
108
|
+
setTimeRange: (newTimeRange: TimeRange) => void;
|
|
109
|
+
formatTime: (time: Time, format?: string) => string;
|
|
110
|
+
selectedCompareType: import("vue").Ref<CompareType>;
|
|
111
|
+
}, "selectedRestaurantIds" | "selectedWarehouseIds" | "locations" | "isCachedTimeRange">, Pick<{
|
|
112
|
+
restaurants: import("vue").Ref<{
|
|
113
|
+
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
closeSaleTime: string;
|
|
116
|
+
}[]>;
|
|
117
|
+
business: import("vue").Ref<{
|
|
118
|
+
_id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
} | null>;
|
|
121
|
+
warehouses: import("vue").Ref<{
|
|
122
|
+
id: string;
|
|
123
|
+
name: string;
|
|
124
|
+
}[]>;
|
|
125
|
+
selectedLocationIds: import("vue").Ref<string[]>;
|
|
126
|
+
selectedRestaurantIds: import("vue").ComputedRef<string[]>;
|
|
127
|
+
selectedWarehouseIds: import("vue").ComputedRef<string[]>;
|
|
128
|
+
dateRange: import("vue").Ref<{
|
|
129
|
+
startDate: string | undefined;
|
|
130
|
+
endDate: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
timeRange: import("vue").Ref<{
|
|
133
|
+
start: {
|
|
134
|
+
hour: number;
|
|
135
|
+
minute: number;
|
|
136
|
+
} | null;
|
|
137
|
+
end: {
|
|
138
|
+
hour: number;
|
|
139
|
+
minute: number;
|
|
140
|
+
} | null;
|
|
141
|
+
}>;
|
|
142
|
+
compareDateRange: import("vue").Ref<{
|
|
143
|
+
startDate: string | undefined;
|
|
144
|
+
endDate: string | undefined;
|
|
145
|
+
}>;
|
|
146
|
+
locations: import("vue").ComputedRef<Location[]>;
|
|
147
|
+
setDateRange: (newDateRange: DateRange) => void;
|
|
148
|
+
setCompareDateRange: (newDateRange: DateRange) => void;
|
|
149
|
+
getRestaurantAndWarehouse: () => Promise<void>;
|
|
150
|
+
isCachedTimeRange: import("vue").ComputedRef<boolean>;
|
|
151
|
+
setTimeRange: (newTimeRange: TimeRange) => void;
|
|
152
|
+
formatTime: (time: Time, format?: string) => string;
|
|
153
|
+
selectedCompareType: import("vue").Ref<CompareType>;
|
|
154
|
+
}, "setDateRange" | "setCompareDateRange" | "getRestaurantAndWarehouse" | "setTimeRange" | "formatTime">>;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Cycle, type Schedule } from "@/types/schedule";
|
|
2
|
+
/**
|
|
3
|
+
* Description : Schedules State
|
|
4
|
+
* Here we will store the current report state that will be used thoughout the whole report UI
|
|
5
|
+
* Here we include getting the Schema for getting all the report to the report that are available
|
|
6
|
+
* as well as current selected report ID
|
|
7
|
+
*/
|
|
8
|
+
export declare const useScheduleStore: import("pinia").StoreDefinition<"schedule-store", import("pinia")._UnwrapAll<Pick<{
|
|
9
|
+
currentReportScheduler: import("vue").ComputedRef<{
|
|
10
|
+
_id?: string | undefined;
|
|
11
|
+
reportId?: string | undefined;
|
|
12
|
+
name: string;
|
|
13
|
+
restaurantIds: string[];
|
|
14
|
+
emails: string[];
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
businessId?: string | undefined;
|
|
17
|
+
option: {
|
|
18
|
+
type: Cycle;
|
|
19
|
+
months?: number[] | undefined;
|
|
20
|
+
days?: number[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
sendTime: {
|
|
23
|
+
hour: number;
|
|
24
|
+
minute: number;
|
|
25
|
+
};
|
|
26
|
+
closeSaleTime: {
|
|
27
|
+
hour: number;
|
|
28
|
+
minute: number;
|
|
29
|
+
};
|
|
30
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
31
|
+
}[]>;
|
|
32
|
+
isOpenScheduleDialog: import("vue").Ref<boolean>;
|
|
33
|
+
scheduler: import("vue").Ref<{
|
|
34
|
+
_id?: string | undefined;
|
|
35
|
+
reportId?: string | undefined;
|
|
36
|
+
name: string;
|
|
37
|
+
restaurantIds: string[];
|
|
38
|
+
emails: string[];
|
|
39
|
+
isActive: boolean;
|
|
40
|
+
businessId?: string | undefined;
|
|
41
|
+
option: {
|
|
42
|
+
type: Cycle;
|
|
43
|
+
months?: number[] | undefined;
|
|
44
|
+
days?: number[] | undefined;
|
|
45
|
+
};
|
|
46
|
+
sendTime: {
|
|
47
|
+
hour: number;
|
|
48
|
+
minute: number;
|
|
49
|
+
};
|
|
50
|
+
closeSaleTime: {
|
|
51
|
+
hour: number;
|
|
52
|
+
minute: number;
|
|
53
|
+
};
|
|
54
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
55
|
+
}[]>;
|
|
56
|
+
fetchSchedules: () => Promise<void>;
|
|
57
|
+
createOrUpdateSchedule: (newSchedule: Schedule) => Promise<void>;
|
|
58
|
+
handleRemoveSchedule: (payload: Schedule) => Promise<void>;
|
|
59
|
+
}, "isOpenScheduleDialog" | "scheduler">>, Pick<{
|
|
60
|
+
currentReportScheduler: import("vue").ComputedRef<{
|
|
61
|
+
_id?: string | undefined;
|
|
62
|
+
reportId?: string | undefined;
|
|
63
|
+
name: string;
|
|
64
|
+
restaurantIds: string[];
|
|
65
|
+
emails: string[];
|
|
66
|
+
isActive: boolean;
|
|
67
|
+
businessId?: string | undefined;
|
|
68
|
+
option: {
|
|
69
|
+
type: Cycle;
|
|
70
|
+
months?: number[] | undefined;
|
|
71
|
+
days?: number[] | undefined;
|
|
72
|
+
};
|
|
73
|
+
sendTime: {
|
|
74
|
+
hour: number;
|
|
75
|
+
minute: number;
|
|
76
|
+
};
|
|
77
|
+
closeSaleTime: {
|
|
78
|
+
hour: number;
|
|
79
|
+
minute: number;
|
|
80
|
+
};
|
|
81
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
82
|
+
}[]>;
|
|
83
|
+
isOpenScheduleDialog: import("vue").Ref<boolean>;
|
|
84
|
+
scheduler: import("vue").Ref<{
|
|
85
|
+
_id?: string | undefined;
|
|
86
|
+
reportId?: string | undefined;
|
|
87
|
+
name: string;
|
|
88
|
+
restaurantIds: string[];
|
|
89
|
+
emails: string[];
|
|
90
|
+
isActive: boolean;
|
|
91
|
+
businessId?: string | undefined;
|
|
92
|
+
option: {
|
|
93
|
+
type: Cycle;
|
|
94
|
+
months?: number[] | undefined;
|
|
95
|
+
days?: number[] | undefined;
|
|
96
|
+
};
|
|
97
|
+
sendTime: {
|
|
98
|
+
hour: number;
|
|
99
|
+
minute: number;
|
|
100
|
+
};
|
|
101
|
+
closeSaleTime: {
|
|
102
|
+
hour: number;
|
|
103
|
+
minute: number;
|
|
104
|
+
};
|
|
105
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
106
|
+
}[]>;
|
|
107
|
+
fetchSchedules: () => Promise<void>;
|
|
108
|
+
createOrUpdateSchedule: (newSchedule: Schedule) => Promise<void>;
|
|
109
|
+
handleRemoveSchedule: (payload: Schedule) => Promise<void>;
|
|
110
|
+
}, "currentReportScheduler">, Pick<{
|
|
111
|
+
currentReportScheduler: import("vue").ComputedRef<{
|
|
112
|
+
_id?: string | undefined;
|
|
113
|
+
reportId?: string | undefined;
|
|
114
|
+
name: string;
|
|
115
|
+
restaurantIds: string[];
|
|
116
|
+
emails: string[];
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
businessId?: string | undefined;
|
|
119
|
+
option: {
|
|
120
|
+
type: Cycle;
|
|
121
|
+
months?: number[] | undefined;
|
|
122
|
+
days?: number[] | undefined;
|
|
123
|
+
};
|
|
124
|
+
sendTime: {
|
|
125
|
+
hour: number;
|
|
126
|
+
minute: number;
|
|
127
|
+
};
|
|
128
|
+
closeSaleTime: {
|
|
129
|
+
hour: number;
|
|
130
|
+
minute: number;
|
|
131
|
+
};
|
|
132
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
133
|
+
}[]>;
|
|
134
|
+
isOpenScheduleDialog: import("vue").Ref<boolean>;
|
|
135
|
+
scheduler: import("vue").Ref<{
|
|
136
|
+
_id?: string | undefined;
|
|
137
|
+
reportId?: string | undefined;
|
|
138
|
+
name: string;
|
|
139
|
+
restaurantIds: string[];
|
|
140
|
+
emails: string[];
|
|
141
|
+
isActive: boolean;
|
|
142
|
+
businessId?: string | undefined;
|
|
143
|
+
option: {
|
|
144
|
+
type: Cycle;
|
|
145
|
+
months?: number[] | undefined;
|
|
146
|
+
days?: number[] | undefined;
|
|
147
|
+
};
|
|
148
|
+
sendTime: {
|
|
149
|
+
hour: number;
|
|
150
|
+
minute: number;
|
|
151
|
+
};
|
|
152
|
+
closeSaleTime: {
|
|
153
|
+
hour: number;
|
|
154
|
+
minute: number;
|
|
155
|
+
};
|
|
156
|
+
exportFileTypes: import("../types/report").ReportType[];
|
|
157
|
+
}[]>;
|
|
158
|
+
fetchSchedules: () => Promise<void>;
|
|
159
|
+
createOrUpdateSchedule: (newSchedule: Schedule) => Promise<void>;
|
|
160
|
+
handleRemoveSchedule: (payload: Schedule) => Promise<void>;
|
|
161
|
+
}, "fetchSchedules" | "createOrUpdateSchedule" | "handleRemoveSchedule">>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Description : Report State
|
|
3
|
+
* Here we will store the current report state that will be used thoughout the whole report UI
|
|
4
|
+
* Here we include getting the Schema for getting all the report to the report that are available
|
|
5
|
+
* as well as current selected report ID
|
|
6
|
+
*/
|
|
7
|
+
export declare const useSchemaStore: import("pinia").StoreDefinition<"schema-store", import("pinia")._UnwrapAll<Pick<{
|
|
8
|
+
schemas: import("vue").Ref<{
|
|
9
|
+
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
isJoinOnly: boolean;
|
|
12
|
+
joins: string[];
|
|
13
|
+
fields: {
|
|
14
|
+
label: string;
|
|
15
|
+
type: string;
|
|
16
|
+
dimensionOptions: string[];
|
|
17
|
+
aggregations: string[];
|
|
18
|
+
filterOperators: string[];
|
|
19
|
+
filterDimensionOptions: string[];
|
|
20
|
+
fillGapDimensionOptions: string[];
|
|
21
|
+
isNumericAggregations: string[];
|
|
22
|
+
isNumericType: boolean;
|
|
23
|
+
timeFormatters: string[];
|
|
24
|
+
joinConditionOperators: string[];
|
|
25
|
+
labels: string[];
|
|
26
|
+
schemaName: string;
|
|
27
|
+
name: string;
|
|
28
|
+
}[];
|
|
29
|
+
}[]>;
|
|
30
|
+
getSchema: () => Promise<void>;
|
|
31
|
+
}, "schemas">>, Pick<{
|
|
32
|
+
schemas: import("vue").Ref<{
|
|
33
|
+
name: string;
|
|
34
|
+
label: string;
|
|
35
|
+
isJoinOnly: boolean;
|
|
36
|
+
joins: string[];
|
|
37
|
+
fields: {
|
|
38
|
+
label: string;
|
|
39
|
+
type: string;
|
|
40
|
+
dimensionOptions: string[];
|
|
41
|
+
aggregations: string[];
|
|
42
|
+
filterOperators: string[];
|
|
43
|
+
filterDimensionOptions: string[];
|
|
44
|
+
fillGapDimensionOptions: string[];
|
|
45
|
+
isNumericAggregations: string[];
|
|
46
|
+
isNumericType: boolean;
|
|
47
|
+
timeFormatters: string[];
|
|
48
|
+
joinConditionOperators: string[];
|
|
49
|
+
labels: string[];
|
|
50
|
+
schemaName: string;
|
|
51
|
+
name: string;
|
|
52
|
+
}[];
|
|
53
|
+
}[]>;
|
|
54
|
+
getSchema: () => Promise<void>;
|
|
55
|
+
}, never>, Pick<{
|
|
56
|
+
schemas: import("vue").Ref<{
|
|
57
|
+
name: string;
|
|
58
|
+
label: string;
|
|
59
|
+
isJoinOnly: boolean;
|
|
60
|
+
joins: string[];
|
|
61
|
+
fields: {
|
|
62
|
+
label: string;
|
|
63
|
+
type: string;
|
|
64
|
+
dimensionOptions: string[];
|
|
65
|
+
aggregations: string[];
|
|
66
|
+
filterOperators: string[];
|
|
67
|
+
filterDimensionOptions: string[];
|
|
68
|
+
fillGapDimensionOptions: string[];
|
|
69
|
+
isNumericAggregations: string[];
|
|
70
|
+
isNumericType: boolean;
|
|
71
|
+
timeFormatters: string[];
|
|
72
|
+
joinConditionOperators: string[];
|
|
73
|
+
labels: string[];
|
|
74
|
+
schemaName: string;
|
|
75
|
+
name: string;
|
|
76
|
+
}[];
|
|
77
|
+
}[]>;
|
|
78
|
+
getSchema: () => Promise<void>;
|
|
79
|
+
}, "getSchema">>;
|