@automateinc/fleet-types 1.0.72-dev.0aedd37 → 1.0.72-dev.34fa8ea

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
+ }
@@ -0,0 +1,12 @@
1
+ export interface IClientFieldCategory {
2
+ id: string;
3
+ createdAt: string;
4
+ updatedAt?: string;
5
+
6
+ regionId: string;
7
+
8
+ name: string;
9
+ order: number;
10
+
11
+ metadata?: any;
12
+ }
@@ -30,6 +30,8 @@ export interface IClientField {
30
30
 
31
31
  requestCategoryFieldId?: string;
32
32
 
33
+ generationOnly: boolean;
34
+
33
35
  type: "METADATA" | "REQUEST" | "CLIENT";
34
36
  config?: ClientFieldInput;
35
37
 
@@ -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,7 +4,7 @@ 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
10
  categoryId: string;
@@ -6,6 +6,9 @@ export interface IClientRequestCategory {
6
6
  name: string;
7
7
  systemReserved: boolean;
8
8
  weight: number;
9
+ hidden: boolean;
10
+ infoType: "INFO" | "DANGER" | "WARNING";
11
+ info?: string;
9
12
 
10
13
  typeId: string;
11
14
 
@@ -9,9 +9,9 @@ export interface IClientRequestValue {
9
9
  name: string;
10
10
  value: any;
11
11
 
12
- type: IClientRequestCategoryField["valueType"];
12
+ type: IClientRequestCategoryField["type"];
13
13
 
14
- fieldId?: string;
14
+ categoryFieldId?: string;
15
15
 
16
16
  requestId: string;
17
17
 
@@ -4,6 +4,7 @@ export interface IClientRequestVerification {
4
4
  createdAt: string;
5
5
  updatedAt: string;
6
6
  id: string;
7
+ verifiedAt?: string;
7
8
 
8
9
  status: "APPROVED" | "REJECTED" | "PENDING";
9
10
  verifiedById: string;
@@ -5,10 +5,7 @@ export interface IClientRequest {
5
5
  deletedAt?: string;
6
6
 
7
7
  archivedAt?: string;
8
- approvedAt?: string;
9
8
  withdrawnAt?: string;
10
- verifiedAt?: string;
11
- rejectedAt?: string;
12
9
 
13
10
  typeId: string;
14
11
  categoryId: string;
@@ -17,7 +14,6 @@ export interface IClientRequest {
17
14
 
18
15
  verifiedById?: string;
19
16
  rejectedById?: string;
20
- folderKey?: string | null;
21
17
 
22
18
  status: "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "WITHDRAWN" | "PENDING_VERIFICATION" | "ARCHIVED";
23
19
  actionsExecutionStatus: "PENDING" | "COMPLETED" | "PROCESSING" | "FAILED" | "SKIPPED";
@@ -1,3 +1,5 @@
1
+ import { ITagColor } from "./tag-color";
2
+
1
3
  export interface IClientStatus {
2
4
  id: string;
3
5
  createdAt: string;
@@ -6,5 +8,8 @@ export interface IClientStatus {
6
8
  default: boolean;
7
9
  weight: number;
8
10
  regionId: string;
11
+ darkColors?: ITagColor | null;
12
+ lightColors?: ITagColor | null;
13
+ clientActive: boolean;
9
14
  metadata?: any;
10
15
  }
@@ -60,8 +60,12 @@ 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";
65
+ export * from "./client-field-category";
64
66
  export * from "./client-field-value";
67
+ export * from "./client-quotation";
68
+ export * from "./client-quotation-line";
65
69
  export * from "./client-request";
66
70
  export * from "./client-request-action";
67
71
  export * from "./client-request-action-execution";
@@ -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.0aedd37"
55
+ "version": "1.0.72-dev.34fa8ea"
56
56
  }