@automateinc/fleet-types 1.0.49 → 1.0.50-dev.5687975

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.
@@ -7,7 +7,7 @@ export interface IAttendancePatrolPoint {
7
7
  status: "PENDING" | "COMPLETED" | "SKIPPED" | "ON_HOLD";
8
8
  order: number;
9
9
 
10
- patrolPointId: string;
10
+ positionPatrolPointId: string;
11
11
  attendancePatrolId: string;
12
12
  fileId?: string;
13
13
  reportId?: string;
@@ -3,7 +3,7 @@ export interface IAttendancePatrol {
3
3
  createdAt: string;
4
4
  updatedAt?: string;
5
5
 
6
- patrolId: string;
6
+ positionPatrolId: string;
7
7
  attendanceId: string;
8
8
  reportId?: string;
9
9
  metadata?: any;
@@ -3,7 +3,7 @@ export interface IBuilding {
3
3
  createdAt: string;
4
4
  updatedAt: string;
5
5
  name: string;
6
- address: any;
6
+ address: string;
7
7
  geolocation: {
8
8
  lat: number;
9
9
  lng: number;
@@ -0,0 +1,11 @@
1
+ export interface IEmployeeGroup {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ title: string;
7
+ nationalities: string[];
8
+
9
+ regionId: string;
10
+ metadata?: any;
11
+ }
@@ -1,62 +1,28 @@
1
- interface Value<T = number> {
2
- format?: string;
3
- value: T;
4
- postfix?: string;
5
- defaultHidden?: boolean;
6
- }
7
-
8
1
  export interface IEmployeeMonthlyPayroll {
9
- status: Value<string>;
10
- company: Value<string>;
11
- role: Value<string>;
12
- salaryHold: Value<boolean>;
13
- contractStartDate: Value<string>;
14
- contractType: Value<string>;
15
- totalAllowances: Value;
16
- otherPay: Value;
17
- fixedAllowances: Value;
18
- foodAllowances: Value;
19
- daysOffOvertime: Value;
20
- daysOffOvertimeAllowance: Value;
21
- siteAllowances: Value;
22
- monthlyDays: Value;
23
- maxNormalHours: Value;
24
- increments: Value;
25
- dailyTransportAndRiskAllowances: Value;
26
- dailyTeamLeaderAllowance: Value;
27
- dailySiteAllowances: Value;
28
- dailyShiftAllowances: Value;
29
- dailyOtherPay: Value;
30
- dailyFixedAllowances: Value;
31
- performanceIncrement: Value;
32
- otherIncrements: Value;
33
- dailyOtherAllowances: Value;
34
- basicSalary: Value;
35
- totalGrossSalary: Value;
36
- totalNetPay: Value;
37
- contractualDailyHours: Value;
38
- totalAbsentDays: Value;
39
- totalWorkedDays: Value;
40
- sickLeaveDays: Value;
41
- totalHours: Value;
42
- normalHours: Value;
43
- overtimeHours: Value;
44
- dailyRate: Value;
45
- hourlyRate: Value;
46
- normalPay: Value;
47
- overtimePay: Value;
48
- normalRatio: Value;
49
- overtimeRatio: Value;
50
- SIODeductions: Value;
51
- adjustmentsPlus: Value;
52
- adjustmentsMinus: Value;
53
- otherDeductions: Value;
54
- totalDeductions: Value;
55
- contractTotalSalary: Value;
56
- iban: Value<string>;
57
- retired: Value<boolean>;
58
- bankTransfer: Value;
59
- bankUpload1: Value;
60
- bankUpload2: Value;
61
- cashPayment: Value;
2
+ id: string;
3
+ updatedAt: string;
4
+ createdAt: string;
5
+
6
+ status: "PENDING" | "APPROVED" | "PROCESSED";
7
+
8
+ metadata?: any;
9
+ payroll: {
10
+ outputs: {
11
+ [key: string]: any;
12
+ };
13
+ metrics: {
14
+ [key: string]: any;
15
+ };
16
+ warnings: {
17
+ [key: string]: boolean;
18
+ };
19
+ };
20
+ formatted: Record<
21
+ string,
22
+ {
23
+ id: string;
24
+ title: string;
25
+ value: any;
26
+ }
27
+ >;
62
28
  }
@@ -1,10 +1,7 @@
1
1
  export interface IEmployeeStatus {
2
+ createdAt: Date;
2
3
  id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
4
  name: string;
6
- default: boolean;
7
- weight: number;
8
- regionId: string;
5
+ updatedAt: Date;
9
6
  metadata?: any;
10
7
  }
@@ -33,7 +33,6 @@ export type PaginatedResponse<T> = {
33
33
  totalPages: number;
34
34
  };
35
35
 
36
- export * from "./api-key";
37
36
  export * from "./attendance";
38
37
  export * from "./attendance-action";
39
38
  export * from "./attendance-presence-check";
@@ -160,13 +159,13 @@ export * from "./leave-event";
160
159
  export * from "./leave";
161
160
  export * from "./company-file";
162
161
  export * from "./employee-label-assignment";
163
- export * from "./patrol";
164
- export * from "./patrol-point";
162
+ export * from "./position-patrol";
163
+ export * from "./position-patrol-point";
165
164
  export * from "./attendance-patrol";
166
165
  export * from "./attendance-patrol-point";
167
166
  export * from "./position-template";
168
167
  export * from "./position-template-item";
169
168
  export * from "./day-of-week";
170
169
  export * from "./client-contract";
171
- export * from "./cluster-patrol";
172
- export * from "./cluster-patrol-point";
170
+ export * from "./payment-cycle-config";
171
+ export * from "./employee-group";
@@ -0,0 +1,8 @@
1
+ export interface IPaymentCycleConfig {
2
+ id: string;
3
+ createdAt: Date;
4
+ from: number;
5
+ to: number;
6
+ companyId: string;
7
+ metadata?: any;
8
+ }
@@ -1,4 +1,4 @@
1
- export interface IPatrolPoint {
1
+ export interface IPositionPatrolPoint {
2
2
  id: string;
3
3
  createdAt: string;
4
4
  updatedAt?: string;
@@ -1,6 +1,4 @@
1
- import { IDayOfWeek } from "./day-of-week";
2
-
3
- export interface IPatrol {
1
+ export interface IPositionPatrol {
4
2
  id: string;
5
3
  createdAt: string;
6
4
  updatedAt?: string;
@@ -9,9 +7,7 @@ export interface IPatrol {
9
7
  description?: string;
10
8
  flow: "SEQUENTIAL" | "RANDOM";
11
9
  frequency: number;
12
- days: IDayOfWeek[];
13
10
 
14
- positionId?: string;
15
- regionId: string;
11
+ positionId: string;
16
12
  metadata?: any;
17
13
  }
@@ -10,6 +10,5 @@ export interface IRequestCategory {
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  allowedRequesters: Array<"USER" | "EMPLOYEE">;
13
- hidden: boolean;
14
13
  metadata?: any;
15
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.49",
4
+ "version": "1.0.50-dev.5687975",
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,11 +0,0 @@
1
- export interface IApiKey {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
-
6
- key: string;
7
-
8
- userId: string;
9
-
10
- metadata?: any;
11
- }
@@ -1,17 +0,0 @@
1
- export interface IClusterPatrolPoint {
2
- id: string;
3
- createdAt: string;
4
- updatedAt?: string;
5
-
6
- notes?: string;
7
- status: "PENDING" | "COMPLETED" | "SKIPPED" | "ON_HOLD";
8
- order: number;
9
-
10
- patrolPointId: string;
11
- clusterPatrolId: string;
12
- fileId?: string;
13
- reportId?: string;
14
-
15
- patrolId: string;
16
- metadata?: any;
17
- }
@@ -1,12 +0,0 @@
1
- export interface IClusterPatrol {
2
- id: string;
3
- createdAt: string;
4
- updatedAt?: string;
5
-
6
- patrolId: string;
7
- date: string;
8
- reportId?: string;
9
- employeeId: string;
10
-
11
- metadata?: any;
12
- }