@automateinc/fleet-types 1.0.72-dev.bc79d8c → 1.0.72-dev.bd70738

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,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
+ }
@@ -23,10 +23,13 @@ export interface IClientField {
23
23
  updatedAt?: string;
24
24
  regionId: string;
25
25
 
26
- employeeId?: string;
26
+ order: number;
27
27
 
28
28
  name: string;
29
- category?: string;
29
+ categoryId: string;
30
+
31
+ requestCategoryFieldId?: string;
32
+
30
33
  type: "METADATA" | "REQUEST" | "CLIENT";
31
34
  config?: ClientFieldInput;
32
35
 
@@ -0,0 +1,14 @@
1
+ export interface IClientQuotationLine {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ quotationId: string;
7
+ employeeGroupId: string;
8
+ roleId: string;
9
+
10
+ headcount: number;
11
+ pricePerHead: number;
12
+
13
+ metadata?: any;
14
+ }
@@ -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
+ }
@@ -4,9 +4,11 @@ export interface IClientRequestAction {
4
4
  updatedAt: Date;
5
5
 
6
6
  name: string;
7
- operation: "HTTP";
7
+ operation: "HTTP" | "FUNCTION";
8
8
  type: "VERIFICATION" | "APPROVAL" | "REJECTION" | "CREATION";
9
9
 
10
+ categoryId: string;
11
+
10
12
  config: Record<string, any>;
11
13
  order: number;
12
14
 
@@ -8,8 +8,11 @@ export interface IClientRequestCategoryField {
8
8
  categoryId: string;
9
9
 
10
10
  required: boolean;
11
+ order: number;
11
12
 
12
- valueType:
13
+ name: string;
14
+
15
+ type:
13
16
  | "STRING"
14
17
  | "NUMBER"
15
18
  | "BOOLEAN"
@@ -0,0 +1,14 @@
1
+ export interface IClientStatusCheckRequirement {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt: string;
5
+
6
+ optional: boolean;
7
+ order: number;
8
+ tooltip?: string;
9
+
10
+ statusCheckId: string;
11
+ categoryId: string;
12
+
13
+ metadata?: any;
14
+ }
@@ -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,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
+ }
@@ -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
  }
@@ -60,8 +60,11 @@ export * from "./client-comment";
60
60
  export * from "./client-comment-reaction";
61
61
  export * from "./client-contact";
62
62
  export * from "./client-contract";
63
+ export * from "./client-document-definition";
63
64
  export * from "./client-field";
64
65
  export * from "./client-field-value";
66
+ export * from "./client-quotation";
67
+ export * from "./client-quotation-line";
65
68
  export * from "./client-request";
66
69
  export * from "./client-request-action";
67
70
  export * from "./client-request-action-execution";
@@ -71,6 +74,9 @@ export * from "./client-request-type";
71
74
  export * from "./client-request-value";
72
75
  export * from "./client-request-verification";
73
76
  export * from "./client-site";
77
+ export * from "./client-status";
78
+ export * from "./client-status-check";
79
+ export * from "./client-status-check-requirement";
74
80
  export * from "./cluster-patrol";
75
81
  export * from "./cluster-patrol-point";
76
82
  export * from "./company";
@@ -45,6 +45,8 @@ export type IModel =
45
45
  | "zone"
46
46
  | "siteClass"
47
47
  | "clientSite"
48
+ | "clientQuotation"
49
+ | "clientQuotationLine"
48
50
  | "position"
49
51
  | "positionVersion"
50
52
  | "shiftType"
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.bc79d8c"
55
+ "version": "1.0.72-dev.bd70738"
56
56
  }