@undp/carbon-library 1.0.60 → 1.0.62

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 +3727 -2132
  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 +13 -0
  26. package/dist/cjs/types/Styles/role.color.constants.d.ts +2 -0
  27. package/dist/esm/index.js +3723 -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 +13 -0
  52. package/dist/esm/types/Styles/role.color.constants.d.ts +2 -0
  53. package/dist/index.d.ts +196 -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,121 @@ 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
+
156
298
  interface LoginProps {
157
299
  email: string;
158
300
  password: string;
@@ -209,69 +351,6 @@ declare class ProgrammeTransfer implements BaseEntity {
209
351
  toCompanyMeta?: any;
210
352
  }
211
353
 
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
354
  declare const getStageEnumVal: (value: string) => string;
276
355
  declare const getCreditStageVal: (value: string) => string;
277
356
  declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
@@ -283,14 +362,6 @@ declare class UnitField {
283
362
  value: any;
284
363
  constructor(unit: string, value: any);
285
364
  }
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
365
  interface ProgrammeProperties {
295
366
  maxInternationalTransferAmount: string;
296
367
  creditingPeriodInYears: number;
@@ -305,6 +376,20 @@ interface ProgrammeProperties {
305
376
  programmeMaterials: [];
306
377
  projectMaterial: [];
307
378
  }
379
+ interface ProgrammePropertiesT {
380
+ maxInternationalTransferAmount: string;
381
+ creditingPeriodInYears: number;
382
+ estimatedProgrammeCostUSD: number;
383
+ sourceOfFunding: any;
384
+ grantEquivalentAmount: number;
385
+ carbonPriceUSDPerTon: number;
386
+ buyerCountryEligibility: string;
387
+ geographicalLocation: string[];
388
+ greenHouseGasses: any[];
389
+ creditYear: number;
390
+ programmeMaterials: [];
391
+ projectMaterial: [];
392
+ }
308
393
  interface Programme {
309
394
  programmeId: string;
310
395
  serialNo: string;
@@ -340,6 +425,43 @@ interface Programme {
340
425
  typeOfMitigation: TypeOfMitigation;
341
426
  geographicalLocationCordintes: any;
342
427
  }
428
+ interface ProgrammeT {
429
+ programmeId: string;
430
+ serialNo: string;
431
+ title: string;
432
+ sectoralScope: string;
433
+ sector: string;
434
+ countryCodeA2: string;
435
+ currentStage: ProgrammeStageMRV;
436
+ startTime: number;
437
+ endTime: number;
438
+ creditChange: number;
439
+ creditIssued: number;
440
+ creditEst: number;
441
+ creditBalance: number;
442
+ creditTransferred: number[];
443
+ creditRetired: number[];
444
+ creditFrozen: number[];
445
+ constantVersion: string;
446
+ proponentTaxVatId: string[];
447
+ companyId: number[];
448
+ proponentPercentage: number[];
449
+ creditOwnerPercentage: number[];
450
+ certifierId: any[];
451
+ certifier: any[];
452
+ company: any[];
453
+ creditUnit: string;
454
+ programmeProperties: ProgrammePropertiesT;
455
+ agricultureProperties: any;
456
+ solarProperties: any;
457
+ txTime: number;
458
+ createdTime: number;
459
+ txRef: string;
460
+ typeOfMitigation: TypeOfMitigation;
461
+ geographicalLocationCordintes: any;
462
+ emissionReductionExpected: number;
463
+ emissionReductionAchieved: number;
464
+ }
343
465
  declare const getGeneralFields: (programme: Programme) => {
344
466
  title: string;
345
467
  serialNo: string;
@@ -459,4 +581,4 @@ declare class ProgrammeEntity implements BaseEntity {
459
581
  companyId?: number[];
460
582
  }
461
583
 
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 };
584
+ export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, 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.60",
3
+ "version": "1.0.62",
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",