@automateinc/fleet-types 1.0.72-dev.d97d2c9 → 1.0.72-dev.e27aa67
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-comment-reaction.d.ts +7 -5
- package/dist/types/client-comment.d.ts +7 -7
- package/dist/types/client-document-definition.d.ts +33 -0
- package/dist/types/client-field-category.d.ts +12 -0
- package/dist/types/client-field-value.d.ts +13 -0
- package/dist/types/client-field.d.ts +40 -0
- package/dist/types/client-quotation-line.d.ts +14 -0
- package/dist/types/client-quotation.d.ts +18 -0
- package/dist/types/client-request-action-execution.d.ts +12 -0
- package/dist/types/client-request-action.d.ts +16 -0
- package/dist/types/client-request-category-field.d.ts +38 -0
- package/dist/types/client-request-category.d.ts +19 -0
- package/dist/types/client-request-type.d.ts +14 -0
- package/dist/types/client-request-value.d.ts +26 -0
- package/dist/types/client-request-verification.d.ts +15 -0
- package/dist/types/client-request.d.ts +22 -0
- package/dist/types/client-status-check-requirement.d.ts +14 -0
- package/dist/types/client-status-check.d.ts +10 -0
- package/dist/types/client-status.d.ts +15 -0
- package/dist/types/client.d.ts +8 -4
- package/dist/types/index.d.ts +19 -0
- package/dist/types/models.d.ts +91 -8
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export interface IClientCommentReaction {
|
|
2
2
|
id: string;
|
|
3
3
|
createdAt: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
commentId: string;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
userId: string;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
reaction: string;
|
|
12
|
+
|
|
13
|
+
metadata?: any;
|
|
12
14
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export interface IClientComment {
|
|
2
2
|
id: string;
|
|
3
3
|
createdAt: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
clientId: string;
|
|
8
|
+
siteId?: string;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
userId: string;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
comment: string;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
metadata?: any;
|
|
15
15
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IClientRequestCategory } from "./client-request-category";
|
|
2
|
+
import { IClientRequestCategoryField } from "./client-request-category-field";
|
|
3
|
+
import { IClientRequestType } from "./client-request-type";
|
|
4
|
+
import { IClientStatus } from "./client-status";
|
|
5
|
+
import { IMetadata } from "./metadata";
|
|
6
|
+
|
|
7
|
+
export type IClientDocumentDefinitionType = "VIEWING" | "MISSING" | "EXPIRING";
|
|
8
|
+
|
|
9
|
+
export type IClientDocumentDefinitionField = IClientRequestCategoryField & {
|
|
10
|
+
category: IClientRequestCategory & {
|
|
11
|
+
type: IClientRequestType;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export interface IClientDocumentDefinition {
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt?: string | null;
|
|
19
|
+
|
|
20
|
+
regionId: string;
|
|
21
|
+
|
|
22
|
+
name: string;
|
|
23
|
+
type: IClientDocumentDefinitionType;
|
|
24
|
+
|
|
25
|
+
documentFieldId: string;
|
|
26
|
+
documentField: IClientDocumentDefinitionField;
|
|
27
|
+
|
|
28
|
+
dateFieldId?: string | null;
|
|
29
|
+
dateField?: IClientDocumentDefinitionField | null;
|
|
30
|
+
|
|
31
|
+
statuses: IClientStatus[];
|
|
32
|
+
metadata?: IMetadata;
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type ClientFieldBase = {
|
|
2
|
+
field: string;
|
|
3
|
+
fieldType: "STRING" | "NUMBER" | "DATE" | "BOOLEAN" | "DATETIME" | "TIME";
|
|
4
|
+
defaultValue?: any;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
type ClientFieldRequest = {
|
|
8
|
+
mode: "LATEST" | "ALL" | "SUM" | "COUNT" | "EXISTENCE";
|
|
9
|
+
requestType: string;
|
|
10
|
+
requestCategory: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type ClientFieldRequestInput = ClientFieldBase & ClientFieldRequest;
|
|
14
|
+
export type ClientFieldMetadataInput = Pick<ClientFieldBase, "fieldType" | "defaultValue"> & {
|
|
15
|
+
path: string[];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type ClientFieldInput = ClientFieldRequestInput | ClientFieldMetadataInput;
|
|
19
|
+
|
|
20
|
+
export interface IClientField {
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt?: string;
|
|
24
|
+
regionId: string;
|
|
25
|
+
|
|
26
|
+
order: number;
|
|
27
|
+
|
|
28
|
+
name: string;
|
|
29
|
+
categoryId: string;
|
|
30
|
+
|
|
31
|
+
requestCategoryFieldId?: string;
|
|
32
|
+
|
|
33
|
+
generationOnly: boolean;
|
|
34
|
+
|
|
35
|
+
type: "METADATA" | "REQUEST" | "CLIENT";
|
|
36
|
+
config?: ClientFieldInput;
|
|
37
|
+
|
|
38
|
+
fallbackId?: string;
|
|
39
|
+
metadata?: any;
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IClientQuotation {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
|
|
6
|
+
status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED";
|
|
7
|
+
|
|
8
|
+
clientId: string;
|
|
9
|
+
createdById?: string;
|
|
10
|
+
approvedById?: string;
|
|
11
|
+
|
|
12
|
+
sentForApprovalAt?: string;
|
|
13
|
+
approvedAt?: string;
|
|
14
|
+
|
|
15
|
+
previousVersionId?: string;
|
|
16
|
+
|
|
17
|
+
metadata?: any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IClientRequestActionExecution {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
|
|
6
|
+
actionId: string;
|
|
7
|
+
status: "PENDING" | "COMPLETED" | "PROCESSING" | "FAILED" | "SKIPPED" | "ON_HOLD";
|
|
8
|
+
startedAt: string | null;
|
|
9
|
+
endedAt: string | null;
|
|
10
|
+
failureReason?: string;
|
|
11
|
+
metadata?: any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IClientRequestAction {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: Date;
|
|
4
|
+
updatedAt: Date;
|
|
5
|
+
|
|
6
|
+
name: string;
|
|
7
|
+
operation: "HTTP" | "FUNCTION";
|
|
8
|
+
type: "VERIFICATION" | "APPROVAL" | "REJECTION" | "CREATION";
|
|
9
|
+
|
|
10
|
+
categoryId: string;
|
|
11
|
+
|
|
12
|
+
config: Record<string, any>;
|
|
13
|
+
order: number;
|
|
14
|
+
|
|
15
|
+
metadata: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IModel } from "./models";
|
|
2
|
+
|
|
3
|
+
export interface IClientRequestCategoryField {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
|
|
8
|
+
categoryId: string;
|
|
9
|
+
|
|
10
|
+
required: boolean;
|
|
11
|
+
order: number;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
type:
|
|
16
|
+
| "STRING"
|
|
17
|
+
| "NUMBER"
|
|
18
|
+
| "BOOLEAN"
|
|
19
|
+
| "DATE"
|
|
20
|
+
| "DATETIME"
|
|
21
|
+
| "TIME"
|
|
22
|
+
| "UPLOAD"
|
|
23
|
+
| "RELATION"
|
|
24
|
+
| "SINGLE_SELECT"
|
|
25
|
+
| "RELATION";
|
|
26
|
+
|
|
27
|
+
metadata?: any;
|
|
28
|
+
|
|
29
|
+
config: {
|
|
30
|
+
model?: IModel;
|
|
31
|
+
options?: any[];
|
|
32
|
+
optionsUrl?: string;
|
|
33
|
+
uploadCategory?: string;
|
|
34
|
+
dependencies?: string[];
|
|
35
|
+
hasDependency?: boolean;
|
|
36
|
+
variant?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IClientRequestCategory {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: Date;
|
|
4
|
+
updatedAt: Date;
|
|
5
|
+
|
|
6
|
+
name: string;
|
|
7
|
+
systemReserved: boolean;
|
|
8
|
+
weight: number;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
infoType: "INFO" | "DANGER" | "WARNING";
|
|
11
|
+
info?: string;
|
|
12
|
+
|
|
13
|
+
typeId: string;
|
|
14
|
+
|
|
15
|
+
requiresVerification: boolean;
|
|
16
|
+
requiresApproval: boolean;
|
|
17
|
+
|
|
18
|
+
metadata: any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IFile } from ".";
|
|
2
|
+
import { IClientRequestCategoryField } from "./client-request-category-field";
|
|
3
|
+
|
|
4
|
+
export interface IClientRequestValue {
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
|
|
9
|
+
name: string;
|
|
10
|
+
value: any;
|
|
11
|
+
|
|
12
|
+
type: IClientRequestCategoryField["type"];
|
|
13
|
+
|
|
14
|
+
categoryFieldId?: string;
|
|
15
|
+
|
|
16
|
+
requestId: string;
|
|
17
|
+
|
|
18
|
+
relationValue?: string;
|
|
19
|
+
file?: IFile;
|
|
20
|
+
|
|
21
|
+
config?: {
|
|
22
|
+
[key: PropertyKey]: any;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
metadata?: any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IEmployee } from ".";
|
|
2
|
+
|
|
3
|
+
export interface IClientRequestVerification {
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
id: string;
|
|
7
|
+
verifiedAt?: string;
|
|
8
|
+
|
|
9
|
+
status: "APPROVED" | "REJECTED" | "PENDING";
|
|
10
|
+
verifiedById: string;
|
|
11
|
+
verifiedBy: IEmployee;
|
|
12
|
+
|
|
13
|
+
rejectionReason?: string;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IClientRequest {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
archivedAt?: string;
|
|
8
|
+
withdrawnAt?: string;
|
|
9
|
+
|
|
10
|
+
typeId: string;
|
|
11
|
+
categoryId: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
createdById: string;
|
|
14
|
+
|
|
15
|
+
verifiedById?: string;
|
|
16
|
+
rejectedById?: string;
|
|
17
|
+
|
|
18
|
+
status: "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "WITHDRAWN" | "PENDING_VERIFICATION" | "ARCHIVED";
|
|
19
|
+
actionsExecutionStatus: "PENDING" | "COMPLETED" | "PROCESSING" | "FAILED" | "SKIPPED";
|
|
20
|
+
|
|
21
|
+
metadata?: any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ITagColor } from "./tag-color";
|
|
2
|
+
|
|
3
|
+
export interface IClientStatus {
|
|
4
|
+
id: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
name: string;
|
|
8
|
+
default: boolean;
|
|
9
|
+
weight: number;
|
|
10
|
+
regionId: string;
|
|
11
|
+
darkColors?: ITagColor | null;
|
|
12
|
+
lightColors?: ITagColor | null;
|
|
13
|
+
clientActive: boolean;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export interface IClient {
|
|
2
2
|
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
status: "ACTIVE" | "INACTIVE";
|
|
5
3
|
createdAt: string;
|
|
6
|
-
updatedAt
|
|
7
|
-
deletedAt
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
deletedAt?: string;
|
|
6
|
+
|
|
7
|
+
name: string;
|
|
8
|
+
primaryId: string;
|
|
9
|
+
primaryKey: string;
|
|
10
|
+
|
|
8
11
|
logoId: string;
|
|
9
12
|
folderKey: string;
|
|
10
13
|
classId?: string;
|
|
14
|
+
statusId: string;
|
|
11
15
|
metadata?: any;
|
|
12
16
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,9 +56,28 @@ export * from "./call-log";
|
|
|
56
56
|
export * from "./ceiling";
|
|
57
57
|
export * from "./client";
|
|
58
58
|
export * from "./client-class";
|
|
59
|
+
export * from "./client-comment";
|
|
60
|
+
export * from "./client-comment-reaction";
|
|
59
61
|
export * from "./client-contact";
|
|
60
62
|
export * from "./client-contract";
|
|
63
|
+
export * from "./client-document-definition";
|
|
64
|
+
export * from "./client-field";
|
|
65
|
+
export * from "./client-field-category";
|
|
66
|
+
export * from "./client-field-value";
|
|
67
|
+
export * from "./client-quotation";
|
|
68
|
+
export * from "./client-quotation-line";
|
|
69
|
+
export * from "./client-request";
|
|
70
|
+
export * from "./client-request-action";
|
|
71
|
+
export * from "./client-request-action-execution";
|
|
72
|
+
export * from "./client-request-category";
|
|
73
|
+
export * from "./client-request-category-field";
|
|
74
|
+
export * from "./client-request-type";
|
|
75
|
+
export * from "./client-request-value";
|
|
76
|
+
export * from "./client-request-verification";
|
|
61
77
|
export * from "./client-site";
|
|
78
|
+
export * from "./client-status";
|
|
79
|
+
export * from "./client-status-check";
|
|
80
|
+
export * from "./client-status-check-requirement";
|
|
62
81
|
export * from "./cluster-patrol";
|
|
63
82
|
export * from "./cluster-patrol-point";
|
|
64
83
|
export * from "./company";
|
package/dist/types/models.d.ts
CHANGED
|
@@ -12,14 +12,16 @@ export type IModel =
|
|
|
12
12
|
| "loanInstallment"
|
|
13
13
|
| "employee"
|
|
14
14
|
| "file"
|
|
15
|
+
| "fileAccessHistory"
|
|
15
16
|
| "user"
|
|
16
|
-
| "
|
|
17
|
-
| "
|
|
18
|
-
| "
|
|
19
|
-
| "
|
|
20
|
-
| "
|
|
21
|
-
| "
|
|
22
|
-
| "
|
|
17
|
+
| "zoneSupervisor"
|
|
18
|
+
| "employeeRequestType"
|
|
19
|
+
| "employeeRequestAction"
|
|
20
|
+
| "employeeRequestCategory"
|
|
21
|
+
| "employeeRequestActionExecution"
|
|
22
|
+
| "employeeRequestVerification"
|
|
23
|
+
| "employeeRequestValue"
|
|
24
|
+
| "employeeRequest"
|
|
23
25
|
| "recruitmentPersonalInformation"
|
|
24
26
|
| "recruitmentEmploymentInformation"
|
|
25
27
|
| "recruitmentPassportInformation"
|
|
@@ -40,16 +42,38 @@ export type IModel =
|
|
|
40
42
|
| "ceiling"
|
|
41
43
|
| "tag"
|
|
42
44
|
| "client"
|
|
45
|
+
| "clientStatus"
|
|
46
|
+
| "clientStatusCheck"
|
|
47
|
+
| "clientStatusCheckRequirement"
|
|
48
|
+
| "clientRequest"
|
|
49
|
+
| "clientRequestValue"
|
|
50
|
+
| "clientRequestVerification"
|
|
51
|
+
| "clientRequestAction"
|
|
52
|
+
| "clientRequestActionExecution"
|
|
53
|
+
| "clientRequestType"
|
|
54
|
+
| "clientRequestCategory"
|
|
55
|
+
| "clientRequestCategoryField"
|
|
56
|
+
| "clientFieldCategory"
|
|
57
|
+
| "clientField"
|
|
58
|
+
| "clientContract"
|
|
59
|
+
| "clientQuotation"
|
|
60
|
+
| "clientQuotationLine"
|
|
43
61
|
| "clientClass"
|
|
44
62
|
| "clientContact"
|
|
63
|
+
| "clientDocumentDefinition"
|
|
45
64
|
| "zone"
|
|
46
65
|
| "siteClass"
|
|
47
66
|
| "clientSite"
|
|
67
|
+
| "positionTemplate"
|
|
68
|
+
| "positionTemplateItem"
|
|
48
69
|
| "position"
|
|
49
70
|
| "positionVersion"
|
|
50
71
|
| "shiftType"
|
|
51
72
|
| "shift"
|
|
73
|
+
| "scheduleDayOff"
|
|
52
74
|
| "schedule"
|
|
75
|
+
| "scheduleDraft"
|
|
76
|
+
| "attendanceDraft"
|
|
53
77
|
| "scheduleSite"
|
|
54
78
|
| "standardOperatingProcedure"
|
|
55
79
|
| "nFCTag"
|
|
@@ -57,5 +81,64 @@ export type IModel =
|
|
|
57
81
|
| "dispatchAttendance"
|
|
58
82
|
| "attendanceLeaveReason"
|
|
59
83
|
| "attendance"
|
|
84
|
+
| "attendancePresenceCheck"
|
|
85
|
+
| "patrol"
|
|
86
|
+
| "patrolPoint"
|
|
87
|
+
| "attendancePatrol"
|
|
88
|
+
| "attendancePatrolPoint"
|
|
89
|
+
| "clusterPatrol"
|
|
90
|
+
| "clusterPatrolPoint"
|
|
91
|
+
| "statistics"
|
|
92
|
+
| "employeeComment"
|
|
93
|
+
| "employeeCommentReaction"
|
|
60
94
|
| "oneTimePasswordAttempt"
|
|
61
|
-
| "oneTimePassword"
|
|
95
|
+
| "oneTimePassword"
|
|
96
|
+
| "building"
|
|
97
|
+
| "buildingContact"
|
|
98
|
+
| "buildingLease"
|
|
99
|
+
| "buildingLeasePayment"
|
|
100
|
+
| "unit"
|
|
101
|
+
| "unitRoom"
|
|
102
|
+
| "bunk"
|
|
103
|
+
| "paymentCycleConfig"
|
|
104
|
+
| "paymentCycleDocument"
|
|
105
|
+
| "paymentCycle"
|
|
106
|
+
| "employeeMonthlyPay"
|
|
107
|
+
| "payrollConfig"
|
|
108
|
+
| "vendor"
|
|
109
|
+
| "vendorContact"
|
|
110
|
+
| "vehicleMake"
|
|
111
|
+
| "vehicleModel"
|
|
112
|
+
| "vehicleStatus"
|
|
113
|
+
| "vehicle"
|
|
114
|
+
| "vehicleInsurance"
|
|
115
|
+
| "vehicleRegistration"
|
|
116
|
+
| "vehicleContract"
|
|
117
|
+
| "vehicleContractPayment"
|
|
118
|
+
| "phoneLinePackage"
|
|
119
|
+
| "phoneLineContract"
|
|
120
|
+
| "phoneLine"
|
|
121
|
+
| "phoneLineCommitment"
|
|
122
|
+
| "assetType"
|
|
123
|
+
| "assetCategory"
|
|
124
|
+
| "assetValue"
|
|
125
|
+
| "asset"
|
|
126
|
+
| "reportType"
|
|
127
|
+
| "reportCategory"
|
|
128
|
+
| "reportValue"
|
|
129
|
+
| "report"
|
|
130
|
+
| "reportComment"
|
|
131
|
+
| "reportCommentReaction"
|
|
132
|
+
| "callLog"
|
|
133
|
+
| "notificationToken"
|
|
134
|
+
| "notification"
|
|
135
|
+
| "employeeLabel"
|
|
136
|
+
| "employeeLabelAssignment"
|
|
137
|
+
| "leaveType"
|
|
138
|
+
| "leave"
|
|
139
|
+
| "leaveEvent"
|
|
140
|
+
| "employeeSettlementPay"
|
|
141
|
+
| "companyFile"
|
|
142
|
+
| "attendanceAction"
|
|
143
|
+
| "log"
|
|
144
|
+
| "employeeGroup";
|
package/package.json
CHANGED