@undp/carbon-library 1.0.91 → 1.0.93
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +119 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +2 -12
- package/dist/cjs/types/Definitions/Enums/programme.management.columns.enum.d.ts +2 -1
- package/dist/esm/index.js +120 -23
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +2 -12
- package/dist/esm/types/Definitions/Enums/programme.management.columns.enum.d.ts +2 -1
- package/dist/index.d.ts +9 -19
- package/package.json +1 -1
- package/dist/cjs/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +0 -3
- package/dist/esm/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +0 -3
@@ -1,9 +1,9 @@
|
|
1
|
-
import { DateTime } from "luxon";
|
2
1
|
import { ProgrammeTransfer } from "../Entities/programmeTransfer";
|
3
2
|
import { ProgrammeStageR, ProgrammeStageMRV, ProgrammeStageUnified } from "../Enums/programmeStage.enum";
|
4
3
|
import { TypeOfMitigation } from "../Enums/typeOfMitigation.enum";
|
5
4
|
import { CreditTransferStage } from "../Enums/creditTransferStage.enum";
|
6
5
|
import { RcFile } from "rc-upload/lib/interface";
|
6
|
+
import { CarbonSystemType } from "../Enums/carbonSystemType.enum";
|
7
7
|
export declare const getStageEnumVal: (value: string) => string;
|
8
8
|
export declare const getCreditStageVal: (value: string) => string;
|
9
9
|
export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
@@ -91,17 +91,7 @@ export interface ProgrammeU extends Programme {
|
|
91
91
|
emissionReductionExpected: number;
|
92
92
|
emissionReductionAchieved: number;
|
93
93
|
}
|
94
|
-
export declare const getGeneralFields: (programme: Programme) =>
|
95
|
-
title: string;
|
96
|
-
serialNo: string;
|
97
|
-
currentStatus: ProgrammeStageR | ProgrammeStageUnified | ProgrammeStageMRV;
|
98
|
-
applicationType: string;
|
99
|
-
sector: string;
|
100
|
-
sectoralScope: string;
|
101
|
-
startDate: DateTime;
|
102
|
-
endDate: DateTime;
|
103
|
-
buyerCountry: string;
|
104
|
-
};
|
94
|
+
export declare const getGeneralFields: (programme: Programme | ProgrammeU | ProgrammeR | ProgrammeT, system?: CarbonSystemType) => Record<string, any>;
|
105
95
|
export declare const addCommSep: (value: any) => string;
|
106
96
|
export declare const addCommSepRound: (value: any) => string;
|
107
97
|
export declare const addRoundNumber: (value: any) => number;
|
@@ -9,5 +9,6 @@ export declare enum ProgrammeManagementColumns {
|
|
9
9
|
certifierId = "certifierId",
|
10
10
|
serialNo = "serialNo",
|
11
11
|
emissionReductionExpected = "emissionReductionExpected",
|
12
|
-
emissionReductionAchieved = "emissionReductionAchieved"
|
12
|
+
emissionReductionAchieved = "emissionReductionAchieved",
|
13
|
+
emissionReductionAchievedandCreditIssued = "emissionReductionAchievedandCreditIssued"
|
13
14
|
}
|
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
2
|
-
import { DateTime } from 'luxon';
|
3
2
|
import { RcFile } from 'rc-upload/lib/interface';
|
4
3
|
import { RawAxiosResponseHeaders, AxiosResponseHeaders, AxiosRequestConfig } from 'axios';
|
5
4
|
import { BuildingType } from '@undp/carbon-credit-calculator';
|
@@ -210,6 +209,12 @@ declare enum TypeOfMitigation {
|
|
210
209
|
SOLAR = "Solar"
|
211
210
|
}
|
212
211
|
|
212
|
+
declare enum CarbonSystemType {
|
213
|
+
REGISTRY = 0,
|
214
|
+
MRV = 1,
|
215
|
+
UNIFIED = 2
|
216
|
+
}
|
217
|
+
|
213
218
|
declare const getStageEnumVal: (value: string) => string;
|
214
219
|
declare const getCreditStageVal: (value: string) => string;
|
215
220
|
declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
@@ -297,17 +302,7 @@ interface ProgrammeU extends Programme {
|
|
297
302
|
emissionReductionExpected: number;
|
298
303
|
emissionReductionAchieved: number;
|
299
304
|
}
|
300
|
-
declare const getGeneralFields: (programme: Programme) =>
|
301
|
-
title: string;
|
302
|
-
serialNo: string;
|
303
|
-
currentStatus: ProgrammeStageR | ProgrammeStageUnified | ProgrammeStageMRV;
|
304
|
-
applicationType: string;
|
305
|
-
sector: string;
|
306
|
-
sectoralScope: string;
|
307
|
-
startDate: DateTime;
|
308
|
-
endDate: DateTime;
|
309
|
-
buyerCountry: string;
|
310
|
-
};
|
305
|
+
declare const getGeneralFields: (programme: Programme | ProgrammeU | ProgrammeR | ProgrammeT, system?: CarbonSystemType) => Record<string, any>;
|
311
306
|
declare const addCommSep: (value: any) => string;
|
312
307
|
declare const addCommSepRound: (value: any) => string;
|
313
308
|
declare const addRoundNumber: (value: any) => number;
|
@@ -417,7 +412,8 @@ declare enum ProgrammeManagementColumns {
|
|
417
412
|
certifierId = "certifierId",
|
418
413
|
serialNo = "serialNo",
|
419
414
|
emissionReductionExpected = "emissionReductionExpected",
|
420
|
-
emissionReductionAchieved = "emissionReductionAchieved"
|
415
|
+
emissionReductionAchieved = "emissionReductionAchieved",
|
416
|
+
emissionReductionAchievedandCreditIssued = "emissionReductionAchievedandCreditIssued"
|
421
417
|
}
|
422
418
|
|
423
419
|
declare enum InvestmentLevel {
|
@@ -669,12 +665,6 @@ declare enum SdgGoals {
|
|
669
665
|
partnership = "Partnerships for the Goals"
|
670
666
|
}
|
671
667
|
|
672
|
-
declare enum CarbonSystemType {
|
673
|
-
REGISTRY = 0,
|
674
|
-
MRV = 1,
|
675
|
-
UNIFIED = 2
|
676
|
-
}
|
677
|
-
|
678
668
|
declare enum DocType {
|
679
669
|
DESIGN_DOCUMENT = "0",
|
680
670
|
METHODOLOGY_DOCUMENT = "1",
|
package/package.json
CHANGED