@undp/carbon-library 1.0.61 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/cjs/index.js +3688 -2103
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/Investment/investmentActionModel.d.ts +18 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +2 -2
  5. package/dist/cjs/types/Components/Investment/AddNewInvestment/investmentCreationComponent.d.ts +3 -0
  6. package/dist/cjs/types/Components/Investment/InvestmentManagement/investmentManagementComponent.d.ts +4 -0
  7. package/dist/cjs/types/Components/NdcActions/NdcActionManagement/ndcActionManagementComponent.d.ts +3 -0
  8. package/dist/cjs/types/Components/index.d.ts +4 -1
  9. package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +55 -71
  10. package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +3 -2
  11. package/dist/cjs/types/Definitions/Enums/TxType.enum.d.ts +12 -0
  12. package/dist/cjs/types/Definitions/Enums/company.role.enum.d.ts +3 -1
  13. package/dist/cjs/types/Definitions/Enums/creditTransferStage.enum.d.ts +8 -0
  14. package/dist/cjs/types/Definitions/Enums/eSGType.enum.d.ts +16 -0
  15. package/dist/cjs/types/Definitions/Enums/instrument.enum.d.ts +8 -0
  16. package/dist/cjs/types/Definitions/Enums/investment.enum.d.ts +20 -0
  17. package/dist/cjs/types/Definitions/Enums/ndcAction.status.enum.d.ts +6 -0
  18. package/dist/cjs/types/Definitions/Enums/ndcActionTypes.enum.d.ts +10 -0
  19. package/dist/cjs/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  20. package/dist/cjs/types/Definitions/Enums/programmeStageMRV.enum.d.ts +6 -0
  21. package/dist/cjs/types/Definitions/Enums/retireType.enum.d.ts +5 -0
  22. package/dist/cjs/types/Definitions/Enums/role.enum.d.ts +6 -0
  23. package/dist/cjs/types/Definitions/Enums/sectoralScope.enum.d.ts +17 -0
  24. package/dist/cjs/types/Definitions/Enums/typeOfMitigation.enum.d.ts +4 -0
  25. package/dist/cjs/types/Definitions/index.d.ts +14 -0
  26. package/dist/cjs/types/Styles/role.color.constants.d.ts +2 -0
  27. package/dist/esm/index.js +3713 -2136
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/types/Components/Common/Investment/investmentActionModel.d.ts +18 -0
  30. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +2 -2
  31. package/dist/esm/types/Components/Investment/AddNewInvestment/investmentCreationComponent.d.ts +3 -0
  32. package/dist/esm/types/Components/Investment/InvestmentManagement/investmentManagementComponent.d.ts +4 -0
  33. package/dist/esm/types/Components/NdcActions/NdcActionManagement/ndcActionManagementComponent.d.ts +3 -0
  34. package/dist/esm/types/Components/index.d.ts +4 -1
  35. package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +55 -71
  36. package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +3 -2
  37. package/dist/esm/types/Definitions/Enums/TxType.enum.d.ts +12 -0
  38. package/dist/esm/types/Definitions/Enums/company.role.enum.d.ts +3 -1
  39. package/dist/esm/types/Definitions/Enums/creditTransferStage.enum.d.ts +8 -0
  40. package/dist/esm/types/Definitions/Enums/eSGType.enum.d.ts +16 -0
  41. package/dist/esm/types/Definitions/Enums/instrument.enum.d.ts +8 -0
  42. package/dist/esm/types/Definitions/Enums/investment.enum.d.ts +20 -0
  43. package/dist/esm/types/Definitions/Enums/ndcAction.status.enum.d.ts +6 -0
  44. package/dist/esm/types/Definitions/Enums/ndcActionTypes.enum.d.ts +10 -0
  45. package/dist/esm/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  46. package/dist/esm/types/Definitions/Enums/programmeStageMRV.enum.d.ts +6 -0
  47. package/dist/esm/types/Definitions/Enums/retireType.enum.d.ts +5 -0
  48. package/dist/esm/types/Definitions/Enums/role.enum.d.ts +6 -0
  49. package/dist/esm/types/Definitions/Enums/sectoralScope.enum.d.ts +17 -0
  50. package/dist/esm/types/Definitions/Enums/typeOfMitigation.enum.d.ts +4 -0
  51. package/dist/esm/types/Definitions/index.d.ts +14 -0
  52. package/dist/esm/types/Styles/role.color.constants.d.ts +2 -0
  53. package/dist/index.d.ts +216 -74
  54. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -8,8 +8,6 @@ declare const AddNewCompanyComponent: (props: any) => React.JSX.Element;
8
8
 
9
9
  declare const CompanyProfileComponent: (props: any) => React.JSX.Element;
10
10
 
11
- declare const UserManagementComponent: (props: any) => React.JSX.Element;
12
-
13
11
  declare const ProgrammeManagementComponent: (props: any) => React.JSX.Element;
14
12
 
15
13
  declare const ProgrammeViewComponent: (props: any) => React.JSX.Element;
@@ -18,6 +16,14 @@ declare const AddNewUserComponent: (props: any) => React.JSX.Element;
18
16
 
19
17
  declare const UserProfileComponent: (props: any) => React.JSX.Element;
20
18
 
19
+ declare const UserManagementComponent: (props: any) => React.JSX.Element;
20
+
21
+ declare const InvestmentCreationComponent: (props: any) => React.JSX.Element;
22
+
23
+ declare const InvestmentManagementComponent: (props: any) => React.JSX.Element;
24
+
25
+ declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
26
+
21
27
  declare const Loading: () => React.JSX.Element;
22
28
 
23
29
  interface LegendItemItemProps {
@@ -122,6 +128,27 @@ declare enum ProgrammeManagementColumns {
122
128
  emissionReductionAchieved = "emissionReductionAchieved"
123
129
  }
124
130
 
131
+ declare enum InvestmentLevel {
132
+ NATIONAL = "National",
133
+ INTERNATIONAL = "International"
134
+ }
135
+ declare enum InvestmentStatus {
136
+ PENDING = "Pending",
137
+ APPROVED = "Approved",
138
+ REJECTED = "Rejected",
139
+ CANCELLED = "Cancelled"
140
+ }
141
+ declare const getInvestmentStatusEnumVal: (value: string) => string;
142
+ declare const getStatusTagType: (status: InvestmentStatus) => "error" | "processing" | "default" | "success";
143
+ declare enum InvestmentType {
144
+ PUBLIC = "Public",
145
+ PRIVATE = "Private"
146
+ }
147
+ declare enum InvestmentStream {
148
+ CLIMATE_FINANCE = "ClimateFinance",
149
+ CARBON_MARKET = "CarbonMarket"
150
+ }
151
+
125
152
  declare enum MitigationTypes {
126
153
  AGRICULTURE = "Agriculture",
127
154
  BIOMASS_ENERGY = "BiomassEnergy",
@@ -153,6 +180,141 @@ declare const mitigationTypeList: {
153
180
  label: string;
154
181
  }[];
155
182
 
183
+ declare enum ESGType {
184
+ AAA = "AAA",
185
+ AA = "AA",
186
+ A = "A",
187
+ AR = "A(R)",
188
+ BBB = "BBB",
189
+ BB = "BB",
190
+ B = "B",
191
+ BR = "B(R)",
192
+ B13 = "B13",
193
+ B13R = "B13(R)",
194
+ CCC = "CCC",
195
+ C = "C",
196
+ CR = "C(R)",
197
+ FI = "FI"
198
+ }
199
+
200
+ declare enum Instrument {
201
+ LOAN = "Loan",
202
+ RESULT_BASED = "ResultBased",
203
+ GRANT = "Grant",
204
+ EQUITY = "Equity",
205
+ GUARANTEE = "Guarantee",
206
+ OTHER = "Other"
207
+ }
208
+
209
+ declare enum NdcActionStatus {
210
+ PENDING = "Pending",
211
+ APPROVED = "Approved"
212
+ }
213
+ declare const getNdcActionStatusEnumVal: (value: string) => string;
214
+ declare const getNdcStatusTagType: (status: NdcActionStatus) => "processing" | "default" | "success";
215
+
216
+ declare enum NdcActionTypes {
217
+ Mitigation = "mitigation",
218
+ Adaptation = "adaptation",
219
+ Enablement = "enablement",
220
+ CrossCutting = "crosscutting"
221
+ }
222
+ declare const ndcActionTypeList: {
223
+ value: string;
224
+ label: string;
225
+ }[];
226
+
227
+ declare enum Role {
228
+ Root = "Root",
229
+ Admin = "Admin",
230
+ Manager = "Manager",
231
+ ViewOnly = "ViewOnly"
232
+ }
233
+
234
+ declare enum TypeOfMitigation {
235
+ AGRICULTURE = "Agriculture",
236
+ SOLAR = "Solar"
237
+ }
238
+
239
+ declare enum SectoralScope {
240
+ "Energy Industries (Renewable – / Non-Renewable Sources)" = "1",
241
+ "Energy Distribution" = "2",
242
+ "Energy Demand" = "3",
243
+ "Manufacturing Industries" = "4",
244
+ "Chemical Industries" = "5",
245
+ "Construction" = "6",
246
+ "Transport" = "7",
247
+ "Mining/Mineral Production" = "8",
248
+ "Metal Production" = "9",
249
+ "Fugitive Emissions From Fuels (Solid, Oil and Gas)" = "10",
250
+ "Fugitive Emissions From Production and Consumption of Halocarbons and Sulphur Hexafluoride" = "11",
251
+ "Solvent Use" = "12",
252
+ "Waste Handling and Disposal" = "13",
253
+ "Afforestation and Reforestation" = "14",
254
+ "Agriculture" = "15"
255
+ }
256
+
257
+ declare enum TxType {
258
+ CREATE = "0",
259
+ REJECT = "1",
260
+ ISSUE = "2",
261
+ TRANSFER = "3",
262
+ CERTIFY = "4",
263
+ RETIRE = "5",
264
+ REVOKE = "6",
265
+ FREEZE = "7",
266
+ AUTH = "8",
267
+ UNFREEZE = "9"
268
+ }
269
+
270
+ declare enum CreditTransferStage {
271
+ Pending = "Pending",
272
+ Approved = "Accepted",
273
+ Rejected = "Rejected",
274
+ Cancelled = "Cancelled",
275
+ Recognised = "Recognised",
276
+ NotRecognised = "NotRecognised"
277
+ }
278
+
279
+ declare enum RetireType {
280
+ CROSS_BORDER = "0",
281
+ LEGAL_ACTION = "1",
282
+ OTHER = "2"
283
+ }
284
+
285
+ declare enum ProgrammeStageMRV {
286
+ AwaitingAuthorization = "Pending",
287
+ Authorised = "Authorised",
288
+ Approved = "Approved",
289
+ Rejected = "Rejected"
290
+ }
291
+
292
+ declare enum ProgrammeStage {
293
+ AwaitingAuthorization = "Pending",
294
+ Authorised = "Authorised",
295
+ Rejected = "Rejected"
296
+ }
297
+
298
+ declare enum CompanyRole {
299
+ ACADEMICS = "Academics",
300
+ SERVICE_PROVIDER = "ServiceProvider",
301
+ MITIGATION_ACTIVITY_PARTNER = "MitigationActivityParticipant",
302
+ CARBON_CREDIT_BROKER = "CarbonCreditBroker",
303
+ VALIDATION_VERIFICATION_ENTITY = "ValidationVerificationEntities",
304
+ COMMERCIAL_BANKS = "CommercialBanks",
305
+ INVESTORS = "InvestorsFinanciers",
306
+ GOV_REGULATOR = "GovernmentRegulators",
307
+ OBSERVERS = "Observers",
308
+ CIVIL_SOCIETY_ORG = "CivilSocietyOrganization",
309
+ CERTIFIER = "Certifier",
310
+ INTERNAL_ORGANIZATION = "InternationalOrganization",
311
+ PROGRAMME_DEVELOPER = "ProgrammeDeveloper",
312
+ MRV = "MRV",
313
+ GOVERNMENT = "Government",
314
+ MINISTRY = "Ministry",
315
+ API = "API"
316
+ }
317
+
156
318
  interface LoginProps {
157
319
  email: string;
158
320
  password: string;
@@ -209,69 +371,6 @@ declare class ProgrammeTransfer implements BaseEntity {
209
371
  toCompanyMeta?: any;
210
372
  }
211
373
 
212
- declare enum ProgrammeStage {
213
- AwaitingAuthorization = "Pending",
214
- Authorised = "Authorised",
215
- Rejected = "Rejected"
216
- }
217
- declare enum ProgrammeStageMRV {
218
- AwaitingAuthorization = "Pending",
219
- Authorised = "Authorised",
220
- Approved = "Approved",
221
- Rejected = "Rejected"
222
- }
223
- declare enum Role {
224
- Root = "Root",
225
- Admin = "Admin",
226
- Manager = "Manager",
227
- ViewOnly = "ViewOnly"
228
- }
229
- declare enum RetireType {
230
- CROSS_BORDER = "0",
231
- LEGAL_ACTION = "1",
232
- OTHER = "2"
233
- }
234
- declare enum CreditTransferStage {
235
- Pending = "Pending",
236
- Approved = "Accepted",
237
- Rejected = "Rejected",
238
- Cancelled = "Cancelled",
239
- Recognised = "Recognised",
240
- NotRecognised = "NotRecognised"
241
- }
242
- declare enum TxType {
243
- CREATE = "0",
244
- REJECT = "1",
245
- ISSUE = "2",
246
- TRANSFER = "3",
247
- CERTIFY = "4",
248
- RETIRE = "5",
249
- REVOKE = "6",
250
- FREEZE = "7",
251
- AUTH = "8",
252
- UNFREEZE = "9"
253
- }
254
- declare enum SectoralScope {
255
- "Energy Industries (Renewable – / Non-Renewable Sources)" = "1",
256
- "Energy Distribution" = "2",
257
- "Energy Demand" = "3",
258
- "Manufacturing Industries" = "4",
259
- "Chemical Industries" = "5",
260
- "Construction" = "6",
261
- "Transport" = "7",
262
- "Mining/Mineral Production" = "8",
263
- "Metal Production" = "9",
264
- "Fugitive Emissions From Fuels (Solid, Oil and Gas)" = "10",
265
- "Fugitive Emissions From Production and Consumption of Halocarbons and Sulphur Hexafluoride" = "11",
266
- "Solvent Use" = "12",
267
- "Waste Handling and Disposal" = "13",
268
- "Afforestation and Reforestation" = "14",
269
- "Agriculture" = "15"
270
- }
271
- declare enum TypeOfMitigation {
272
- AGRICULTURE = "Agriculture",
273
- SOLAR = "Solar"
274
- }
275
374
  declare const getStageEnumVal: (value: string) => string;
276
375
  declare const getCreditStageVal: (value: string) => string;
277
376
  declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
@@ -283,14 +382,6 @@ declare class UnitField {
283
382
  value: any;
284
383
  constructor(unit: string, value: any);
285
384
  }
286
- declare enum CompanyRole {
287
- CERTIFIER = "Certifier",
288
- PROGRAMME_DEVELOPER = "ProgrammeDeveloper",
289
- MINISTRY = "Ministry",
290
- MRV = "MRV",
291
- GOVERNMENT = "Government",
292
- API = "API"
293
- }
294
385
  interface ProgrammeProperties {
295
386
  maxInternationalTransferAmount: string;
296
387
  creditingPeriodInYears: number;
@@ -305,6 +396,20 @@ interface ProgrammeProperties {
305
396
  programmeMaterials: [];
306
397
  projectMaterial: [];
307
398
  }
399
+ interface ProgrammePropertiesT {
400
+ maxInternationalTransferAmount: string;
401
+ creditingPeriodInYears: number;
402
+ estimatedProgrammeCostUSD: number;
403
+ sourceOfFunding: any;
404
+ grantEquivalentAmount: number;
405
+ carbonPriceUSDPerTon: number;
406
+ buyerCountryEligibility: string;
407
+ geographicalLocation: string[];
408
+ greenHouseGasses: any[];
409
+ creditYear: number;
410
+ programmeMaterials: [];
411
+ projectMaterial: [];
412
+ }
308
413
  interface Programme {
309
414
  programmeId: string;
310
415
  serialNo: string;
@@ -340,6 +445,43 @@ interface Programme {
340
445
  typeOfMitigation: TypeOfMitigation;
341
446
  geographicalLocationCordintes: any;
342
447
  }
448
+ interface ProgrammeT {
449
+ programmeId: string;
450
+ serialNo: string;
451
+ title: string;
452
+ sectoralScope: string;
453
+ sector: string;
454
+ countryCodeA2: string;
455
+ currentStage: ProgrammeStageMRV;
456
+ startTime: number;
457
+ endTime: number;
458
+ creditChange: number;
459
+ creditIssued: number;
460
+ creditEst: number;
461
+ creditBalance: number;
462
+ creditTransferred: number[];
463
+ creditRetired: number[];
464
+ creditFrozen: number[];
465
+ constantVersion: string;
466
+ proponentTaxVatId: string[];
467
+ companyId: number[];
468
+ proponentPercentage: number[];
469
+ creditOwnerPercentage: number[];
470
+ certifierId: any[];
471
+ certifier: any[];
472
+ company: any[];
473
+ creditUnit: string;
474
+ programmeProperties: ProgrammePropertiesT;
475
+ agricultureProperties: any;
476
+ solarProperties: any;
477
+ txTime: number;
478
+ createdTime: number;
479
+ txRef: string;
480
+ typeOfMitigation: TypeOfMitigation;
481
+ geographicalLocationCordintes: any;
482
+ emissionReductionExpected: number;
483
+ emissionReductionAchieved: number;
484
+ }
343
485
  declare const getGeneralFields: (programme: Programme) => {
344
486
  title: string;
345
487
  serialNo: string;
@@ -459,4 +601,4 @@ declare class ProgrammeEntity implements BaseEntity {
459
601
  companyId?: number[];
460
602
  }
461
603
 
462
- export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, HeaderProps, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, ProfileIcon, ProfileIconProps, Programme, ProgrammeDeveloperCreation, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammeStage, ProgrammeStageMRV, ProgrammeTransfer, ProgrammeViewComponent, Response, RetireType, Role, RoleIcon, RoleIconProps, SectoralScope, StasticCard, StasticCardItemProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getTransferStageTagType, isBase64, mitigationTypeList, sumArray, userForgotPasswordProps };
604
+ export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, ESGType, HeaderProps, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, ProfileIcon, ProfileIconProps, Programme, ProgrammeDeveloperCreation, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesT, ProgrammeStage, ProgrammeStageMRV, ProgrammeT, ProgrammeTransfer, ProgrammeViewComponent, Response, RetireType, Role, RoleIcon, RoleIconProps, SectoralScope, StasticCard, StasticCardItemProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, mitigationTypeList, ndcActionTypeList, sumArray, userForgotPasswordProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
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": {
@@ -25,7 +25,7 @@
25
25
  "typescript": "^5.0.4"
26
26
  },
27
27
  "devDependencies": {
28
- "@ant-design/icons": "^4.7.0",
28
+ "@ant-design/icons": "^5.2.5",
29
29
  "@types/luxon": "^3.1.0",
30
30
  "@types/mapbox-gl": "^2.7.10",
31
31
  "@types/react": "^18.0.25",