@undp/carbon-library 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +5269 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/Components/Common/CompanyRoleIcon/companyRoleIcon.d.ts +6 -0
- package/dist/cjs/types/Components/Common/InfoView/info.view.d.ts +10 -0
- package/dist/cjs/types/Components/Common/LanguageSelection/languageSelection.d.ts +7 -0
- package/dist/cjs/types/Components/Common/LegendItem/legendItem.d.ts +7 -0
- package/dist/cjs/types/Components/Common/Loading/loading.d.ts +1 -0
- package/dist/cjs/types/Components/Common/Maps/mapComponent.d.ts +2 -0
- package/dist/cjs/types/Components/Common/Maps/mapboxComponent.d.ts +4 -0
- package/dist/cjs/types/Components/Common/Models/changePasswordModel.d.ts +13 -0
- package/dist/cjs/types/Components/Common/Models/programmeIssueForm.d.ts +13 -0
- package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +15 -0
- package/dist/cjs/types/Components/Common/Models/programmeRevokeForm.d.ts +13 -0
- package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +18 -0
- package/dist/cjs/types/Components/Common/Models/userActionConfirmationModel.d.ts +13 -0
- package/dist/cjs/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +7 -0
- package/dist/cjs/types/Components/Common/ProfileIcon/profile.icon.d.ts +10 -0
- package/dist/cjs/types/Components/Common/RoleIcon/role.icon.d.ts +9 -0
- package/dist/cjs/types/Components/Common/StasticCard/stasticCard.d.ts +11 -0
- package/dist/cjs/types/Components/Common/TimelineBody/timelineBody.d.ts +10 -0
- package/dist/cjs/types/Components/Common/UserRoleIcon/userRoleIcon.d.ts +6 -0
- package/dist/cjs/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +3 -0
- package/dist/cjs/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +3 -0
- package/dist/cjs/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -0
- package/dist/cjs/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +3 -0
- package/dist/cjs/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -0
- package/dist/cjs/types/Components/User/AddNewUser/addNewUserComponent.d.ts +4 -0
- package/dist/cjs/types/Components/User/UserManagement/userManagementComponent.d.ts +3 -0
- package/dist/cjs/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -0
- package/dist/cjs/types/Components/index.d.ts +13 -0
- package/dist/cjs/types/Definitions/Definitions/addUser.definitions.d.ts +22 -0
- package/dist/cjs/types/Definitions/Definitions/common.definitions.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/companyManagement.definitions.d.ts +15 -0
- package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +26 -0
- package/dist/cjs/types/Definitions/Definitions/dashboard.definitions.d.ts +1 -0
- package/dist/cjs/types/Definitions/Definitions/layout.header.d.ts +4 -0
- package/dist/cjs/types/Definitions/Definitions/layout.sider.definitions.d.ts +4 -0
- package/dist/cjs/types/Definitions/Definitions/mapComponent.definitions.d.ts +32 -0
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +135 -0
- package/dist/cjs/types/Definitions/Definitions/settings.definitions.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/userForgotPassword.definitions.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/userInformationContext.definitions.d.ts +17 -0
- package/dist/cjs/types/Definitions/Definitions/userLogin.definitions.d.ts +4 -0
- package/dist/cjs/types/Definitions/Definitions/userManagement.definitions.d.ts +22 -0
- package/dist/cjs/types/Definitions/Entities/baseEntity.d.ts +2 -0
- package/dist/cjs/types/Definitions/Entities/company.d.ts +13 -0
- package/dist/cjs/types/Definitions/Entities/programmeTransfer.d.ts +23 -0
- package/dist/cjs/types/Definitions/Entities/user.d.ts +12 -0
- package/dist/cjs/types/Definitions/Enums/action.enum.d.ts +7 -0
- package/dist/cjs/types/Definitions/Enums/company.management.columns.enum.d.ts +8 -0
- package/dist/cjs/types/Definitions/Enums/company.role.enum.d.ts +17 -0
- package/dist/cjs/types/Definitions/Enums/company.state.enum.d.ts +4 -0
- package/dist/cjs/types/Definitions/Enums/programme.management.columns.enum.d.ts +11 -0
- package/dist/cjs/types/Definitions/Enums/statsCards.type.enum.d.ts +18 -0
- package/dist/cjs/types/Definitions/Enums/user.management.columns.enum.d.ts +10 -0
- package/dist/cjs/types/Definitions/index.d.ts +13 -0
- package/dist/cjs/types/Styles/role.color.constants.d.ts +15 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +5222 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/Components/Common/CompanyRoleIcon/companyRoleIcon.d.ts +6 -0
- package/dist/esm/types/Components/Common/InfoView/info.view.d.ts +10 -0
- package/dist/esm/types/Components/Common/LanguageSelection/languageSelection.d.ts +7 -0
- package/dist/esm/types/Components/Common/LegendItem/legendItem.d.ts +7 -0
- package/dist/esm/types/Components/Common/Loading/loading.d.ts +1 -0
- package/dist/esm/types/Components/Common/Maps/mapComponent.d.ts +2 -0
- package/dist/esm/types/Components/Common/Maps/mapboxComponent.d.ts +4 -0
- package/dist/esm/types/Components/Common/Models/changePasswordModel.d.ts +13 -0
- package/dist/esm/types/Components/Common/Models/programmeIssueForm.d.ts +13 -0
- package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +15 -0
- package/dist/esm/types/Components/Common/Models/programmeRevokeForm.d.ts +13 -0
- package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +18 -0
- package/dist/esm/types/Components/Common/Models/userActionConfirmationModel.d.ts +13 -0
- package/dist/esm/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +7 -0
- package/dist/esm/types/Components/Common/ProfileIcon/profile.icon.d.ts +10 -0
- package/dist/esm/types/Components/Common/RoleIcon/role.icon.d.ts +9 -0
- package/dist/esm/types/Components/Common/StasticCard/stasticCard.d.ts +11 -0
- package/dist/esm/types/Components/Common/TimelineBody/timelineBody.d.ts +10 -0
- package/dist/esm/types/Components/Common/UserRoleIcon/userRoleIcon.d.ts +6 -0
- package/dist/esm/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +3 -0
- package/dist/esm/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +3 -0
- package/dist/esm/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -0
- package/dist/esm/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +3 -0
- package/dist/esm/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -0
- package/dist/esm/types/Components/User/AddNewUser/addNewUserComponent.d.ts +4 -0
- package/dist/esm/types/Components/User/UserManagement/userManagementComponent.d.ts +3 -0
- package/dist/esm/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -0
- package/dist/esm/types/Components/index.d.ts +13 -0
- package/dist/esm/types/Definitions/Definitions/addUser.definitions.d.ts +22 -0
- package/dist/esm/types/Definitions/Definitions/common.definitions.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/companyManagement.definitions.d.ts +15 -0
- package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +26 -0
- package/dist/esm/types/Definitions/Definitions/dashboard.definitions.d.ts +1 -0
- package/dist/esm/types/Definitions/Definitions/layout.header.d.ts +4 -0
- package/dist/esm/types/Definitions/Definitions/layout.sider.definitions.d.ts +4 -0
- package/dist/esm/types/Definitions/Definitions/mapComponent.definitions.d.ts +32 -0
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +135 -0
- package/dist/esm/types/Definitions/Definitions/settings.definitions.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/userForgotPassword.definitions.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/userInformationContext.definitions.d.ts +17 -0
- package/dist/esm/types/Definitions/Definitions/userLogin.definitions.d.ts +4 -0
- package/dist/esm/types/Definitions/Definitions/userManagement.definitions.d.ts +22 -0
- package/dist/esm/types/Definitions/Entities/baseEntity.d.ts +2 -0
- package/dist/esm/types/Definitions/Entities/company.d.ts +13 -0
- package/dist/esm/types/Definitions/Entities/programmeTransfer.d.ts +23 -0
- package/dist/esm/types/Definitions/Entities/user.d.ts +12 -0
- package/dist/esm/types/Definitions/Enums/action.enum.d.ts +7 -0
- package/dist/esm/types/Definitions/Enums/company.management.columns.enum.d.ts +8 -0
- package/dist/esm/types/Definitions/Enums/company.role.enum.d.ts +17 -0
- package/dist/esm/types/Definitions/Enums/company.state.enum.d.ts +4 -0
- package/dist/esm/types/Definitions/Enums/programme.management.columns.enum.d.ts +11 -0
- package/dist/esm/types/Definitions/Enums/statsCards.type.enum.d.ts +18 -0
- package/dist/esm/types/Definitions/Enums/user.management.columns.enum.d.ts +10 -0
- package/dist/esm/types/Definitions/index.d.ts +13 -0
- package/dist/esm/types/Styles/role.color.constants.d.ts +15 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +356 -0
- package/package.json +3 -2
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Loading: () => 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,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,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,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,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,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,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,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,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
|
+
}
|