@managesome/eposmatic-toolkit 0.4.62 → 0.4.63
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/MATERIALIZED_SCHEMA_VERSIONS.js +17 -0
- package/esm/constants/WORKER_ENDPOINTS.js +2 -2
- package/esm/helpers/materialized-reports/index.js +3 -0
- package/esm/helpers/materialized-reports/materialized-credit-bills-helpers.js +3 -3
- package/esm/helpers/materialized-reports/materialized-delivery-close-day-helpers.js +5 -5
- package/esm/helpers/materialized-reports/materialized-delivery-compile-helpers.js +2 -2
- package/esm/helpers/materialized-reports/materialized-dialer-close-day-helpers.js +5 -5
- package/esm/helpers/materialized-reports/materialized-dialer-compile-helpers.js +2 -2
- package/esm/helpers/materialized-reports/materialized-dinein-close-day-helpers.js +5 -5
- package/esm/helpers/materialized-reports/materialized-dinein-compile-helpers.js +2 -2
- package/esm/helpers/materialized-reports/materialized-discount-compile-helpers.js +3 -3
- package/esm/helpers/materialized-reports/materialized-document-size.js +2 -2
- package/esm/helpers/materialized-reports/materialized-prep-time-close-day-helpers.js +3 -3
- package/esm/helpers/materialized-reports/materialized-prep-time-compile-helpers.js +3 -3
- package/esm/helpers/materialized-reports/report-compile.js +38 -0
- package/esm/helpers/materialized-reports/tenant-sales-overview-bson.js +27 -0
- package/esm/helpers/materialized-reports/tenant-sales-overview-helpers.js +3 -22
- package/esm/schemas/models/materialized_credit_bills.js +2 -1
- package/esm/schemas/models/materialized_tenant_delivery_entries.js +2 -1
- package/esm/schemas/models/materialized_tenant_delivery_reports.js +2 -1
- package/esm/schemas/models/materialized_tenant_dialer_entries.js +2 -1
- package/esm/schemas/models/materialized_tenant_dialer_reports.js +2 -1
- package/esm/schemas/models/materialized_tenant_dinein_entries.js +2 -1
- package/esm/schemas/models/materialized_tenant_dinein_reports.js +2 -1
- package/esm/schemas/models/materialized_tenant_sales_overview_reports.js +2 -1
- package/lib/constants/MATERIALIZED_SCHEMA_VERSIONS.d.ts +17 -0
- package/lib/constants/MATERIALIZED_SCHEMA_VERSIONS.js +20 -0
- package/lib/constants/WORKER_ENDPOINTS.d.ts +0 -2
- package/lib/constants/WORKER_ENDPOINTS.js +2 -2
- package/lib/helpers/materialized-reports/index.d.ts +2 -0
- package/lib/helpers/materialized-reports/index.js +26 -0
- package/lib/helpers/materialized-reports/materialized-credit-bills-helpers.js +4 -4
- package/lib/helpers/materialized-reports/materialized-delivery-close-day-helpers.js +6 -6
- package/lib/helpers/materialized-reports/materialized-delivery-compile-helpers.js +4 -4
- package/lib/helpers/materialized-reports/materialized-dialer-close-day-helpers.js +6 -6
- package/lib/helpers/materialized-reports/materialized-dialer-compile-helpers.js +6 -6
- package/lib/helpers/materialized-reports/materialized-dinein-close-day-helpers.js +6 -6
- package/lib/helpers/materialized-reports/materialized-dinein-compile-helpers.js +6 -6
- package/lib/helpers/materialized-reports/materialized-discount-compile-helpers.js +3 -3
- package/lib/helpers/materialized-reports/materialized-document-size.js +2 -5
- package/lib/helpers/materialized-reports/materialized-prep-time-close-day-helpers.js +3 -3
- package/lib/helpers/materialized-reports/materialized-prep-time-compile-helpers.js +3 -3
- package/lib/helpers/materialized-reports/report-compile.d.ts +38 -0
- package/lib/helpers/materialized-reports/report-compile.js +87 -0
- package/lib/helpers/materialized-reports/tenant-sales-overview-bson.d.ts +12 -0
- package/lib/helpers/materialized-reports/tenant-sales-overview-bson.js +33 -0
- package/lib/helpers/materialized-reports/tenant-sales-overview-helpers.d.ts +1 -12
- package/lib/helpers/materialized-reports/tenant-sales-overview-helpers.js +4 -24
- package/lib/schemas/models/materialized_credit_bills.d.ts +29 -46
- package/lib/schemas/models/materialized_credit_bills.js +3 -2
- package/lib/schemas/models/materialized_tenant_cash_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_cash_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_delivery_entries.d.ts +11 -10
- package/lib/schemas/models/materialized_tenant_delivery_entries.js +3 -2
- package/lib/schemas/models/materialized_tenant_delivery_geo_cells.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_delivery_geo_scopes.d.ts +6 -6
- package/lib/schemas/models/materialized_tenant_delivery_reports.d.ts +11 -10
- package/lib/schemas/models/materialized_tenant_delivery_reports.js +3 -2
- package/lib/schemas/models/materialized_tenant_dialer_entries.d.ts +8 -7
- package/lib/schemas/models/materialized_tenant_dialer_entries.js +3 -2
- package/lib/schemas/models/materialized_tenant_dialer_reports.d.ts +11 -10
- package/lib/schemas/models/materialized_tenant_dialer_reports.js +3 -2
- package/lib/schemas/models/materialized_tenant_dinein_entries.d.ts +8 -7
- package/lib/schemas/models/materialized_tenant_dinein_entries.js +3 -2
- package/lib/schemas/models/materialized_tenant_dinein_reports.d.ts +11 -10
- package/lib/schemas/models/materialized_tenant_dinein_reports.js +3 -2
- package/lib/schemas/models/materialized_tenant_discount_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_discount_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_discount_sources.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_hourly_comparison_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_hourly_comparison_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_payments_comparison_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_payments_comparison_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_prep_time_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_prep_time_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_sales_comparison_entries.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_sales_comparison_reports.d.ts +9 -9
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +11 -35
- package/lib/schemas/models/materialized_tenant_sales_overview_reports.js +3 -2
- package/lib/tests/materialized-reports/tenant-sales-overview-close-day-helpers.test.js +2 -1
- package/lib/tests/materialized-reports/tenant-sales-overview-helpers.test.js +5 -4
- package/lib/tests/reporting-contract/no-live-transport.test.js +106 -0
- package/package.json +2 -1
- package/lib/helpers/order/payment-collection.d.ts +0 -25
- package/lib/helpers/order/payment-collection.js +0 -51
- package/lib/schemas/models/applied_order_discounts.d.ts +0 -80
- package/lib/schemas/models/applied_order_discounts.js +0 -106
- package/lib/schemas/types/applied_order_discounts.d.ts +0 -22
- package/lib/schemas/types/applied_order_discounts.js +0 -2
- package/lib/tests/materialized-reports/analytics-overview-helpers.test.d.ts +0 -1
- package/lib/tests/materialized-reports/analytics-performance-helpers.test.d.ts +0 -1
- package/lib/tests/payment-collection-timestamps.test.d.ts +0 -1
- package/lib/tests/payment-collection-timestamps.test.js +0 -71
- /package/lib/tests/{materialized-reports/analytics-growth-helpers.test.d.ts → reporting-contract/no-live-transport.test.d.ts} +0 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MATERIALIZED_TENANT_DELIVERY_REPORTS_INDEX_OPTIONS = exports.MATERIALIZED_TENANT_DELIVERY_REPORTS_COLLECTION_INDEXES = exports.MATERIALIZED_TENANT_DELIVERY_REPORTS_COLLECTION_NAME = exports.MaterializedTenantDeliveryReportSchema = exports.MATERIALIZED_TENANT_DELIVERY_REPORTS_SCHEMA_VERSION = void 0;
|
|
4
|
+
const MATERIALIZED_SCHEMA_VERSIONS_1 = require("../../constants/MATERIALIZED_SCHEMA_VERSIONS");
|
|
5
|
+
Object.defineProperty(exports, "MATERIALIZED_TENANT_DELIVERY_REPORTS_SCHEMA_VERSION", { enumerable: true, get: function () { return MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DELIVERY_REPORTS_SCHEMA_VERSION; } });
|
|
4
6
|
const mongoose_1 = require("mongoose");
|
|
5
7
|
const ENUMS_1 = require("../../constants/ENUMS");
|
|
6
8
|
const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
@@ -20,7 +22,6 @@ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
|
20
22
|
* rows as the refund source. Schema versioning is reset to 1 across all
|
|
21
23
|
* materialized collections for this pre-launch contract.
|
|
22
24
|
*/
|
|
23
|
-
exports.MATERIALIZED_TENANT_DELIVERY_REPORTS_SCHEMA_VERSION = 1;
|
|
24
25
|
exports.MaterializedTenantDeliveryReportSchema = new mongoose_1.Schema({
|
|
25
26
|
tenant_id: { type: String, required: true },
|
|
26
27
|
brand_id: { type: String, required: true },
|
|
@@ -45,7 +46,7 @@ exports.MaterializedTenantDeliveryReportSchema = new mongoose_1.Schema({
|
|
|
45
46
|
type: Number,
|
|
46
47
|
required: true,
|
|
47
48
|
immutable: true,
|
|
48
|
-
default:
|
|
49
|
+
default: MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DELIVERY_REPORTS_SCHEMA_VERSION,
|
|
49
50
|
},
|
|
50
51
|
source_watermark: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
51
52
|
computed_at: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION } from '../../constants/MATERIALIZED_SCHEMA_VERSIONS';
|
|
2
|
+
export { MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION };
|
|
1
3
|
import { Schema } from 'mongoose';
|
|
2
4
|
/**
|
|
3
5
|
* Mongoose schema for `materialized_tenant_dialer_entries`.
|
|
@@ -11,7 +13,6 @@ import { Schema } from 'mongoose';
|
|
|
11
13
|
* sections whose keys are the report's `<ACTION>:<POS_ID>:<STAFF_ID>` grammar.
|
|
12
14
|
*/
|
|
13
15
|
/** Document shape version. Bump with a migration for already-stored pages. */
|
|
14
|
-
export declare const MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION = 1;
|
|
15
16
|
export declare const MaterializedTenantDialerEntriesSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
16
17
|
timestamps: true;
|
|
17
18
|
versionKey: false;
|
|
@@ -26,11 +27,11 @@ export declare const MaterializedTenantDialerEntriesSchema: Schema<any, import("
|
|
|
26
27
|
tenant_id: string;
|
|
27
28
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
28
29
|
iteration: number;
|
|
29
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
30
|
-
scope_field: string;
|
|
31
30
|
schema_version: number;
|
|
32
31
|
source_watermark: NativeDate;
|
|
33
32
|
computed_at: NativeDate;
|
|
33
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
34
|
+
scope_field: string;
|
|
34
35
|
page: string;
|
|
35
36
|
dialer_entries?: any;
|
|
36
37
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -43,11 +44,11 @@ export declare const MaterializedTenantDialerEntriesSchema: Schema<any, import("
|
|
|
43
44
|
tenant_id: string;
|
|
44
45
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
45
46
|
iteration: number;
|
|
46
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
47
|
-
scope_field: string;
|
|
48
47
|
schema_version: number;
|
|
49
48
|
source_watermark: NativeDate;
|
|
50
49
|
computed_at: NativeDate;
|
|
50
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
51
|
+
scope_field: string;
|
|
51
52
|
page: string;
|
|
52
53
|
dialer_entries?: any;
|
|
53
54
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -60,11 +61,11 @@ export declare const MaterializedTenantDialerEntriesSchema: Schema<any, import("
|
|
|
60
61
|
tenant_id: string;
|
|
61
62
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
62
63
|
iteration: number;
|
|
63
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
64
|
-
scope_field: string;
|
|
65
64
|
schema_version: number;
|
|
66
65
|
source_watermark: NativeDate;
|
|
67
66
|
computed_at: NativeDate;
|
|
67
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
68
|
+
scope_field: string;
|
|
68
69
|
page: string;
|
|
69
70
|
dialer_entries?: any;
|
|
70
71
|
}> & {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MATERIALIZED_TENANT_DIALER_ENTRIES_INDEX_OPTIONS = exports.MATERIALIZED_TENANT_DIALER_ENTRIES_COLLECTION_INDEXES = exports.MATERIALIZED_TENANT_DIALER_ENTRIES_COLLECTION_NAME = exports.MaterializedTenantDialerEntriesSchema = exports.MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION = void 0;
|
|
4
|
+
const MATERIALIZED_SCHEMA_VERSIONS_1 = require("../../constants/MATERIALIZED_SCHEMA_VERSIONS");
|
|
5
|
+
Object.defineProperty(exports, "MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION", { enumerable: true, get: function () { return MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION; } });
|
|
4
6
|
const mongoose_1 = require("mongoose");
|
|
5
7
|
const ENUMS_1 = require("../../constants/ENUMS");
|
|
6
8
|
const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
@@ -16,7 +18,6 @@ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
|
16
18
|
* sections whose keys are the report's `<ACTION>:<POS_ID>:<STAFF_ID>` grammar.
|
|
17
19
|
*/
|
|
18
20
|
/** Document shape version. Bump with a migration for already-stored pages. */
|
|
19
|
-
exports.MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION = 1;
|
|
20
21
|
exports.MaterializedTenantDialerEntriesSchema = new mongoose_1.Schema({
|
|
21
22
|
tenant_id: { type: String, required: true },
|
|
22
23
|
brand_id: { type: String, required: true },
|
|
@@ -31,7 +32,7 @@ exports.MaterializedTenantDialerEntriesSchema = new mongoose_1.Schema({
|
|
|
31
32
|
type: Number,
|
|
32
33
|
required: true,
|
|
33
34
|
immutable: true,
|
|
34
|
-
default:
|
|
35
|
+
default: MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION,
|
|
35
36
|
},
|
|
36
37
|
source_watermark: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
37
38
|
computed_at: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION } from '../../constants/MATERIALIZED_SCHEMA_VERSIONS';
|
|
2
|
+
export { MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION };
|
|
1
3
|
import { Schema } from 'mongoose';
|
|
2
4
|
/**
|
|
3
5
|
* Mongoose schema for `materialized_tenant_dialer_reports`.
|
|
@@ -10,7 +12,6 @@ import { Schema } from 'mongoose';
|
|
|
10
12
|
* `materialized_tenant_dialer_entries` collection (one page per source day).
|
|
11
13
|
*/
|
|
12
14
|
/** Document shape version. Bump on a key-grammar/metric change + backfill. */
|
|
13
|
-
export declare const MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION = 1;
|
|
14
15
|
export declare const MaterializedTenantDialerReportSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
15
16
|
timestamps: true;
|
|
16
17
|
versionKey: false;
|
|
@@ -25,12 +26,12 @@ export declare const MaterializedTenantDialerReportSchema: Schema<any, import("m
|
|
|
25
26
|
tenant_id: string;
|
|
26
27
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
27
28
|
iteration: number;
|
|
28
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
29
|
-
scope_field: string;
|
|
30
|
-
sale_type_key_filters: string[];
|
|
31
29
|
schema_version: number;
|
|
32
30
|
source_watermark: NativeDate;
|
|
33
31
|
computed_at: NativeDate;
|
|
32
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
33
|
+
scope_field: string;
|
|
34
|
+
sale_type_key_filters: string[];
|
|
34
35
|
dialer_counters: any;
|
|
35
36
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
36
37
|
createdAt: NativeDate;
|
|
@@ -42,12 +43,12 @@ export declare const MaterializedTenantDialerReportSchema: Schema<any, import("m
|
|
|
42
43
|
tenant_id: string;
|
|
43
44
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
44
45
|
iteration: number;
|
|
45
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
46
|
-
scope_field: string;
|
|
47
|
-
sale_type_key_filters: string[];
|
|
48
46
|
schema_version: number;
|
|
49
47
|
source_watermark: NativeDate;
|
|
50
48
|
computed_at: NativeDate;
|
|
49
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
50
|
+
scope_field: string;
|
|
51
|
+
sale_type_key_filters: string[];
|
|
51
52
|
dialer_counters: any;
|
|
52
53
|
}>> & import("mongoose").FlatRecord<{
|
|
53
54
|
createdAt: NativeDate;
|
|
@@ -59,12 +60,12 @@ export declare const MaterializedTenantDialerReportSchema: Schema<any, import("m
|
|
|
59
60
|
tenant_id: string;
|
|
60
61
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
61
62
|
iteration: number;
|
|
62
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
63
|
-
scope_field: string;
|
|
64
|
-
sale_type_key_filters: string[];
|
|
65
63
|
schema_version: number;
|
|
66
64
|
source_watermark: NativeDate;
|
|
67
65
|
computed_at: NativeDate;
|
|
66
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
67
|
+
scope_field: string;
|
|
68
|
+
sale_type_key_filters: string[];
|
|
68
69
|
dialer_counters: any;
|
|
69
70
|
}> & {
|
|
70
71
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MATERIALIZED_TENANT_DIALER_REPORTS_INDEX_OPTIONS = exports.MATERIALIZED_TENANT_DIALER_REPORTS_COLLECTION_INDEXES = exports.MATERIALIZED_TENANT_DIALER_REPORTS_COLLECTION_NAME = exports.MaterializedTenantDialerReportSchema = exports.MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION = void 0;
|
|
4
|
+
const MATERIALIZED_SCHEMA_VERSIONS_1 = require("../../constants/MATERIALIZED_SCHEMA_VERSIONS");
|
|
5
|
+
Object.defineProperty(exports, "MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION", { enumerable: true, get: function () { return MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION; } });
|
|
4
6
|
const mongoose_1 = require("mongoose");
|
|
5
7
|
const ENUMS_1 = require("../../constants/ENUMS");
|
|
6
8
|
const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
@@ -15,7 +17,6 @@ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
|
15
17
|
* `materialized_tenant_dialer_entries` collection (one page per source day).
|
|
16
18
|
*/
|
|
17
19
|
/** Document shape version. Bump on a key-grammar/metric change + backfill. */
|
|
18
|
-
exports.MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION = 1;
|
|
19
20
|
exports.MaterializedTenantDialerReportSchema = new mongoose_1.Schema({
|
|
20
21
|
tenant_id: { type: String, required: true },
|
|
21
22
|
brand_id: { type: String, required: true },
|
|
@@ -38,7 +39,7 @@ exports.MaterializedTenantDialerReportSchema = new mongoose_1.Schema({
|
|
|
38
39
|
type: Number,
|
|
39
40
|
required: true,
|
|
40
41
|
immutable: true,
|
|
41
|
-
default:
|
|
42
|
+
default: MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DIALER_REPORTS_SCHEMA_VERSION,
|
|
42
43
|
},
|
|
43
44
|
source_watermark: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
44
45
|
computed_at: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION } from '../../constants/MATERIALIZED_SCHEMA_VERSIONS';
|
|
2
|
+
export { MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION };
|
|
1
3
|
import { Schema } from 'mongoose';
|
|
2
4
|
/**
|
|
3
5
|
* Mongoose schema for `materialized_tenant_dinein_entries`.
|
|
@@ -11,7 +13,6 @@ import { Schema } from 'mongoose';
|
|
|
11
13
|
* `day_index: null`.
|
|
12
14
|
*/
|
|
13
15
|
/** Document shape version. Bump on a row-shape change + backfill. */
|
|
14
|
-
export declare const MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION = 1;
|
|
15
16
|
export declare const MaterializedTenantDineinEntriesSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
16
17
|
timestamps: true;
|
|
17
18
|
versionKey: false;
|
|
@@ -26,11 +27,11 @@ export declare const MaterializedTenantDineinEntriesSchema: Schema<any, import("
|
|
|
26
27
|
tenant_id: string;
|
|
27
28
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
28
29
|
iteration: number;
|
|
29
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
30
|
-
scope_field: string;
|
|
31
30
|
schema_version: number;
|
|
32
31
|
source_watermark: NativeDate;
|
|
33
32
|
computed_at: NativeDate;
|
|
33
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
34
|
+
scope_field: string;
|
|
34
35
|
page: string;
|
|
35
36
|
dinein_entries: any;
|
|
36
37
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -43,11 +44,11 @@ export declare const MaterializedTenantDineinEntriesSchema: Schema<any, import("
|
|
|
43
44
|
tenant_id: string;
|
|
44
45
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
45
46
|
iteration: number;
|
|
46
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
47
|
-
scope_field: string;
|
|
48
47
|
schema_version: number;
|
|
49
48
|
source_watermark: NativeDate;
|
|
50
49
|
computed_at: NativeDate;
|
|
50
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
51
|
+
scope_field: string;
|
|
51
52
|
page: string;
|
|
52
53
|
dinein_entries: any;
|
|
53
54
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -60,11 +61,11 @@ export declare const MaterializedTenantDineinEntriesSchema: Schema<any, import("
|
|
|
60
61
|
tenant_id: string;
|
|
61
62
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
62
63
|
iteration: number;
|
|
63
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
64
|
-
scope_field: string;
|
|
65
64
|
schema_version: number;
|
|
66
65
|
source_watermark: NativeDate;
|
|
67
66
|
computed_at: NativeDate;
|
|
67
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
68
|
+
scope_field: string;
|
|
68
69
|
page: string;
|
|
69
70
|
dinein_entries: any;
|
|
70
71
|
}> & {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MATERIALIZED_TENANT_DINEIN_ENTRIES_INDEX_OPTIONS = exports.MATERIALIZED_TENANT_DINEIN_ENTRIES_COLLECTION_INDEXES = exports.MATERIALIZED_TENANT_DINEIN_ENTRIES_COLLECTION_NAME = exports.MaterializedTenantDineinEntriesSchema = exports.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION = void 0;
|
|
4
|
+
const MATERIALIZED_SCHEMA_VERSIONS_1 = require("../../constants/MATERIALIZED_SCHEMA_VERSIONS");
|
|
5
|
+
Object.defineProperty(exports, "MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION", { enumerable: true, get: function () { return MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION; } });
|
|
4
6
|
const mongoose_1 = require("mongoose");
|
|
5
7
|
const ENUMS_1 = require("../../constants/ENUMS");
|
|
6
8
|
const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
@@ -16,7 +18,6 @@ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
|
16
18
|
* `day_index: null`.
|
|
17
19
|
*/
|
|
18
20
|
/** Document shape version. Bump on a row-shape change + backfill. */
|
|
19
|
-
exports.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION = 1;
|
|
20
21
|
exports.MaterializedTenantDineinEntriesSchema = new mongoose_1.Schema({
|
|
21
22
|
tenant_id: { type: String, required: true },
|
|
22
23
|
brand_id: { type: String, required: true },
|
|
@@ -30,7 +31,7 @@ exports.MaterializedTenantDineinEntriesSchema = new mongoose_1.Schema({
|
|
|
30
31
|
type: Number,
|
|
31
32
|
required: true,
|
|
32
33
|
immutable: true,
|
|
33
|
-
default:
|
|
34
|
+
default: MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION,
|
|
34
35
|
},
|
|
35
36
|
source_watermark: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
36
37
|
computed_at: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION } from '../../constants/MATERIALIZED_SCHEMA_VERSIONS';
|
|
2
|
+
export { MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION };
|
|
1
3
|
import { Schema } from 'mongoose';
|
|
2
4
|
/**
|
|
3
5
|
* Mongoose schema for `materialized_tenant_dinein_reports`.
|
|
@@ -12,7 +14,6 @@ import { Schema } from 'mongoose';
|
|
|
12
14
|
* `materialized_tenant_dinein_entries` collection (one page per source day).
|
|
13
15
|
*/
|
|
14
16
|
/** Document shape version. Bump on a key-grammar/metric change + backfill. */
|
|
15
|
-
export declare const MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION = 1;
|
|
16
17
|
export declare const MaterializedTenantDineinReportSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
17
18
|
timestamps: true;
|
|
18
19
|
versionKey: false;
|
|
@@ -27,12 +28,12 @@ export declare const MaterializedTenantDineinReportSchema: Schema<any, import("m
|
|
|
27
28
|
tenant_id: string;
|
|
28
29
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
29
30
|
iteration: number;
|
|
30
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
31
|
-
scope_field: string;
|
|
32
|
-
sale_type_key_filters: string[];
|
|
33
31
|
schema_version: number;
|
|
34
32
|
source_watermark: NativeDate;
|
|
35
33
|
computed_at: NativeDate;
|
|
34
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
35
|
+
scope_field: string;
|
|
36
|
+
sale_type_key_filters: string[];
|
|
36
37
|
dinein_counters: any;
|
|
37
38
|
reservation_counters: any;
|
|
38
39
|
upcoming_reservations: any;
|
|
@@ -47,12 +48,12 @@ export declare const MaterializedTenantDineinReportSchema: Schema<any, import("m
|
|
|
47
48
|
tenant_id: string;
|
|
48
49
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
49
50
|
iteration: number;
|
|
50
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
51
|
-
scope_field: string;
|
|
52
|
-
sale_type_key_filters: string[];
|
|
53
51
|
schema_version: number;
|
|
54
52
|
source_watermark: NativeDate;
|
|
55
53
|
computed_at: NativeDate;
|
|
54
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
55
|
+
scope_field: string;
|
|
56
|
+
sale_type_key_filters: string[];
|
|
56
57
|
dinein_counters: any;
|
|
57
58
|
reservation_counters: any;
|
|
58
59
|
upcoming_reservations: any;
|
|
@@ -67,12 +68,12 @@ export declare const MaterializedTenantDineinReportSchema: Schema<any, import("m
|
|
|
67
68
|
tenant_id: string;
|
|
68
69
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
69
70
|
iteration: number;
|
|
70
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
71
|
-
scope_field: string;
|
|
72
|
-
sale_type_key_filters: string[];
|
|
73
71
|
schema_version: number;
|
|
74
72
|
source_watermark: NativeDate;
|
|
75
73
|
computed_at: NativeDate;
|
|
74
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
75
|
+
scope_field: string;
|
|
76
|
+
sale_type_key_filters: string[];
|
|
76
77
|
dinein_counters: any;
|
|
77
78
|
reservation_counters: any;
|
|
78
79
|
upcoming_reservations: any;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MATERIALIZED_TENANT_DINEIN_REPORTS_INDEX_OPTIONS = exports.MATERIALIZED_TENANT_DINEIN_REPORTS_COLLECTION_INDEXES = exports.MATERIALIZED_TENANT_DINEIN_REPORTS_COLLECTION_NAME = exports.MaterializedTenantDineinReportSchema = exports.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION = void 0;
|
|
4
|
+
const MATERIALIZED_SCHEMA_VERSIONS_1 = require("../../constants/MATERIALIZED_SCHEMA_VERSIONS");
|
|
5
|
+
Object.defineProperty(exports, "MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION", { enumerable: true, get: function () { return MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION; } });
|
|
4
6
|
const mongoose_1 = require("mongoose");
|
|
5
7
|
const ENUMS_1 = require("../../constants/ENUMS");
|
|
6
8
|
const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
@@ -17,7 +19,6 @@ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
|
|
|
17
19
|
* `materialized_tenant_dinein_entries` collection (one page per source day).
|
|
18
20
|
*/
|
|
19
21
|
/** Document shape version. Bump on a key-grammar/metric change + backfill. */
|
|
20
|
-
exports.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION = 1;
|
|
21
22
|
exports.MaterializedTenantDineinReportSchema = new mongoose_1.Schema({
|
|
22
23
|
tenant_id: { type: String, required: true },
|
|
23
24
|
brand_id: { type: String, required: true },
|
|
@@ -45,7 +46,7 @@ exports.MaterializedTenantDineinReportSchema = new mongoose_1.Schema({
|
|
|
45
46
|
type: Number,
|
|
46
47
|
required: true,
|
|
47
48
|
immutable: true,
|
|
48
|
-
default:
|
|
49
|
+
default: MATERIALIZED_SCHEMA_VERSIONS_1.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION,
|
|
49
50
|
},
|
|
50
51
|
source_watermark: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
51
52
|
computed_at: { type: mongoose_1.Schema.Types.Date, required: true },
|
|
@@ -137,12 +137,12 @@ export declare const MaterializedTenantDiscountEntriesSchema: Schema<any, import
|
|
|
137
137
|
tenant_id: string;
|
|
138
138
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
139
139
|
iteration: number;
|
|
140
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
141
|
-
scope_field: string;
|
|
142
|
-
sale_type_key_filters: string[];
|
|
143
140
|
schema_version: number;
|
|
144
141
|
source_watermark: NativeDate;
|
|
145
142
|
computed_at: NativeDate;
|
|
143
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
144
|
+
scope_field: string;
|
|
145
|
+
sale_type_key_filters: string[];
|
|
146
146
|
page: string;
|
|
147
147
|
discount_entries: any;
|
|
148
148
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -156,12 +156,12 @@ export declare const MaterializedTenantDiscountEntriesSchema: Schema<any, import
|
|
|
156
156
|
tenant_id: string;
|
|
157
157
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
158
158
|
iteration: number;
|
|
159
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
160
|
-
scope_field: string;
|
|
161
|
-
sale_type_key_filters: string[];
|
|
162
159
|
schema_version: number;
|
|
163
160
|
source_watermark: NativeDate;
|
|
164
161
|
computed_at: NativeDate;
|
|
162
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
163
|
+
scope_field: string;
|
|
164
|
+
sale_type_key_filters: string[];
|
|
165
165
|
page: string;
|
|
166
166
|
discount_entries: any;
|
|
167
167
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -175,12 +175,12 @@ export declare const MaterializedTenantDiscountEntriesSchema: Schema<any, import
|
|
|
175
175
|
tenant_id: string;
|
|
176
176
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
177
177
|
iteration: number;
|
|
178
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
179
|
-
scope_field: string;
|
|
180
|
-
sale_type_key_filters: string[];
|
|
181
178
|
schema_version: number;
|
|
182
179
|
source_watermark: NativeDate;
|
|
183
180
|
computed_at: NativeDate;
|
|
181
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
182
|
+
scope_field: string;
|
|
183
|
+
sale_type_key_filters: string[];
|
|
184
184
|
page: string;
|
|
185
185
|
discount_entries: any;
|
|
186
186
|
}> & Required<{
|
|
@@ -36,12 +36,12 @@ export declare const MaterializedTenantDiscountReportSchema: Schema<any, import(
|
|
|
36
36
|
tenant_id: string;
|
|
37
37
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
38
38
|
iteration: number;
|
|
39
|
-
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
40
|
-
scope_field: string;
|
|
41
|
-
sale_type_key_filters: string[];
|
|
42
39
|
schema_version: number;
|
|
43
40
|
source_watermark: NativeDate;
|
|
44
41
|
computed_at: NativeDate;
|
|
42
|
+
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
43
|
+
scope_field: string;
|
|
44
|
+
sale_type_key_filters: string[];
|
|
45
45
|
top_sources: import("mongoose").Types.DocumentArray<{
|
|
46
46
|
count: number;
|
|
47
47
|
amount: number;
|
|
@@ -75,12 +75,12 @@ export declare const MaterializedTenantDiscountReportSchema: Schema<any, import(
|
|
|
75
75
|
tenant_id: string;
|
|
76
76
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
77
77
|
iteration: number;
|
|
78
|
-
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
79
|
-
scope_field: string;
|
|
80
|
-
sale_type_key_filters: string[];
|
|
81
78
|
schema_version: number;
|
|
82
79
|
source_watermark: NativeDate;
|
|
83
80
|
computed_at: NativeDate;
|
|
81
|
+
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
82
|
+
scope_field: string;
|
|
83
|
+
sale_type_key_filters: string[];
|
|
84
84
|
top_sources: import("mongoose").Types.DocumentArray<{
|
|
85
85
|
count: number;
|
|
86
86
|
amount: number;
|
|
@@ -114,12 +114,12 @@ export declare const MaterializedTenantDiscountReportSchema: Schema<any, import(
|
|
|
114
114
|
tenant_id: string;
|
|
115
115
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
116
116
|
iteration: number;
|
|
117
|
-
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
118
|
-
scope_field: string;
|
|
119
|
-
sale_type_key_filters: string[];
|
|
120
117
|
schema_version: number;
|
|
121
118
|
source_watermark: NativeDate;
|
|
122
119
|
computed_at: NativeDate;
|
|
120
|
+
scope_context: MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
121
|
+
scope_field: string;
|
|
122
|
+
sale_type_key_filters: string[];
|
|
123
123
|
top_sources: import("mongoose").Types.DocumentArray<{
|
|
124
124
|
count: number;
|
|
125
125
|
amount: number;
|
|
@@ -77,12 +77,12 @@ export declare const MaterializedTenantDiscountSourceSchema: Schema<any, import(
|
|
|
77
77
|
slot: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SLOT_ENUM | null;
|
|
78
78
|
source_id: string;
|
|
79
79
|
source_name: string;
|
|
80
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
81
|
-
scope_field: string;
|
|
82
|
-
sale_type_key_filters: string[];
|
|
83
80
|
schema_version: number;
|
|
84
81
|
source_watermark: NativeDate;
|
|
85
82
|
computed_at: NativeDate;
|
|
83
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
84
|
+
scope_field: string;
|
|
85
|
+
sale_type_key_filters: string[];
|
|
86
86
|
row_count: number;
|
|
87
87
|
kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_ENTRY_KIND_ENUM;
|
|
88
88
|
sub_kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SUB_KIND_ENUM;
|
|
@@ -146,12 +146,12 @@ export declare const MaterializedTenantDiscountSourceSchema: Schema<any, import(
|
|
|
146
146
|
slot: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SLOT_ENUM | null;
|
|
147
147
|
source_id: string;
|
|
148
148
|
source_name: string;
|
|
149
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
150
|
-
scope_field: string;
|
|
151
|
-
sale_type_key_filters: string[];
|
|
152
149
|
schema_version: number;
|
|
153
150
|
source_watermark: NativeDate;
|
|
154
151
|
computed_at: NativeDate;
|
|
152
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
153
|
+
scope_field: string;
|
|
154
|
+
sale_type_key_filters: string[];
|
|
155
155
|
row_count: number;
|
|
156
156
|
kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_ENTRY_KIND_ENUM;
|
|
157
157
|
sub_kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SUB_KIND_ENUM;
|
|
@@ -215,12 +215,12 @@ export declare const MaterializedTenantDiscountSourceSchema: Schema<any, import(
|
|
|
215
215
|
slot: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SLOT_ENUM | null;
|
|
216
216
|
source_id: string;
|
|
217
217
|
source_name: string;
|
|
218
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
219
|
-
scope_field: string;
|
|
220
|
-
sale_type_key_filters: string[];
|
|
221
218
|
schema_version: number;
|
|
222
219
|
source_watermark: NativeDate;
|
|
223
220
|
computed_at: NativeDate;
|
|
221
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
222
|
+
scope_field: string;
|
|
223
|
+
sale_type_key_filters: string[];
|
|
224
224
|
row_count: number;
|
|
225
225
|
kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_ENTRY_KIND_ENUM;
|
|
226
226
|
sub_kind: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_DISCOUNT_SUB_KIND_ENUM;
|
|
@@ -24,12 +24,12 @@ export declare const MaterializedTenantHourlyComparisonEntriesSchema: Schema<any
|
|
|
24
24
|
tenant_id: string;
|
|
25
25
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
26
26
|
iteration: number;
|
|
27
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
28
|
-
scope_field: string;
|
|
29
|
-
sale_type_key_filters: string[];
|
|
30
27
|
schema_version: number;
|
|
31
28
|
source_watermark: NativeDate;
|
|
32
29
|
computed_at: NativeDate;
|
|
30
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
31
|
+
scope_field: string;
|
|
32
|
+
sale_type_key_filters: string[];
|
|
33
33
|
sales_entries: any;
|
|
34
34
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
35
35
|
createdAt: NativeDate;
|
|
@@ -42,12 +42,12 @@ export declare const MaterializedTenantHourlyComparisonEntriesSchema: Schema<any
|
|
|
42
42
|
tenant_id: string;
|
|
43
43
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
44
44
|
iteration: number;
|
|
45
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
46
|
-
scope_field: string;
|
|
47
|
-
sale_type_key_filters: string[];
|
|
48
45
|
schema_version: number;
|
|
49
46
|
source_watermark: NativeDate;
|
|
50
47
|
computed_at: NativeDate;
|
|
48
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
49
|
+
scope_field: string;
|
|
50
|
+
sale_type_key_filters: string[];
|
|
51
51
|
sales_entries: any;
|
|
52
52
|
}>> & import("mongoose").FlatRecord<{
|
|
53
53
|
createdAt: NativeDate;
|
|
@@ -60,12 +60,12 @@ export declare const MaterializedTenantHourlyComparisonEntriesSchema: Schema<any
|
|
|
60
60
|
tenant_id: string;
|
|
61
61
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
62
62
|
iteration: number;
|
|
63
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
64
|
-
scope_field: string;
|
|
65
|
-
sale_type_key_filters: string[];
|
|
66
63
|
schema_version: number;
|
|
67
64
|
source_watermark: NativeDate;
|
|
68
65
|
computed_at: NativeDate;
|
|
66
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
67
|
+
scope_field: string;
|
|
68
|
+
sale_type_key_filters: string[];
|
|
69
69
|
sales_entries: any;
|
|
70
70
|
}> & Required<{
|
|
71
71
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -27,12 +27,12 @@ export declare const MaterializedTenantHourlyComparisonReportSchema: Schema<any,
|
|
|
27
27
|
tenant_id: string;
|
|
28
28
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
29
29
|
iteration: number;
|
|
30
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
31
|
-
scope_field: string;
|
|
32
|
-
sale_type_key_filters: string[];
|
|
33
30
|
schema_version: number;
|
|
34
31
|
source_watermark: NativeDate;
|
|
35
32
|
computed_at: NativeDate;
|
|
33
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
34
|
+
scope_field: string;
|
|
35
|
+
sale_type_key_filters: string[];
|
|
36
36
|
sales_counters: any;
|
|
37
37
|
sales_counter_rows: any;
|
|
38
38
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -46,12 +46,12 @@ export declare const MaterializedTenantHourlyComparisonReportSchema: Schema<any,
|
|
|
46
46
|
tenant_id: string;
|
|
47
47
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
48
48
|
iteration: number;
|
|
49
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
50
|
-
scope_field: string;
|
|
51
|
-
sale_type_key_filters: string[];
|
|
52
49
|
schema_version: number;
|
|
53
50
|
source_watermark: NativeDate;
|
|
54
51
|
computed_at: NativeDate;
|
|
52
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
53
|
+
scope_field: string;
|
|
54
|
+
sale_type_key_filters: string[];
|
|
55
55
|
sales_counters: any;
|
|
56
56
|
sales_counter_rows: any;
|
|
57
57
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -65,12 +65,12 @@ export declare const MaterializedTenantHourlyComparisonReportSchema: Schema<any,
|
|
|
65
65
|
tenant_id: string;
|
|
66
66
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
67
67
|
iteration: number;
|
|
68
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
69
|
-
scope_field: string;
|
|
70
|
-
sale_type_key_filters: string[];
|
|
71
68
|
schema_version: number;
|
|
72
69
|
source_watermark: NativeDate;
|
|
73
70
|
computed_at: NativeDate;
|
|
71
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
72
|
+
scope_field: string;
|
|
73
|
+
sale_type_key_filters: string[];
|
|
74
74
|
sales_counters: any;
|
|
75
75
|
sales_counter_rows: any;
|
|
76
76
|
}> & Required<{
|
|
@@ -20,12 +20,12 @@ export declare const MaterializedTenantPaymentsComparisonEntriesSchema: Schema<a
|
|
|
20
20
|
tenant_id: string;
|
|
21
21
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
22
22
|
iteration: number;
|
|
23
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
24
|
-
scope_field: string;
|
|
25
|
-
sale_type_key_filters: string[];
|
|
26
23
|
schema_version: number;
|
|
27
24
|
source_watermark: NativeDate;
|
|
28
25
|
computed_at: NativeDate;
|
|
26
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
27
|
+
scope_field: string;
|
|
28
|
+
sale_type_key_filters: string[];
|
|
29
29
|
payment_entries: any;
|
|
30
30
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
31
31
|
createdAt: NativeDate;
|
|
@@ -38,12 +38,12 @@ export declare const MaterializedTenantPaymentsComparisonEntriesSchema: Schema<a
|
|
|
38
38
|
tenant_id: string;
|
|
39
39
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
40
40
|
iteration: number;
|
|
41
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
42
|
-
scope_field: string;
|
|
43
|
-
sale_type_key_filters: string[];
|
|
44
41
|
schema_version: number;
|
|
45
42
|
source_watermark: NativeDate;
|
|
46
43
|
computed_at: NativeDate;
|
|
44
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
45
|
+
scope_field: string;
|
|
46
|
+
sale_type_key_filters: string[];
|
|
47
47
|
payment_entries: any;
|
|
48
48
|
}>> & import("mongoose").FlatRecord<{
|
|
49
49
|
createdAt: NativeDate;
|
|
@@ -56,12 +56,12 @@ export declare const MaterializedTenantPaymentsComparisonEntriesSchema: Schema<a
|
|
|
56
56
|
tenant_id: string;
|
|
57
57
|
day_index: import("../../constants/ENUMS").DAY_INDEX_ENUM | null;
|
|
58
58
|
iteration: number;
|
|
59
|
-
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
60
|
-
scope_field: string;
|
|
61
|
-
sale_type_key_filters: string[];
|
|
62
59
|
schema_version: number;
|
|
63
60
|
source_watermark: NativeDate;
|
|
64
61
|
computed_at: NativeDate;
|
|
62
|
+
scope_context: import("../../constants/MATERIALIZED_REPORTS").MATERIALIZED_REPORT_SCOPE_ENUM;
|
|
63
|
+
scope_field: string;
|
|
64
|
+
sale_type_key_filters: string[];
|
|
65
65
|
payment_entries: any;
|
|
66
66
|
}> & Required<{
|
|
67
67
|
_id: import("mongoose").Types.ObjectId;
|