@automateinc/fleet-types 1.0.39-dev.b8fd753 → 1.0.40-dev.2142107

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 (116) hide show
  1. package/dist/types/asset-category-field.d.ts +1 -0
  2. package/dist/types/asset-category.d.ts +1 -0
  3. package/dist/types/asset-type.d.ts +1 -0
  4. package/dist/types/asset-value.d.ts +1 -0
  5. package/dist/types/asset.d.ts +1 -0
  6. package/dist/types/attendance-leave-reason.d.ts +1 -0
  7. package/dist/types/attendance-patrol-point.d.ts +1 -0
  8. package/dist/types/attendance-patrol.d.ts +1 -0
  9. package/dist/types/attendance-presence-check.d.ts +1 -0
  10. package/dist/types/attendance.d.ts +1 -0
  11. package/dist/types/building-contact.d.ts +1 -0
  12. package/dist/types/building-lease-payment.d.ts +1 -0
  13. package/dist/types/building-lease.d.ts +1 -0
  14. package/dist/types/building.d.ts +1 -0
  15. package/dist/types/bunk.d.ts +1 -0
  16. package/dist/types/call-log.d.ts +1 -0
  17. package/dist/types/ceiling.d.ts +1 -0
  18. package/dist/types/client-class.d.ts +1 -0
  19. package/dist/types/client-contact.d.ts +1 -0
  20. package/dist/types/client-site.d.ts +1 -0
  21. package/dist/types/client.d.ts +1 -0
  22. package/dist/types/company-file.d.ts +1 -0
  23. package/dist/types/company.d.ts +1 -0
  24. package/dist/types/config.d.ts +1 -0
  25. package/dist/types/contact.d.ts +1 -0
  26. package/dist/types/contract-allowance.d.ts +1 -0
  27. package/dist/types/contract-benefit.d.ts +1 -0
  28. package/dist/types/contract-deduction.d.ts +1 -0
  29. package/dist/types/contract.d.ts +1 -0
  30. package/dist/types/dispatch-attendance.d.ts +1 -0
  31. package/dist/types/dispatch.d.ts +1 -0
  32. package/dist/types/employee-comment-reaction.d.ts +1 -0
  33. package/dist/types/employee-comment.d.ts +1 -0
  34. package/dist/types/employee-event.d.ts +1 -1
  35. package/dist/types/employee-field.d.ts +1 -0
  36. package/dist/types/employee-label-assignment.d.ts +1 -0
  37. package/dist/types/employee-label.d.ts +1 -0
  38. package/dist/types/employee-status.d.ts +1 -0
  39. package/dist/types/employee.d.ts +0 -4
  40. package/dist/types/file.d.ts +1 -0
  41. package/dist/types/index.d.ts +4 -9
  42. package/dist/types/leave-event.d.ts +1 -0
  43. package/dist/types/leave-type.d.ts +1 -0
  44. package/dist/types/leave.d.ts +1 -0
  45. package/dist/types/loan-installment.d.ts +1 -0
  46. package/dist/types/loan.d.ts +1 -0
  47. package/dist/types/nfc-tag.d.ts +1 -0
  48. package/dist/types/notification-token.d.ts +1 -0
  49. package/dist/types/notification.d.ts +1 -0
  50. package/dist/types/one-time-password.d.ts +1 -0
  51. package/dist/types/payment-cycle.d.ts +1 -0
  52. package/dist/types/permission-group.d.ts +1 -0
  53. package/dist/types/permission.d.ts +1 -0
  54. package/dist/types/phone-line-commitment.d.ts +1 -0
  55. package/dist/types/phone-line-contract.d.ts +1 -0
  56. package/dist/types/phone-line-package.d.ts +1 -0
  57. package/dist/types/phone-line.d.ts +1 -0
  58. package/dist/types/position-patrol-point.d.ts +1 -0
  59. package/dist/types/position-patrol.d.ts +1 -0
  60. package/dist/types/position-version.d.ts +1 -0
  61. package/dist/types/position.d.ts +1 -0
  62. package/dist/types/recruitment-category-field.d.ts +24 -0
  63. package/dist/types/recruitment-category.d.ts +11 -0
  64. package/dist/types/recruitment-value.d.ts +6 -0
  65. package/dist/types/recruitment.d.ts +1 -0
  66. package/dist/types/region.d.ts +1 -0
  67. package/dist/types/report-category.d.ts +1 -0
  68. package/dist/types/report-comment-reaction.d.ts +1 -0
  69. package/dist/types/report-comment.d.ts +1 -0
  70. package/dist/types/report-type.d.ts +1 -0
  71. package/dist/types/report-value.d.ts +1 -0
  72. package/dist/types/report.d.ts +1 -0
  73. package/dist/types/request-action-execution.d.ts +1 -0
  74. package/dist/types/request-action.d.ts +1 -0
  75. package/dist/types/request-category-field.d.ts +1 -0
  76. package/dist/types/request-category.d.ts +1 -0
  77. package/dist/types/request-type.d.ts +1 -0
  78. package/dist/types/request-value.d.ts +1 -0
  79. package/dist/types/request-verification.d.ts +1 -0
  80. package/dist/types/request.d.ts +1 -0
  81. package/dist/types/restriction.d.ts +1 -0
  82. package/dist/types/role.d.ts +1 -0
  83. package/dist/types/schedule-draft.d.ts +1 -0
  84. package/dist/types/schedule-site.d.ts +1 -0
  85. package/dist/types/schedule.d.ts +1 -0
  86. package/dist/types/shift-type.d.ts +1 -0
  87. package/dist/types/shift.d.ts +1 -0
  88. package/dist/types/signing-mode.d.ts +1 -0
  89. package/dist/types/standard-operating-procedure.d.ts +1 -0
  90. package/dist/types/tag.d.ts +1 -0
  91. package/dist/types/team.d.ts +1 -0
  92. package/dist/types/unit-room.d.ts +1 -0
  93. package/dist/types/unit.d.ts +1 -0
  94. package/dist/types/user.d.ts +0 -3
  95. package/dist/types/value.d.ts +51 -0
  96. package/dist/types/vehicle-contract-payment.d.ts +1 -0
  97. package/dist/types/vehicle-contract.d.ts +1 -0
  98. package/dist/types/vehicle-insurance.d.ts +1 -0
  99. package/dist/types/vehicle-make.d.ts +1 -0
  100. package/dist/types/vehicle-model.d.ts +1 -0
  101. package/dist/types/vehicle-registration.d.ts +1 -0
  102. package/dist/types/vehicle-status.d.ts +1 -0
  103. package/dist/types/vehicle.d.ts +1 -0
  104. package/dist/types/vendor-contact.d.ts +1 -0
  105. package/dist/types/vendor.d.ts +1 -0
  106. package/dist/types/zone.d.ts +1 -0
  107. package/package.json +1 -1
  108. package/dist/types/recruitment-employment-information-history.d.ts +0 -7
  109. package/dist/types/recruitment-employment-information.d.ts +0 -12
  110. package/dist/types/recruitment-medical-information.d.ts +0 -9
  111. package/dist/types/recruitment-national-card-information.d.ts +0 -11
  112. package/dist/types/recruitment-other-information-additional-information.d.ts +0 -4
  113. package/dist/types/recruitment-other-information.d.ts +0 -8
  114. package/dist/types/recruitment-passport-information.d.ts +0 -12
  115. package/dist/types/recruitment-personal-information.d.ts +0 -18
  116. package/dist/types/recruitment-visa-information.d.ts +0 -8
@@ -20,4 +20,5 @@ export interface IAssetCategoryField {
20
20
  variant?: string;
21
21
  dependencies?: any[];
22
22
  };
23
+ metadata?: any;
23
24
  }
@@ -7,4 +7,5 @@ export interface IAssetCategory {
7
7
  fields: IAssetCategoryField[];
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
+ metadata?: any;
10
11
  }
@@ -3,4 +3,5 @@ export interface IAssetType {
3
3
  name: string;
4
4
  createdAt: string;
5
5
  updatedAt: string;
6
+ metadata?: any;
6
7
  }
@@ -13,4 +13,5 @@ export interface IAssetValue {
13
13
  };
14
14
  relationValue?: string;
15
15
  file?: IFile;
16
+ metadata?: any;
16
17
  }
@@ -14,4 +14,5 @@ export interface IAsset {
14
14
  siteId?: string;
15
15
  positionId?: string;
16
16
  phoneLineCommitmentId?: string;
17
+ metadata?: any;
17
18
  }
@@ -8,4 +8,5 @@ export interface IAttendanceLeaveReason {
8
8
  name: string;
9
9
  description?: string;
10
10
  attendances?: IAttendance[];
11
+ metadata?: any;
11
12
  }
@@ -13,4 +13,5 @@ export interface IAttendancePatrolPoint {
13
13
  reportId?: string;
14
14
 
15
15
  patrolId: string;
16
+ metadata?: any;
16
17
  }
@@ -6,4 +6,5 @@ export interface IAttendancePatrol {
6
6
  positionPatrolId: string;
7
7
  attendanceId: string;
8
8
  reportId?: string;
9
+ metadata?: any;
9
10
  }
@@ -8,4 +8,5 @@ export interface IAttendancePresenceCheck {
8
8
  attendanceId: string;
9
9
  userId?: string;
10
10
  imageId?: string;
11
+ metadata?: any;
11
12
  }
@@ -39,4 +39,5 @@ export interface IAttendance {
39
39
  | "UNVERIFIED"
40
40
  | null;
41
41
  type: "SCHEDULED" | "REROUTED" | "REPLACEMENT";
42
+ metadata?: any;
42
43
  }
@@ -7,4 +7,5 @@ export interface IBuildingContact {
7
7
  email?: string;
8
8
  notes?: string;
9
9
  buildingId: string;
10
+ metadata?: any;
10
11
  }
@@ -10,4 +10,5 @@ export interface IBuildingLeasePayment {
10
10
  leaseId: string;
11
11
 
12
12
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
13
+ metadata?: any;
13
14
  }
@@ -9,4 +9,5 @@ export interface IBuildingLease {
9
9
  endDate: string;
10
10
 
11
11
  status: "ACTIVE" | "INACTIVE";
12
+ metadata?: any;
12
13
  }
@@ -11,4 +11,5 @@ export interface IBuilding {
11
11
  status: "ACTIVE" | "INACTIVE";
12
12
  companyId: string;
13
13
  zoneId: string;
14
+ metadata?: any;
14
15
  }
@@ -5,4 +5,5 @@ export interface IBunk {
5
5
  name: string;
6
6
  roomId: string;
7
7
  employeeId: string;
8
+ metadata?: any;
8
9
  }
@@ -33,4 +33,5 @@ export interface ICallLog {
33
33
  reportId?: string;
34
34
 
35
35
  regionId: string;
36
+ metadata?: any;
36
37
  }
@@ -6,4 +6,5 @@ export interface ICeiling {
6
6
  companyId: string;
7
7
 
8
8
  limit: number;
9
+ metadata?: any;
9
10
  }
@@ -6,4 +6,5 @@ export interface IClientClass {
6
6
  regionId: string;
7
7
  createdAt: string;
8
8
  updatedAt: string;
9
+ metadata?: any;
9
10
  }
@@ -10,4 +10,5 @@ export interface IClientContact {
10
10
  notes?: string;
11
11
  client: IClient;
12
12
  clientId: string;
13
+ metadata?: any;
13
14
  }
@@ -15,4 +15,5 @@ export interface IClientSite {
15
15
  contactId?: string;
16
16
  scheduleSite?: IScheduleSite;
17
17
  // Add Zones later
18
+ metadata?: any;
18
19
  }
@@ -14,4 +14,5 @@ export interface IClient {
14
14
  classId: string;
15
15
  companies?: ICompany[];
16
16
  contacts?: IClientContact[];
17
+ metadata?: any;
17
18
  }
@@ -7,4 +7,5 @@ export interface ICompanyFile {
7
7
  name: string;
8
8
  fileId: string;
9
9
  companyId: string;
10
+ metadata?: any;
10
11
  }
@@ -10,4 +10,5 @@ export interface ICompany {
10
10
  parentCompanyId?: string;
11
11
  logoId?: string;
12
12
  stampId?: string;
13
+ metadata?: any;
13
14
  }
@@ -9,4 +9,5 @@ export interface IConfig {
9
9
  teamId?: string;
10
10
  regionId?: string;
11
11
  companyId?: string;
12
+ metadata?: any;
12
13
  }
@@ -6,4 +6,5 @@ export interface IContact {
6
6
  type: "EMAIL" | "PHONE";
7
7
  value: string;
8
8
  verified: boolean;
9
+ metadata?: any;
9
10
  }
@@ -14,4 +14,5 @@ export interface IContractAllowance {
14
14
  regionId: string;
15
15
  companyId?: string;
16
16
  computedValue: number;
17
+ metadata?: any;
17
18
  }
@@ -5,4 +5,5 @@ export interface IContractBenefit {
5
5
  name: string;
6
6
  regionId: string;
7
7
  companyId?: string;
8
+ metadata?: any;
8
9
  }
@@ -9,4 +9,5 @@ export interface IContractDeduction {
9
9
  regionId: string;
10
10
  companyId?: string;
11
11
  computedValue: number;
12
+ metadata?: any;
12
13
  }
@@ -14,4 +14,5 @@ export interface IContract {
14
14
  overtimeRate: number;
15
15
  contractualAllowancesProvided: boolean;
16
16
  paymentType: "TRANSFER" | "CASH" | "CHECK" | "UNPAID" | "FORSA" | "OTHER";
17
+ metadata?: any;
17
18
  }
@@ -7,4 +7,5 @@ export interface IDispatchAttendance {
7
7
  checked: boolean | null;
8
8
  dispatchId: string;
9
9
  attendanceId: string;
10
+ metadata?: any;
10
11
  }
@@ -11,4 +11,5 @@ export interface IDispatch {
11
11
  fleetCheckTime: string;
12
12
  zoneId: string;
13
13
  primaryKey: string;
14
+ metadata?: any;
14
15
  }
@@ -7,4 +7,5 @@ export interface IEmployeeCommentReaction {
7
7
  userId: string;
8
8
  commentId: string;
9
9
  reaction: string;
10
+ metadata?: any;
10
11
  }
@@ -7,4 +7,5 @@ export interface IEmployeeComment {
7
7
  userId: string;
8
8
  employeeId: string;
9
9
  comment: string;
10
+ metadata?: any;
10
11
  }
@@ -6,5 +6,5 @@ export interface IEmployeeEvent {
6
6
  employeeId: string;
7
7
 
8
8
  type: string;
9
- metadata: any;
9
+ metadata?: any;
10
10
  }
@@ -46,4 +46,5 @@ export interface IEmployeeField {
46
46
  config?: EmployeeFieldInput;
47
47
 
48
48
  fallbackId?: string;
49
+ metadata?: any;
49
50
  }
@@ -7,4 +7,5 @@ export interface IEmployeeLabelAssignment {
7
7
  employeeId: string;
8
8
 
9
9
  systemAssigned: boolean;
10
+ metadata?: any;
10
11
  }
@@ -12,4 +12,5 @@ export interface IEmployeeLabel {
12
12
 
13
13
  regionId: string;
14
14
  userId?: string;
15
+ metadata?: any;
15
16
  }
@@ -3,4 +3,5 @@ export interface IEmployeeStatus {
3
3
  id: string;
4
4
  name: string;
5
5
  updatedAt: Date;
6
+ metadata?: any;
6
7
  }
@@ -37,8 +37,4 @@ export interface IEmployee {
37
37
  [key: PropertyKey]: any;
38
38
  };
39
39
  };
40
-
41
- tokens: {
42
- [key: PropertyKey]: string;
43
- };
44
40
  }
@@ -16,4 +16,5 @@ export interface IFile {
16
16
  thumbnail?: IFile;
17
17
 
18
18
  tags?: ITag[];
19
+ metadata?: any;
19
20
  }
@@ -64,20 +64,11 @@ export * from "./request-value";
64
64
  export * from "./team";
65
65
  export * from "./user";
66
66
  export * from "./recruitment";
67
- export * from "./recruitment-employment-information-history";
68
- export * from "./recruitment-employment-information";
69
- export * from "./recruitment-medical-information";
70
- export * from "./recruitment-other-information";
71
- export * from "./recruitment-passport-information";
72
- export * from "./recruitment-visa-information";
73
- export * from "./recruitment-personal-information";
74
67
  export * from "./file";
75
68
  export * from "./gender";
76
69
  export * from "./request-action";
77
70
  export * from "./request-action-execution";
78
71
  export * from "./signing-mode";
79
- export * from "./recruitment-other-information-additional-information";
80
- export * from "./recruitment-national-card-information";
81
72
  export * from "./client-class";
82
73
  export * from "./client";
83
74
  export * from "./client-contact";
@@ -163,3 +154,7 @@ export * from "./position-patrol";
163
154
  export * from "./position-patrol-point";
164
155
  export * from "./attendance-patrol";
165
156
  export * from "./attendance-patrol-point";
157
+ export * from "./recruitment-category";
158
+ export * from "./recruitment-category-field";
159
+ export * from "./recruitment-value";
160
+ export * from "./value";
@@ -12,4 +12,5 @@ export type ILeaveEvent = {
12
12
  recurrence: "ONCE" | "ANNUAL";
13
13
 
14
14
  regionId: string;
15
+ metadata?: any;
15
16
  };
@@ -8,4 +8,5 @@ export type ILeaveType = {
8
8
  paid: boolean;
9
9
 
10
10
  regionId: string;
11
+ metadata?: any;
11
12
  };
@@ -13,4 +13,5 @@ export type ILeave = {
13
13
  status: "ACTIVE" | "UPCOMING" | "ENDED";
14
14
 
15
15
  notes?: string;
16
+ metadata?: any;
16
17
  };
@@ -11,4 +11,5 @@ export interface ILoanInstallment {
11
11
  amount: number;
12
12
 
13
13
  loanId: string;
14
+ metadata?: any;
14
15
  }
@@ -15,4 +15,5 @@ export interface ILoan {
15
15
  repaymentPeriod: number;
16
16
 
17
17
  status: "PENDING" | "PAID";
18
+ metadata?: any;
18
19
  }
@@ -9,4 +9,5 @@ export interface INFCTag {
9
9
  data?: any;
10
10
  siteId?: string;
11
11
  employeeId?: string;
12
+ metadata?: any;
12
13
  }
@@ -7,4 +7,5 @@ export interface INotificationToken {
7
7
 
8
8
  userId?: string;
9
9
  employeeId?: string;
10
+ metadata?: any;
10
11
  }
@@ -16,4 +16,5 @@ export interface INotification {
16
16
  attendancePresenceCheckId?: string;
17
17
  recruitmentId?: string;
18
18
  dispatchId?: string;
19
+ metadata?: any;
19
20
  }
@@ -13,4 +13,5 @@ export interface IOneTimePassword {
13
13
 
14
14
  requestId?: string;
15
15
  contactId?: string;
16
+ metadata?: any;
16
17
  }
@@ -3,4 +3,5 @@ export interface IPaymentCycle {
3
3
  createdAt: Date;
4
4
  from: Date;
5
5
  to: Date;
6
+ metadata?: any;
6
7
  }
@@ -5,4 +5,5 @@ export interface IPermissionGroup {
5
5
  name: string;
6
6
  description?: string;
7
7
  teamId: string;
8
+ metadata?: any;
8
9
  }
@@ -4,4 +4,5 @@ export interface IPermission {
4
4
  updatedAt: string;
5
5
  name: string;
6
6
  description?: string;
7
+ metadata?: any;
7
8
  }
@@ -8,4 +8,5 @@ export interface IPhoneLineCommitment {
8
8
  dueUntil: string;
9
9
 
10
10
  lineId: string;
11
+ metadata?: any;
11
12
  }
@@ -11,4 +11,5 @@ export interface IPhoneLineContract {
11
11
 
12
12
  vendorId: string;
13
13
  companyId: string;
14
+ metadata?: any;
14
15
  }
@@ -11,4 +11,5 @@ export interface IPhoneLinePackage {
11
11
  primaryKey: string;
12
12
 
13
13
  regionId: string;
14
+ metadata?: any;
14
15
  }
@@ -17,4 +17,5 @@ export interface IPhoneLine {
17
17
  userId?: string;
18
18
  siteId?: string;
19
19
  positionId?: string;
20
+ metadata?: any;
20
21
  }
@@ -13,4 +13,5 @@ export interface IPositionPatrolPoint {
13
13
  nfcTagId?: string;
14
14
  reportTypeId?: string;
15
15
  reportCategoryId?: string;
16
+ metadata?: any;
16
17
  }
@@ -9,4 +9,5 @@ export interface IPositionPatrol {
9
9
  frequency: number;
10
10
 
11
11
  positionId: string;
12
+ metadata?: any;
12
13
  }
@@ -18,4 +18,5 @@ export interface IPositionVersion {
18
18
 
19
19
  positionId: string;
20
20
  activePositionId: string;
21
+ metadata?: any;
21
22
  }
@@ -7,4 +7,5 @@ export interface IPosition {
7
7
  primaryKey: string;
8
8
  siteId: string;
9
9
  roleId: string;
10
+ metadata?: any;
10
11
  }
@@ -0,0 +1,24 @@
1
+ export interface IRecruitmentCategoryField {
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
+ metadata?: any;
24
+ }
@@ -0,0 +1,11 @@
1
+ import { IRecruitmentCategoryField } from ".";
2
+
3
+ export interface IRecruitmentCategory {
4
+ id: string;
5
+ name: string;
6
+ typeId: string;
7
+ fields: IRecruitmentCategoryField[];
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ metadata?: any;
11
+ }
@@ -0,0 +1,6 @@
1
+ import { IValue } from "./value";
2
+
3
+ export interface IRecruitmentValue extends IValue {
4
+ categoryId: string;
5
+ recruitmentId: string;
6
+ }
@@ -12,4 +12,5 @@ export interface IRecruitment {
12
12
  recruitedById?: string;
13
13
 
14
14
  requestedChanges?: string;
15
+ metadata?: any;
15
16
  }
@@ -4,4 +4,5 @@ export interface IRegion {
4
4
  updatedAt: string;
5
5
  name: string;
6
6
  prefix?: string;
7
+ metadata?: any;
7
8
  }
@@ -7,4 +7,5 @@ export interface IReportCategory {
7
7
  fields: IReportCategoryField[];
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
+ metadata?: any;
10
11
  }
@@ -7,4 +7,5 @@ export interface IReportCommentReaction {
7
7
  userId: string;
8
8
  commentId: string;
9
9
  reaction: string;
10
+ metadata?: any;
10
11
  }
@@ -8,4 +8,5 @@ export interface IReportComment {
8
8
  userId: string;
9
9
 
10
10
  comment: string;
11
+ metadata?: any;
11
12
  }
@@ -4,4 +4,5 @@ export interface IReportType {
4
4
  typeId: string;
5
5
  createdAt: string;
6
6
  updatedAt: string;
7
+ metadata?: any;
7
8
  }
@@ -13,4 +13,5 @@ export interface IReportValue {
13
13
  };
14
14
  relationValue?: string;
15
15
  file?: IFile;
16
+ metadata?: any;
16
17
  }
@@ -19,5 +19,6 @@ export interface IReport {
19
19
  clientId?: string;
20
20
  siteId?: string;
21
21
  zoneId?: string;
22
+ metadata?: any;
22
23
  buildingId?: string;
23
24
  }
@@ -8,4 +8,5 @@ export interface IRequestActionExecution {
8
8
  startedAt: string | null;
9
9
  endedAt: string | null;
10
10
  failureReason?: string;
11
+ metadata?: any;
11
12
  }
@@ -11,4 +11,5 @@ export interface IRequestAction {
11
11
  config: Record<string, any>;
12
12
  order: number;
13
13
  fields: IRequestCategoryField[];
14
+ metadata?: any;
14
15
  }
@@ -23,4 +23,5 @@ export interface IRequestCategoryField {
23
23
  hasDependency?: boolean;
24
24
  variant?: string;
25
25
  };
26
+ metadata?: any;
26
27
  }
@@ -10,4 +10,5 @@ export interface IRequestCategory {
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  allowedRequesters: Array<"USER" | "EMPLOYEE">;
13
+ metadata?: any;
13
14
  }
@@ -7,4 +7,5 @@ export interface IRequestType {
7
7
  updatedAt: string;
8
8
  categories: IRequestCategory[];
9
9
  visible: boolean;
10
+ metadata?: any;
10
11
  }
@@ -15,4 +15,5 @@ export interface IRequestValue {
15
15
  };
16
16
  relationValue?: string;
17
17
  file?: IFile;
18
+ metadata?: any;
18
19
  }
@@ -10,4 +10,5 @@ export interface IRequestVerification {
10
10
  verifiedBy: IEmployee;
11
11
 
12
12
  rejectionReason?: string;
13
+ metadata?: any;
13
14
  }
@@ -23,4 +23,5 @@ export interface IRequest {
23
23
  employeeId: string;
24
24
  status: "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "WITHDRAWN" | "PENDING_VERIFICATION" | "ARCHIVED";
25
25
  actionsExecutionStatus: "PENDING" | "COMPLETED" | "PROCESSING" | "FAILED" | "SKIPPED";
26
+ metadata?: any;
26
27
  }
@@ -11,4 +11,5 @@ export interface IRestriction {
11
11
  valueB?: string;
12
12
 
13
13
  requestCategoryId?: string;
14
+ metadata?: any;
14
15
  }
@@ -3,4 +3,5 @@ export interface IRole {
3
3
  id: string;
4
4
  name: string;
5
5
  updatedAt: Date;
6
+ metadata?: any;
6
7
  }
@@ -15,4 +15,5 @@ export interface IScheduleDraft {
15
15
 
16
16
  employee: IEmployee;
17
17
  employeeId?: string;
18
+ metadata?: any;
18
19
  }
@@ -13,4 +13,5 @@ export interface IScheduleSite {
13
13
  positionsCount: number;
14
14
  schedulesCount: number;
15
15
  scheduledSchedulesCount: number;
16
+ metadata?: any;
16
17
  }
@@ -10,4 +10,5 @@ export interface ISchedule {
10
10
 
11
11
  employee: IEmployee;
12
12
  employeeId?: string;
13
+ metadata?: any;
13
14
  }
@@ -5,4 +5,5 @@ export interface IShiftType {
5
5
 
6
6
  name: string;
7
7
  hours: number;
8
+ metadata?: any;
8
9
  }
@@ -21,4 +21,5 @@ export interface IShift {
21
21
  coversFriday: boolean;
22
22
 
23
23
  positionId: string;
24
+ metadata?: any;
24
25
  }
@@ -5,4 +5,5 @@ export interface ISigningMode {
5
5
 
6
6
  userId: string;
7
7
  employeeId?: string;
8
+ metadata?: any;
8
9
  }
@@ -10,4 +10,5 @@ export interface IStandardOperatingProcedure {
10
10
 
11
11
  positionId?: string;
12
12
  siteId?: string;
13
+ metadata?: any;
13
14
  }
@@ -4,4 +4,5 @@ export interface ITag {
4
4
  updatedAt: string;
5
5
  name: string;
6
6
  value: string;
7
+ metadata?: any;
7
8
  }
@@ -3,4 +3,5 @@ export interface ITeam {
3
3
  name: string;
4
4
  createdAt: string;
5
5
  updatedAt: string;
6
+ metadata?: any;
6
7
  }
@@ -5,4 +5,5 @@ export interface IUnitRoom {
5
5
 
6
6
  name: string;
7
7
  unitId: string;
8
+ metadata?: any;
8
9
  }
@@ -5,4 +5,5 @@ export interface IUnit {
5
5
  name: string;
6
6
  buildingId: string;
7
7
  status: "ACTIVE" | "INACTIVE";
8
+ metadata?: any;
8
9
  }
@@ -17,7 +17,4 @@ export interface IUser {
17
17
  createdAt: string;
18
18
  updatedAt: string;
19
19
  metadata?: { [key: PropertyKey]: any };
20
- tokens: {
21
- [key: PropertyKey]: string;
22
- };
23
20
  }
@@ -0,0 +1,51 @@
1
+ import { IClient } from "./client";
2
+ import { ICompany } from "./company";
3
+ import { IContact } from "./contact";
4
+ import { IContract } from "./contract";
5
+ import { IFile } from "./file";
6
+ import { IModel } from "./models";
7
+ import { IPaymentCycle } from "./payment-cycle";
8
+ import { IZone } from "./zone";
9
+
10
+ export interface IValue {
11
+ id: string;
12
+ type:
13
+ | "STRING"
14
+ | "NUMBER"
15
+ | "BOOLEAN"
16
+ | "DATE"
17
+ | "DATETIME"
18
+ | "TIME"
19
+ | "UPLOAD"
20
+ | "RELATION"
21
+ | "SINGLE_SELECT"
22
+ | "SIGNATURE";
23
+ name: string;
24
+ value: any;
25
+ config?: {
26
+ model?: IModel;
27
+ options?: Array<{ label: string; value: string } | string>;
28
+ optionsUrl?: string;
29
+ dependencies?: string[];
30
+ hasDependency?: boolean;
31
+ uploadCategory?: string;
32
+ };
33
+ metadata?: any;
34
+ clientId?: string;
35
+ companyId?: string;
36
+ contactId?: string;
37
+ contractId?: string;
38
+ fileId?: string;
39
+ paymentCycleId?: string;
40
+ zoneId?: string;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+
44
+ file?: IFile;
45
+ company?: ICompany;
46
+ client?: IClient;
47
+ contract?: IContract;
48
+ contact?: IContact;
49
+ paymentCycle?: IPaymentCycle;
50
+ zone?: IZone;
51
+ }
@@ -12,4 +12,5 @@ export interface IVehicleContractPayment {
12
12
  contractId: string;
13
13
 
14
14
  status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
15
+ metadata?: any;
15
16
  }
@@ -14,4 +14,5 @@ export interface IVehicleContract {
14
14
  vendorId: string;
15
15
 
16
16
  active: boolean;
17
+ metadata?: any;
17
18
  }
@@ -15,4 +15,5 @@ export interface IVehicleInsurance {
15
15
  expiryDate: string;
16
16
 
17
17
  active: boolean;
18
+ metadata?: any;
18
19
  }
@@ -5,4 +5,5 @@ export interface IVehicleMake {
5
5
  deletedAt?: string;
6
6
 
7
7
  name: string;
8
+ metadata?: any;
8
9
  }
@@ -9,4 +9,5 @@ export interface IVehicleModel {
9
9
  makeId: string;
10
10
 
11
11
  regionId: string;
12
+ metadata?: any;
12
13
  }
@@ -12,4 +12,5 @@ export interface IVehicleRegistration {
12
12
  expiryDate: string;
13
13
 
14
14
  active: boolean;
15
+ metadata?: any;
15
16
  }
@@ -7,4 +7,5 @@ export interface IVehicleStatus {
7
7
  name: string;
8
8
 
9
9
  regionId: string;
10
+ metadata?: any;
10
11
  }
@@ -23,4 +23,5 @@ export interface IVehicle {
23
23
  statusId: string;
24
24
 
25
25
  assignment: "EMPLOYEE" | "USER" | "POSITION" | "UNASSIGNED";
26
+ metadata?: any;
26
27
  }
@@ -10,4 +10,5 @@ export interface IVendorContact {
10
10
  notes?: string;
11
11
 
12
12
  vendorId: string;
13
+ metadata?: any;
13
14
  }
@@ -10,4 +10,5 @@ export interface IVendor {
10
10
  folderKey?: string;
11
11
 
12
12
  regionId: string;
13
+ metadata?: any;
13
14
  }
@@ -10,4 +10,5 @@ export interface IZone {
10
10
  schedulesResetOn: "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | null;
11
11
 
12
12
  regionId: string;
13
+ metadata?: any;
13
14
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@automateinc/fleet-types",
3
3
  "private": false,
4
- "version": "1.0.39-dev.b8fd753",
4
+ "version": "1.0.40-dev.2142107",
5
5
  "description": "Reusable TypeScript types and interfaces for Fleet API.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -1,7 +0,0 @@
1
- export interface IRecruitmentEmploymentInformationHistory {
2
- companyName: string;
3
- startDate: string;
4
- endDate?: string;
5
- position: string;
6
- description?: string;
7
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
1
- export interface IRecruitmentMedicalInformation {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
-
6
- referenceNumber?: string;
7
- expiryDate?: string;
8
- institutionName?: string;
9
- }
@@ -1,11 +0,0 @@
1
- export interface IRecruitmentNationalCardInformation {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
- number?: string;
6
- country?: string;
7
- expiryDate: string;
8
- placeOfIssue?: string;
9
- issueDate?: string;
10
- recruitmentId: string;
11
- }
@@ -1,4 +0,0 @@
1
- export interface IRecruitmentOtherInformationAdditionalInformation {
2
- name: string;
3
- value: string;
4
- }
@@ -1,8 +0,0 @@
1
- import { IRecruitmentOtherInformationAdditionalInformation } from ".";
2
-
3
- export interface IRecruitmentOtherInformation {
4
- id: string;
5
- createdAt: string;
6
- updatedAt: string;
7
- additionalInformation: IRecruitmentOtherInformationAdditionalInformation[];
8
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
1
- export interface IRecruitmentVisaInformation {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
- type: string;
6
-
7
- expiryDate?: string;
8
- }