@techallee/foodverse 1.3.1 → 1.4.1
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/package.json
CHANGED
|
@@ -18,6 +18,9 @@ declare type State =
|
|
|
18
18
|
| 'TH';
|
|
19
19
|
declare type OpenTimeType = 'pause' | 'opened' | 'delivery' | 'takeaway';
|
|
20
20
|
declare type WeekDayType = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
21
|
+
declare type VehicleType = 'nothing' | 'bike' | 'motorbike' | 'car' | 'scooter' | 'skateboard';
|
|
22
|
+
declare type WalletType = 'nothing' | 'cash_register' | 'waiter_wallet' | 'courier_wallet';
|
|
23
|
+
declare type ReminderTrigger = 'onOrderCreated' | 'onOrderConfirmed' | 'onOrderSorted' | 'onOrderPrepared' | 'onOrderDelivered' | 'alwaysReminder';
|
|
21
24
|
|
|
22
25
|
declare type Holiday = Record<State, Record<string, {datum: string; hinweis: string}>>
|
|
23
26
|
|
|
@@ -102,6 +105,74 @@ declare interface Tab {
|
|
|
102
105
|
name: string;
|
|
103
106
|
icon: number;
|
|
104
107
|
restaurantId: string;
|
|
108
|
+
categoryIds: string[];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare interface VehicleUsage {
|
|
112
|
+
id: string;
|
|
113
|
+
startFuel: number;
|
|
114
|
+
endFuel: number;
|
|
115
|
+
start: string;
|
|
116
|
+
end: string;
|
|
117
|
+
vehicleId: string;
|
|
118
|
+
staffId: string;
|
|
119
|
+
staff?: Staff;
|
|
120
|
+
vehicle?: Vehicle;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare interface Vehicle {
|
|
124
|
+
id: string;
|
|
125
|
+
name: string;
|
|
126
|
+
fuel: number;
|
|
127
|
+
status: boolean;
|
|
128
|
+
type: VehicleType;
|
|
129
|
+
userId: string;
|
|
130
|
+
vehicleUsages?: VehicleUsage[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare interface Transaction {
|
|
134
|
+
id: string;
|
|
135
|
+
amount: number;
|
|
136
|
+
cashIn: boolean;
|
|
137
|
+
date: string | null;
|
|
138
|
+
notice: string | null;
|
|
139
|
+
userId: string | null;
|
|
140
|
+
walletId: string | null;
|
|
141
|
+
orderId: string | null;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare interface WalletUsage {
|
|
145
|
+
id: string;
|
|
146
|
+
startAmount: number;
|
|
147
|
+
endAmount: number;
|
|
148
|
+
start: string | null;
|
|
149
|
+
end: string | null;
|
|
150
|
+
walletId: string;
|
|
151
|
+
staffId: string;
|
|
152
|
+
staff?: Staff;
|
|
153
|
+
wallet?: Wallet;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare interface Wallet {
|
|
157
|
+
id: string;
|
|
158
|
+
name: string;
|
|
159
|
+
amount: number;
|
|
160
|
+
defaultAmount: number;
|
|
161
|
+
status: boolean;
|
|
162
|
+
type: WalletType;
|
|
163
|
+
userId: string;
|
|
164
|
+
|
|
165
|
+
walletUsages?: WalletUsage[];
|
|
166
|
+
records?: Transaction[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
declare interface Reminder {
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
trigger: ReminderTrigger;
|
|
173
|
+
targets: RoleCode[];
|
|
174
|
+
remindedProducts: string[];
|
|
175
|
+
userId: string;
|
|
105
176
|
}
|
|
106
177
|
|
|
107
178
|
declare interface Restaurant {
|