@automateinc/fleet-types 1.0.54-dev.fb0fb16 → 1.0.55
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.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface IAttendanceDraft {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
date: string;
|
|
8
|
+
|
|
9
|
+
status: "DRAFT" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
10
|
+
|
|
11
|
+
dayOfWeek: "SATURDAY" | "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY";
|
|
12
|
+
|
|
13
|
+
scheduleId: string;
|
|
14
|
+
|
|
15
|
+
employeeId: string;
|
|
16
|
+
|
|
17
|
+
generatedById?: string;
|
|
18
|
+
|
|
19
|
+
metadata?: any;
|
|
20
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IClient, IClientClass, IClientContact, IScheduleSite } from ".";
|
|
2
|
-
|
|
3
1
|
export interface IClientSite {
|
|
4
2
|
id: string;
|
|
5
3
|
createdAt: string;
|
|
@@ -7,13 +5,8 @@ export interface IClientSite {
|
|
|
7
5
|
name: string;
|
|
8
6
|
address?: string;
|
|
9
7
|
geolocation?: { lat: number; lng: number };
|
|
10
|
-
|
|
11
|
-
classId: string;
|
|
12
|
-
client: IClient;
|
|
8
|
+
classId?: string;
|
|
13
9
|
clientId: string;
|
|
14
|
-
contact?: IClientContact;
|
|
15
10
|
contactId?: string;
|
|
16
|
-
scheduleSite?: IScheduleSite;
|
|
17
|
-
// Add Zones later
|
|
18
11
|
metadata?: any;
|
|
19
12
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IClientClass, IClientContact, ICompany, IFile } from ".";
|
|
2
|
-
|
|
3
1
|
export interface IClient {
|
|
4
2
|
id: string;
|
|
5
3
|
name: string;
|
|
@@ -7,12 +5,8 @@ export interface IClient {
|
|
|
7
5
|
createdAt: string;
|
|
8
6
|
updatedAt: string;
|
|
9
7
|
deletedAt: string;
|
|
10
|
-
logo: IFile;
|
|
11
8
|
logoId: string;
|
|
12
9
|
folderKey: string;
|
|
13
|
-
|
|
14
|
-
classId: string;
|
|
15
|
-
companies?: ICompany[];
|
|
16
|
-
contacts?: IClientContact[];
|
|
10
|
+
classId?: string;
|
|
17
11
|
metadata?: any;
|
|
18
12
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IEmployee } from ".";
|
|
2
|
-
|
|
3
1
|
export interface IScheduleDraft {
|
|
4
2
|
id: string;
|
|
5
3
|
createdAt: string;
|
|
@@ -10,10 +8,11 @@ export interface IScheduleDraft {
|
|
|
10
8
|
|
|
11
9
|
status: "DRAFT" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
scheduleId: string;
|
|
12
|
+
|
|
13
|
+
employeeId: string;
|
|
14
|
+
|
|
15
|
+
generatedById?: string;
|
|
15
16
|
|
|
16
|
-
employee: IEmployee;
|
|
17
|
-
employeeId?: string;
|
|
18
17
|
metadata?: any;
|
|
19
18
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { IClientSite, IPosition, IZone } from ".";
|
|
2
|
-
|
|
3
1
|
export interface IScheduleSite {
|
|
4
2
|
id: string;
|
|
5
3
|
createdAt: string;
|
|
6
4
|
updatedAt: string;
|
|
7
5
|
|
|
8
|
-
zones?: IZone[];
|
|
9
|
-
positions?: IPosition[];
|
|
10
|
-
site: IClientSite;
|
|
11
|
-
|
|
12
6
|
shiftsCount: number;
|
|
13
7
|
positionsCount: number;
|
|
14
8
|
schedulesCount: number;
|
package/package.json
CHANGED