@undp/carbon-library 1.0.70 → 1.0.71

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.
@@ -8,8 +8,8 @@ export interface CoBenefitProps {
8
8
  viewOnly?: boolean;
9
9
  coBenifitsViewDetails?: any;
10
10
  loading?: any;
11
- sdgGoalImages: any;
12
- t: any;
11
+ sdgGoalImages?: any;
12
+ t?: any;
13
13
  }
14
14
  declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
15
15
  export default CoBenifitsComponent;
@@ -2,8 +2,8 @@ import { FC } from 'react';
2
2
  import './info.view.scss';
3
3
  export interface InfoViewProps {
4
4
  data: any;
5
- title: any;
6
- icon: any;
5
+ title?: any;
6
+ icon?: any;
7
7
  hiddenColumns?: any;
8
8
  }
9
9
  declare const InfoView: FC<InfoViewProps>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./ndcActionViewComponent.scss";
3
+ export declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
@@ -11,6 +11,7 @@ export * from "./Investment/AddNewInvestment/investmentCreationComponent";
11
11
  export * from "./Investment/InvestmentManagement/investmentManagementComponent";
12
12
  export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
13
13
  export * from "./NdcActions/AddNdcAction/addNdcActionComponent";
14
+ export * from "./NdcActions/NdcView/ndcActionViewComponent";
14
15
  export * from "./Common/Loading/loading";
15
16
  export * from "./Common/LegendItem/legendItem";
16
17
  export * from "./Common/Maps/mapComponent";
@@ -0,0 +1,50 @@
1
+ import { BuildingType } from "@undp/carbon-credit-calculator";
2
+ import { NdcActionTypes } from "../Enums/ndcActionTypes.enum";
3
+ import { MitigationTypes } from "../Enums/mitigation.types.enum";
4
+ import { NdcActionStatus } from "../Enums/ndcAction.status.enum";
5
+ export interface AgricultureProperties {
6
+ landArea: number;
7
+ landAreaUnit: string;
8
+ }
9
+ export interface SolarProperties {
10
+ energyGeneration: number;
11
+ energyGenerationUnit: string;
12
+ consumerGroup: BuildingType;
13
+ }
14
+ export interface AdaptationProperties {
15
+ implementingAgency: string;
16
+ nationalPlanObjectives: string;
17
+ nationalPlanCoverage: string;
18
+ ghgEmissionsReduced: any;
19
+ ghgEmissionsAvoided: any;
20
+ }
21
+ export interface CoBenefitsProperties {
22
+ }
23
+ export interface EnablementProperties {
24
+ title: string;
25
+ type?: any[];
26
+ report?: string;
27
+ }
28
+ export interface NdcFinancing {
29
+ userEstimatedCredits: number;
30
+ systemEstimatedCredits: number;
31
+ }
32
+ export interface NdcAction {
33
+ programmeId: string;
34
+ programmeName: string;
35
+ action: NdcActionTypes;
36
+ methodology: string;
37
+ typeOfMitigation: MitigationTypes;
38
+ agricultureProperties?: AgricultureProperties;
39
+ solarProperties?: SolarProperties;
40
+ adaptationProperties: AdaptationProperties;
41
+ ndcFinancing?: NdcFinancing;
42
+ monitoringReport?: string;
43
+ coBenefitsProperties?: CoBenefitsProperties;
44
+ enablementProperties?: EnablementProperties;
45
+ constantVersion: string;
46
+ id?: string;
47
+ externalId?: string;
48
+ status: NdcActionStatus;
49
+ sector: string;
50
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum DocumentStatus {
2
+ PENDING = "Pending",
3
+ ACCEPTED = "Accepted",
4
+ REJECTED = "Rejected"
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum DocType {
2
+ DESIGN_DOCUMENT = "0",
3
+ METHODOLOGY_DOCUMENT = "1",
4
+ MONITORING_REPORT = "2",
5
+ VERIFICATION_REPORT = "3"
6
+ }
@@ -23,6 +23,8 @@ export * from "./Enums/sector.enum";
23
23
  export * from "./Enums/commonEnums";
24
24
  export * from "./Enums/sdgGoals.enum";
25
25
  export * from "./Enums/carbonSystemType.enum";
26
+ export * from "./Enums/document.type";
27
+ export * from "./Enums/document.status";
26
28
  export * from "./Definitions/userLogin.definitions";
27
29
  export * from "./Definitions/userInformationContext.definitions";
28
30
  export * from "./Definitions/userForgotPassword.definitions";
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
29
29
 
30
30
  declare const AddNdcActionComponent: (props: any) => React.JSX.Element;
31
31
 
32
+ declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
33
+
32
34
  declare const Loading: () => React.JSX.Element;
33
35
 
34
36
  interface LegendItemItemProps {
@@ -419,6 +421,19 @@ declare enum CarbonSystemType {
419
421
  UNIFIED = 2
420
422
  }
421
423
 
424
+ declare enum DocType {
425
+ DESIGN_DOCUMENT = "0",
426
+ METHODOLOGY_DOCUMENT = "1",
427
+ MONITORING_REPORT = "2",
428
+ VERIFICATION_REPORT = "3"
429
+ }
430
+
431
+ declare enum DocumentStatus {
432
+ PENDING = "Pending",
433
+ ACCEPTED = "Accepted",
434
+ REJECTED = "Rejected"
435
+ }
436
+
422
437
  interface LoginProps {
423
438
  email: string;
424
439
  password: string;
@@ -706,4 +721,4 @@ declare class ProgrammeEntity implements BaseEntity {
706
721
  companyId?: number[];
707
722
  }
708
723
 
709
- export { AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, BaseEntity, CarbonSystemType, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, ESGType, EnergyGenerationUnits, FormElementType, HeaderProps, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, ProfileIcon, ProfileIconProps, Programme, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesT, ProgrammeStage, ProgrammeStageMRV, ProgrammeT, ProgrammeTransfer, ProgrammeViewComponent, RadioButtonStatus, RadioButtonStatus2, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, StasticCard, StasticCardItemProps, Titles, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, 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 };
724
+ export { AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, BaseEntity, CarbonSystemType, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, HeaderProps, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, ProfileIcon, ProfileIconProps, Programme, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesT, ProgrammeStage, ProgrammeStageMRV, ProgrammeT, ProgrammeTransfer, ProgrammeViewComponent, RadioButtonStatus, RadioButtonStatus2, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, StasticCard, StasticCardItemProps, Titles, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
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": {