@managesome/eposmatic-toolkit 0.2.563 → 0.2.565
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/index.d.ts +3 -1
- package/lib/helpers/utils/index.js +3 -1
- package/lib/helpers/utils/tenant-cash-drawer-sessions-helpers.d.ts +9 -0
- package/lib/helpers/utils/tenant-cash-drawer-sessions-helpers.js +89 -0
- package/lib/helpers/utils/tenant-cash-in-out-helpers.d.ts +9 -0
- package/lib/helpers/utils/tenant-cash-in-out-helpers.js +51 -0
- package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +105 -21
- package/lib/schemas/models/tenant_cash_drawer_sessions.js +96 -20
- package/lib/schemas/models/tenant_cash_in_hand_transactions.d.ts +3 -3
- package/lib/schemas/models/tenant_cash_in_out.d.ts +12 -9
- package/lib/schemas/models/tenant_cash_in_out.js +7 -3
- package/lib/schemas/models/tenant_day_sessions.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_employees.d.ts +0 -3
- package/lib/schemas/models/tenant_hr_employees.js +0 -5
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +3 -3
- package/lib/schemas/models/tenant_staffs.d.ts +3 -3
- package/lib/schemas/types/tenant_cash_drawer_sessions.d.ts +30 -7
- package/lib/schemas/types/tenant_cash_in_out.d.ts +1 -0
- package/lib/schemas/types/tenant_hr_employees.d.ts +5 -6
- package/package.json +1 -1
|
@@ -55,10 +55,12 @@ export * from './sales-summary-report-helpers';
|
|
|
55
55
|
export * from './simplified-catalog';
|
|
56
56
|
export * from './simplified-tenant';
|
|
57
57
|
export * from './specials-helpers';
|
|
58
|
-
export * from './
|
|
58
|
+
export * from './tenant-cash-drawer-sessions-helpers';
|
|
59
|
+
export * from './tenant-cash-in-out-helpers';
|
|
59
60
|
export * from './tenant-day-sessions-helpers';
|
|
60
61
|
export * from './tenant-instore-shift-sessions-helpers';
|
|
61
62
|
export * from './tenant-staff-helpers';
|
|
63
|
+
export * from './tenant_cash_in_hand_transactions';
|
|
62
64
|
export * from './time-helpers';
|
|
63
65
|
export * from './void-items-report-helpers';
|
|
64
66
|
export * from './void-order-items-helpers';
|
|
@@ -71,10 +71,12 @@ __exportStar(require("./sales-summary-report-helpers"), exports);
|
|
|
71
71
|
__exportStar(require("./simplified-catalog"), exports);
|
|
72
72
|
__exportStar(require("./simplified-tenant"), exports);
|
|
73
73
|
__exportStar(require("./specials-helpers"), exports);
|
|
74
|
-
__exportStar(require("./
|
|
74
|
+
__exportStar(require("./tenant-cash-drawer-sessions-helpers"), exports);
|
|
75
|
+
__exportStar(require("./tenant-cash-in-out-helpers"), exports);
|
|
75
76
|
__exportStar(require("./tenant-day-sessions-helpers"), exports);
|
|
76
77
|
__exportStar(require("./tenant-instore-shift-sessions-helpers"), exports);
|
|
77
78
|
__exportStar(require("./tenant-staff-helpers"), exports);
|
|
79
|
+
__exportStar(require("./tenant_cash_in_hand_transactions"), exports);
|
|
78
80
|
__exportStar(require("./time-helpers"), exports);
|
|
79
81
|
__exportStar(require("./void-items-report-helpers"), exports);
|
|
80
82
|
__exportStar(require("./void-order-items-helpers"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITenantCashDrawerSession } from '../../schemas';
|
|
2
|
+
/**
|
|
3
|
+
* Converts all monetary fields on a cash drawer session from cents to dollars.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getTenantCashDrawerSessionFromCents<T extends Partial<ITenantCashDrawerSession> | ITenantCashDrawerSession>(session: T): T;
|
|
6
|
+
/**
|
|
7
|
+
* Converts all monetary fields on a cash drawer session from dollars to cents.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTenantCashDrawerSessionWithCents<T extends Partial<ITenantCashDrawerSession> | ITenantCashDrawerSession>(session: T): T;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTenantCashDrawerSessionFromCents = getTenantCashDrawerSessionFromCents;
|
|
4
|
+
exports.getTenantCashDrawerSessionWithCents = getTenantCashDrawerSessionWithCents;
|
|
5
|
+
const price_conversion_1 = require("./price-conversion");
|
|
6
|
+
/**
|
|
7
|
+
* Converts all monetary fields on a cash drawer session from cents to dollars.
|
|
8
|
+
*/
|
|
9
|
+
function getTenantCashDrawerSessionFromCents(session) {
|
|
10
|
+
return {
|
|
11
|
+
...session,
|
|
12
|
+
...(session.opening != null
|
|
13
|
+
? {
|
|
14
|
+
opening: {
|
|
15
|
+
...session.opening,
|
|
16
|
+
...(typeof session.opening.cash_amount === 'number'
|
|
17
|
+
? {
|
|
18
|
+
cash_amount: (0, price_conversion_1.convertPriceFromCents)(session.opening.cash_amount),
|
|
19
|
+
}
|
|
20
|
+
: {}),
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
: {}),
|
|
24
|
+
...(session.closing != null
|
|
25
|
+
? {
|
|
26
|
+
closing: {
|
|
27
|
+
...session.closing,
|
|
28
|
+
...(typeof session.closing.cash_amount === 'number'
|
|
29
|
+
? {
|
|
30
|
+
cash_amount: (0, price_conversion_1.convertPriceFromCents)(session.closing.cash_amount),
|
|
31
|
+
}
|
|
32
|
+
: {}),
|
|
33
|
+
...(typeof session.closing.expected_cash_amount === 'number'
|
|
34
|
+
? {
|
|
35
|
+
expected_cash_amount: (0, price_conversion_1.convertPriceFromCents)(session.closing.expected_cash_amount),
|
|
36
|
+
}
|
|
37
|
+
: {}),
|
|
38
|
+
...(typeof session.closing.difference === 'number'
|
|
39
|
+
? {
|
|
40
|
+
difference: (0, price_conversion_1.convertPriceFromCents)(session.closing.difference),
|
|
41
|
+
}
|
|
42
|
+
: {}),
|
|
43
|
+
},
|
|
44
|
+
}
|
|
45
|
+
: {}),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Converts all monetary fields on a cash drawer session from dollars to cents.
|
|
50
|
+
*/
|
|
51
|
+
function getTenantCashDrawerSessionWithCents(session) {
|
|
52
|
+
return {
|
|
53
|
+
...session,
|
|
54
|
+
...(session.opening != null
|
|
55
|
+
? {
|
|
56
|
+
opening: {
|
|
57
|
+
...session.opening,
|
|
58
|
+
...(typeof session.opening.cash_amount === 'number'
|
|
59
|
+
? {
|
|
60
|
+
cash_amount: (0, price_conversion_1.convertPriceToCents)(session.opening.cash_amount),
|
|
61
|
+
}
|
|
62
|
+
: {}),
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
: {}),
|
|
66
|
+
...(session.closing != null
|
|
67
|
+
? {
|
|
68
|
+
closing: {
|
|
69
|
+
...session.closing,
|
|
70
|
+
...(typeof session.closing.cash_amount === 'number'
|
|
71
|
+
? {
|
|
72
|
+
cash_amount: (0, price_conversion_1.convertPriceToCents)(session.closing.cash_amount),
|
|
73
|
+
}
|
|
74
|
+
: {}),
|
|
75
|
+
...(typeof session.closing.expected_cash_amount === 'number'
|
|
76
|
+
? {
|
|
77
|
+
expected_cash_amount: (0, price_conversion_1.convertPriceToCents)(session.closing.expected_cash_amount),
|
|
78
|
+
}
|
|
79
|
+
: {}),
|
|
80
|
+
...(typeof session.closing.difference === 'number'
|
|
81
|
+
? {
|
|
82
|
+
difference: (0, price_conversion_1.convertPriceToCents)(session.closing.difference),
|
|
83
|
+
}
|
|
84
|
+
: {}),
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
: {}),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITenantCashInOut } from '../../schemas';
|
|
2
|
+
/**
|
|
3
|
+
* Converts all monetary fields on a cash in/out record from cents to dollars.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getTenantCashInOutFromCents<T extends Partial<ITenantCashInOut> | ITenantCashInOut>(cashInOut: T): T;
|
|
6
|
+
/**
|
|
7
|
+
* Converts all monetary fields on a cash in/out record from dollars to cents.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getTenantCashInOutWithCents<T extends Partial<ITenantCashInOut> | ITenantCashInOut>(cashInOut: T): T;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTenantCashInOutFromCents = getTenantCashInOutFromCents;
|
|
4
|
+
exports.getTenantCashInOutWithCents = getTenantCashInOutWithCents;
|
|
5
|
+
const price_conversion_1 = require("./price-conversion");
|
|
6
|
+
/**
|
|
7
|
+
* Converts all monetary fields on a cash in/out record from cents to dollars.
|
|
8
|
+
*/
|
|
9
|
+
function getTenantCashInOutFromCents(cashInOut) {
|
|
10
|
+
return {
|
|
11
|
+
...cashInOut,
|
|
12
|
+
...(typeof cashInOut.amount === 'number'
|
|
13
|
+
? {
|
|
14
|
+
amount: (0, price_conversion_1.convertPriceFromCents)(cashInOut.amount),
|
|
15
|
+
}
|
|
16
|
+
: {}),
|
|
17
|
+
...(typeof cashInOut.drawer_balance_before === 'number'
|
|
18
|
+
? {
|
|
19
|
+
drawer_balance_before: (0, price_conversion_1.convertPriceFromCents)(cashInOut.drawer_balance_before),
|
|
20
|
+
}
|
|
21
|
+
: {}),
|
|
22
|
+
...(typeof cashInOut.drawer_balance_after === 'number'
|
|
23
|
+
? {
|
|
24
|
+
drawer_balance_after: (0, price_conversion_1.convertPriceFromCents)(cashInOut.drawer_balance_after),
|
|
25
|
+
}
|
|
26
|
+
: {}),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Converts all monetary fields on a cash in/out record from dollars to cents.
|
|
31
|
+
*/
|
|
32
|
+
function getTenantCashInOutWithCents(cashInOut) {
|
|
33
|
+
return {
|
|
34
|
+
...cashInOut,
|
|
35
|
+
...(typeof cashInOut.amount === 'number'
|
|
36
|
+
? {
|
|
37
|
+
amount: (0, price_conversion_1.convertPriceToCents)(cashInOut.amount),
|
|
38
|
+
}
|
|
39
|
+
: {}),
|
|
40
|
+
...(typeof cashInOut.drawer_balance_before === 'number'
|
|
41
|
+
? {
|
|
42
|
+
drawer_balance_before: (0, price_conversion_1.convertPriceToCents)(cashInOut.drawer_balance_before),
|
|
43
|
+
}
|
|
44
|
+
: {}),
|
|
45
|
+
...(typeof cashInOut.drawer_balance_after === 'number'
|
|
46
|
+
? {
|
|
47
|
+
drawer_balance_after: (0, price_conversion_1.convertPriceToCents)(cashInOut.drawer_balance_after),
|
|
48
|
+
}
|
|
49
|
+
: {}),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,8 +9,6 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
tenant_id: string;
|
|
12
|
-
staff_id: string;
|
|
13
|
-
staff_name: string;
|
|
14
12
|
createdAt: NativeDate;
|
|
15
13
|
updatedAt: NativeDate;
|
|
16
14
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
@@ -28,21 +26,49 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
28
26
|
localDate: string;
|
|
29
27
|
localTime: string;
|
|
30
28
|
localDayOfYear: number;
|
|
31
|
-
|
|
29
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
32
30
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
33
31
|
drawer_name: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
opening: {
|
|
33
|
+
staff_id: string;
|
|
34
|
+
staff_name: string;
|
|
35
|
+
note: string;
|
|
36
|
+
cash_amount: number;
|
|
37
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
38
|
+
opened_at: NativeDate;
|
|
39
|
+
denominations: Map<string, number>;
|
|
40
|
+
};
|
|
41
|
+
closing: {
|
|
42
|
+
staff_id: string;
|
|
43
|
+
staff_name: string;
|
|
44
|
+
note: string;
|
|
45
|
+
cash_amount: number;
|
|
46
|
+
expected_cash_amount: number;
|
|
47
|
+
difference: number;
|
|
48
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
denominations: Map<string, number>;
|
|
50
|
+
closed_at: NativeDate;
|
|
51
|
+
};
|
|
52
|
+
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
53
|
+
staff_id: string;
|
|
54
|
+
staff_name: string;
|
|
55
|
+
reopened_at: NativeDate;
|
|
56
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
57
|
+
staff_id: string;
|
|
58
|
+
staff_name: string;
|
|
59
|
+
reopened_at: NativeDate;
|
|
60
|
+
}> & {
|
|
61
|
+
staff_id: string;
|
|
62
|
+
staff_name: string;
|
|
63
|
+
reopened_at: NativeDate;
|
|
64
|
+
}>;
|
|
65
|
+
reopened_times: number;
|
|
38
66
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
39
67
|
createdAt: NativeDate;
|
|
40
68
|
updatedAt: NativeDate;
|
|
41
69
|
} & {
|
|
42
70
|
_id: import("mongoose").Types.ObjectId;
|
|
43
71
|
tenant_id: string;
|
|
44
|
-
staff_id: string;
|
|
45
|
-
staff_name: string;
|
|
46
72
|
createdAt: NativeDate;
|
|
47
73
|
updatedAt: NativeDate;
|
|
48
74
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
@@ -60,21 +86,49 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
60
86
|
localDate: string;
|
|
61
87
|
localTime: string;
|
|
62
88
|
localDayOfYear: number;
|
|
63
|
-
|
|
89
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
64
90
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
65
91
|
drawer_name: string;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
92
|
+
opening: {
|
|
93
|
+
staff_id: string;
|
|
94
|
+
staff_name: string;
|
|
95
|
+
note: string;
|
|
96
|
+
cash_amount: number;
|
|
97
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
98
|
+
opened_at: NativeDate;
|
|
99
|
+
denominations: Map<string, number>;
|
|
100
|
+
};
|
|
101
|
+
closing: {
|
|
102
|
+
staff_id: string;
|
|
103
|
+
staff_name: string;
|
|
104
|
+
note: string;
|
|
105
|
+
cash_amount: number;
|
|
106
|
+
expected_cash_amount: number;
|
|
107
|
+
difference: number;
|
|
108
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
109
|
+
denominations: Map<string, number>;
|
|
110
|
+
closed_at: NativeDate;
|
|
111
|
+
};
|
|
112
|
+
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
113
|
+
staff_id: string;
|
|
114
|
+
staff_name: string;
|
|
115
|
+
reopened_at: NativeDate;
|
|
116
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
117
|
+
staff_id: string;
|
|
118
|
+
staff_name: string;
|
|
119
|
+
reopened_at: NativeDate;
|
|
120
|
+
}> & {
|
|
121
|
+
staff_id: string;
|
|
122
|
+
staff_name: string;
|
|
123
|
+
reopened_at: NativeDate;
|
|
124
|
+
}>;
|
|
125
|
+
reopened_times: number;
|
|
70
126
|
}>> & import("mongoose").FlatRecord<{
|
|
71
127
|
createdAt: NativeDate;
|
|
72
128
|
updatedAt: NativeDate;
|
|
73
129
|
} & {
|
|
74
130
|
_id: import("mongoose").Types.ObjectId;
|
|
75
131
|
tenant_id: string;
|
|
76
|
-
staff_id: string;
|
|
77
|
-
staff_name: string;
|
|
78
132
|
createdAt: NativeDate;
|
|
79
133
|
updatedAt: NativeDate;
|
|
80
134
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
@@ -92,13 +146,43 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
92
146
|
localDate: string;
|
|
93
147
|
localTime: string;
|
|
94
148
|
localDayOfYear: number;
|
|
95
|
-
|
|
149
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
96
150
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
97
151
|
drawer_name: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
152
|
+
opening: {
|
|
153
|
+
staff_id: string;
|
|
154
|
+
staff_name: string;
|
|
155
|
+
note: string;
|
|
156
|
+
cash_amount: number;
|
|
157
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
158
|
+
opened_at: NativeDate;
|
|
159
|
+
denominations: Map<string, number>;
|
|
160
|
+
};
|
|
161
|
+
closing: {
|
|
162
|
+
staff_id: string;
|
|
163
|
+
staff_name: string;
|
|
164
|
+
note: string;
|
|
165
|
+
cash_amount: number;
|
|
166
|
+
expected_cash_amount: number;
|
|
167
|
+
difference: number;
|
|
168
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
169
|
+
denominations: Map<string, number>;
|
|
170
|
+
closed_at: NativeDate;
|
|
171
|
+
};
|
|
172
|
+
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
173
|
+
staff_id: string;
|
|
174
|
+
staff_name: string;
|
|
175
|
+
reopened_at: NativeDate;
|
|
176
|
+
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
177
|
+
staff_id: string;
|
|
178
|
+
staff_name: string;
|
|
179
|
+
reopened_at: NativeDate;
|
|
180
|
+
}> & {
|
|
181
|
+
staff_id: string;
|
|
182
|
+
staff_name: string;
|
|
183
|
+
reopened_at: NativeDate;
|
|
184
|
+
}>;
|
|
185
|
+
reopened_times: number;
|
|
102
186
|
}> & Required<{
|
|
103
187
|
_id: import("mongoose").Types.ObjectId;
|
|
104
188
|
}> & {
|
|
@@ -4,6 +4,90 @@ exports.TENANT_CASH_DRAWER_SESSIONS_COLLECTION_NAME = exports.TenantCashDrawerSe
|
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const common_models_1 = require("./common-models");
|
|
7
|
+
const TenantCashDrawerSessionOpeningSchema = new mongoose_1.Schema({
|
|
8
|
+
staff_id: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
staff_name: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
note: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: '',
|
|
19
|
+
},
|
|
20
|
+
opened_at: {
|
|
21
|
+
type: Date,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
cash_amount: {
|
|
25
|
+
type: Number,
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
denominations: {
|
|
29
|
+
type: Map,
|
|
30
|
+
of: Number,
|
|
31
|
+
default: {},
|
|
32
|
+
},
|
|
33
|
+
shift_id: {
|
|
34
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
35
|
+
default: null,
|
|
36
|
+
},
|
|
37
|
+
}, { _id: false, minimize: false });
|
|
38
|
+
const TenantCashDrawerSessionClosingSchema = new mongoose_1.Schema({
|
|
39
|
+
staff_id: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
staff_name: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
note: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: '',
|
|
50
|
+
},
|
|
51
|
+
closed_at: {
|
|
52
|
+
type: Date,
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
cash_amount: {
|
|
56
|
+
type: Number,
|
|
57
|
+
required: true,
|
|
58
|
+
},
|
|
59
|
+
expected_cash_amount: {
|
|
60
|
+
type: Number,
|
|
61
|
+
required: true,
|
|
62
|
+
},
|
|
63
|
+
difference: {
|
|
64
|
+
type: Number,
|
|
65
|
+
required: true,
|
|
66
|
+
},
|
|
67
|
+
denominations: {
|
|
68
|
+
type: Map,
|
|
69
|
+
of: Number,
|
|
70
|
+
default: {},
|
|
71
|
+
},
|
|
72
|
+
shift_id: {
|
|
73
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
74
|
+
default: null,
|
|
75
|
+
},
|
|
76
|
+
}, { _id: false, minimize: false });
|
|
77
|
+
const TenantCashDrawerSessionReopeningSchema = new mongoose_1.Schema({
|
|
78
|
+
staff_id: {
|
|
79
|
+
type: String,
|
|
80
|
+
required: true,
|
|
81
|
+
},
|
|
82
|
+
staff_name: {
|
|
83
|
+
type: String,
|
|
84
|
+
required: true,
|
|
85
|
+
},
|
|
86
|
+
reopened_at: {
|
|
87
|
+
type: Date,
|
|
88
|
+
required: true,
|
|
89
|
+
},
|
|
90
|
+
}, { _id: false, minimize: false });
|
|
7
91
|
exports.TenantCashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
8
92
|
_id: {
|
|
9
93
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -16,7 +100,7 @@ exports.TenantCashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
|
16
100
|
immutable: true,
|
|
17
101
|
ref: 'tenants',
|
|
18
102
|
},
|
|
19
|
-
|
|
103
|
+
day_id: {
|
|
20
104
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
21
105
|
required: true,
|
|
22
106
|
},
|
|
@@ -33,30 +117,22 @@ exports.TenantCashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
|
33
117
|
enum: constants_1.ALL_CASH_DRAWER_STATUS,
|
|
34
118
|
required: true,
|
|
35
119
|
},
|
|
36
|
-
|
|
37
|
-
type:
|
|
38
|
-
|
|
39
|
-
default: {},
|
|
120
|
+
opening: {
|
|
121
|
+
type: TenantCashDrawerSessionOpeningSchema,
|
|
122
|
+
default: null,
|
|
40
123
|
},
|
|
41
|
-
|
|
42
|
-
type:
|
|
43
|
-
|
|
124
|
+
closing: {
|
|
125
|
+
type: TenantCashDrawerSessionClosingSchema,
|
|
126
|
+
default: null,
|
|
44
127
|
},
|
|
45
|
-
|
|
46
|
-
type:
|
|
47
|
-
|
|
128
|
+
reopened_iterations: {
|
|
129
|
+
type: [TenantCashDrawerSessionReopeningSchema],
|
|
130
|
+
default: [],
|
|
48
131
|
},
|
|
49
|
-
|
|
132
|
+
reopened_times: {
|
|
50
133
|
type: Number,
|
|
51
134
|
required: true,
|
|
52
|
-
|
|
53
|
-
staff_id: {
|
|
54
|
-
type: String,
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
staff_name: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: true,
|
|
135
|
+
default: 0,
|
|
60
136
|
},
|
|
61
137
|
...common_models_1.LocalTimeFieldsSchema,
|
|
62
138
|
createdAt: {
|
|
@@ -16,10 +16,10 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
16
16
|
note: string;
|
|
17
17
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
18
18
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
19
|
+
cash_in_hand: number;
|
|
19
20
|
processed_by_id: string;
|
|
20
21
|
processed_by_name: string;
|
|
21
22
|
prev_cash_in_hand: number;
|
|
22
|
-
cash_in_hand: number;
|
|
23
23
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
24
24
|
createdAt: NativeDate;
|
|
25
25
|
updatedAt: NativeDate;
|
|
@@ -33,10 +33,10 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
33
33
|
note: string;
|
|
34
34
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
35
35
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
36
|
+
cash_in_hand: number;
|
|
36
37
|
processed_by_id: string;
|
|
37
38
|
processed_by_name: string;
|
|
38
39
|
prev_cash_in_hand: number;
|
|
39
|
-
cash_in_hand: number;
|
|
40
40
|
}>> & import("mongoose").FlatRecord<{
|
|
41
41
|
createdAt: NativeDate;
|
|
42
42
|
updatedAt: NativeDate;
|
|
@@ -50,10 +50,10 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
50
50
|
note: string;
|
|
51
51
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
52
52
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
53
|
+
cash_in_hand: number;
|
|
53
54
|
processed_by_id: string;
|
|
54
55
|
processed_by_name: string;
|
|
55
56
|
prev_cash_in_hand: number;
|
|
56
|
-
cash_in_hand: number;
|
|
57
57
|
}> & Required<{
|
|
58
58
|
_id: import("mongoose").Types.ObjectId;
|
|
59
59
|
}> & {
|
|
@@ -30,10 +30,11 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
30
30
|
localDate: string;
|
|
31
31
|
localTime: string;
|
|
32
32
|
localDayOfYear: number;
|
|
33
|
-
|
|
33
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
34
|
+
drawer_id: import("mongoose").Types.ObjectId;
|
|
35
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
36
|
+
expense_id: import("mongoose").Types.ObjectId;
|
|
34
37
|
shift_number: number;
|
|
35
|
-
drawer_id: string;
|
|
36
|
-
expense_id: string;
|
|
37
38
|
drawer_balance_before: number;
|
|
38
39
|
drawer_balance_after: number;
|
|
39
40
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -63,10 +64,11 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
63
64
|
localDate: string;
|
|
64
65
|
localTime: string;
|
|
65
66
|
localDayOfYear: number;
|
|
66
|
-
|
|
67
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
68
|
+
drawer_id: import("mongoose").Types.ObjectId;
|
|
69
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
70
|
+
expense_id: import("mongoose").Types.ObjectId;
|
|
67
71
|
shift_number: number;
|
|
68
|
-
drawer_id: string;
|
|
69
|
-
expense_id: string;
|
|
70
72
|
drawer_balance_before: number;
|
|
71
73
|
drawer_balance_after: number;
|
|
72
74
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -96,10 +98,11 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
96
98
|
localDate: string;
|
|
97
99
|
localTime: string;
|
|
98
100
|
localDayOfYear: number;
|
|
99
|
-
|
|
101
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
102
|
+
drawer_id: import("mongoose").Types.ObjectId;
|
|
103
|
+
shift_id: import("mongoose").Types.ObjectId;
|
|
104
|
+
expense_id: import("mongoose").Types.ObjectId;
|
|
100
105
|
shift_number: number;
|
|
101
|
-
drawer_id: string;
|
|
102
|
-
expense_id: string;
|
|
103
106
|
drawer_balance_before: number;
|
|
104
107
|
drawer_balance_after: number;
|
|
105
108
|
}> & Required<{
|
|
@@ -16,16 +16,20 @@ exports.TenantCashInOutSchema = new mongoose_1.Schema({
|
|
|
16
16
|
immutable: true,
|
|
17
17
|
ref: 'tenants',
|
|
18
18
|
},
|
|
19
|
+
day_id: {
|
|
20
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
19
23
|
shift_id: {
|
|
20
|
-
type:
|
|
24
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
21
25
|
required: true,
|
|
22
26
|
},
|
|
23
27
|
expense_id: {
|
|
24
|
-
type:
|
|
28
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
25
29
|
required: true,
|
|
26
30
|
},
|
|
27
31
|
drawer_id: {
|
|
28
|
-
type:
|
|
32
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
29
33
|
required: true,
|
|
30
34
|
},
|
|
31
35
|
shift_number: {
|
|
@@ -43,7 +43,6 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
43
43
|
closed_at: NativeDate;
|
|
44
44
|
cash_in_out_id: string;
|
|
45
45
|
};
|
|
46
|
-
total_shifts: number;
|
|
47
46
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
48
47
|
staff_id: string;
|
|
49
48
|
staff_name: string;
|
|
@@ -58,6 +57,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
58
57
|
reopened_at: NativeDate;
|
|
59
58
|
}>;
|
|
60
59
|
reopened_times: number;
|
|
60
|
+
total_shifts: number;
|
|
61
61
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
62
62
|
createdAt: NativeDate;
|
|
63
63
|
updatedAt: NativeDate;
|
|
@@ -98,7 +98,6 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
98
98
|
closed_at: NativeDate;
|
|
99
99
|
cash_in_out_id: string;
|
|
100
100
|
};
|
|
101
|
-
total_shifts: number;
|
|
102
101
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
103
102
|
staff_id: string;
|
|
104
103
|
staff_name: string;
|
|
@@ -113,6 +112,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
113
112
|
reopened_at: NativeDate;
|
|
114
113
|
}>;
|
|
115
114
|
reopened_times: number;
|
|
115
|
+
total_shifts: number;
|
|
116
116
|
}>> & import("mongoose").FlatRecord<{
|
|
117
117
|
createdAt: NativeDate;
|
|
118
118
|
updatedAt: NativeDate;
|
|
@@ -153,7 +153,6 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
153
153
|
closed_at: NativeDate;
|
|
154
154
|
cash_in_out_id: string;
|
|
155
155
|
};
|
|
156
|
-
total_shifts: number;
|
|
157
156
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
158
157
|
staff_id: string;
|
|
159
158
|
staff_name: string;
|
|
@@ -168,6 +167,7 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
168
167
|
reopened_at: NativeDate;
|
|
169
168
|
}>;
|
|
170
169
|
reopened_times: number;
|
|
170
|
+
total_shifts: number;
|
|
171
171
|
}> & Required<{
|
|
172
172
|
_id: import("mongoose").Types.ObjectId;
|
|
173
173
|
}> & {
|
|
@@ -23,7 +23,6 @@ export declare const TenantHrEmployeeSchema: Schema<any, import("mongoose").Mode
|
|
|
23
23
|
notes: string;
|
|
24
24
|
address: string;
|
|
25
25
|
staff_auth_code: string;
|
|
26
|
-
role: import("../../constants").USER_ROLES_ENUM;
|
|
27
26
|
emergency_contact: {
|
|
28
27
|
name: string;
|
|
29
28
|
phone: string;
|
|
@@ -344,7 +343,6 @@ export declare const TenantHrEmployeeSchema: Schema<any, import("mongoose").Mode
|
|
|
344
343
|
notes: string;
|
|
345
344
|
address: string;
|
|
346
345
|
staff_auth_code: string;
|
|
347
|
-
role: import("../../constants").USER_ROLES_ENUM;
|
|
348
346
|
emergency_contact: {
|
|
349
347
|
name: string;
|
|
350
348
|
phone: string;
|
|
@@ -665,7 +663,6 @@ export declare const TenantHrEmployeeSchema: Schema<any, import("mongoose").Mode
|
|
|
665
663
|
notes: string;
|
|
666
664
|
address: string;
|
|
667
665
|
staff_auth_code: string;
|
|
668
|
-
role: import("../../constants").USER_ROLES_ENUM;
|
|
669
666
|
emergency_contact: {
|
|
670
667
|
name: string;
|
|
671
668
|
phone: string;
|
|
@@ -81,11 +81,6 @@ exports.TenantHrEmployeeSchema = new mongoose_1.Schema({
|
|
|
81
81
|
type: Boolean,
|
|
82
82
|
default: false,
|
|
83
83
|
},
|
|
84
|
-
role: {
|
|
85
|
-
type: String,
|
|
86
|
-
required: true,
|
|
87
|
-
enum: constants_1.ALL_USER_ROLES,
|
|
88
|
-
},
|
|
89
84
|
operational_hours: {
|
|
90
85
|
type: [items_1.SpecialHoursSchema],
|
|
91
86
|
required: false,
|
|
@@ -26,6 +26,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
26
26
|
localDate: string;
|
|
27
27
|
localTime: string;
|
|
28
28
|
localDayOfYear: number;
|
|
29
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
29
30
|
opening: {
|
|
30
31
|
staff_id: string;
|
|
31
32
|
staff_name: string;
|
|
@@ -55,7 +56,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
55
56
|
}>;
|
|
56
57
|
reopened_times: number;
|
|
57
58
|
difference: number;
|
|
58
|
-
day_id: import("mongoose").Types.ObjectId;
|
|
59
59
|
shift_id: import("mongoose").Types.ObjectId;
|
|
60
60
|
shift_number: number;
|
|
61
61
|
cash_in_total: number;
|
|
@@ -85,6 +85,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
85
85
|
localDate: string;
|
|
86
86
|
localTime: string;
|
|
87
87
|
localDayOfYear: number;
|
|
88
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
88
89
|
opening: {
|
|
89
90
|
staff_id: string;
|
|
90
91
|
staff_name: string;
|
|
@@ -114,7 +115,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
114
115
|
}>;
|
|
115
116
|
reopened_times: number;
|
|
116
117
|
difference: number;
|
|
117
|
-
day_id: import("mongoose").Types.ObjectId;
|
|
118
118
|
shift_id: import("mongoose").Types.ObjectId;
|
|
119
119
|
shift_number: number;
|
|
120
120
|
cash_in_total: number;
|
|
@@ -144,6 +144,7 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
144
144
|
localDate: string;
|
|
145
145
|
localTime: string;
|
|
146
146
|
localDayOfYear: number;
|
|
147
|
+
day_id: import("mongoose").Types.ObjectId;
|
|
147
148
|
opening: {
|
|
148
149
|
staff_id: string;
|
|
149
150
|
staff_name: string;
|
|
@@ -173,7 +174,6 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
173
174
|
}>;
|
|
174
175
|
reopened_times: number;
|
|
175
176
|
difference: number;
|
|
176
|
-
day_id: import("mongoose").Types.ObjectId;
|
|
177
177
|
shift_id: import("mongoose").Types.ObjectId;
|
|
178
178
|
shift_number: number;
|
|
179
179
|
cash_in_total: number;
|
|
@@ -23,7 +23,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
23
23
|
role: import("../../constants").USER_ROLES_ENUM;
|
|
24
24
|
allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
|
|
25
25
|
assigned_tables: string[];
|
|
26
|
-
cash_in_hand?: number | null | undefined;
|
|
27
26
|
operational_hours?: import("mongoose").Types.DocumentArray<{
|
|
28
27
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
29
28
|
disabled_outside_date_range: boolean;
|
|
@@ -310,6 +309,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
310
309
|
BASE_PRICE: number;
|
|
311
310
|
} | null | undefined;
|
|
312
311
|
}> | null | undefined;
|
|
312
|
+
cash_in_hand?: number | null | undefined;
|
|
313
313
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
314
314
|
createdAt: NativeDate;
|
|
315
315
|
updatedAt: NativeDate;
|
|
@@ -330,7 +330,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
330
330
|
role: import("../../constants").USER_ROLES_ENUM;
|
|
331
331
|
allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
|
|
332
332
|
assigned_tables: string[];
|
|
333
|
-
cash_in_hand?: number | null | undefined;
|
|
334
333
|
operational_hours?: import("mongoose").Types.DocumentArray<{
|
|
335
334
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
336
335
|
disabled_outside_date_range: boolean;
|
|
@@ -617,6 +616,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
617
616
|
BASE_PRICE: number;
|
|
618
617
|
} | null | undefined;
|
|
619
618
|
}> | null | undefined;
|
|
619
|
+
cash_in_hand?: number | null | undefined;
|
|
620
620
|
}>> & import("mongoose").FlatRecord<{
|
|
621
621
|
createdAt: NativeDate;
|
|
622
622
|
updatedAt: NativeDate;
|
|
@@ -637,7 +637,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
637
637
|
role: import("../../constants").USER_ROLES_ENUM;
|
|
638
638
|
allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
|
|
639
639
|
assigned_tables: string[];
|
|
640
|
-
cash_in_hand?: number | null | undefined;
|
|
641
640
|
operational_hours?: import("mongoose").Types.DocumentArray<{
|
|
642
641
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
643
642
|
disabled_outside_date_range: boolean;
|
|
@@ -924,6 +923,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
|
|
|
924
923
|
BASE_PRICE: number;
|
|
925
924
|
} | null | undefined;
|
|
926
925
|
}> | null | undefined;
|
|
926
|
+
cash_in_hand?: number | null | undefined;
|
|
927
927
|
}> & Required<{
|
|
928
928
|
_id: import("mongoose").Types.ObjectId;
|
|
929
929
|
}> & {
|
|
@@ -1,18 +1,41 @@
|
|
|
1
1
|
import { CASH_DRAWER_STATUS_ENUM } from '../../constants';
|
|
2
2
|
import { ILocalTimeFields } from '../../helpers';
|
|
3
|
+
export interface ITenantCashDrawerSessionOpening {
|
|
4
|
+
staff_id: string;
|
|
5
|
+
staff_name: string;
|
|
6
|
+
note: string;
|
|
7
|
+
opened_at: Date;
|
|
8
|
+
cash_amount: number;
|
|
9
|
+
denominations: Record<string, number>;
|
|
10
|
+
shift_id: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ITenantCashDrawerSessionClosing {
|
|
13
|
+
staff_id: string;
|
|
14
|
+
staff_name: string;
|
|
15
|
+
note: string;
|
|
16
|
+
closed_at: Date;
|
|
17
|
+
cash_amount: number;
|
|
18
|
+
expected_cash_amount: number;
|
|
19
|
+
difference: number;
|
|
20
|
+
denominations: Record<string, number>;
|
|
21
|
+
shift_id: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface ITenantCashDrawerSessionReopening {
|
|
24
|
+
staff_id: string;
|
|
25
|
+
staff_name: string;
|
|
26
|
+
reopened_at: Date;
|
|
27
|
+
}
|
|
3
28
|
export interface ITenantCashDrawerSession extends ILocalTimeFields {
|
|
4
29
|
_id: string;
|
|
5
30
|
tenant_id: string;
|
|
6
|
-
|
|
31
|
+
day_id: string;
|
|
7
32
|
drawer_id: string;
|
|
8
33
|
drawer_name: string;
|
|
9
34
|
status: CASH_DRAWER_STATUS_ENUM;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
staff_id: string;
|
|
15
|
-
staff_name: string;
|
|
35
|
+
opening: ITenantCashDrawerSessionOpening | null;
|
|
36
|
+
closing: ITenantCashDrawerSessionClosing | null;
|
|
37
|
+
reopened_iterations: ITenantCashDrawerSessionReopening[];
|
|
38
|
+
reopened_times: number;
|
|
16
39
|
createdAt: Date;
|
|
17
40
|
updatedAt: Date;
|
|
18
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HR_EMPLOYEE_DOCUMENT_TYPE_ENUM, HR_EMPLOYMENT_STATUS_ENUM
|
|
1
|
+
import { HR_EMPLOYEE_DOCUMENT_TYPE_ENUM, HR_EMPLOYMENT_STATUS_ENUM } from '../../constants';
|
|
2
2
|
import { IItemSpecialHour } from './common';
|
|
3
3
|
export interface ITenantHrEmergencyContact {
|
|
4
4
|
name: string;
|
|
@@ -14,15 +14,14 @@ export interface ITenantHrEmployee {
|
|
|
14
14
|
_id: string;
|
|
15
15
|
uid: string;
|
|
16
16
|
tenant_id: string;
|
|
17
|
-
staff_auth_code
|
|
18
|
-
email
|
|
17
|
+
staff_auth_code?: string | null;
|
|
18
|
+
email?: string | null;
|
|
19
19
|
email_verified: boolean;
|
|
20
|
-
display_name
|
|
21
|
-
image_url
|
|
20
|
+
display_name?: string | null;
|
|
21
|
+
image_url?: string | null;
|
|
22
22
|
is_disabled: boolean;
|
|
23
23
|
phone_number: string;
|
|
24
24
|
phone_number_verified: boolean;
|
|
25
|
-
role: USER_ROLES_ENUM;
|
|
26
25
|
operational_hours?: IItemSpecialHour[] | null;
|
|
27
26
|
address?: string | null;
|
|
28
27
|
emergency_contact: ITenantHrEmergencyContact | null;
|