@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.
Files changed (111) hide show
  1. package/README.md +17 -0
  2. package/dist/types/asset-category-field.d.ts +23 -0
  3. package/dist/types/asset-category.d.ts +10 -0
  4. package/dist/types/asset-type.d.ts +6 -0
  5. package/dist/types/asset-value.d.ts +16 -0
  6. package/dist/types/asset.d.ts +17 -0
  7. package/dist/types/attendance-count.d.ts +8 -0
  8. package/dist/types/attendance-leave-reason.d.ts +11 -0
  9. package/dist/types/attendance-presence-check.d.ts +11 -0
  10. package/dist/types/attendance.d.ts +42 -0
  11. package/dist/types/building-contact.d.ts +10 -0
  12. package/dist/types/building-lease-payment.d.ts +13 -0
  13. package/dist/types/building-lease.d.ts +12 -0
  14. package/dist/types/building.d.ts +14 -0
  15. package/dist/types/bunk.d.ts +8 -0
  16. package/dist/types/call-log.d.ts +36 -0
  17. package/dist/types/ceiling.d.ts +9 -0
  18. package/dist/types/client-class.d.ts +9 -0
  19. package/dist/types/client-contact.d.ts +13 -0
  20. package/dist/types/client-site.d.ts +18 -0
  21. package/dist/types/client.d.ts +17 -0
  22. package/dist/types/company.d.ts +13 -0
  23. package/dist/types/config.d.ts +11 -0
  24. package/dist/types/contact.d.ts +9 -0
  25. package/dist/types/contract-allowance.d.ts +17 -0
  26. package/dist/types/contract-benefit.d.ts +8 -0
  27. package/dist/types/contract-deduction.d.ts +12 -0
  28. package/dist/types/contract.d.ts +17 -0
  29. package/dist/types/coords.d.ts +4 -0
  30. package/dist/types/dispatch-attendance.d.ts +10 -0
  31. package/dist/types/dispatch-count.d.ts +9 -0
  32. package/dist/types/dispatch.d.ts +13 -0
  33. package/dist/types/employee-comment-reaction.d.ts +10 -0
  34. package/dist/types/employee-comment.d.ts +10 -0
  35. package/dist/types/employee-status.d.ts +6 -0
  36. package/dist/types/employee.d.ts +40 -0
  37. package/dist/types/file.d.ts +18 -0
  38. package/dist/types/gender.d.ts +1 -0
  39. package/dist/types/index.d.ts +147 -0
  40. package/dist/types/loan-installment.d.ts +14 -0
  41. package/dist/types/loan.d.ts +18 -0
  42. package/dist/types/metadata-documents.d.ts +4 -0
  43. package/dist/types/metadata-expiring-documents.d.ts +7 -0
  44. package/dist/types/metadata-missing-documents.d.ts +5 -0
  45. package/dist/types/metadata-status-check.d.ts +14 -0
  46. package/dist/types/metadata.d.ts +14 -0
  47. package/dist/types/models.d.ts +61 -0
  48. package/dist/types/nfc-tag.d.ts +11 -0
  49. package/dist/types/one-time-password.d.ts +16 -0
  50. package/dist/types/payment-cycle.d.ts +6 -0
  51. package/dist/types/permission-group.d.ts +8 -0
  52. package/dist/types/permission.d.ts +7 -0
  53. package/dist/types/phone-line-commitment.d.ts +11 -0
  54. package/dist/types/phone-line-contract.d.ts +14 -0
  55. package/dist/types/phone-line-package.d.ts +14 -0
  56. package/dist/types/phone-line.d.ts +19 -0
  57. package/dist/types/position-version.d.ts +21 -0
  58. package/dist/types/position.d.ts +10 -0
  59. package/dist/types/recruitment-employment-information-history.d.ts +7 -0
  60. package/dist/types/recruitment-employment-information.d.ts +12 -0
  61. package/dist/types/recruitment-medical-information.d.ts +9 -0
  62. package/dist/types/recruitment-national-card-information.d.ts +13 -0
  63. package/dist/types/recruitment-other-information-additional-information.d.ts +4 -0
  64. package/dist/types/recruitment-other-information.d.ts +8 -0
  65. package/dist/types/recruitment-passport-information.d.ts +12 -0
  66. package/dist/types/recruitment-personal-information.d.ts +18 -0
  67. package/dist/types/recruitment-visa-information.d.ts +8 -0
  68. package/dist/types/recruitment.d.ts +12 -0
  69. package/dist/types/region.d.ts +15 -0
  70. package/dist/types/report-category-field.d.ts +23 -0
  71. package/dist/types/report-category.d.ts +10 -0
  72. package/dist/types/report-comment-reaction.d.ts +10 -0
  73. package/dist/types/report-comment.d.ts +11 -0
  74. package/dist/types/report-type.d.ts +7 -0
  75. package/dist/types/report-value.d.ts +16 -0
  76. package/dist/types/report.d.ts +23 -0
  77. package/dist/types/request-action-execution.d.ts +11 -0
  78. package/dist/types/request-action.d.ts +13 -0
  79. package/dist/types/request-category-field.d.ts +26 -0
  80. package/dist/types/request-category.d.ts +12 -0
  81. package/dist/types/request-type.d.ts +10 -0
  82. package/dist/types/request-value.d.ts +15 -0
  83. package/dist/types/request-verification.d.ts +13 -0
  84. package/dist/types/request.d.ts +22 -0
  85. package/dist/types/restriction.d.ts +14 -0
  86. package/dist/types/role.d.ts +6 -0
  87. package/dist/types/schedule-attendance.d.ts +25 -0
  88. package/dist/types/schedule-draft.d.ts +15 -0
  89. package/dist/types/schedule-site.d.ts +16 -0
  90. package/dist/types/schedule.d.ts +13 -0
  91. package/dist/types/shift-type.d.ts +8 -0
  92. package/dist/types/shift.d.ts +24 -0
  93. package/dist/types/signing-mode.d.ts +8 -0
  94. package/dist/types/standard-operating-procedure.d.ts +13 -0
  95. package/dist/types/tag.d.ts +7 -0
  96. package/dist/types/team.d.ts +6 -0
  97. package/dist/types/unit-room.d.ts +8 -0
  98. package/dist/types/unit.d.ts +8 -0
  99. package/dist/types/user.d.ts +20 -0
  100. package/dist/types/vehicle-contract-payment.d.ts +15 -0
  101. package/dist/types/vehicle-contract.d.ts +17 -0
  102. package/dist/types/vehicle-insurance.d.ts +18 -0
  103. package/dist/types/vehicle-make.d.ts +8 -0
  104. package/dist/types/vehicle-model.d.ts +12 -0
  105. package/dist/types/vehicle-registration.d.ts +15 -0
  106. package/dist/types/vehicle.d.ts +23 -0
  107. package/dist/types/vendor-contact.d.ts +13 -0
  108. package/dist/types/vendor.d.ts +13 -0
  109. package/dist/types/zone.d.ts +8 -0
  110. package/package.json +47 -0
  111. 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,14 @@
1
+ export interface ILoanInstallment {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ deletedAt?: string;
6
+
7
+ status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
8
+
9
+ dueDate: string;
10
+
11
+ amount: number;
12
+
13
+ loanId: string;
14
+ }
@@ -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,4 @@
1
+ export interface IMetadataDocuments {
2
+ name: string;
3
+ fileId: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface IMetadataExpiringDocuments {
2
+ name: string;
3
+ categoryId: string;
4
+ typeId: string;
5
+ expiryDate: string;
6
+ expiringIn: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface IMetadataMissingDocuments {
2
+ name: string;
3
+ categoryId: string;
4
+ typeId: string;
5
+ }
@@ -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,11 @@
1
+ export interface INFCTag {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ type: "SITE_INFORMATION" | "EMPLOYEE";
7
+ uri: string;
8
+ data?: any;
9
+ siteId?: number;
10
+ employeeId?: number;
11
+ }
@@ -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,6 @@
1
+ export interface IPaymentCycle {
2
+ id: string;
3
+ createdAt: Date;
4
+ from: Date;
5
+ to: Date;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface IPermissionGroup {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ name: string;
6
+ description?: string;
7
+ teamId: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ export interface IPermission {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ name: string;
6
+ description?: string;
7
+ }
@@ -0,0 +1,11 @@
1
+ export interface IPhoneLineCommitment {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ deletedAt?: string;
6
+
7
+ amount: number;
8
+ dueUntil: string;
9
+
10
+ lineId: string;
11
+ }
@@ -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,14 @@
1
+ export interface IPhoneLinePackage {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ deletedAt?: string;
6
+
7
+ price: number;
8
+ dataThreshold: number;
9
+ internationalBarring: boolean;
10
+
11
+ primaryKey: string;
12
+
13
+ regionId: 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,10 @@
1
+ export interface IPosition {
2
+ id: string;
3
+ updatedAt: Date;
4
+ createdAt: Date;
5
+
6
+ name: string;
7
+ primaryKey: string;
8
+ siteId: string;
9
+ roleId: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface IRecruitmentEmploymentInformationHistory {
2
+ companyName: string;
3
+ startDate: string;
4
+ endDate?: string;
5
+ position: string;
6
+ description?: string;
7
+ }
@@ -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,9 @@
1
+ export interface IRecruitmentMedicalInformation {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ referenceNumber?: string;
7
+ expiryDate?: string;
8
+ institutionName?: string;
9
+ }
@@ -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,4 @@
1
+ export interface IRecruitmentOtherInformationAdditionalInformation {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import { IRecruitmentOtherInformationAdditionalInformation } from ".";
2
+
3
+ export interface IRecruitmentOtherInformation {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ additionalInformation: IRecruitmentOtherInformationAdditionalInformation[];
8
+ }
@@ -0,0 +1,12 @@
1
+ export interface IRecruitmentPassportInformation {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ number?: string;
7
+ expiryDate?: string;
8
+ country?: string;
9
+ placeOfIssue?: string;
10
+ issueDate?: string;
11
+ secondPage?: boolean;
12
+ }
@@ -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,8 @@
1
+ export interface IRecruitmentVisaInformation {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ type: string;
6
+
7
+ expiryDate?: string;
8
+ }
@@ -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,10 @@
1
+ import { IReportCategoryField } from ".";
2
+
3
+ export interface IReportCategory {
4
+ id: string;
5
+ name: string;
6
+ typeId: string;
7
+ fields: IReportCategoryField[];
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ export interface IReportCommentReaction {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+ deletedAt?: Date;
6
+
7
+ userId: string;
8
+ commentId: string;
9
+ reaction: string;
10
+ }
@@ -0,0 +1,11 @@
1
+ export interface IReportComment {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt: Date;
5
+ deletedAt?: Date;
6
+
7
+ reportId: string;
8
+ userId: string;
9
+
10
+ comment: string;
11
+ }
@@ -0,0 +1,7 @@
1
+ export interface IReportType {
2
+ id: string;
3
+ name: string;
4
+ typeId: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ }
@@ -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
+ }