@undp/carbon-library 1.0.84 → 1.0.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -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";
@@ -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
+ }
@@ -25,6 +25,9 @@ export * from "./Enums/carbonSystemType.enum";
25
25
  export * from "./Enums/document.type";
26
26
  export * from "./Enums/document.status";
27
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";
28
31
  export * from "./Definitions/userLogin.definitions";
29
32
  export * from "./Definitions/userInformationContext.definitions";
30
33
  export * from "./Definitions/userForgotPassword.definitions";
@@ -36,8 +39,10 @@ export * from "./Definitions/layout.header";
36
39
  export * from "./Definitions/layout.sider.definitions";
37
40
  export * from "./Definitions/mapComponent.definitions";
38
41
  export * from "./Definitions/ndcAction.definitions";
42
+ export * from "./Definitions/common.definitions";
39
43
  export * from "./Entities/company";
40
44
  export * from "./Entities/baseEntity";
41
45
  export * from "./Entities/programmeTransfer";
42
46
  export * from "./Entities/user";
43
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",
@@ -679,6 +688,52 @@ declare enum CompanyState {
679
688
  ACTIVE = 1
680
689
  }
681
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
+
682
737
  interface LoginProps {
683
738
  email: string;
684
739
  password: string;
@@ -816,6 +871,10 @@ interface NdcAction {
816
871
  sector: string;
817
872
  }
818
873
 
874
+ declare const dateTimeFormat = "dd LLLL yyyy @ HH:mm";
875
+ declare const dateFormat = "dd LLLL yyyy";
876
+ declare const creditUnit = "ITMO";
877
+
819
878
  declare class Company implements BaseEntity {
820
879
  companyId?: number;
821
880
  taxId?: string;
@@ -852,6 +911,11 @@ declare class ProgrammeEntity implements BaseEntity {
852
911
  companyId?: number[];
853
912
  }
854
913
 
914
+ declare class ProgrammeCertify implements BaseEntity {
915
+ programmeId?: string;
916
+ comment?: string;
917
+ }
918
+
855
919
  interface TransferActionModelProps {
856
920
  icon: any;
857
921
  title: string;
@@ -921,4 +985,4 @@ interface TimelineBodyProps {
921
985
  }
922
986
  declare const TimelineBody: FC<TimelineBodyProps>;
923
987
 
924
- export { AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AgricultureProperties, BaseEntity, CarbonSystemType, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, 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, TimelineBody, TimelineBodyProps, 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 };
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.84",
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",