@automateinc/fleet-types 1.0.77-dev.26c81a3 → 1.0.77-dev.50c9fc9

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,28 @@
1
+ import { IClientRequestCategoryField } from "./client-request-category-field";
2
+ import { IClientStatus } from "./client-status";
3
+ import { IClientChecklistItem } from "./client-checklist-item";
4
+
5
+ export type IClientChecklistDefinitionScope = "REGION" | "CLIENT";
6
+
7
+ export interface IClientChecklistDefinition {
8
+ id: string;
9
+ createdAt: string;
10
+ updatedAt?: string | null;
11
+
12
+ title: string;
13
+ description?: string | null;
14
+ order: number;
15
+
16
+ systemGenerated: boolean;
17
+ scope: IClientChecklistDefinitionScope;
18
+
19
+ regionId: string;
20
+ clientId?: string | null;
21
+ createdById?: string | null;
22
+
23
+ visibleUntilStatusId?: string | null;
24
+ visibleWhenFieldId?: string | null;
25
+ visibleWhenValueString?: string | null;
26
+
27
+ metadata?: any;
28
+ }
@@ -0,0 +1,14 @@
1
+ export interface IClientChecklistItem {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string | null;
5
+
6
+ definitionId: string;
7
+ clientId: string;
8
+
9
+ done: boolean;
10
+ completedAt?: string | null;
11
+ completedById?: string | null;
12
+
13
+ metadata?: any;
14
+ }
@@ -12,7 +12,6 @@ export interface IClientQuotationLine {
12
12
  roleId: string;
13
13
 
14
14
  headcount: number;
15
- pricePerHead: number;
16
15
 
17
16
  metadata?: any;
18
17
  }
@@ -1,5 +1,29 @@
1
1
  import { IModel } from "./models";
2
2
 
3
+ export interface IClientRequestFieldVisibilityRule {
4
+ id: string;
5
+ action: "SHOW" | "HIDE";
6
+ operator: "EQUALS" | "NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "IS_EMPTY" | "IS_NOT_EMPTY";
7
+ sourceFieldId: string;
8
+ targetFieldId: string;
9
+ order: number;
10
+ compareValueString?: string;
11
+ compareValueNumber?: number;
12
+ compareValueBoolean?: boolean;
13
+ compareValueDate?: string;
14
+ metadata?: any;
15
+ sourceField?: {
16
+ id: string;
17
+ name: string;
18
+ type?: IClientRequestCategoryField["type"];
19
+ };
20
+ targetField?: {
21
+ id: string;
22
+ name: string;
23
+ type?: IClientRequestCategoryField["type"];
24
+ };
25
+ }
26
+
3
27
  export interface IClientRequestCategoryField {
4
28
  id: string;
5
29
  createdAt: string;
@@ -11,6 +35,7 @@ export interface IClientRequestCategoryField {
11
35
  order: number;
12
36
 
13
37
  name: string;
38
+ cardinality: "SINGLE" | "MULTI";
14
39
 
15
40
  type:
16
41
  | "STRING"
@@ -35,4 +60,7 @@ export interface IClientRequestCategoryField {
35
60
  hasDependency?: boolean;
36
61
  variant?: string;
37
62
  };
63
+
64
+ visibilityRulesAsSource?: IClientRequestFieldVisibilityRule[];
65
+ visibilityRulesAsTarget?: IClientRequestFieldVisibilityRule[];
38
66
  }
@@ -15,7 +15,7 @@ export interface IClientRequestValue {
15
15
 
16
16
  requestId: string;
17
17
 
18
- relationValue?: string;
18
+ relationValue?: string | string[];
19
19
  file?: IFile;
20
20
 
21
21
  config?: {
@@ -56,6 +56,8 @@ export * from "./call-log";
56
56
  export * from "./ceiling";
57
57
  export * from "./client";
58
58
  export * from "./client-class";
59
+ export * from "./client-checklist-definition";
60
+ export * from "./client-checklist-item";
59
61
  export * from "./client-comment";
60
62
  export * from "./client-comment-reaction";
61
63
  export * from "./client-contact";
@@ -42,6 +42,8 @@ export type IModel =
42
42
  | "ceiling"
43
43
  | "tag"
44
44
  | "client"
45
+ | "clientChecklistDefinition"
46
+ | "clientChecklistItem"
45
47
  | "clientStatus"
46
48
  | "clientStatusCheck"
47
49
  | "clientStatusCheckRequirement"
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.77-dev.26c81a3"
55
+ "version": "1.0.77-dev.50c9fc9"
56
56
  }