@managesome/eposmatic-toolkit 0.4.60 → 0.4.62

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.
Files changed (96) hide show
  1. package/esm/constants/MATERIALIZED_REPORTS.js +254 -4
  2. package/esm/constants/TENANT_ENUMS.js +15 -0
  3. package/esm/constants/WORKER_ENDPOINTS.js +12 -0
  4. package/esm/helpers/materialized-reports/index.js +8 -0
  5. package/esm/helpers/materialized-reports/materialized-day-readiness.js +2 -2
  6. package/esm/helpers/materialized-reports/materialized-dinein-accumulator-helpers.js +557 -0
  7. package/esm/helpers/materialized-reports/materialized-dinein-classification-helpers.js +447 -0
  8. package/esm/helpers/materialized-reports/materialized-dinein-close-day-helpers.js +372 -0
  9. package/esm/helpers/materialized-reports/materialized-dinein-compile-helpers.js +500 -0
  10. package/esm/helpers/materialized-reports/materialized-dinein-entry-pages.js +218 -0
  11. package/esm/helpers/materialized-reports/materialized-dinein-key-helpers.js +87 -0
  12. package/esm/helpers/materialized-reports/materialized-index-bootstrap.js +7 -1
  13. package/esm/helpers/materialized-reports/materialized-report-drilldown-rows.js +8 -0
  14. package/esm/helpers/materialized-reports/materialized-report-runs.js +143 -0
  15. package/esm/helpers/materialized-reports/report-platform/definition.js +93 -1
  16. package/esm/helpers/materialized-reports/tenant-dinein-formatter.js +240 -0
  17. package/esm/helpers/reporting-contract/report-contract.js +3 -0
  18. package/esm/schemas/models/index.js +3 -0
  19. package/esm/schemas/models/materialized_tenant_dinein_entries.js +57 -0
  20. package/esm/schemas/models/materialized_tenant_dinein_reports.js +73 -0
  21. package/esm/schemas/models/materialized_tenant_report_runs.js +105 -0
  22. package/esm/schemas/models/tenant_active_jobs.js +19 -1
  23. package/esm/schemas/types/index.js +3 -0
  24. package/esm/schemas/types/materialized_report_drilldown_rows.js +1 -0
  25. package/esm/schemas/types/materialized_tenant_dinein_entries.js +1 -0
  26. package/esm/schemas/types/materialized_tenant_dinein_reports.js +6 -0
  27. package/esm/schemas/types/materialized_tenant_report_runs.js +1 -0
  28. package/lib/constants/MATERIALIZED_REPORTS.d.ts +229 -4
  29. package/lib/constants/MATERIALIZED_REPORTS.js +255 -5
  30. package/lib/constants/TENANT_ENUMS.d.ts +14 -0
  31. package/lib/constants/TENANT_ENUMS.js +16 -1
  32. package/lib/constants/WORKER_ENDPOINTS.d.ts +12 -0
  33. package/lib/constants/WORKER_ENDPOINTS.js +12 -0
  34. package/lib/helpers/materialized-reports/index.d.ts +8 -0
  35. package/lib/helpers/materialized-reports/index.js +8 -0
  36. package/lib/helpers/materialized-reports/materialized-day-readiness.d.ts +1 -1
  37. package/lib/helpers/materialized-reports/materialized-day-readiness.js +2 -2
  38. package/lib/helpers/materialized-reports/materialized-dinein-accumulator-helpers.d.ts +67 -0
  39. package/lib/helpers/materialized-reports/materialized-dinein-accumulator-helpers.js +582 -0
  40. package/lib/helpers/materialized-reports/materialized-dinein-classification-helpers.d.ts +245 -0
  41. package/lib/helpers/materialized-reports/materialized-dinein-classification-helpers.js +469 -0
  42. package/lib/helpers/materialized-reports/materialized-dinein-close-day-helpers.d.ts +110 -0
  43. package/lib/helpers/materialized-reports/materialized-dinein-close-day-helpers.js +384 -0
  44. package/lib/helpers/materialized-reports/materialized-dinein-compile-helpers.d.ts +73 -0
  45. package/lib/helpers/materialized-reports/materialized-dinein-compile-helpers.js +504 -0
  46. package/lib/helpers/materialized-reports/materialized-dinein-entry-pages.d.ts +69 -0
  47. package/lib/helpers/materialized-reports/materialized-dinein-entry-pages.js +231 -0
  48. package/lib/helpers/materialized-reports/materialized-dinein-key-helpers.d.ts +44 -0
  49. package/lib/helpers/materialized-reports/materialized-dinein-key-helpers.js +96 -0
  50. package/lib/helpers/materialized-reports/materialized-index-bootstrap.js +6 -0
  51. package/lib/helpers/materialized-reports/materialized-report-drilldown-rows.js +8 -0
  52. package/lib/helpers/materialized-reports/materialized-report-runs.d.ts +105 -0
  53. package/lib/helpers/materialized-reports/materialized-report-runs.js +156 -0
  54. package/lib/helpers/materialized-reports/report-platform/definition.js +92 -0
  55. package/lib/helpers/materialized-reports/tenant-dinein-formatter.d.ts +225 -0
  56. package/lib/helpers/materialized-reports/tenant-dinein-formatter.js +243 -0
  57. package/lib/helpers/reporting-contract/report-contract.d.ts +1 -0
  58. package/lib/helpers/reporting-contract/report-contract.js +3 -0
  59. package/lib/helpers/types/workers.d.ts +65 -0
  60. package/lib/schemas/models/index.d.ts +3 -0
  61. package/lib/schemas/models/index.js +3 -0
  62. package/lib/schemas/models/materialized_tenant_day_readiness.d.ts +3 -3
  63. package/lib/schemas/models/materialized_tenant_dinein_entries.d.ts +100 -0
  64. package/lib/schemas/models/materialized_tenant_dinein_entries.js +60 -0
  65. package/lib/schemas/models/materialized_tenant_dinein_reports.d.ts +111 -0
  66. package/lib/schemas/models/materialized_tenant_dinein_reports.js +76 -0
  67. package/lib/schemas/models/materialized_tenant_report_runs.d.ts +97 -0
  68. package/lib/schemas/models/materialized_tenant_report_runs.js +108 -0
  69. package/lib/schemas/models/tenant_active_jobs.d.ts +12 -3
  70. package/lib/schemas/models/tenant_active_jobs.js +18 -0
  71. package/lib/schemas/types/index.d.ts +3 -0
  72. package/lib/schemas/types/index.js +3 -0
  73. package/lib/schemas/types/materialized_report_drilldown_rows.d.ts +1 -1
  74. package/lib/schemas/types/materialized_report_drilldown_rows.js +1 -0
  75. package/lib/schemas/types/materialized_tenant_dinein_entries.d.ts +127 -0
  76. package/lib/schemas/types/materialized_tenant_dinein_entries.js +2 -0
  77. package/lib/schemas/types/materialized_tenant_dinein_reports.d.ts +326 -0
  78. package/lib/schemas/types/materialized_tenant_dinein_reports.js +9 -0
  79. package/lib/schemas/types/materialized_tenant_report_runs.d.ts +55 -0
  80. package/lib/schemas/types/materialized_tenant_report_runs.js +2 -0
  81. package/lib/schemas/types/tenant_active_jobs.d.ts +15 -1
  82. package/lib/tests/materialized-reports/dinein-fixtures.d.ts +29 -0
  83. package/lib/tests/materialized-reports/dinein-fixtures.js +130 -0
  84. package/lib/tests/materialized-reports/materialized-day-readiness.test.js +3 -2
  85. package/lib/tests/materialized-reports/materialized-dinein-compile.test.d.ts +1 -0
  86. package/lib/tests/materialized-reports/materialized-dinein-compile.test.js +807 -0
  87. package/lib/tests/materialized-reports/materialized-dinein-plan.test.d.ts +1 -0
  88. package/lib/tests/materialized-reports/materialized-dinein-plan.test.js +419 -0
  89. package/lib/tests/materialized-reports/materialized-report-runs.test.d.ts +1 -0
  90. package/lib/tests/materialized-reports/materialized-report-runs.test.js +116 -0
  91. package/lib/tests/materialized-reports/materialized-tenant-dinein-schema.test.d.ts +1 -0
  92. package/lib/tests/materialized-reports/materialized-tenant-dinein-schema.test.js +185 -0
  93. package/lib/tests/materialized-reports/report-platform/registry-conformance.test.js +15 -2
  94. package/lib/tests/materialized-reports/tenant-dinein-formatter.test.d.ts +1 -0
  95. package/lib/tests/materialized-reports/tenant-dinein-formatter.test.js +458 -0
  96. package/package.json +1 -1
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const MATERIALIZED_REPORTS_1 = require("../../constants/MATERIALIZED_REPORTS");
4
+ const materialized_report_drilldown_rows_1 = require("../../schemas/models/materialized_report_drilldown_rows");
5
+ const materialized_tenant_dinein_entries_1 = require("../../schemas/models/materialized_tenant_dinein_entries");
6
+ const materialized_tenant_dinein_reports_1 = require("../../schemas/models/materialized_tenant_dinein_reports");
7
+ const materialized_day_readiness_1 = require("../../helpers/materialized-reports/materialized-day-readiness");
8
+ const materialized_index_bootstrap_1 = require("../../helpers/materialized-reports/materialized-index-bootstrap");
9
+ const materialized_report_drilldown_rows_2 = require("../../helpers/materialized-reports/materialized-report-drilldown-rows");
10
+ const registry_1 = require("../../helpers/materialized-reports/report-platform/registry");
11
+ const validate_report_registry_1 = require("../../helpers/materialized-reports/report-platform/validate-report-registry");
12
+ const report_contract_1 = require("../../helpers/reporting-contract/report-contract");
13
+ /**
14
+ * The Dinein CONTRACT: report key, route segment, capabilities, collections,
15
+ * indexes, scopes, budgets, readiness key and the flat drill-down projection.
16
+ */
17
+ describe('dinein contract', () => {
18
+ it('registers the report key, route segment and capabilities', () => {
19
+ expect(report_contract_1.REPORT_KEY_ENUM.DINEIN).toBe('DINEIN');
20
+ expect(report_contract_1.REPORT_ROUTE_SEGMENTS[report_contract_1.REPORT_KEY_ENUM.DINEIN]).toBe('dinein');
21
+ expect(report_contract_1.REPORT_CAPABILITIES[report_contract_1.REPORT_KEY_ENUM.DINEIN]).toEqual({
22
+ live: true,
23
+ historical: true,
24
+ details: true,
25
+ });
26
+ });
27
+ it('publishes a production definition with the frozen adapters and scopes', () => {
28
+ const definition = (0, registry_1.getReportDefinition)(report_contract_1.REPORT_KEY_ENUM.DINEIN);
29
+ expect(definition).not.toBeNull();
30
+ expect(definition.segment).toBe('dinein');
31
+ expect(definition.status).toBe('PRODUCTION');
32
+ expect(definition.reportType).toBe(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_TYPE_ENUM.TENANT_DINEIN_REPORTS);
33
+ expect(definition.report.name).toBe('materialized_tenant_dinein_reports');
34
+ expect(definition.report.schemaVersion).toBe(materialized_tenant_dinein_reports_1.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION);
35
+ expect(definition.entries.name).toBe('materialized_tenant_dinein_entries');
36
+ expect(definition.entries.schemaVersion).toBe(materialized_tenant_dinein_entries_1.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION);
37
+ expect(definition.reportScopes).toEqual(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_REPORT_SCOPES);
38
+ expect(definition.entryScopes).toEqual(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_ENTRY_SCOPES);
39
+ expect(definition.maxEntryScope).toBe(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_SCOPE_ENUM.LOCAL_MONTH);
40
+ expect(definition.adapters).toEqual({
41
+ writer: 'materializeDineinReport',
42
+ live: 'getLiveTenantDineinReports',
43
+ historical: 'getMaterializedTenantDineinReports',
44
+ details: 'getMaterializedDineinDetailsPage',
45
+ });
46
+ expect(definition.filters).toEqual(expect.arrayContaining([
47
+ expect.objectContaining({ id: 'ORDER_STATUS', appliesTo: 'BOTH' }),
48
+ expect.objectContaining({ id: 'PLATFORM', appliesTo: 'BOTH' }),
49
+ expect.objectContaining({ id: 'origins', appliesTo: 'DETAILS' }),
50
+ expect.objectContaining({ id: 'table_ids', appliesTo: 'DETAILS' }),
51
+ expect.objectContaining({ id: 'floor_ids', appliesTo: 'DETAILS' }),
52
+ expect.objectContaining({ id: 'split_types', appliesTo: 'DETAILS' }),
53
+ expect.objectContaining({ id: 'offline', appliesTo: 'DETAILS' }),
54
+ ]));
55
+ expect((0, validate_report_registry_1.validateReportRegistry)().errors).toEqual([]);
56
+ });
57
+ it('declares the two collections and their unique page identities', () => {
58
+ expect(materialized_tenant_dinein_reports_1.MATERIALIZED_TENANT_DINEIN_REPORTS_COLLECTION_NAME).toBe('materialized_tenant_dinein_reports');
59
+ expect(materialized_tenant_dinein_entries_1.MATERIALIZED_TENANT_DINEIN_ENTRIES_COLLECTION_NAME).toBe('materialized_tenant_dinein_entries');
60
+ expect(materialized_tenant_dinein_reports_1.MATERIALIZED_TENANT_DINEIN_REPORTS_INDEX_OPTIONS).toEqual([
61
+ {
62
+ key: { tenant_id: 1, scope_context: 1, scope_field: 1, day_index: 1 },
63
+ name: 'tenant_id__scope_context__scope_field__day_index',
64
+ unique: true,
65
+ },
66
+ ]);
67
+ expect(materialized_tenant_dinein_entries_1.MATERIALIZED_TENANT_DINEIN_ENTRIES_INDEX_OPTIONS).toEqual([
68
+ {
69
+ key: { tenant_id: 1, scope_context: 1, scope_field: 1, page: 1 },
70
+ name: 'tenant_id__scope_context__scope_field__page',
71
+ unique: true,
72
+ },
73
+ ]);
74
+ // The single DAY page key: the day scope needs no per-day partition.
75
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_ENTRY_PAGE_ALL).toBe('all');
76
+ });
77
+ it('declares both collections in the (manual) index bootstrap', () => {
78
+ expect(materialized_index_bootstrap_1.MATERIALIZED_REPORT_INDEX_COLLECTIONS).toContain('materialized_tenant_dinein_reports');
79
+ expect(materialized_index_bootstrap_1.MATERIALIZED_REPORT_INDEX_COLLECTIONS).toContain('materialized_tenant_dinein_entries');
80
+ });
81
+ it('declares the 15 MiB budgets and the seven report / four entry scopes', () => {
82
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_REPORT_MAX_BSON_BYTES).toBe(15 * 1024 * 1024);
83
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_ENTRY_MAX_BSON_BYTES).toBe(15 * 1024 * 1024);
84
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_REPORT_SCOPES).toEqual([
85
+ 'localDate',
86
+ 'localWeek',
87
+ 'localWeekOfYear',
88
+ 'localMonth',
89
+ 'localQuarter',
90
+ 'localSemester',
91
+ 'localYear',
92
+ ]);
93
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_ENTRY_SCOPES).toEqual(['localDate', 'localWeek', 'localWeekOfYear', 'localMonth']);
94
+ // no hour scope: the hour dimension is an in-document map
95
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_REPORT_SCOPES).not.toContain(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_SCOPE_ENUM.LOCAL_HOUR);
96
+ });
97
+ it('declares the 24 hour keys and the frozen split-parent reason', () => {
98
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_HOUR_KEYS).toHaveLength(24);
99
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_HOUR_KEYS[0]).toBe('0');
100
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_HOUR_KEYS[23]).toBe('23');
101
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_SPLIT_PARENT_DELETE_REASON).toBe('Auto Deleted on Split');
102
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_DINEIN_UNKNOWN_TOKEN).toBe('UNKNOWN');
103
+ });
104
+ it('adds DINEIN to the readiness contract (COMMITTED / NEEDS_RECONCILIATION only)', () => {
105
+ expect(MATERIALIZED_REPORTS_1.MATERIALIZED_READINESS_REPORT_KEYS).toContain('DINEIN');
106
+ expect((0, materialized_day_readiness_1.isMaterializedReadinessReportKey)('DINEIN')).toBe(true);
107
+ expect(Object.values(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_READINESS_STATUS_ENUM).sort()).toEqual([
108
+ 'COMMITTED',
109
+ 'NEEDS_RECONCILIATION',
110
+ ]);
111
+ const document = (0, materialized_day_readiness_1.buildMaterializedDayReadinessDocument)({
112
+ tenantId: 'tenant-1',
113
+ localDate: '2026-10-01',
114
+ reportKey: 'DINEIN',
115
+ status: MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_READINESS_STATUS_ENUM.COMMITTED,
116
+ runId: 'run-1',
117
+ committedAt: new Date('2026-10-01T23:00:00.000Z'),
118
+ });
119
+ expect(document.report_key).toBe('DINEIN');
120
+ expect(document.schema_version).toBe(1);
121
+ });
122
+ it('projects a dinein entry page into flat drill-down rows with the {time, order_id} identity', () => {
123
+ const entry = {
124
+ tenant_id: 'tenant-1',
125
+ brand_id: 'brand-1',
126
+ scope_context: MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_SCOPE_ENUM.LOCAL_DATE,
127
+ scope_field: '2026-10-01',
128
+ day_index: 'THU',
129
+ computed_at: new Date('2026-10-01T23:00:00.000Z'),
130
+ dinein_entries: {
131
+ 'COMPLETED:POS_DINE-IN': {
132
+ rows: [
133
+ {
134
+ order_id: 'order-1',
135
+ order_number: 2418,
136
+ localDate: '2026-10-01',
137
+ time: '2026-10-01T13:00:00.000Z',
138
+ table_id: 'table-t04',
139
+ table_name: 'T-04',
140
+ floor_id: 'floor-main',
141
+ covers: 4,
142
+ status: 'COMPLETED',
143
+ platform: 'POS_DINE-IN',
144
+ origin: 'POS_DIRECT',
145
+ split_type: null,
146
+ split_role: 'NONE',
147
+ offline: false,
148
+ rating: 5,
149
+ sales: 21400,
150
+ service_charge: 1240,
151
+ items: 3,
152
+ edits: 0,
153
+ },
154
+ ],
155
+ },
156
+ },
157
+ };
158
+ const projected = (0, materialized_report_drilldown_rows_2.buildMaterializedDrilldownRows)(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_TYPE_ENUM.TENANT_DINEIN_ENTRIES, entry, '2026-10-01');
159
+ expect(projected.skipped).toBe(0);
160
+ expect(projected.rows).toHaveLength(1);
161
+ expect(projected.rows[0]).toMatchObject({
162
+ tenant_id: 'tenant-1',
163
+ report_type: MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_TYPE_ENUM.TENANT_DINEIN_ENTRIES,
164
+ scope_context: MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_SCOPE_ENUM.LOCAL_DATE,
165
+ scope_field: '2026-10-01',
166
+ key: 'COMPLETED:POS_DINE-IN',
167
+ order_id: 'order-1',
168
+ cursor_id: 'order-1',
169
+ source_local_date: '2026-10-01',
170
+ schema_version: materialized_report_drilldown_rows_1.MATERIALIZED_REPORT_DRILLDOWN_ROWS_SCHEMA_VERSION,
171
+ });
172
+ expect(projected.rows[0].time).toEqual(new Date('2026-10-01T13:00:00.000Z'));
173
+ expect(projected.rows[0].data.rating).toBe(5);
174
+ });
175
+ it('skips an entry row without a usable time instead of inventing one', () => {
176
+ const projected = (0, materialized_report_drilldown_rows_2.buildMaterializedDrilldownRows)(MATERIALIZED_REPORTS_1.MATERIALIZED_REPORT_TYPE_ENUM.TENANT_DINEIN_ENTRIES, {
177
+ tenant_id: 'tenant-1',
178
+ scope_context: 'localDate',
179
+ scope_field: '2026-10-01',
180
+ dinein_entries: { 'COMPLETED:POS_DINE-IN': { rows: [{ order_id: 'order-1', time: null }] } },
181
+ }, '2026-10-01');
182
+ expect(projected.rows).toHaveLength(0);
183
+ expect(projected.skipped).toBe(1);
184
+ });
185
+ });
@@ -51,6 +51,8 @@ const deliveryEntryModel = __importStar(require("../../../schemas/models/materia
51
51
  const deliveryGeoModel = __importStar(require("../../../schemas/models/materialized_tenant_delivery_geo_cells"));
52
52
  const dialerReportModel = __importStar(require("../../../schemas/models/materialized_tenant_dialer_reports"));
53
53
  const dialerEntryModel = __importStar(require("../../../schemas/models/materialized_tenant_dialer_entries"));
54
+ const dineinReportModel = __importStar(require("../../../schemas/models/materialized_tenant_dinein_reports"));
55
+ const dineinEntryModel = __importStar(require("../../../schemas/models/materialized_tenant_dinein_entries"));
54
56
  const flatModel = __importStar(require("../../../schemas/models/materialized_report_drilldown_rows"));
55
57
  const definition_1 = require("../../../helpers/materialized-reports/report-platform/definition");
56
58
  const registry_1 = require("../../../helpers/materialized-reports/report-platform/registry");
@@ -122,6 +124,16 @@ const MODEL_BY_COLLECTION = {
122
124
  schemaVersion: dialerEntryModel.MATERIALIZED_TENANT_DIALER_ENTRIES_SCHEMA_VERSION,
123
125
  indexOptions: dialerEntryModel.MATERIALIZED_TENANT_DIALER_ENTRIES_INDEX_OPTIONS,
124
126
  },
127
+ materialized_tenant_dinein_reports: {
128
+ collectionName: dineinReportModel.MATERIALIZED_TENANT_DINEIN_REPORTS_COLLECTION_NAME,
129
+ schemaVersion: dineinReportModel.MATERIALIZED_TENANT_DINEIN_REPORTS_SCHEMA_VERSION,
130
+ indexOptions: dineinReportModel.MATERIALIZED_TENANT_DINEIN_REPORTS_INDEX_OPTIONS,
131
+ },
132
+ materialized_tenant_dinein_entries: {
133
+ collectionName: dineinEntryModel.MATERIALIZED_TENANT_DINEIN_ENTRIES_COLLECTION_NAME,
134
+ schemaVersion: dineinEntryModel.MATERIALIZED_TENANT_DINEIN_ENTRIES_SCHEMA_VERSION,
135
+ indexOptions: dineinEntryModel.MATERIALIZED_TENANT_DINEIN_ENTRIES_INDEX_OPTIONS,
136
+ },
125
137
  materialized_report_drilldown_rows: {
126
138
  collectionName: flatModel.MATERIALIZED_REPORT_DRILLDOWN_ROWS_COLLECTION_NAME,
127
139
  schemaVersion: flatModel.MATERIALIZED_REPORT_DRILLDOWN_ROWS_SCHEMA_VERSION,
@@ -146,9 +158,10 @@ describe('report registry conformance', () => {
146
158
  report_contract_1.REPORT_KEY_ENUM.PREP_TIME,
147
159
  report_contract_1.REPORT_KEY_ENUM.DELIVERY,
148
160
  report_contract_1.REPORT_KEY_ENUM.DIALER,
161
+ report_contract_1.REPORT_KEY_ENUM.DINEIN,
149
162
  ]);
150
- expect((0, registry_1.getProductionReportDefinitions)()).toHaveLength(5);
151
- expect(new Set(definition_1.PRODUCTION_REPORT_DEFINITIONS.map((definition) => definition.key)).size).toBe(5);
163
+ expect((0, registry_1.getProductionReportDefinitions)()).toHaveLength(6);
164
+ expect(new Set(definition_1.PRODUCTION_REPORT_DEFINITIONS.map((definition) => definition.key)).size).toBe(6);
152
165
  expect(definition_1.PRODUCTION_REPORT_DEFINITIONS.every((definition) => definition.status === 'PRODUCTION')).toBe(true);
153
166
  });
154
167
  it('covers every REPORT_KEY with a definition or an explicit exemption', () => {