@undp/carbon-library 1.0.61 → 1.0.62

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/cjs/index.js +3717 -2132
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/Investment/investmentActionModel.d.ts +18 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +2 -2
  5. package/dist/cjs/types/Components/Investment/AddNewInvestment/investmentCreationComponent.d.ts +3 -0
  6. package/dist/cjs/types/Components/Investment/InvestmentManagement/investmentManagementComponent.d.ts +4 -0
  7. package/dist/cjs/types/Components/NdcActions/NdcActionManagement/ndcActionManagementComponent.d.ts +3 -0
  8. package/dist/cjs/types/Components/index.d.ts +4 -1
  9. package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +55 -71
  10. package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +3 -2
  11. package/dist/cjs/types/Definitions/Enums/TxType.enum.d.ts +12 -0
  12. package/dist/cjs/types/Definitions/Enums/company.role.enum.d.ts +3 -1
  13. package/dist/cjs/types/Definitions/Enums/creditTransferStage.enum.d.ts +8 -0
  14. package/dist/cjs/types/Definitions/Enums/eSGType.enum.d.ts +16 -0
  15. package/dist/cjs/types/Definitions/Enums/instrument.enum.d.ts +8 -0
  16. package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +20 -0
  17. package/dist/cjs/types/Definitions/Enums/ndcAction.status.enum.d.ts +6 -0
  18. package/dist/cjs/types/Definitions/Enums/ndcActionTypes.enum.d.ts +10 -0
  19. package/dist/cjs/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  20. package/dist/cjs/types/Definitions/Enums/programmeStageMRV.enum.d.ts +6 -0
  21. package/dist/cjs/types/Definitions/Enums/retireType.enum.d.ts +5 -0
  22. package/dist/cjs/types/Definitions/Enums/role.enum.d.ts +6 -0
  23. package/dist/cjs/types/Definitions/Enums/sectoralScope.enum.d.ts +17 -0
  24. package/dist/cjs/types/Definitions/Enums/typeOfMitigation.enum.d.ts +4 -0
  25. package/dist/cjs/types/Definitions/index.d.ts +13 -0
  26. package/dist/cjs/types/Styles/role.color.constants.d.ts +2 -0
  27. package/dist/esm/index.js +3713 -2136
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/types/Components/Common/Investment/investmentActionModel.d.ts +18 -0
  30. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +2 -2
  31. package/dist/esm/types/Components/Investment/AddNewInvestment/investmentCreationComponent.d.ts +3 -0
  32. package/dist/esm/types/Components/Investment/InvestmentManagement/investmentManagementComponent.d.ts +4 -0
  33. package/dist/esm/types/Components/NdcActions/NdcActionManagement/ndcActionManagementComponent.d.ts +3 -0
  34. package/dist/esm/types/Components/index.d.ts +4 -1
  35. package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +55 -71
  36. package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +3 -2
  37. package/dist/esm/types/Definitions/Enums/TxType.enum.d.ts +12 -0
  38. package/dist/esm/types/Definitions/Enums/company.role.enum.d.ts +3 -1
  39. package/dist/esm/types/Definitions/Enums/creditTransferStage.enum.d.ts +8 -0
  40. package/dist/esm/types/Definitions/Enums/eSGType.enum.d.ts +16 -0
  41. package/dist/esm/types/Definitions/Enums/instrument.enum.d.ts +8 -0
  42. package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +20 -0
  43. package/dist/esm/types/Definitions/Enums/ndcAction.status.enum.d.ts +6 -0
  44. package/dist/esm/types/Definitions/Enums/ndcActionTypes.enum.d.ts +10 -0
  45. package/dist/esm/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  46. package/dist/esm/types/Definitions/Enums/programmeStageMRV.enum.d.ts +6 -0
  47. package/dist/esm/types/Definitions/Enums/retireType.enum.d.ts +5 -0
  48. package/dist/esm/types/Definitions/Enums/role.enum.d.ts +6 -0
  49. package/dist/esm/types/Definitions/Enums/sectoralScope.enum.d.ts +17 -0
  50. package/dist/esm/types/Definitions/Enums/typeOfMitigation.enum.d.ts +4 -0
  51. package/dist/esm/types/Definitions/index.d.ts +13 -0
  52. package/dist/esm/types/Styles/role.color.constants.d.ts +2 -0
  53. package/dist/index.d.ts +196 -74
  54. package/package.json +2 -2
@@ -0,0 +1,18 @@
1
+ import { FC } from "react";
2
+ export interface InvestmentActionModelProps {
3
+ icon: any;
4
+ title: string;
5
+ investment: any;
6
+ onCancel: any;
7
+ actionBtnText: string;
8
+ onFinish: any;
9
+ subText: string;
10
+ disableToCompany?: boolean;
11
+ toCompanyDefault?: any;
12
+ openModal: boolean;
13
+ type: string;
14
+ remarkRequired: boolean;
15
+ t: any;
16
+ }
17
+ declare const InvestmentActionModel: FC<InvestmentActionModelProps>;
18
+ export default InvestmentActionModel;
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { Programme } from '../../../Definitions/Definitions/programme.definitions';
1
+ import { FC } from "react";
2
+ import { Programme } from "../../../Definitions/Definitions/programme.definitions";
3
3
  export interface ProgrammeTransferFormProps {
4
4
  programme: Programme;
5
5
  onCancel: any;
@@ -0,0 +1,3 @@
1
+ import "../investmentComponent.scss";
2
+ import React from "react";
3
+ export declare const InvestmentCreationComponent: (props: any) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "../investmentComponent.scss";
3
+ import "../../../Styles/common.table.scss";
4
+ export declare const InvestmentManagementComponent: (props: any) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import "./ndcActionManagementComponent.scss";
2
+ import React from "react";
3
+ export declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
@@ -1,11 +1,14 @@
1
1
  export * from "./Company/CompanyManagement/companyManagementComponent";
2
2
  export * from "./Company/AddNewCompany/addNewCompanyComponent";
3
3
  export * from "./Company/CompanyProfile/companyProfileComponent";
4
- export * from "./User/UserManagement/userManagementComponent";
5
4
  export * from "./Programme/ProgrammeManagement/programmeManagementComponent";
6
5
  export * from "./Programme/ProgrammeView/programmeViewComponent";
7
6
  export * from "./User/AddNewUser/addNewUserComponent";
8
7
  export * from "./User/UserProfile/userProfileComponent";
8
+ export * from "./User/UserManagement/userManagementComponent";
9
+ export * from "./Investment/AddNewInvestment/investmentCreationComponent";
10
+ export * from "./Investment/InvestmentManagement/investmentManagementComponent";
11
+ export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
9
12
  export * from "./Common/Loading/loading";
10
13
  export * from "./Common/LegendItem/legendItem";
11
14
  export * from "./Common/Maps/mapComponent";
@@ -1,68 +1,9 @@
1
1
  import { DateTime } from "luxon";
2
2
  import { ProgrammeTransfer } from "../Entities/programmeTransfer";
3
- export declare enum ProgrammeStage {
4
- AwaitingAuthorization = "Pending",
5
- Authorised = "Authorised",
6
- Rejected = "Rejected"
7
- }
8
- export declare enum ProgrammeStageMRV {
9
- AwaitingAuthorization = "Pending",
10
- Authorised = "Authorised",
11
- Approved = "Approved",
12
- Rejected = "Rejected"
13
- }
14
- export declare enum Role {
15
- Root = "Root",
16
- Admin = "Admin",
17
- Manager = "Manager",
18
- ViewOnly = "ViewOnly"
19
- }
20
- export declare enum RetireType {
21
- CROSS_BORDER = "0",
22
- LEGAL_ACTION = "1",
23
- OTHER = "2"
24
- }
25
- export declare enum CreditTransferStage {
26
- Pending = "Pending",
27
- Approved = "Accepted",
28
- Rejected = "Rejected",
29
- Cancelled = "Cancelled",
30
- Recognised = "Recognised",
31
- NotRecognised = "NotRecognised"
32
- }
33
- export declare enum TxType {
34
- CREATE = "0",
35
- REJECT = "1",
36
- ISSUE = "2",
37
- TRANSFER = "3",
38
- CERTIFY = "4",
39
- RETIRE = "5",
40
- REVOKE = "6",
41
- FREEZE = "7",
42
- AUTH = "8",
43
- UNFREEZE = "9"
44
- }
45
- export declare enum SectoralScope {
46
- "Energy Industries (Renewable – / Non-Renewable Sources)" = "1",
47
- "Energy Distribution" = "2",
48
- "Energy Demand" = "3",
49
- "Manufacturing Industries" = "4",
50
- "Chemical Industries" = "5",
51
- "Construction" = "6",
52
- "Transport" = "7",
53
- "Mining/Mineral Production" = "8",
54
- "Metal Production" = "9",
55
- "Fugitive Emissions From Fuels (Solid, Oil and Gas)" = "10",
56
- "Fugitive Emissions From Production and Consumption of Halocarbons and Sulphur Hexafluoride" = "11",
57
- "Solvent Use" = "12",
58
- "Waste Handling and Disposal" = "13",
59
- "Afforestation and Reforestation" = "14",
60
- "Agriculture" = "15"
61
- }
62
- export declare enum TypeOfMitigation {
63
- AGRICULTURE = "Agriculture",
64
- SOLAR = "Solar"
65
- }
3
+ import { ProgrammeStage } from "../Enums/programmeStage.enum";
4
+ import { ProgrammeStageMRV } from "../Enums/programmeStageMRV.enum";
5
+ import { TypeOfMitigation } from "../Enums/typeOfMitigation.enum";
6
+ import { CreditTransferStage } from "../Enums/creditTransferStage.enum";
66
7
  export declare const getStageEnumVal: (value: string) => string;
67
8
  export declare const getCreditStageVal: (value: string) => string;
68
9
  export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
@@ -74,14 +15,6 @@ export declare class UnitField {
74
15
  value: any;
75
16
  constructor(unit: string, value: any);
76
17
  }
77
- export declare enum CompanyRole {
78
- CERTIFIER = "Certifier",
79
- PROGRAMME_DEVELOPER = "ProgrammeDeveloper",
80
- MINISTRY = "Ministry",
81
- MRV = "MRV",
82
- GOVERNMENT = "Government",
83
- API = "API"
84
- }
85
18
  export interface ProgrammeProperties {
86
19
  maxInternationalTransferAmount: string;
87
20
  creditingPeriodInYears: number;
@@ -96,6 +29,20 @@ export interface ProgrammeProperties {
96
29
  programmeMaterials: [];
97
30
  projectMaterial: [];
98
31
  }
32
+ export interface ProgrammePropertiesT {
33
+ maxInternationalTransferAmount: string;
34
+ creditingPeriodInYears: number;
35
+ estimatedProgrammeCostUSD: number;
36
+ sourceOfFunding: any;
37
+ grantEquivalentAmount: number;
38
+ carbonPriceUSDPerTon: number;
39
+ buyerCountryEligibility: string;
40
+ geographicalLocation: string[];
41
+ greenHouseGasses: any[];
42
+ creditYear: number;
43
+ programmeMaterials: [];
44
+ projectMaterial: [];
45
+ }
99
46
  export interface Programme {
100
47
  programmeId: string;
101
48
  serialNo: string;
@@ -131,6 +78,43 @@ export interface Programme {
131
78
  typeOfMitigation: TypeOfMitigation;
132
79
  geographicalLocationCordintes: any;
133
80
  }
81
+ export interface ProgrammeT {
82
+ programmeId: string;
83
+ serialNo: string;
84
+ title: string;
85
+ sectoralScope: string;
86
+ sector: string;
87
+ countryCodeA2: string;
88
+ currentStage: ProgrammeStageMRV;
89
+ startTime: number;
90
+ endTime: number;
91
+ creditChange: number;
92
+ creditIssued: number;
93
+ creditEst: number;
94
+ creditBalance: number;
95
+ creditTransferred: number[];
96
+ creditRetired: number[];
97
+ creditFrozen: number[];
98
+ constantVersion: string;
99
+ proponentTaxVatId: string[];
100
+ companyId: number[];
101
+ proponentPercentage: number[];
102
+ creditOwnerPercentage: number[];
103
+ certifierId: any[];
104
+ certifier: any[];
105
+ company: any[];
106
+ creditUnit: string;
107
+ programmeProperties: ProgrammePropertiesT;
108
+ agricultureProperties: any;
109
+ solarProperties: any;
110
+ txTime: number;
111
+ createdTime: number;
112
+ txRef: string;
113
+ typeOfMitigation: TypeOfMitigation;
114
+ geographicalLocationCordintes: any;
115
+ emissionReductionExpected: number;
116
+ emissionReductionAchieved: number;
117
+ }
134
118
  export declare const getGeneralFields: (programme: Programme) => {
135
119
  title: string;
136
120
  serialNo: string;
@@ -1,5 +1,6 @@
1
- import { CreditTransferStage, RetireType } from '../Definitions/programme.definitions';
2
- import { BaseEntity } from './baseEntity';
1
+ import { CreditTransferStage } from "../Enums/creditTransferStage.enum";
2
+ import { RetireType } from "../Enums/retireType.enum";
3
+ import { BaseEntity } from "./baseEntity";
3
4
  export declare class ProgrammeTransfer implements BaseEntity {
4
5
  [x: string]: any;
5
6
  requestId?: number;
@@ -0,0 +1,12 @@
1
+ export declare enum TxType {
2
+ CREATE = "0",
3
+ REJECT = "1",
4
+ ISSUE = "2",
5
+ TRANSFER = "3",
6
+ CERTIFY = "4",
7
+ RETIRE = "5",
8
+ REVOKE = "6",
9
+ FREEZE = "7",
10
+ AUTH = "8",
11
+ UNFREEZE = "9"
12
+ }
@@ -13,5 +13,7 @@ export declare enum CompanyRole {
13
13
  INTERNAL_ORGANIZATION = "InternationalOrganization",
14
14
  PROGRAMME_DEVELOPER = "ProgrammeDeveloper",
15
15
  MRV = "MRV",
16
- GOVERNMENT = "Government"
16
+ GOVERNMENT = "Government",
17
+ MINISTRY = "Ministry",
18
+ API = "API"
17
19
  }
@@ -0,0 +1,8 @@
1
+ export declare enum CreditTransferStage {
2
+ Pending = "Pending",
3
+ Approved = "Accepted",
4
+ Rejected = "Rejected",
5
+ Cancelled = "Cancelled",
6
+ Recognised = "Recognised",
7
+ NotRecognised = "NotRecognised"
8
+ }
@@ -0,0 +1,16 @@
1
+ export declare enum ESGType {
2
+ AAA = "AAA",
3
+ AA = "AA",
4
+ A = "A",
5
+ AR = "A(R)",
6
+ BBB = "BBB",
7
+ BB = "BB",
8
+ B = "B",
9
+ BR = "B(R)",
10
+ B13 = "B13",
11
+ B13R = "B13(R)",
12
+ CCC = "CCC",
13
+ C = "C",
14
+ CR = "C(R)",
15
+ FI = "FI"
16
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum Instrument {
2
+ LOAN = "Loan",
3
+ RESULT_BASED = "ResultBased",
4
+ GRANT = "Grant",
5
+ EQUITY = "Equity",
6
+ GUARANTEE = "Guarantee",
7
+ OTHER = "Other"
8
+ }
@@ -0,0 +1,20 @@
1
+ export declare enum InvestmentLevel {
2
+ NATIONAL = "National",
3
+ INTERNATIONAL = "International"
4
+ }
5
+ export declare enum InvestmentStatus {
6
+ PENDING = "Pending",
7
+ APPROVED = "Approved",
8
+ REJECTED = "Rejected",
9
+ CANCELLED = "Cancelled"
10
+ }
11
+ export declare const getInvestmentStatusEnumVal: (value: string) => string;
12
+ export declare const getStatusTagType: (status: InvestmentStatus) => "error" | "processing" | "default" | "success";
13
+ export declare enum InvestmentType {
14
+ PUBLIC = "Public",
15
+ PRIVATE = "Private"
16
+ }
17
+ export declare enum InvestmentStream {
18
+ CLIMATE_FINANCE = "ClimateFinance",
19
+ CARBON_MARKET = "CarbonMarket"
20
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum NdcActionStatus {
2
+ PENDING = "Pending",
3
+ APPROVED = "Approved"
4
+ }
5
+ export declare const getNdcActionStatusEnumVal: (value: string) => string;
6
+ export declare const getNdcStatusTagType: (status: NdcActionStatus) => "processing" | "default" | "success";
@@ -0,0 +1,10 @@
1
+ export declare enum NdcActionTypes {
2
+ Mitigation = "mitigation",
3
+ Adaptation = "adaptation",
4
+ Enablement = "enablement",
5
+ CrossCutting = "crosscutting"
6
+ }
7
+ export declare const ndcActionTypeList: {
8
+ value: string;
9
+ label: string;
10
+ }[];
@@ -0,0 +1,5 @@
1
+ export declare enum ProgrammeStage {
2
+ AwaitingAuthorization = "Pending",
3
+ Authorised = "Authorised",
4
+ Rejected = "Rejected"
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ProgrammeStageMRV {
2
+ AwaitingAuthorization = "Pending",
3
+ Authorised = "Authorised",
4
+ Approved = "Approved",
5
+ Rejected = "Rejected"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum RetireType {
2
+ CROSS_BORDER = "0",
3
+ LEGAL_ACTION = "1",
4
+ OTHER = "2"
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum Role {
2
+ Root = "Root",
3
+ Admin = "Admin",
4
+ Manager = "Manager",
5
+ ViewOnly = "ViewOnly"
6
+ }
@@ -0,0 +1,17 @@
1
+ export declare enum SectoralScope {
2
+ "Energy Industries (Renewable – / Non-Renewable Sources)" = "1",
3
+ "Energy Distribution" = "2",
4
+ "Energy Demand" = "3",
5
+ "Manufacturing Industries" = "4",
6
+ "Chemical Industries" = "5",
7
+ "Construction" = "6",
8
+ "Transport" = "7",
9
+ "Mining/Mineral Production" = "8",
10
+ "Metal Production" = "9",
11
+ "Fugitive Emissions From Fuels (Solid, Oil and Gas)" = "10",
12
+ "Fugitive Emissions From Production and Consumption of Halocarbons and Sulphur Hexafluoride" = "11",
13
+ "Solvent Use" = "12",
14
+ "Waste Handling and Disposal" = "13",
15
+ "Afforestation and Reforestation" = "14",
16
+ "Agriculture" = "15"
17
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum TypeOfMitigation {
2
+ AGRICULTURE = "Agriculture",
3
+ SOLAR = "Solar"
4
+ }
@@ -1,7 +1,20 @@
1
1
  export * from "./Enums/company.management.columns.enum";
2
2
  export * from "./Enums/user.management.columns.enum";
3
3
  export * from "./Enums/programme.management.columns.enum";
4
+ export * from "./Enums/investment.enum";
4
5
  export * from "./Enums/mitigation.types.enum";
6
+ export * from "./Enums/eSGType.enum";
7
+ export * from "./Enums/instrument.enum";
8
+ export * from "./Enums/ndcAction.status.enum";
9
+ export * from "./Enums/ndcActionTypes.enum";
10
+ export * from "./Enums/role.enum";
11
+ export * from "./Enums/typeOfMitigation.enum";
12
+ export * from "./Enums/sectoralScope.enum";
13
+ export * from "./Enums/TxType.enum";
14
+ export * from "./Enums/creditTransferStage.enum";
15
+ export * from "./Enums/retireType.enum";
16
+ export * from "./Enums/programmeStageMRV.enum";
17
+ export * from "./Enums/programmeStage.enum";
5
18
  export * from "./Definitions/userLogin.definitions";
6
19
  export * from "./Definitions/userInformationContext.definitions";
7
20
  export * from "./Definitions/userForgotPassword.definitions";
@@ -15,3 +15,5 @@ export declare const MinColor = "#9155fd";
15
15
  export declare const CertBGColor = "rgba(128, 255, 0, 0.12)";
16
16
  export declare const CertColor = "#519E4F";
17
17
  export declare const TooltipColor = "#6ACDFF";
18
+ export declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
19
+ export declare const InvestmentColor = "#9155FD";