@managesome/eposmatic-toolkit 0.4.0 → 0.4.2
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/constants/index.js +1 -0
- package/esm/helpers/index.js +1 -0
- package/esm/helpers/types/index.js +1 -0
- package/esm/helpers/types/materialized-reports-apis.js +1 -0
- package/esm/schemas/models/index.js +2 -0
- package/esm/schemas/types/index.js +2 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +1 -0
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +1 -0
- package/lib/helpers/types/index.d.ts +1 -0
- package/lib/helpers/types/index.js +1 -0
- package/lib/helpers/types/materialized-reports-apis.d.ts +65 -0
- package/lib/helpers/types/materialized-reports-apis.js +2 -0
- package/lib/schemas/models/index.d.ts +2 -0
- package/lib/schemas/models/index.js +2 -0
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +3 -3
- package/lib/schemas/models/orders.d.ts +24 -24
- 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 +24 -24
- package/lib/schemas/models/tenant_cash_in_out.d.ts +24 -24
- package/lib/schemas/models/tenant_day_sessions.d.ts +24 -24
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +24 -24
- package/lib/schemas/types/index.d.ts +2 -0
- package/lib/schemas/types/index.js +2 -0
- package/package.json +1 -1
package/esm/constants/index.js
CHANGED
package/esm/helpers/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from './internal-leads';
|
|
|
15
15
|
export * from './inventory-catalog';
|
|
16
16
|
export * from './kpra-generate-invoice';
|
|
17
17
|
export * from './marketing';
|
|
18
|
+
export * from './materialized-reports-apis';
|
|
18
19
|
export * from './order-engine';
|
|
19
20
|
export * from './pra-generate-invoice';
|
|
20
21
|
export * from './report-webview';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,8 @@ export * from './inventory_transactions';
|
|
|
27
27
|
export * from './item_transactions';
|
|
28
28
|
export * from './items';
|
|
29
29
|
export * from './marketing_fingerprints';
|
|
30
|
+
export * from './materialized_tenant_reports_iterations';
|
|
31
|
+
export * from './materialized_tenant_sales_overview_reports';
|
|
30
32
|
export * from './menus';
|
|
31
33
|
export * from './messaging_devices';
|
|
32
34
|
export * from './modifier_extras';
|
|
@@ -31,6 +31,8 @@ export * from './inventory_transactions';
|
|
|
31
31
|
export * from './item_transactions';
|
|
32
32
|
export * from './items';
|
|
33
33
|
export * from './marketing_fingerprints';
|
|
34
|
+
export * from './materialized_tenant_reports_iterations';
|
|
35
|
+
export * from './materialized_tenant_sales_overview_reports';
|
|
34
36
|
export * from './menus';
|
|
35
37
|
export * from './messaging_devices';
|
|
36
38
|
export * from './modifier_extras';
|
package/lib/constants/index.d.ts
CHANGED
package/lib/constants/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./ENUMS"), exports);
|
|
|
23
23
|
__exportStar(require("./FBR_ENUMS"), exports);
|
|
24
24
|
__exportStar(require("./HUBRISE_ENUMS"), exports);
|
|
25
25
|
__exportStar(require("./INTERNAL_ENUMS"), exports);
|
|
26
|
+
__exportStar(require("./MATERIALIZED_REPORTS"), exports);
|
|
26
27
|
__exportStar(require("./NOTIFICATIONS"), exports);
|
|
27
28
|
__exportStar(require("./ORDER"), exports);
|
|
28
29
|
__exportStar(require("./PRA_ENUMS"), exports);
|
package/lib/helpers/index.d.ts
CHANGED
package/lib/helpers/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./fbr"), exports);
|
|
18
18
|
__exportStar(require("./hubrise"), exports);
|
|
19
19
|
__exportStar(require("./kpra"), exports);
|
|
20
|
+
__exportStar(require("./materialized-reports"), exports);
|
|
20
21
|
__exportStar(require("./order"), exports);
|
|
21
22
|
__exportStar(require("./pra"), exports);
|
|
22
23
|
__exportStar(require("./srb"), exports);
|
|
@@ -15,6 +15,7 @@ export * from './internal-leads';
|
|
|
15
15
|
export * from './inventory-catalog';
|
|
16
16
|
export * from './kpra-generate-invoice';
|
|
17
17
|
export * from './marketing';
|
|
18
|
+
export * from './materialized-reports-apis';
|
|
18
19
|
export * from './order-engine';
|
|
19
20
|
export * from './pra-generate-invoice';
|
|
20
21
|
export * from './report-webview';
|
|
@@ -31,6 +31,7 @@ __exportStar(require("./internal-leads"), exports);
|
|
|
31
31
|
__exportStar(require("./inventory-catalog"), exports);
|
|
32
32
|
__exportStar(require("./kpra-generate-invoice"), exports);
|
|
33
33
|
__exportStar(require("./marketing"), exports);
|
|
34
|
+
__exportStar(require("./materialized-reports-apis"), exports);
|
|
34
35
|
__exportStar(require("./order-engine"), exports);
|
|
35
36
|
__exportStar(require("./pra-generate-invoice"), exports);
|
|
36
37
|
__exportStar(require("./report-webview"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { MATERIALIZED_REPORT_SCOPE_ENUM, MATERIALIZED_REPORT_TYPE_ENUM } from '../../constants';
|
|
2
|
+
/**
|
|
3
|
+
* Request body contracts for the materialized reports READ APIs
|
|
4
|
+
* (operations-service, mounted at `/materialized-reports`) — shared between
|
|
5
|
+
* the backend service and the reports frontend so both sides agree on the
|
|
6
|
+
* wire shape.
|
|
7
|
+
*
|
|
8
|
+
* Every endpoint takes the tenant scope as an ARRAY (`tenants`, minimum
|
|
9
|
+
* length 1) so a single call can serve one tenant or many (brand-level
|
|
10
|
+
* reports). Responses are the persisted documents themselves (see
|
|
11
|
+
* `IMaterializedTenantSalesOverviewReport` /
|
|
12
|
+
* `IMaterializedTenantReportIteration`) — amounts are INTEGER CENTS.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Body of `POST /materialized-reports/overview` — materialized sales overview
|
|
16
|
+
* documents (`materialized_tenant_sales_overview_reports`).
|
|
17
|
+
*
|
|
18
|
+
* The scope query is either the exact `scope_field`, or the inclusive
|
|
19
|
+
* lexicographic range `from`..`to` (all scope_field formats are fixed-width,
|
|
20
|
+
* so lexicographic order equals chronological order).
|
|
21
|
+
*/
|
|
22
|
+
export interface IGetMaterializedTenantSalesOverviewReportsBody {
|
|
23
|
+
/** One or more tenant ids to read (minimum length 1). */
|
|
24
|
+
tenants: string[];
|
|
25
|
+
/**
|
|
26
|
+
* Scope granularity — one of `MATERIALIZED_REPORT_SCOPE_ENUM`. Optional;
|
|
27
|
+
* the backend defaults to `LOCAL_DATE`.
|
|
28
|
+
*/
|
|
29
|
+
scope_context?: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
30
|
+
/** Exact scope value (e.g. '2026-09-30' or '2026-09-30 18'). */
|
|
31
|
+
scope_field?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Inclusive lower bound on `scope_field` — required together with `to` when
|
|
34
|
+
* `scope_field` is absent.
|
|
35
|
+
*/
|
|
36
|
+
from?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Inclusive upper bound on `scope_field` — required together with `from`
|
|
39
|
+
* when `scope_field` is absent.
|
|
40
|
+
*/
|
|
41
|
+
to?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Body of `POST /materialized-reports/iterations` — the latest stored versions
|
|
45
|
+
* of ONE report document from `materialized_tenant_reports_iterations` (the
|
|
46
|
+
* shared version history of every materialized report collection). Rows
|
|
47
|
+
* return newest-first, each carrying the full post-write `snapshot`.
|
|
48
|
+
*/
|
|
49
|
+
export interface IGetMaterializedReportIterationsBody {
|
|
50
|
+
/**
|
|
51
|
+
* One or more tenant ids — every returned row is guarded by the snapshot's
|
|
52
|
+
* `tenant_id` (the report itself is addressed by `report_id` alone).
|
|
53
|
+
*/
|
|
54
|
+
tenants: string[];
|
|
55
|
+
/** `_id` of the report document (the `report_id` of the history rows). */
|
|
56
|
+
report_id: string;
|
|
57
|
+
/**
|
|
58
|
+
* Which report collection `report_id` belongs to
|
|
59
|
+
* (`MATERIALIZED_REPORT_TYPE_ENUM`). Optional; defaults to
|
|
60
|
+
* `TENANT_SALES_OVERVIEW`.
|
|
61
|
+
*/
|
|
62
|
+
report_type?: MATERIALIZED_REPORT_TYPE_ENUM;
|
|
63
|
+
/** Latest N iterations, newest-first. Optional; default 5, capped at 50. */
|
|
64
|
+
limit?: number;
|
|
65
|
+
}
|
|
@@ -27,6 +27,8 @@ export * from './inventory_transactions';
|
|
|
27
27
|
export * from './item_transactions';
|
|
28
28
|
export * from './items';
|
|
29
29
|
export * from './marketing_fingerprints';
|
|
30
|
+
export * from './materialized_tenant_reports_iterations';
|
|
31
|
+
export * from './materialized_tenant_sales_overview_reports';
|
|
30
32
|
export * from './menus';
|
|
31
33
|
export * from './messaging_devices';
|
|
32
34
|
export * from './modifier_extras';
|
|
@@ -43,6 +43,8 @@ __exportStar(require("./inventory_transactions"), exports);
|
|
|
43
43
|
__exportStar(require("./item_transactions"), exports);
|
|
44
44
|
__exportStar(require("./items"), exports);
|
|
45
45
|
__exportStar(require("./marketing_fingerprints"), exports);
|
|
46
|
+
__exportStar(require("./materialized_tenant_reports_iterations"), exports);
|
|
47
|
+
__exportStar(require("./materialized_tenant_sales_overview_reports"), exports);
|
|
46
48
|
__exportStar(require("./menus"), exports);
|
|
47
49
|
__exportStar(require("./messaging_devices"), exports);
|
|
48
50
|
__exportStar(require("./modifier_extras"), exports);
|
|
@@ -38,7 +38,7 @@ export declare const MaterializedTenantSalesOverviewReportSchema: Schema<any, im
|
|
|
38
38
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
39
39
|
iteration: number;
|
|
40
40
|
schema_version: number;
|
|
41
|
-
scope_context: import("../../constants
|
|
41
|
+
scope_context: import("../../constants").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
42
42
|
scope_field: string;
|
|
43
43
|
sale_type_key_filters: string[];
|
|
44
44
|
sale_type_metrics: Map<string, {
|
|
@@ -203,7 +203,7 @@ export declare const MaterializedTenantSalesOverviewReportSchema: Schema<any, im
|
|
|
203
203
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
204
204
|
iteration: number;
|
|
205
205
|
schema_version: number;
|
|
206
|
-
scope_context: import("../../constants
|
|
206
|
+
scope_context: import("../../constants").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
207
207
|
scope_field: string;
|
|
208
208
|
sale_type_key_filters: string[];
|
|
209
209
|
sale_type_metrics: Map<string, {
|
|
@@ -368,7 +368,7 @@ export declare const MaterializedTenantSalesOverviewReportSchema: Schema<any, im
|
|
|
368
368
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
369
369
|
iteration: number;
|
|
370
370
|
schema_version: number;
|
|
371
|
-
scope_context: import("../../constants
|
|
371
|
+
scope_context: import("../../constants").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
372
372
|
scope_field: string;
|
|
373
373
|
sale_type_key_filters: string[];
|
|
374
374
|
sale_type_metrics: Map<string, {
|
|
@@ -5527,9 +5527,15 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5527
5527
|
};
|
|
5528
5528
|
tip_amount: number;
|
|
5529
5529
|
tax_amount: number;
|
|
5530
|
-
|
|
5531
|
-
|
|
5530
|
+
localHour?: number | null | undefined;
|
|
5531
|
+
localDate?: string | null | undefined;
|
|
5532
|
+
localWeek?: number | null | undefined;
|
|
5533
|
+
localWeekOfYear?: number | null | undefined;
|
|
5532
5534
|
localMonth?: number | null | undefined;
|
|
5535
|
+
localQuarter?: number | null | undefined;
|
|
5536
|
+
localSemester?: number | null | undefined;
|
|
5537
|
+
localYear?: number | null | undefined;
|
|
5538
|
+
cancel_reason?: string | null | undefined;
|
|
5533
5539
|
localDay?: number | null | undefined;
|
|
5534
5540
|
delete_reason?: string | null | undefined;
|
|
5535
5541
|
is_reopened?: boolean | null | undefined;
|
|
@@ -5547,12 +5553,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5547
5553
|
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
5548
5554
|
localSecond?: number | null | undefined;
|
|
5549
5555
|
localMinute?: number | null | undefined;
|
|
5550
|
-
localHour?: number | null | undefined;
|
|
5551
|
-
localWeek?: number | null | undefined;
|
|
5552
|
-
localWeekOfYear?: number | null | undefined;
|
|
5553
|
-
localQuarter?: number | null | undefined;
|
|
5554
|
-
localSemester?: number | null | undefined;
|
|
5555
|
-
localDate?: string | null | undefined;
|
|
5556
5556
|
localTime?: string | null | undefined;
|
|
5557
5557
|
localDayOfYear?: number | null | undefined;
|
|
5558
5558
|
source_tenant_id?: string | null | undefined;
|
|
@@ -11103,9 +11103,15 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
11103
11103
|
};
|
|
11104
11104
|
tip_amount: number;
|
|
11105
11105
|
tax_amount: number;
|
|
11106
|
-
|
|
11107
|
-
|
|
11106
|
+
localHour?: number | null | undefined;
|
|
11107
|
+
localDate?: string | null | undefined;
|
|
11108
|
+
localWeek?: number | null | undefined;
|
|
11109
|
+
localWeekOfYear?: number | null | undefined;
|
|
11108
11110
|
localMonth?: number | null | undefined;
|
|
11111
|
+
localQuarter?: number | null | undefined;
|
|
11112
|
+
localSemester?: number | null | undefined;
|
|
11113
|
+
localYear?: number | null | undefined;
|
|
11114
|
+
cancel_reason?: string | null | undefined;
|
|
11109
11115
|
localDay?: number | null | undefined;
|
|
11110
11116
|
delete_reason?: string | null | undefined;
|
|
11111
11117
|
is_reopened?: boolean | null | undefined;
|
|
@@ -11123,12 +11129,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
11123
11129
|
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
11124
11130
|
localSecond?: number | null | undefined;
|
|
11125
11131
|
localMinute?: number | null | undefined;
|
|
11126
|
-
localHour?: number | null | undefined;
|
|
11127
|
-
localWeek?: number | null | undefined;
|
|
11128
|
-
localWeekOfYear?: number | null | undefined;
|
|
11129
|
-
localQuarter?: number | null | undefined;
|
|
11130
|
-
localSemester?: number | null | undefined;
|
|
11131
|
-
localDate?: string | null | undefined;
|
|
11132
11132
|
localTime?: string | null | undefined;
|
|
11133
11133
|
localDayOfYear?: number | null | undefined;
|
|
11134
11134
|
source_tenant_id?: string | null | undefined;
|
|
@@ -16679,9 +16679,15 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
16679
16679
|
};
|
|
16680
16680
|
tip_amount: number;
|
|
16681
16681
|
tax_amount: number;
|
|
16682
|
-
|
|
16683
|
-
|
|
16682
|
+
localHour?: number | null | undefined;
|
|
16683
|
+
localDate?: string | null | undefined;
|
|
16684
|
+
localWeek?: number | null | undefined;
|
|
16685
|
+
localWeekOfYear?: number | null | undefined;
|
|
16684
16686
|
localMonth?: number | null | undefined;
|
|
16687
|
+
localQuarter?: number | null | undefined;
|
|
16688
|
+
localSemester?: number | null | undefined;
|
|
16689
|
+
localYear?: number | null | undefined;
|
|
16690
|
+
cancel_reason?: string | null | undefined;
|
|
16685
16691
|
localDay?: number | null | undefined;
|
|
16686
16692
|
delete_reason?: string | null | undefined;
|
|
16687
16693
|
is_reopened?: boolean | null | undefined;
|
|
@@ -16699,12 +16705,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
16699
16705
|
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
16700
16706
|
localSecond?: number | null | undefined;
|
|
16701
16707
|
localMinute?: number | null | undefined;
|
|
16702
|
-
localHour?: number | null | undefined;
|
|
16703
|
-
localWeek?: number | null | undefined;
|
|
16704
|
-
localWeekOfYear?: number | null | undefined;
|
|
16705
|
-
localQuarter?: number | null | undefined;
|
|
16706
|
-
localSemester?: number | null | undefined;
|
|
16707
|
-
localDate?: string | null | undefined;
|
|
16708
16708
|
localTime?: string | null | undefined;
|
|
16709
16709
|
localDayOfYear?: number | null | undefined;
|
|
16710
16710
|
source_tenant_id?: string | null | undefined;
|
|
@@ -7,11 +7,11 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localDate: string;
|
|
10
11
|
_id: import("mongoose").Types.ObjectId;
|
|
11
12
|
tenant_id: string;
|
|
12
13
|
createdAt: NativeDate;
|
|
13
14
|
updatedAt: NativeDate;
|
|
14
|
-
localDate: string;
|
|
15
15
|
progress: number;
|
|
16
16
|
completed_at: NativeDate;
|
|
17
17
|
jobs_status: Map<string, boolean>;
|
|
@@ -23,11 +23,11 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
23
23
|
createdAt: NativeDate;
|
|
24
24
|
updatedAt: NativeDate;
|
|
25
25
|
} & {
|
|
26
|
+
localDate: string;
|
|
26
27
|
_id: import("mongoose").Types.ObjectId;
|
|
27
28
|
tenant_id: string;
|
|
28
29
|
createdAt: NativeDate;
|
|
29
30
|
updatedAt: NativeDate;
|
|
30
|
-
localDate: string;
|
|
31
31
|
progress: number;
|
|
32
32
|
completed_at: NativeDate;
|
|
33
33
|
jobs_status: Map<string, boolean>;
|
|
@@ -39,11 +39,11 @@ export declare const TenantActiveJobSchema: Schema<any, import("mongoose").Model
|
|
|
39
39
|
createdAt: NativeDate;
|
|
40
40
|
updatedAt: NativeDate;
|
|
41
41
|
} & {
|
|
42
|
+
localDate: string;
|
|
42
43
|
_id: import("mongoose").Types.ObjectId;
|
|
43
44
|
tenant_id: string;
|
|
44
45
|
createdAt: NativeDate;
|
|
45
46
|
updatedAt: NativeDate;
|
|
46
|
-
localDate: string;
|
|
47
47
|
progress: number;
|
|
48
48
|
completed_at: NativeDate;
|
|
49
49
|
jobs_status: Map<string, boolean>;
|
|
@@ -7,11 +7,11 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localYear: number;
|
|
10
11
|
_id: import("mongoose").Types.ObjectId;
|
|
11
12
|
tenant_id: string;
|
|
12
13
|
createdAt: NativeDate;
|
|
13
14
|
updatedAt: NativeDate;
|
|
14
|
-
localYear: number;
|
|
15
15
|
days: Map<string, {
|
|
16
16
|
total_orders: number;
|
|
17
17
|
cancelled_orders_amount: number;
|
|
@@ -27,11 +27,11 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
27
27
|
createdAt: NativeDate;
|
|
28
28
|
updatedAt: NativeDate;
|
|
29
29
|
} & {
|
|
30
|
+
localYear: number;
|
|
30
31
|
_id: import("mongoose").Types.ObjectId;
|
|
31
32
|
tenant_id: string;
|
|
32
33
|
createdAt: NativeDate;
|
|
33
34
|
updatedAt: NativeDate;
|
|
34
|
-
localYear: number;
|
|
35
35
|
days: Map<string, {
|
|
36
36
|
total_orders: number;
|
|
37
37
|
cancelled_orders_amount: number;
|
|
@@ -47,11 +47,11 @@ export declare const TenantCalendarSchema: Schema<any, import("mongoose").Model<
|
|
|
47
47
|
createdAt: NativeDate;
|
|
48
48
|
updatedAt: NativeDate;
|
|
49
49
|
} & {
|
|
50
|
+
localYear: number;
|
|
50
51
|
_id: import("mongoose").Types.ObjectId;
|
|
51
52
|
tenant_id: string;
|
|
52
53
|
createdAt: NativeDate;
|
|
53
54
|
updatedAt: NativeDate;
|
|
54
|
-
localYear: number;
|
|
55
55
|
days: Map<string, {
|
|
56
56
|
total_orders: number;
|
|
57
57
|
cancelled_orders_amount: number;
|
|
@@ -7,23 +7,23 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localHour: number;
|
|
11
|
+
localDate: string;
|
|
12
|
+
localWeek: number;
|
|
13
|
+
localWeekOfYear: number;
|
|
14
|
+
localMonth: number;
|
|
15
|
+
localQuarter: number;
|
|
16
|
+
localSemester: number;
|
|
17
|
+
localYear: number;
|
|
10
18
|
_id: import("mongoose").Types.ObjectId;
|
|
11
19
|
tenant_id: string;
|
|
12
20
|
createdAt: NativeDate;
|
|
13
21
|
updatedAt: NativeDate;
|
|
14
22
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
15
|
-
localYear: number;
|
|
16
|
-
localMonth: number;
|
|
17
23
|
localDay: number;
|
|
18
24
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
19
25
|
localSecond: number;
|
|
20
26
|
localMinute: number;
|
|
21
|
-
localHour: number;
|
|
22
|
-
localWeek: number;
|
|
23
|
-
localWeekOfYear: number;
|
|
24
|
-
localQuarter: number;
|
|
25
|
-
localSemester: number;
|
|
26
|
-
localDate: string;
|
|
27
27
|
localTime: string;
|
|
28
28
|
localDayOfYear: number;
|
|
29
29
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -142,23 +142,23 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
142
142
|
createdAt: NativeDate;
|
|
143
143
|
updatedAt: NativeDate;
|
|
144
144
|
} & {
|
|
145
|
+
localHour: number;
|
|
146
|
+
localDate: string;
|
|
147
|
+
localWeek: number;
|
|
148
|
+
localWeekOfYear: number;
|
|
149
|
+
localMonth: number;
|
|
150
|
+
localQuarter: number;
|
|
151
|
+
localSemester: number;
|
|
152
|
+
localYear: number;
|
|
145
153
|
_id: import("mongoose").Types.ObjectId;
|
|
146
154
|
tenant_id: string;
|
|
147
155
|
createdAt: NativeDate;
|
|
148
156
|
updatedAt: NativeDate;
|
|
149
157
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
150
|
-
localYear: number;
|
|
151
|
-
localMonth: number;
|
|
152
158
|
localDay: number;
|
|
153
159
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
154
160
|
localSecond: number;
|
|
155
161
|
localMinute: number;
|
|
156
|
-
localHour: number;
|
|
157
|
-
localWeek: number;
|
|
158
|
-
localWeekOfYear: number;
|
|
159
|
-
localQuarter: number;
|
|
160
|
-
localSemester: number;
|
|
161
|
-
localDate: string;
|
|
162
162
|
localTime: string;
|
|
163
163
|
localDayOfYear: number;
|
|
164
164
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -277,23 +277,23 @@ export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoos
|
|
|
277
277
|
createdAt: NativeDate;
|
|
278
278
|
updatedAt: NativeDate;
|
|
279
279
|
} & {
|
|
280
|
+
localHour: number;
|
|
281
|
+
localDate: string;
|
|
282
|
+
localWeek: number;
|
|
283
|
+
localWeekOfYear: number;
|
|
284
|
+
localMonth: number;
|
|
285
|
+
localQuarter: number;
|
|
286
|
+
localSemester: number;
|
|
287
|
+
localYear: number;
|
|
280
288
|
_id: import("mongoose").Types.ObjectId;
|
|
281
289
|
tenant_id: string;
|
|
282
290
|
createdAt: NativeDate;
|
|
283
291
|
updatedAt: NativeDate;
|
|
284
292
|
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
285
|
-
localYear: number;
|
|
286
|
-
localMonth: number;
|
|
287
293
|
localDay: number;
|
|
288
294
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
289
295
|
localSecond: number;
|
|
290
296
|
localMinute: number;
|
|
291
|
-
localHour: number;
|
|
292
|
-
localWeek: number;
|
|
293
|
-
localWeekOfYear: number;
|
|
294
|
-
localQuarter: number;
|
|
295
|
-
localSemester: number;
|
|
296
|
-
localDate: string;
|
|
297
297
|
localTime: string;
|
|
298
298
|
localDayOfYear: number;
|
|
299
299
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -7,6 +7,14 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localHour: number;
|
|
11
|
+
localDate: string;
|
|
12
|
+
localWeek: number;
|
|
13
|
+
localWeekOfYear: number;
|
|
14
|
+
localMonth: number;
|
|
15
|
+
localQuarter: number;
|
|
16
|
+
localSemester: number;
|
|
17
|
+
localYear: number;
|
|
10
18
|
_id: import("mongoose").Types.ObjectId;
|
|
11
19
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
12
20
|
tenant_id: string;
|
|
@@ -18,18 +26,10 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
18
26
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
19
27
|
ref_id: import("mongoose").Types.ObjectId;
|
|
20
28
|
amount: number;
|
|
21
|
-
localYear: number;
|
|
22
|
-
localMonth: number;
|
|
23
29
|
localDay: number;
|
|
24
30
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
25
31
|
localSecond: number;
|
|
26
32
|
localMinute: number;
|
|
27
|
-
localHour: number;
|
|
28
|
-
localWeek: number;
|
|
29
|
-
localWeekOfYear: number;
|
|
30
|
-
localQuarter: number;
|
|
31
|
-
localSemester: number;
|
|
32
|
-
localDate: string;
|
|
33
33
|
localTime: string;
|
|
34
34
|
localDayOfYear: number;
|
|
35
35
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -42,6 +42,14 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
42
42
|
createdAt: NativeDate;
|
|
43
43
|
updatedAt: NativeDate;
|
|
44
44
|
} & {
|
|
45
|
+
localHour: number;
|
|
46
|
+
localDate: string;
|
|
47
|
+
localWeek: number;
|
|
48
|
+
localWeekOfYear: number;
|
|
49
|
+
localMonth: number;
|
|
50
|
+
localQuarter: number;
|
|
51
|
+
localSemester: number;
|
|
52
|
+
localYear: number;
|
|
45
53
|
_id: import("mongoose").Types.ObjectId;
|
|
46
54
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
47
55
|
tenant_id: string;
|
|
@@ -53,18 +61,10 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
53
61
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
54
62
|
ref_id: import("mongoose").Types.ObjectId;
|
|
55
63
|
amount: number;
|
|
56
|
-
localYear: number;
|
|
57
|
-
localMonth: number;
|
|
58
64
|
localDay: number;
|
|
59
65
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
60
66
|
localSecond: number;
|
|
61
67
|
localMinute: number;
|
|
62
|
-
localHour: number;
|
|
63
|
-
localWeek: number;
|
|
64
|
-
localWeekOfYear: number;
|
|
65
|
-
localQuarter: number;
|
|
66
|
-
localSemester: number;
|
|
67
|
-
localDate: string;
|
|
68
68
|
localTime: string;
|
|
69
69
|
localDayOfYear: number;
|
|
70
70
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -77,6 +77,14 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
77
77
|
createdAt: NativeDate;
|
|
78
78
|
updatedAt: NativeDate;
|
|
79
79
|
} & {
|
|
80
|
+
localHour: number;
|
|
81
|
+
localDate: string;
|
|
82
|
+
localWeek: number;
|
|
83
|
+
localWeekOfYear: number;
|
|
84
|
+
localMonth: number;
|
|
85
|
+
localQuarter: number;
|
|
86
|
+
localSemester: number;
|
|
87
|
+
localYear: number;
|
|
80
88
|
_id: import("mongoose").Types.ObjectId;
|
|
81
89
|
type: import("../../constants").CASH_IN_OUT_TYPE_ENUM;
|
|
82
90
|
tenant_id: string;
|
|
@@ -88,18 +96,10 @@ export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model
|
|
|
88
96
|
ref_type: import("../../constants").CASH_IN_OUT_REF_ENUM;
|
|
89
97
|
ref_id: import("mongoose").Types.ObjectId;
|
|
90
98
|
amount: number;
|
|
91
|
-
localYear: number;
|
|
92
|
-
localMonth: number;
|
|
93
99
|
localDay: number;
|
|
94
100
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
95
101
|
localSecond: number;
|
|
96
102
|
localMinute: number;
|
|
97
|
-
localHour: number;
|
|
98
|
-
localWeek: number;
|
|
99
|
-
localWeekOfYear: number;
|
|
100
|
-
localQuarter: number;
|
|
101
|
-
localSemester: number;
|
|
102
|
-
localDate: string;
|
|
103
103
|
localTime: string;
|
|
104
104
|
localDayOfYear: number;
|
|
105
105
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -7,23 +7,23 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localHour: number;
|
|
11
|
+
localDate: string;
|
|
12
|
+
localWeek: number;
|
|
13
|
+
localWeekOfYear: number;
|
|
14
|
+
localMonth: number;
|
|
15
|
+
localQuarter: number;
|
|
16
|
+
localSemester: number;
|
|
17
|
+
localYear: number;
|
|
10
18
|
_id: import("mongoose").Types.ObjectId;
|
|
11
19
|
tenant_id: string;
|
|
12
20
|
createdAt: NativeDate;
|
|
13
21
|
updatedAt: NativeDate;
|
|
14
22
|
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
15
|
-
localYear: number;
|
|
16
|
-
localMonth: number;
|
|
17
23
|
localDay: number;
|
|
18
24
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
19
25
|
localSecond: number;
|
|
20
26
|
localMinute: number;
|
|
21
|
-
localHour: number;
|
|
22
|
-
localWeek: number;
|
|
23
|
-
localWeekOfYear: number;
|
|
24
|
-
localQuarter: number;
|
|
25
|
-
localSemester: number;
|
|
26
|
-
localDate: string;
|
|
27
27
|
localTime: string;
|
|
28
28
|
localDayOfYear: number;
|
|
29
29
|
opening: {
|
|
@@ -119,23 +119,23 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
119
119
|
createdAt: NativeDate;
|
|
120
120
|
updatedAt: NativeDate;
|
|
121
121
|
} & {
|
|
122
|
+
localHour: number;
|
|
123
|
+
localDate: string;
|
|
124
|
+
localWeek: number;
|
|
125
|
+
localWeekOfYear: number;
|
|
126
|
+
localMonth: number;
|
|
127
|
+
localQuarter: number;
|
|
128
|
+
localSemester: number;
|
|
129
|
+
localYear: number;
|
|
122
130
|
_id: import("mongoose").Types.ObjectId;
|
|
123
131
|
tenant_id: string;
|
|
124
132
|
createdAt: NativeDate;
|
|
125
133
|
updatedAt: NativeDate;
|
|
126
134
|
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
127
|
-
localYear: number;
|
|
128
|
-
localMonth: number;
|
|
129
135
|
localDay: number;
|
|
130
136
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
131
137
|
localSecond: number;
|
|
132
138
|
localMinute: number;
|
|
133
|
-
localHour: number;
|
|
134
|
-
localWeek: number;
|
|
135
|
-
localWeekOfYear: number;
|
|
136
|
-
localQuarter: number;
|
|
137
|
-
localSemester: number;
|
|
138
|
-
localDate: string;
|
|
139
139
|
localTime: string;
|
|
140
140
|
localDayOfYear: number;
|
|
141
141
|
opening: {
|
|
@@ -231,23 +231,23 @@ export declare const TenantDaySessionSchema: Schema<any, import("mongoose").Mode
|
|
|
231
231
|
createdAt: NativeDate;
|
|
232
232
|
updatedAt: NativeDate;
|
|
233
233
|
} & {
|
|
234
|
+
localHour: number;
|
|
235
|
+
localDate: string;
|
|
236
|
+
localWeek: number;
|
|
237
|
+
localWeekOfYear: number;
|
|
238
|
+
localMonth: number;
|
|
239
|
+
localQuarter: number;
|
|
240
|
+
localSemester: number;
|
|
241
|
+
localYear: number;
|
|
234
242
|
_id: import("mongoose").Types.ObjectId;
|
|
235
243
|
tenant_id: string;
|
|
236
244
|
createdAt: NativeDate;
|
|
237
245
|
updatedAt: NativeDate;
|
|
238
246
|
status: import("../../constants").POS_DAY_STATUS_ENUM;
|
|
239
|
-
localYear: number;
|
|
240
|
-
localMonth: number;
|
|
241
247
|
localDay: number;
|
|
242
248
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
243
249
|
localSecond: number;
|
|
244
250
|
localMinute: number;
|
|
245
|
-
localHour: number;
|
|
246
|
-
localWeek: number;
|
|
247
|
-
localWeekOfYear: number;
|
|
248
|
-
localQuarter: number;
|
|
249
|
-
localSemester: number;
|
|
250
|
-
localDate: string;
|
|
251
251
|
localTime: string;
|
|
252
252
|
localDayOfYear: number;
|
|
253
253
|
opening: {
|
|
@@ -7,23 +7,23 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
7
7
|
createdAt: NativeDate;
|
|
8
8
|
updatedAt: NativeDate;
|
|
9
9
|
} & {
|
|
10
|
+
localHour: number;
|
|
11
|
+
localDate: string;
|
|
12
|
+
localWeek: number;
|
|
13
|
+
localWeekOfYear: number;
|
|
14
|
+
localMonth: number;
|
|
15
|
+
localQuarter: number;
|
|
16
|
+
localSemester: number;
|
|
17
|
+
localYear: number;
|
|
10
18
|
_id: import("mongoose").Types.ObjectId;
|
|
11
19
|
tenant_id: string;
|
|
12
20
|
createdAt: NativeDate;
|
|
13
21
|
updatedAt: NativeDate;
|
|
14
22
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
15
|
-
localYear: number;
|
|
16
|
-
localMonth: number;
|
|
17
23
|
localDay: number;
|
|
18
24
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
19
25
|
localSecond: number;
|
|
20
26
|
localMinute: number;
|
|
21
|
-
localHour: number;
|
|
22
|
-
localWeek: number;
|
|
23
|
-
localWeekOfYear: number;
|
|
24
|
-
localQuarter: number;
|
|
25
|
-
localSemester: number;
|
|
26
|
-
localDate: string;
|
|
27
27
|
localTime: string;
|
|
28
28
|
localDayOfYear: number;
|
|
29
29
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -130,23 +130,23 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
130
130
|
createdAt: NativeDate;
|
|
131
131
|
updatedAt: NativeDate;
|
|
132
132
|
} & {
|
|
133
|
+
localHour: number;
|
|
134
|
+
localDate: string;
|
|
135
|
+
localWeek: number;
|
|
136
|
+
localWeekOfYear: number;
|
|
137
|
+
localMonth: number;
|
|
138
|
+
localQuarter: number;
|
|
139
|
+
localSemester: number;
|
|
140
|
+
localYear: number;
|
|
133
141
|
_id: import("mongoose").Types.ObjectId;
|
|
134
142
|
tenant_id: string;
|
|
135
143
|
createdAt: NativeDate;
|
|
136
144
|
updatedAt: NativeDate;
|
|
137
145
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
138
|
-
localYear: number;
|
|
139
|
-
localMonth: number;
|
|
140
146
|
localDay: number;
|
|
141
147
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
142
148
|
localSecond: number;
|
|
143
149
|
localMinute: number;
|
|
144
|
-
localHour: number;
|
|
145
|
-
localWeek: number;
|
|
146
|
-
localWeekOfYear: number;
|
|
147
|
-
localQuarter: number;
|
|
148
|
-
localSemester: number;
|
|
149
|
-
localDate: string;
|
|
150
150
|
localTime: string;
|
|
151
151
|
localDayOfYear: number;
|
|
152
152
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -253,23 +253,23 @@ export declare const TenantInstoreShiftSessionSchema: Schema<any, import("mongoo
|
|
|
253
253
|
createdAt: NativeDate;
|
|
254
254
|
updatedAt: NativeDate;
|
|
255
255
|
} & {
|
|
256
|
+
localHour: number;
|
|
257
|
+
localDate: string;
|
|
258
|
+
localWeek: number;
|
|
259
|
+
localWeekOfYear: number;
|
|
260
|
+
localMonth: number;
|
|
261
|
+
localQuarter: number;
|
|
262
|
+
localSemester: number;
|
|
263
|
+
localYear: number;
|
|
256
264
|
_id: import("mongoose").Types.ObjectId;
|
|
257
265
|
tenant_id: string;
|
|
258
266
|
createdAt: NativeDate;
|
|
259
267
|
updatedAt: NativeDate;
|
|
260
268
|
status: import("../../constants").POS_SHIFT_STATUS_ENUM;
|
|
261
|
-
localYear: number;
|
|
262
|
-
localMonth: number;
|
|
263
269
|
localDay: number;
|
|
264
270
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
265
271
|
localSecond: number;
|
|
266
272
|
localMinute: number;
|
|
267
|
-
localHour: number;
|
|
268
|
-
localWeek: number;
|
|
269
|
-
localWeekOfYear: number;
|
|
270
|
-
localQuarter: number;
|
|
271
|
-
localSemester: number;
|
|
272
|
-
localDate: string;
|
|
273
273
|
localTime: string;
|
|
274
274
|
localDayOfYear: number;
|
|
275
275
|
day_id: import("mongoose").Types.ObjectId;
|
|
@@ -31,6 +31,8 @@ export * from './inventory_transactions';
|
|
|
31
31
|
export * from './item_transactions';
|
|
32
32
|
export * from './items';
|
|
33
33
|
export * from './marketing_fingerprints';
|
|
34
|
+
export * from './materialized_tenant_reports_iterations';
|
|
35
|
+
export * from './materialized_tenant_sales_overview_reports';
|
|
34
36
|
export * from './menus';
|
|
35
37
|
export * from './messaging_devices';
|
|
36
38
|
export * from './modifier_extras';
|
|
@@ -47,6 +47,8 @@ __exportStar(require("./inventory_transactions"), exports);
|
|
|
47
47
|
__exportStar(require("./item_transactions"), exports);
|
|
48
48
|
__exportStar(require("./items"), exports);
|
|
49
49
|
__exportStar(require("./marketing_fingerprints"), exports);
|
|
50
|
+
__exportStar(require("./materialized_tenant_reports_iterations"), exports);
|
|
51
|
+
__exportStar(require("./materialized_tenant_sales_overview_reports"), exports);
|
|
50
52
|
__exportStar(require("./menus"), exports);
|
|
51
53
|
__exportStar(require("./messaging_devices"), exports);
|
|
52
54
|
__exportStar(require("./modifier_extras"), exports);
|