@automateinc/fleet-types 1.0.94-dev.5978801 → 1.0.94-dev.5dc13b4
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/dist/types/client-quotation-position-version.d.ts +2 -2
- package/dist/types/client.d.ts +3 -0
- package/dist/types/employee-group.d.ts +0 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/models.d.ts +0 -3
- package/dist/types/position-version.d.ts +3 -0
- package/dist/types/scheduling-requirement.d.ts +52 -0
- package/dist/types/shift.d.ts +2 -1
- package/package.json +1 -1
- package/dist/types/employee-monthly-pay-review-event.d.ts +0 -21
- package/dist/types/employee-monthly-pay-review-field.d.ts +0 -13
- package/dist/types/employee-monthly-pay-review.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ISchedulingRequirement } from "./scheduling-requirement";
|
|
2
2
|
|
|
3
3
|
export interface IClientQuotationPositionVersion {
|
|
4
4
|
id: string;
|
|
@@ -23,7 +23,7 @@ export interface IClientQuotationPositionVersion {
|
|
|
23
23
|
|
|
24
24
|
dailyHours: number;
|
|
25
25
|
dailyCoverage: string;
|
|
26
|
-
|
|
26
|
+
schedulingRequirements?: ISchedulingRequirement[];
|
|
27
27
|
|
|
28
28
|
metadata?: any;
|
|
29
29
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ISchedulingRequirement } from "./scheduling-requirement";
|
|
2
|
+
|
|
1
3
|
export interface IClient {
|
|
2
4
|
id: string;
|
|
3
5
|
createdAt: string;
|
|
@@ -12,5 +14,6 @@ export interface IClient {
|
|
|
12
14
|
folderKey: string;
|
|
13
15
|
classId?: string;
|
|
14
16
|
statusId: string;
|
|
17
|
+
schedulingRequirements?: ISchedulingRequirement[];
|
|
15
18
|
metadata?: any;
|
|
16
19
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -120,9 +120,6 @@ export * from "./employee-group-snapshot-cost";
|
|
|
120
120
|
export * from "./employee-label";
|
|
121
121
|
export * from "./employee-label-assignment";
|
|
122
122
|
export * from "./employee-monthly-payroll";
|
|
123
|
-
export * from "./employee-monthly-pay-review";
|
|
124
|
-
export * from "./employee-monthly-pay-review-event";
|
|
125
|
-
export * from "./employee-monthly-pay-review-field";
|
|
126
123
|
export * from "./employee-status";
|
|
127
124
|
export * from "./file";
|
|
128
125
|
export * from "./gender";
|
|
@@ -193,6 +190,7 @@ export * from "./request-type";
|
|
|
193
190
|
export * from "./request-value";
|
|
194
191
|
export * from "./request-verification";
|
|
195
192
|
export * from "./restriction";
|
|
193
|
+
export * from "./scheduling-requirement";
|
|
196
194
|
export * from "./role";
|
|
197
195
|
export * from "./schedule";
|
|
198
196
|
export * from "./schedule-attendance";
|
package/dist/types/models.d.ts
CHANGED
|
@@ -106,9 +106,6 @@ export type IModel =
|
|
|
106
106
|
| "paymentCycleDocument"
|
|
107
107
|
| "paymentCycle"
|
|
108
108
|
| "employeeMonthlyPay"
|
|
109
|
-
| "employeeMonthlyPayReview"
|
|
110
|
-
| "employeeMonthlyPayReviewEvent"
|
|
111
|
-
| "employeeMonthlyPayReviewField"
|
|
112
109
|
| "payrollConfig"
|
|
113
110
|
| "vendor"
|
|
114
111
|
| "vendorContact"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ISchedulingRequirement } from "./scheduling-requirement";
|
|
2
|
+
|
|
1
3
|
export interface IPositionVersion {
|
|
2
4
|
id: string;
|
|
3
5
|
updatedAt: Date;
|
|
@@ -18,5 +20,6 @@ export interface IPositionVersion {
|
|
|
18
20
|
|
|
19
21
|
positionId: string;
|
|
20
22
|
activePositionId: string;
|
|
23
|
+
schedulingRequirements?: ISchedulingRequirement[];
|
|
21
24
|
metadata?: any;
|
|
22
25
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IGender } from "./gender";
|
|
2
|
+
import type { IEmployeeGroup } from "./employee-group";
|
|
3
|
+
import type { IEmployeeLabel } from "./employee-label";
|
|
4
|
+
import type { IRole } from "./role";
|
|
5
|
+
|
|
6
|
+
export interface ISchedulingRequirement {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt?: string;
|
|
10
|
+
|
|
11
|
+
strength: "HARD" | "SOFT";
|
|
12
|
+
gender?: IGender | null;
|
|
13
|
+
|
|
14
|
+
clientId?: string | null;
|
|
15
|
+
positionVersionId?: string | null;
|
|
16
|
+
shiftId?: string | null;
|
|
17
|
+
clientQuotationPositionVersionId?: string | null;
|
|
18
|
+
|
|
19
|
+
roles?: IRole[];
|
|
20
|
+
employeeGroups?: IEmployeeGroup[];
|
|
21
|
+
labels?: IEmployeeLabel[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ISchedulingRequirementSelection {
|
|
25
|
+
roleIds: string[];
|
|
26
|
+
employeeGroupIds: string[];
|
|
27
|
+
labelIds: string[];
|
|
28
|
+
gender?: IGender | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ISchedulingRequirementsInput {
|
|
32
|
+
hard: ISchedulingRequirementSelection;
|
|
33
|
+
soft: ISchedulingRequirementSelection;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type SchedulingRequirementScope = "CLIENT" | "POSITION" | "SHIFT";
|
|
37
|
+
export type SchedulingRequirementKind = "ROLE" | "EMPLOYEE_GROUP" | "GENDER" | "LABEL";
|
|
38
|
+
|
|
39
|
+
export interface ISchedulingRequirementFailure {
|
|
40
|
+
scope: SchedulingRequirementScope;
|
|
41
|
+
kind: SchedulingRequirementKind;
|
|
42
|
+
expected: string[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ISchedulingRequirementMatch {
|
|
46
|
+
eligible: boolean;
|
|
47
|
+
hardMatched: number;
|
|
48
|
+
hardTotal: number;
|
|
49
|
+
softMatched: number;
|
|
50
|
+
softTotal: number;
|
|
51
|
+
hardFailures: ISchedulingRequirementFailure[];
|
|
52
|
+
}
|
package/dist/types/shift.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IShiftType } from ".";
|
|
1
|
+
import { ISchedulingRequirement, IShiftType } from ".";
|
|
2
2
|
|
|
3
3
|
export interface IShift {
|
|
4
4
|
id: string;
|
|
@@ -21,5 +21,6 @@ export interface IShift {
|
|
|
21
21
|
coversFriday: boolean;
|
|
22
22
|
|
|
23
23
|
positionId: string;
|
|
24
|
+
schedulingRequirements?: ISchedulingRequirement[];
|
|
24
25
|
metadata?: any;
|
|
25
26
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type EmployeeMonthlyPayReviewEventType =
|
|
2
|
-
| "VERIFIED"
|
|
3
|
-
| "DISPUTED"
|
|
4
|
-
| "ADDITIONAL_INFO_REQUESTED"
|
|
5
|
-
| "ADDITIONAL_INFO_PROVIDED"
|
|
6
|
-
| "RESOLVED";
|
|
7
|
-
|
|
8
|
-
export interface IEmployeeMonthlyPayReviewEvent {
|
|
9
|
-
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
updatedAt?: string;
|
|
12
|
-
|
|
13
|
-
type: EmployeeMonthlyPayReviewEventType;
|
|
14
|
-
|
|
15
|
-
reviewId: string;
|
|
16
|
-
reason?: string;
|
|
17
|
-
supportingDocumentsRequired?: boolean;
|
|
18
|
-
|
|
19
|
-
userId?: string;
|
|
20
|
-
employeeId?: string;
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface IEmployeeMonthlyPayReviewField {
|
|
2
|
-
id: string;
|
|
3
|
-
createdAt: string;
|
|
4
|
-
updatedAt?: string;
|
|
5
|
-
|
|
6
|
-
reviewId: string;
|
|
7
|
-
mobileFieldId: string;
|
|
8
|
-
payrollFieldId: string;
|
|
9
|
-
title: string;
|
|
10
|
-
format?: string;
|
|
11
|
-
postfix?: string;
|
|
12
|
-
value?: unknown;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type EmployeeMonthlyPayReviewStatus = "VERIFIED" | "DISPUTE_PENDING" | "ADDITIONAL_INFO_REQUESTED" | "RESOLVED";
|
|
2
|
-
|
|
3
|
-
export interface IEmployeeMonthlyPayReview {
|
|
4
|
-
id: string;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
updatedAt?: string;
|
|
7
|
-
|
|
8
|
-
status: EmployeeMonthlyPayReviewStatus;
|
|
9
|
-
|
|
10
|
-
monthlyPayId: string;
|
|
11
|
-
additionalInfoDocumentsRequired: boolean;
|
|
12
|
-
|
|
13
|
-
lastHandledById?: string;
|
|
14
|
-
lastHandledAt?: string;
|
|
15
|
-
}
|