@managesome/eposmatic-toolkit 0.2.569 → 0.2.572
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/helpers/utils/tenant-cash-drawer-sessions-helpers.js +102 -0
- package/lib/helpers/utils/tenant-day-sessions-helpers.js +82 -0
- package/lib/helpers/utils/tenant-instore-shift-sessions-helpers.js +112 -0
- package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +207 -9
- package/lib/schemas/models/tenant_cash_drawer_sessions.js +20 -4
- package/lib/schemas/models/tenant_day_sessions.d.ts +162 -9
- package/lib/schemas/models/tenant_day_sessions.js +12 -4
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +180 -9
- package/lib/schemas/models/tenant_instore_shift_sessions.js +32 -4
- package/lib/schemas/types/index.d.ts +1 -0
- package/lib/schemas/types/index.js +1 -0
- package/lib/schemas/types/shift_day_drawer_requests.d.ts +93 -0
- package/lib/schemas/types/shift_day_drawer_requests.js +14 -0
- package/lib/schemas/types/tenant_cash_drawer_sessions.d.ts +7 -3
- package/lib/schemas/types/tenant_day_sessions.d.ts +5 -3
- package/lib/schemas/types/tenant_instore_shift_sessions.d.ts +10 -3
- package/package.json +1 -1
|
@@ -17,10 +17,12 @@ export interface ITenantDaySessionClosing {
|
|
|
17
17
|
difference: number;
|
|
18
18
|
cash_in_out_id: string | null;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface ITenantDaySessionReopeningIteration {
|
|
21
21
|
staff_id: string;
|
|
22
22
|
staff_name: string;
|
|
23
|
-
|
|
23
|
+
opening: ITenantDaySession['opening'];
|
|
24
|
+
closing: ITenantDaySession['closing'];
|
|
25
|
+
updatedAt: ITenantDaySession['updatedAt'];
|
|
24
26
|
}
|
|
25
27
|
export interface ITenantDaySession extends ILocalTimeFields {
|
|
26
28
|
_id: string;
|
|
@@ -29,7 +31,7 @@ export interface ITenantDaySession extends ILocalTimeFields {
|
|
|
29
31
|
opening: ITenantDaySessionOpening | null;
|
|
30
32
|
closing: ITenantDaySessionClosing | null;
|
|
31
33
|
total_shifts: number;
|
|
32
|
-
reopened_iterations:
|
|
34
|
+
reopened_iterations: ITenantDaySessionReopeningIteration[];
|
|
33
35
|
reopened_times: number;
|
|
34
36
|
createdAt: Date;
|
|
35
37
|
updatedAt: Date;
|
|
@@ -14,10 +14,17 @@ export interface ITenantInstoreShiftClosing {
|
|
|
14
14
|
closed_at: Date;
|
|
15
15
|
cash_amount: number;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface ITenantInstoreShiftReopeningIteration {
|
|
18
18
|
staff_id: string;
|
|
19
19
|
staff_name: string;
|
|
20
|
-
|
|
20
|
+
opening: ITenantInstoreShiftSession['opening'];
|
|
21
|
+
closing: ITenantInstoreShiftSession['closing'];
|
|
22
|
+
cash_in_total: ITenantInstoreShiftSession['cash_in_total'];
|
|
23
|
+
cash_out_total: ITenantInstoreShiftSession['cash_out_total'];
|
|
24
|
+
expected_drawer_total: ITenantInstoreShiftSession['expected_drawer_total'];
|
|
25
|
+
actual_drawer_total: ITenantInstoreShiftSession['actual_drawer_total'];
|
|
26
|
+
difference: ITenantInstoreShiftSession['difference'];
|
|
27
|
+
updatedAt: ITenantInstoreShiftSession['updatedAt'];
|
|
21
28
|
}
|
|
22
29
|
export interface ITenantInstoreShiftSession extends ILocalTimeFields {
|
|
23
30
|
_id: string;
|
|
@@ -33,7 +40,7 @@ export interface ITenantInstoreShiftSession extends ILocalTimeFields {
|
|
|
33
40
|
expected_drawer_total: number;
|
|
34
41
|
actual_drawer_total: number;
|
|
35
42
|
difference: number;
|
|
36
|
-
reopened_iterations:
|
|
43
|
+
reopened_iterations: ITenantInstoreShiftReopeningIteration[];
|
|
37
44
|
reopened_times: number;
|
|
38
45
|
createdAt: Date;
|
|
39
46
|
updatedAt: Date;
|