@automateinc/fleet-types 1.0.25 → 1.0.27

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.
@@ -1,7 +1,7 @@
1
1
  export interface IEmployeeEvent {
2
2
  id: string;
3
- createdAt: Date;
4
- updatedAt: Date;
3
+ createdAt: string;
4
+ updatedAt: string;
5
5
 
6
6
  employeeId: string;
7
7
 
@@ -153,3 +153,6 @@ export * from "./notification-token";
153
153
  export * from "./employee-label";
154
154
  export * from "./tag-color";
155
155
  export * from "./employee-event";
156
+ export * from "./leave-type";
157
+ export * from "./leave-event";
158
+ export * from "./leave";
@@ -0,0 +1,15 @@
1
+ export type ILeaveEvent = {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ deletedAt?: string;
6
+
7
+ name: string;
8
+ startDate: string;
9
+ endDate: string;
10
+ duration: number;
11
+
12
+ recurrence: "ONCE" | "ANNUAL";
13
+
14
+ regionId: string;
15
+ };
@@ -0,0 +1,11 @@
1
+ export type ILeaveType = {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ deletedAt?: string;
6
+
7
+ name: string;
8
+ paid: boolean;
9
+
10
+ regionId: string;
11
+ };
@@ -0,0 +1,16 @@
1
+ export type ILeave = {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+ deletedAt?: string;
6
+
7
+ startDate: string;
8
+ endDate: string;
9
+ typeId: string;
10
+ employeeId: string;
11
+
12
+ duration: number;
13
+ status: "ACTIVE" | "UPCOMING" | "ENDED";
14
+
15
+ notes?: string;
16
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@automateinc/fleet-types",
3
3
  "private": false,
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
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",