@ironcode/vas-lib 1.12.0 → 1.14.0
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.
- package/cjs/lib/entity/vas-job-action.dto.d.ts +13 -6
- package/cjs/lib/entity/vas-job-action.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job-action.dto.js +8 -4
- package/cjs/lib/entity/vas-job-action.dto.js.map +1 -1
- package/cjs/lib/entity/vas-job.dto.d.ts +3 -1
- package/cjs/lib/entity/vas-job.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.dto.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +4 -2
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +7 -5
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/fesm2022/ironcode-vas-lib.mjs +14 -8
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-job-action.dto.d.ts +13 -6
- package/lib/entity/vas-job.dto.d.ts +3 -1
- package/lib/entity/vas-job.model.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';
|
|
2
2
|
export interface VasJobActionStepDto {
|
|
3
3
|
id: string;
|
|
4
|
-
type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'set-datetime' | 'set-job-status' | 'set-value';
|
|
4
|
+
type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'note-prompt' | 'set-datetime' | 'set-job-status' | 'set-value';
|
|
5
5
|
stage: VasJobActionStepStage;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -57,13 +57,12 @@ export interface VasJobActionInstructionStepDto extends VasJobActionStepDto {
|
|
|
57
57
|
linkControl: string;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* NotePrompt step allows us to prompt the user for a note
|
|
61
61
|
*/
|
|
62
|
-
export interface
|
|
63
|
-
type: '
|
|
64
|
-
value: string;
|
|
62
|
+
export interface VasJobActionNotePromptStepDto extends VasJobActionStepDto {
|
|
63
|
+
type: 'note-prompt';
|
|
65
64
|
}
|
|
66
|
-
export declare const
|
|
65
|
+
export declare const isJobNotePromptStep: (step: VasJobActionStepDto) => step is VasJobActionNotePromptStepDto;
|
|
67
66
|
/**
|
|
68
67
|
* SetDatetime step allow us set the value of a datetime control
|
|
69
68
|
*/
|
|
@@ -73,6 +72,14 @@ export interface VasJobActionSetDatetimeStepDto extends VasJobActionStepDto {
|
|
|
73
72
|
controlName: string;
|
|
74
73
|
}
|
|
75
74
|
export declare const isJobSetDatetimeStep: (step: VasJobActionStepDto) => step is VasJobActionSetDatetimeStepDto;
|
|
75
|
+
/**
|
|
76
|
+
* SetJobStatus step allow us set the job status to some value
|
|
77
|
+
*/
|
|
78
|
+
export interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {
|
|
79
|
+
type: 'set-job-status';
|
|
80
|
+
value: string;
|
|
81
|
+
}
|
|
82
|
+
export declare const isJobSetJobStatusStep: (step: VasJobActionStepDto) => step is VasJobActionSetJobStatusStepDto;
|
|
76
83
|
/**
|
|
77
84
|
* SetValue step allow us set the value of any control with a hardcoded value
|
|
78
85
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { VasFileDto } from './vas-file.dto';
|
|
2
2
|
import { VasRestrictedAccountObjectDto } from './vas-restricted-account-object.dto';
|
|
3
3
|
import { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';
|
|
4
|
-
import { GeoLocation } from '../model
|
|
4
|
+
import { GeoLocation } from '../model';
|
|
5
5
|
import { VasReportDto } from './vas-report.dto';
|
|
6
6
|
import { VasTaskDto } from './vas-task.dto';
|
|
7
7
|
import { VasNoteDto } from './vas-note.dto';
|
|
8
8
|
import { VasJobEmailDto } from './vas-job-email.dto';
|
|
9
|
+
import { VasInstructionDto } from './vas-instruction.dto';
|
|
9
10
|
export interface VasJobStaticDto extends VasRestrictedAccountObjectDto {
|
|
10
11
|
reference: string;
|
|
11
12
|
jobDate: string;
|
|
@@ -26,5 +27,6 @@ export interface VasJobStaticDto extends VasRestrictedAccountObjectDto {
|
|
|
26
27
|
notes: Array<VasNoteDto>;
|
|
27
28
|
reports: Array<VasReportDto>;
|
|
28
29
|
tasks: Array<VasTaskDto>;
|
|
30
|
+
instruction: null | VasInstructionDto;
|
|
29
31
|
}
|
|
30
32
|
export declare type VasJobDto = VasJobStaticDto & Record<string, VasFieldDtoValue>;
|
|
@@ -10,6 +10,7 @@ import { VasReportDto } from './vas-report.dto';
|
|
|
10
10
|
import { VasTaskDto } from './vas-task.dto';
|
|
11
11
|
import { VasNoteDto } from './vas-note.dto';
|
|
12
12
|
import { VasJobEmailDto } from './vas-job-email.dto';
|
|
13
|
+
import { VasInstructionDto } from './vas-instruction.dto';
|
|
13
14
|
export declare interface VasJobModelDynamicInterface {
|
|
14
15
|
[s: string]: string | number | Record<string, VasFieldDtoValue>;
|
|
15
16
|
}
|
|
@@ -51,7 +52,8 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
51
52
|
notes: Array<VasNoteDto>;
|
|
52
53
|
reports: Array<VasReportDto>;
|
|
53
54
|
tasks: Array<VasTaskDto>;
|
|
54
|
-
|
|
55
|
+
instruction: VasInstructionDto | null;
|
|
56
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, reference: string, jobDate: string, jobStatus: string, jobType: string, assigneeId: string, formId: string, timeZoneOffset: number, pendingFields: number, childModified: string, version: number, createdByDisplayName: string, modifiedByDisplayName: string, geoLocation: GeoLocation, files: Array<VasFileDto>, fields: Array<VasFieldDto>, jobEmails: Array<VasJobEmailDto>, notes: Array<VasNoteDto>, reports: Array<VasReportDto>, tasks: Array<VasTaskDto>, instruction: VasInstructionDto | null);
|
|
55
57
|
/**
|
|
56
58
|
* Returns this with the dynamic interface
|
|
57
59
|
* @return {VasJobModelDynamicInterface}
|
|
@@ -87,7 +89,7 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
87
89
|
* Will return an object whose keys are the names of all fields in the job.
|
|
88
90
|
* This method is similar to `getFields` except that this method will only
|
|
89
91
|
* return values where a value was set, as opposed to `getFields` which will
|
|
90
|
-
* return a value for every control even if
|
|
92
|
+
* return a value for every control even if no value was set, because it uses
|
|
91
93
|
* the form to drive the logic. Note also this method will return values for
|
|
92
94
|
* any Fields in the fields array.
|
|
93
95
|
* @return {Record<string, VasFieldDtoValue>}
|