@managesome/eposmatic-toolkit 0.2.570 → 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.
|
@@ -46,6 +46,7 @@ export * from './reservations';
|
|
|
46
46
|
export * from './reviews';
|
|
47
47
|
export * from './rewards_usage';
|
|
48
48
|
export * from './riders';
|
|
49
|
+
export * from './shift_day_drawer_requests';
|
|
49
50
|
export * from './specials';
|
|
50
51
|
export * from './staff_shifts';
|
|
51
52
|
export * from './tenant-activity-logs';
|
|
@@ -62,6 +62,7 @@ __exportStar(require("./reservations"), exports);
|
|
|
62
62
|
__exportStar(require("./reviews"), exports);
|
|
63
63
|
__exportStar(require("./rewards_usage"), exports);
|
|
64
64
|
__exportStar(require("./riders"), exports);
|
|
65
|
+
__exportStar(require("./shift_day_drawer_requests"), exports);
|
|
65
66
|
__exportStar(require("./specials"), exports);
|
|
66
67
|
__exportStar(require("./staff_shifts"), exports);
|
|
67
68
|
__exportStar(require("./tenant-activity-logs"), exports);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request body contracts for the business day / instore shift / cash drawer
|
|
3
|
+
* lifecycle endpoints (open / reopen / close).
|
|
4
|
+
*
|
|
5
|
+
* Shared between the backend (items-service) and the POS frontend so both sides
|
|
6
|
+
* agree on the exact wire shape for these operations. Field semantics:
|
|
7
|
+
* - `staff_id` / `staff_name` are the operator performing the action.
|
|
8
|
+
* - `cash_amount` is in integer cents (POS converts decimal balances via
|
|
9
|
+
* `convertDecimalToInt`).
|
|
10
|
+
* - `operational_time_zone_offset_gmt` is the tenant's UTC offset (hours) used
|
|
11
|
+
* to stamp the local-time fields.
|
|
12
|
+
*/
|
|
13
|
+
export interface IOpenTenantDayRequestBody {
|
|
14
|
+
tenant_id: string;
|
|
15
|
+
staff_id: string;
|
|
16
|
+
staff_name: string;
|
|
17
|
+
note: string;
|
|
18
|
+
cash_amount: number;
|
|
19
|
+
operational_time_zone_offset_gmt: number;
|
|
20
|
+
}
|
|
21
|
+
export interface IReopenTenantDayRequestBody {
|
|
22
|
+
tenant_id: string;
|
|
23
|
+
staff_id: string;
|
|
24
|
+
staff_name: string;
|
|
25
|
+
note: string;
|
|
26
|
+
operational_time_zone_offset_gmt: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ICloseTenantDayRequestBody {
|
|
29
|
+
tenant_id: string;
|
|
30
|
+
day_session_id: string;
|
|
31
|
+
staff_id: string;
|
|
32
|
+
staff_name: string;
|
|
33
|
+
note?: string;
|
|
34
|
+
cash_amount?: number;
|
|
35
|
+
expected_cash_amount?: number;
|
|
36
|
+
difference?: number;
|
|
37
|
+
cash_in_out_id?: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface IOpenInstoreShiftRequestBody {
|
|
40
|
+
tenant_id: string;
|
|
41
|
+
day_id: string;
|
|
42
|
+
shift_id: string;
|
|
43
|
+
staff_id: string;
|
|
44
|
+
staff_name: string;
|
|
45
|
+
note?: string;
|
|
46
|
+
cash_amount?: number;
|
|
47
|
+
operational_time_zone_offset_gmt: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ICloseInstoreShiftRequestBody {
|
|
50
|
+
tenant_id: string;
|
|
51
|
+
shift_session_id: string;
|
|
52
|
+
staff_id: string;
|
|
53
|
+
staff_name: string;
|
|
54
|
+
note?: string;
|
|
55
|
+
cash_amount?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Client-computed shift totals — kept for compatibility; the backend
|
|
58
|
+
* recomputes these server-side from the ledger and ignores client values.
|
|
59
|
+
*/
|
|
60
|
+
cash_in_total?: number;
|
|
61
|
+
cash_out_total?: number;
|
|
62
|
+
expected_drawer_total?: number;
|
|
63
|
+
actual_drawer_total?: number;
|
|
64
|
+
difference?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface IReopenInstoreShiftRequestBody {
|
|
67
|
+
tenant_id: string;
|
|
68
|
+
shift_session_id: string;
|
|
69
|
+
staff_id: string;
|
|
70
|
+
staff_name: string;
|
|
71
|
+
note?: string;
|
|
72
|
+
cash_amount?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface IOpenCashDrawerSessionRequestBody {
|
|
75
|
+
tenant_id: string;
|
|
76
|
+
drawer_id: string;
|
|
77
|
+
drawer_name?: string;
|
|
78
|
+
day_id: string;
|
|
79
|
+
staff_id: string;
|
|
80
|
+
staff_name: string;
|
|
81
|
+
note?: string;
|
|
82
|
+
cash_amount?: number;
|
|
83
|
+
denominations?: Record<string, number>;
|
|
84
|
+
shift_id?: string | null;
|
|
85
|
+
}
|
|
86
|
+
export interface ICloseCashDrawerSessionRequestBody {
|
|
87
|
+
tenant_id: string;
|
|
88
|
+
staff_id: string;
|
|
89
|
+
staff_name: string;
|
|
90
|
+
note?: string;
|
|
91
|
+
cash_amount: number;
|
|
92
|
+
denominations: Record<string, number>;
|
|
93
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Request body contracts for the business day / instore shift / cash drawer
|
|
4
|
+
* lifecycle endpoints (open / reopen / close).
|
|
5
|
+
*
|
|
6
|
+
* Shared between the backend (items-service) and the POS frontend so both sides
|
|
7
|
+
* agree on the exact wire shape for these operations. Field semantics:
|
|
8
|
+
* - `staff_id` / `staff_name` are the operator performing the action.
|
|
9
|
+
* - `cash_amount` is in integer cents (POS converts decimal balances via
|
|
10
|
+
* `convertDecimalToInt`).
|
|
11
|
+
* - `operational_time_zone_offset_gmt` is the tenant's UTC offset (hours) used
|
|
12
|
+
* to stamp the local-time fields.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|