@feedmepos/mf-transaction 0.0.1-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.
Files changed (82) hide show
  1. package/README.md +31 -0
  2. package/dist/app-BOlyScCe.js +141127 -0
  3. package/dist/app.js +5 -0
  4. package/dist/favicon.ico +0 -0
  5. package/dist/html2canvas.esm-DgRhIRvu.js +4870 -0
  6. package/dist/index.es-6a79NHf-.js +5618 -0
  7. package/dist/purify.es-CFivMm59.js +471 -0
  8. package/dist/src/App.vue.d.ts +2 -0
  9. package/dist/src/Entry.vue.d.ts +2 -0
  10. package/dist/src/api/bill/index.d.ts +3 -0
  11. package/dist/src/api/employee/index.d.ts +13 -0
  12. package/dist/src/api/index.d.ts +4 -0
  13. package/dist/src/api/inventory/index.d.ts +5 -0
  14. package/dist/src/api/payment/index.d.ts +3 -0
  15. package/dist/src/api/role/index.d.ts +9 -0
  16. package/dist/src/api/team/index.d.ts +9 -0
  17. package/dist/src/api/timesheet/index.d.ts +6 -0
  18. package/dist/src/api/transaction/index.d.ts +32 -0
  19. package/dist/src/api/user/index.d.ts +6 -0
  20. package/dist/src/app.d.ts +2 -0
  21. package/dist/src/components/AppForm.vue.d.ts +41 -0
  22. package/dist/src/components/CheckboxInput.vue.d.ts +140 -0
  23. package/dist/src/components/FilterDialog.vue.d.ts +13 -0
  24. package/dist/src/components/Navigator.vue.d.ts +2 -0
  25. package/dist/src/components/RestaurantSelector.vue.d.ts +6 -0
  26. package/dist/src/composables/dateRange.d.ts +17 -0
  27. package/dist/src/composables/message.d.ts +4 -0
  28. package/dist/src/helpers/component.d.ts +12 -0
  29. package/dist/src/helpers/createComponent.d.ts +7 -0
  30. package/dist/src/helpers/createForm.d.ts +2 -0
  31. package/dist/src/helpers/export.d.ts +12 -0
  32. package/dist/src/helpers/idToDate.d.ts +1 -0
  33. package/dist/src/helpers/iteration.d.ts +10 -0
  34. package/dist/src/helpers/random.d.ts +3 -0
  35. package/dist/src/helpers/rule.d.ts +29 -0
  36. package/dist/src/helpers/string.d.ts +5 -0
  37. package/dist/src/helpers/time.d.ts +7 -0
  38. package/dist/src/helpers/utils.d.ts +5 -0
  39. package/dist/src/main.d.ts +2 -0
  40. package/dist/src/router/index.d.ts +2 -0
  41. package/dist/src/router/shared.d.ts +4 -0
  42. package/dist/src/stores/employee.d.ts +539 -0
  43. package/dist/src/stores/role.d.ts +205 -0
  44. package/dist/src/stores/timesheet.d.ts +253 -0
  45. package/dist/src/types/employee.d.ts +29 -0
  46. package/dist/src/types/permission.d.ts +68 -0
  47. package/dist/src/types/restaurant.d.ts +18 -0
  48. package/dist/src/types/role.d.ts +37 -0
  49. package/dist/src/types/team.d.ts +47 -0
  50. package/dist/src/types/timesheet.d.ts +16 -0
  51. package/dist/src/types/transaction.d.ts +6 -0
  52. package/dist/src/views/online/OnlineTransaction.vue.d.ts +2 -0
  53. package/dist/src/views/online/PaymentTable.vue.d.ts +112 -0
  54. package/dist/src/views/online/SettlementTable.vue.d.ts +66 -0
  55. package/dist/src/views/online/detail/FmSettlement.vue.d.ts +32 -0
  56. package/dist/src/views/online/detail/RmsSettlement.vue.d.ts +22 -0
  57. package/dist/src/views/online/detail/SettlementDetail.vue.d.ts +5 -0
  58. package/dist/src/views/online/settlement.d.ts +52 -0
  59. package/dist/src/views/receipt/ExportReceipt.vue.d.ts +36 -0
  60. package/dist/src/views/receipt/Receipt.vue.d.ts +2 -0
  61. package/dist/src/views/receipt/detail/ReceiptDetail.vue.d.ts +26 -0
  62. package/dist/src/views/receipt/detail/activity/ReceiptActivities.vue.d.ts +14 -0
  63. package/dist/src/views/receipt/detail/info/InfoBasic.vue.d.ts +20 -0
  64. package/dist/src/views/receipt/detail/info/InfoRow.vue.d.ts +30 -0
  65. package/dist/src/views/receipt/detail/info/ReceiptInfo.vue.d.ts +14 -0
  66. package/dist/src/views/receipt/detail/info/ReceiptItem.vue.d.ts +14 -0
  67. package/dist/src/views/receipt/detail/info/ReceiptPreview.vue.d.ts +14 -0
  68. package/dist/src/views/receipt/detail/info/ReceiptSubItem.vue.d.ts +24 -0
  69. package/dist/src/views/receipt/detail/item/ReceiptGroupItem.vue.d.ts +14 -0
  70. package/dist/src/views/receipt/form.d.ts +3 -0
  71. package/dist/src/views/receipt/receipt.d.ts +118 -0
  72. package/dist/src/views/team/TeamMemberList.vue.d.ts +2 -0
  73. package/dist/src/views/team/components/AddMemberForm.vue.d.ts +40 -0
  74. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +38 -0
  75. package/dist/src/views/team/components/PortalUserSearcher.vue.d.ts +40 -0
  76. package/dist/src/views/team/components/TeamMemberBasePermission.vue.d.ts +36 -0
  77. package/dist/src/views/team/components/TeamMemberConditionPermission.vue.d.ts +50 -0
  78. package/dist/src/views/team/components/TeamMemberMasterUser.vue.d.ts +836 -0
  79. package/dist/src/views/team/components/TeamMemberRolePermission.vue.d.ts +46 -0
  80. package/dist/style.css +1 -0
  81. package/dist/tsconfig.app.tsbuildinfo +1 -0
  82. package/package.json +79 -0
@@ -0,0 +1,205 @@
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
+ };
@@ -0,0 +1,253 @@
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
+ };
@@ -0,0 +1,29 @@
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 {};
@@ -0,0 +1,68 @@
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
+ }
@@ -0,0 +1,18 @@
1
+ import type { FdoAddress, FdoProfile, FdoRestaurant } from "@feedmepos/core/entity";
2
+ export interface Address extends FdoAddress {
3
+ formatted: string;
4
+ isValidPostcode: boolean;
5
+ isValid: boolean;
6
+ isValidCoordinate: boolean;
7
+ }
8
+ export interface Profile extends FdoProfile {
9
+ address: Address;
10
+ }
11
+ export interface ExtendedRestaurant extends FdoRestaurant {
12
+ id: string;
13
+ profile: Profile;
14
+ allowEPayment: true | string;
15
+ msicCode?: string;
16
+ tinNo?: string;
17
+ isEInvoiceActive?: boolean;
18
+ }
@@ -0,0 +1,37 @@
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
+ }
@@ -0,0 +1,47 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum TransactionStatus {
2
+ success = "SUCCESS",
3
+ pending = "PENDING",
4
+ failed = "FAILED",
5
+ refunded = "REFUNDED"
6
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;