@automateinc/fleet-types 1.0.75 → 1.0.77-dev.26c81a3

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.
@@ -4,7 +4,7 @@ export interface ICallLog {
4
4
  updatedAt: string;
5
5
  deletedAt?: string;
6
6
 
7
- type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | "USER" | null;
7
+ type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | null;
8
8
 
9
9
  direction: "INCOMING" | "OUTGOING";
10
10
 
@@ -5,6 +5,10 @@ export interface IClientQuotationLine {
5
5
 
6
6
  quotationId: string;
7
7
  employeeGroupId: string;
8
+ employeeGroupSnapshotId: string;
9
+ employeeContractId: string;
10
+ employeeContractSnapshotId: string;
11
+ employeeCompanyId: string;
8
12
  roleId: string;
9
13
 
10
14
  headcount: number;
@@ -0,0 +1,34 @@
1
+ import { IGender } from "./gender";
2
+
3
+ export interface IClientQuotationPositionVersion {
4
+ id: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+
8
+ siteDraftId: string;
9
+ positionId?: string | null;
10
+ positionVersionId?: string | null;
11
+
12
+ name: string;
13
+ status:
14
+ | "UNVERIFIED"
15
+ | "PENDING_VERIFICATION"
16
+ | "VERIFIED"
17
+ | "REJECTED"
18
+ | "CHANGES_NEEDED";
19
+ reason?: string | null;
20
+
21
+ coversSaturday: boolean;
22
+ coversSunday: boolean;
23
+ coversMonday: boolean;
24
+ coversTuesday: boolean;
25
+ coversWednesday: boolean;
26
+ coversThursday: boolean;
27
+ coversFriday: boolean;
28
+
29
+ dailyHours: number;
30
+ dailyCoverage: string;
31
+ gender?: IGender | null;
32
+
33
+ metadata?: any;
34
+ }
@@ -0,0 +1,13 @@
1
+ export interface IClientQuotationSiteDraft {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ quotationId: string;
7
+ clientSiteId?: string | null;
8
+ scheduleSiteId?: string | null;
9
+
10
+ name: string;
11
+
12
+ metadata?: any;
13
+ }
@@ -3,7 +3,7 @@ export interface IClientQuotation {
3
3
  createdAt: string;
4
4
  updatedAt: string;
5
5
 
6
- status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED";
6
+ status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "CHANGES_NEEDED";
7
7
 
8
8
  clientId: string;
9
9
  createdById?: string;
@@ -13,6 +13,9 @@ export interface IClientQuotation {
13
13
  approvedAt?: string;
14
14
 
15
15
  previousVersionId?: string;
16
+ taxRate: number;
17
+
18
+ reason?: string;
16
19
 
17
20
  metadata?: any;
18
21
  }
@@ -0,0 +1,17 @@
1
+ export interface IContractCost {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ name: string;
7
+ value: number;
8
+
9
+ recurrence: "ONE_TIME" | "RECURRING";
10
+
11
+ duration?: number;
12
+ durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
13
+
14
+ contractId: string;
15
+
16
+ metadata?: any;
17
+ }
@@ -0,0 +1,24 @@
1
+ export interface IContractSnapshotAllowance {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+
6
+ snapshotId: string;
7
+ sourceAllowanceId?: string;
8
+
9
+ name: string;
10
+ type:
11
+ | "BASE_PERCENTAGE"
12
+ | "FIXED"
13
+ | "BASE_PERCENTAGE_TIMES_DAYS_OFF"
14
+ | "BASE_PERCENTAGE_TIMES_DAILY_HOURS"
15
+ | "RAMADAN";
16
+ value: number;
17
+
18
+ contractual: boolean;
19
+
20
+ regionId: string;
21
+ companyId?: string;
22
+
23
+ metadata?: any;
24
+ }
@@ -0,0 +1,15 @@
1
+ export interface IContractSnapshotBenefit {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+
6
+ snapshotId: string;
7
+ sourceBenefitId?: string;
8
+
9
+ name: string;
10
+
11
+ regionId: string;
12
+ companyId?: string;
13
+
14
+ metadata?: any;
15
+ }
@@ -0,0 +1,18 @@
1
+ export interface IContractSnapshotCost {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ snapshotId: string;
7
+ sourceCostId?: string;
8
+
9
+ name: string;
10
+ value: number;
11
+
12
+ recurrence?: "ONE_TIME" | "RECURRING";
13
+
14
+ duration?: number;
15
+ durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
16
+
17
+ metadata?: any;
18
+ }
@@ -0,0 +1,19 @@
1
+ export interface IContractSnapshotDeduction {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+
6
+ snapshotId: string;
7
+ sourceDeductionId?: string;
8
+
9
+ name: string;
10
+ type: "PERCENTAGE" | "FIXED";
11
+ value: number;
12
+
13
+ contractual: boolean;
14
+
15
+ regionId: string;
16
+ companyId?: string;
17
+
18
+ metadata?: any;
19
+ }
@@ -0,0 +1,26 @@
1
+ export interface IContractSnapshot {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt?: Date;
5
+
6
+ contractId: string;
7
+ type: "FULL_TIME" | "PART_TIME" | "FREELANCE";
8
+ companyId?: string;
9
+ regionId: string;
10
+ roleId: string;
11
+
12
+ paymentType: "TRANSFER" | "CASH" | "CHECK" | "UNPAID" | "FORSA" | "OTHER";
13
+ basicSalary: number;
14
+ totalSalary: number;
15
+ dailyHours: number;
16
+ monthlyDaysOff: number;
17
+ dayOffHours: number;
18
+ workingDaysPerWeek: number;
19
+ contractDuration?: number;
20
+ overtimeRate: number;
21
+ commissionRate?: number;
22
+
23
+ contractualAllowancesProvided: boolean;
24
+
25
+ metadata?: any;
26
+ }
@@ -1,15 +1,17 @@
1
1
  export interface IContract {
2
2
  basicSalary: number;
3
3
  companyId: string;
4
- createdAt: Date;
4
+ createdAt: string;
5
+ deletedAt?: string;
5
6
  id: string;
6
7
  type: "FULL_TIME" | "PART_TIME" | "FREELANCE";
7
8
  roleId: string;
8
9
  primaryKey: string;
9
10
  totalSalary: number;
10
- updatedAt: Date;
11
+ updatedAt: string;
11
12
  dailyHours: number;
12
13
  monthlyDaysOff: number;
14
+ workingDaysPerWeek: number;
13
15
  contractDuration: number;
14
16
  overtimeRate: number;
15
17
  commissionRate: number;
@@ -0,0 +1,17 @@
1
+ export interface IEmployeeGroupCost {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ name: string;
7
+ value: number;
8
+
9
+ recurrence?: "ONE_TIME" | "RECURRING";
10
+
11
+ duration?: number;
12
+ durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
13
+
14
+ employeeGroupId: string;
15
+
16
+ metadata?: any;
17
+ }
@@ -0,0 +1,18 @@
1
+ export interface IEmployeeGroupSnapshotCost {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ snapshotId: string;
7
+ sourceCostId?: string;
8
+
9
+ name: string;
10
+ value: number;
11
+
12
+ recurrence?: "ONE_TIME" | "RECURRING";
13
+
14
+ duration?: number;
15
+ durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
16
+
17
+ metadata?: any;
18
+ }
@@ -0,0 +1,11 @@
1
+ export interface IEmployeeGroupSnapshot {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ employeeGroupId: string;
7
+ title: string;
8
+ regionId: string;
9
+
10
+ metadata?: any;
11
+ }
@@ -2,6 +2,7 @@ export interface IEmployeeGroup {
2
2
  id: string;
3
3
  createdAt: string;
4
4
  updatedAt?: string;
5
+ deletedAt?: string;
5
6
 
6
7
  title: string;
7
8
 
@@ -66,6 +66,8 @@ export * from "./client-field-category";
66
66
  export * from "./client-field-value";
67
67
  export * from "./client-quotation";
68
68
  export * from "./client-quotation-line";
69
+ export * from "./client-quotation-position-version";
70
+ export * from "./client-quotation-site-draft";
69
71
  export * from "./client-request";
70
72
  export * from "./client-request-action";
71
73
  export * from "./client-request-action-execution";
@@ -88,6 +90,12 @@ export * from "./contract";
88
90
  export * from "./contract-allowance";
89
91
  export * from "./contract-benefit";
90
92
  export * from "./contract-deduction";
93
+ export * from "./contract-cost";
94
+ export * from "./contract-snapshot";
95
+ export * from "./contract-snapshot-allowance";
96
+ export * from "./contract-snapshot-benefit";
97
+ export * from "./contract-snapshot-deduction";
98
+ export * from "./contract-snapshot-cost";
91
99
  export * from "./coords";
92
100
  export * from "./day-of-week";
93
101
  export * from "./dispatch";
@@ -99,6 +107,9 @@ export * from "./employee-comment-reaction";
99
107
  export * from "./employee-event";
100
108
  export * from "./employee-field";
101
109
  export * from "./employee-group";
110
+ export * from "./employee-group-cost";
111
+ export * from "./employee-group-snapshot";
112
+ export * from "./employee-group-snapshot-cost";
102
113
  export * from "./employee-label";
103
114
  export * from "./employee-label-assignment";
104
115
  export * from "./employee-monthly-payroll";
package/package.json CHANGED
@@ -52,5 +52,5 @@
52
52
  "test": "echo \"Error: no test specified\" && exit 1"
53
53
  },
54
54
  "types": "dist/types/index.d.ts",
55
- "version": "1.0.75"
55
+ "version": "1.0.77-dev.26c81a3"
56
56
  }