@automateinc/fleet-types 1.0.0
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/README.md +17 -0
- package/dist/types/asset-category-field.d.ts +23 -0
- package/dist/types/asset-category.d.ts +10 -0
- package/dist/types/asset-type.d.ts +6 -0
- package/dist/types/asset-value.d.ts +16 -0
- package/dist/types/asset.d.ts +17 -0
- package/dist/types/attendance-count.d.ts +8 -0
- package/dist/types/attendance-leave-reason.d.ts +11 -0
- package/dist/types/attendance-presence-check.d.ts +11 -0
- package/dist/types/attendance.d.ts +42 -0
- package/dist/types/building-contact.d.ts +10 -0
- package/dist/types/building-lease-payment.d.ts +13 -0
- package/dist/types/building-lease.d.ts +12 -0
- package/dist/types/building.d.ts +14 -0
- package/dist/types/bunk.d.ts +8 -0
- package/dist/types/call-log.d.ts +36 -0
- package/dist/types/ceiling.d.ts +9 -0
- package/dist/types/client-class.d.ts +9 -0
- package/dist/types/client-contact.d.ts +13 -0
- package/dist/types/client-site.d.ts +18 -0
- package/dist/types/client.d.ts +17 -0
- package/dist/types/company.d.ts +13 -0
- package/dist/types/config.d.ts +11 -0
- package/dist/types/contact.d.ts +9 -0
- package/dist/types/contract-allowance.d.ts +17 -0
- package/dist/types/contract-benefit.d.ts +8 -0
- package/dist/types/contract-deduction.d.ts +12 -0
- package/dist/types/contract.d.ts +17 -0
- package/dist/types/coords.d.ts +4 -0
- package/dist/types/dispatch-attendance.d.ts +10 -0
- package/dist/types/dispatch-count.d.ts +9 -0
- package/dist/types/dispatch.d.ts +13 -0
- package/dist/types/employee-comment-reaction.d.ts +10 -0
- package/dist/types/employee-comment.d.ts +10 -0
- package/dist/types/employee-status.d.ts +6 -0
- package/dist/types/employee.d.ts +40 -0
- package/dist/types/file.d.ts +18 -0
- package/dist/types/gender.d.ts +1 -0
- package/dist/types/index.d.ts +147 -0
- package/dist/types/loan-installment.d.ts +14 -0
- package/dist/types/loan.d.ts +18 -0
- package/dist/types/metadata-documents.d.ts +4 -0
- package/dist/types/metadata-expiring-documents.d.ts +7 -0
- package/dist/types/metadata-missing-documents.d.ts +5 -0
- package/dist/types/metadata-status-check.d.ts +14 -0
- package/dist/types/metadata.d.ts +14 -0
- package/dist/types/models.d.ts +61 -0
- package/dist/types/nfc-tag.d.ts +11 -0
- package/dist/types/one-time-password.d.ts +16 -0
- package/dist/types/payment-cycle.d.ts +6 -0
- package/dist/types/permission-group.d.ts +8 -0
- package/dist/types/permission.d.ts +7 -0
- package/dist/types/phone-line-commitment.d.ts +11 -0
- package/dist/types/phone-line-contract.d.ts +14 -0
- package/dist/types/phone-line-package.d.ts +14 -0
- package/dist/types/phone-line.d.ts +19 -0
- package/dist/types/position-version.d.ts +21 -0
- package/dist/types/position.d.ts +10 -0
- package/dist/types/recruitment-employment-information-history.d.ts +7 -0
- package/dist/types/recruitment-employment-information.d.ts +12 -0
- package/dist/types/recruitment-medical-information.d.ts +9 -0
- package/dist/types/recruitment-national-card-information.d.ts +13 -0
- package/dist/types/recruitment-other-information-additional-information.d.ts +4 -0
- package/dist/types/recruitment-other-information.d.ts +8 -0
- package/dist/types/recruitment-passport-information.d.ts +12 -0
- package/dist/types/recruitment-personal-information.d.ts +18 -0
- package/dist/types/recruitment-visa-information.d.ts +8 -0
- package/dist/types/recruitment.d.ts +12 -0
- package/dist/types/region.d.ts +15 -0
- package/dist/types/report-category-field.d.ts +23 -0
- package/dist/types/report-category.d.ts +10 -0
- package/dist/types/report-comment-reaction.d.ts +10 -0
- package/dist/types/report-comment.d.ts +11 -0
- package/dist/types/report-type.d.ts +7 -0
- package/dist/types/report-value.d.ts +16 -0
- package/dist/types/report.d.ts +23 -0
- package/dist/types/request-action-execution.d.ts +11 -0
- package/dist/types/request-action.d.ts +13 -0
- package/dist/types/request-category-field.d.ts +26 -0
- package/dist/types/request-category.d.ts +12 -0
- package/dist/types/request-type.d.ts +10 -0
- package/dist/types/request-value.d.ts +15 -0
- package/dist/types/request-verification.d.ts +13 -0
- package/dist/types/request.d.ts +22 -0
- package/dist/types/restriction.d.ts +14 -0
- package/dist/types/role.d.ts +6 -0
- package/dist/types/schedule-attendance.d.ts +25 -0
- package/dist/types/schedule-draft.d.ts +15 -0
- package/dist/types/schedule-site.d.ts +16 -0
- package/dist/types/schedule.d.ts +13 -0
- package/dist/types/shift-type.d.ts +8 -0
- package/dist/types/shift.d.ts +24 -0
- package/dist/types/signing-mode.d.ts +8 -0
- package/dist/types/standard-operating-procedure.d.ts +13 -0
- package/dist/types/tag.d.ts +7 -0
- package/dist/types/team.d.ts +6 -0
- package/dist/types/unit-room.d.ts +8 -0
- package/dist/types/unit.d.ts +8 -0
- package/dist/types/user.d.ts +20 -0
- package/dist/types/vehicle-contract-payment.d.ts +15 -0
- package/dist/types/vehicle-contract.d.ts +17 -0
- package/dist/types/vehicle-insurance.d.ts +18 -0
- package/dist/types/vehicle-make.d.ts +8 -0
- package/dist/types/vehicle-model.d.ts +12 -0
- package/dist/types/vehicle-registration.d.ts +15 -0
- package/dist/types/vehicle.d.ts +23 -0
- package/dist/types/vendor-contact.d.ts +13 -0
- package/dist/types/vendor.d.ts +13 -0
- package/dist/types/zone.d.ts +8 -0
- package/package.json +47 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
import { UseInfiniteQueryOptions, UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
type APIError = {
|
|
5
|
+
error:
|
|
6
|
+
| string
|
|
7
|
+
| Array<{
|
|
8
|
+
message: string;
|
|
9
|
+
field: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type MutationOptions<Response, Args = void> = UseMutationOptions<Response, AxiosError<APIError>, Args, any>;
|
|
14
|
+
|
|
15
|
+
export type QueryOptions<Response> = UseQueryOptions<Response, AxiosError<APIError>, Response, any>;
|
|
16
|
+
|
|
17
|
+
export type InfiniteQueryOptions<Response> = Omit<
|
|
18
|
+
UseInfiniteQueryOptions<Response, AxiosError<APIError>, Response, Response, any>,
|
|
19
|
+
"queryKey" | "queryFn"
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type FormInputType<T extends (...args: any) => any> = Parameters<ReturnType<T>["mutate"]>[0];
|
|
23
|
+
|
|
24
|
+
export type PaginatedResponse<T> = {
|
|
25
|
+
limit: number;
|
|
26
|
+
page: number;
|
|
27
|
+
count: number;
|
|
28
|
+
exceedCount: boolean;
|
|
29
|
+
exceedTotalPages: boolean;
|
|
30
|
+
result: T[];
|
|
31
|
+
hasNextPage: boolean;
|
|
32
|
+
hasPrevPage: boolean;
|
|
33
|
+
totalPages: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export * from "./attendance";
|
|
37
|
+
export * from "./attendance-presence-check";
|
|
38
|
+
export * from "./attendance-count";
|
|
39
|
+
export * from "./company";
|
|
40
|
+
export * from "./contract";
|
|
41
|
+
export * from "./dispatch";
|
|
42
|
+
export * from "./dispatch-attendance";
|
|
43
|
+
export * from "./dispatch-count";
|
|
44
|
+
export * from "./employee";
|
|
45
|
+
export * from "./nfc-tag";
|
|
46
|
+
export * from "./employee-status";
|
|
47
|
+
export * from "./region";
|
|
48
|
+
export * from "./request";
|
|
49
|
+
export * from "./request-verification";
|
|
50
|
+
export * from "./restriction";
|
|
51
|
+
export * from "./request-category";
|
|
52
|
+
export * from "./contact";
|
|
53
|
+
export * from "./request-category-field";
|
|
54
|
+
export * from "./request-type";
|
|
55
|
+
export * from "./models";
|
|
56
|
+
export * from "./role";
|
|
57
|
+
export * from "./schedule";
|
|
58
|
+
export * from "./schedule-draft";
|
|
59
|
+
export * from "./ceiling";
|
|
60
|
+
export * from "./request-value";
|
|
61
|
+
export * from "./team";
|
|
62
|
+
export * from "./user";
|
|
63
|
+
export * from "./recruitment";
|
|
64
|
+
export * from "./recruitment-employment-information-history";
|
|
65
|
+
export * from "./recruitment-employment-information";
|
|
66
|
+
export * from "./recruitment-medical-information";
|
|
67
|
+
export * from "./recruitment-other-information";
|
|
68
|
+
export * from "./recruitment-passport-information";
|
|
69
|
+
export * from "./recruitment-visa-information";
|
|
70
|
+
export * from "./recruitment-personal-information";
|
|
71
|
+
export * from "./file";
|
|
72
|
+
export * from "./gender";
|
|
73
|
+
export * from "./request-action";
|
|
74
|
+
export * from "./request-action-execution";
|
|
75
|
+
export * from "./signing-mode";
|
|
76
|
+
export * from "./recruitment-other-information-additional-information";
|
|
77
|
+
export * from "./recruitment-national-card-information";
|
|
78
|
+
export * from "./client-class";
|
|
79
|
+
export * from "./client";
|
|
80
|
+
export * from "./client-contact";
|
|
81
|
+
export * from "./client-site";
|
|
82
|
+
export * from "./tag";
|
|
83
|
+
export * from "./client-class";
|
|
84
|
+
export * from "./client";
|
|
85
|
+
export * from "./client-contact";
|
|
86
|
+
export * from "./client-site";
|
|
87
|
+
export * from "./zone";
|
|
88
|
+
export * from "./schedule-site";
|
|
89
|
+
export * from "./position";
|
|
90
|
+
export * from "./one-time-password";
|
|
91
|
+
export * from "./position-version";
|
|
92
|
+
export * from "./shift";
|
|
93
|
+
export * from "./shift-type";
|
|
94
|
+
export * from "./standard-operating-procedure";
|
|
95
|
+
export * from "./schedule-attendance";
|
|
96
|
+
export * from "./coords";
|
|
97
|
+
export * from "./attendance-leave-reason";
|
|
98
|
+
export * from "./employee-comment";
|
|
99
|
+
export * from "./employee-comment-reaction";
|
|
100
|
+
export * from "./metadata";
|
|
101
|
+
export * from "./metadata-expiring-documents";
|
|
102
|
+
export * from "./metadata-status-check";
|
|
103
|
+
export * from "./metadata-missing-documents";
|
|
104
|
+
export * from "./metadata-documents";
|
|
105
|
+
export * from "./config";
|
|
106
|
+
export * from "./contract-allowance";
|
|
107
|
+
export * from "./contract-deduction";
|
|
108
|
+
export * from "./contract-benefit";
|
|
109
|
+
export * from "./payment-cycle";
|
|
110
|
+
export * from "./building";
|
|
111
|
+
export * from "./building-lease";
|
|
112
|
+
export * from "./building-lease-payment";
|
|
113
|
+
export * from "./building-contact";
|
|
114
|
+
export * from "./unit";
|
|
115
|
+
export * from "./unit-room";
|
|
116
|
+
export * from "./bunk";
|
|
117
|
+
export * from "./permission";
|
|
118
|
+
export * from "./permission-group";
|
|
119
|
+
export * from "./vendor";
|
|
120
|
+
export * from "./vendor-contact";
|
|
121
|
+
export * from "./vehicle";
|
|
122
|
+
export * from "./asset";
|
|
123
|
+
export * from "./asset-type";
|
|
124
|
+
export * from "./asset-category";
|
|
125
|
+
export * from "./asset-category-field";
|
|
126
|
+
export * from "./asset-value";
|
|
127
|
+
export * from "./phone-line";
|
|
128
|
+
export * from "./phone-line-commitment";
|
|
129
|
+
export * from "./phone-line-contract";
|
|
130
|
+
export * from "./phone-line-package";
|
|
131
|
+
export * from "./vendor";
|
|
132
|
+
export * from "./vehicle-make";
|
|
133
|
+
export * from "./vehicle-model";
|
|
134
|
+
export * from "./vehicle-registration";
|
|
135
|
+
export * from "./vehicle-insurance";
|
|
136
|
+
export * from "./vehicle-contract";
|
|
137
|
+
export * from "./vehicle-contract-payment";
|
|
138
|
+
export * from "./loan";
|
|
139
|
+
export * from "./loan-installment";
|
|
140
|
+
export * from "./report";
|
|
141
|
+
export * from "./report-category";
|
|
142
|
+
export * from "./report-category-field";
|
|
143
|
+
export * from "./report-type";
|
|
144
|
+
export * from "./report-value";
|
|
145
|
+
export * from "./report-comment";
|
|
146
|
+
export * from "./report-comment-reaction";
|
|
147
|
+
export * from "./call-log";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ILoan {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
documentId: string;
|
|
8
|
+
employeeId: string;
|
|
9
|
+
|
|
10
|
+
startDate: string;
|
|
11
|
+
|
|
12
|
+
reason: string;
|
|
13
|
+
|
|
14
|
+
totalAmount: number;
|
|
15
|
+
repaymentPeriod: number;
|
|
16
|
+
|
|
17
|
+
status: "PENDING" | "PAID";
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IMetadataStatusCheck {
|
|
2
|
+
currentStatus?: string;
|
|
3
|
+
newStatus?: string;
|
|
4
|
+
targetStatus?: string;
|
|
5
|
+
requirements?: Array<{
|
|
6
|
+
categoryId?: string;
|
|
7
|
+
complete: boolean;
|
|
8
|
+
label: string;
|
|
9
|
+
name: string;
|
|
10
|
+
typeId?: string;
|
|
11
|
+
optional: boolean;
|
|
12
|
+
noShow: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IMetadataDocuments, IMetadataExpiringDocuments, IMetadataMissingDocuments, IMetadataStatusCheck } from ".";
|
|
2
|
+
|
|
3
|
+
export interface IMetadata {
|
|
4
|
+
expiringDocuments?: {
|
|
5
|
+
[key: string]: IMetadataExpiringDocuments;
|
|
6
|
+
};
|
|
7
|
+
statusCheck?: IMetadataStatusCheck;
|
|
8
|
+
documents?: {
|
|
9
|
+
[key: string]: IMetadataDocuments;
|
|
10
|
+
};
|
|
11
|
+
missingDocuments?: {
|
|
12
|
+
[key: string]: IMetadataMissingDocuments;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type IModel =
|
|
2
|
+
| "team"
|
|
3
|
+
| "region"
|
|
4
|
+
| "role"
|
|
5
|
+
| "company"
|
|
6
|
+
| "employeeStatus"
|
|
7
|
+
| "contractAllowance"
|
|
8
|
+
| "contractDeduction"
|
|
9
|
+
| "contractBenefit"
|
|
10
|
+
| "contract"
|
|
11
|
+
| "loan"
|
|
12
|
+
| "loanInstallment"
|
|
13
|
+
| "employee"
|
|
14
|
+
| "file"
|
|
15
|
+
| "user"
|
|
16
|
+
| "requestType"
|
|
17
|
+
| "requestAction"
|
|
18
|
+
| "requestCategory"
|
|
19
|
+
| "requestActionExecution"
|
|
20
|
+
| "requestVerification"
|
|
21
|
+
| "requestValue"
|
|
22
|
+
| "request"
|
|
23
|
+
| "recruitmentPersonalInformation"
|
|
24
|
+
| "recruitmentEmploymentInformation"
|
|
25
|
+
| "recruitmentPassportInformation"
|
|
26
|
+
| "recruitmentMedicalInformation"
|
|
27
|
+
| "recruitmentVisaInformation"
|
|
28
|
+
| "recruitmentOtherInformation"
|
|
29
|
+
| "recruitmentNationalCardInformation"
|
|
30
|
+
| "recruitment"
|
|
31
|
+
| "config"
|
|
32
|
+
| "permission"
|
|
33
|
+
| "permissionGroup"
|
|
34
|
+
| "apiKey"
|
|
35
|
+
| "employeeEvent"
|
|
36
|
+
| "employeeField"
|
|
37
|
+
| "contact"
|
|
38
|
+
| "signingMode"
|
|
39
|
+
| "restriction"
|
|
40
|
+
| "ceiling"
|
|
41
|
+
| "tag"
|
|
42
|
+
| "client"
|
|
43
|
+
| "clientClass"
|
|
44
|
+
| "clientContact"
|
|
45
|
+
| "zone"
|
|
46
|
+
| "siteClass"
|
|
47
|
+
| "clientSite"
|
|
48
|
+
| "position"
|
|
49
|
+
| "positionVersion"
|
|
50
|
+
| "shiftType"
|
|
51
|
+
| "shift"
|
|
52
|
+
| "schedule"
|
|
53
|
+
| "scheduleSite"
|
|
54
|
+
| "standardOperatingProcedure"
|
|
55
|
+
| "nFCTag"
|
|
56
|
+
| "dispatch"
|
|
57
|
+
| "dispatchAttendance"
|
|
58
|
+
| "attendanceLeaveReason"
|
|
59
|
+
| "attendance"
|
|
60
|
+
| "oneTimePasswordAttempt"
|
|
61
|
+
| "oneTimePassword";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IOneTimePassword {
|
|
2
|
+
createdAt: string;
|
|
3
|
+
updatedAt: string;
|
|
4
|
+
id: string;
|
|
5
|
+
|
|
6
|
+
expiryTime: string;
|
|
7
|
+
timeSent: string;
|
|
8
|
+
requesterIp?: string;
|
|
9
|
+
maxAttempts: number;
|
|
10
|
+
type: "DOCUMENT_SIGNING" | "EMAIL_VERIFICATION" | "PHONE_VERIFICATION" | "PASSWORD_RESET";
|
|
11
|
+
status: "PENDING" | "VERIFIED" | "REJECTED";
|
|
12
|
+
method: "WHATSAPP" | "SMS" | "EMAIL";
|
|
13
|
+
|
|
14
|
+
requestId?: string;
|
|
15
|
+
contactId?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IPhoneLineContract {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
identifier: string;
|
|
8
|
+
startDate?: string;
|
|
9
|
+
endDate?: string;
|
|
10
|
+
status: "ACTIVE" | "INACTIVE" | "ENDED";
|
|
11
|
+
|
|
12
|
+
vendorId: string;
|
|
13
|
+
companyId: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IPhoneLine {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
number: string;
|
|
8
|
+
|
|
9
|
+
assignment: "EMPLOYEE" | "USER" | "SITE" | "POSITION" | "UNASSIGNED";
|
|
10
|
+
status: "ACTIVE" | "TERMINATED";
|
|
11
|
+
|
|
12
|
+
packageId: string;
|
|
13
|
+
contractId: string;
|
|
14
|
+
|
|
15
|
+
employeeId?: string;
|
|
16
|
+
userId?: string;
|
|
17
|
+
siteId?: string;
|
|
18
|
+
positionId?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IPositionVersion {
|
|
2
|
+
id: string;
|
|
3
|
+
updatedAt: Date;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
|
|
6
|
+
status: "UNVERIFIED" | "PENDING_VERIFICATION" | "VERIFIED" | "REJECTED";
|
|
7
|
+
version: number;
|
|
8
|
+
coversSaturday: boolean;
|
|
9
|
+
coversSunday: boolean;
|
|
10
|
+
coversMonday: boolean;
|
|
11
|
+
coversTuesday: boolean;
|
|
12
|
+
coversWednesday: boolean;
|
|
13
|
+
coversThursday: boolean;
|
|
14
|
+
coversFriday: boolean;
|
|
15
|
+
dailyHours: number;
|
|
16
|
+
dailyCoverage: string;
|
|
17
|
+
weeklyCoverage: string;
|
|
18
|
+
|
|
19
|
+
positionId: string;
|
|
20
|
+
activePositionId: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFile, IRecruitmentEmploymentInformationHistory } from ".";
|
|
2
|
+
|
|
3
|
+
export interface IRecruitmentEmploymentInformation {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
retirementStatus: boolean;
|
|
8
|
+
resume?: IFile;
|
|
9
|
+
|
|
10
|
+
desiredRole?: string;
|
|
11
|
+
history?: IRecruitmentEmploymentInformationHistory[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFile } from ".";
|
|
2
|
+
|
|
3
|
+
export interface IRecruitmentNationalCardInformation {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
number?: string;
|
|
8
|
+
country?: string;
|
|
9
|
+
expiryDate: string;
|
|
10
|
+
placeOfIssue?: string;
|
|
11
|
+
issueDate?: string;
|
|
12
|
+
recruitmentId: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IRecruitmentPersonalInformation {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
|
|
6
|
+
firstName?: string;
|
|
7
|
+
middleNames?: string;
|
|
8
|
+
fatherName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
gender?: "MALE" | "FEMALE";
|
|
11
|
+
nationality?: string;
|
|
12
|
+
nationalNumber: string;
|
|
13
|
+
dateOfBirth?: string;
|
|
14
|
+
placeOfBirth?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
fullName?: string;
|
|
17
|
+
location?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IRecruitment {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
|
|
6
|
+
status: "DRAFT" | "VERIFIED" | "PENDING" | "CHANGES_NEEDED" | "RECRUITED";
|
|
7
|
+
regionId: string;
|
|
8
|
+
createdById: string;
|
|
9
|
+
folderKey: string;
|
|
10
|
+
|
|
11
|
+
requestedChanges?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IRegion {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
name: string;
|
|
6
|
+
countryCode: string;
|
|
7
|
+
configs: IRegionConfig[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IRegionConfig {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IReportCategoryField {
|
|
2
|
+
name: string;
|
|
3
|
+
required: boolean;
|
|
4
|
+
type:
|
|
5
|
+
| "STRING"
|
|
6
|
+
| "NUMBER"
|
|
7
|
+
| "BOOLEAN"
|
|
8
|
+
| "DATE"
|
|
9
|
+
| "DATETIME"
|
|
10
|
+
| "TIME"
|
|
11
|
+
| "UPLOAD"
|
|
12
|
+
| "RELATION"
|
|
13
|
+
| "SINGLE_SELECT"
|
|
14
|
+
| "SIGNATURE";
|
|
15
|
+
model?: "contract" | "company" | "contact";
|
|
16
|
+
config: {
|
|
17
|
+
options: any[];
|
|
18
|
+
optionsUrl: string;
|
|
19
|
+
uploadCategory?: string;
|
|
20
|
+
variant?: string;
|
|
21
|
+
dependencies?: any[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IFile, IReportCategoryField } from ".";
|
|
2
|
+
import { IModel } from "./models";
|
|
3
|
+
|
|
4
|
+
export interface IReportValue {
|
|
5
|
+
id: string;
|
|
6
|
+
type: IReportCategoryField["type"];
|
|
7
|
+
name: string;
|
|
8
|
+
value: any;
|
|
9
|
+
model?: IModel;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
relation?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
relationValue?: string;
|
|
15
|
+
file?: IFile;
|
|
16
|
+
}
|