@managesome/eposmatic-toolkit 0.2.614 → 0.2.616
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/lib/constants/WORKER_ENDPOINTS.d.ts +0 -1
- package/lib/constants/WORKER_ENDPOINTS.js +0 -1
- package/lib/helpers/types/workers.d.ts +0 -9
- package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +21 -0
- package/lib/schemas/models/tenant_cash_drawer_sessions.js +13 -0
- package/lib/schemas/models/tenant_day_sessions.d.ts +12 -0
- package/lib/schemas/models/tenant_day_sessions.js +8 -0
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +21 -0
- package/lib/schemas/models/tenant_instore_shift_sessions.js +13 -0
- package/lib/schemas/types/tenant_cash_drawer_sessions.d.ts +3 -0
- package/lib/schemas/types/tenant_day_sessions.d.ts +2 -0
- package/lib/schemas/types/tenant_instore_shift_sessions.d.ts +3 -0
- package/package.json +1 -1
|
@@ -62,7 +62,6 @@ export declare const WORKER_ENDPOINTS: {
|
|
|
62
62
|
readonly REOPENED_FOODSTREET_SPLIT_ORDER: "/reopened-foodstreet-split-order";
|
|
63
63
|
readonly POST_WAREHOUSE_ACTIVITY_LOGS: "/post-warehouse-activity-logs";
|
|
64
64
|
readonly END_INSTORE_SHIFT: "/end-instore-shift";
|
|
65
|
-
readonly REOPEN_INSTORE_SHIFT: "/reopen-instore-shift";
|
|
66
65
|
readonly END_TENANT_DAY: "/end-tenant-day";
|
|
67
66
|
readonly OPEN_CASH_DRAWER_SESSION: "/open-cash-drawer-session";
|
|
68
67
|
readonly CLOSE_CASH_DRAWER_SESSION: "/close-cash-drawer-session";
|
|
@@ -77,7 +77,6 @@ exports.WORKER_ENDPOINTS = {
|
|
|
77
77
|
POST_WAREHOUSE_ACTIVITY_LOGS: '/post-warehouse-activity-logs',
|
|
78
78
|
// ========================>> Shift / Business Day / Cash Drawer (compile) <<======================= //
|
|
79
79
|
END_INSTORE_SHIFT: '/end-instore-shift',
|
|
80
|
-
REOPEN_INSTORE_SHIFT: '/reopen-instore-shift',
|
|
81
80
|
END_TENANT_DAY: '/end-tenant-day',
|
|
82
81
|
OPEN_CASH_DRAWER_SESSION: '/open-cash-drawer-session',
|
|
83
82
|
CLOSE_CASH_DRAWER_SESSION: '/close-cash-drawer-session',
|
|
@@ -445,15 +445,6 @@ export interface IWorker_EndInstoreShift {
|
|
|
445
445
|
/** The shift TEMPLATE id. */
|
|
446
446
|
shift_id: string;
|
|
447
447
|
}
|
|
448
|
-
export interface IWorker_ReopenInstoreShift {
|
|
449
|
-
tenant_id: string;
|
|
450
|
-
/** The business day (tenant_day_sessions doc id). */
|
|
451
|
-
day_id: string;
|
|
452
|
-
/** The shift session doc id being reopened. */
|
|
453
|
-
shift_session_id: string;
|
|
454
|
-
/** The shift TEMPLATE id. */
|
|
455
|
-
shift_id: string;
|
|
456
|
-
}
|
|
457
448
|
export interface IWorker_EndTenantDay {
|
|
458
449
|
tenant_id: string;
|
|
459
450
|
/** The business day being closed (tenant_day_sessions doc id). */
|
|
@@ -77,6 +77,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
77
77
|
};
|
|
78
78
|
running_balance: number;
|
|
79
79
|
net_movements: number;
|
|
80
|
+
reopened_times: number;
|
|
81
|
+
reopened_at: NativeDate;
|
|
80
82
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
81
83
|
staff_id: string;
|
|
82
84
|
staff_name: string;
|
|
@@ -103,6 +105,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
103
105
|
};
|
|
104
106
|
running_balance: number;
|
|
105
107
|
net_movements: number;
|
|
108
|
+
reopened_times: number;
|
|
109
|
+
reopened_at: NativeDate;
|
|
106
110
|
}> & {
|
|
107
111
|
staff_id: string;
|
|
108
112
|
staff_name: string;
|
|
@@ -129,8 +133,11 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
129
133
|
};
|
|
130
134
|
running_balance: number;
|
|
131
135
|
net_movements: number;
|
|
136
|
+
reopened_times: number;
|
|
137
|
+
reopened_at: NativeDate;
|
|
132
138
|
}>;
|
|
133
139
|
reopened_times: number;
|
|
140
|
+
reopened_at: NativeDate;
|
|
134
141
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
135
142
|
createdAt: NativeDate;
|
|
136
143
|
updatedAt: NativeDate;
|
|
@@ -205,6 +212,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
205
212
|
};
|
|
206
213
|
running_balance: number;
|
|
207
214
|
net_movements: number;
|
|
215
|
+
reopened_times: number;
|
|
216
|
+
reopened_at: NativeDate;
|
|
208
217
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
209
218
|
staff_id: string;
|
|
210
219
|
staff_name: string;
|
|
@@ -231,6 +240,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
231
240
|
};
|
|
232
241
|
running_balance: number;
|
|
233
242
|
net_movements: number;
|
|
243
|
+
reopened_times: number;
|
|
244
|
+
reopened_at: NativeDate;
|
|
234
245
|
}> & {
|
|
235
246
|
staff_id: string;
|
|
236
247
|
staff_name: string;
|
|
@@ -257,8 +268,11 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
257
268
|
};
|
|
258
269
|
running_balance: number;
|
|
259
270
|
net_movements: number;
|
|
271
|
+
reopened_times: number;
|
|
272
|
+
reopened_at: NativeDate;
|
|
260
273
|
}>;
|
|
261
274
|
reopened_times: number;
|
|
275
|
+
reopened_at: NativeDate;
|
|
262
276
|
}>> & import("mongoose").FlatRecord<{
|
|
263
277
|
createdAt: NativeDate;
|
|
264
278
|
updatedAt: NativeDate;
|
|
@@ -333,6 +347,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
333
347
|
};
|
|
334
348
|
running_balance: number;
|
|
335
349
|
net_movements: number;
|
|
350
|
+
reopened_times: number;
|
|
351
|
+
reopened_at: NativeDate;
|
|
336
352
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
337
353
|
staff_id: string;
|
|
338
354
|
staff_name: string;
|
|
@@ -359,6 +375,8 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
359
375
|
};
|
|
360
376
|
running_balance: number;
|
|
361
377
|
net_movements: number;
|
|
378
|
+
reopened_times: number;
|
|
379
|
+
reopened_at: NativeDate;
|
|
362
380
|
}> & {
|
|
363
381
|
staff_id: string;
|
|
364
382
|
staff_name: string;
|
|
@@ -385,8 +403,11 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
385
403
|
};
|
|
386
404
|
running_balance: number;
|
|
387
405
|
net_movements: number;
|
|
406
|
+
reopened_times: number;
|
|
407
|
+
reopened_at: NativeDate;
|
|
388
408
|
}>;
|
|
389
409
|
reopened_times: number;
|
|
410
|
+
reopened_at: NativeDate;
|
|
390
411
|
}> & Required<{
|
|
391
412
|
_id: import("mongoose").Types.ObjectId;
|
|
392
413
|
}> & {
|
|
@@ -83,6 +83,15 @@ const TenantCashDrawerSessionReopeningIterationSchema = new mongoose_1.Schema({
|
|
|
83
83
|
type: String,
|
|
84
84
|
required: true,
|
|
85
85
|
},
|
|
86
|
+
reopened_times: {
|
|
87
|
+
type: Number,
|
|
88
|
+
required: true,
|
|
89
|
+
default: 0,
|
|
90
|
+
},
|
|
91
|
+
reopened_at: {
|
|
92
|
+
type: mongoose_1.Schema.Types.Date,
|
|
93
|
+
default: null,
|
|
94
|
+
},
|
|
86
95
|
opening: {
|
|
87
96
|
type: TenantCashDrawerSessionOpeningSchema,
|
|
88
97
|
default: null,
|
|
@@ -158,6 +167,10 @@ exports.TenantCashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
|
158
167
|
required: true,
|
|
159
168
|
default: 0,
|
|
160
169
|
},
|
|
170
|
+
reopened_at: {
|
|
171
|
+
type: mongoose_1.Schema.Types.Date,
|
|
172
|
+
default: null,
|
|
173
|
+
},
|
|
161
174
|
...common_models_1.LocalTimeFieldsSchema,
|
|
162
175
|
createdAt: {
|
|
163
176
|
type: mongoose_1.Schema.Types.Date,
|
|
@@ -63,6 +63,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
63
63
|
closed_at: NativeDate;
|
|
64
64
|
};
|
|
65
65
|
reopened_times: number;
|
|
66
|
+
reopened_at: NativeDate;
|
|
66
67
|
total_shifts: number;
|
|
67
68
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
68
69
|
staff_id: string;
|
|
@@ -85,6 +86,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
85
86
|
closed_at: NativeDate;
|
|
86
87
|
};
|
|
87
88
|
reopened_times: number;
|
|
89
|
+
reopened_at: NativeDate;
|
|
88
90
|
total_shifts: number;
|
|
89
91
|
}> & {
|
|
90
92
|
staff_id: string;
|
|
@@ -107,9 +109,11 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
107
109
|
closed_at: NativeDate;
|
|
108
110
|
};
|
|
109
111
|
reopened_times: number;
|
|
112
|
+
reopened_at: NativeDate;
|
|
110
113
|
total_shifts: number;
|
|
111
114
|
}>;
|
|
112
115
|
reopened_times: number;
|
|
116
|
+
reopened_at: NativeDate;
|
|
113
117
|
total_shifts: number;
|
|
114
118
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
115
119
|
createdAt: NativeDate;
|
|
@@ -171,6 +175,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
171
175
|
closed_at: NativeDate;
|
|
172
176
|
};
|
|
173
177
|
reopened_times: number;
|
|
178
|
+
reopened_at: NativeDate;
|
|
174
179
|
total_shifts: number;
|
|
175
180
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
176
181
|
staff_id: string;
|
|
@@ -193,6 +198,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
193
198
|
closed_at: NativeDate;
|
|
194
199
|
};
|
|
195
200
|
reopened_times: number;
|
|
201
|
+
reopened_at: NativeDate;
|
|
196
202
|
total_shifts: number;
|
|
197
203
|
}> & {
|
|
198
204
|
staff_id: string;
|
|
@@ -215,9 +221,11 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
215
221
|
closed_at: NativeDate;
|
|
216
222
|
};
|
|
217
223
|
reopened_times: number;
|
|
224
|
+
reopened_at: NativeDate;
|
|
218
225
|
total_shifts: number;
|
|
219
226
|
}>;
|
|
220
227
|
reopened_times: number;
|
|
228
|
+
reopened_at: NativeDate;
|
|
221
229
|
total_shifts: number;
|
|
222
230
|
}>> & import("mongoose").FlatRecord<{
|
|
223
231
|
createdAt: NativeDate;
|
|
@@ -279,6 +287,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
279
287
|
closed_at: NativeDate;
|
|
280
288
|
};
|
|
281
289
|
reopened_times: number;
|
|
290
|
+
reopened_at: NativeDate;
|
|
282
291
|
total_shifts: number;
|
|
283
292
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
284
293
|
staff_id: string;
|
|
@@ -301,6 +310,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
301
310
|
closed_at: NativeDate;
|
|
302
311
|
};
|
|
303
312
|
reopened_times: number;
|
|
313
|
+
reopened_at: NativeDate;
|
|
304
314
|
total_shifts: number;
|
|
305
315
|
}> & {
|
|
306
316
|
staff_id: string;
|
|
@@ -323,9 +333,11 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
323
333
|
closed_at: NativeDate;
|
|
324
334
|
};
|
|
325
335
|
reopened_times: number;
|
|
336
|
+
reopened_at: NativeDate;
|
|
326
337
|
total_shifts: number;
|
|
327
338
|
}>;
|
|
328
339
|
reopened_times: number;
|
|
340
|
+
reopened_at: NativeDate;
|
|
329
341
|
total_shifts: number;
|
|
330
342
|
}> & Required<{
|
|
331
343
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -81,6 +81,10 @@ const TenantDaySessionReopeningIterationSchema = new mongoose_1.Schema({
|
|
|
81
81
|
type: Number,
|
|
82
82
|
required: true,
|
|
83
83
|
},
|
|
84
|
+
reopened_at: {
|
|
85
|
+
type: mongoose_1.Schema.Types.Date,
|
|
86
|
+
default: null,
|
|
87
|
+
},
|
|
84
88
|
updatedAt: {
|
|
85
89
|
type: mongoose_1.Schema.Types.Date,
|
|
86
90
|
required: true,
|
|
@@ -125,6 +129,10 @@ exports.TenantDaySessionSchema = new mongoose_1.Schema({
|
|
|
125
129
|
required: true,
|
|
126
130
|
default: 0,
|
|
127
131
|
},
|
|
132
|
+
reopened_at: {
|
|
133
|
+
type: mongoose_1.Schema.Types.Date,
|
|
134
|
+
default: null,
|
|
135
|
+
},
|
|
128
136
|
...common_models_1.LocalTimeFieldsSchema,
|
|
129
137
|
createdAt: {
|
|
130
138
|
type: mongoose_1.Schema.Types.Date,
|
|
@@ -59,6 +59,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
59
59
|
cash_amount: number;
|
|
60
60
|
closed_at: NativeDate;
|
|
61
61
|
};
|
|
62
|
+
reopened_times: number;
|
|
63
|
+
reopened_at: NativeDate;
|
|
62
64
|
difference: number;
|
|
63
65
|
cash_in_total: number;
|
|
64
66
|
cash_out_total: number;
|
|
@@ -82,6 +84,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
82
84
|
cash_amount: number;
|
|
83
85
|
closed_at: NativeDate;
|
|
84
86
|
};
|
|
87
|
+
reopened_times: number;
|
|
88
|
+
reopened_at: NativeDate;
|
|
85
89
|
difference: number;
|
|
86
90
|
cash_in_total: number;
|
|
87
91
|
cash_out_total: number;
|
|
@@ -105,6 +109,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
105
109
|
cash_amount: number;
|
|
106
110
|
closed_at: NativeDate;
|
|
107
111
|
};
|
|
112
|
+
reopened_times: number;
|
|
113
|
+
reopened_at: NativeDate;
|
|
108
114
|
difference: number;
|
|
109
115
|
cash_in_total: number;
|
|
110
116
|
cash_out_total: number;
|
|
@@ -112,6 +118,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
112
118
|
actual_drawer_total: number;
|
|
113
119
|
}>;
|
|
114
120
|
reopened_times: number;
|
|
121
|
+
reopened_at: NativeDate;
|
|
115
122
|
difference: number;
|
|
116
123
|
shift_id: import("mongoose").Types.ObjectId;
|
|
117
124
|
shift_number: number;
|
|
@@ -175,6 +182,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
175
182
|
cash_amount: number;
|
|
176
183
|
closed_at: NativeDate;
|
|
177
184
|
};
|
|
185
|
+
reopened_times: number;
|
|
186
|
+
reopened_at: NativeDate;
|
|
178
187
|
difference: number;
|
|
179
188
|
cash_in_total: number;
|
|
180
189
|
cash_out_total: number;
|
|
@@ -198,6 +207,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
198
207
|
cash_amount: number;
|
|
199
208
|
closed_at: NativeDate;
|
|
200
209
|
};
|
|
210
|
+
reopened_times: number;
|
|
211
|
+
reopened_at: NativeDate;
|
|
201
212
|
difference: number;
|
|
202
213
|
cash_in_total: number;
|
|
203
214
|
cash_out_total: number;
|
|
@@ -221,6 +232,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
221
232
|
cash_amount: number;
|
|
222
233
|
closed_at: NativeDate;
|
|
223
234
|
};
|
|
235
|
+
reopened_times: number;
|
|
236
|
+
reopened_at: NativeDate;
|
|
224
237
|
difference: number;
|
|
225
238
|
cash_in_total: number;
|
|
226
239
|
cash_out_total: number;
|
|
@@ -228,6 +241,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
228
241
|
actual_drawer_total: number;
|
|
229
242
|
}>;
|
|
230
243
|
reopened_times: number;
|
|
244
|
+
reopened_at: NativeDate;
|
|
231
245
|
difference: number;
|
|
232
246
|
shift_id: import("mongoose").Types.ObjectId;
|
|
233
247
|
shift_number: number;
|
|
@@ -291,6 +305,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
291
305
|
cash_amount: number;
|
|
292
306
|
closed_at: NativeDate;
|
|
293
307
|
};
|
|
308
|
+
reopened_times: number;
|
|
309
|
+
reopened_at: NativeDate;
|
|
294
310
|
difference: number;
|
|
295
311
|
cash_in_total: number;
|
|
296
312
|
cash_out_total: number;
|
|
@@ -314,6 +330,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
314
330
|
cash_amount: number;
|
|
315
331
|
closed_at: NativeDate;
|
|
316
332
|
};
|
|
333
|
+
reopened_times: number;
|
|
334
|
+
reopened_at: NativeDate;
|
|
317
335
|
difference: number;
|
|
318
336
|
cash_in_total: number;
|
|
319
337
|
cash_out_total: number;
|
|
@@ -337,6 +355,8 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
337
355
|
cash_amount: number;
|
|
338
356
|
closed_at: NativeDate;
|
|
339
357
|
};
|
|
358
|
+
reopened_times: number;
|
|
359
|
+
reopened_at: NativeDate;
|
|
340
360
|
difference: number;
|
|
341
361
|
cash_in_total: number;
|
|
342
362
|
cash_out_total: number;
|
|
@@ -344,6 +364,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
344
364
|
actual_drawer_total: number;
|
|
345
365
|
}>;
|
|
346
366
|
reopened_times: number;
|
|
367
|
+
reopened_at: NativeDate;
|
|
347
368
|
difference: number;
|
|
348
369
|
shift_id: import("mongoose").Types.ObjectId;
|
|
349
370
|
shift_number: number;
|
|
@@ -57,6 +57,15 @@ const TenantInstoreShiftReopeningIterationSchema = new mongoose_1.Schema({
|
|
|
57
57
|
type: String,
|
|
58
58
|
required: true,
|
|
59
59
|
},
|
|
60
|
+
reopened_times: {
|
|
61
|
+
type: Number,
|
|
62
|
+
required: true,
|
|
63
|
+
default: 0,
|
|
64
|
+
},
|
|
65
|
+
reopened_at: {
|
|
66
|
+
type: mongoose_1.Schema.Types.Date,
|
|
67
|
+
default: null,
|
|
68
|
+
},
|
|
60
69
|
opening: {
|
|
61
70
|
type: TenantInstoreShiftOpeningSchema,
|
|
62
71
|
default: null,
|
|
@@ -156,6 +165,10 @@ exports.TenantInstoreShiftSessionSchema = new mongoose_1.Schema({
|
|
|
156
165
|
required: true,
|
|
157
166
|
default: 0,
|
|
158
167
|
},
|
|
168
|
+
reopened_at: {
|
|
169
|
+
type: mongoose_1.Schema.Types.Date,
|
|
170
|
+
default: null,
|
|
171
|
+
},
|
|
159
172
|
...common_models_1.LocalTimeFieldsSchema,
|
|
160
173
|
createdAt: {
|
|
161
174
|
type: mongoose_1.Schema.Types.Date,
|
|
@@ -23,6 +23,8 @@ export interface ITenantCashDrawerSessionClosing {
|
|
|
23
23
|
export interface ITenantCashDrawerSessionReopeningIteration {
|
|
24
24
|
staff_id: string;
|
|
25
25
|
staff_name: string;
|
|
26
|
+
reopened_times: number;
|
|
27
|
+
reopened_at: Date | null;
|
|
26
28
|
opening: ITenantCashDrawerSession['opening'];
|
|
27
29
|
closing: ITenantCashDrawerSession['closing'];
|
|
28
30
|
running_balance: ITenantCashDrawerSession['running_balance'];
|
|
@@ -52,6 +54,7 @@ export interface ITenantCashDrawerSession extends ILocalTimeFields {
|
|
|
52
54
|
net_movements: number;
|
|
53
55
|
reopened_iterations: ITenantCashDrawerSessionReopeningIteration[];
|
|
54
56
|
reopened_times: number;
|
|
57
|
+
reopened_at: Date | null;
|
|
55
58
|
createdAt: Date;
|
|
56
59
|
updatedAt: Date;
|
|
57
60
|
}
|
|
@@ -23,6 +23,7 @@ export interface ITenantDaySessionReopeningIteration {
|
|
|
23
23
|
closing: ITenantDaySession['closing'];
|
|
24
24
|
total_shifts: number;
|
|
25
25
|
reopened_times: number;
|
|
26
|
+
reopened_at: Date | null;
|
|
26
27
|
updatedAt: ITenantDaySession['updatedAt'];
|
|
27
28
|
}
|
|
28
29
|
export interface ITenantDaySession extends ILocalTimeFields {
|
|
@@ -34,6 +35,7 @@ export interface ITenantDaySession extends ILocalTimeFields {
|
|
|
34
35
|
total_shifts: number;
|
|
35
36
|
reopened_iterations: ITenantDaySessionReopeningIteration[];
|
|
36
37
|
reopened_times: number;
|
|
38
|
+
reopened_at: Date | null;
|
|
37
39
|
createdAt: Date;
|
|
38
40
|
updatedAt: Date;
|
|
39
41
|
}
|
|
@@ -17,6 +17,8 @@ export interface ITenantInstoreShiftClosing {
|
|
|
17
17
|
export interface ITenantInstoreShiftReopeningIteration {
|
|
18
18
|
staff_id: string;
|
|
19
19
|
staff_name: string;
|
|
20
|
+
reopened_times: number;
|
|
21
|
+
reopened_at: Date | null;
|
|
20
22
|
opening: ITenantInstoreShiftSession['opening'];
|
|
21
23
|
closing: ITenantInstoreShiftSession['closing'];
|
|
22
24
|
cash_in_total: ITenantInstoreShiftSession['cash_in_total'];
|
|
@@ -42,6 +44,7 @@ export interface ITenantInstoreShiftSession extends ILocalTimeFields {
|
|
|
42
44
|
difference: number;
|
|
43
45
|
reopened_iterations: ITenantInstoreShiftReopeningIteration[];
|
|
44
46
|
reopened_times: number;
|
|
47
|
+
reopened_at: Date | null;
|
|
45
48
|
createdAt: Date;
|
|
46
49
|
updatedAt: Date;
|
|
47
50
|
}
|