@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
|
@@ -9,9 +9,9 @@ export declare const TenantHrPayrollSchema: Schema<any, import("mongoose").Model
|
|
|
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
|
status: HR_PAYROLL_STATUS_ENUM;
|
|
16
16
|
payment_method: HR_PAYMENT_METHOD_ENUM;
|
|
17
17
|
notes: string;
|
|
@@ -40,9 +40,9 @@ export declare const TenantHrPayrollSchema: Schema<any, import("mongoose").Model
|
|
|
40
40
|
updatedAt: NativeDate;
|
|
41
41
|
} & {
|
|
42
42
|
_id: import("mongoose").Types.ObjectId;
|
|
43
|
-
tenant_id: string;
|
|
44
43
|
createdAt: NativeDate;
|
|
45
44
|
updatedAt: NativeDate;
|
|
45
|
+
tenant_id: string;
|
|
46
46
|
status: HR_PAYROLL_STATUS_ENUM;
|
|
47
47
|
payment_method: HR_PAYMENT_METHOD_ENUM;
|
|
48
48
|
notes: string;
|
|
@@ -71,9 +71,9 @@ export declare const TenantHrPayrollSchema: Schema<any, import("mongoose").Model
|
|
|
71
71
|
updatedAt: NativeDate;
|
|
72
72
|
} & {
|
|
73
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
|
-
tenant_id: string;
|
|
75
74
|
createdAt: NativeDate;
|
|
76
75
|
updatedAt: NativeDate;
|
|
76
|
+
tenant_id: string;
|
|
77
77
|
status: HR_PAYROLL_STATUS_ENUM;
|
|
78
78
|
payment_method: HR_PAYMENT_METHOD_ENUM;
|
|
79
79
|
notes: string;
|
|
@@ -8,9 +8,9 @@ export declare const TenantHrPerformanceReviewSchema: Schema<any, import("mongoo
|
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
tenant_id: string;
|
|
12
11
|
createdAt: NativeDate;
|
|
13
12
|
updatedAt: NativeDate;
|
|
13
|
+
tenant_id: string;
|
|
14
14
|
notes: string;
|
|
15
15
|
employee_id: string;
|
|
16
16
|
reviewed_by: string;
|
|
@@ -22,9 +22,9 @@ export declare const TenantHrPerformanceReviewSchema: Schema<any, import("mongoo
|
|
|
22
22
|
updatedAt: NativeDate;
|
|
23
23
|
} & {
|
|
24
24
|
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
tenant_id: string;
|
|
26
25
|
createdAt: NativeDate;
|
|
27
26
|
updatedAt: NativeDate;
|
|
27
|
+
tenant_id: string;
|
|
28
28
|
notes: string;
|
|
29
29
|
employee_id: string;
|
|
30
30
|
reviewed_by: string;
|
|
@@ -36,9 +36,9 @@ export declare const TenantHrPerformanceReviewSchema: Schema<any, import("mongoo
|
|
|
36
36
|
updatedAt: NativeDate;
|
|
37
37
|
} & {
|
|
38
38
|
_id: import("mongoose").Types.ObjectId;
|
|
39
|
-
tenant_id: string;
|
|
40
39
|
createdAt: NativeDate;
|
|
41
40
|
updatedAt: NativeDate;
|
|
41
|
+
tenant_id: string;
|
|
42
42
|
notes: string;
|
|
43
43
|
employee_id: string;
|
|
44
44
|
reviewed_by: string;
|
|
@@ -10,10 +10,10 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
|
|
|
10
10
|
} & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
12
|
version: string;
|
|
13
|
-
tenant_id: string;
|
|
14
13
|
createdAt: NativeDate;
|
|
15
14
|
updatedAt: NativeDate;
|
|
16
15
|
description: string;
|
|
16
|
+
tenant_id: string;
|
|
17
17
|
status: HR_POLICY_STATUS_ENUM;
|
|
18
18
|
title: string;
|
|
19
19
|
file_url: string;
|
|
@@ -24,10 +24,10 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
|
|
|
24
24
|
} & {
|
|
25
25
|
_id: import("mongoose").Types.ObjectId;
|
|
26
26
|
version: string;
|
|
27
|
-
tenant_id: string;
|
|
28
27
|
createdAt: NativeDate;
|
|
29
28
|
updatedAt: NativeDate;
|
|
30
29
|
description: string;
|
|
30
|
+
tenant_id: string;
|
|
31
31
|
status: HR_POLICY_STATUS_ENUM;
|
|
32
32
|
title: string;
|
|
33
33
|
file_url: string;
|
|
@@ -38,10 +38,10 @@ export declare const TenantHrPolicySchema: Schema<any, import("mongoose").Model<
|
|
|
38
38
|
} & {
|
|
39
39
|
_id: import("mongoose").Types.ObjectId;
|
|
40
40
|
version: string;
|
|
41
|
-
tenant_id: string;
|
|
42
41
|
createdAt: NativeDate;
|
|
43
42
|
updatedAt: NativeDate;
|
|
44
43
|
description: string;
|
|
44
|
+
tenant_id: string;
|
|
45
45
|
status: HR_POLICY_STATUS_ENUM;
|
|
46
46
|
title: string;
|
|
47
47
|
file_url: string;
|
|
@@ -9,10 +9,10 @@ export declare const TenantHrPositionSchema: 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;
|
|
15
14
|
description: string;
|
|
15
|
+
tenant_id: string;
|
|
16
16
|
is_active: boolean;
|
|
17
17
|
department_id: string;
|
|
18
18
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -21,10 +21,10 @@ export declare const TenantHrPositionSchema: 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;
|
|
27
26
|
description: string;
|
|
27
|
+
tenant_id: string;
|
|
28
28
|
is_active: boolean;
|
|
29
29
|
department_id: string;
|
|
30
30
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -33,10 +33,10 @@ export declare const TenantHrPositionSchema: 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;
|
|
39
38
|
description: string;
|
|
39
|
+
tenant_id: string;
|
|
40
40
|
is_active: boolean;
|
|
41
41
|
department_id: string;
|
|
42
42
|
}> & Required<{
|
|
@@ -10,7 +10,6 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
10
10
|
} & {
|
|
11
11
|
_id: import("mongoose").Types.ObjectId;
|
|
12
12
|
type: HR_SHIFT_TYPE_ENUM;
|
|
13
|
-
tenant_id: string;
|
|
14
13
|
createdAt: NativeDate;
|
|
15
14
|
updatedAt: NativeDate;
|
|
16
15
|
position: string;
|
|
@@ -18,6 +17,7 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
18
17
|
end_time: number;
|
|
19
18
|
start_date: NativeDate;
|
|
20
19
|
end_date: NativeDate;
|
|
20
|
+
tenant_id: string;
|
|
21
21
|
status: HR_SHIFT_STATUS_ENUM;
|
|
22
22
|
day_indexes: string[];
|
|
23
23
|
notes: string;
|
|
@@ -29,7 +29,6 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
29
29
|
} & {
|
|
30
30
|
_id: import("mongoose").Types.ObjectId;
|
|
31
31
|
type: HR_SHIFT_TYPE_ENUM;
|
|
32
|
-
tenant_id: string;
|
|
33
32
|
createdAt: NativeDate;
|
|
34
33
|
updatedAt: NativeDate;
|
|
35
34
|
position: string;
|
|
@@ -37,6 +36,7 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
37
36
|
end_time: number;
|
|
38
37
|
start_date: NativeDate;
|
|
39
38
|
end_date: NativeDate;
|
|
39
|
+
tenant_id: string;
|
|
40
40
|
status: HR_SHIFT_STATUS_ENUM;
|
|
41
41
|
day_indexes: string[];
|
|
42
42
|
notes: string;
|
|
@@ -48,7 +48,6 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
48
48
|
} & {
|
|
49
49
|
_id: import("mongoose").Types.ObjectId;
|
|
50
50
|
type: HR_SHIFT_TYPE_ENUM;
|
|
51
|
-
tenant_id: string;
|
|
52
51
|
createdAt: NativeDate;
|
|
53
52
|
updatedAt: NativeDate;
|
|
54
53
|
position: string;
|
|
@@ -56,6 +55,7 @@ export declare const TenantHrShiftScheduleSchema: Schema<any, import("mongoose")
|
|
|
56
55
|
end_time: number;
|
|
57
56
|
start_date: NativeDate;
|
|
58
57
|
end_date: NativeDate;
|
|
58
|
+
tenant_id: string;
|
|
59
59
|
status: HR_SHIFT_STATUS_ENUM;
|
|
60
60
|
day_indexes: string[];
|
|
61
61
|
notes: string;
|
|
@@ -9,11 +9,11 @@ export declare const TenantHrShiftSchema: Schema<any, import("mongoose").Model<a
|
|
|
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;
|
|
15
14
|
start_time: number;
|
|
16
15
|
end_time: number;
|
|
16
|
+
tenant_id: string;
|
|
17
17
|
is_active: boolean;
|
|
18
18
|
grace_period_minutes: number;
|
|
19
19
|
required_positions: import("mongoose").Types.DocumentArray<{
|
|
@@ -32,11 +32,11 @@ export declare const TenantHrShiftSchema: Schema<any, import("mongoose").Model<a
|
|
|
32
32
|
} & {
|
|
33
33
|
_id: import("mongoose").Types.ObjectId;
|
|
34
34
|
name: string;
|
|
35
|
-
tenant_id: string;
|
|
36
35
|
createdAt: NativeDate;
|
|
37
36
|
updatedAt: NativeDate;
|
|
38
37
|
start_time: number;
|
|
39
38
|
end_time: number;
|
|
39
|
+
tenant_id: string;
|
|
40
40
|
is_active: boolean;
|
|
41
41
|
grace_period_minutes: number;
|
|
42
42
|
required_positions: import("mongoose").Types.DocumentArray<{
|
|
@@ -55,11 +55,11 @@ export declare const TenantHrShiftSchema: Schema<any, import("mongoose").Model<a
|
|
|
55
55
|
} & {
|
|
56
56
|
_id: import("mongoose").Types.ObjectId;
|
|
57
57
|
name: string;
|
|
58
|
-
tenant_id: string;
|
|
59
58
|
createdAt: NativeDate;
|
|
60
59
|
updatedAt: NativeDate;
|
|
61
60
|
start_time: number;
|
|
62
61
|
end_time: number;
|
|
62
|
+
tenant_id: string;
|
|
63
63
|
is_active: boolean;
|
|
64
64
|
grace_period_minutes: number;
|
|
65
65
|
required_positions: import("mongoose").Types.DocumentArray<{
|
|
@@ -16,9 +16,9 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
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").POS_SHIFT_STATUS_ENUM;
|
|
23
23
|
localDay: number;
|
|
24
24
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -28,34 +28,34 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
28
28
|
localDayOfYear: number;
|
|
29
29
|
day_id: import("mongoose").Types.ObjectId;
|
|
30
30
|
opening: {
|
|
31
|
+
note: string;
|
|
31
32
|
staff_id: string;
|
|
32
33
|
staff_name: string;
|
|
33
|
-
note: string;
|
|
34
34
|
cash_amount: number;
|
|
35
35
|
opened_at: NativeDate;
|
|
36
36
|
};
|
|
37
37
|
closing: {
|
|
38
|
+
note: string;
|
|
38
39
|
staff_id: string;
|
|
39
40
|
staff_name: string;
|
|
40
|
-
note: string;
|
|
41
41
|
cash_amount: number;
|
|
42
42
|
closed_at: NativeDate;
|
|
43
43
|
};
|
|
44
44
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
45
|
+
updatedAt: NativeDate;
|
|
45
46
|
staff_id: string;
|
|
46
47
|
staff_name: string;
|
|
47
|
-
updatedAt: NativeDate;
|
|
48
48
|
opening: {
|
|
49
|
+
note: string;
|
|
49
50
|
staff_id: string;
|
|
50
51
|
staff_name: string;
|
|
51
|
-
note: string;
|
|
52
52
|
cash_amount: number;
|
|
53
53
|
opened_at: NativeDate;
|
|
54
54
|
};
|
|
55
55
|
closing: {
|
|
56
|
+
note: string;
|
|
56
57
|
staff_id: string;
|
|
57
58
|
staff_name: string;
|
|
58
|
-
note: string;
|
|
59
59
|
cash_amount: number;
|
|
60
60
|
closed_at: NativeDate;
|
|
61
61
|
};
|
|
@@ -67,20 +67,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
67
67
|
expected_drawer_total: number;
|
|
68
68
|
actual_drawer_total: number;
|
|
69
69
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
70
|
+
updatedAt: NativeDate;
|
|
70
71
|
staff_id: string;
|
|
71
72
|
staff_name: string;
|
|
72
|
-
updatedAt: NativeDate;
|
|
73
73
|
opening: {
|
|
74
|
+
note: string;
|
|
74
75
|
staff_id: string;
|
|
75
76
|
staff_name: string;
|
|
76
|
-
note: string;
|
|
77
77
|
cash_amount: number;
|
|
78
78
|
opened_at: NativeDate;
|
|
79
79
|
};
|
|
80
80
|
closing: {
|
|
81
|
+
note: string;
|
|
81
82
|
staff_id: string;
|
|
82
83
|
staff_name: string;
|
|
83
|
-
note: string;
|
|
84
84
|
cash_amount: number;
|
|
85
85
|
closed_at: NativeDate;
|
|
86
86
|
};
|
|
@@ -92,20 +92,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
92
92
|
expected_drawer_total: number;
|
|
93
93
|
actual_drawer_total: number;
|
|
94
94
|
}> & {
|
|
95
|
+
updatedAt: NativeDate;
|
|
95
96
|
staff_id: string;
|
|
96
97
|
staff_name: string;
|
|
97
|
-
updatedAt: NativeDate;
|
|
98
98
|
opening: {
|
|
99
|
+
note: string;
|
|
99
100
|
staff_id: string;
|
|
100
101
|
staff_name: string;
|
|
101
|
-
note: string;
|
|
102
102
|
cash_amount: number;
|
|
103
103
|
opened_at: NativeDate;
|
|
104
104
|
};
|
|
105
105
|
closing: {
|
|
106
|
+
note: string;
|
|
106
107
|
staff_id: string;
|
|
107
108
|
staff_name: string;
|
|
108
|
-
note: string;
|
|
109
109
|
cash_amount: number;
|
|
110
110
|
closed_at: NativeDate;
|
|
111
111
|
};
|
|
@@ -139,9 +139,9 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
139
139
|
localSemester: number;
|
|
140
140
|
localYear: number;
|
|
141
141
|
_id: import("mongoose").Types.ObjectId;
|
|
142
|
-
tenant_id: string;
|
|
143
142
|
createdAt: NativeDate;
|
|
144
143
|
updatedAt: NativeDate;
|
|
144
|
+
tenant_id: string;
|
|
145
145
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
146
146
|
localDay: number;
|
|
147
147
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -151,34 +151,34 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
151
151
|
localDayOfYear: number;
|
|
152
152
|
day_id: import("mongoose").Types.ObjectId;
|
|
153
153
|
opening: {
|
|
154
|
+
note: string;
|
|
154
155
|
staff_id: string;
|
|
155
156
|
staff_name: string;
|
|
156
|
-
note: string;
|
|
157
157
|
cash_amount: number;
|
|
158
158
|
opened_at: NativeDate;
|
|
159
159
|
};
|
|
160
160
|
closing: {
|
|
161
|
+
note: string;
|
|
161
162
|
staff_id: string;
|
|
162
163
|
staff_name: string;
|
|
163
|
-
note: string;
|
|
164
164
|
cash_amount: number;
|
|
165
165
|
closed_at: NativeDate;
|
|
166
166
|
};
|
|
167
167
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
168
|
+
updatedAt: NativeDate;
|
|
168
169
|
staff_id: string;
|
|
169
170
|
staff_name: string;
|
|
170
|
-
updatedAt: NativeDate;
|
|
171
171
|
opening: {
|
|
172
|
+
note: string;
|
|
172
173
|
staff_id: string;
|
|
173
174
|
staff_name: string;
|
|
174
|
-
note: string;
|
|
175
175
|
cash_amount: number;
|
|
176
176
|
opened_at: NativeDate;
|
|
177
177
|
};
|
|
178
178
|
closing: {
|
|
179
|
+
note: string;
|
|
179
180
|
staff_id: string;
|
|
180
181
|
staff_name: string;
|
|
181
|
-
note: string;
|
|
182
182
|
cash_amount: number;
|
|
183
183
|
closed_at: NativeDate;
|
|
184
184
|
};
|
|
@@ -190,20 +190,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
190
190
|
expected_drawer_total: number;
|
|
191
191
|
actual_drawer_total: number;
|
|
192
192
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
193
|
+
updatedAt: NativeDate;
|
|
193
194
|
staff_id: string;
|
|
194
195
|
staff_name: string;
|
|
195
|
-
updatedAt: NativeDate;
|
|
196
196
|
opening: {
|
|
197
|
+
note: string;
|
|
197
198
|
staff_id: string;
|
|
198
199
|
staff_name: string;
|
|
199
|
-
note: string;
|
|
200
200
|
cash_amount: number;
|
|
201
201
|
opened_at: NativeDate;
|
|
202
202
|
};
|
|
203
203
|
closing: {
|
|
204
|
+
note: string;
|
|
204
205
|
staff_id: string;
|
|
205
206
|
staff_name: string;
|
|
206
|
-
note: string;
|
|
207
207
|
cash_amount: number;
|
|
208
208
|
closed_at: NativeDate;
|
|
209
209
|
};
|
|
@@ -215,20 +215,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
215
215
|
expected_drawer_total: number;
|
|
216
216
|
actual_drawer_total: number;
|
|
217
217
|
}> & {
|
|
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
|
opened_at: NativeDate;
|
|
227
227
|
};
|
|
228
228
|
closing: {
|
|
229
|
+
note: string;
|
|
229
230
|
staff_id: string;
|
|
230
231
|
staff_name: string;
|
|
231
|
-
note: string;
|
|
232
232
|
cash_amount: number;
|
|
233
233
|
closed_at: NativeDate;
|
|
234
234
|
};
|
|
@@ -262,9 +262,9 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
262
262
|
localSemester: number;
|
|
263
263
|
localYear: number;
|
|
264
264
|
_id: import("mongoose").Types.ObjectId;
|
|
265
|
-
tenant_id: string;
|
|
266
265
|
createdAt: NativeDate;
|
|
267
266
|
updatedAt: NativeDate;
|
|
267
|
+
tenant_id: string;
|
|
268
268
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
269
269
|
localDay: number;
|
|
270
270
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -274,34 +274,34 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
274
274
|
localDayOfYear: number;
|
|
275
275
|
day_id: import("mongoose").Types.ObjectId;
|
|
276
276
|
opening: {
|
|
277
|
+
note: string;
|
|
277
278
|
staff_id: string;
|
|
278
279
|
staff_name: string;
|
|
279
|
-
note: string;
|
|
280
280
|
cash_amount: number;
|
|
281
281
|
opened_at: NativeDate;
|
|
282
282
|
};
|
|
283
283
|
closing: {
|
|
284
|
+
note: string;
|
|
284
285
|
staff_id: string;
|
|
285
286
|
staff_name: string;
|
|
286
|
-
note: string;
|
|
287
287
|
cash_amount: number;
|
|
288
288
|
closed_at: NativeDate;
|
|
289
289
|
};
|
|
290
290
|
reopened_iterations: import("mongoose").Types.DocumentArray<{
|
|
291
|
+
updatedAt: NativeDate;
|
|
291
292
|
staff_id: string;
|
|
292
293
|
staff_name: string;
|
|
293
|
-
updatedAt: NativeDate;
|
|
294
294
|
opening: {
|
|
295
|
+
note: string;
|
|
295
296
|
staff_id: string;
|
|
296
297
|
staff_name: string;
|
|
297
|
-
note: string;
|
|
298
298
|
cash_amount: number;
|
|
299
299
|
opened_at: NativeDate;
|
|
300
300
|
};
|
|
301
301
|
closing: {
|
|
302
|
+
note: string;
|
|
302
303
|
staff_id: string;
|
|
303
304
|
staff_name: string;
|
|
304
|
-
note: string;
|
|
305
305
|
cash_amount: number;
|
|
306
306
|
closed_at: NativeDate;
|
|
307
307
|
};
|
|
@@ -313,20 +313,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
313
313
|
expected_drawer_total: number;
|
|
314
314
|
actual_drawer_total: number;
|
|
315
315
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
316
|
+
updatedAt: NativeDate;
|
|
316
317
|
staff_id: string;
|
|
317
318
|
staff_name: string;
|
|
318
|
-
updatedAt: NativeDate;
|
|
319
319
|
opening: {
|
|
320
|
+
note: string;
|
|
320
321
|
staff_id: string;
|
|
321
322
|
staff_name: string;
|
|
322
|
-
note: string;
|
|
323
323
|
cash_amount: number;
|
|
324
324
|
opened_at: NativeDate;
|
|
325
325
|
};
|
|
326
326
|
closing: {
|
|
327
|
+
note: string;
|
|
327
328
|
staff_id: string;
|
|
328
329
|
staff_name: string;
|
|
329
|
-
note: string;
|
|
330
330
|
cash_amount: number;
|
|
331
331
|
closed_at: NativeDate;
|
|
332
332
|
};
|
|
@@ -338,20 +338,20 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
338
338
|
expected_drawer_total: number;
|
|
339
339
|
actual_drawer_total: number;
|
|
340
340
|
}> & {
|
|
341
|
+
updatedAt: NativeDate;
|
|
341
342
|
staff_id: string;
|
|
342
343
|
staff_name: string;
|
|
343
|
-
updatedAt: NativeDate;
|
|
344
344
|
opening: {
|
|
345
|
+
note: string;
|
|
345
346
|
staff_id: string;
|
|
346
347
|
staff_name: string;
|
|
347
|
-
note: string;
|
|
348
348
|
cash_amount: number;
|
|
349
349
|
opened_at: NativeDate;
|
|
350
350
|
};
|
|
351
351
|
closing: {
|
|
352
|
+
note: string;
|
|
352
353
|
staff_id: string;
|
|
353
354
|
staff_name: string;
|
|
354
|
-
note: string;
|
|
355
355
|
cash_amount: number;
|
|
356
356
|
closed_at: NativeDate;
|
|
357
357
|
};
|
|
@@ -9,9 +9,9 @@ export declare const TenantInstoreShiftSchema: Schema<any, import("mongoose").Mo
|
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
name: string;
|
|
12
|
-
tenants: string[];
|
|
13
12
|
createdAt: NativeDate;
|
|
14
13
|
updatedAt: NativeDate;
|
|
14
|
+
tenants: string[];
|
|
15
15
|
active: boolean;
|
|
16
16
|
start_time: number;
|
|
17
17
|
end_time: number;
|
|
@@ -22,9 +22,9 @@ export declare const TenantInstoreShiftSchema: Schema<any, import("mongoose").Mo
|
|
|
22
22
|
} & {
|
|
23
23
|
_id: import("mongoose").Types.ObjectId;
|
|
24
24
|
name: string;
|
|
25
|
-
tenants: string[];
|
|
26
25
|
createdAt: NativeDate;
|
|
27
26
|
updatedAt: NativeDate;
|
|
27
|
+
tenants: string[];
|
|
28
28
|
active: boolean;
|
|
29
29
|
start_time: number;
|
|
30
30
|
end_time: number;
|
|
@@ -35,9 +35,9 @@ export declare const TenantInstoreShiftSchema: Schema<any, import("mongoose").Mo
|
|
|
35
35
|
} & {
|
|
36
36
|
_id: import("mongoose").Types.ObjectId;
|
|
37
37
|
name: string;
|
|
38
|
-
tenants: string[];
|
|
39
38
|
createdAt: NativeDate;
|
|
40
39
|
updatedAt: NativeDate;
|
|
40
|
+
tenants: string[];
|
|
41
41
|
active: boolean;
|
|
42
42
|
start_time: number;
|
|
43
43
|
end_time: number;
|
|
@@ -8,12 +8,12 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
tenant_id: string;
|
|
12
|
-
createdAt_mins: number;
|
|
13
11
|
createdAt: NativeDate;
|
|
14
12
|
updatedAt: NativeDate;
|
|
15
13
|
inventory_code: string;
|
|
16
14
|
department_code: string;
|
|
15
|
+
tenant_id: string;
|
|
16
|
+
createdAt_mins: number;
|
|
17
17
|
quantity_left: number;
|
|
18
18
|
unit_price: number;
|
|
19
19
|
remaining_stock_price: number;
|
|
@@ -23,9 +23,9 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
23
23
|
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
24
24
|
transaction_quantity: number;
|
|
25
25
|
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
26
|
-
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
27
26
|
description?: string | null | undefined;
|
|
28
27
|
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
28
|
+
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
29
29
|
order_number?: number | null | undefined;
|
|
30
30
|
stock_price?: number | null | undefined;
|
|
31
31
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -34,12 +34,12 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
34
34
|
updatedAt: NativeDate;
|
|
35
35
|
} & {
|
|
36
36
|
_id: import("mongoose").Types.ObjectId;
|
|
37
|
-
tenant_id: string;
|
|
38
|
-
createdAt_mins: number;
|
|
39
37
|
createdAt: NativeDate;
|
|
40
38
|
updatedAt: NativeDate;
|
|
41
39
|
inventory_code: string;
|
|
42
40
|
department_code: string;
|
|
41
|
+
tenant_id: string;
|
|
42
|
+
createdAt_mins: number;
|
|
43
43
|
quantity_left: number;
|
|
44
44
|
unit_price: number;
|
|
45
45
|
remaining_stock_price: number;
|
|
@@ -49,9 +49,9 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
49
49
|
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
50
50
|
transaction_quantity: number;
|
|
51
51
|
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
52
|
-
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
53
52
|
description?: string | null | undefined;
|
|
54
53
|
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
54
|
+
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
55
55
|
order_number?: number | null | undefined;
|
|
56
56
|
stock_price?: number | null | undefined;
|
|
57
57
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -60,12 +60,12 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
60
60
|
updatedAt: NativeDate;
|
|
61
61
|
} & {
|
|
62
62
|
_id: import("mongoose").Types.ObjectId;
|
|
63
|
-
tenant_id: string;
|
|
64
|
-
createdAt_mins: number;
|
|
65
63
|
createdAt: NativeDate;
|
|
66
64
|
updatedAt: NativeDate;
|
|
67
65
|
inventory_code: string;
|
|
68
66
|
department_code: string;
|
|
67
|
+
tenant_id: string;
|
|
68
|
+
createdAt_mins: number;
|
|
69
69
|
quantity_left: number;
|
|
70
70
|
unit_price: number;
|
|
71
71
|
remaining_stock_price: number;
|
|
@@ -75,9 +75,9 @@ export declare const TenantInventoryDepartmentTransactionsSchema: Schema<any, im
|
|
|
75
75
|
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
76
76
|
transaction_quantity: number;
|
|
77
77
|
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
78
|
-
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
79
78
|
description?: string | null | undefined;
|
|
80
79
|
ref_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
80
|
+
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
81
81
|
order_number?: number | null | undefined;
|
|
82
82
|
stock_price?: number | null | undefined;
|
|
83
83
|
stock_expiry_date?: NativeDate | null | undefined;
|
|
@@ -12,12 +12,12 @@ export declare const TenantInventoryDepartmentUtilitySchema: Schema<any, import(
|
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
type: INVENTORY_ITEM_TYPE_ENUM;
|
|
14
14
|
name: string;
|
|
15
|
-
|
|
15
|
+
image_url: string;
|
|
16
16
|
createdAt: NativeDate;
|
|
17
17
|
updatedAt: NativeDate;
|
|
18
|
-
image_url: string;
|
|
19
18
|
active: boolean;
|
|
20
19
|
department_code: string;
|
|
20
|
+
tenant_id: string;
|
|
21
21
|
unit: import("../../constants").INVENTORY_ITEM_UNIT_ENUM;
|
|
22
22
|
threshold_quantity: number;
|
|
23
23
|
quantity_left: number;
|
|
@@ -44,12 +44,12 @@ export declare const TenantInventoryDepartmentUtilitySchema: Schema<any, import(
|
|
|
44
44
|
_id: import("mongoose").Types.ObjectId;
|
|
45
45
|
type: INVENTORY_ITEM_TYPE_ENUM;
|
|
46
46
|
name: string;
|
|
47
|
-
|
|
47
|
+
image_url: string;
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
|
-
image_url: string;
|
|
51
50
|
active: boolean;
|
|
52
51
|
department_code: string;
|
|
52
|
+
tenant_id: string;
|
|
53
53
|
unit: import("../../constants").INVENTORY_ITEM_UNIT_ENUM;
|
|
54
54
|
threshold_quantity: number;
|
|
55
55
|
quantity_left: number;
|
|
@@ -76,12 +76,12 @@ export declare const TenantInventoryDepartmentUtilitySchema: Schema<any, import(
|
|
|
76
76
|
_id: import("mongoose").Types.ObjectId;
|
|
77
77
|
type: INVENTORY_ITEM_TYPE_ENUM;
|
|
78
78
|
name: string;
|
|
79
|
-
|
|
79
|
+
image_url: string;
|
|
80
80
|
createdAt: NativeDate;
|
|
81
81
|
updatedAt: NativeDate;
|
|
82
|
-
image_url: string;
|
|
83
82
|
active: boolean;
|
|
84
83
|
department_code: string;
|
|
84
|
+
tenant_id: string;
|
|
85
85
|
unit: import("../../constants").INVENTORY_ITEM_UNIT_ENUM;
|
|
86
86
|
threshold_quantity: number;
|
|
87
87
|
quantity_left: number;
|