@undp/carbon-library 1.0.83 → 1.0.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,5 +6,4 @@ export interface TimelineBodyProps {
6
6
  via?: string | null;
7
7
  t: any;
8
8
  }
9
- declare const TimelineBody: FC<TimelineBodyProps>;
10
- export default TimelineBody;
9
+ export declare const TimelineBody: FC<TimelineBodyProps>;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import "./programmeTransferManagement.scss";
3
+ import "./creditTransfer.scss";
4
+ import "../../Styles/common.table.scss";
5
+ export declare const CreditTransferComponent: (props: any) => React.JSX.Element;
@@ -10,6 +10,8 @@ export * from "./Investment/AddNewInvestment/investmentCreationComponent";
10
10
  export * from "./Investment/InvestmentManagement/investmentManagementComponent";
11
11
  export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
12
12
  export * from "./NdcActions/AddNdcAction/addNdcActionComponent";
13
+ export * from "./NdcActions/NdcView/ndcActionViewComponent";
14
+ export * from "./Transfers/creditTransfersComponent";
13
15
  export * from "./Common/Loading/loading";
14
16
  export * from "./Common/LegendItem/legendItem";
15
17
  export * from "./Common/Maps/mapComponent";
@@ -31,3 +33,4 @@ export * from "./Common/NdcActionBody/ndcActionBody";
31
33
  export * from "./Common/OrganisationStatus/organisationStatus";
32
34
  export * from "./Common/ProgrammeDocuments/programmeDocuments";
33
35
  export * from "./Common/UserRoleIcon/userRoleIcon";
36
+ export * from "./Common/TimelineBody/timelineBody";
@@ -105,11 +105,12 @@ export declare const addCommSep: (value: any) => string;
105
105
  export declare const addCommSepRound: (value: any) => string;
106
106
  export declare const addRoundNumber: (value: any) => number;
107
107
  export declare const addSpaces: (text: string) => string;
108
- export declare const getFinancialFields: (programme: ProgrammeR | ProgrammeU) => {
109
- programmeCost: string;
108
+ export declare const getFinancialFields: (programme: ProgrammeU) => {
109
+ estimatedProgrammeCostUSD: string;
110
+ creditEst: string;
110
111
  financingType: string;
111
112
  grantEquivalent: UnitField;
112
- carbonPrice: string;
113
+ carbonPriceUSDPerTon: string;
113
114
  };
114
115
  export declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
115
116
  export declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
@@ -0,0 +1,5 @@
1
+ import { BaseEntity } from "./baseEntity";
2
+ export declare class ProgrammeCertify implements BaseEntity {
3
+ programmeId?: string;
4
+ comment?: string;
5
+ }
@@ -15,3 +15,8 @@ export declare enum ProgrammeStageUnified {
15
15
  Approved = "Approved",
16
16
  Rejected = "Rejected"
17
17
  }
18
+ export declare enum ProgrammeStageLegend {
19
+ AUTHORISED = "Authorised",
20
+ REJECTED = "Rejected",
21
+ AWAITING_AUTHORIZATION = "AwaitingAuthorization"
22
+ }
@@ -16,3 +16,16 @@ export declare enum StatsCardsTypes {
16
16
  PROGRAMME_LOCATIONS = "Programme Locations",
17
17
  TRANSFER_LOCATIONS_INTERNATIONAL = "Transfer Locations International"
18
18
  }
19
+ export declare enum MrvStatsCardsTypes {
20
+ AGG_PROGRAMME_BY_SECTOR = "AGG_PROGRAMME_BY_SECTOR",
21
+ AGG_NDC_ACTION_BY_TYPE = "AGG_NDC_ACTION_BY_TYPE",
22
+ AGG_NDC_ACTION_BY_SECTOR = "AGG_NDC_ACTION_BY_SECTOR",
23
+ TOTAL_EMISSIONS = "TOTAL_EMISSIONS",
24
+ PROGRAMME_LOCATION = "PROGRAMME_LOCATION",
25
+ INVESTMENT_LOCATION = "INVESTMENT_LOCATION",
26
+ AGG_INVESTMENT_BY_TYPE = "AGG_INVESTMENT_BY_TYPE"
27
+ }
28
+ export declare enum SystemNames {
29
+ CARBON_REGISTRY = "CARBON_REGISTRY_SYSTEM",
30
+ CARBON_TRANSPARENCY = "CARBON_TRANSPARENCY_SYSTEM"
31
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum WidgetType {
2
+ PIE = "Pie",
3
+ MAP = "Map",
4
+ LIST = "List"
5
+ }
@@ -24,6 +24,10 @@ export * from "./Enums/sdgGoals.enum";
24
24
  export * from "./Enums/carbonSystemType.enum";
25
25
  export * from "./Enums/document.type";
26
26
  export * from "./Enums/document.status";
27
+ export * from "./Enums/company.state.enum";
28
+ export * from "./Enums/widget.type.enum";
29
+ export * from "./Enums/statsCards.type.enum";
30
+ export * from "./Enums/action.enum";
27
31
  export * from "./Definitions/userLogin.definitions";
28
32
  export * from "./Definitions/userInformationContext.definitions";
29
33
  export * from "./Definitions/userForgotPassword.definitions";
@@ -35,8 +39,10 @@ export * from "./Definitions/layout.header";
35
39
  export * from "./Definitions/layout.sider.definitions";
36
40
  export * from "./Definitions/mapComponent.definitions";
37
41
  export * from "./Definitions/ndcAction.definitions";
42
+ export * from "./Definitions/common.definitions";
38
43
  export * from "./Entities/company";
39
44
  export * from "./Entities/baseEntity";
40
45
  export * from "./Entities/programmeTransfer";
41
46
  export * from "./Entities/user";
42
47
  export * from "./Entities/programme";
48
+ export * from "./Entities/programmeCertify";
package/dist/index.d.ts CHANGED
@@ -28,6 +28,10 @@ declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
28
28
 
29
29
  declare const AddNdcActionComponent: (props: any) => React.JSX.Element;
30
30
 
31
+ declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
32
+
33
+ declare const CreditTransferComponent: (props: any) => React.JSX.Element;
34
+
31
35
  declare const Loading: () => React.JSX.Element;
32
36
 
33
37
  interface LegendItemItemProps {
@@ -191,6 +195,11 @@ declare enum ProgrammeStageUnified {
191
195
  Approved = "Approved",
192
196
  Rejected = "Rejected"
193
197
  }
198
+ declare enum ProgrammeStageLegend {
199
+ AUTHORISED = "Authorised",
200
+ REJECTED = "Rejected",
201
+ AWAITING_AUTHORIZATION = "AwaitingAuthorization"
202
+ }
194
203
 
195
204
  declare enum TypeOfMitigation {
196
205
  AGRICULTURE = "Agriculture",
@@ -298,11 +307,12 @@ declare const addCommSep: (value: any) => string;
298
307
  declare const addCommSepRound: (value: any) => string;
299
308
  declare const addRoundNumber: (value: any) => number;
300
309
  declare const addSpaces: (text: string) => string;
301
- declare const getFinancialFields: (programme: ProgrammeR | ProgrammeU) => {
302
- programmeCost: string;
310
+ declare const getFinancialFields: (programme: ProgrammeU) => {
311
+ estimatedProgrammeCostUSD: string;
312
+ creditEst: string;
303
313
  financingType: string;
304
314
  grantEquivalent: UnitField;
305
- carbonPrice: string;
315
+ carbonPriceUSDPerTon: string;
306
316
  };
307
317
  declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
308
318
  declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
@@ -673,6 +683,57 @@ declare enum DocumentStatus {
673
683
  REJECTED = "Rejected"
674
684
  }
675
685
 
686
+ declare enum CompanyState {
687
+ SUSPENDED = 0,
688
+ ACTIVE = 1
689
+ }
690
+
691
+ declare enum WidgetType {
692
+ PIE = "Pie",
693
+ MAP = "Map",
694
+ LIST = "List"
695
+ }
696
+
697
+ declare enum StatsCardsTypes {
698
+ PROGRAMMES_PENDING = "Programmes Pending",
699
+ TRANSFER_REQUEST_RECEIVED = "Pending Transfers Received",
700
+ PROGRAMMES_UNCERTIFIED = "Programmes Certifiable",
701
+ TRANSFER_REQUEST_SENT = "Pending Transfers Sent",
702
+ PROGRAMMES_CERTIFIED = "Programmes Certified",
703
+ CREDIT_BALANCE = "Credit Balance",
704
+ CREDIT_CERTIFIED = "Credits Certified",
705
+ PROGRAMMES = "Programmes",
706
+ CREDITS = "Credits",
707
+ CERTIFIED_CREDITS = "Certified Credits",
708
+ TOTAL_PROGRAMMES = "Total Programmes",
709
+ TOTAL_PROGRAMMES_SECTOR = "Total Programmes: Sector",
710
+ TOTAL_CREDITS = "Total Credits",
711
+ TOTAL_CREDITS_CERTIFIED = "Total Credits Certified",
712
+ PROGRAMME_LOCATIONS = "Programme Locations",
713
+ TRANSFER_LOCATIONS_INTERNATIONAL = "Transfer Locations International"
714
+ }
715
+ declare enum MrvStatsCardsTypes {
716
+ AGG_PROGRAMME_BY_SECTOR = "AGG_PROGRAMME_BY_SECTOR",
717
+ AGG_NDC_ACTION_BY_TYPE = "AGG_NDC_ACTION_BY_TYPE",
718
+ AGG_NDC_ACTION_BY_SECTOR = "AGG_NDC_ACTION_BY_SECTOR",
719
+ TOTAL_EMISSIONS = "TOTAL_EMISSIONS",
720
+ PROGRAMME_LOCATION = "PROGRAMME_LOCATION",
721
+ INVESTMENT_LOCATION = "INVESTMENT_LOCATION",
722
+ AGG_INVESTMENT_BY_TYPE = "AGG_INVESTMENT_BY_TYPE"
723
+ }
724
+ declare enum SystemNames {
725
+ CARBON_REGISTRY = "CARBON_REGISTRY_SYSTEM",
726
+ CARBON_TRANSPARENCY = "CARBON_TRANSPARENCY_SYSTEM"
727
+ }
728
+
729
+ declare enum Action {
730
+ Manage = "manage",
731
+ Create = "create",
732
+ Read = "read",
733
+ Update = "update",
734
+ Delete = "delete"
735
+ }
736
+
676
737
  interface LoginProps {
677
738
  email: string;
678
739
  password: string;
@@ -810,6 +871,10 @@ interface NdcAction {
810
871
  sector: string;
811
872
  }
812
873
 
874
+ declare const dateTimeFormat = "dd LLLL yyyy @ HH:mm";
875
+ declare const dateFormat = "dd LLLL yyyy";
876
+ declare const creditUnit = "ITMO";
877
+
813
878
  declare class Company implements BaseEntity {
814
879
  companyId?: number;
815
880
  taxId?: string;
@@ -846,6 +911,11 @@ declare class ProgrammeEntity implements BaseEntity {
846
911
  companyId?: number[];
847
912
  }
848
913
 
914
+ declare class ProgrammeCertify implements BaseEntity {
915
+ programmeId?: string;
916
+ comment?: string;
917
+ }
918
+
849
919
  interface TransferActionModelProps {
850
920
  icon: any;
851
921
  title: string;
@@ -907,4 +977,12 @@ interface UserRoleIconProps {
907
977
  }
908
978
  declare const UserRoleIcon: FC<UserRoleIconProps>;
909
979
 
910
- export { AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AgricultureProperties, BaseEntity, CarbonSystemType, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBody, InvestmentBodyProps, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, Titles, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
980
+ interface TimelineBodyProps {
981
+ text: string;
982
+ remark?: string | null;
983
+ via?: string | null;
984
+ t: any;
985
+ }
986
+ declare const TimelineBody: FC<TimelineBodyProps>;
987
+
988
+ export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AgricultureProperties, BaseEntity, CarbonSystemType, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferComponent, CreditTransferStage, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBody, InvestmentBodyProps, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SystemNames, TimelineBody, TimelineBodyProps, Titles, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, WidgetType, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "Shared Library of tools for Carbon Credits applications ecosystem for ExO and and HQ/GEF",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -18,6 +18,7 @@
18
18
  "@undp/carbon-credit-calculator": "^1.0.0",
19
19
  "node-sass": "^7.0.3",
20
20
  "postcss": "^8.4.23",
21
+ "react-circle-flags": "^0.0.19",
21
22
  "rollup": "^3.22.0",
22
23
  "rollup-plugin-dts": "^5.3.0",
23
24
  "rollup-plugin-peer-deps-external": "^2.2.4",