@feedmepos/mf-transaction 0.0.5-beta → 0.0.7-beta
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-qQeAwVLL.js +167825 -0
- package/dist/app.js +1 -1
- package/dist/{src → apps/mf-transaction/src}/App.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/Entry.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/role/index.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/team/index.d.ts +2 -2
- package/dist/{src → apps/mf-transaction/src}/api/timesheet/index.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/api/transaction/index.d.ts +5 -3
- package/dist/{src → apps/mf-transaction/src}/components/AppForm.vue.d.ts +5 -5
- package/dist/{src → apps/mf-transaction/src}/components/CheckboxInput.vue.d.ts +6 -6
- package/dist/apps/mf-transaction/src/components/FilterDialog.vue.d.ts +13 -0
- package/dist/{src → apps/mf-transaction/src}/components/Navigator.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/src/components/RestaurantSelector.vue.d.ts +6 -0
- package/dist/{src → apps/mf-transaction/src}/views/online/OnlineTransaction.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/views/online/PaymentTable.vue.d.ts +15 -6
- package/dist/{src → apps/mf-transaction/src}/views/online/SettlementTable.vue.d.ts +8 -8
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/FmSettlement.vue.d.ts +6 -6
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/RmsSettlement.vue.d.ts +3 -3
- package/dist/{src → apps/mf-transaction/src}/views/online/detail/SettlementDetail.vue.d.ts +2 -2
- package/dist/{src → apps/mf-transaction/src}/views/receipt/ExportReceipt.vue.d.ts +3 -3
- package/dist/{src → apps/mf-transaction/src}/views/receipt/Receipt.vue.d.ts +1 -1
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/ReceiptDetail.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/InfoBasic.vue.d.ts +20 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/InfoRow.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +14 -0
- package/dist/apps/mf-transaction/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +14 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +4 -4
- package/dist/apps/mf-transaction/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +14 -0
- package/dist/{src → apps/mf-transaction/src}/views/receipt/receipt.d.ts +5 -5
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -0
- package/dist/{index.es-JoRL4qNk.js → index.es-Dh44S0bc.js} +913 -913
- package/dist/packages/shared/src/api/index.d.ts +3 -0
- package/dist/packages/shared/src/api/public.d.ts +5 -0
- package/dist/packages/shared/src/components/button/ResponsiveFabButton.vue.d.ts +12 -0
- package/dist/packages/shared/src/components/dialog/ConfirmActionDialog.vue.d.ts +30 -0
- package/dist/packages/shared/src/components/form/FormLabel.vue.d.ts +33 -0
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +46 -0
- package/dist/packages/shared/src/components/form/RestaurantSelector.vue.d.ts +28 -0
- package/dist/packages/shared/src/components/form/RestaurantSelectorMultiple.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/info/InfoBasic.vue.d.ts +20 -0
- package/dist/packages/shared/src/components/info/Summary.vue.d.ts +19 -0
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +15 -0
- package/dist/packages/shared/src/components/layout/FormColumn.vue.d.ts +21 -0
- package/dist/packages/shared/src/components/layout/FormItem.vue.d.ts +21 -0
- package/dist/packages/shared/src/components/layout/FormRow.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/FormSection.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/layout/FullScreenForm.vue.d.ts +45 -0
- package/dist/packages/shared/src/components/layout/FullWrapper.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/HorizontalSplitter.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/layout/Indent.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/layout/PageLayout.vue.d.ts +24 -0
- package/dist/packages/shared/src/components/map/GoogleMap.vue.d.ts +79 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenu.vue.d.ts +9 -0
- package/dist/packages/shared/src/components/menu/BottomSheetMenuItem.vue.d.ts +17 -0
- package/dist/packages/shared/src/components/menu/ResponsiveContextMenu.vue.d.ts +22 -0
- package/dist/packages/shared/src/components/types.d.ts +95 -0
- package/dist/packages/shared/src/composable/clipboard.d.ts +3 -0
- package/dist/packages/shared/src/composable/elementPosition.d.ts +17 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +12 -0
- package/dist/packages/shared/src/composable/loading.d.ts +29 -0
- package/dist/packages/shared/src/feature/featureMinVersion.d.ts +34 -0
- package/dist/packages/shared/src/helpers/actionButton.d.ts +8 -0
- package/dist/packages/shared/src/helpers/contextMenu.d.ts +13 -0
- package/dist/packages/shared/src/helpers/createComponent.d.ts +7 -0
- package/dist/packages/shared/src/helpers/createForm.d.ts +2 -0
- package/dist/packages/shared/src/helpers/iteration.d.ts +11 -0
- package/dist/packages/shared/src/helpers/map.d.ts +370 -0
- package/dist/packages/shared/src/helpers/object.d.ts +6 -0
- package/dist/packages/shared/src/helpers/rules.d.ts +1 -0
- package/dist/packages/shared/src/stores/app.d.ts +207 -0
- package/dist/packages/shared/src/types/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +5 -4
- package/dist/app-De8rdDAe.js +0 -144269
- package/dist/src/components/FilterDialog.vue.d.ts +0 -13
- package/dist/src/components/RestaurantSelector.vue.d.ts +0 -6
- package/dist/src/helpers/rule.d.ts +0 -29
- package/dist/src/stores/employee.d.ts +0 -539
- package/dist/src/stores/role.d.ts +0 -205
- package/dist/src/stores/timesheet.d.ts +0 -253
- package/dist/src/types/employee.d.ts +0 -29
- package/dist/src/types/permission.d.ts +0 -68
- package/dist/src/types/role.d.ts +0 -37
- package/dist/src/types/team.d.ts +0 -47
- package/dist/src/types/timesheet.d.ts +0 -16
- package/dist/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/InfoBasic.vue.d.ts +0 -20
- package/dist/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +0 -14
- package/dist/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +0 -14
- package/dist/src/views/team/TeamMemberList.vue.d.ts +0 -2
- package/dist/src/views/team/components/AddMemberForm.vue.d.ts +0 -40
- package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -38
- package/dist/src/views/team/components/PortalUserSearcher.vue.d.ts +0 -40
- package/dist/src/views/team/components/TeamMemberBasePermission.vue.d.ts +0 -36
- package/dist/src/views/team/components/TeamMemberConditionPermission.vue.d.ts +0 -50
- package/dist/src/views/team/components/TeamMemberMasterUser.vue.d.ts +0 -836
- package/dist/src/views/team/components/TeamMemberRolePermission.vue.d.ts +0 -46
- package/dist/tsconfig.app.tsbuildinfo +0 -1
- /package/dist/{src → apps/mf-transaction/src}/api/bill/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/employee/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/inventory/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/payment/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/api/user/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/app.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/composables/dateRange.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/composables/message.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/component.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/createComponent.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/createForm.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/export.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/idToDate.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/iteration.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/random.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/string.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/time.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/helpers/utils.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/main.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/router/index.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/router/shared.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/types/restaurant.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/types/transaction.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/views/online/settlement.d.ts +0 -0
- /package/dist/{src → apps/mf-transaction/src}/views/receipt/form.d.ts +0 -0
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import type { Role, IFdtoUpdateRoleReq } from "../types/role";
|
|
2
|
-
export declare const useRoleStore: () => {
|
|
3
|
-
roles: import("vue").Ref<{
|
|
4
|
-
restaurants: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}[];
|
|
8
|
-
restaurantId: string;
|
|
9
|
-
isUsable: boolean;
|
|
10
|
-
name: string;
|
|
11
|
-
_id: string;
|
|
12
|
-
permissions: Record<string, any>[];
|
|
13
|
-
}[], Role[] | {
|
|
14
|
-
restaurants: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
restaurantId: string;
|
|
19
|
-
isUsable: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
_id: string;
|
|
22
|
-
permissions: Record<string, any>[];
|
|
23
|
-
}[]>;
|
|
24
|
-
$state: {
|
|
25
|
-
roles: {
|
|
26
|
-
restaurants: {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
}[];
|
|
30
|
-
restaurantId: string;
|
|
31
|
-
isUsable: boolean;
|
|
32
|
-
name: string;
|
|
33
|
-
_id: string;
|
|
34
|
-
permissions: Record<string, any>[];
|
|
35
|
-
}[];
|
|
36
|
-
} & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
|
|
37
|
-
roles: import("vue").Ref<{
|
|
38
|
-
restaurants: {
|
|
39
|
-
id: string;
|
|
40
|
-
name: string;
|
|
41
|
-
}[];
|
|
42
|
-
restaurantId: string;
|
|
43
|
-
isUsable: boolean;
|
|
44
|
-
name: string;
|
|
45
|
-
_id: string;
|
|
46
|
-
permissions: Record<string, any>[];
|
|
47
|
-
}[], Role[] | {
|
|
48
|
-
restaurants: {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
}[];
|
|
52
|
-
restaurantId: string;
|
|
53
|
-
isUsable: boolean;
|
|
54
|
-
name: string;
|
|
55
|
-
_id: string;
|
|
56
|
-
permissions: Record<string, any>[];
|
|
57
|
-
}[]>;
|
|
58
|
-
readRoles: () => Promise<void>;
|
|
59
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
60
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
61
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
62
|
-
}, "roles">>>;
|
|
63
|
-
$patch(partialState: import("pinia")._DeepPartial<{
|
|
64
|
-
roles: {
|
|
65
|
-
restaurants: {
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
}[];
|
|
69
|
-
restaurantId: string;
|
|
70
|
-
isUsable: boolean;
|
|
71
|
-
name: string;
|
|
72
|
-
_id: string;
|
|
73
|
-
permissions: Record<string, any>[];
|
|
74
|
-
}[];
|
|
75
|
-
}>): void;
|
|
76
|
-
$patch<F extends (state: {
|
|
77
|
-
roles: {
|
|
78
|
-
restaurants: {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
}[];
|
|
82
|
-
restaurantId: string;
|
|
83
|
-
isUsable: boolean;
|
|
84
|
-
name: string;
|
|
85
|
-
_id: string;
|
|
86
|
-
permissions: Record<string, any>[];
|
|
87
|
-
}[];
|
|
88
|
-
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
89
|
-
$reset(): void;
|
|
90
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
|
91
|
-
roles: import("vue").Ref<{
|
|
92
|
-
restaurants: {
|
|
93
|
-
id: string;
|
|
94
|
-
name: string;
|
|
95
|
-
}[];
|
|
96
|
-
restaurantId: string;
|
|
97
|
-
isUsable: boolean;
|
|
98
|
-
name: string;
|
|
99
|
-
_id: string;
|
|
100
|
-
permissions: Record<string, any>[];
|
|
101
|
-
}[], Role[] | {
|
|
102
|
-
restaurants: {
|
|
103
|
-
id: string;
|
|
104
|
-
name: string;
|
|
105
|
-
}[];
|
|
106
|
-
restaurantId: string;
|
|
107
|
-
isUsable: boolean;
|
|
108
|
-
name: string;
|
|
109
|
-
_id: string;
|
|
110
|
-
permissions: Record<string, any>[];
|
|
111
|
-
}[]>;
|
|
112
|
-
readRoles: () => Promise<void>;
|
|
113
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
114
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
115
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
116
|
-
}, "roles">>>, options?: ({
|
|
117
|
-
detached?: boolean | undefined;
|
|
118
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
119
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"role", import("pinia")._UnwrapAll<Pick<{
|
|
120
|
-
roles: import("vue").Ref<{
|
|
121
|
-
restaurants: {
|
|
122
|
-
id: string;
|
|
123
|
-
name: string;
|
|
124
|
-
}[];
|
|
125
|
-
restaurantId: string;
|
|
126
|
-
isUsable: boolean;
|
|
127
|
-
name: string;
|
|
128
|
-
_id: string;
|
|
129
|
-
permissions: Record<string, any>[];
|
|
130
|
-
}[], Role[] | {
|
|
131
|
-
restaurants: {
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
}[];
|
|
135
|
-
restaurantId: string;
|
|
136
|
-
isUsable: boolean;
|
|
137
|
-
name: string;
|
|
138
|
-
_id: string;
|
|
139
|
-
permissions: Record<string, any>[];
|
|
140
|
-
}[]>;
|
|
141
|
-
readRoles: () => Promise<void>;
|
|
142
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
143
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
144
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
145
|
-
}, "roles">>, Pick<{
|
|
146
|
-
roles: import("vue").Ref<{
|
|
147
|
-
restaurants: {
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
}[];
|
|
151
|
-
restaurantId: string;
|
|
152
|
-
isUsable: boolean;
|
|
153
|
-
name: string;
|
|
154
|
-
_id: string;
|
|
155
|
-
permissions: Record<string, any>[];
|
|
156
|
-
}[], Role[] | {
|
|
157
|
-
restaurants: {
|
|
158
|
-
id: string;
|
|
159
|
-
name: string;
|
|
160
|
-
}[];
|
|
161
|
-
restaurantId: string;
|
|
162
|
-
isUsable: boolean;
|
|
163
|
-
name: string;
|
|
164
|
-
_id: string;
|
|
165
|
-
permissions: Record<string, any>[];
|
|
166
|
-
}[]>;
|
|
167
|
-
readRoles: () => Promise<void>;
|
|
168
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
169
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
170
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
171
|
-
}, never>, Pick<{
|
|
172
|
-
roles: import("vue").Ref<{
|
|
173
|
-
restaurants: {
|
|
174
|
-
id: string;
|
|
175
|
-
name: string;
|
|
176
|
-
}[];
|
|
177
|
-
restaurantId: string;
|
|
178
|
-
isUsable: boolean;
|
|
179
|
-
name: string;
|
|
180
|
-
_id: string;
|
|
181
|
-
permissions: Record<string, any>[];
|
|
182
|
-
}[], Role[] | {
|
|
183
|
-
restaurants: {
|
|
184
|
-
id: string;
|
|
185
|
-
name: string;
|
|
186
|
-
}[];
|
|
187
|
-
restaurantId: string;
|
|
188
|
-
isUsable: boolean;
|
|
189
|
-
name: string;
|
|
190
|
-
_id: string;
|
|
191
|
-
permissions: Record<string, any>[];
|
|
192
|
-
}[]>;
|
|
193
|
-
readRoles: () => Promise<void>;
|
|
194
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
195
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
196
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
197
|
-
}, "readRoles" | "createRole" | "updateRole" | "deleteRole">>, detached?: boolean | undefined): () => void;
|
|
198
|
-
$dispose(): void;
|
|
199
|
-
$id: "role";
|
|
200
|
-
_customProperties: Set<string>;
|
|
201
|
-
readRoles: () => Promise<void>;
|
|
202
|
-
createRole: (dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
203
|
-
updateRole: (roleId: string, dto: IFdtoUpdateRoleReq) => Promise<void>;
|
|
204
|
-
deleteRole: (role: Role) => Promise<void>;
|
|
205
|
-
};
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import type { IFdtoTimesheet, Timesheet } from "../types/timesheet";
|
|
2
|
-
export declare const useTimesheetStore: () => {
|
|
3
|
-
timesheets: import("vue").Ref<{
|
|
4
|
-
start: string;
|
|
5
|
-
end: string;
|
|
6
|
-
totalMin: number;
|
|
7
|
-
duration: string;
|
|
8
|
-
restaurantId: string;
|
|
9
|
-
restaurantName: string;
|
|
10
|
-
endedAt?: string | null | undefined;
|
|
11
|
-
user: {
|
|
12
|
-
name: string;
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
_id: string;
|
|
16
|
-
startedAt: string;
|
|
17
|
-
}[], Timesheet[] | {
|
|
18
|
-
start: string;
|
|
19
|
-
end: string;
|
|
20
|
-
totalMin: number;
|
|
21
|
-
duration: string;
|
|
22
|
-
restaurantId: string;
|
|
23
|
-
restaurantName: string;
|
|
24
|
-
endedAt?: string | null | undefined;
|
|
25
|
-
user: {
|
|
26
|
-
name: string;
|
|
27
|
-
id: string;
|
|
28
|
-
};
|
|
29
|
-
_id: string;
|
|
30
|
-
startedAt: string;
|
|
31
|
-
}[]>;
|
|
32
|
-
$state: {
|
|
33
|
-
timesheets: {
|
|
34
|
-
start: string;
|
|
35
|
-
end: string;
|
|
36
|
-
totalMin: number;
|
|
37
|
-
duration: string;
|
|
38
|
-
restaurantId: string;
|
|
39
|
-
restaurantName: string;
|
|
40
|
-
endedAt?: string | null | undefined;
|
|
41
|
-
user: {
|
|
42
|
-
name: string;
|
|
43
|
-
id: string;
|
|
44
|
-
};
|
|
45
|
-
_id: string;
|
|
46
|
-
startedAt: string;
|
|
47
|
-
}[];
|
|
48
|
-
} & import("pinia").PiniaCustomStateProperties<import("pinia")._UnwrapAll<Pick<{
|
|
49
|
-
timesheets: import("vue").Ref<{
|
|
50
|
-
start: string;
|
|
51
|
-
end: string;
|
|
52
|
-
totalMin: number;
|
|
53
|
-
duration: string;
|
|
54
|
-
restaurantId: string;
|
|
55
|
-
restaurantName: string;
|
|
56
|
-
endedAt?: string | null | undefined;
|
|
57
|
-
user: {
|
|
58
|
-
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
_id: string;
|
|
62
|
-
startedAt: string;
|
|
63
|
-
}[], Timesheet[] | {
|
|
64
|
-
start: string;
|
|
65
|
-
end: string;
|
|
66
|
-
totalMin: number;
|
|
67
|
-
duration: string;
|
|
68
|
-
restaurantId: string;
|
|
69
|
-
restaurantName: string;
|
|
70
|
-
endedAt?: string | null | undefined;
|
|
71
|
-
user: {
|
|
72
|
-
name: string;
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
75
|
-
_id: string;
|
|
76
|
-
startedAt: string;
|
|
77
|
-
}[]>;
|
|
78
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
79
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
80
|
-
}, "timesheets">>>;
|
|
81
|
-
$patch(partialState: import("pinia")._DeepPartial<{
|
|
82
|
-
timesheets: {
|
|
83
|
-
start: string;
|
|
84
|
-
end: string;
|
|
85
|
-
totalMin: number;
|
|
86
|
-
duration: string;
|
|
87
|
-
restaurantId: string;
|
|
88
|
-
restaurantName: string;
|
|
89
|
-
endedAt?: string | null | undefined;
|
|
90
|
-
user: {
|
|
91
|
-
name: string;
|
|
92
|
-
id: string;
|
|
93
|
-
};
|
|
94
|
-
_id: string;
|
|
95
|
-
startedAt: string;
|
|
96
|
-
}[];
|
|
97
|
-
}>): void;
|
|
98
|
-
$patch<F extends (state: {
|
|
99
|
-
timesheets: {
|
|
100
|
-
start: string;
|
|
101
|
-
end: string;
|
|
102
|
-
totalMin: number;
|
|
103
|
-
duration: string;
|
|
104
|
-
restaurantId: string;
|
|
105
|
-
restaurantName: string;
|
|
106
|
-
endedAt?: string | null | undefined;
|
|
107
|
-
user: {
|
|
108
|
-
name: string;
|
|
109
|
-
id: string;
|
|
110
|
-
};
|
|
111
|
-
_id: string;
|
|
112
|
-
startedAt: string;
|
|
113
|
-
}[];
|
|
114
|
-
}) => any>(stateMutator: ReturnType<F> extends Promise<any> ? never : F): void;
|
|
115
|
-
$reset(): void;
|
|
116
|
-
$subscribe(callback: import("pinia").SubscriptionCallback<import("pinia")._UnwrapAll<Pick<{
|
|
117
|
-
timesheets: import("vue").Ref<{
|
|
118
|
-
start: string;
|
|
119
|
-
end: string;
|
|
120
|
-
totalMin: number;
|
|
121
|
-
duration: string;
|
|
122
|
-
restaurantId: string;
|
|
123
|
-
restaurantName: string;
|
|
124
|
-
endedAt?: string | null | undefined;
|
|
125
|
-
user: {
|
|
126
|
-
name: string;
|
|
127
|
-
id: string;
|
|
128
|
-
};
|
|
129
|
-
_id: string;
|
|
130
|
-
startedAt: string;
|
|
131
|
-
}[], Timesheet[] | {
|
|
132
|
-
start: string;
|
|
133
|
-
end: string;
|
|
134
|
-
totalMin: number;
|
|
135
|
-
duration: string;
|
|
136
|
-
restaurantId: string;
|
|
137
|
-
restaurantName: string;
|
|
138
|
-
endedAt?: string | null | undefined;
|
|
139
|
-
user: {
|
|
140
|
-
name: string;
|
|
141
|
-
id: string;
|
|
142
|
-
};
|
|
143
|
-
_id: string;
|
|
144
|
-
startedAt: string;
|
|
145
|
-
}[]>;
|
|
146
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
147
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
148
|
-
}, "timesheets">>>, options?: ({
|
|
149
|
-
detached?: boolean | undefined;
|
|
150
|
-
} & import("vue").WatchOptions<boolean>) | undefined): () => void;
|
|
151
|
-
$onAction(callback: import("pinia").StoreOnActionListener<"timesheet", import("pinia")._UnwrapAll<Pick<{
|
|
152
|
-
timesheets: import("vue").Ref<{
|
|
153
|
-
start: string;
|
|
154
|
-
end: string;
|
|
155
|
-
totalMin: number;
|
|
156
|
-
duration: string;
|
|
157
|
-
restaurantId: string;
|
|
158
|
-
restaurantName: string;
|
|
159
|
-
endedAt?: string | null | undefined;
|
|
160
|
-
user: {
|
|
161
|
-
name: string;
|
|
162
|
-
id: string;
|
|
163
|
-
};
|
|
164
|
-
_id: string;
|
|
165
|
-
startedAt: string;
|
|
166
|
-
}[], Timesheet[] | {
|
|
167
|
-
start: string;
|
|
168
|
-
end: string;
|
|
169
|
-
totalMin: number;
|
|
170
|
-
duration: string;
|
|
171
|
-
restaurantId: string;
|
|
172
|
-
restaurantName: string;
|
|
173
|
-
endedAt?: string | null | undefined;
|
|
174
|
-
user: {
|
|
175
|
-
name: string;
|
|
176
|
-
id: string;
|
|
177
|
-
};
|
|
178
|
-
_id: string;
|
|
179
|
-
startedAt: string;
|
|
180
|
-
}[]>;
|
|
181
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
182
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
183
|
-
}, "timesheets">>, Pick<{
|
|
184
|
-
timesheets: import("vue").Ref<{
|
|
185
|
-
start: string;
|
|
186
|
-
end: string;
|
|
187
|
-
totalMin: number;
|
|
188
|
-
duration: string;
|
|
189
|
-
restaurantId: string;
|
|
190
|
-
restaurantName: string;
|
|
191
|
-
endedAt?: string | null | undefined;
|
|
192
|
-
user: {
|
|
193
|
-
name: string;
|
|
194
|
-
id: string;
|
|
195
|
-
};
|
|
196
|
-
_id: string;
|
|
197
|
-
startedAt: string;
|
|
198
|
-
}[], Timesheet[] | {
|
|
199
|
-
start: string;
|
|
200
|
-
end: string;
|
|
201
|
-
totalMin: number;
|
|
202
|
-
duration: string;
|
|
203
|
-
restaurantId: string;
|
|
204
|
-
restaurantName: string;
|
|
205
|
-
endedAt?: string | null | undefined;
|
|
206
|
-
user: {
|
|
207
|
-
name: string;
|
|
208
|
-
id: string;
|
|
209
|
-
};
|
|
210
|
-
_id: string;
|
|
211
|
-
startedAt: string;
|
|
212
|
-
}[]>;
|
|
213
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
214
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
215
|
-
}, never>, Pick<{
|
|
216
|
-
timesheets: import("vue").Ref<{
|
|
217
|
-
start: string;
|
|
218
|
-
end: string;
|
|
219
|
-
totalMin: number;
|
|
220
|
-
duration: string;
|
|
221
|
-
restaurantId: string;
|
|
222
|
-
restaurantName: string;
|
|
223
|
-
endedAt?: string | null | undefined;
|
|
224
|
-
user: {
|
|
225
|
-
name: string;
|
|
226
|
-
id: string;
|
|
227
|
-
};
|
|
228
|
-
_id: string;
|
|
229
|
-
startedAt: string;
|
|
230
|
-
}[], Timesheet[] | {
|
|
231
|
-
start: string;
|
|
232
|
-
end: string;
|
|
233
|
-
totalMin: number;
|
|
234
|
-
duration: string;
|
|
235
|
-
restaurantId: string;
|
|
236
|
-
restaurantName: string;
|
|
237
|
-
endedAt?: string | null | undefined;
|
|
238
|
-
user: {
|
|
239
|
-
name: string;
|
|
240
|
-
id: string;
|
|
241
|
-
};
|
|
242
|
-
_id: string;
|
|
243
|
-
startedAt: string;
|
|
244
|
-
}[]>;
|
|
245
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
246
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
247
|
-
}, "readTimesheet" | "updateTimesheet">>, detached?: boolean | undefined): () => void;
|
|
248
|
-
$dispose(): void;
|
|
249
|
-
$id: "timesheet";
|
|
250
|
-
_customProperties: Set<string>;
|
|
251
|
-
readTimesheet: (start: Date, end: Date) => Promise<void>;
|
|
252
|
-
updateTimesheet: (timesheet: IFdtoTimesheet, start: string, end: string) => Promise<void>;
|
|
253
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { FdoEmployee, FdoAdvanceEmployee } from "@feedmepos/core/entity";
|
|
2
|
-
type FdtoPosUserBaseType = FdoEmployee | FdoAdvanceEmployee;
|
|
3
|
-
export type FdtoPosUserType = FdtoPosUserBaseType & {
|
|
4
|
-
isMasterUser: boolean;
|
|
5
|
-
restaurantId: string;
|
|
6
|
-
};
|
|
7
|
-
export type IFdtoPosUser = FdtoPosUserType & {
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
export type Employee = IFdtoPosUser & {
|
|
11
|
-
restaurants: {
|
|
12
|
-
restaurantId: string;
|
|
13
|
-
restaurantName: string;
|
|
14
|
-
roleId: string;
|
|
15
|
-
roleName: string;
|
|
16
|
-
}[];
|
|
17
|
-
since: string;
|
|
18
|
-
};
|
|
19
|
-
export interface EmployeeData {
|
|
20
|
-
isMasterUser: boolean;
|
|
21
|
-
code: string | null;
|
|
22
|
-
name: string;
|
|
23
|
-
passcode: string;
|
|
24
|
-
restaurants: {
|
|
25
|
-
restaurantId: string;
|
|
26
|
-
roleId: string;
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type RawRule, Ability } from "@casl/ability";
|
|
2
|
-
export declare namespace Permission {
|
|
3
|
-
enum Level {
|
|
4
|
-
feedMe = 0,
|
|
5
|
-
business = 1,
|
|
6
|
-
restaurant = 2
|
|
7
|
-
}
|
|
8
|
-
enum Action {
|
|
9
|
-
manage = "manage",
|
|
10
|
-
create = "create",
|
|
11
|
-
read = "read",
|
|
12
|
-
update = "update",
|
|
13
|
-
delete = "delete"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export declare namespace Permission.Subject {
|
|
17
|
-
enum Feedme {
|
|
18
|
-
all = "all",
|
|
19
|
-
restaurant = "restaurant",
|
|
20
|
-
business = "business",
|
|
21
|
-
delivery = "delivery",
|
|
22
|
-
agent = "agent"
|
|
23
|
-
}
|
|
24
|
-
enum FeedmeBusinessField {
|
|
25
|
-
quota = "quota",
|
|
26
|
-
owner = "owner"
|
|
27
|
-
}
|
|
28
|
-
enum Business {
|
|
29
|
-
profile = "business::profile",
|
|
30
|
-
restaurant = "business::restaurant",
|
|
31
|
-
menu = "business::menu",
|
|
32
|
-
promotion = "business::promotion",
|
|
33
|
-
voucher = "business::voucher",
|
|
34
|
-
membership = "business::membership",
|
|
35
|
-
stock = "business::stock",
|
|
36
|
-
permission = "business::permission",
|
|
37
|
-
role = "business::role"
|
|
38
|
-
}
|
|
39
|
-
enum Restaurant {
|
|
40
|
-
restaurant = "restaurant"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export interface AbilityConstructOption {
|
|
44
|
-
userId: string;
|
|
45
|
-
level: number;
|
|
46
|
-
role: string;
|
|
47
|
-
businessId?: string;
|
|
48
|
-
restaurantId?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface PermissionLevelDetail {
|
|
51
|
-
isAdmin: (perviousLevel: Ability, option: AbilityConstructOption) => boolean;
|
|
52
|
-
getRules: (options: AbilityConstructOption) => Promise<RawRule[]>;
|
|
53
|
-
}
|
|
54
|
-
export declare const fullPermission: {
|
|
55
|
-
[key: string]: IFdtoPortalPermission;
|
|
56
|
-
};
|
|
57
|
-
export interface IFdtoPortalPermission extends RawRule {
|
|
58
|
-
label: string;
|
|
59
|
-
}
|
|
60
|
-
export interface IPermissionUser {
|
|
61
|
-
businessId: string;
|
|
62
|
-
userId: string;
|
|
63
|
-
/** @deprecated */
|
|
64
|
-
email?: string;
|
|
65
|
-
/** @deprecated */
|
|
66
|
-
phoneNumber?: string;
|
|
67
|
-
permissions: RawRule[];
|
|
68
|
-
}
|
package/dist/src/types/role.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { FdoPermissionRule, FdoPosRole } from "@feedmepos/core/entity";
|
|
2
|
-
export interface IFdtoPosRole extends FdoPosRole {
|
|
3
|
-
restaurantId: string;
|
|
4
|
-
isUsable: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface IFdtoUpdateRoleReq {
|
|
7
|
-
restaurantIds: string[];
|
|
8
|
-
role: {
|
|
9
|
-
permissions: Record<string, any>[];
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface Role extends IFdtoPosRole {
|
|
14
|
-
restaurants: {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
|
-
export interface RoleDialogData {
|
|
20
|
-
name: string;
|
|
21
|
-
restaurantIds: string[];
|
|
22
|
-
permissions: FdoPermissionRule[];
|
|
23
|
-
}
|
|
24
|
-
export interface RoleData {
|
|
25
|
-
name: string;
|
|
26
|
-
restaurantIds: string[];
|
|
27
|
-
permissions: string[];
|
|
28
|
-
maxDiscountPercentage: number;
|
|
29
|
-
}
|
|
30
|
-
export interface Rule extends FdoPermissionRule {
|
|
31
|
-
condition: any;
|
|
32
|
-
isDiscountOperation: boolean;
|
|
33
|
-
isOrderOperation: boolean;
|
|
34
|
-
isReportPermission: boolean;
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}
|
package/dist/src/types/team.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { RawRule } from "@casl/ability";
|
|
2
|
-
export interface IPermissionUser {
|
|
3
|
-
businessId: string;
|
|
4
|
-
userId: string;
|
|
5
|
-
/** @deprecated */
|
|
6
|
-
email?: string;
|
|
7
|
-
/** @deprecated */
|
|
8
|
-
phoneNumber?: string;
|
|
9
|
-
permissions: RawRule[];
|
|
10
|
-
}
|
|
11
|
-
export interface IFdtoPortalUser extends IPermissionUser {
|
|
12
|
-
id: string;
|
|
13
|
-
posUserId: string;
|
|
14
|
-
isOwner: boolean;
|
|
15
|
-
name: string;
|
|
16
|
-
phoneNumber: string;
|
|
17
|
-
email: string;
|
|
18
|
-
posUser?: IFdtoPermissionPosUser;
|
|
19
|
-
}
|
|
20
|
-
export interface IFdtoPermissionPosUser {
|
|
21
|
-
name: string;
|
|
22
|
-
passcode: string;
|
|
23
|
-
roles: IFdtoPermissionPosUserRole[];
|
|
24
|
-
}
|
|
25
|
-
export interface IFdtoPermissionPosUserRole {
|
|
26
|
-
restaurantId: string;
|
|
27
|
-
roleId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IFdtoUpdatePortalUserReq {
|
|
30
|
-
permissions?: RawRule[];
|
|
31
|
-
posUser?: IFdtoPermissionPosUser;
|
|
32
|
-
}
|
|
33
|
-
export interface IFdtoCreatePortalUserReq {
|
|
34
|
-
phoneNumber?: string;
|
|
35
|
-
email?: string;
|
|
36
|
-
permissions: RawRule[];
|
|
37
|
-
posUser?: IFdtoPermissionPosUser;
|
|
38
|
-
}
|
|
39
|
-
export interface FTeamMember {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
phoneNumber: string;
|
|
43
|
-
email: string;
|
|
44
|
-
restaurants: string[];
|
|
45
|
-
permissions: string[];
|
|
46
|
-
doc: IFdtoPortalUser;
|
|
47
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FdoTimesheet } from "@feedmepos/core/entity";
|
|
2
|
-
export interface IFdtoTimesheet extends FdoTimesheet {
|
|
3
|
-
restaurantId: string;
|
|
4
|
-
restaurantName: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UpdateTimesheetDTO {
|
|
7
|
-
id: string;
|
|
8
|
-
startAt: string;
|
|
9
|
-
endAt: string;
|
|
10
|
-
}
|
|
11
|
-
export interface Timesheet extends IFdtoTimesheet {
|
|
12
|
-
start: string;
|
|
13
|
-
end: string;
|
|
14
|
-
totalMin: number;
|
|
15
|
-
duration: string;
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
|
-
import type { Receipt } from "@/views/receipt/receipt";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
receipt: {
|
|
5
|
-
type: PropType<Receipt>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
receipt: {
|
|
10
|
-
type: PropType<Receipt>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
}>>, {}, {}>;
|
|
14
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
name: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
value: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
name: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
value: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>>, {}, {}>;
|
|
20
|
-
export default _default;
|