@undp/carbon-library 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/cjs/index.js +5269 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/types/Components/Common/CompanyRoleIcon/companyRoleIcon.d.ts +6 -0
  4. package/dist/cjs/types/Components/Common/InfoView/info.view.d.ts +10 -0
  5. package/dist/cjs/types/Components/Common/LanguageSelection/languageSelection.d.ts +7 -0
  6. package/dist/cjs/types/Components/Common/LegendItem/legendItem.d.ts +7 -0
  7. package/dist/cjs/types/Components/Common/Loading/loading.d.ts +1 -0
  8. package/dist/cjs/types/Components/Common/Maps/mapComponent.d.ts +2 -0
  9. package/dist/cjs/types/Components/Common/Maps/mapboxComponent.d.ts +4 -0
  10. package/dist/cjs/types/Components/Common/Models/changePasswordModel.d.ts +13 -0
  11. package/dist/cjs/types/Components/Common/Models/programmeIssueForm.d.ts +13 -0
  12. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +15 -0
  13. package/dist/cjs/types/Components/Common/Models/programmeRevokeForm.d.ts +13 -0
  14. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +18 -0
  15. package/dist/cjs/types/Components/Common/Models/userActionConfirmationModel.d.ts +13 -0
  16. package/dist/cjs/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +7 -0
  17. package/dist/cjs/types/Components/Common/ProfileIcon/profile.icon.d.ts +10 -0
  18. package/dist/cjs/types/Components/Common/RoleIcon/role.icon.d.ts +9 -0
  19. package/dist/cjs/types/Components/Common/StasticCard/stasticCard.d.ts +11 -0
  20. package/dist/cjs/types/Components/Common/TimelineBody/timelineBody.d.ts +10 -0
  21. package/dist/cjs/types/Components/Common/UserRoleIcon/userRoleIcon.d.ts +6 -0
  22. package/dist/cjs/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +3 -0
  23. package/dist/cjs/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +3 -0
  24. package/dist/cjs/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -0
  25. package/dist/cjs/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +3 -0
  26. package/dist/cjs/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -0
  27. package/dist/cjs/types/Components/User/AddNewUser/addNewUserComponent.d.ts +4 -0
  28. package/dist/cjs/types/Components/User/UserManagement/userManagementComponent.d.ts +3 -0
  29. package/dist/cjs/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -0
  30. package/dist/cjs/types/Components/index.d.ts +13 -0
  31. package/dist/cjs/types/Definitions/Definitions/addUser.definitions.d.ts +22 -0
  32. package/dist/cjs/types/Definitions/Definitions/common.definitions.d.ts +3 -0
  33. package/dist/cjs/types/Definitions/Definitions/companyManagement.definitions.d.ts +15 -0
  34. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +26 -0
  35. package/dist/cjs/types/Definitions/Definitions/dashboard.definitions.d.ts +1 -0
  36. package/dist/cjs/types/Definitions/Definitions/layout.header.d.ts +4 -0
  37. package/dist/cjs/types/Definitions/Definitions/layout.sider.definitions.d.ts +4 -0
  38. package/dist/cjs/types/Definitions/Definitions/mapComponent.definitions.d.ts +32 -0
  39. package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +135 -0
  40. package/dist/cjs/types/Definitions/Definitions/settings.definitions.d.ts +3 -0
  41. package/dist/cjs/types/Definitions/Definitions/userForgotPassword.definitions.d.ts +3 -0
  42. package/dist/cjs/types/Definitions/Definitions/userInformationContext.definitions.d.ts +17 -0
  43. package/dist/cjs/types/Definitions/Definitions/userLogin.definitions.d.ts +4 -0
  44. package/dist/cjs/types/Definitions/Definitions/userManagement.definitions.d.ts +22 -0
  45. package/dist/cjs/types/Definitions/Entities/baseEntity.d.ts +2 -0
  46. package/dist/cjs/types/Definitions/Entities/company.d.ts +13 -0
  47. package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +23 -0
  48. package/dist/cjs/types/Definitions/Entities/user.d.ts +12 -0
  49. package/dist/cjs/types/Definitions/Enums/action.enum.d.ts +7 -0
  50. package/dist/cjs/types/Definitions/Enums/company.management.columns.enum.d.ts +8 -0
  51. package/dist/cjs/types/Definitions/Enums/company.role.enum.d.ts +17 -0
  52. package/dist/cjs/types/Definitions/Enums/company.state.enum.d.ts +4 -0
  53. package/dist/cjs/types/Definitions/Enums/programme.management.columns.enum.d.ts +11 -0
  54. package/dist/cjs/types/Definitions/Enums/statsCards.type.enum.d.ts +18 -0
  55. package/dist/cjs/types/Definitions/Enums/user.management.columns.enum.d.ts +10 -0
  56. package/dist/cjs/types/Definitions/index.d.ts +13 -0
  57. package/dist/cjs/types/Styles/role.color.constants.d.ts +15 -0
  58. package/dist/cjs/types/index.d.ts +2 -0
  59. package/dist/esm/index.js +5222 -0
  60. package/dist/esm/index.js.map +1 -0
  61. package/dist/esm/types/Components/Common/CompanyRoleIcon/companyRoleIcon.d.ts +6 -0
  62. package/dist/esm/types/Components/Common/InfoView/info.view.d.ts +10 -0
  63. package/dist/esm/types/Components/Common/LanguageSelection/languageSelection.d.ts +7 -0
  64. package/dist/esm/types/Components/Common/LegendItem/legendItem.d.ts +7 -0
  65. package/dist/esm/types/Components/Common/Loading/loading.d.ts +1 -0
  66. package/dist/esm/types/Components/Common/Maps/mapComponent.d.ts +2 -0
  67. package/dist/esm/types/Components/Common/Maps/mapboxComponent.d.ts +4 -0
  68. package/dist/esm/types/Components/Common/Models/changePasswordModel.d.ts +13 -0
  69. package/dist/esm/types/Components/Common/Models/programmeIssueForm.d.ts +13 -0
  70. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +15 -0
  71. package/dist/esm/types/Components/Common/Models/programmeRevokeForm.d.ts +13 -0
  72. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +18 -0
  73. package/dist/esm/types/Components/Common/Models/userActionConfirmationModel.d.ts +13 -0
  74. package/dist/esm/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +7 -0
  75. package/dist/esm/types/Components/Common/ProfileIcon/profile.icon.d.ts +10 -0
  76. package/dist/esm/types/Components/Common/RoleIcon/role.icon.d.ts +9 -0
  77. package/dist/esm/types/Components/Common/StasticCard/stasticCard.d.ts +11 -0
  78. package/dist/esm/types/Components/Common/TimelineBody/timelineBody.d.ts +10 -0
  79. package/dist/esm/types/Components/Common/UserRoleIcon/userRoleIcon.d.ts +6 -0
  80. package/dist/esm/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +3 -0
  81. package/dist/esm/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +3 -0
  82. package/dist/esm/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -0
  83. package/dist/esm/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +3 -0
  84. package/dist/esm/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -0
  85. package/dist/esm/types/Components/User/AddNewUser/addNewUserComponent.d.ts +4 -0
  86. package/dist/esm/types/Components/User/UserManagement/userManagementComponent.d.ts +3 -0
  87. package/dist/esm/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -0
  88. package/dist/esm/types/Components/index.d.ts +13 -0
  89. package/dist/esm/types/Definitions/Definitions/addUser.definitions.d.ts +22 -0
  90. package/dist/esm/types/Definitions/Definitions/common.definitions.d.ts +3 -0
  91. package/dist/esm/types/Definitions/Definitions/companyManagement.definitions.d.ts +15 -0
  92. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +26 -0
  93. package/dist/esm/types/Definitions/Definitions/dashboard.definitions.d.ts +1 -0
  94. package/dist/esm/types/Definitions/Definitions/layout.header.d.ts +4 -0
  95. package/dist/esm/types/Definitions/Definitions/layout.sider.definitions.d.ts +4 -0
  96. package/dist/esm/types/Definitions/Definitions/mapComponent.definitions.d.ts +32 -0
  97. package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +135 -0
  98. package/dist/esm/types/Definitions/Definitions/settings.definitions.d.ts +3 -0
  99. package/dist/esm/types/Definitions/Definitions/userForgotPassword.definitions.d.ts +3 -0
  100. package/dist/esm/types/Definitions/Definitions/userInformationContext.definitions.d.ts +17 -0
  101. package/dist/esm/types/Definitions/Definitions/userLogin.definitions.d.ts +4 -0
  102. package/dist/esm/types/Definitions/Definitions/userManagement.definitions.d.ts +22 -0
  103. package/dist/esm/types/Definitions/Entities/baseEntity.d.ts +2 -0
  104. package/dist/esm/types/Definitions/Entities/company.d.ts +13 -0
  105. package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +23 -0
  106. package/dist/esm/types/Definitions/Entities/user.d.ts +12 -0
  107. package/dist/esm/types/Definitions/Enums/action.enum.d.ts +7 -0
  108. package/dist/esm/types/Definitions/Enums/company.management.columns.enum.d.ts +8 -0
  109. package/dist/esm/types/Definitions/Enums/company.role.enum.d.ts +17 -0
  110. package/dist/esm/types/Definitions/Enums/company.state.enum.d.ts +4 -0
  111. package/dist/esm/types/Definitions/Enums/programme.management.columns.enum.d.ts +11 -0
  112. package/dist/esm/types/Definitions/Enums/statsCards.type.enum.d.ts +18 -0
  113. package/dist/esm/types/Definitions/Enums/user.management.columns.enum.d.ts +10 -0
  114. package/dist/esm/types/Definitions/index.d.ts +13 -0
  115. package/dist/esm/types/Styles/role.color.constants.d.ts +15 -0
  116. package/dist/esm/types/index.d.ts +2 -0
  117. package/dist/index.d.ts +356 -0
  118. package/package.json +3 -2
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export interface CompanyRoleIconProps {
3
+ role: string;
4
+ }
5
+ declare const CompanyRoleIcon: FC<CompanyRoleIconProps>;
6
+ export default CompanyRoleIcon;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import './info.view.scss';
3
+ export interface InfoViewProps {
4
+ data: any;
5
+ title: any;
6
+ icon: any;
7
+ hiddenColumns?: any;
8
+ }
9
+ declare const InfoView: FC<InfoViewProps>;
10
+ export default InfoView;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import "./languageSelection.scss";
3
+ export interface LanguageSelectionProps {
4
+ i18n: any;
5
+ }
6
+ declare const LanguageSelection: FC<LanguageSelectionProps>;
7
+ export default LanguageSelection;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import './legendItem.scss';
3
+ export interface LegendItemItemProps {
4
+ text: string;
5
+ color: string;
6
+ }
7
+ export declare const LegendItem: FC<LegendItemItemProps>;
@@ -0,0 +1 @@
1
+ export declare const Loading: () => any;
@@ -0,0 +1,2 @@
1
+ import { MapComponentProps } from "../../../Definitions/Definitions/mapComponent.definitions";
2
+ export declare const MapComponent: (props: MapComponentProps) => any;
@@ -0,0 +1,4 @@
1
+ import 'mapbox-gl/dist/mapbox-gl.css';
2
+ import { MapComponentProps } from '../../../Definitions/Definitions/mapComponent.definitions';
3
+ import './MapboxComponent.scss';
4
+ export declare const MapboxComponent: (props: MapComponentProps) => any;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import "../../../Styles/app.scss";
3
+ export interface ChangePasswordProps {
4
+ t: any;
5
+ onPasswordChanged: any;
6
+ onFieldsChanged: any;
7
+ onCanceled: any;
8
+ openModal: any;
9
+ errorMsg: any;
10
+ loadingBtn: boolean;
11
+ }
12
+ declare const ChangePasswordModel: FC<ChangePasswordProps>;
13
+ export default ChangePasswordModel;
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { Programme } from '../../../Definitions/Definitions/programme.definitions';
3
+ export interface ProgrammeIssueFormProps {
4
+ programme: Programme;
5
+ onCancel: any;
6
+ actionBtnText: string;
7
+ onFinish: any;
8
+ subText: string;
9
+ enableIssue: boolean;
10
+ t: any;
11
+ }
12
+ declare const ProgrammeIssueForm: FC<ProgrammeIssueFormProps>;
13
+ export default ProgrammeIssueForm;
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { Programme } from '../../../Definitions/Definitions/programme.definitions';
3
+ export interface ProgrammeRetireFormProps {
4
+ programme: Programme;
5
+ onCancel: any;
6
+ actionBtnText: string;
7
+ onFinish: any;
8
+ subText?: string;
9
+ hideType: boolean;
10
+ myCompanyId?: number;
11
+ t: any;
12
+ useConnection: any;
13
+ }
14
+ declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
15
+ export default ProgrammeRetireForm;
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ import { Programme } from '../../../Definitions/Definitions/programme.definitions';
3
+ export interface ProgrammeRevokeFormProps {
4
+ programme: Programme;
5
+ onCancel: any;
6
+ actionBtnText: string;
7
+ onFinish: any;
8
+ subText: string;
9
+ showCertifiers: boolean;
10
+ t: any;
11
+ }
12
+ declare const ProgrammeRevokeForm: FC<ProgrammeRevokeFormProps>;
13
+ export default ProgrammeRevokeForm;
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ import { Programme } from '../../../Definitions/Definitions/programme.definitions';
3
+ export interface ProgrammeTransferFormProps {
4
+ programme: Programme;
5
+ onCancel: any;
6
+ actionBtnText: string;
7
+ onFinish: any;
8
+ subText: string;
9
+ disableToCompany?: boolean;
10
+ toCompanyDefault?: any;
11
+ receiverLabelText: string;
12
+ userCompanyId: number | undefined;
13
+ companyRole: string;
14
+ t: any;
15
+ useConnection: any;
16
+ }
17
+ declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
18
+ export default ProgrammeTransferForm;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import "../../../Styles/app.scss";
3
+ export interface UserActionProps {
4
+ t: any;
5
+ actionInfo: any;
6
+ onActionConfirmed: any;
7
+ onActionCanceled: any;
8
+ openModal: any;
9
+ errorMsg: any;
10
+ loading: any;
11
+ }
12
+ declare const UserActionConfirmationModel: FC<UserActionProps>;
13
+ export default UserActionConfirmationModel;
@@ -0,0 +1,7 @@
1
+ import './organisationStatus.scss';
2
+ export interface OrganisationStatusProps {
3
+ organisationStatus: number;
4
+ t: any;
5
+ }
6
+ declare const OrganisationStatus: (props: OrganisationStatusProps) => any;
7
+ export default OrganisationStatus;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import './profile.icon.scss';
3
+ export interface ProfileIconProps {
4
+ icon: any;
5
+ bg: string;
6
+ name: string;
7
+ }
8
+ export declare const isBase64: (str: string) => boolean;
9
+ declare const ProfileIcon: FC<ProfileIconProps>;
10
+ export default ProfileIcon;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ import './role.icon.scss';
3
+ export interface RoleIconProps {
4
+ icon: any;
5
+ bg: string;
6
+ color: string;
7
+ }
8
+ declare const RoleIcon: FC<RoleIconProps>;
9
+ export default RoleIcon;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import './stasticCard.scss';
3
+ export interface StasticCardItemProps {
4
+ value: number;
5
+ title: string;
6
+ updatedDate: any;
7
+ icon: any;
8
+ loading: boolean;
9
+ companyRole: any;
10
+ }
11
+ export declare const StasticCard: FC<StasticCardItemProps>;
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import './timelineBody.scss';
3
+ export interface TimelineBodyProps {
4
+ text: string;
5
+ remark?: string | null;
6
+ via?: string | null;
7
+ t: any;
8
+ }
9
+ declare const TimelineBody: FC<TimelineBodyProps>;
10
+ export default TimelineBody;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ export interface UserRoleIconProps {
3
+ role: string;
4
+ }
5
+ declare const UserRoleIcon: FC<UserRoleIconProps>;
6
+ export default UserRoleIcon;
@@ -0,0 +1,3 @@
1
+ import "./addNewCompanyComponent.scss";
2
+ import "../../../Styles/app.scss";
3
+ export declare const AddNewCompanyComponent: (props: any) => any;
@@ -0,0 +1,3 @@
1
+ import "./companyManagementComponent.scss";
2
+ import "../../../Styles/common.table.scss";
3
+ export declare const CompanyManagementComponent: (props: any) => any;
@@ -0,0 +1,2 @@
1
+ import "./companyProfileComponent.scss";
2
+ export declare const CompanyProfileComponent: (props: any) => any;
@@ -0,0 +1,3 @@
1
+ import './programmeManagementComponent.scss';
2
+ import '../../../Styles/common.table.scss';
3
+ export declare const ProgrammeManagementComponent: (props: any) => any;
@@ -0,0 +1,2 @@
1
+ import "./programmeViewComponent.scss";
2
+ export declare const ProgrammeViewComponent: (props: any) => any;
@@ -0,0 +1,4 @@
1
+ import "react-phone-number-input/style.css";
2
+ import "./addNewUserComponent.scss";
3
+ import "../../../Styles/app.scss";
4
+ export declare const AddNewUserComponent: (props: any) => any;
@@ -0,0 +1,3 @@
1
+ import "./userManagementComponent.scss";
2
+ import "../../../Styles/common.table.scss";
3
+ export declare const UserManagementComponent: (props: any) => any;
@@ -0,0 +1,2 @@
1
+ import "./userProfileComponent.scss";
2
+ export declare const UserProfileComponent: (props: any) => any;
@@ -0,0 +1,13 @@
1
+ export * from "./Company/CompanyManagement/companyManagementComponent";
2
+ export * from "./Company/AddNewCompany/addNewCompanyComponent";
3
+ export * from "./Company/CompanyProfile/companyProfileComponent";
4
+ export * from "./User/UserManagement/userManagementComponent";
5
+ export * from "./Programme/ProgrammeManagement/programmeManagementComponent";
6
+ export * from "./Programme/ProgrammeView/programmeViewComponent";
7
+ export * from "./User/AddNewUser/addNewUserComponent";
8
+ export * from "./User/UserProfile/userProfileComponent";
9
+ export * from "./Common/Loading/loading";
10
+ export * from "./Common/LegendItem/legendItem";
11
+ export * from "./Common/Maps/mapComponent";
12
+ export * from "./Common/Maps/mapboxComponent";
13
+ export * from "./Common/StasticCard/stasticCard";
@@ -0,0 +1,22 @@
1
+ export interface ProgrammeDeveloperCreation {
2
+ companyName?: string;
3
+ companyLocation?: string;
4
+ industry?: string;
5
+ registrationNo?: string;
6
+ }
7
+ export interface UserCreationProps extends ProgrammeDeveloperCreation {
8
+ name: string;
9
+ email: string;
10
+ role: string;
11
+ city: string;
12
+ zipCode: string;
13
+ state: string;
14
+ country: string;
15
+ contactNo: string;
16
+ companyLogo?: string;
17
+ }
18
+ export interface CountrySelect {
19
+ key: string;
20
+ label: string;
21
+ value: string;
22
+ }
@@ -0,0 +1,3 @@
1
+ export declare const dateTimeFormat = "dd LLLL yyyy @ HH:mm";
2
+ export declare const dateFormat = "dd LLLL yyyy";
3
+ export declare const creditUnit = "ITMO";
@@ -0,0 +1,15 @@
1
+ export interface CompanyTableDataType {
2
+ name?: string;
3
+ address?: string;
4
+ companyId?: number;
5
+ companyRole?: string;
6
+ country?: string;
7
+ email?: string;
8
+ phoneNo?: string;
9
+ taxId?: string;
10
+ website?: string;
11
+ state?: string;
12
+ logo?: string;
13
+ creditBalance?: number;
14
+ programmeCount?: number;
15
+ }
@@ -0,0 +1,26 @@
1
+ import { AxiosRequestConfig, AxiosResponseHeaders, RawAxiosResponseHeaders } from 'axios';
2
+ import { ReactNode } from 'react';
3
+ export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
4
+ export type ConnectionContextProviderProps = {
5
+ serverURL: string;
6
+ children: ReactNode;
7
+ };
8
+ export interface Response<T> {
9
+ data: T;
10
+ statusText: string;
11
+ status?: number;
12
+ headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
13
+ config?: AxiosRequestConfig;
14
+ request?: any;
15
+ message: string;
16
+ }
17
+ export type ConnectionProps = {
18
+ post<T = any, R = Response<T>>(path: string, data?: any, config?: AxiosRequestConfig, extraUrl?: string): Promise<R>;
19
+ get<T = any, R = Response<T>>(path: string, config?: AxiosRequestConfig): Promise<R>;
20
+ delete<T = any, R = Response<T>>(path: string, config?: AxiosRequestConfig): Promise<R>;
21
+ put<T = any, R = Response<T>>(path: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
22
+ patch<T = any, R = Response<T>>(path: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
23
+ updateToken: (token?: string) => void;
24
+ token?: string;
25
+ removeToken: (tkn?: string) => void;
26
+ };
@@ -0,0 +1 @@
1
+ export declare const toolTipTextGen: (companyRole: any, cardType: any, mine?: boolean) => any;
@@ -0,0 +1,4 @@
1
+ export type HeaderProps = {
2
+ title?: string;
3
+ onToggle: (val: boolean) => void;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type LayoutSiderProps = {
2
+ selectedKey?: string;
3
+ collapsed?: boolean;
4
+ };
@@ -0,0 +1,32 @@
1
+ export declare enum MapTypes {
2
+ Mapbox = "Mapbox",
3
+ None = "None"
4
+ }
5
+ export interface MarkerData {
6
+ id?: number;
7
+ color?: string;
8
+ location: number[];
9
+ element?: any;
10
+ }
11
+ export interface MapSourceData {
12
+ key: string;
13
+ data: any;
14
+ }
15
+ export interface MapPopupData {
16
+ html: string;
17
+ }
18
+ export interface MapComponentProps {
19
+ mapType: string;
20
+ center: number[];
21
+ markers?: MarkerData[];
22
+ zoom: number;
23
+ mapSource?: MapSourceData;
24
+ onClick?: any;
25
+ showPopupOnClick?: boolean;
26
+ onMouseMove?: any;
27
+ layer?: any;
28
+ height: number;
29
+ style: string;
30
+ onRender?: any;
31
+ accessToken?: any;
32
+ }
@@ -0,0 +1,135 @@
1
+ import { ProgrammeTransfer } from '../Entities/programmeTransfer';
2
+ export declare enum ProgrammeStage {
3
+ AwaitingAuthorization = "Pending",
4
+ Authorised = "Authorised",
5
+ Rejected = "Rejected"
6
+ }
7
+ export declare enum Role {
8
+ Root = "Root",
9
+ Admin = "Admin",
10
+ Manager = "Manager",
11
+ ViewOnly = "ViewOnly"
12
+ }
13
+ export declare enum RetireType {
14
+ CROSS_BORDER = "0",
15
+ LEGAL_ACTION = "1",
16
+ OTHER = "2"
17
+ }
18
+ export declare enum CreditTransferStage {
19
+ Pending = "Pending",
20
+ Approved = "Accepted",
21
+ Rejected = "Rejected",
22
+ Cancelled = "Cancelled",
23
+ Recognised = "Recognised",
24
+ NotRecognised = "NotRecognised"
25
+ }
26
+ export declare enum TxType {
27
+ CREATE = "0",
28
+ REJECT = "1",
29
+ ISSUE = "2",
30
+ TRANSFER = "3",
31
+ CERTIFY = "4",
32
+ RETIRE = "5",
33
+ REVOKE = "6",
34
+ FREEZE = "7",
35
+ AUTH = "8",
36
+ UNFREEZE = "9"
37
+ }
38
+ export declare enum SectoralScope {
39
+ "Energy Industry" = "1",
40
+ "Energy Distribution" = "2",
41
+ "Agriculture" = "15"
42
+ }
43
+ export declare enum TypeOfMitigation {
44
+ AGRICULTURE = "Agriculture",
45
+ SOLAR = "Solar"
46
+ }
47
+ export declare const getStageEnumVal: (value: string) => string;
48
+ export declare const getCreditStageVal: (value: string) => string;
49
+ export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
50
+ export declare const getStageTagType: (stage: ProgrammeStage) => "error" | "processing" | "default";
51
+ export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "error" | "processing" | "default" | "success" | "purple" | "orange";
52
+ export declare class UnitField {
53
+ unit: string;
54
+ value: any;
55
+ constructor(unit: string, value: any);
56
+ }
57
+ export declare enum CompanyRole {
58
+ CERTIFIER = "Certifier",
59
+ PROGRAMME_DEVELOPER = "ProgrammeDeveloper",
60
+ MRV = "MRV",
61
+ GOVERNMENT = "Government"
62
+ }
63
+ export interface ProgrammeProperties {
64
+ maxInternationalTransferAmount: string;
65
+ creditingPeriodInYears: number;
66
+ programmeCostUSD: number;
67
+ sourceOfFunding: any;
68
+ grantEquivalentAmount: number;
69
+ carbonPriceUSDPerTon: number;
70
+ buyerCountryEligibility: string;
71
+ geographicalLocation: string[];
72
+ greenHouseGasses: any[];
73
+ creditYear: number;
74
+ programmeMaterials: [];
75
+ projectMaterial: [];
76
+ }
77
+ export interface Programme {
78
+ programmeId: string;
79
+ serialNo: string;
80
+ title: string;
81
+ sectoralScope: string;
82
+ sector: string;
83
+ countryCodeA2: string;
84
+ currentStage: ProgrammeStage;
85
+ startTime: number;
86
+ endTime: number;
87
+ creditChange: number;
88
+ creditIssued: number;
89
+ creditEst: number;
90
+ creditBalance: number;
91
+ creditTransferred: number[];
92
+ creditRetired: number[];
93
+ creditFrozen: number[];
94
+ constantVersion: string;
95
+ proponentTaxVatId: string[];
96
+ companyId: number[];
97
+ proponentPercentage: number[];
98
+ creditOwnerPercentage: number[];
99
+ certifierId: any[];
100
+ certifier: any[];
101
+ company: any[];
102
+ creditUnit: string;
103
+ programmeProperties: ProgrammeProperties;
104
+ agricultureProperties: any;
105
+ solarProperties: any;
106
+ txTime: number;
107
+ createdTime: number;
108
+ txRef: string;
109
+ typeOfMitigation: TypeOfMitigation;
110
+ geographicalLocationCordintes: any;
111
+ }
112
+ export declare const getGeneralFields: (programme: Programme) => {
113
+ title: string;
114
+ serialNo: string;
115
+ currentStatus: ProgrammeStage;
116
+ applicationType: string;
117
+ sector: string;
118
+ sectoralScope: string;
119
+ startDate: any;
120
+ endDate: any;
121
+ buyerCountry: string;
122
+ };
123
+ export declare const addCommSep: (value: any) => string;
124
+ export declare const addCommSepRound: (value: any) => string;
125
+ export declare const addRoundNumber: (value: any) => number;
126
+ export declare const addSpaces: (text: string) => string;
127
+ export declare const getFinancialFields: (programme: Programme) => {
128
+ programmeCost: string;
129
+ financingType: string;
130
+ grantEquivalent: UnitField;
131
+ carbonPrice: string;
132
+ };
133
+ export declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
134
+ export declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
135
+ export declare const sumArray: (arrList: any[]) => any;
@@ -0,0 +1,3 @@
1
+ export declare enum ConfigurationSettingsType {
2
+ isTransferFrozen = 0
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface userForgotPasswordProps {
2
+ email: string;
3
+ }
@@ -0,0 +1,17 @@
1
+ export type UserProps = {
2
+ id: string;
3
+ userRole: string;
4
+ companyId: number;
5
+ companyRole: string;
6
+ companyLogo: string;
7
+ companyName: string;
8
+ companyState: number;
9
+ };
10
+ export interface UserContextProps {
11
+ userInfoState?: UserProps;
12
+ setUserInfo: (val: UserProps) => void;
13
+ removeUserInfo: () => void;
14
+ IsAuthenticated: (tkn?: any) => boolean;
15
+ isTokenExpired: boolean;
16
+ setIsTokenExpired: (val: boolean) => void;
17
+ }
@@ -0,0 +1,4 @@
1
+ export interface LoginProps {
2
+ email: string;
3
+ password: string;
4
+ }
@@ -0,0 +1,22 @@
1
+ export interface UserTableDataType {
2
+ id?: number;
3
+ name?: string;
4
+ phoneNo?: string;
5
+ role?: string;
6
+ email?: string;
7
+ companyId?: number;
8
+ companyRole?: string;
9
+ company: {
10
+ name?: string;
11
+ address?: string;
12
+ companyId?: number;
13
+ companyRole?: string;
14
+ country?: string;
15
+ email?: string;
16
+ phoneNo?: string;
17
+ taxId?: string;
18
+ website?: string;
19
+ state?: string;
20
+ logo?: string;
21
+ };
22
+ }
@@ -0,0 +1,2 @@
1
+ export declare class BaseEntity {
2
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseEntity } from './baseEntity';
2
+ export declare class Company implements BaseEntity {
3
+ companyId?: number;
4
+ taxId?: string;
5
+ name?: string;
6
+ email?: string;
7
+ phoneNo?: string;
8
+ website?: string;
9
+ address?: string;
10
+ logo?: string;
11
+ country?: string;
12
+ companyRole?: string;
13
+ }
@@ -0,0 +1,23 @@
1
+ import { CreditTransferStage, RetireType } from '../Definitions/programme.definitions';
2
+ import { BaseEntity } from './baseEntity';
3
+ export declare class ProgrammeTransfer implements BaseEntity {
4
+ [x: string]: any;
5
+ requestId?: number;
6
+ programmeId?: string;
7
+ initiator?: number;
8
+ initiatorCompanyId?: number;
9
+ toCompanyId?: number;
10
+ toAccount?: string;
11
+ fromCompanyId?: number;
12
+ creditAmount?: number;
13
+ comment?: string;
14
+ txRef?: string;
15
+ txTime?: number;
16
+ status?: CreditTransferStage;
17
+ isRetirement?: boolean;
18
+ companyId?: number[];
19
+ creditOwnerPercentage?: number[];
20
+ createdTime?: number;
21
+ retirementType?: RetireType;
22
+ toCompanyMeta?: any;
23
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseEntity } from "./baseEntity";
2
+ export declare class User implements BaseEntity {
3
+ id?: number;
4
+ email?: string;
5
+ role?: string;
6
+ name?: string;
7
+ country?: string;
8
+ phoneNo?: string;
9
+ companyId?: number;
10
+ companyRole?: string;
11
+ companyState?: number;
12
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum Action {
2
+ Manage = "manage",
3
+ Create = "create",
4
+ Read = "read",
5
+ Update = "update",
6
+ Delete = "delete"
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare enum CompanyManagementColumns {
2
+ logo = 0,
3
+ name = 1,
4
+ taxId = 2,
5
+ companyRole = 3,
6
+ programmeCount = 4,
7
+ creditBalance = 5
8
+ }