i-tech-shared-components 1.4.7 → 1.4.9
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.
- package/fesm2022/i-tech-shared-components.mjs +15 -7
- package/fesm2022/i-tech-shared-components.mjs.map +1 -1
- package/lib/interfaces/driver.interface.d.ts +40 -0
- package/lib/interfaces/license-type.interface.d.ts +18 -0
- package/lib/interfaces/license.interface.d.ts +19 -0
- package/lib/interfaces/request.interface.d.ts +13 -0
- package/lib/interfaces/state.interface.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DriverCategoryEnum } from "./driver-category.enum";
|
|
2
|
+
import { LicenseResponseInterface } from "./license.interface";
|
|
3
|
+
import { PaginationResponse } from "./request.interface";
|
|
4
|
+
export declare enum DriverStatus {
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
INACTIVE = "INACTIVE",
|
|
7
|
+
SUSPENDED = "SUSPENDED",
|
|
8
|
+
TERMINATED = "TERMINATED"
|
|
9
|
+
}
|
|
10
|
+
export interface DriverBaseInterface {
|
|
11
|
+
id: number;
|
|
12
|
+
status: DriverStatus;
|
|
13
|
+
category: DriverCategoryEnum;
|
|
14
|
+
phoneNumber: string;
|
|
15
|
+
firstName: string;
|
|
16
|
+
lastName: string;
|
|
17
|
+
middleName?: string;
|
|
18
|
+
lastModifiedDate?: string;
|
|
19
|
+
}
|
|
20
|
+
export type DriverListInterface = DriverBaseInterface;
|
|
21
|
+
export interface SingleDriverDTO extends DriverBaseInterface {
|
|
22
|
+
dateOfBirth?: string;
|
|
23
|
+
email?: string;
|
|
24
|
+
address?: string;
|
|
25
|
+
emergencyContactName?: string;
|
|
26
|
+
emergencyContactPhone?: string;
|
|
27
|
+
hireDate?: string;
|
|
28
|
+
seniorityDate?: string;
|
|
29
|
+
terminationDate?: string;
|
|
30
|
+
employeeStartDate?: string;
|
|
31
|
+
lastModifiedBy?: string;
|
|
32
|
+
createdDate?: string;
|
|
33
|
+
profileImage?: string;
|
|
34
|
+
tmtEnabled: boolean;
|
|
35
|
+
tmsEnabled: boolean;
|
|
36
|
+
licences: Array<LicenseResponseInterface>;
|
|
37
|
+
}
|
|
38
|
+
export interface DriverPagination extends PaginationResponse {
|
|
39
|
+
content: Array<DriverListInterface>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { State } from "./state.interface";
|
|
2
|
+
export interface LicenseType {
|
|
3
|
+
id: number;
|
|
4
|
+
licenceTypeSymbol: LicenseTypeSymbol;
|
|
5
|
+
maxVehicleClass: {
|
|
6
|
+
id: number;
|
|
7
|
+
dutyClassification: string;
|
|
8
|
+
vehicleClass: number;
|
|
9
|
+
vehicleSubClass: string;
|
|
10
|
+
maxWeight: number;
|
|
11
|
+
minWeight: number;
|
|
12
|
+
};
|
|
13
|
+
state: State;
|
|
14
|
+
}
|
|
15
|
+
export interface LicenseTypeSymbol {
|
|
16
|
+
id: number;
|
|
17
|
+
licenceSymbolType: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LicenseType } from "./license-type.interface";
|
|
2
|
+
export interface LicenseInterface {
|
|
3
|
+
licenceType: LicenseType;
|
|
4
|
+
licenceNumber: string;
|
|
5
|
+
issueDate: string;
|
|
6
|
+
validUntil: string;
|
|
7
|
+
id?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface LicenseCreationInterface {
|
|
10
|
+
licenceTypeId: string;
|
|
11
|
+
licenceNumber: string;
|
|
12
|
+
issueDate: string;
|
|
13
|
+
validUntil: string;
|
|
14
|
+
}
|
|
15
|
+
export interface LicenseResponseInterface {
|
|
16
|
+
id: number;
|
|
17
|
+
connectionDate: string;
|
|
18
|
+
licence: LicenseInterface;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PaginationResponse {
|
|
2
|
+
totalPages: number;
|
|
3
|
+
totalElements: number;
|
|
4
|
+
sort: any;
|
|
5
|
+
first: boolean;
|
|
6
|
+
last: boolean;
|
|
7
|
+
number: number;
|
|
8
|
+
numberOfElements: number;
|
|
9
|
+
pageable: any;
|
|
10
|
+
size: number;
|
|
11
|
+
content: Array<any>;
|
|
12
|
+
empty: boolean;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export * from './lib/components/menu/menu.component';
|
|
|
21
21
|
export * from './lib/components/label/label.component';
|
|
22
22
|
export * from './lib/components/date-time-picker/date-time-picker.component';
|
|
23
23
|
export * from './lib/components/new-sidebar/new-sidebar.component';
|
|
24
|
+
export * from './lib/interfaces/license.interface';
|
|
25
|
+
export * from './lib/interfaces/driver.interface';
|
|
26
|
+
export * from './lib/interfaces/license-type.interface';
|
|
24
27
|
export * from './lib/services/ag-grid-functions.service';
|
|
25
28
|
export * from './lib/components/ag-grid/ag-grid-button-cell/ag-grid-button-cell.component';
|
|
26
29
|
export * from './lib/components/ag-grid/status-label-cell.component';
|