@techallee/foodverse 1.3.1 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techallee/foodverse",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "index.d.ts",
@@ -18,6 +18,8 @@ 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'
21
23
 
22
24
  declare type Holiday = Record<State, Record<string, {datum: string; hinweis: string}>>
23
25
 
@@ -102,6 +104,65 @@ declare interface Tab {
102
104
  name: string;
103
105
  icon: number;
104
106
  restaurantId: string;
107
+ categoryIds: string[];
108
+ }
109
+
110
+ declare interface VehicleUsage {
111
+ id: string;
112
+ startFuel: number;
113
+ endFuel: number;
114
+ start: string;
115
+ end: string;
116
+ vehicleId: string;
117
+ staffId: string;
118
+ staff?: Staff;
119
+ vehicle?: Vehicle;
120
+ }
121
+
122
+ declare interface Vehicle {
123
+ id: string;
124
+ name: string;
125
+ fuel: number;
126
+ status: boolean;
127
+ type: VehicleType;
128
+ userId: string;
129
+ vehicleUsages?: VehicleUsage[];
130
+ }
131
+
132
+ declare interface Transaction {
133
+ id: string;
134
+ amount: number;
135
+ cashIn: boolean;
136
+ date: string | null;
137
+ notice: string | null;
138
+ userId: string | null;
139
+ walletId: string | null;
140
+ orderId: string | null;
141
+ }
142
+
143
+ declare interface WalletUsage {
144
+ id: string;
145
+ startAmount: number;
146
+ endAmount: number;
147
+ start: string | null;
148
+ end: string | null;
149
+ walletId: string;
150
+ staffId: string;
151
+ staff?: Staff;
152
+ wallet?: Wallet;
153
+ }
154
+
155
+ declare interface Wallet {
156
+ id: string;
157
+ name: string;
158
+ amount: number;
159
+ defaultAmount: number;
160
+ status: boolean;
161
+ type: WalletType;
162
+ userId: string;
163
+
164
+ walletUsages?: WalletUsage[];
165
+ records?: Transaction[];
105
166
  }
106
167
 
107
168
  declare interface Restaurant {