@automateinc/fleet-types 1.0.77-dev.95e7e3f → 1.0.77-dev.b6c7def

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.
@@ -4,7 +4,7 @@ export interface ICallLog {
4
4
  updatedAt: string;
5
5
  deletedAt?: string;
6
6
 
7
- type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | null;
7
+ type: "BUILDING" | "CLIENT" | "EMPLOYEE" | "OTHER" | "USER" | null;
8
8
 
9
9
  direction: "INCOMING" | "OUTGOING";
10
10
 
@@ -5,9 +5,6 @@ export interface IClientQuotationLine {
5
5
 
6
6
  quotationId: string;
7
7
  employeeGroupId: string;
8
- employeeContractId: string;
9
- employeeContractSnapshotId: string;
10
- employeeCompanyId: string;
11
8
  roleId: string;
12
9
 
13
10
  headcount: number;
@@ -3,7 +3,7 @@ export interface IClientQuotation {
3
3
  createdAt: string;
4
4
  updatedAt: string;
5
5
 
6
- status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED" | "REJECTED" | "CHANGES_NEEDED";
6
+ status: "DRAFT" | "PENDING_APPROVAL" | "APPROVED";
7
7
 
8
8
  clientId: string;
9
9
  createdById?: string;
@@ -13,9 +13,6 @@ export interface IClientQuotation {
13
13
  approvedAt?: string;
14
14
 
15
15
  previousVersionId?: string;
16
- taxRate: number;
17
-
18
- reason?: string;
19
16
 
20
17
  metadata?: any;
21
18
  }
@@ -1,13 +1,25 @@
1
+ export type ConfigScope = "DEFAULT" | "TEAM" | "REGION";
2
+
3
+ export type ConfigValueType = "STRING" | "NUMBER" | "BOOLEAN" | "DATE" | "DATETIME" | "TIME" | "RELATION" | "JSON";
4
+
5
+ export type ConfigScalar = string | number | boolean | null;
6
+
7
+ export type ConfigDocumentValue = ConfigScalar | ConfigDocumentValue[] | ConfigDocument;
8
+
9
+ export interface ConfigDocument {
10
+ [key: string]: ConfigDocumentValue;
11
+ }
12
+
1
13
  export interface IConfig {
2
14
  id: string;
3
15
  createdAt: string;
4
16
  updatedAt?: string;
5
17
  name: string;
6
- value: any;
7
- type: "DEFAULT" | "TEAM" | "REGION" | "COMPANY";
8
- valueType: "STRING" | "NUMBER" | "BOOLEAN" | "DATE" | "DATETIME" | "TIME" | "JSON";
9
- teamId?: string;
10
- regionId?: string;
11
- companyId?: string;
12
- metadata?: any;
18
+ metadata?: unknown;
19
+ regionId?: string | null;
20
+ scope: ConfigScope;
21
+ teamId?: string | null;
22
+ type: ConfigScope;
23
+ value: ConfigDocument;
24
+ valueType: "JSON";
13
25
  }
@@ -10,7 +10,6 @@ export interface IContract {
10
10
  updatedAt: Date;
11
11
  dailyHours: number;
12
12
  monthlyDaysOff: number;
13
- workingDaysPerWeek: number;
14
13
  contractDuration: number;
15
14
  overtimeRate: number;
16
15
  commissionRate: number;
@@ -66,8 +66,6 @@ export * from "./client-field-category";
66
66
  export * from "./client-field-value";
67
67
  export * from "./client-quotation";
68
68
  export * from "./client-quotation-line";
69
- export * from "./client-quotation-position-version";
70
- export * from "./client-quotation-site-draft";
71
69
  export * from "./client-request";
72
70
  export * from "./client-request-action";
73
71
  export * from "./client-request-action-execution";
@@ -90,7 +88,6 @@ export * from "./contract";
90
88
  export * from "./contract-allowance";
91
89
  export * from "./contract-benefit";
92
90
  export * from "./contract-deduction";
93
- export * from "./contract-cost";
94
91
  export * from "./coords";
95
92
  export * from "./day-of-week";
96
93
  export * from "./dispatch";
@@ -3,7 +3,7 @@ export interface IPositionVersion {
3
3
  updatedAt: Date;
4
4
  createdAt: Date;
5
5
 
6
- status: "UNVERIFIED" | "PENDING_VERIFICATION" | "VERIFIED" | "REJECTED" | "CHANGES_NEEDED";
6
+ status: "UNVERIFIED" | "PENDING_VERIFICATION" | "VERIFIED" | "REJECTED";
7
7
  version: number;
8
8
  coversSaturday: boolean;
9
9
  coversSunday: boolean;
@@ -16,8 +16,6 @@ export interface IPositionVersion {
16
16
  dailyCoverage: string;
17
17
  weeklyCoverage: string;
18
18
 
19
- reason?: string;
20
-
21
19
  positionId: string;
22
20
  activePositionId: string;
23
21
  metadata?: any;
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.95e7e3f"
55
+ "version": "1.0.77-dev.b6c7def"
56
56
  }
@@ -1,33 +0,0 @@
1
- import { IGender } from "./gender";
2
-
3
- export interface IClientQuotationPositionVersion {
4
- id: string;
5
- createdAt: string;
6
- updatedAt: string;
7
-
8
- siteDraftId: string;
9
- positionId?: string | null;
10
- positionVersionId?: string | null;
11
-
12
- name: string;
13
- status:
14
- | "UNVERIFIED"
15
- | "PENDING_VERIFICATION"
16
- | "VERIFIED"
17
- | "REJECTED"
18
- | "CHANGES_NEEDED";
19
- reason?: string | null;
20
-
21
- coversSaturday: boolean;
22
- coversSunday: boolean;
23
- coversMonday: boolean;
24
- coversTuesday: boolean;
25
- coversWednesday: boolean;
26
- coversThursday: boolean;
27
- coversFriday: boolean;
28
-
29
- dailyHours: number;
30
- gender?: IGender | null;
31
-
32
- metadata?: any;
33
- }
@@ -1,13 +0,0 @@
1
- export interface IClientQuotationSiteDraft {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
-
6
- quotationId: string;
7
- clientSiteId?: string | null;
8
- scheduleSiteId?: string | null;
9
-
10
- name: string;
11
-
12
- metadata?: any;
13
- }
@@ -1,17 +0,0 @@
1
- export interface IContractCost {
2
- id: string;
3
- createdAt: string;
4
- updatedAt: string;
5
-
6
- name: string;
7
- value: number;
8
-
9
- recurrence: "ONE_TIME" | "RECURRING";
10
-
11
- duration?: number;
12
- durationType?: "DAY" | "WEEK" | "MONTH" | "YEAR";
13
-
14
- contractId: string;
15
-
16
- metadata?: any;
17
- }