@managesome/eposmatic-toolkit 0.4.14 → 0.4.16
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/esm/helpers/materialized-reports/index.js +1 -0
- package/esm/helpers/materialized-reports/materialized-report-drilldown-rows.js +162 -0
- package/esm/helpers/reporting-contract/report-contract.js +1 -0
- package/esm/schemas/models/index.js +1 -1
- package/esm/schemas/models/materialized_report_drilldown_rows.js +155 -0
- package/esm/schemas/types/index.js +1 -1
- package/esm/schemas/types/materialized_report_drilldown_rows.js +10 -0
- package/lib/helpers/materialized-reports/index.d.ts +1 -0
- package/lib/helpers/materialized-reports/index.js +1 -0
- package/lib/helpers/materialized-reports/materialized-report-drilldown-rows.d.ts +40 -0
- package/lib/helpers/materialized-reports/materialized-report-drilldown-rows.js +169 -0
- package/lib/helpers/reporting-contract/report-contract.d.ts +3 -0
- package/lib/helpers/reporting-contract/report-contract.js +1 -0
- package/lib/schemas/models/brands.d.ts +6 -6
- package/lib/schemas/models/categories.d.ts +6 -6
- package/lib/schemas/models/close_dates.d.ts +3 -3
- package/lib/schemas/models/courses.d.ts +3 -3
- package/lib/schemas/models/customer_redemptions.d.ts +3 -3
- package/lib/schemas/models/customers.d.ts +6 -6
- package/lib/schemas/models/deliveries.d.ts +9 -9
- package/lib/schemas/models/delivery_areas.d.ts +3 -3
- package/lib/schemas/models/dinein_floors.d.ts +3 -3
- package/lib/schemas/models/dinein_tables.d.ts +6 -6
- package/lib/schemas/models/dinein_tables_fingerprints.d.ts +9 -9
- package/lib/schemas/models/discounts.d.ts +27 -27
- package/lib/schemas/models/expense_categories.d.ts +3 -3
- package/lib/schemas/models/expense_details.d.ts +12 -12
- package/lib/schemas/models/gift_cards.d.ts +3 -3
- package/lib/schemas/models/halfhalf_setup.d.ts +153 -153
- package/lib/schemas/models/index.d.ts +1 -1
- package/lib/schemas/models/index.js +1 -1
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/internal_staffs.d.ts +3 -3
- package/lib/schemas/models/inventories.d.ts +6 -6
- package/lib/schemas/models/inventory_categories.d.ts +3 -3
- package/lib/schemas/models/inventory_transactions.d.ts +9 -9
- package/lib/schemas/models/item_transactions.d.ts +9 -9
- package/lib/schemas/models/items.d.ts +216 -216
- package/lib/schemas/models/marketing_fingerprints.d.ts +9 -9
- package/lib/schemas/models/materialized_credit_bills.d.ts +21 -21
- package/lib/schemas/models/materialized_report_drilldown_rows.d.ts +130 -0
- package/lib/schemas/models/materialized_report_drilldown_rows.js +158 -0
- package/lib/schemas/models/materialized_tenant_cash_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_cash_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_delivery_entries.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_delivery_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_discount_entries.d.ts +24 -24
- package/lib/schemas/models/materialized_tenant_discount_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_hourly_comparison_entries.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_hourly_comparison_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_payments_comparison_entries.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_payments_comparison_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_prep_time_entries.d.ts +12 -12
- package/lib/schemas/models/materialized_tenant_prep_time_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_reports_iterations.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_sales_comparison_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_sales_comparison_reports.d.ts +3 -3
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +3 -3
- package/lib/schemas/models/menus.d.ts +21 -21
- package/lib/schemas/models/modifier_extras.d.ts +3 -3
- package/lib/schemas/models/offers.d.ts +24 -24
- package/lib/schemas/models/offers_fingerprints.d.ts +9 -9
- package/lib/schemas/models/operational_roles.d.ts +3 -3
- package/lib/schemas/models/orders.d.ts +18 -18
- package/lib/schemas/models/printer_settings.d.ts +3 -3
- package/lib/schemas/models/public_holidays.d.ts +3 -3
- package/lib/schemas/models/reservations.d.ts +6 -6
- package/lib/schemas/models/reviews.d.ts +12 -12
- package/lib/schemas/models/riders.d.ts +3 -3
- package/lib/schemas/models/specials.d.ts +48 -48
- package/lib/schemas/models/staff_shifts.d.ts +9 -9
- package/lib/schemas/models/tenant-activity-logs.d.ts +3 -3
- package/lib/schemas/models/tenant_active_jobs.d.ts +3 -3
- package/lib/schemas/models/tenant_calendar.d.ts +3 -3
- package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +36 -36
- package/lib/schemas/models/tenant_cash_drawers.d.ts +3 -3
- package/lib/schemas/models/tenant_cash_in_hand_transactions.d.ts +9 -9
- package/lib/schemas/models/tenant_cash_in_out.d.ts +9 -9
- package/lib/schemas/models/tenant_clients.d.ts +3 -3
- package/lib/schemas/models/tenant_day_sessions.d.ts +36 -36
- package/lib/schemas/models/tenant_hr_attendance_records.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_biometric_enrollments.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_departments.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_documents.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_employees.d.ts +24 -24
- package/lib/schemas/models/tenant_hr_leave_requests.d.ts +6 -6
- package/lib/schemas/models/tenant_hr_payrolls.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_performance_reviews.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_policies.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_positions.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_shift_schedules.d.ts +3 -3
- package/lib/schemas/models/tenant_hr_shifts.d.ts +3 -3
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +36 -36
- package/lib/schemas/models/tenant_instore_shifts.d.ts +3 -3
- package/lib/schemas/models/tenant_inventory_department_transactions.d.ts +9 -9
- package/lib/schemas/models/tenant_inventory_department_utilities.d.ts +6 -6
- package/lib/schemas/models/tenant_inventory_departments.d.ts +6 -6
- package/lib/schemas/models/tenant_inventory_entries.d.ts +3 -3
- package/lib/schemas/models/tenant_metadata.d.ts +3 -3
- package/lib/schemas/models/tenant_order_item_instructions.d.ts +3 -3
- package/lib/schemas/models/tenant_purchase_order_vendor_returns.d.ts +6 -6
- package/lib/schemas/models/tenant_purchase_orders.d.ts +6 -6
- package/lib/schemas/models/tenant_shifts.d.ts +3 -3
- package/lib/schemas/models/tenant_staffs.d.ts +24 -24
- package/lib/schemas/models/tenant_vendors.d.ts +3 -3
- package/lib/schemas/models/tenants.d.ts +3 -3
- package/lib/schemas/models/terminal_devices.d.ts +3 -3
- package/lib/schemas/models/tokens.d.ts +9 -9
- package/lib/schemas/models/void_order_items.d.ts +27 -27
- package/lib/schemas/models/vouchers.d.ts +3 -3
- package/lib/schemas/models/wallet_transactions.d.ts +9 -9
- package/lib/schemas/models/wallets.d.ts +3 -3
- package/lib/schemas/models/warehouse_categories.d.ts +3 -3
- package/lib/schemas/models/warehouse_communications.d.ts +3 -3
- package/lib/schemas/models/warehouse_inventory_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_item_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_items.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_receipts.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_vendor_returns.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_deliveries.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_orders.d.ts +3 -3
- package/lib/schemas/models/warehouse_staffs.d.ts +3 -3
- package/lib/schemas/models/warehouse_void_purchase_order_items.d.ts +21 -21
- package/lib/schemas/models/warehouse_void_sale_order_items.d.ts +21 -21
- package/lib/schemas/models/warehouses.d.ts +3 -3
- package/lib/schemas/types/index.d.ts +1 -1
- package/lib/schemas/types/index.js +1 -1
- package/lib/schemas/types/materialized_report_drilldown_rows.d.ts +64 -0
- package/lib/schemas/types/materialized_report_drilldown_rows.js +13 -0
- package/lib/tests/materialized-reports/materialized-report-drilldown-rows.test.d.ts +1 -0
- package/lib/tests/materialized-reports/materialized-report-drilldown-rows.test.js +143 -0
- package/lib/tests/reporting-contract.test.js +7 -0
- package/package.json +1 -1
|
@@ -8,11 +8,11 @@ export declare const StaffShiftsSchema: Schema<any, import("mongoose").Model<any
|
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
tenant_id: string;
|
|
12
|
-
staff_id: string;
|
|
13
|
-
createdAt_mins: number;
|
|
14
11
|
createdAt: NativeDate;
|
|
15
12
|
updatedAt: NativeDate;
|
|
13
|
+
tenant_id: string;
|
|
14
|
+
createdAt_mins: number;
|
|
15
|
+
staff_id: string;
|
|
16
16
|
clocked_in: NativeDate;
|
|
17
17
|
clocked_out: NativeDate;
|
|
18
18
|
break_time: import("mongoose").Types.DocumentArray<{
|
|
@@ -30,11 +30,11 @@ export declare const StaffShiftsSchema: Schema<any, import("mongoose").Model<any
|
|
|
30
30
|
updatedAt: NativeDate;
|
|
31
31
|
} & {
|
|
32
32
|
_id: import("mongoose").Types.ObjectId;
|
|
33
|
-
tenant_id: string;
|
|
34
|
-
staff_id: string;
|
|
35
|
-
createdAt_mins: number;
|
|
36
33
|
createdAt: NativeDate;
|
|
37
34
|
updatedAt: NativeDate;
|
|
35
|
+
tenant_id: string;
|
|
36
|
+
createdAt_mins: number;
|
|
37
|
+
staff_id: string;
|
|
38
38
|
clocked_in: NativeDate;
|
|
39
39
|
clocked_out: NativeDate;
|
|
40
40
|
break_time: import("mongoose").Types.DocumentArray<{
|
|
@@ -52,11 +52,11 @@ export declare const StaffShiftsSchema: Schema<any, import("mongoose").Model<any
|
|
|
52
52
|
updatedAt: NativeDate;
|
|
53
53
|
} & {
|
|
54
54
|
_id: import("mongoose").Types.ObjectId;
|
|
55
|
-
tenant_id: string;
|
|
56
|
-
staff_id: string;
|
|
57
|
-
createdAt_mins: number;
|
|
58
55
|
createdAt: NativeDate;
|
|
59
56
|
updatedAt: NativeDate;
|
|
57
|
+
tenant_id: string;
|
|
58
|
+
createdAt_mins: number;
|
|
59
|
+
staff_id: string;
|
|
60
60
|
clocked_in: NativeDate;
|
|
61
61
|
clocked_out: NativeDate;
|
|
62
62
|
break_time: import("mongoose").Types.DocumentArray<{
|
|
@@ -9,9 +9,9 @@ export declare const TenantActivityLogSchema: Schema<any, import("mongoose").Mod
|
|
|
9
9
|
updatedAt: NativeDate;
|
|
10
10
|
} & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
tenant_id: string;
|
|
13
12
|
createdAt: NativeDate;
|
|
14
13
|
updatedAt: NativeDate;
|
|
14
|
+
tenant_id: string;
|
|
15
15
|
title: string;
|
|
16
16
|
entity_type: import("../../constants").TENANT_ACTIVITY_LOG_ENTITY_TYPE_ENUM;
|
|
17
17
|
entity_id: string;
|
|
@@ -45,9 +45,9 @@ export declare const TenantActivityLogSchema: Schema<any, import("mongoose").Mod
|
|
|
45
45
|
updatedAt: NativeDate;
|
|
46
46
|
} & {
|
|
47
47
|
_id: import("mongoose").Types.ObjectId;
|
|
48
|
-
tenant_id: string;
|
|
49
48
|
createdAt: NativeDate;
|
|
50
49
|
updatedAt: NativeDate;
|
|
50
|
+
tenant_id: string;
|
|
51
51
|
title: string;
|
|
52
52
|
entity_type: import("../../constants").TENANT_ACTIVITY_LOG_ENTITY_TYPE_ENUM;
|
|
53
53
|
entity_id: string;
|
|
@@ -81,9 +81,9 @@ export declare const TenantActivityLogSchema: Schema<any, import("mongoose").Mod
|
|
|
81
81
|
updatedAt: NativeDate;
|
|
82
82
|
} & {
|
|
83
83
|
_id: import("mongoose").Types.ObjectId;
|
|
84
|
-
tenant_id: string;
|
|
85
84
|
createdAt: NativeDate;
|
|
86
85
|
updatedAt: NativeDate;
|
|
86
|
+
tenant_id: string;
|
|
87
87
|
title: string;
|
|
88
88
|
entity_type: import("../../constants").TENANT_ACTIVITY_LOG_ENTITY_TYPE_ENUM;
|
|
89
89
|
entity_id: string;
|
|
@@ -9,9 +9,9 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
9
9
|
} & {
|
|
10
10
|
localDate: string;
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
tenant_id: string;
|
|
13
12
|
createdAt: NativeDate;
|
|
14
13
|
updatedAt: NativeDate;
|
|
14
|
+
tenant_id: string;
|
|
15
15
|
progress: number;
|
|
16
16
|
completed_at: NativeDate;
|
|
17
17
|
jobs_status: Map<string, boolean>;
|
|
@@ -25,9 +25,9 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
25
25
|
} & {
|
|
26
26
|
localDate: string;
|
|
27
27
|
_id: import("mongoose").Types.ObjectId;
|
|
28
|
-
tenant_id: string;
|
|
29
28
|
createdAt: NativeDate;
|
|
30
29
|
updatedAt: NativeDate;
|
|
30
|
+
tenant_id: string;
|
|
31
31
|
progress: number;
|
|
32
32
|
completed_at: NativeDate;
|
|
33
33
|
jobs_status: Map<string, boolean>;
|
|
@@ -41,9 +41,9 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
41
41
|
} & {
|
|
42
42
|
localDate: string;
|
|
43
43
|
_id: import("mongoose").Types.ObjectId;
|
|
44
|
-
tenant_id: string;
|
|
45
44
|
createdAt: NativeDate;
|
|
46
45
|
updatedAt: NativeDate;
|
|
46
|
+
tenant_id: string;
|
|
47
47
|
progress: number;
|
|
48
48
|
completed_at: NativeDate;
|
|
49
49
|
jobs_status: Map<string, boolean>;
|
|
@@ -9,9 +9,9 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
9
9
|
} & {
|
|
10
10
|
localYear: number;
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
tenant_id: string;
|
|
13
12
|
createdAt: NativeDate;
|
|
14
13
|
updatedAt: NativeDate;
|
|
14
|
+
tenant_id: string;
|
|
15
15
|
days: Map<string, {
|
|
16
16
|
total_orders: number;
|
|
17
17
|
cancelled_orders_amount: number;
|
|
@@ -29,9 +29,9 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
29
29
|
} & {
|
|
30
30
|
localYear: number;
|
|
31
31
|
_id: import("mongoose").Types.ObjectId;
|
|
32
|
-
tenant_id: string;
|
|
33
32
|
createdAt: NativeDate;
|
|
34
33
|
updatedAt: NativeDate;
|
|
34
|
+
tenant_id: string;
|
|
35
35
|
days: Map<string, {
|
|
36
36
|
total_orders: number;
|
|
37
37
|
cancelled_orders_amount: number;
|
|
@@ -49,9 +49,9 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
49
49
|
} & {
|
|
50
50
|
localYear: number;
|
|
51
51
|
_id: import("mongoose").Types.ObjectId;
|
|
52
|
-
tenant_id: string;
|
|
53
52
|
createdAt: NativeDate;
|
|
54
53
|
updatedAt: NativeDate;
|
|
54
|
+
tenant_id: string;
|
|
55
55
|
days: Map<string, {
|
|
56
56
|
total_orders: number;
|
|
57
57
|
cancelled_orders_amount: number;
|
|
@@ -16,9 +16,9 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
16
16
|
localSemester: number;
|
|
17
17
|
localYear: number;
|
|
18
18
|
_id: import("mongoose").Types.ObjectId;
|
|
19
|
-
tenant_id: string;
|
|
20
19
|
createdAt: NativeDate;
|
|
21
20
|
updatedAt: NativeDate;
|
|
21
|
+
tenant_id: string;
|
|
22
22
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
23
23
|
localDay: number;
|
|
24
24
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -30,18 +30,18 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
30
30
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
31
31
|
drawer_name: string;
|
|
32
32
|
opening: {
|
|
33
|
+
note: string;
|
|
33
34
|
staff_id: string;
|
|
34
35
|
staff_name: string;
|
|
35
|
-
note: string;
|
|
36
36
|
cash_amount: number;
|
|
37
37
|
denominations: Map<string, number>;
|
|
38
38
|
shift_id: import("mongoose").Types.ObjectId;
|
|
39
39
|
opened_at: NativeDate;
|
|
40
40
|
};
|
|
41
41
|
closing: {
|
|
42
|
+
note: string;
|
|
42
43
|
staff_id: string;
|
|
43
44
|
staff_name: string;
|
|
44
|
-
note: string;
|
|
45
45
|
cash_amount: number;
|
|
46
46
|
denominations: Map<string, number>;
|
|
47
47
|
expected_cash_amount: number;
|
|
@@ -52,22 +52,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
52
52
|
running_balance: number;
|
|
53
53
|
net_movements: number;
|
|
54
54
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
55
|
+
updatedAt: NativeDate;
|
|
55
56
|
staff_id: string;
|
|
56
57
|
staff_name: string;
|
|
57
|
-
updatedAt: NativeDate;
|
|
58
58
|
opening: {
|
|
59
|
+
note: string;
|
|
59
60
|
staff_id: string;
|
|
60
61
|
staff_name: string;
|
|
61
|
-
note: string;
|
|
62
62
|
cash_amount: number;
|
|
63
63
|
denominations: Map<string, number>;
|
|
64
64
|
shift_id: import("mongoose").Types.ObjectId;
|
|
65
65
|
opened_at: NativeDate;
|
|
66
66
|
};
|
|
67
67
|
closing: {
|
|
68
|
+
note: string;
|
|
68
69
|
staff_id: string;
|
|
69
70
|
staff_name: string;
|
|
70
|
-
note: string;
|
|
71
71
|
cash_amount: number;
|
|
72
72
|
denominations: Map<string, number>;
|
|
73
73
|
expected_cash_amount: number;
|
|
@@ -80,22 +80,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
80
80
|
reopened_times: number;
|
|
81
81
|
reopened_at: NativeDate;
|
|
82
82
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
83
|
+
updatedAt: NativeDate;
|
|
83
84
|
staff_id: string;
|
|
84
85
|
staff_name: string;
|
|
85
|
-
updatedAt: NativeDate;
|
|
86
86
|
opening: {
|
|
87
|
+
note: string;
|
|
87
88
|
staff_id: string;
|
|
88
89
|
staff_name: string;
|
|
89
|
-
note: string;
|
|
90
90
|
cash_amount: number;
|
|
91
91
|
denominations: Map<string, number>;
|
|
92
92
|
shift_id: import("mongoose").Types.ObjectId;
|
|
93
93
|
opened_at: NativeDate;
|
|
94
94
|
};
|
|
95
95
|
closing: {
|
|
96
|
+
note: string;
|
|
96
97
|
staff_id: string;
|
|
97
98
|
staff_name: string;
|
|
98
|
-
note: string;
|
|
99
99
|
cash_amount: number;
|
|
100
100
|
denominations: Map<string, number>;
|
|
101
101
|
expected_cash_amount: number;
|
|
@@ -108,22 +108,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
108
108
|
reopened_times: number;
|
|
109
109
|
reopened_at: NativeDate;
|
|
110
110
|
}> & {
|
|
111
|
+
updatedAt: NativeDate;
|
|
111
112
|
staff_id: string;
|
|
112
113
|
staff_name: string;
|
|
113
|
-
updatedAt: NativeDate;
|
|
114
114
|
opening: {
|
|
115
|
+
note: string;
|
|
115
116
|
staff_id: string;
|
|
116
117
|
staff_name: string;
|
|
117
|
-
note: string;
|
|
118
118
|
cash_amount: number;
|
|
119
119
|
denominations: Map<string, number>;
|
|
120
120
|
shift_id: import("mongoose").Types.ObjectId;
|
|
121
121
|
opened_at: NativeDate;
|
|
122
122
|
};
|
|
123
123
|
closing: {
|
|
124
|
+
note: string;
|
|
124
125
|
staff_id: string;
|
|
125
126
|
staff_name: string;
|
|
126
|
-
note: string;
|
|
127
127
|
cash_amount: number;
|
|
128
128
|
denominations: Map<string, number>;
|
|
129
129
|
expected_cash_amount: number;
|
|
@@ -151,9 +151,9 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
151
151
|
localSemester: number;
|
|
152
152
|
localYear: number;
|
|
153
153
|
_id: import("mongoose").Types.ObjectId;
|
|
154
|
-
tenant_id: string;
|
|
155
154
|
createdAt: NativeDate;
|
|
156
155
|
updatedAt: NativeDate;
|
|
156
|
+
tenant_id: string;
|
|
157
157
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
158
158
|
localDay: number;
|
|
159
159
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -165,18 +165,18 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
165
165
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
166
166
|
drawer_name: string;
|
|
167
167
|
opening: {
|
|
168
|
+
note: string;
|
|
168
169
|
staff_id: string;
|
|
169
170
|
staff_name: string;
|
|
170
|
-
note: string;
|
|
171
171
|
cash_amount: number;
|
|
172
172
|
denominations: Map<string, number>;
|
|
173
173
|
shift_id: import("mongoose").Types.ObjectId;
|
|
174
174
|
opened_at: NativeDate;
|
|
175
175
|
};
|
|
176
176
|
closing: {
|
|
177
|
+
note: string;
|
|
177
178
|
staff_id: string;
|
|
178
179
|
staff_name: string;
|
|
179
|
-
note: string;
|
|
180
180
|
cash_amount: number;
|
|
181
181
|
denominations: Map<string, number>;
|
|
182
182
|
expected_cash_amount: number;
|
|
@@ -187,22 +187,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
187
187
|
running_balance: number;
|
|
188
188
|
net_movements: number;
|
|
189
189
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
190
|
+
updatedAt: NativeDate;
|
|
190
191
|
staff_id: string;
|
|
191
192
|
staff_name: string;
|
|
192
|
-
updatedAt: NativeDate;
|
|
193
193
|
opening: {
|
|
194
|
+
note: string;
|
|
194
195
|
staff_id: string;
|
|
195
196
|
staff_name: string;
|
|
196
|
-
note: string;
|
|
197
197
|
cash_amount: number;
|
|
198
198
|
denominations: Map<string, number>;
|
|
199
199
|
shift_id: import("mongoose").Types.ObjectId;
|
|
200
200
|
opened_at: NativeDate;
|
|
201
201
|
};
|
|
202
202
|
closing: {
|
|
203
|
+
note: string;
|
|
203
204
|
staff_id: string;
|
|
204
205
|
staff_name: string;
|
|
205
|
-
note: string;
|
|
206
206
|
cash_amount: number;
|
|
207
207
|
denominations: Map<string, number>;
|
|
208
208
|
expected_cash_amount: number;
|
|
@@ -215,22 +215,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
215
215
|
reopened_times: number;
|
|
216
216
|
reopened_at: NativeDate;
|
|
217
217
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
218
|
+
updatedAt: NativeDate;
|
|
218
219
|
staff_id: string;
|
|
219
220
|
staff_name: string;
|
|
220
|
-
updatedAt: NativeDate;
|
|
221
221
|
opening: {
|
|
222
|
+
note: string;
|
|
222
223
|
staff_id: string;
|
|
223
224
|
staff_name: string;
|
|
224
|
-
note: string;
|
|
225
225
|
cash_amount: number;
|
|
226
226
|
denominations: Map<string, number>;
|
|
227
227
|
shift_id: import("mongoose").Types.ObjectId;
|
|
228
228
|
opened_at: NativeDate;
|
|
229
229
|
};
|
|
230
230
|
closing: {
|
|
231
|
+
note: string;
|
|
231
232
|
staff_id: string;
|
|
232
233
|
staff_name: string;
|
|
233
|
-
note: string;
|
|
234
234
|
cash_amount: number;
|
|
235
235
|
denominations: Map<string, number>;
|
|
236
236
|
expected_cash_amount: number;
|
|
@@ -243,22 +243,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
243
243
|
reopened_times: number;
|
|
244
244
|
reopened_at: NativeDate;
|
|
245
245
|
}> & {
|
|
246
|
+
updatedAt: NativeDate;
|
|
246
247
|
staff_id: string;
|
|
247
248
|
staff_name: string;
|
|
248
|
-
updatedAt: NativeDate;
|
|
249
249
|
opening: {
|
|
250
|
+
note: string;
|
|
250
251
|
staff_id: string;
|
|
251
252
|
staff_name: string;
|
|
252
|
-
note: string;
|
|
253
253
|
cash_amount: number;
|
|
254
254
|
denominations: Map<string, number>;
|
|
255
255
|
shift_id: import("mongoose").Types.ObjectId;
|
|
256
256
|
opened_at: NativeDate;
|
|
257
257
|
};
|
|
258
258
|
closing: {
|
|
259
|
+
note: string;
|
|
259
260
|
staff_id: string;
|
|
260
261
|
staff_name: string;
|
|
261
|
-
note: string;
|
|
262
262
|
cash_amount: number;
|
|
263
263
|
denominations: Map<string, number>;
|
|
264
264
|
expected_cash_amount: number;
|
|
@@ -286,9 +286,9 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
286
286
|
localSemester: number;
|
|
287
287
|
localYear: number;
|
|
288
288
|
_id: import("mongoose").Types.ObjectId;
|
|
289
|
-
tenant_id: string;
|
|
290
289
|
createdAt: NativeDate;
|
|
291
290
|
updatedAt: NativeDate;
|
|
291
|
+
tenant_id: string;
|
|
292
292
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
293
293
|
localDay: number;
|
|
294
294
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -300,18 +300,18 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
300
300
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
301
301
|
drawer_name: string;
|
|
302
302
|
opening: {
|
|
303
|
+
note: string;
|
|
303
304
|
staff_id: string;
|
|
304
305
|
staff_name: string;
|
|
305
|
-
note: string;
|
|
306
306
|
cash_amount: number;
|
|
307
307
|
denominations: Map<string, number>;
|
|
308
308
|
shift_id: import("mongoose").Types.ObjectId;
|
|
309
309
|
opened_at: NativeDate;
|
|
310
310
|
};
|
|
311
311
|
closing: {
|
|
312
|
+
note: string;
|
|
312
313
|
staff_id: string;
|
|
313
314
|
staff_name: string;
|
|
314
|
-
note: string;
|
|
315
315
|
cash_amount: number;
|
|
316
316
|
denominations: Map<string, number>;
|
|
317
317
|
expected_cash_amount: number;
|
|
@@ -322,22 +322,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
322
322
|
running_balance: number;
|
|
323
323
|
net_movements: number;
|
|
324
324
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
325
|
+
updatedAt: NativeDate;
|
|
325
326
|
staff_id: string;
|
|
326
327
|
staff_name: string;
|
|
327
|
-
updatedAt: NativeDate;
|
|
328
328
|
opening: {
|
|
329
|
+
note: string;
|
|
329
330
|
staff_id: string;
|
|
330
331
|
staff_name: string;
|
|
331
|
-
note: string;
|
|
332
332
|
cash_amount: number;
|
|
333
333
|
denominations: Map<string, number>;
|
|
334
334
|
shift_id: import("mongoose").Types.ObjectId;
|
|
335
335
|
opened_at: NativeDate;
|
|
336
336
|
};
|
|
337
337
|
closing: {
|
|
338
|
+
note: string;
|
|
338
339
|
staff_id: string;
|
|
339
340
|
staff_name: string;
|
|
340
|
-
note: string;
|
|
341
341
|
cash_amount: number;
|
|
342
342
|
denominations: Map<string, number>;
|
|
343
343
|
expected_cash_amount: number;
|
|
@@ -350,22 +350,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
350
350
|
reopened_times: number;
|
|
351
351
|
reopened_at: NativeDate;
|
|
352
352
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
353
|
+
updatedAt: NativeDate;
|
|
353
354
|
staff_id: string;
|
|
354
355
|
staff_name: string;
|
|
355
|
-
updatedAt: NativeDate;
|
|
356
356
|
opening: {
|
|
357
|
+
note: string;
|
|
357
358
|
staff_id: string;
|
|
358
359
|
staff_name: string;
|
|
359
|
-
note: string;
|
|
360
360
|
cash_amount: number;
|
|
361
361
|
denominations: Map<string, number>;
|
|
362
362
|
shift_id: import("mongoose").Types.ObjectId;
|
|
363
363
|
opened_at: NativeDate;
|
|
364
364
|
};
|
|
365
365
|
closing: {
|
|
366
|
+
note: string;
|
|
366
367
|
staff_id: string;
|
|
367
368
|
staff_name: string;
|
|
368
|
-
note: string;
|
|
369
369
|
cash_amount: number;
|
|
370
370
|
denominations: Map<string, number>;
|
|
371
371
|
expected_cash_amount: number;
|
|
@@ -378,22 +378,22 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
378
378
|
reopened_times: number;
|
|
379
379
|
reopened_at: NativeDate;
|
|
380
380
|
}> & {
|
|
381
|
+
updatedAt: NativeDate;
|
|
381
382
|
staff_id: string;
|
|
382
383
|
staff_name: string;
|
|
383
|
-
updatedAt: NativeDate;
|
|
384
384
|
opening: {
|
|
385
|
+
note: string;
|
|
385
386
|
staff_id: string;
|
|
386
387
|
staff_name: string;
|
|
387
|
-
note: string;
|
|
388
388
|
cash_amount: number;
|
|
389
389
|
denominations: Map<string, number>;
|
|
390
390
|
shift_id: import("mongoose").Types.ObjectId;
|
|
391
391
|
opened_at: NativeDate;
|
|
392
392
|
};
|
|
393
393
|
closing: {
|
|
394
|
+
note: string;
|
|
394
395
|
staff_id: string;
|
|
395
396
|
staff_name: string;
|
|
396
|
-
note: string;
|
|
397
397
|
cash_amount: number;
|
|
398
398
|
denominations: Map<string, number>;
|
|
399
399
|
expected_cash_amount: number;
|
|
@@ -9,9 +9,9 @@ export declare const TenantCashDrawerSchema: Schema<any, import("mongoose").Mode
|
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
name: string;
|
|
12
|
-
tenant_id: string;
|
|
13
12
|
createdAt: NativeDate;
|
|
14
13
|
updatedAt: NativeDate;
|
|
14
|
+
tenant_id: string;
|
|
15
15
|
is_deleted: boolean;
|
|
16
16
|
printer_id: string;
|
|
17
17
|
cash_denominations: number[];
|
|
@@ -21,9 +21,9 @@ export declare const TenantCashDrawerSchema: Schema<any, import("mongoose").Mode
|
|
|
21
21
|
} & {
|
|
22
22
|
_id: import("mongoose").Types.ObjectId;
|
|
23
23
|
name: string;
|
|
24
|
-
tenant_id: string;
|
|
25
24
|
createdAt: NativeDate;
|
|
26
25
|
updatedAt: NativeDate;
|
|
26
|
+
tenant_id: string;
|
|
27
27
|
is_deleted: boolean;
|
|
28
28
|
printer_id: string;
|
|
29
29
|
cash_denominations: number[];
|
|
@@ -33,9 +33,9 @@ export declare const TenantCashDrawerSchema: Schema<any, import("mongoose").Mode
|
|
|
33
33
|
} & {
|
|
34
34
|
_id: import("mongoose").Types.ObjectId;
|
|
35
35
|
name: string;
|
|
36
|
-
tenant_id: string;
|
|
37
36
|
createdAt: NativeDate;
|
|
38
37
|
updatedAt: NativeDate;
|
|
38
|
+
tenant_id: string;
|
|
39
39
|
is_deleted: boolean;
|
|
40
40
|
printer_id: string;
|
|
41
41
|
cash_denominations: number[];
|
|
@@ -8,12 +8,12 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
tenant_id: string;
|
|
12
|
-
staff_id: string;
|
|
13
|
-
staff_name: string;
|
|
14
11
|
createdAt: NativeDate;
|
|
15
12
|
updatedAt: NativeDate;
|
|
16
13
|
note: string;
|
|
14
|
+
tenant_id: string;
|
|
15
|
+
staff_id: string;
|
|
16
|
+
staff_name: string;
|
|
17
17
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
18
18
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
19
19
|
cash_in_hand: number;
|
|
@@ -25,12 +25,12 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
25
25
|
updatedAt: NativeDate;
|
|
26
26
|
} & {
|
|
27
27
|
_id: import("mongoose").Types.ObjectId;
|
|
28
|
-
tenant_id: string;
|
|
29
|
-
staff_id: string;
|
|
30
|
-
staff_name: string;
|
|
31
28
|
createdAt: NativeDate;
|
|
32
29
|
updatedAt: NativeDate;
|
|
33
30
|
note: string;
|
|
31
|
+
tenant_id: string;
|
|
32
|
+
staff_id: string;
|
|
33
|
+
staff_name: string;
|
|
34
34
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
35
35
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
36
36
|
cash_in_hand: number;
|
|
@@ -42,12 +42,12 @@ export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mon
|
|
|
42
42
|
updatedAt: NativeDate;
|
|
43
43
|
} & {
|
|
44
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
|
-
tenant_id: string;
|
|
46
|
-
staff_id: string;
|
|
47
|
-
staff_name: string;
|
|
48
45
|
createdAt: NativeDate;
|
|
49
46
|
updatedAt: NativeDate;
|
|
50
47
|
note: string;
|
|
48
|
+
tenant_id: string;
|
|
49
|
+
staff_id: string;
|
|
50
|
+
staff_name: string;
|
|
51
51
|
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
52
52
|
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
53
53
|
cash_in_hand: number;
|
|
@@ -17,15 +17,15 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
17
17
|
localYear: number;
|
|
18
18
|
_id: import("mongoose").Types.ObjectId;
|
|
19
19
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
20
|
-
tenant_id: string;
|
|
21
|
-
staff_id: string;
|
|
22
|
-
staff_name: string;
|
|
23
20
|
createdAt: NativeDate;
|
|
24
21
|
updatedAt: NativeDate;
|
|
25
22
|
note: string;
|
|
26
23
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
24
|
+
tenant_id: string;
|
|
27
25
|
ref_id: import("mongoose").Types.ObjectId;
|
|
28
26
|
amount: number;
|
|
27
|
+
staff_id: string;
|
|
28
|
+
staff_name: string;
|
|
29
29
|
localDay: number;
|
|
30
30
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
31
31
|
localSecond: number;
|
|
@@ -52,15 +52,15 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
52
52
|
localYear: number;
|
|
53
53
|
_id: import("mongoose").Types.ObjectId;
|
|
54
54
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
55
|
-
tenant_id: string;
|
|
56
|
-
staff_id: string;
|
|
57
|
-
staff_name: string;
|
|
58
55
|
createdAt: NativeDate;
|
|
59
56
|
updatedAt: NativeDate;
|
|
60
57
|
note: string;
|
|
61
58
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
59
|
+
tenant_id: string;
|
|
62
60
|
ref_id: import("mongoose").Types.ObjectId;
|
|
63
61
|
amount: number;
|
|
62
|
+
staff_id: string;
|
|
63
|
+
staff_name: string;
|
|
64
64
|
localDay: number;
|
|
65
65
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
66
66
|
localSecond: number;
|
|
@@ -87,15 +87,15 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
87
87
|
localYear: number;
|
|
88
88
|
_id: import("mongoose").Types.ObjectId;
|
|
89
89
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
90
|
-
tenant_id: string;
|
|
91
|
-
staff_id: string;
|
|
92
|
-
staff_name: string;
|
|
93
90
|
createdAt: NativeDate;
|
|
94
91
|
updatedAt: NativeDate;
|
|
95
92
|
note: string;
|
|
96
93
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
94
|
+
tenant_id: string;
|
|
97
95
|
ref_id: import("mongoose").Types.ObjectId;
|
|
98
96
|
amount: number;
|
|
97
|
+
staff_id: string;
|
|
98
|
+
staff_name: string;
|
|
99
99
|
localDay: number;
|
|
100
100
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
101
101
|
localSecond: number;
|
|
@@ -10,12 +10,12 @@ export declare const TenantClientsSchema: Schema<any, import("mongoose").Model<a
|
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
|
|
12
12
|
name: string;
|
|
13
|
-
tenant_id: string;
|
|
14
13
|
createdAt: NativeDate;
|
|
15
14
|
updatedAt: NativeDate;
|
|
16
15
|
subtitle: string;
|
|
17
16
|
active: boolean;
|
|
18
17
|
sort_id: number;
|
|
18
|
+
tenant_id: string;
|
|
19
19
|
ref_id: string;
|
|
20
20
|
phone_number: string;
|
|
21
21
|
email: string;
|
|
@@ -26,12 +26,12 @@ export declare const TenantClientsSchema: Schema<any, import("mongoose").Model<a
|
|
|
26
26
|
_id: import("mongoose").Types.ObjectId;
|
|
27
27
|
type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
|
|
28
28
|
name: string;
|
|
29
|
-
tenant_id: string;
|
|
30
29
|
createdAt: NativeDate;
|
|
31
30
|
updatedAt: NativeDate;
|
|
32
31
|
subtitle: string;
|
|
33
32
|
active: boolean;
|
|
34
33
|
sort_id: number;
|
|
34
|
+
tenant_id: string;
|
|
35
35
|
ref_id: string;
|
|
36
36
|
phone_number: string;
|
|
37
37
|
email: string;
|
|
@@ -42,12 +42,12 @@ export declare const TenantClientsSchema: Schema<any, import("mongoose").Model<a
|
|
|
42
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
43
|
type: import("../../constants").TENANT_CLIENT_TYPE_ENUM;
|
|
44
44
|
name: string;
|
|
45
|
-
tenant_id: string;
|
|
46
45
|
createdAt: NativeDate;
|
|
47
46
|
updatedAt: NativeDate;
|
|
48
47
|
subtitle: string;
|
|
49
48
|
active: boolean;
|
|
50
49
|
sort_id: number;
|
|
50
|
+
tenant_id: string;
|
|
51
51
|
ref_id: string;
|
|
52
52
|
phone_number: string;
|
|
53
53
|
email: string;
|