@carbonbox/domain 0.28.2 → 0.29.1

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 (126) hide show
  1. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractStatusError.js +24 -7
  2. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentTermsError.js +24 -7
  3. package/build/carbonbox/reporting/report-instances/domain/value-objects/ReportInstanceId.js +52 -0
  4. package/build/carbonbox/reporting/report-templates/domain/enums/ReportTemplateStatus.js +26 -0
  5. package/build/carbonbox/reporting/report-templates/domain/types/ReportTemplatePrimitives.js +2 -0
  6. package/build/carbonbox/reporting/report-templates/domain/types/ReportTemplateProps.js +2 -0
  7. package/build/carbonbox/reporting/report-templates/domain/value-objects/ReportTemplateId.js +52 -0
  8. package/build/carbonbox/reporting/shared/domain/enums/BlockNature.js +30 -0
  9. package/build/carbonbox/reporting/shared/domain/enums/DataBindingSource.js +91 -0
  10. package/build/carbonbox/reporting/shared/domain/enums/ReportStatus.js +42 -0
  11. package/build/carbonbox/reporting/shared/domain/enums/ReportType.js +30 -0
  12. package/build/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.js +18 -0
  13. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.js +18 -0
  14. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.js +18 -0
  15. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.js +18 -0
  16. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.js +18 -0
  17. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.js +18 -0
  18. package/build/carbonbox/reporting/shared/domain/types/ReportBlockPrimitives.js +2 -0
  19. package/build/carbonbox/reporting/shared/domain/types/ReportSectionPrimitives.js +2 -0
  20. package/build/carbonbox/reporting/shared/domain/value-objects/ReportSection.js +67 -0
  21. package/build/carbonbox/reporting/text-banks/domain/value-objects/TextBankId.js +52 -0
  22. package/build/carbonbox/shared/domain/enums/ErrorCode.js +81 -0
  23. package/build/carbonbox/shared/domain/enums/SemanticUuidPrefix.js +6 -0
  24. package/build/carbonbox/shared/domain/exceptions/AccountLockedError.js +58 -0
  25. package/build/carbonbox/shared/domain/exceptions/CodedRootError.js +63 -0
  26. package/build/carbonbox/shared/domain/exceptions/ConfigurationNotFoundError.js +62 -0
  27. package/build/carbonbox/shared/domain/exceptions/ContractNotFoundError.js +58 -0
  28. package/build/carbonbox/shared/domain/exceptions/EmailNotVerifiedError.js +61 -0
  29. package/build/carbonbox/shared/domain/exceptions/InvalidBusinessStatusError.js +56 -0
  30. package/build/carbonbox/shared/domain/exceptions/InvalidCredentialsError.js +35 -0
  31. package/build/carbonbox/shared/domain/exceptions/InvalidCurrencyError.js +51 -6
  32. package/build/carbonbox/shared/domain/exceptions/InvalidDateFormatError.js +26 -6
  33. package/build/carbonbox/shared/domain/exceptions/InvalidEmailPolicyError.js +15 -7
  34. package/build/carbonbox/shared/domain/exceptions/MissingCredentialsError.js +53 -0
  35. package/build/carbonbox/shared/domain/exceptions/NullValueError.js +16 -7
  36. package/build/carbonbox/shared/domain/exceptions/OrderExceedsBudgetError.js +98 -0
  37. package/build/carbonbox/shared/domain/exceptions/ServiceCatalogNotFoundError.js +64 -0
  38. package/build/carbonbox/shared/domain/exceptions/StakeholderNotFoundError.js +49 -0
  39. package/build/carbonbox/shared/domain/exceptions/TokenExpiredError.js +48 -0
  40. package/build/carbonbox/shared/domain/interfaces/ICodedError.js +2 -0
  41. package/build/main/index.js +37 -7
  42. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/repository/ICorporateCarbonFootprintConfigurationRepository.d.ts +1 -1
  43. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/repository/ICorporateCarbonFootprintConfigurationRepository.d.ts.map +1 -1
  44. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractStatusError.d.ts +9 -3
  45. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractStatusError.d.ts.map +1 -1
  46. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentTermsError.d.ts +9 -3
  47. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentTermsError.d.ts.map +1 -1
  48. package/build/types/carbonbox/reporting/report-instances/domain/value-objects/ReportInstanceId.d.ts +14 -0
  49. package/build/types/carbonbox/reporting/report-instances/domain/value-objects/ReportInstanceId.d.ts.map +1 -0
  50. package/build/types/carbonbox/reporting/report-templates/domain/enums/ReportTemplateStatus.d.ts +23 -0
  51. package/build/types/carbonbox/reporting/report-templates/domain/enums/ReportTemplateStatus.d.ts.map +1 -0
  52. package/build/types/carbonbox/reporting/report-templates/domain/types/ReportTemplatePrimitives.d.ts +21 -0
  53. package/build/types/carbonbox/reporting/report-templates/domain/types/ReportTemplatePrimitives.d.ts.map +1 -0
  54. package/build/types/carbonbox/reporting/report-templates/domain/types/ReportTemplateProps.d.ts +17 -0
  55. package/build/types/carbonbox/reporting/report-templates/domain/types/ReportTemplateProps.d.ts.map +1 -0
  56. package/build/types/carbonbox/reporting/report-templates/domain/value-objects/ReportTemplateId.d.ts +14 -0
  57. package/build/types/carbonbox/reporting/report-templates/domain/value-objects/ReportTemplateId.d.ts.map +1 -0
  58. package/build/types/carbonbox/reporting/shared/domain/enums/BlockNature.d.ts +27 -0
  59. package/build/types/carbonbox/reporting/shared/domain/enums/BlockNature.d.ts.map +1 -0
  60. package/build/types/carbonbox/reporting/shared/domain/enums/DataBindingSource.d.ts +72 -0
  61. package/build/types/carbonbox/reporting/shared/domain/enums/DataBindingSource.d.ts.map +1 -0
  62. package/build/types/carbonbox/reporting/shared/domain/enums/ReportStatus.d.ts +39 -0
  63. package/build/types/carbonbox/reporting/shared/domain/enums/ReportStatus.d.ts.map +1 -0
  64. package/build/types/carbonbox/reporting/shared/domain/enums/ReportType.d.ts +27 -0
  65. package/build/types/carbonbox/reporting/shared/domain/enums/ReportType.d.ts.map +1 -0
  66. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts +7 -0
  67. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts.map +1 -0
  68. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts +7 -0
  69. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts.map +1 -0
  70. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts +7 -0
  71. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts.map +1 -0
  72. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts +7 -0
  73. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts.map +1 -0
  74. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts +7 -0
  75. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts.map +1 -0
  76. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts +7 -0
  77. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts.map +1 -0
  78. package/build/types/carbonbox/reporting/shared/domain/types/ReportBlockPrimitives.d.ts +16 -0
  79. package/build/types/carbonbox/reporting/shared/domain/types/ReportBlockPrimitives.d.ts.map +1 -0
  80. package/build/types/carbonbox/reporting/shared/domain/types/ReportSectionPrimitives.d.ts +10 -0
  81. package/build/types/carbonbox/reporting/shared/domain/types/ReportSectionPrimitives.d.ts.map +1 -0
  82. package/build/types/carbonbox/reporting/shared/domain/value-objects/ReportSection.d.ts +18 -0
  83. package/build/types/carbonbox/reporting/shared/domain/value-objects/ReportSection.d.ts.map +1 -0
  84. package/build/types/carbonbox/reporting/text-banks/domain/value-objects/TextBankId.d.ts +14 -0
  85. package/build/types/carbonbox/reporting/text-banks/domain/value-objects/TextBankId.d.ts.map +1 -0
  86. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +71 -0
  87. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -0
  88. package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts +6 -1
  89. package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts.map +1 -1
  90. package/build/types/carbonbox/shared/domain/exceptions/AccountLockedError.d.ts +25 -0
  91. package/build/types/carbonbox/shared/domain/exceptions/AccountLockedError.d.ts.map +1 -0
  92. package/build/types/carbonbox/shared/domain/exceptions/CodedRootError.d.ts +44 -0
  93. package/build/types/carbonbox/shared/domain/exceptions/CodedRootError.d.ts.map +1 -0
  94. package/build/types/carbonbox/shared/domain/exceptions/ConfigurationNotFoundError.d.ts +29 -0
  95. package/build/types/carbonbox/shared/domain/exceptions/ConfigurationNotFoundError.d.ts.map +1 -0
  96. package/build/types/carbonbox/shared/domain/exceptions/ContractNotFoundError.d.ts +25 -0
  97. package/build/types/carbonbox/shared/domain/exceptions/ContractNotFoundError.d.ts.map +1 -0
  98. package/build/types/carbonbox/shared/domain/exceptions/EmailNotVerifiedError.d.ts +27 -0
  99. package/build/types/carbonbox/shared/domain/exceptions/EmailNotVerifiedError.d.ts.map +1 -0
  100. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessStatusError.d.ts +25 -0
  101. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessStatusError.d.ts.map +1 -0
  102. package/build/types/carbonbox/shared/domain/exceptions/InvalidCredentialsError.d.ts +13 -0
  103. package/build/types/carbonbox/shared/domain/exceptions/InvalidCredentialsError.d.ts.map +1 -0
  104. package/build/types/carbonbox/shared/domain/exceptions/InvalidCurrencyError.d.ts +23 -3
  105. package/build/types/carbonbox/shared/domain/exceptions/InvalidCurrencyError.d.ts.map +1 -1
  106. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateFormatError.d.ts +3 -3
  107. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateFormatError.d.ts.map +1 -1
  108. package/build/types/carbonbox/shared/domain/exceptions/InvalidEmailPolicyError.d.ts +2 -3
  109. package/build/types/carbonbox/shared/domain/exceptions/InvalidEmailPolicyError.d.ts.map +1 -1
  110. package/build/types/carbonbox/shared/domain/exceptions/MissingCredentialsError.d.ts +25 -0
  111. package/build/types/carbonbox/shared/domain/exceptions/MissingCredentialsError.d.ts.map +1 -0
  112. package/build/types/carbonbox/shared/domain/exceptions/NullValueError.d.ts +2 -3
  113. package/build/types/carbonbox/shared/domain/exceptions/NullValueError.d.ts.map +1 -1
  114. package/build/types/carbonbox/shared/domain/exceptions/OrderExceedsBudgetError.d.ts +42 -0
  115. package/build/types/carbonbox/shared/domain/exceptions/OrderExceedsBudgetError.d.ts.map +1 -0
  116. package/build/types/carbonbox/shared/domain/exceptions/ServiceCatalogNotFoundError.d.ts +29 -0
  117. package/build/types/carbonbox/shared/domain/exceptions/ServiceCatalogNotFoundError.d.ts.map +1 -0
  118. package/build/types/carbonbox/shared/domain/exceptions/StakeholderNotFoundError.d.ts +21 -0
  119. package/build/types/carbonbox/shared/domain/exceptions/StakeholderNotFoundError.d.ts.map +1 -0
  120. package/build/types/carbonbox/shared/domain/exceptions/TokenExpiredError.d.ts +21 -0
  121. package/build/types/carbonbox/shared/domain/exceptions/TokenExpiredError.d.ts.map +1 -0
  122. package/build/types/carbonbox/shared/domain/interfaces/ICodedError.d.ts +38 -0
  123. package/build/types/carbonbox/shared/domain/interfaces/ICodedError.d.ts.map +1 -0
  124. package/build/types/main/index.d.ts +14 -0
  125. package/build/types/main/index.d.ts.map +1 -1
  126. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Report template status enumeration
3
+ * Defines the lifecycle states of a report template
4
+ */
5
+ export declare enum ReportTemplateStatus {
6
+ /**
7
+ * Draft - Template is being edited
8
+ */
9
+ DRAFT = "DRAFT",
10
+ /**
11
+ * Active - Template is available for use
12
+ */
13
+ ACTIVE = "ACTIVE",
14
+ /**
15
+ * Deprecated - Template is no longer recommended but still accessible
16
+ */
17
+ DEPRECATED = "DEPRECATED",
18
+ /**
19
+ * Archived - Template is soft deleted
20
+ */
21
+ ARCHIVED = "ARCHIVED"
22
+ }
23
+ //# sourceMappingURL=ReportTemplateStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportTemplateStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/report-templates/domain/enums/ReportTemplateStatus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,oBAAoB;IAC9B;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,UAAU,eAAe;IAEzB;;OAEG;IACH,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,21 @@
1
+ import { ReportSectionPrimitives } from '../../../shared/domain/types/ReportSectionPrimitives';
2
+ import { ReportType } from '../../../shared/domain/enums/ReportType';
3
+ import { CarbonFootprint } from '../../../../carbon-footprint-configurations/shared/domain/enums/CarbonFootprint';
4
+ import { ReportingStandard } from '../../../../shared/domain/enums/ReportingStandard';
5
+ import { ReportTemplateStatus } from '../enums/ReportTemplateStatus';
6
+ export interface ReportTemplatePrimitives {
7
+ readonly id: string;
8
+ readonly version: number;
9
+ readonly previousVersionId: string | null;
10
+ readonly type: ReportType;
11
+ readonly footprintType: CarbonFootprint;
12
+ readonly reportingStandard: ReportingStandard;
13
+ readonly requiresClientApproval: boolean;
14
+ readonly status: ReportTemplateStatus;
15
+ readonly sections: ReportSectionPrimitives[];
16
+ readonly textBankId: string;
17
+ readonly createdBy: string;
18
+ readonly createdAt: string;
19
+ readonly updatedAt: string;
20
+ }
21
+ //# sourceMappingURL=ReportTemplatePrimitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportTemplatePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/report-templates/domain/types/ReportTemplatePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,iFAAiF,CAAC;AAClH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,aAAa,EAAE,eAAe,CAAC;IACxC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,17 @@
1
+ import { ReportSectionPrimitives } from '../../../shared/domain/types/ReportSectionPrimitives';
2
+ export interface ReportTemplateProps {
3
+ readonly id: string;
4
+ readonly version: number;
5
+ readonly previousVersionId: string | null;
6
+ readonly type: string;
7
+ readonly footprintType: string;
8
+ readonly reportingStandard: string;
9
+ readonly requiresClientApproval: boolean;
10
+ readonly status: string;
11
+ readonly sections: ReportSectionPrimitives[];
12
+ readonly textBankId: string;
13
+ readonly createdBy: string;
14
+ readonly createdAt: string;
15
+ readonly updatedAt: string;
16
+ }
17
+ //# sourceMappingURL=ReportTemplateProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportTemplateProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/report-templates/domain/types/ReportTemplateProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAE/F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,14 @@
1
+ import { AggregateId } from '../../../../shared/domain/value-objects/AggregateId';
2
+ export declare class ReportTemplateId extends AggregateId {
3
+ private static readonly PROPERTY_NAME;
4
+ private static readonly VALID_PREFIXES;
5
+ private constructor();
6
+ static create(value: string): ReportTemplateId;
7
+ /**
8
+ * Validates that the UUID has a valid ReportTemplate prefix
9
+ */
10
+ private static guardAgainstInvalidPrefix;
11
+ static fromPrimitives(primitive: string): ReportTemplateId;
12
+ toPrimitives(): string;
13
+ }
14
+ //# sourceMappingURL=ReportTemplateId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportTemplateId.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/report-templates/domain/value-objects/ReportTemplateId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAIlF,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAQ;IAE7C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAEpC;IAEF,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAW9D;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;WA+BjB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB;IAM1D,YAAY,IAAI,MAAM;CAGvC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Block nature enumeration
3
+ * Defines how each block in a report template should be filled
4
+ */
5
+ export declare enum BlockNature {
6
+ /**
7
+ * Fixed content - Static text defined at template level
8
+ * Can be parametrized by country or standard
9
+ */
10
+ FIXED = "FIXED",
11
+ /**
12
+ * Curated bank - Content selected from pre-approved options
13
+ * Host provides options, client selects or adapts
14
+ */
15
+ CURATED_BANK = "CURATED_BANK",
16
+ /**
17
+ * Client input - Direct input from the client
18
+ * Collected via questionnaire with validation limits
19
+ */
20
+ CLIENT_INPUT = "CLIENT_INPUT",
21
+ /**
22
+ * Data bound - Automatic binding to snapshot data
23
+ * References specific data points (aggregations, factors, etc.)
24
+ */
25
+ DATA_BOUND = "DATA_BOUND"
26
+ }
27
+ //# sourceMappingURL=BlockNature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockNature.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/enums/BlockNature.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,WAAW;IACrB;;;OAGG;IACH,KAAK,UAAU;IAEf;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;;OAGG;IACH,YAAY,iBAAiB;IAE7B;;;OAGG;IACH,UAAU,eAAe;CAC1B"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Data binding source enumeration
3
+ * Defines all possible data sources for DATA_BOUND blocks
4
+ * This is a closed catalog to ensure determinism
5
+ */
6
+ export declare enum DataBindingSource {
7
+ CLIENT_PROFILE_NAME = "client.profile.name",
8
+ CLIENT_PROFILE_LEGAL_NAME = "client.profile.legalBusinessName",
9
+ CLIENT_PROFILE_TAX_ID = "client.profile.taxId",
10
+ CLIENT_PROFILE_COUNTRY = "client.profile.country",
11
+ CLIENT_PROFILE_ADDRESS = "client.profile.address",
12
+ CLIENT_PROFILE_CITY = "client.profile.city",
13
+ CLIENT_PROFILE_POSTAL_CODE = "client.profile.postalCode",
14
+ CLIENT_PROFILE_WEBSITE = "client.profile.website",
15
+ CLIENT_PROFILE_INDUSTRY = "client.profile.industry",
16
+ PERIOD_START_DATE = "period.startDate",
17
+ PERIOD_END_DATE = "period.endDate",
18
+ PERIOD_DURATION_MONTHS = "period.durationMonths",
19
+ PERIOD_YEAR = "period.year",
20
+ AGGREGATION_TOTAL = "aggregation.total",
21
+ AGGREGATION_TOTAL_TCO2E = "aggregation.totalTCO2e",
22
+ AGGREGATION_SCOPE_1 = "aggregation.scope1",
23
+ AGGREGATION_SCOPE_2 = "aggregation.scope2",
24
+ AGGREGATION_SCOPE_3 = "aggregation.scope3",
25
+ AGGREGATION_BY_SCOPE = "aggregation.byScope",
26
+ AGGREGATION_BY_CATEGORY = "aggregation.byCategory",
27
+ AGGREGATION_CATEGORY_ENERGY = "aggregation.category.energy",
28
+ AGGREGATION_CATEGORY_TRANSPORT = "aggregation.category.transport",
29
+ AGGREGATION_CATEGORY_WASTE = "aggregation.category.waste",
30
+ AGGREGATION_BY_GAS = "aggregation.byGas",
31
+ AGGREGATION_GAS_CO2 = "aggregation.gas.co2",
32
+ AGGREGATION_GAS_CH4 = "aggregation.gas.ch4",
33
+ AGGREGATION_GAS_N2O = "aggregation.gas.n2o",
34
+ AGGREGATION_BY_SEGMENT = "aggregation.bySegment",
35
+ AGGREGATION_BIOGENIC = "aggregation.biogenic",
36
+ AGGREGATION_BIOGENIC_CO2 = "aggregation.biogenicCO2",
37
+ EMISSION_FACTOR_VALUE = "emissionFactor.value",
38
+ EMISSION_FACTOR_UNIT = "emissionFactor.unit",
39
+ EMISSION_FACTOR_INFORMATION_SOURCE = "emissionFactor.informationSource",
40
+ EMISSION_FACTOR_CODE = "emissionFactor.code",
41
+ EMISSION_FACTOR_NAME = "emissionFactor.name",
42
+ EMISSION_FACTOR_IPCC_CODE = "emissionFactor.ipccCode",
43
+ EMISSION_FACTOR_IPCC_SUBCATEGORY = "emissionFactor.ipccSubcategory",
44
+ EMISSION_FACTOR_METHODOLOGICAL_TIER = "emissionFactor.methodologicalTier",
45
+ GWP_PROTOCOL_VERSION = "gwp.protocolVersion",
46
+ GWP_POTENTIAL = "gwp.potential",
47
+ GWP_INFORMATION_SOURCE = "gwp.informationSource",
48
+ GWP_AR_VERSION = "gwp.arVersion",
49
+ FORMULA_EXPRESSION = "formula.expression",
50
+ FORMULA_INFORMATION_SOURCE = "formula.informationSource",
51
+ FORMULA_METHODOLOGICAL_TIER = "formula.methodologicalTier",
52
+ FORMULA_EMISSION_SOURCE = "formula.emissionSource",
53
+ FORMULA_APPLICABLE_GASES = "formula.applicableGases",
54
+ CHART_BY_SCOPE = "chart.byScope",
55
+ CHART_BY_SUBCATEGORY = "chart.bySubcategory",
56
+ CHART_BY_SEGMENT = "chart.bySegment",
57
+ CHART_BY_GAS = "chart.byGas",
58
+ CHART_TREND_ANALYSIS = "chart.trendAnalysis",
59
+ FACILITIES_COUNT = "facilities.count",
60
+ FACILITIES_LIST = "facilities.list",
61
+ FACILITIES_BY_COUNTRY = "facilities.byCountry",
62
+ ORGANIZATIONAL_APPROACH = "organizational.approach",
63
+ ORGANIZATIONAL_EQUITY_SHARE = "organizational.equityShare",
64
+ ORGANIZATIONAL_CONTROL_TYPE = "organizational.controlType",
65
+ REPORTING_STANDARD = "standard.name",
66
+ STANDARD_VERSION = "standard.version",
67
+ STANDARD_REQUIREMENTS = "standard.requirements",
68
+ REPORT_GENERATION_DATE = "metadata.generationDate",
69
+ REPORT_VERSION = "metadata.version",
70
+ REPORT_TEMPLATE_VERSION = "metadata.templateVersion"
71
+ }
72
+ //# sourceMappingURL=DataBindingSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataBindingSource.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/enums/DataBindingSource.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,iBAAiB;IAE3B,mBAAmB,wBAAwB;IAC3C,yBAAyB,qCAAqC;IAC9D,qBAAqB,yBAAyB;IAC9C,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAC3C,0BAA0B,8BAA8B;IACxD,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IAGnD,iBAAiB,qBAAqB;IACtC,eAAe,mBAAmB;IAClC,sBAAsB,0BAA0B;IAChD,WAAW,gBAAgB;IAG3B,iBAAiB,sBAAsB;IACvC,uBAAuB,2BAA2B;IAGlD,mBAAmB,uBAAuB;IAC1C,mBAAmB,uBAAuB;IAC1C,mBAAmB,uBAAuB;IAC1C,oBAAoB,wBAAwB;IAG5C,uBAAuB,2BAA2B;IAClD,2BAA2B,gCAAgC;IAC3D,8BAA8B,mCAAmC;IACjE,0BAA0B,+BAA+B;IAGzD,kBAAkB,sBAAsB;IACxC,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAG3C,sBAAsB,0BAA0B;IAGhD,oBAAoB,yBAAyB;IAC7C,wBAAwB,4BAA4B;IAGpD,qBAAqB,yBAAyB;IAC9C,oBAAoB,wBAAwB;IAC5C,kCAAkC,qCAAqC;IACvE,oBAAoB,wBAAwB;IAC5C,oBAAoB,wBAAwB;IAC5C,yBAAyB,4BAA4B;IACrD,gCAAgC,mCAAmC;IACnE,mCAAmC,sCAAsC;IAGzE,oBAAoB,wBAAwB;IAC5C,aAAa,kBAAkB;IAC/B,sBAAsB,0BAA0B;IAChD,cAAc,kBAAkB;IAGhC,kBAAkB,uBAAuB;IACzC,0BAA0B,8BAA8B;IACxD,2BAA2B,+BAA+B;IAC1D,uBAAuB,2BAA2B;IAClD,wBAAwB,4BAA4B;IAGpD,cAAc,kBAAkB;IAChC,oBAAoB,wBAAwB;IAC5C,gBAAgB,oBAAoB;IACpC,YAAY,gBAAgB;IAC5B,oBAAoB,wBAAwB;IAG5C,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,qBAAqB,yBAAyB;IAG9C,uBAAuB,4BAA4B;IACnD,2BAA2B,+BAA+B;IAC1D,2BAA2B,+BAA+B;IAG1D,kBAAkB,kBAAkB;IACpC,gBAAgB,qBAAqB;IACrC,qBAAqB,0BAA0B;IAG/C,sBAAsB,4BAA4B;IAClD,cAAc,qBAAqB;IACnC,uBAAuB,6BAA6B;CACrD"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Report status enumeration
3
+ * Defines the lifecycle states of a report instance
4
+ */
5
+ export declare enum ReportStatus {
6
+ /**
7
+ * Draft - Initial state, content being prepared
8
+ */
9
+ DRAFT = "DRAFT",
10
+ /**
11
+ * Generating - AI is generating content
12
+ */
13
+ GENERATING = "GENERATING",
14
+ /**
15
+ * Pending internal approval - Awaiting internal review
16
+ */
17
+ PENDING_INTERNAL = "PENDING_INTERNAL",
18
+ /**
19
+ * Pending client approval - Awaiting client review
20
+ */
21
+ PENDING_CLIENT = "PENDING_CLIENT",
22
+ /**
23
+ * Approved - All approvals received
24
+ */
25
+ APPROVED = "APPROVED",
26
+ /**
27
+ * Published - Report is finalized and available
28
+ */
29
+ PUBLISHED = "PUBLISHED",
30
+ /**
31
+ * Rejected - Report was rejected and needs revision
32
+ */
33
+ REJECTED = "REJECTED",
34
+ /**
35
+ * Archived - Report is archived (soft delete)
36
+ */
37
+ ARCHIVED = "ARCHIVED"
38
+ }
39
+ //# sourceMappingURL=ReportStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/enums/ReportStatus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,YAAY;IACtB;;OAEG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,UAAU,eAAe;IAEzB;;OAEG;IACH,gBAAgB,qBAAqB;IAErC;;OAEG;IACH,cAAc,mBAAmB;IAEjC;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Report type enumeration
3
+ * Defines the different types of reports that can be generated
4
+ */
5
+ export declare enum ReportType {
6
+ /**
7
+ * Auditable report - Formal report for external audits
8
+ * Requires strict compliance and double approval
9
+ */
10
+ AUDITABLE = "AUDITABLE",
11
+ /**
12
+ * Technical report - Detailed technical analysis
13
+ * Includes methodologies and calculation details
14
+ */
15
+ TECHNICAL = "TECHNICAL",
16
+ /**
17
+ * Executive report - High-level summary for management
18
+ * Focus on key insights and recommendations
19
+ */
20
+ EXECUTIVE = "EXECUTIVE",
21
+ /**
22
+ * Custom report - User-defined structure
23
+ * Flexible format based on client needs
24
+ */
25
+ CUSTOM = "CUSTOM"
26
+ }
27
+ //# sourceMappingURL=ReportType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/enums/ReportType.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,UAAU;IACpB;;;OAGG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,SAAS,cAAc;IAEvB;;;OAGG;IACH,MAAM,WAAW;CAClB"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class EmptyReportSectionBlocksError extends RootError {
3
+ private constructor();
4
+ static create(sectionId: string): EmptyReportSectionBlocksError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=EmptyReportSectionBlocksError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyReportSectionBlocksError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,6BAA8B,SAAQ,SAAS;IAC1D,OAAO;WAMgB,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,6BAA6B;IAI/D,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class InvalidReportInstanceIdError extends RootError {
3
+ private constructor();
4
+ static create(receivedValue: string): InvalidReportInstanceIdError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidReportInstanceIdError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidReportInstanceIdError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,4BAA6B,SAAQ,SAAS;IACzD,OAAO;WAMgB,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,4BAA4B;IAIlE,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class InvalidReportSectionIdError extends RootError {
3
+ private constructor();
4
+ static create(receivedValue: string): InvalidReportSectionIdError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidReportSectionIdError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidReportSectionIdError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,OAAO;WAMgB,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,2BAA2B;IAIjE,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class InvalidReportSectionOrderError extends RootError {
3
+ private constructor();
4
+ static create(receivedValue: number): InvalidReportSectionOrderError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidReportSectionOrderError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidReportSectionOrderError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,8BAA+B,SAAQ,SAAS;IAC3D,OAAO;WAMgB,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,8BAA8B;IAIpE,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class InvalidReportSectionTitleError extends RootError {
3
+ private constructor();
4
+ static create(receivedValue: string): InvalidReportSectionTitleError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidReportSectionTitleError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidReportSectionTitleError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,8BAA+B,SAAQ,SAAS;IAC3D,OAAO;WAMgB,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,8BAA8B;IAIpE,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,7 @@
1
+ import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
+ export declare class InvalidReportTemplateIdError extends RootError {
3
+ private constructor();
4
+ static create(receivedValue: string): InvalidReportTemplateIdError;
5
+ logError(): string;
6
+ }
7
+ //# sourceMappingURL=InvalidReportTemplateIdError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidReportTemplateIdError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,qBAAa,4BAA6B,SAAQ,SAAS;IACzD,OAAO;WAMgB,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,4BAA4B;IAIlE,QAAQ,IAAI,MAAM;CAGnC"}
@@ -0,0 +1,16 @@
1
+ import { BlockNature } from '../enums/BlockNature';
2
+ import { DataBindingSource } from '../enums/DataBindingSource';
3
+ export interface ReportBlockPrimitives {
4
+ readonly id: string;
5
+ readonly nature: BlockNature;
6
+ readonly content?: string;
7
+ readonly maxLength?: number;
8
+ readonly minLength?: number;
9
+ readonly dataBinding?: {
10
+ source: DataBindingSource;
11
+ format?: string;
12
+ };
13
+ readonly aiAssist: boolean;
14
+ readonly order: number;
15
+ }
16
+ //# sourceMappingURL=ReportBlockPrimitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportBlockPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/types/ReportBlockPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE;QACrB,MAAM,EAAE,iBAAiB,CAAC;QAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,10 @@
1
+ import { ReportBlockPrimitives } from './ReportBlockPrimitives';
2
+ export interface ReportSectionPrimitives {
3
+ readonly id: string;
4
+ readonly title: string;
5
+ readonly order: number;
6
+ readonly blocks: ReportBlockPrimitives[];
7
+ readonly isRequired: boolean;
8
+ readonly isVisible: boolean;
9
+ }
10
+ //# sourceMappingURL=ReportSectionPrimitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportSectionPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/types/ReportSectionPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC;IACzC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B"}
@@ -0,0 +1,18 @@
1
+ import { ValueObject } from '../../../../shared/domain/value-objects/ValueObject';
2
+ import { ReportSectionPrimitives } from '../types/ReportSectionPrimitives';
3
+ export declare class ReportSection extends ValueObject<ReportSectionPrimitives> {
4
+ private static readonly PROPERTY_NAME;
5
+ private static readonly EXPECTED_TYPE;
6
+ private constructor();
7
+ static create(value: ReportSectionPrimitives): ReportSection;
8
+ static fromPrimitives(primitives: ReportSectionPrimitives): ReportSection;
9
+ private validateReportSection;
10
+ getId(): string;
11
+ getTitle(): string;
12
+ getOrder(): number;
13
+ getBlocks(): readonly ReportSectionPrimitives['blocks'][number][];
14
+ isRequired(): boolean;
15
+ isVisible(): boolean;
16
+ toPrimitives(): ReportSectionPrimitives;
17
+ }
18
+ //# sourceMappingURL=ReportSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReportSection.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/shared/domain/value-objects/ReportSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,qBAAa,aAAc,SAAQ,WAAW,CAAC,uBAAuB,CAAC;IACrE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAmB;IAExD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA6B;IAElE,OAAO;WAaO,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,aAAa;WAIrD,cAAc,CAAC,UAAU,EAAE,uBAAuB,GAAG,aAAa;IAIhF,OAAO,CAAC,qBAAqB;IAkBtB,KAAK,IAAI,MAAM;IAIf,QAAQ,IAAI,MAAM;IAIlB,QAAQ,IAAI,MAAM;IAIlB,SAAS,IAAI,SAAS,uBAAuB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE;IAIjE,UAAU,IAAI,OAAO;IAIrB,SAAS,IAAI,OAAO;IAIpB,YAAY,IAAI,uBAAuB;CAU/C"}
@@ -0,0 +1,14 @@
1
+ import { AggregateId } from '../../../../shared/domain/value-objects/AggregateId';
2
+ export declare class TextBankId extends AggregateId {
3
+ private static readonly PROPERTY_NAME;
4
+ private static readonly VALID_PREFIXES;
5
+ private constructor();
6
+ static create(value: string): TextBankId;
7
+ /**
8
+ * Validates that the UUID has a valid TextBank prefix
9
+ */
10
+ private static guardAgainstInvalidPrefix;
11
+ static fromPrimitives(primitive: string): TextBankId;
12
+ toPrimitives(): string;
13
+ }
14
+ //# sourceMappingURL=TextBankId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextBankId.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/reporting/text-banks/domain/value-objects/TextBankId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAIlF,qBAAa,UAAW,SAAQ,WAAW;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAQ;IAE7C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAEpC;IAEF,OAAO;WAIgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU;IAWxD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;WA+BjB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU;IAMpD,YAAY,IAAI,MAAM;CAGvC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Centralized error codes enum for the CarbonBox domain
3
+ * Format: CBX-[CONTEXT]-[NUMBER]
4
+ *
5
+ * Context Abbreviations:
6
+ * - AUTH: Authentication
7
+ * - PMS: Purchase Management System
8
+ * - STK: Stakeholders
9
+ * - CFC: Carbon Footprint Configurations
10
+ * - ADC: Activity Data Collection
11
+ * - EMC: Emission Calculations
12
+ * - SHR: Shared/Common
13
+ *
14
+ * @since 1.0.0
15
+ */
16
+ export declare enum ErrorCode {
17
+ INVALID_CREDENTIALS = "CBX-AUTH-001",
18
+ TOKEN_EXPIRED = "CBX-AUTH-002",
19
+ TOKEN_INVALID = "CBX-AUTH-003",
20
+ MISSING_CREDENTIALS = "CBX-AUTH-004",
21
+ ACCOUNT_LOCKED = "CBX-AUTH-005",
22
+ EMAIL_NOT_VERIFIED = "CBX-AUTH-006",
23
+ PASSWORD_RESET_EXPIRED = "CBX-AUTH-007",
24
+ CONTRACT_NOT_FOUND = "CBX-PMS-001",
25
+ INVALID_CONTRACT_STATUS = "CBX-PMS-002",
26
+ INVALID_PAYMENT_TERMS = "CBX-PMS-003",
27
+ ORDER_EXCEEDS_BUDGET = "CBX-PMS-004",
28
+ DUPLICATE_ORDER = "CBX-PMS-005",
29
+ INVALID_CURRENCY = "CBX-PMS-006",
30
+ SERVICE_CATALOG_NOT_FOUND = "CBX-PMS-007",
31
+ STAKEHOLDER_EXISTS = "CBX-STK-001",
32
+ INVALID_ROLE = "CBX-STK-002",
33
+ STAKEHOLDER_NOT_FOUND = "CBX-STK-003",
34
+ INSUFFICIENT_PERMISSIONS = "CBX-STK-004",
35
+ INVALID_BUSINESS_STATUS = "CBX-STK-005",
36
+ MANAGER_REQUIRED = "CBX-STK-006",
37
+ CONFIGURATION_NOT_FOUND = "CBX-CFC-001",
38
+ INVALID_REPORTING_STANDARD = "CBX-CFC-002",
39
+ INVALID_COLLECTION_PERIOD = "CBX-CFC-003",
40
+ CONFIGURATION_LOCKED = "CBX-CFC-004",
41
+ DUPLICATE_CONFIGURATION = "CBX-CFC-005",
42
+ FORM_NOT_FOUND = "CBX-ADC-001",
43
+ INVALID_SUBMISSION = "CBX-ADC-002",
44
+ SUBMISSION_LOCKED = "CBX-ADC-003",
45
+ MISSING_REQUIRED_FIELDS = "CBX-ADC-004",
46
+ INVALID_FIELD_TYPE = "CBX-ADC-005",
47
+ CALCULATION_FAILED = "CBX-EMC-001",
48
+ MISSING_EMISSION_FACTOR = "CBX-EMC-002",
49
+ INVALID_FORMULA = "CBX-EMC-003",
50
+ JOB_NOT_FOUND = "CBX-EMC-004",
51
+ JOB_ALREADY_RUNNING = "CBX-EMC-005",
52
+ INVALID_EMAIL = "CBX-SHR-001",
53
+ INVALID_DATE_FORMAT = "CBX-SHR-002",
54
+ INVALID_COORDINATES = "CBX-SHR-003",
55
+ INVALID_CURRENCY_CODE = "CBX-SHR-004",
56
+ DATABASE_CONNECTION = "CBX-SHR-005",
57
+ EXTERNAL_SERVICE = "CBX-SHR-006",
58
+ INVALID_GENDER = "CBX-SHR-007",
59
+ INVALID_PHONE_NUMBER = "CBX-SHR-008",
60
+ INVALID_TAX_ID = "CBX-SHR-009",
61
+ NULL_VALUE = "CBX-SHR-010",
62
+ UNDEFINED_VALUE = "CBX-SHR-011",
63
+ EMPTY_VALUE = "CBX-SHR-012",
64
+ INVALID_PROPERTY_TYPE = "CBX-SHR-013",
65
+ INVALID_PROPERTY_VALUE = "CBX-SHR-014",
66
+ MINIMUM_VALUE_VIOLATION = "CBX-SHR-015",
67
+ MAXIMUM_VALUE_VIOLATION = "CBX-SHR-016",
68
+ INVALID_DATE_RANGE = "CBX-SHR-017",
69
+ PASSWORD_POLICY_VIOLATION = "CBX-SHR-018"
70
+ }
71
+ //# sourceMappingURL=ErrorCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorCode.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/ErrorCode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,oBAAY,SAAS;IAEnB,mBAAmB,iBAAiB;IACpC,aAAa,iBAAiB;IAC9B,aAAa,iBAAiB;IAC9B,mBAAmB,iBAAiB;IACpC,cAAc,iBAAiB;IAC/B,kBAAkB,iBAAiB;IACnC,sBAAsB,iBAAiB;IAGvC,kBAAkB,gBAAgB;IAClC,uBAAuB,gBAAgB;IACvC,qBAAqB,gBAAgB;IACrC,oBAAoB,gBAAgB;IACpC,eAAe,gBAAgB;IAC/B,gBAAgB,gBAAgB;IAChC,yBAAyB,gBAAgB;IAGzC,kBAAkB,gBAAgB;IAClC,YAAY,gBAAgB;IAC5B,qBAAqB,gBAAgB;IACrC,wBAAwB,gBAAgB;IACxC,uBAAuB,gBAAgB;IACvC,gBAAgB,gBAAgB;IAGhC,uBAAuB,gBAAgB;IACvC,0BAA0B,gBAAgB;IAC1C,yBAAyB,gBAAgB;IACzC,oBAAoB,gBAAgB;IACpC,uBAAuB,gBAAgB;IAGvC,cAAc,gBAAgB;IAC9B,kBAAkB,gBAAgB;IAClC,iBAAiB,gBAAgB;IACjC,uBAAuB,gBAAgB;IACvC,kBAAkB,gBAAgB;IAGlC,kBAAkB,gBAAgB;IAClC,uBAAuB,gBAAgB;IACvC,eAAe,gBAAgB;IAC/B,aAAa,gBAAgB;IAC7B,mBAAmB,gBAAgB;IAGnC,aAAa,gBAAgB;IAC7B,mBAAmB,gBAAgB;IACnC,mBAAmB,gBAAgB;IACnC,qBAAqB,gBAAgB;IACrC,mBAAmB,gBAAgB;IACnC,gBAAgB,gBAAgB;IAChC,cAAc,gBAAgB;IAC9B,oBAAoB,gBAAgB;IACpC,cAAc,gBAAgB;IAC9B,UAAU,gBAAgB;IAC1B,eAAe,gBAAgB;IAC/B,WAAW,gBAAgB;IAC3B,qBAAqB,gBAAgB;IACrC,sBAAsB,gBAAgB;IACtC,uBAAuB,gBAAgB;IACvC,uBAAuB,gBAAgB;IACvC,kBAAkB,gBAAgB;IAClC,yBAAyB,gBAAgB;CAC1C"}
@@ -61,6 +61,11 @@ export declare enum SemanticUuidPrefix {
61
61
  PMS_PURCHASE_ORDER = "PMS-PO",
62
62
  PMS_SERVICE_ENTITLEMENT = "PMS-SE",
63
63
  SHR_DOMAIN = "SHR-DOM",
64
- SHR_EITHER = "SHR-ETH"
64
+ SHR_EITHER = "SHR-ETH",
65
+ RPT_TEMPLATE = "RPT-TPL",
66
+ RPT_INSTANCE = "RPT-INS",
67
+ RPT_TEXT_BANK = "RPT-TXB",
68
+ RPT_SECTION = "RPT-SEC",
69
+ RPT_BLOCK = "RPT-BLK"
65
70
  }
66
71
  //# sourceMappingURL=SemanticUuidPrefix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SemanticUuidPrefix.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/SemanticUuidPrefix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,kBAAkB;IAE5B,GAAG,QAAQ,CAAE,0CAA0C;IAGvD,eAAe,YAAY;IAC3B,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,eAAe,YAAY;IAC3B,oBAAoB,YAAY;IAGhC,aAAa,YAAY;IACzB,qBAAqB,gBAAgB;IACrC,wBAAwB,gBAAgB;IACxC,SAAS,YAAY;IACrB,mBAAmB,gBAAgB;IACnC,oBAAoB,gBAAgB;IACpC,WAAW,YAAY;IACvB,mBAAmB,gBAAgB;IACnC,sBAAsB,gBAAgB;IACtC,oBAAoB,gBAAgB;IACpC,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,cAAc,YAAY;IAG1B,UAAU,YAAY;IACtB,iBAAiB,gBAAgB;IACjC,cAAc,YAAY;IAC1B,YAAY,YAAY;IAGxB,WAAW,gBAAgB;IAC3B,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IAGnB,QAAQ,YAAY;IACpB,aAAa,YAAY;IACzB,aAAa,YAAY;IAGzB,gBAAgB,YAAY;IAC5B,gBAAgB,YAAY;IAC5B,eAAe,YAAY;IAG3B,GAAG,QAAQ,CAAE,0BAA0B;IAGvC,cAAc,gBAAgB;IAC9B,mBAAmB,gBAAgB;IACnC,YAAY,gBAAgB;IAC5B,eAAe,gBAAgB;IAG/B,mBAAmB,WAAW;IAC9B,mBAAmB,WAAW;IAC9B,qBAAqB,WAAW;IAChC,kBAAkB,WAAW;IAC7B,uBAAuB,WAAW;IAGlC,UAAU,YAAY;IACtB,UAAU,YAAY;CAMvB"}
1
+ {"version":3,"file":"SemanticUuidPrefix.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/SemanticUuidPrefix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,kBAAkB;IAE5B,GAAG,QAAQ,CAAE,0CAA0C;IAGvD,eAAe,YAAY;IAC3B,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,UAAU,YAAY;IACtB,SAAS,YAAY;IACrB,eAAe,YAAY;IAC3B,oBAAoB,YAAY;IAGhC,aAAa,YAAY;IACzB,qBAAqB,gBAAgB;IACrC,wBAAwB,gBAAgB;IACxC,SAAS,YAAY;IACrB,mBAAmB,gBAAgB;IACnC,oBAAoB,gBAAgB;IACpC,WAAW,YAAY;IACvB,mBAAmB,gBAAgB;IACnC,sBAAsB,gBAAgB;IACtC,oBAAoB,gBAAgB;IACpC,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,cAAc,YAAY;IAG1B,UAAU,YAAY;IACtB,iBAAiB,gBAAgB;IACjC,cAAc,YAAY;IAC1B,YAAY,YAAY;IAGxB,WAAW,gBAAgB;IAC3B,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,OAAO,YAAY;IAGnB,QAAQ,YAAY;IACpB,aAAa,YAAY;IACzB,aAAa,YAAY;IAGzB,gBAAgB,YAAY;IAC5B,gBAAgB,YAAY;IAC5B,eAAe,YAAY;IAG3B,GAAG,QAAQ,CAAE,0BAA0B;IAGvC,cAAc,gBAAgB;IAC9B,mBAAmB,gBAAgB;IACnC,YAAY,gBAAgB;IAC5B,eAAe,gBAAgB;IAG/B,mBAAmB,WAAW;IAC9B,mBAAmB,WAAW;IAC9B,qBAAqB,WAAW;IAChC,kBAAkB,WAAW;IAC7B,uBAAuB,WAAW;IAGlC,UAAU,YAAY;IACtB,UAAU,YAAY;IAGtB,YAAY,YAAY;IACxB,YAAY,YAAY;IACxB,aAAa,YAAY;IACzB,WAAW,YAAY;IACvB,SAAS,YAAY;CAMtB"}
@@ -0,0 +1,25 @@
1
+ import { CodedRootError } from './CodedRootError';
2
+ /**
3
+ * Exception thrown when a user account is locked
4
+ * This error occurs when too many failed login attempts or security violations
5
+ *
6
+ * Error code: CBX-AUTH-005
7
+ * @since 1.0.0
8
+ */
9
+ export declare class AccountLockedError extends CodedRootError {
10
+ private constructor();
11
+ static create(email: string, reason: string, lockedUntil?: Date, attemptCount?: number): AccountLockedError;
12
+ /**
13
+ * Creates an AccountLockedError for too many failed attempts
14
+ */
15
+ static tooManyAttempts(email: string, attemptCount: number, lockedUntil: Date): AccountLockedError;
16
+ /**
17
+ * Creates an AccountLockedError for security violation
18
+ */
19
+ static securityViolation(email: string, lockedUntil?: Date): AccountLockedError;
20
+ /**
21
+ * Creates an AccountLockedError for administrative lock
22
+ */
23
+ static administrativeLock(email: string, reason: string): AccountLockedError;
24
+ }
25
+ //# sourceMappingURL=AccountLockedError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountLockedError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/AccountLockedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD;;;;;;GAMG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,OAAO;WA+BgB,MAAM,CAC3B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,IAAI,EAClB,YAAY,CAAC,EAAE,MAAM,GACpB,kBAAkB;IAIrB;;OAEG;WACW,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,GAAG,kBAAkB;IAIzG;;OAEG;WACW,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,IAAI,GAAG,kBAAkB;IAItF;;OAEG;WACW,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,kBAAkB;CAGpF"}
@@ -0,0 +1,44 @@
1
+ import { RootError } from './RootError';
2
+ import { ICodedError } from '../interfaces/ICodedError';
3
+ /**
4
+ * Enhanced base class for all domain errors with error code support
5
+ * This extends the existing RootError to add error code functionality
6
+ * while maintaining backward compatibility
7
+ *
8
+ * @since 1.0.0
9
+ */
10
+ export declare abstract class CodedRootError extends RootError implements ICodedError {
11
+ readonly errorCode: string;
12
+ readonly technicalMessage: string;
13
+ readonly context?: Record<string, any>;
14
+ readonly suggestions?: string[];
15
+ /**
16
+ * Creates a new CodedRootError instance
17
+ *
18
+ * @param errorCode - Unique error code (CBX-XXX-NNN)
19
+ * @param technicalMessage - Detailed technical message for debugging
20
+ * @param context - Optional context data safe to expose
21
+ * @param suggestions - Optional user action suggestions
22
+ */
23
+ protected constructor(errorCode: string, technicalMessage: string, context?: Record<string, any>, suggestions?: string[]);
24
+ /**
25
+ * Returns a log-friendly representation of the error
26
+ * Includes error code, name, technical message and context
27
+ */
28
+ logError(): string;
29
+ /**
30
+ * Returns a safe representation of the error for external clients
31
+ * This excludes the technical message but includes code, context and suggestions
32
+ */
33
+ toPublicError(): {
34
+ code: string;
35
+ name: string;
36
+ context?: Record<string, any>;
37
+ suggestions?: string[];
38
+ };
39
+ /**
40
+ * Checks if an error implements the ICodedError interface
41
+ */
42
+ static isCodedError(error: unknown): error is ICodedError;
43
+ }
44
+ //# sourceMappingURL=CodedRootError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodedRootError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/CodedRootError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;GAMG;AACH,8BAAsB,cAAe,SAAQ,SAAU,YAAW,WAAW;IAC3E,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,gBAAgB,EAAE,MAAM,CAAC;IACzC,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9C,SAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvC;;;;;;;OAOG;IACH,SAAS,aACP,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,WAAW,CAAC,EAAE,MAAM,EAAE;IAcxB;;;OAGG;IACa,QAAQ,IAAI,MAAM;IAKlC;;;OAGG;IACI,aAAa,IAAI;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB;IASD;;OAEG;WACW,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW;CAUjE"}