@automateinc/fleet-types 1.0.9 → 1.0.11
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.
|
@@ -1,17 +1,49 @@
|
|
|
1
|
+
export enum EmployeeFieldRecruitmentGroup {
|
|
2
|
+
PERSONAL = "personalInformation",
|
|
3
|
+
EMPLOYMENT = "employmentInformation",
|
|
4
|
+
PASSPORT = "passportInformation",
|
|
5
|
+
NATIONAL_CARD = "nationalCardInformation",
|
|
6
|
+
VISA = "visaInformation",
|
|
7
|
+
MEDICAL = "medicalInformation",
|
|
8
|
+
OTHER = "otherInformation",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type EmployeeFieldBase = {
|
|
12
|
+
field: string;
|
|
13
|
+
fieldType: "STRING" | "NUMBER" | "DATE" | "BOOLEAN" | "DATETIME" | "TIME";
|
|
14
|
+
defaultValue?: any;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type EmployeeFieldRequest = {
|
|
18
|
+
mode: "LATEST" | "ALL" | "SUM" | "COUNT" | "EXISTENCE";
|
|
19
|
+
requestType: string;
|
|
20
|
+
requestCategory: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type EmployeeFieldRecruitment = {
|
|
24
|
+
recruitmentGroup: EmployeeFieldRecruitmentGroup;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type EmployeeFieldRequestInput = EmployeeFieldBase & EmployeeFieldRequest;
|
|
28
|
+
export type EmployeeFieldRecruitmentInput = EmployeeFieldBase & EmployeeFieldRecruitment;
|
|
29
|
+
export type EmployeeFieldMetadataInput = Pick<EmployeeFieldBase, "fieldType" | "defaultValue"> & {
|
|
30
|
+
path: string[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type EmployeeFieldInput = EmployeeFieldRequestInput | EmployeeFieldRecruitmentInput;
|
|
34
|
+
|
|
1
35
|
export interface IEmployeeField {
|
|
2
36
|
id: string;
|
|
3
37
|
createdAt: string;
|
|
4
38
|
updatedAt?: string;
|
|
5
39
|
regionId: string;
|
|
6
40
|
|
|
7
|
-
employeeId
|
|
41
|
+
employeeId?: string;
|
|
8
42
|
|
|
9
43
|
name: string;
|
|
10
|
-
category
|
|
44
|
+
category?: string;
|
|
11
45
|
type: "METADATA" | "REQUEST" | "RECRUITMENT";
|
|
12
|
-
config
|
|
13
|
-
[keyof: PropertyKey]: any;
|
|
14
|
-
};
|
|
46
|
+
config?: EmployeeFieldInput;
|
|
15
47
|
|
|
16
|
-
fallbackId
|
|
48
|
+
fallbackId?: string;
|
|
17
49
|
}
|
package/package.json
CHANGED