@undp/carbon-library 1.0.274-CARBON-347.2 → 1.0.274-CARBON-404.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/dist/cjs/index.js +843 -1091
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  8. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  9. package/dist/cjs/types/Definitions/Enums/govDep.enum.d.ts +161 -0
  10. package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +0 -4
  11. package/dist/cjs/types/Definitions/Enums/ministry.enum.d.ts +17 -0
  12. package/dist/cjs/types/Definitions/index.d.ts +2 -0
  13. package/dist/cjs/types/index.d.ts +0 -1
  14. package/dist/esm/index.js +846 -1086
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  17. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  18. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  19. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  20. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  21. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  22. package/dist/esm/types/Definitions/Enums/govDep.enum.d.ts +161 -0
  23. package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +0 -4
  24. package/dist/esm/types/Definitions/Enums/ministry.enum.d.ts +17 -0
  25. package/dist/esm/types/Definitions/index.d.ts +2 -0
  26. package/dist/esm/types/index.d.ts +0 -1
  27. package/dist/index.d.ts +188 -27
  28. package/dist/locales/i18n/companyProfile/en.json +2 -0
  29. package/dist/locales/i18n/programme/en.json +1 -3
  30. package/package.json +2 -29
  31. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  32. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  33. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  34. package/dist/cjs/types/Context/index.d.ts +0 -3
  35. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  36. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  37. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  38. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  39. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  40. package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  41. package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  42. package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  43. package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  44. package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  45. package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  46. package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
  47. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  48. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  49. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  50. package/dist/esm/types/Context/index.d.ts +0 -3
  51. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  52. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  53. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  54. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  55. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  56. package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  57. package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  58. package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  59. package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  60. package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  61. package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  62. package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
@@ -10,5 +10,6 @@ export interface CoBenefitProps {
10
10
  loading?: any;
11
11
  sdgGoalImages?: any;
12
12
  translator?: any;
13
+ useConnection?: any;
13
14
  }
14
15
  export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
@@ -9,5 +9,6 @@ export interface ProgrammeRetireFormProps {
9
9
  hideType: boolean;
10
10
  myCompanyId?: number;
11
11
  translator: any;
12
+ useConnection: any;
12
13
  }
13
14
  export declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
@@ -12,6 +12,7 @@ export interface ProgrammeTransferFormProps {
12
12
  userCompanyId: number | undefined;
13
13
  companyRole: string;
14
14
  translator: any;
15
+ useConnection: any;
15
16
  ministryLevelPermission?: boolean;
16
17
  }
17
18
  export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -8,7 +8,9 @@ export interface NdcActionBodyProps {
8
8
  programmeOwnerId?: any;
9
9
  getProgrammeDocs?: any;
10
10
  ministryLevelPermission?: boolean;
11
+ useConnection: any;
11
12
  translator: any;
13
+ useUserContext: any;
12
14
  onFinish?: any;
13
15
  programme?: any;
14
16
  }
@@ -9,6 +9,8 @@ export interface ProgrammeDocumentsProps {
9
9
  getDocumentDetails: any;
10
10
  getProgrammeById: any;
11
11
  ministryLevelPermission?: boolean;
12
+ useConnection: any;
13
+ useUserContext: any;
12
14
  translator: any;
13
15
  methodologyDocumentUpdated: any;
14
16
  programmeStatus?: any;
@@ -3,8 +3,6 @@ import { ReactNode } from 'react';
3
3
  export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
4
4
  export type ConnectionContextProviderProps = {
5
5
  serverURL: string;
6
- statServerUrl?: string;
7
- t: any;
8
6
  children: ReactNode;
9
7
  };
10
8
  export interface Response<T> {
@@ -25,5 +23,4 @@ export type ConnectionProps = {
25
23
  updateToken: (token?: string) => void;
26
24
  token?: string;
27
25
  removeToken: (tkn?: string) => void;
28
- statServerUrl?: string;
29
26
  };
@@ -0,0 +1,161 @@
1
+ export declare enum GovDepartment {
2
+ "Cocoa Research Institute" = "1",
3
+ "National Agricultural Extension, Research and Liaison Services" = "2",
4
+ "National Veterinary Research Institute" = "3",
5
+ "Agricultural Insurance Corporation" = "4",
6
+ "National Root Crops Research Institute" = "5",
7
+ "Agricultural Research Council" = "6",
8
+ "Institute for Oceanography and Marine Research" = "7",
9
+ "Institute for Oil Palm Research" = "8",
10
+ "Agricultural Quarantine Service" = "9",
11
+ "National Horticultural Research Institute" = "10",
12
+ "Federal Airports Authority" = "11",
13
+ "Airspace Management Agency" = "12",
14
+ "Civil Aviation Authority" = "13",
15
+ "Safety Investigation Bureau" = "14",
16
+ "Meteorological Agency" = "15",
17
+ "College of Aviation Technology" = "16",
18
+ "National Information Technology Development Agency" = "17",
19
+ "Satellite Limited" = "18",
20
+ "Broadcasting Commission" = "19",
21
+ "Commission" = "20",
22
+ "Postal Service" = "21",
23
+ "National Frequency Management Council" = "22",
24
+ "Television Authority" = "23",
25
+ "Galaxy Backbone" = "24",
26
+ "Asset Management Corporation" = "25",
27
+ "Social Security Administration" = "26",
28
+ "Budget Office of the Federation" = "27",
29
+ "Bureau of Public Enterprises" = "28",
30
+ "Bureau of Public Procurement" = "29",
31
+ "Central Bank" = "30",
32
+ "Corporate Affairs Commission" = "31",
33
+ "Debt Management Office" = "32",
34
+ "Inland Revenue Service" = "33",
35
+ "Mortgage Bank" = "34",
36
+ "Fiscal Responsibility Commission" = "35",
37
+ "Infrastructure Concession Regulatory Commission" = "36",
38
+ "National Bureau of Statistics" = "37",
39
+ "National Council on Privatisation" = "38",
40
+ "National Insurance Commission" = "39",
41
+ "National Pension Commission" = "40",
42
+ "National Planning Commission" = "41",
43
+ "National Sugar Development Council" = "42",
44
+ "Niger Delta Development Commission" = "43",
45
+ "Customs Service" = "44",
46
+ "Deposit Insurance Corporation" = "45",
47
+ "Investment Promotion Commission" = "46",
48
+ "Export - Import Bank" = "47",
49
+ "Export Promotion Council" = "48",
50
+ "Oil and Gas Free Zones Authority" = "49",
51
+ "Export Processing Zones Authority" = "50",
52
+ "Revenue Mobilisation Allocation and Fiscal Commission" = "51",
53
+ "Securities and Exchange Commission" = "52",
54
+ "Standards Organisation" = "53",
55
+ "Small and Medium Enterprise Development Agency" = "54",
56
+ "National Board for Arabic And Islamic Studies" = "55",
57
+ "Joint Admissions and Matriculation Board" = "56",
58
+ "National Examination Council" = "115",
59
+ "National Open University" = "57",
60
+ "National Teachers Institute" = "58",
61
+ "National Universities Commission" = "59",
62
+ "Tertiary Education Trust Fund" = "60",
63
+ "Teachers Registration Council" = "61",
64
+ "National Business and Technical Examinations Board" = "62",
65
+ "Universal Basic Education Commission" = "63",
66
+ "West African Examination Council" = "64",
67
+ "National Commission for Colleges of Education" = "65",
68
+ "National Library" = "66",
69
+ "Midstream and Downstream Petroleum Regulatory Authority" = "67",
70
+ "Upstream Petroleum Regulatory Commission" = "68",
71
+ "Electricity Management Services Limited" = "69",
72
+ "Energy Commission" = "70",
73
+ "National Power Training Institute" = "71",
74
+ "Electricity Regulatory Commission" = "72",
75
+ "Content Monitoring and Development Board" = "73",
76
+ "National Petroleum Corporation" = "74",
77
+ "Nuclear Regulatory Authority Science & Technology" = "75",
78
+ "Petroleum Product Pricing Regulatory Agency" = "76",
79
+ "Power Holding Company (defunct)" = "77",
80
+ "Rural Electrification Agency" = "78",
81
+ "Transmission Company" = "79",
82
+ "Environmental Protection Agency (defunct)" = "80",
83
+ "Forestry Research Institute" = "81",
84
+ "National Biosafety Management Agency" = "82",
85
+ "National Environmental Standards and Regulations Enforcement Agency" = "83",
86
+ "National Oil Spill Detection and Response Agency" = "84",
87
+ "Environmental Health Officers Registration Council" = "85",
88
+ "National Health Insurance Scheme" = "86",
89
+ "Institute for Pharmaceutical Research and Development" = "87",
90
+ "Agency for the Control of AIDS" = "88",
91
+ "Agency for Food and Drug Administration and Control" = "89",
92
+ "Primary Health Care Development Agency" = "90",
93
+ "Institute of Medical Research" = "91",
94
+ "Centre for Disease Control" = "92",
95
+ "Drug Law Enforcement Agency" = "93",
96
+ "Defence Intelligence Agency" = "94",
97
+ "State Security Service" = "95",
98
+ "National Intelligence Agency" = "96",
99
+ "Financial Intelligence Unit" = "97",
100
+ "National Judicial Council" = "98",
101
+ "Federal Judicial Service Commission" = "99",
102
+ "National Judicial Institute" = "100",
103
+ "Maritime Administration and Safety Agency" = "101",
104
+ "Ports Authority" = "102",
105
+ "Shippers' Council" = "103",
106
+ "Broadcasting Organisation" = "104",
107
+ "News Agency" = "105",
108
+ "Press Council" = "106",
109
+ "Television Authority Media" = "107",
110
+ "Agency For Science and Engineering Infrastructure" = "108",
111
+ "Biotechnology Development Agency" = "109",
112
+ "Centre for Remote Sensing" = "110",
113
+ "Science and Technology Complex" = "111",
114
+ "Office for Technology Acquisition and Promotion" = "112",
115
+ "Space Research and Development Agency" = "113",
116
+ "Nuclear Regulatory Authority" = "114",
117
+ "Raw Materials Research and Development Council" = "116",
118
+ "Communications Satellite Ltd" = "117",
119
+ "Centre for Technology Management" = "118",
120
+ "Hydrological Services Agency" = "119",
121
+ "Integrated Water Resources Commission" = "120",
122
+ "Water Resources Institute" = "121",
123
+ "River Basin Development Authorities" = "122",
124
+ "Centre for Black and African Arts and Civilization" = "123",
125
+ "Automotive Design and Development Council" = "124",
126
+ "Code of Conduct Bureau" = "125",
127
+ "Computer Professionals Registration Council" = "126",
128
+ "Consumer Protection Council" = "127",
129
+ "Economic and Financial Crimes Commission" = "128",
130
+ "Federal Character Commission" = "129",
131
+ "Federal Housing Authority" = "130",
132
+ "Corrupt Practices and Other Related Offences Commission" = "131",
133
+ "Independent National Electoral Commission" = "132",
134
+ "Industrial Training Fund" = "133",
135
+ "Legal Aid Council" = "134",
136
+ "Agency for the Prohibition of Trafficking in Persons" = "135",
137
+ "National Boundary Commission" = "136",
138
+ "National Council of Arts and Culture" = "137",
139
+ "Economic Reconstruction Fund" = "138",
140
+ "Emergency Management Agency" = "139",
141
+ "Hajj Commission" = "140",
142
+ "Human Rights Commission" = "141",
143
+ "Identity Management Commission" = "142",
144
+ "Institute for Hospitality Tourism" = "143",
145
+ "Lottery Regulatory Commission" = "144",
146
+ "Orientation Agency" = "145",
147
+ "Population Commission" = "146",
148
+ "Poverty Eradication Programme (defunct)" = "147",
149
+ "Salaries, Incomes and Wages Commission" = "148",
150
+ "Sports Commission" = "149",
151
+ "Extractive Industries Transparency Initiative" = "150",
152
+ "Immigration Service" = "151",
153
+ "Building and Road Research Institute" = "152",
154
+ "Institute of Building" = "153",
155
+ "Christian Pilgrim Commission" = "154",
156
+ "Copyright Commission" = "155",
157
+ "Tourism Development Corporation" = "156",
158
+ "Public Complaints Commission" = "157",
159
+ "Surveyors Council" = "158",
160
+ "National Lottery Trust Fund" = "159"
161
+ }
@@ -18,10 +18,6 @@ export declare enum InvestmentCreationType {
18
18
  EXISTING = "Existing",
19
19
  NEW = "New"
20
20
  }
21
- export declare enum InvestmentOwnershipType {
22
- PROJECT = "Project",
23
- NATIONAL = "National"
24
- }
25
21
  export declare enum InvestmentStream {
26
22
  CLIMATE_FINANCE = "ClimateFinance",
27
23
  CARBON_MARKET = "CarbonMarket"
@@ -0,0 +1,17 @@
1
+ export declare enum Ministry {
2
+ Agriculture = "Agriculture",
3
+ Aviation = "Aviation",
4
+ Communications = "Communications",
5
+ Economy = "Economy",
6
+ Education = "Education",
7
+ Energy = "Energy",
8
+ Environment = "Environment",
9
+ Health = "Health",
10
+ Intelligence = "Intelligence",
11
+ Judiciary = "Judiciary",
12
+ Maritime = "Maritime",
13
+ Media = "Media",
14
+ ScienceAndTechnology = "ScienceAndTechnology",
15
+ WaterResources = "WaterResources",
16
+ Other = "Other"
17
+ }
@@ -28,6 +28,8 @@ export * from "./Enums/company.state.enum";
28
28
  export * from "./Enums/widget.type.enum";
29
29
  export * from "./Enums/statsCards.type.enum";
30
30
  export * from "./Enums/action.enum";
31
+ export * from "./Enums/govDep.enum";
32
+ export * from "./Enums/ministry.enum";
31
33
  export * from "./Definitions/userLogin.definitions";
32
34
  export * from "./Definitions/userInformationContext.definitions";
33
35
  export * from "./Definitions/userForgotPassword.definitions";
@@ -1,4 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
- export * from './Context';
package/dist/index.d.ts CHANGED
@@ -129,6 +129,7 @@ interface CoBenefitProps {
129
129
  loading?: any;
130
130
  sdgGoalImages?: any;
131
131
  translator?: any;
132
+ useConnection?: any;
132
133
  }
133
134
  declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
134
135
 
@@ -359,6 +360,7 @@ interface ProgrammeRetireFormProps {
359
360
  hideType: boolean;
360
361
  myCompanyId?: number;
361
362
  translator: any;
363
+ useConnection: any;
362
364
  }
363
365
  declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
364
366
 
@@ -385,6 +387,7 @@ interface ProgrammeTransferFormProps {
385
387
  userCompanyId: number | undefined;
386
388
  companyRole: string;
387
389
  translator: any;
390
+ useConnection: any;
388
391
  ministryLevelPermission?: boolean;
389
392
  }
390
393
  declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -456,10 +459,6 @@ declare enum InvestmentCreationType {
456
459
  EXISTING = "Existing",
457
460
  NEW = "New"
458
461
  }
459
- declare enum InvestmentOwnershipType {
460
- PROJECT = "Project",
461
- NATIONAL = "National"
462
- }
463
462
  declare enum InvestmentStream {
464
463
  CLIMATE_FINANCE = "ClimateFinance",
465
464
  CARBON_MARKET = "CarbonMarket"
@@ -932,6 +931,186 @@ declare enum Action {
932
931
  Reject = "reject"
933
932
  }
934
933
 
934
+ declare enum GovDepartment {
935
+ "Cocoa Research Institute" = "1",
936
+ "National Agricultural Extension, Research and Liaison Services" = "2",
937
+ "National Veterinary Research Institute" = "3",
938
+ "Agricultural Insurance Corporation" = "4",
939
+ "National Root Crops Research Institute" = "5",
940
+ "Agricultural Research Council" = "6",
941
+ "Institute for Oceanography and Marine Research" = "7",
942
+ "Institute for Oil Palm Research" = "8",
943
+ "Agricultural Quarantine Service" = "9",
944
+ "National Horticultural Research Institute" = "10",
945
+ "Federal Airports Authority" = "11",
946
+ "Airspace Management Agency" = "12",
947
+ "Civil Aviation Authority" = "13",
948
+ "Safety Investigation Bureau" = "14",
949
+ "Meteorological Agency" = "15",
950
+ "College of Aviation Technology" = "16",
951
+ "National Information Technology Development Agency" = "17",
952
+ "Satellite Limited" = "18",
953
+ "Broadcasting Commission" = "19",
954
+ "Commission" = "20",
955
+ "Postal Service" = "21",
956
+ "National Frequency Management Council" = "22",
957
+ "Television Authority" = "23",
958
+ "Galaxy Backbone" = "24",
959
+ "Asset Management Corporation" = "25",
960
+ "Social Security Administration" = "26",
961
+ "Budget Office of the Federation" = "27",
962
+ "Bureau of Public Enterprises" = "28",
963
+ "Bureau of Public Procurement" = "29",
964
+ "Central Bank" = "30",
965
+ "Corporate Affairs Commission" = "31",
966
+ "Debt Management Office" = "32",
967
+ "Inland Revenue Service" = "33",
968
+ "Mortgage Bank" = "34",
969
+ "Fiscal Responsibility Commission" = "35",
970
+ "Infrastructure Concession Regulatory Commission" = "36",
971
+ "National Bureau of Statistics" = "37",
972
+ "National Council on Privatisation" = "38",
973
+ "National Insurance Commission" = "39",
974
+ "National Pension Commission" = "40",
975
+ "National Planning Commission" = "41",
976
+ "National Sugar Development Council" = "42",
977
+ "Niger Delta Development Commission" = "43",
978
+ "Customs Service" = "44",
979
+ "Deposit Insurance Corporation" = "45",
980
+ "Investment Promotion Commission" = "46",
981
+ "Export - Import Bank" = "47",
982
+ "Export Promotion Council" = "48",
983
+ "Oil and Gas Free Zones Authority" = "49",
984
+ "Export Processing Zones Authority" = "50",
985
+ "Revenue Mobilisation Allocation and Fiscal Commission" = "51",
986
+ "Securities and Exchange Commission" = "52",
987
+ "Standards Organisation" = "53",
988
+ "Small and Medium Enterprise Development Agency" = "54",
989
+ "National Board for Arabic And Islamic Studies" = "55",
990
+ "Joint Admissions and Matriculation Board" = "56",
991
+ "National Examination Council" = "115",
992
+ "National Open University" = "57",
993
+ "National Teachers Institute" = "58",
994
+ "National Universities Commission" = "59",
995
+ "Tertiary Education Trust Fund" = "60",
996
+ "Teachers Registration Council" = "61",
997
+ "National Business and Technical Examinations Board" = "62",
998
+ "Universal Basic Education Commission" = "63",
999
+ "West African Examination Council" = "64",
1000
+ "National Commission for Colleges of Education" = "65",
1001
+ "National Library" = "66",
1002
+ "Midstream and Downstream Petroleum Regulatory Authority" = "67",
1003
+ "Upstream Petroleum Regulatory Commission" = "68",
1004
+ "Electricity Management Services Limited" = "69",
1005
+ "Energy Commission" = "70",
1006
+ "National Power Training Institute" = "71",
1007
+ "Electricity Regulatory Commission" = "72",
1008
+ "Content Monitoring and Development Board" = "73",
1009
+ "National Petroleum Corporation" = "74",
1010
+ "Nuclear Regulatory Authority Science & Technology" = "75",
1011
+ "Petroleum Product Pricing Regulatory Agency" = "76",
1012
+ "Power Holding Company (defunct)" = "77",
1013
+ "Rural Electrification Agency" = "78",
1014
+ "Transmission Company" = "79",
1015
+ "Environmental Protection Agency (defunct)" = "80",
1016
+ "Forestry Research Institute" = "81",
1017
+ "National Biosafety Management Agency" = "82",
1018
+ "National Environmental Standards and Regulations Enforcement Agency" = "83",
1019
+ "National Oil Spill Detection and Response Agency" = "84",
1020
+ "Environmental Health Officers Registration Council" = "85",
1021
+ "National Health Insurance Scheme" = "86",
1022
+ "Institute for Pharmaceutical Research and Development" = "87",
1023
+ "Agency for the Control of AIDS" = "88",
1024
+ "Agency for Food and Drug Administration and Control" = "89",
1025
+ "Primary Health Care Development Agency" = "90",
1026
+ "Institute of Medical Research" = "91",
1027
+ "Centre for Disease Control" = "92",
1028
+ "Drug Law Enforcement Agency" = "93",
1029
+ "Defence Intelligence Agency" = "94",
1030
+ "State Security Service" = "95",
1031
+ "National Intelligence Agency" = "96",
1032
+ "Financial Intelligence Unit" = "97",
1033
+ "National Judicial Council" = "98",
1034
+ "Federal Judicial Service Commission" = "99",
1035
+ "National Judicial Institute" = "100",
1036
+ "Maritime Administration and Safety Agency" = "101",
1037
+ "Ports Authority" = "102",
1038
+ "Shippers' Council" = "103",
1039
+ "Broadcasting Organisation" = "104",
1040
+ "News Agency" = "105",
1041
+ "Press Council" = "106",
1042
+ "Television Authority Media" = "107",
1043
+ "Agency For Science and Engineering Infrastructure" = "108",
1044
+ "Biotechnology Development Agency" = "109",
1045
+ "Centre for Remote Sensing" = "110",
1046
+ "Science and Technology Complex" = "111",
1047
+ "Office for Technology Acquisition and Promotion" = "112",
1048
+ "Space Research and Development Agency" = "113",
1049
+ "Nuclear Regulatory Authority" = "114",
1050
+ "Raw Materials Research and Development Council" = "116",
1051
+ "Communications Satellite Ltd" = "117",
1052
+ "Centre for Technology Management" = "118",
1053
+ "Hydrological Services Agency" = "119",
1054
+ "Integrated Water Resources Commission" = "120",
1055
+ "Water Resources Institute" = "121",
1056
+ "River Basin Development Authorities" = "122",
1057
+ "Centre for Black and African Arts and Civilization" = "123",
1058
+ "Automotive Design and Development Council" = "124",
1059
+ "Code of Conduct Bureau" = "125",
1060
+ "Computer Professionals Registration Council" = "126",
1061
+ "Consumer Protection Council" = "127",
1062
+ "Economic and Financial Crimes Commission" = "128",
1063
+ "Federal Character Commission" = "129",
1064
+ "Federal Housing Authority" = "130",
1065
+ "Corrupt Practices and Other Related Offences Commission" = "131",
1066
+ "Independent National Electoral Commission" = "132",
1067
+ "Industrial Training Fund" = "133",
1068
+ "Legal Aid Council" = "134",
1069
+ "Agency for the Prohibition of Trafficking in Persons" = "135",
1070
+ "National Boundary Commission" = "136",
1071
+ "National Council of Arts and Culture" = "137",
1072
+ "Economic Reconstruction Fund" = "138",
1073
+ "Emergency Management Agency" = "139",
1074
+ "Hajj Commission" = "140",
1075
+ "Human Rights Commission" = "141",
1076
+ "Identity Management Commission" = "142",
1077
+ "Institute for Hospitality Tourism" = "143",
1078
+ "Lottery Regulatory Commission" = "144",
1079
+ "Orientation Agency" = "145",
1080
+ "Population Commission" = "146",
1081
+ "Poverty Eradication Programme (defunct)" = "147",
1082
+ "Salaries, Incomes and Wages Commission" = "148",
1083
+ "Sports Commission" = "149",
1084
+ "Extractive Industries Transparency Initiative" = "150",
1085
+ "Immigration Service" = "151",
1086
+ "Building and Road Research Institute" = "152",
1087
+ "Institute of Building" = "153",
1088
+ "Christian Pilgrim Commission" = "154",
1089
+ "Copyright Commission" = "155",
1090
+ "Tourism Development Corporation" = "156",
1091
+ "Public Complaints Commission" = "157",
1092
+ "Surveyors Council" = "158",
1093
+ "National Lottery Trust Fund" = "159"
1094
+ }
1095
+
1096
+ declare enum Ministry {
1097
+ Agriculture = "Agriculture",
1098
+ Aviation = "Aviation",
1099
+ Communications = "Communications",
1100
+ Economy = "Economy",
1101
+ Education = "Education",
1102
+ Energy = "Energy",
1103
+ Environment = "Environment",
1104
+ Health = "Health",
1105
+ Intelligence = "Intelligence",
1106
+ Judiciary = "Judiciary",
1107
+ Maritime = "Maritime",
1108
+ Media = "Media",
1109
+ ScienceAndTechnology = "ScienceAndTechnology",
1110
+ WaterResources = "WaterResources",
1111
+ Other = "Other"
1112
+ }
1113
+
935
1114
  interface LoginProps {
936
1115
  email: string;
937
1116
  password: string;
@@ -989,8 +1168,6 @@ interface CountrySelect {
989
1168
  type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
990
1169
  type ConnectionContextProviderProps = {
991
1170
  serverURL: string;
992
- statServerUrl?: string;
993
- t: any;
994
1171
  children: ReactNode;
995
1172
  };
996
1173
  interface Response<T> {
@@ -1011,7 +1188,6 @@ type ConnectionProps = {
1011
1188
  updateToken: (token?: string) => void;
1012
1189
  token?: string;
1013
1190
  removeToken: (tkn?: string) => void;
1014
- statServerUrl?: string;
1015
1191
  };
1016
1192
 
1017
1193
  type HeaderProps = {
@@ -1156,7 +1332,9 @@ interface NdcActionBodyProps {
1156
1332
  programmeOwnerId?: any;
1157
1333
  getProgrammeDocs?: any;
1158
1334
  ministryLevelPermission?: boolean;
1335
+ useConnection: any;
1159
1336
  translator: any;
1337
+ useUserContext: any;
1160
1338
  onFinish?: any;
1161
1339
  programme?: any;
1162
1340
  }
@@ -1177,6 +1355,8 @@ interface ProgrammeDocumentsProps {
1177
1355
  getDocumentDetails: any;
1178
1356
  getProgrammeById: any;
1179
1357
  ministryLevelPermission?: boolean;
1358
+ useConnection: any;
1359
+ useUserContext: any;
1180
1360
  translator: any;
1181
1361
  methodologyDocumentUpdated: any;
1182
1362
  programmeStatus?: any;
@@ -1217,23 +1397,4 @@ declare const TooltipColor = "#6ACDFF";
1217
1397
  declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
1218
1398
  declare const InvestmentColor = "#9155FD";
1219
1399
 
1220
- declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
1221
-
1222
- declare const useConnection: () => ConnectionProps;
1223
-
1224
- declare const UserContext: React.Context<UserContextProps>;
1225
- declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1226
-
1227
- declare const useUserContext: () => UserContextProps;
1228
-
1229
- declare const SettingsContext: React.Context<{
1230
- isTransferFrozen: boolean;
1231
- setTransferFrozen: (value: boolean) => void;
1232
- }>;
1233
- declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1234
- declare const useSettingsContext: () => {
1235
- isTransferFrozen: boolean;
1236
- setTransferFrozen: (value: boolean) => void;
1237
- };
1238
-
1239
- export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentOwnershipType, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, 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, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContext, UserContextProps, UserCreationProps, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext, userForgotPasswordProps };
1400
+ export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, GovDepartment, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, Ministry, MitigationSubTypes, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcDetailsComponent, 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, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
@@ -12,6 +12,8 @@
12
12
  "companyRole": "Role",
13
13
  "email" : "Email",
14
14
  "phoneNo" : "Phone",
15
+ "ministryName": "Ministry",
16
+ "govDepName": "Government Department",
15
17
  "website" : "Website",
16
18
  "address" : "Address",
17
19
  "creditBalance":"Credit Balance",
@@ -83,7 +83,5 @@
83
83
  "addSupport": "Add Support",
84
84
  "addSupportBtnText": "ADD SUPPORT",
85
85
  "addSupportSub": "Add Support to a project in the Transparency System",
86
- "programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number",
87
- "existingInvestmentSource":"Source",
88
- "noInvestmentData":"No financing information available"
86
+ "programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number"
89
87
  }
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.274-CARBON-347.2",
3
+ "version": "1.0.274-CARBON-404.1",
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": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "rollup -c --bundleConfigAsCjs",
9
- "prepare": "npm run build",
10
- "storybook": "storybook dev -p 6006",
11
- "build-storybook": "storybook build"
9
+ "prepare": "npm run build"
12
10
  },
13
11
  "keywords": [],
14
12
  "author": "",
@@ -18,14 +16,10 @@
18
16
  "@rollup/plugin-json": "^6.0.1",
19
17
  "@rollup/plugin-node-resolve": "^15.0.2",
20
18
  "@rollup/plugin-typescript": "^11.1.1",
21
- "@storybook/addon-styling-webpack": "^0.0.5",
22
19
  "@undp/carbon-credit-calculator": "^1.1.1",
23
- "jwt-decode": "^3.1.2",
24
20
  "node-sass": "^7.0.3",
25
21
  "postcss": "^8.4.23",
26
22
  "react-circle-flags": "^0.0.19",
27
- "react-i18next": "^12.0.0",
28
- "react-router-dom": "^6.4.3",
29
23
  "rollup": "^3.22.0",
30
24
  "rollup-plugin-copy": "^3.5.0",
31
25
  "rollup-plugin-dts": "^5.3.0",
@@ -36,19 +30,6 @@
36
30
  },
37
31
  "devDependencies": {
38
32
  "@ant-design/icons": "^5.2.5",
39
- "@babel/preset-env": "^7.23.3",
40
- "@babel/preset-react": "^7.23.3",
41
- "@babel/preset-typescript": "^7.23.3",
42
- "@storybook/addon-essentials": "7.5.3",
43
- "@storybook/addon-interactions": "7.5.3",
44
- "@storybook/addon-links": "7.5.3",
45
- "@storybook/addon-onboarding": "1.0.8",
46
- "@storybook/blocks": "7.5.3",
47
- "@storybook/preset-ant-design": "^0.0.2",
48
- "@storybook/preset-create-react-app": "^7.5.3",
49
- "@storybook/react": "7.5.3",
50
- "@storybook/react-webpack5": "7.5.3",
51
- "@storybook/testing-library": "0.2.2",
52
33
  "@types/luxon": "^3.1.0",
53
34
  "@types/mapbox-gl": "^2.7.10",
54
35
  "@types/react": "^18.0.25",
@@ -58,21 +39,13 @@
58
39
  "axios": "^1.1.3",
59
40
  "buffer": "^6.0.3",
60
41
  "class-transformer": "^0.5.1",
61
- "css-loader": "^6.8.1",
62
- "i18next": "^22.0.6",
63
- "i18next-browser-languagedetector": "^7.0.1",
64
- "i18next-http-backend": "^2.0.1",
65
42
  "luxon": "^3.2.1",
66
43
  "mapbox-gl": "^2.11.1",
67
44
  "react": "^18.2.0",
68
45
  "react-apexcharts": "^1.4.0",
69
46
  "react-bootstrap-icons": "^1.10.2",
70
- "react-dom": "18.2.0",
71
47
  "react-mapbox-gl": "^5.1.1",
72
48
  "react-phone-number-input": "^3.2.12",
73
- "sass-loader": "^13.3.2",
74
- "storybook": "7.5.3",
75
- "style-loader": "^3.3.3",
76
49
  "validator": "^13.9.0"
77
50
  },
78
51
  "peerDependencies": {