@automateinc/fleet-types 1.0.40-dev.2531297 → 1.0.40-dev.d38e15e

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.
@@ -157,3 +157,4 @@ export * from "./attendance-patrol-point";
157
157
  export * from "./recruitment-category";
158
158
  export * from "./recruitment-category-field";
159
159
  export * from "./recruitment-value";
160
+ export * from "./value";
@@ -1,17 +1,6 @@
1
- import { IFile, IRecruitmentCategoryField } from ".";
2
- import { IModel } from "./models";
1
+ import { IValue } from "./value";
3
2
 
4
- export interface IRecruitmentValue {
5
- id: string;
6
- type: IRecruitmentCategoryField["type"];
7
- name: string;
8
- value: any;
9
- model?: IModel;
10
- required?: boolean;
11
- relation?: {
12
- [key: PropertyKey]: any;
13
- };
14
- relationValue?: string;
15
- file?: IFile;
16
- metadata?: any;
3
+ export interface IRecruitmentValue extends IValue {
4
+ categoryId: string;
5
+ recruitmentId: string;
17
6
  }
@@ -3,6 +3,10 @@ export interface IRecruitment {
3
3
  createdAt: string;
4
4
  updatedAt: string;
5
5
 
6
+ firstName: string;
7
+ lastName: string;
8
+ name: string;
9
+
6
10
  status: "DRAFT" | "VERIFIED" | "PENDING" | "CHANGES_NEEDED" | "RECRUITED";
7
11
  regionId: string;
8
12
  createdById: string;
@@ -0,0 +1,51 @@
1
+ import { IClient } from "./client";
2
+ import { ICompany } from "./company";
3
+ import { IContact } from "./contact";
4
+ import { IContract } from "./contract";
5
+ import { IFile } from "./file";
6
+ import { IModel } from "./models";
7
+ import { IPaymentCycle } from "./payment-cycle";
8
+ import { IZone } from "./zone";
9
+
10
+ export interface IValue {
11
+ id: string;
12
+ type:
13
+ | "STRING"
14
+ | "NUMBER"
15
+ | "BOOLEAN"
16
+ | "DATE"
17
+ | "DATETIME"
18
+ | "TIME"
19
+ | "UPLOAD"
20
+ | "RELATION"
21
+ | "SINGLE_SELECT"
22
+ | "SIGNATURE";
23
+ name: string;
24
+ value: any;
25
+ config?: {
26
+ model?: IModel;
27
+ options?: Array<{ label: string; value: string } | string>;
28
+ optionsUrl?: string;
29
+ dependencies?: string[];
30
+ hasDependency?: boolean;
31
+ uploadCategory?: string;
32
+ };
33
+ metadata?: any;
34
+ clientId?: string;
35
+ companyId?: string;
36
+ contactId?: string;
37
+ contractId?: string;
38
+ fileId?: string;
39
+ paymentCycleId?: string;
40
+ zoneId?: string;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+
44
+ file?: IFile;
45
+ company?: ICompany;
46
+ client?: IClient;
47
+ contract?: IContract;
48
+ contact?: IContact;
49
+ paymentCycle?: IPaymentCycle;
50
+ zone?: IZone;
51
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@automateinc/fleet-types",
3
3
  "private": false,
4
- "version": "1.0.40-dev.2531297",
4
+ "version": "1.0.40-dev.d38e15e",
5
5
  "description": "Reusable TypeScript types and interfaces for Fleet API.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/types/index.d.ts",