@undp/carbon-library 1.0.17-CARBON-363.20 → 1.0.17-CARBON-363.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ export type Period = {
8
8
  };
9
9
  export type NdcDetail = {
10
10
  id?: number;
11
- actionType: NdcActionType;
11
+ actionType: NdcDetailsActionType;
12
12
  nationalPlanObjective: string;
13
13
  kpi: number;
14
14
  ministryName: string;
@@ -20,11 +20,22 @@ export type DateRange = {
20
20
  startYear: number;
21
21
  endYear: number;
22
22
  };
23
- export declare enum NdcActionType {
24
- mainAction = 0,
25
- subAction = 1
23
+ export declare enum NdcDetailsActionType {
24
+ MainAction = "MainAction",
25
+ SubAction = "SubAction"
26
26
  }
27
27
  export declare enum NdcDetailsActionStatus {
28
- pending = 0,
29
- approved = 1
28
+ Pending = "Pending",
29
+ Approved = "Approved",
30
+ Rejected = "Rejected"
30
31
  }
32
+ export declare const getNdcActionStatusEnumVal: (value: string) => string;
33
+ export declare const getNdcActionStatusTagType: (status: NdcDetailsActionStatus) => "error" | "processing" | "default" | "success";
34
+ export type PopupInfo = {
35
+ title: string;
36
+ icon: any;
37
+ actionBtnText: string;
38
+ okAction: any;
39
+ type: "primary" | "danger";
40
+ remarkRequired: boolean;
41
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.17-CARBON-363.20",
3
+ "version": "1.0.17-CARBON-363.35",
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": {