@automateinc/fleet-types 1.0.72-dev.c67b8b6 → 1.0.72-dev.f3c0a6d

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,12 +1,14 @@
1
1
  export interface IClientCommentReaction {
2
2
  id: string;
3
3
  createdAt: string;
4
- updatedAt: string;
5
- deletedAt?: string;
4
+ updatedAt: string;
5
+ deletedAt?: string;
6
6
 
7
- commentId: string;
7
+ commentId: string;
8
8
 
9
- userId: string;
9
+ userId: string;
10
10
 
11
- metadata?: any;
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
- updatedAt: string;
5
- deletedAt?: string;
4
+ updatedAt: string;
5
+ deletedAt?: string;
6
6
 
7
- clientId: string;
8
- siteId?: string;
7
+ clientId: string;
8
+ siteId?: string;
9
9
 
10
- userId: string;
10
+ userId: string;
11
11
 
12
- comment: string;
12
+ comment: string;
13
13
 
14
- metadata?: any;
14
+ metadata?: any;
15
15
  }
@@ -0,0 +1,13 @@
1
+ export interface IClientFieldValue {
2
+ createdAt: string;
3
+ updatedAt: string;
4
+ id: string;
5
+
6
+ clientId: string;
7
+ clientFieldId: string;
8
+ requestCategoryFieldId: string;
9
+
10
+ value: any;
11
+
12
+ metadata?: any;
13
+ }
@@ -0,0 +1,38 @@
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
+ type: "METADATA" | "REQUEST" | "CLIENT";
34
+ config?: ClientFieldInput;
35
+
36
+ fallbackId?: string;
37
+ metadata?: any;
38
+ }
@@ -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";
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,16 @@
1
+ export interface IClientRequestCategory {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt: Date;
5
+
6
+ name: string;
7
+ systemReserved: boolean;
8
+ weight: number;
9
+
10
+ typeId: string;
11
+
12
+ requiresVerification: boolean;
13
+ requiresApproval: boolean;
14
+
15
+ metadata: any;
16
+ }
@@ -0,0 +1,14 @@
1
+ export interface IClientRequestType {
2
+ id: string;
3
+ createdAt: Date;
4
+ updatedAt: Date;
5
+
6
+ name: string;
7
+ systemReserved: boolean;
8
+ weight: number;
9
+ visible: boolean;
10
+
11
+ regionId: string;
12
+
13
+ metadata: any;
14
+ }
@@ -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["valueType"];
13
+
14
+ fieldId?: 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,14 @@
1
+ import { IEmployee } from ".";
2
+
3
+ export interface IClientRequestVerification {
4
+ createdAt: string;
5
+ updatedAt: string;
6
+ id: string;
7
+
8
+ status: "APPROVED" | "REJECTED" | "PENDING";
9
+ verifiedById: string;
10
+ verifiedBy: IEmployee;
11
+
12
+ rejectionReason?: string;
13
+ metadata?: any;
14
+ }
@@ -0,0 +1,26 @@
1
+ export interface IClientRequest {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ deletedAt?: string;
6
+
7
+ archivedAt?: string;
8
+ approvedAt?: string;
9
+ withdrawnAt?: string;
10
+ verifiedAt?: string;
11
+ rejectedAt?: string;
12
+
13
+ typeId: string;
14
+ categoryId: string;
15
+ clientId: string;
16
+ createdById: string;
17
+
18
+ verifiedById?: string;
19
+ rejectedById?: string;
20
+ folderKey?: string | null;
21
+
22
+ status: "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "WITHDRAWN" | "PENDING_VERIFICATION" | "ARCHIVED";
23
+ actionsExecutionStatus: "PENDING" | "COMPLETED" | "PROCESSING" | "FAILED" | "SKIPPED";
24
+
25
+ metadata?: any;
26
+ }
@@ -0,0 +1,13 @@
1
+ export interface IClientStatusCheckRequirement {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ optional: boolean;
7
+ order: number;
8
+
9
+ statusCheckId: string;
10
+ categoryId: string;
11
+
12
+ metadata?: any;
13
+ }
@@ -0,0 +1,10 @@
1
+ export interface IClientStatusCheck {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ fromStatusId: string;
7
+ targetStatusId: string;
8
+
9
+ metadata?: any;
10
+ }
@@ -0,0 +1,10 @@
1
+ export interface IClientStatus {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ name: string;
6
+ default: boolean;
7
+ weight: number;
8
+ regionId: string;
9
+ metadata?: any;
10
+ }
@@ -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: string;
7
- deletedAt: string;
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
  }
@@ -56,11 +56,24 @@ export * from "./call-log";
56
56
  export * from "./ceiling";
57
57
  export * from "./client";
58
58
  export * from "./client-class";
59
- export * from "./client-contact";
60
- export * from "./client-contract";
61
59
  export * from "./client-comment";
62
60
  export * from "./client-comment-reaction";
61
+ export * from "./client-contact";
62
+ export * from "./client-contract";
63
+ export * from "./client-field";
64
+ export * from "./client-field-value";
65
+ export * from "./client-request";
66
+ export * from "./client-request-action";
67
+ export * from "./client-request-action-execution";
68
+ export * from "./client-request-category";
69
+ export * from "./client-request-category-field";
70
+ export * from "./client-request-type";
71
+ export * from "./client-request-value";
72
+ export * from "./client-request-verification";
63
73
  export * from "./client-site";
74
+ export * from "./client-status";
75
+ export * from "./client-status-check";
76
+ export * from "./client-status-check-requirement";
64
77
  export * from "./cluster-patrol";
65
78
  export * from "./cluster-patrol-point";
66
79
  export * from "./company";
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.72-dev.c67b8b6"
55
+ "version": "1.0.72-dev.f3c0a6d"
56
56
  }