@managesome/eposmatic-toolkit 0.4.16 → 0.4.19

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 (37) hide show
  1. package/esm/constants/ENUMS.js +1 -0
  2. package/esm/constants/enums/accounting.js +80 -0
  3. package/esm/helpers/materialized-reports/materialized-discount-close-day-helpers.js +6 -0
  4. package/esm/helpers/materialized-reports/materialized-reports-selection-helpers.js +4 -6
  5. package/esm/helpers/reporting-contract/report-contract.js +1 -0
  6. package/esm/schemas/models/index.js +2 -0
  7. package/esm/schemas/models/tenant_chart_of_accounts.js +80 -0
  8. package/esm/schemas/models/tenant_journal_entries.js +147 -0
  9. package/esm/schemas/types/index.js +2 -0
  10. package/esm/schemas/types/tenant_chart_of_accounts.js +1 -0
  11. package/esm/schemas/types/tenant_journal_entries.js +1 -0
  12. package/lib/constants/ENUMS.d.ts +1 -0
  13. package/lib/constants/ENUMS.js +1 -0
  14. package/lib/constants/enums/accounting.d.ts +62 -0
  15. package/lib/constants/enums/accounting.js +83 -0
  16. package/lib/helpers/materialized-reports/materialized-discount-close-day-helpers.d.ts +7 -0
  17. package/lib/helpers/materialized-reports/materialized-discount-close-day-helpers.js +6 -0
  18. package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.js +4 -6
  19. package/lib/helpers/reporting-contract/report-contract.d.ts +2 -1
  20. package/lib/helpers/reporting-contract/report-contract.js +1 -0
  21. package/lib/schemas/models/index.d.ts +2 -0
  22. package/lib/schemas/models/index.js +2 -0
  23. package/lib/schemas/models/tenant_chart_of_accounts.d.ts +66 -0
  24. package/lib/schemas/models/tenant_chart_of_accounts.js +83 -0
  25. package/lib/schemas/models/tenant_hr_documents.d.ts +3 -3
  26. package/lib/schemas/models/tenant_journal_entries.d.ts +132 -0
  27. package/lib/schemas/models/tenant_journal_entries.js +150 -0
  28. package/lib/schemas/types/index.d.ts +2 -0
  29. package/lib/schemas/types/index.js +2 -0
  30. package/lib/schemas/types/tenant_chart_of_accounts.d.ts +23 -0
  31. package/lib/schemas/types/tenant_chart_of_accounts.js +2 -0
  32. package/lib/schemas/types/tenant_journal_entries.d.ts +34 -0
  33. package/lib/schemas/types/tenant_journal_entries.js +2 -0
  34. package/lib/tests/materialized-reports/materialized-discount-close-day.test.js +16 -0
  35. package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.js +26 -18
  36. package/lib/tests/reporting-contract.test.js +7 -0
  37. package/package.json +1 -1
@@ -35,6 +35,13 @@ describe('report contract capabilities', () => {
35
35
  expect((0, reporting_contract_1.getReportCapabilities)('NOT_A_REPORT')).toBeNull();
36
36
  });
37
37
  it('builds the shared live and historical paths', () => {
38
+ // The Overview page resolves BOTH modes through this builder — the admin
39
+ // slice never hardcodes `/reports/overview`.
40
+ expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.LIVE)).toBe('/reports/overview/live');
41
+ expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL)).toBe('/reports/overview/historical');
42
+ expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL, {
43
+ details: true,
44
+ })).toBeNull();
38
45
  expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.SALES_COMPARISON, reporting_contract_1.REPORT_MODE_ENUM.LIVE)).toBe('/reports/sales-comparison/live');
39
46
  expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.SALES_COMPARISON, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL, {
40
47
  details: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.4.16",
3
+ "version": "0.4.19",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",