@ironcode/vas-lib 1.16.0 → 2.0.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/controls-config/index.d.ts +3 -2
- package/cjs/lib/controls-config/index.d.ts.map +1 -1
- package/cjs/lib/controls-config/index.js +3 -2
- package/cjs/lib/controls-config/index.js.map +1 -1
- package/cjs/lib/controls-config/{vas-control-config.model.d.ts → vas-control-config.dto.d.ts} +2 -2
- package/cjs/lib/controls-config/vas-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/{vas-control-config.model.js → vas-control-config.dto.js} +1 -1
- package/cjs/lib/controls-config/vas-control-config.dto.js.map +1 -0
- package/cjs/lib/controls-config/vas-costs-control-config.dto.d.ts +9 -0
- package/cjs/lib/controls-config/vas-costs-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/{vas-select-control-config.model.js → vas-costs-control-config.dto.js} +1 -1
- package/cjs/lib/controls-config/vas-costs-control-config.dto.js.map +1 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.d.ts +10 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.js +3 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.js.map +1 -0
- package/cjs/lib/entity/index.d.ts +10 -0
- package/cjs/lib/entity/index.d.ts.map +1 -1
- package/cjs/lib/entity/index.js +10 -0
- package/cjs/lib/entity/index.js.map +1 -1
- package/cjs/lib/entity/step-model.factory.d.ts +11 -0
- package/cjs/lib/entity/step-model.factory.d.ts.map +1 -0
- package/cjs/lib/entity/step-model.factory.js +41 -0
- package/cjs/lib/entity/step-model.factory.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-controls-step.model.d.ts +34 -0
- package/cjs/lib/entity/vas-job-action-controls-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-controls-step.model.js +58 -0
- package/cjs/lib/entity/vas-job-action-controls-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-email-form-step.model.d.ts +42 -0
- package/cjs/lib/entity/vas-job-action-email-form-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-email-form-step.model.js +66 -0
- package/cjs/lib/entity/vas-job-action-email-form-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-instruction-step.model.d.ts +35 -0
- package/cjs/lib/entity/vas-job-action-instruction-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-instruction-step.model.js +60 -0
- package/cjs/lib/entity/vas-job-action-instruction-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-note-prompt-step.model.d.ts +33 -0
- package/cjs/lib/entity/vas-job-action-note-prompt-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-note-prompt-step.model.js +56 -0
- package/cjs/lib/entity/vas-job-action-note-prompt-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-datetime-step.model.d.ts +35 -0
- package/cjs/lib/entity/vas-job-action-set-datetime-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-datetime-step.model.js +60 -0
- package/cjs/lib/entity/vas-job-action-set-datetime-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-job-status-step.model.d.ts +34 -0
- package/cjs/lib/entity/vas-job-action-set-job-status-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-job-status-step.model.js +58 -0
- package/cjs/lib/entity/vas-job-action-set-job-status-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-value-step.model.d.ts +35 -0
- package/cjs/lib/entity/vas-job-action-set-value-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-set-value-step.model.js +60 -0
- package/cjs/lib/entity/vas-job-action-set-value-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-step.model.d.ts +21 -0
- package/cjs/lib/entity/vas-job-action-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-step.model.js +25 -0
- package/cjs/lib/entity/vas-job-action-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action-webhook-step.model.d.ts +35 -0
- package/cjs/lib/entity/vas-job-action-webhook-step.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action-webhook-step.model.js +60 -0
- package/cjs/lib/entity/vas-job-action-webhook-step.model.js.map +1 -0
- package/cjs/lib/entity/vas-job-action.dto.d.ts +10 -9
- package/cjs/lib/entity/vas-job-action.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job-action.dto.js +5 -1
- package/cjs/lib/entity/vas-job-action.dto.js.map +1 -1
- package/cjs/lib/entity/vas-job-action.model.d.ts +37 -0
- package/cjs/lib/entity/vas-job-action.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action.model.js +63 -0
- package/cjs/lib/entity/vas-job-action.model.js.map +1 -0
- package/fesm2022/ironcode-vas-lib.mjs +712 -42
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
- package/lib/controls-config/index.d.ts +3 -2
- package/lib/controls-config/{vas-control-config.model.d.ts → vas-control-config.dto.d.ts} +1 -1
- package/lib/controls-config/vas-costs-control-config.dto.d.ts +8 -0
- package/lib/controls-config/vas-select-control-config.dto.d.ts +9 -0
- package/lib/entity/index.d.ts +10 -0
- package/lib/entity/step-model.factory.d.ts +10 -0
- package/lib/entity/vas-job-action-controls-step.model.d.ts +33 -0
- package/lib/entity/vas-job-action-email-form-step.model.d.ts +41 -0
- package/lib/entity/vas-job-action-instruction-step.model.d.ts +34 -0
- package/lib/entity/vas-job-action-note-prompt-step.model.d.ts +32 -0
- package/lib/entity/vas-job-action-set-datetime-step.model.d.ts +34 -0
- package/lib/entity/vas-job-action-set-job-status-step.model.d.ts +33 -0
- package/lib/entity/vas-job-action-set-value-step.model.d.ts +34 -0
- package/lib/entity/vas-job-action-step.model.d.ts +20 -0
- package/lib/entity/vas-job-action-webhook-step.model.d.ts +34 -0
- package/lib/entity/vas-job-action.dto.d.ts +10 -9
- package/lib/entity/vas-job-action.model.d.ts +36 -0
- package/package.json +1 -1
- package/cjs/lib/controls-config/vas-control-config.model.d.ts.map +0 -1
- package/cjs/lib/controls-config/vas-control-config.model.js.map +0 -1
- package/cjs/lib/controls-config/vas-select-control-config.model.d.ts +0 -10
- package/cjs/lib/controls-config/vas-select-control-config.model.d.ts.map +0 -1
- package/cjs/lib/controls-config/vas-select-control-config.model.js.map +0 -1
- package/lib/controls-config/vas-select-control-config.model.d.ts +0 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './vas-control-config-direction.enum';
|
|
2
|
-
export * from './vas-control-config.
|
|
2
|
+
export * from './vas-control-config.dto';
|
|
3
|
+
export * from './vas-costs-control-config.dto';
|
|
3
4
|
export * from './vas-function-control-config.dto';
|
|
4
|
-
export * from './vas-select-control-config.
|
|
5
|
+
export * from './vas-select-control-config.dto';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VasControlConfigDto } from './vas-control-config.dto';
|
|
2
|
+
export interface VasSelectControlConfigSelectOptionDto {
|
|
3
|
+
value: string;
|
|
4
|
+
title: string;
|
|
5
|
+
score: number | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface VasSelectControlConfigDto extends VasControlConfigDto {
|
|
8
|
+
options: Array<VasSelectControlConfigSelectOptionDto>;
|
|
9
|
+
}
|
package/lib/entity/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './step-model.factory';
|
|
1
2
|
export * from './vas-access-group.dto';
|
|
2
3
|
export * from './vas-account-config.dto';
|
|
3
4
|
export * from './vas-account-object.dto';
|
|
@@ -36,6 +37,15 @@ export * from './vas-instruction.dto';
|
|
|
36
37
|
export * from './vas-instruction.model';
|
|
37
38
|
export * from './vas-invitation';
|
|
38
39
|
export * from './vas-job-action.dto';
|
|
40
|
+
export * from './vas-job-action.model';
|
|
41
|
+
export * from './vas-job-action-controls-step.model';
|
|
42
|
+
export * from './vas-job-action-email-form-step.model';
|
|
43
|
+
export * from './vas-job-action-instruction-step.model';
|
|
44
|
+
export * from './vas-job-action-note-prompt-step.model';
|
|
45
|
+
export * from './vas-job-action-set-datetime-step.model';
|
|
46
|
+
export * from './vas-job-action-set-job-status-step.model';
|
|
47
|
+
export * from './vas-job-action-set-value-step.model';
|
|
48
|
+
export * from './vas-job-action-webhook-step.model';
|
|
39
49
|
export * from './vas-job-copy';
|
|
40
50
|
export * from './vas-job-data.dto';
|
|
41
51
|
export * from './vas-job-data.model';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VasJobActionStepDto } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionControlsStepModel } from './vas-job-action-controls-step.model';
|
|
3
|
+
import { VasJobActionEmailFormStepModel } from './vas-job-action-email-form-step.model';
|
|
4
|
+
import { VasJobActionInstructionStepModel } from './vas-job-action-instruction-step.model';
|
|
5
|
+
import { VasJobActionNotePromptStepModel } from './vas-job-action-note-prompt-step.model';
|
|
6
|
+
import { VasJobActionSetDatetimeStepModel } from './vas-job-action-set-datetime-step.model';
|
|
7
|
+
import { VasJobActionSetJobStatusStepModel } from './vas-job-action-set-job-status-step.model';
|
|
8
|
+
import { VasJobActionSetValueStepModel } from './vas-job-action-set-value-step.model';
|
|
9
|
+
import { VasJobActionWebhookStepModel } from './vas-job-action-webhook-step.model';
|
|
10
|
+
export declare const stepModelFactory: <D extends VasJobActionStepDto>(dto: Partial<D>) => VasJobActionControlsStepModel | VasJobActionEmailFormStepModel | VasJobActionInstructionStepModel | VasJobActionNotePromptStepModel | VasJobActionSetDatetimeStepModel | VasJobActionSetJobStatusStepModel | VasJobActionSetValueStepModel | VasJobActionWebhookStepModel;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VasJobActionControlsStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionControlsStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionControlsStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'controls';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
controlNames: Array<string>;
|
|
19
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'controls', stage: VasJobActionStepStage, controlNames: Array<string>);
|
|
20
|
+
/**
|
|
21
|
+
* @return {VasJobActionControlsStepModel}
|
|
22
|
+
*/
|
|
23
|
+
static empty(): VasJobActionControlsStepModel;
|
|
24
|
+
/**
|
|
25
|
+
* @param {VasJobActionControlsStepDto} dto
|
|
26
|
+
* @return {VasJobActionControlsStepModel}
|
|
27
|
+
*/
|
|
28
|
+
static fromDto(dto: Partial<VasJobActionControlsStepDto>): VasJobActionControlsStepModel;
|
|
29
|
+
/**
|
|
30
|
+
* @return {VasJobActionControlsStepDto}
|
|
31
|
+
*/
|
|
32
|
+
toDto(): VasJobActionControlsStepDto;
|
|
33
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { VasJobActionEmailFormStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionEmailFormStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionEmailFormStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'email-form';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
params: {
|
|
19
|
+
$recipients: Array<string>;
|
|
20
|
+
$subject: string;
|
|
21
|
+
$body: Array<string> | string;
|
|
22
|
+
};
|
|
23
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'email-form', stage: VasJobActionStepStage, params: {
|
|
24
|
+
$recipients: Array<string>;
|
|
25
|
+
$subject: string;
|
|
26
|
+
$body: Array<string> | string;
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* @return {VasJobActionEmailFormStepModel}
|
|
30
|
+
*/
|
|
31
|
+
static empty(): VasJobActionEmailFormStepModel;
|
|
32
|
+
/**
|
|
33
|
+
* @param {VasJobActionEmailFormStepDto} dto
|
|
34
|
+
* @return {VasJobActionEmailFormStepModel}
|
|
35
|
+
*/
|
|
36
|
+
static fromDto(dto: Partial<VasJobActionEmailFormStepDto>): VasJobActionEmailFormStepModel;
|
|
37
|
+
/**
|
|
38
|
+
* @return {VasJobActionEmailFormStepDto}
|
|
39
|
+
*/
|
|
40
|
+
toDto(): VasJobActionEmailFormStepDto;
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VasJobActionInstructionStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionInstructionStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionInstructionStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'instruction';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
instructionProviderId: string;
|
|
19
|
+
linkControl: string;
|
|
20
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'instruction', stage: VasJobActionStepStage, instructionProviderId: string, linkControl: string);
|
|
21
|
+
/**
|
|
22
|
+
* @return {VasJobActionInstructionStepModel}
|
|
23
|
+
*/
|
|
24
|
+
static empty(): VasJobActionInstructionStepModel;
|
|
25
|
+
/**
|
|
26
|
+
* @param {VasJobActionInstructionStepDto} dto
|
|
27
|
+
* @return {VasJobActionInstructionStepModel}
|
|
28
|
+
*/
|
|
29
|
+
static fromDto(dto: Partial<VasJobActionInstructionStepDto>): VasJobActionInstructionStepModel;
|
|
30
|
+
/**
|
|
31
|
+
* @return {VasJobActionInstructionStepDto}
|
|
32
|
+
*/
|
|
33
|
+
toDto(): VasJobActionInstructionStepDto;
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { VasJobActionNotePromptStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionNotePromptStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionNotePromptStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'note-prompt';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'note-prompt', stage: VasJobActionStepStage);
|
|
19
|
+
/**
|
|
20
|
+
* @return {VasJobActionNotePromptStepModel}
|
|
21
|
+
*/
|
|
22
|
+
static empty(): VasJobActionNotePromptStepModel;
|
|
23
|
+
/**
|
|
24
|
+
* @param {VasJobActionNotePromptStepDto} dto
|
|
25
|
+
* @return {VasJobActionNotePromptStepModel}
|
|
26
|
+
*/
|
|
27
|
+
static fromDto(dto: Partial<VasJobActionNotePromptStepDto>): VasJobActionNotePromptStepModel;
|
|
28
|
+
/**
|
|
29
|
+
* @return {VasJobActionNotePromptStepDto}
|
|
30
|
+
*/
|
|
31
|
+
toDto(): VasJobActionNotePromptStepDto;
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VasJobActionSetDatetimeStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionSetDatetimeStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionSetDatetimeStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'set-datetime';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
value: string;
|
|
19
|
+
controlName: string;
|
|
20
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'set-datetime', stage: VasJobActionStepStage, value: string, controlName: string);
|
|
21
|
+
/**
|
|
22
|
+
* @return {VasJobActionSetDatetimeStepModel}
|
|
23
|
+
*/
|
|
24
|
+
static empty(): VasJobActionSetDatetimeStepModel;
|
|
25
|
+
/**
|
|
26
|
+
* @param {VasJobActionSetDatetimeStepDto} dto
|
|
27
|
+
* @return {VasJobActionSetDatetimeStepModel}
|
|
28
|
+
*/
|
|
29
|
+
static fromDto(dto: Partial<VasJobActionSetDatetimeStepDto>): VasJobActionSetDatetimeStepModel;
|
|
30
|
+
/**
|
|
31
|
+
* @return {VasJobActionSetDatetimeStepDto}
|
|
32
|
+
*/
|
|
33
|
+
toDto(): VasJobActionSetDatetimeStepDto;
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VasJobActionSetJobStatusStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionSetJobStatusStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionSetJobStatusStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'set-job-status';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
value: string;
|
|
19
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'set-job-status', stage: VasJobActionStepStage, value: string);
|
|
20
|
+
/**
|
|
21
|
+
* @return {VasJobActionSetJobStatusStepModel}
|
|
22
|
+
*/
|
|
23
|
+
static empty(): VasJobActionSetJobStatusStepModel;
|
|
24
|
+
/**
|
|
25
|
+
* @param {VasJobActionSetJobStatusStepDto} dto
|
|
26
|
+
* @return {VasJobActionSetJobStatusStepModel}
|
|
27
|
+
*/
|
|
28
|
+
static fromDto(dto: Partial<VasJobActionSetJobStatusStepDto>): VasJobActionSetJobStatusStepModel;
|
|
29
|
+
/**
|
|
30
|
+
* @return {VasJobActionSetJobStatusStepDto}
|
|
31
|
+
*/
|
|
32
|
+
toDto(): VasJobActionSetJobStatusStepDto;
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VasJobActionSetValueStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
2
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionSetValueStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionSetValueStepModel extends VasJobActionStepModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'set-value';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
value: string;
|
|
19
|
+
controlName: string;
|
|
20
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'set-value', stage: VasJobActionStepStage, value: string, controlName: string);
|
|
21
|
+
/**
|
|
22
|
+
* @return {VasJobActionSetValueStepModel}
|
|
23
|
+
*/
|
|
24
|
+
static empty(): VasJobActionSetValueStepModel;
|
|
25
|
+
/**
|
|
26
|
+
* @param {VasJobActionSetValueStepDto} dto
|
|
27
|
+
* @return {VasJobActionSetValueStepModel}
|
|
28
|
+
*/
|
|
29
|
+
static fromDto(dto: Partial<VasJobActionSetValueStepDto>): VasJobActionSetValueStepModel;
|
|
30
|
+
/**
|
|
31
|
+
* @return {VasJobActionSetValueStepDto}
|
|
32
|
+
*/
|
|
33
|
+
toDto(): VasJobActionSetValueStepDto;
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VasBaseModel } from './vas-base.model';
|
|
2
|
+
import { VasJobActionStepStage, VasJobActionStepDto } from './vas-job-action.dto';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionBaseStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class VasJobActionStepModel extends VasBaseModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: VasJobActionStepDto['type'];
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: VasJobActionStepDto['type'], stage: VasJobActionStepStage);
|
|
19
|
+
abstract toDto(): VasJobActionStepDto;
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VasBaseModel } from './vas-base.model';
|
|
2
|
+
import { VasJobActionWebhookStepDto, VasJobActionStepStage } from './vas-job-action.dto';
|
|
3
|
+
/**
|
|
4
|
+
* VasJobActionWebhookStepModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasJobActionWebhookStepModel extends VasBaseModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
type: 'webhook';
|
|
17
|
+
stage: VasJobActionStepStage;
|
|
18
|
+
url: string;
|
|
19
|
+
params?: Record<string, any> | undefined;
|
|
20
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, type: 'webhook', stage: VasJobActionStepStage, url: string, params?: Record<string, any> | undefined);
|
|
21
|
+
/**
|
|
22
|
+
* @return {VasJobActionWebhookStepModel}
|
|
23
|
+
*/
|
|
24
|
+
static empty(): VasJobActionWebhookStepModel;
|
|
25
|
+
/**
|
|
26
|
+
* @param {VasJobActionWebhookStepDto} dto
|
|
27
|
+
* @return {VasJobActionWebhookStepModel}
|
|
28
|
+
*/
|
|
29
|
+
static fromDto(dto: Partial<VasJobActionWebhookStepDto>): VasJobActionWebhookStepModel;
|
|
30
|
+
/**
|
|
31
|
+
* @return {VasJobActionWebhookStepDto}
|
|
32
|
+
*/
|
|
33
|
+
toDto(): VasJobActionWebhookStepDto;
|
|
34
|
+
}
|
|
@@ -37,7 +37,7 @@ export interface VasJobActionControlsStepDto extends VasJobActionStepDto {
|
|
|
37
37
|
type: 'controls';
|
|
38
38
|
controlNames: Array<string>;
|
|
39
39
|
}
|
|
40
|
-
export declare const isJobControlsStep: (step:
|
|
40
|
+
export declare const isJobControlsStep: (step: any) => step is VasJobActionControlsStepDto;
|
|
41
41
|
/**
|
|
42
42
|
* Email form step allow us to present the email form with some values already
|
|
43
43
|
* set
|
|
@@ -50,7 +50,7 @@ export interface VasJobActionEmailFormStepDto extends VasJobActionStepDto {
|
|
|
50
50
|
$body: Array<string> | string;
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
export declare const isJobEmailFormStep: (step:
|
|
53
|
+
export declare const isJobEmailFormStep: (step: any) => step is VasJobActionEmailFormStepDto;
|
|
54
54
|
/**
|
|
55
55
|
* This step is designed to allow us to add an action button that will be
|
|
56
56
|
* displayed on the instruction. If the user invokes the action, a form will be
|
|
@@ -61,13 +61,14 @@ export interface VasJobActionInstructionStepDto extends VasJobActionStepDto {
|
|
|
61
61
|
instructionProviderId: string;
|
|
62
62
|
linkControl: string;
|
|
63
63
|
}
|
|
64
|
+
export declare const isJobInstructionStep: (step: any) => step is VasJobActionInstructionStepDto;
|
|
64
65
|
/**
|
|
65
66
|
* NotePrompt step allows us to prompt the user for a note
|
|
66
67
|
*/
|
|
67
68
|
export interface VasJobActionNotePromptStepDto extends VasJobActionStepDto {
|
|
68
69
|
type: 'note-prompt';
|
|
69
70
|
}
|
|
70
|
-
export declare const isJobNotePromptStep: (step:
|
|
71
|
+
export declare const isJobNotePromptStep: (step: any) => step is VasJobActionNotePromptStepDto;
|
|
71
72
|
/**
|
|
72
73
|
* SetDatetime step allow us set the value of a datetime control
|
|
73
74
|
*/
|
|
@@ -76,15 +77,15 @@ export interface VasJobActionSetDatetimeStepDto extends VasJobActionStepDto {
|
|
|
76
77
|
value: string;
|
|
77
78
|
controlName: string;
|
|
78
79
|
}
|
|
79
|
-
export declare const isJobSetDatetimeStep: (step:
|
|
80
|
+
export declare const isJobSetDatetimeStep: (step: any) => step is VasJobActionSetDatetimeStepDto;
|
|
80
81
|
/**
|
|
81
|
-
* SetJobStatus step allow us set the job status to some value
|
|
82
|
-
*/
|
|
82
|
+
* SetJobStatus step allow us set the job status to some value
|
|
83
|
+
*/
|
|
83
84
|
export interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {
|
|
84
85
|
type: 'set-job-status';
|
|
85
86
|
value: string;
|
|
86
87
|
}
|
|
87
|
-
export declare const isJobSetJobStatusStep: (step:
|
|
88
|
+
export declare const isJobSetJobStatusStep: (step: any) => step is VasJobActionSetJobStatusStepDto;
|
|
88
89
|
/**
|
|
89
90
|
* SetValue step allow us set the value of any control with a hardcoded value
|
|
90
91
|
*/
|
|
@@ -93,7 +94,7 @@ export interface VasJobActionSetValueStepDto extends VasJobActionStepDto {
|
|
|
93
94
|
value: string;
|
|
94
95
|
controlName: string;
|
|
95
96
|
}
|
|
96
|
-
export declare const isJobSetValueStep: (step:
|
|
97
|
+
export declare const isJobSetValueStep: (step: any) => step is VasJobActionSetValueStepDto;
|
|
97
98
|
/**
|
|
98
99
|
* Webhook steps allow us to send the job along with some configuration
|
|
99
100
|
* parameters to some backend automation
|
|
@@ -103,4 +104,4 @@ export interface VasJobActionWebhookStepDto extends VasJobActionStepDto {
|
|
|
103
104
|
url: string;
|
|
104
105
|
params?: Record<string, any>;
|
|
105
106
|
}
|
|
106
|
-
export declare const isJobWebhookStep: (step:
|
|
107
|
+
export declare const isJobWebhookStep: (step: any) => step is VasJobActionWebhookStepDto;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { VasBaseModel } from './vas-base.model';
|
|
2
|
+
import { VasJobActionDto } from './vas-job-action.dto';
|
|
3
|
+
import { VasJobActionStepModel } from './vas-job-action-step.model';
|
|
4
|
+
/**
|
|
5
|
+
* VasJobActionModel
|
|
6
|
+
*/
|
|
7
|
+
export declare class VasJobActionModel extends VasBaseModel {
|
|
8
|
+
id: string;
|
|
9
|
+
created: string;
|
|
10
|
+
serverCreated: string;
|
|
11
|
+
createdBy: string;
|
|
12
|
+
modified: string;
|
|
13
|
+
serverModified: string;
|
|
14
|
+
modifiedBy: string;
|
|
15
|
+
createdByName: string;
|
|
16
|
+
modifiedByName: string;
|
|
17
|
+
title: string;
|
|
18
|
+
steps: Array<VasJobActionStepModel>;
|
|
19
|
+
succeededControl?: string | undefined;
|
|
20
|
+
jobStatuses?: Array<string> | undefined;
|
|
21
|
+
context: 'portal-instruction' | 'job-form';
|
|
22
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, title: string, steps: Array<VasJobActionStepModel>, succeededControl?: string | undefined, jobStatuses?: Array<string> | undefined, context?: 'portal-instruction' | 'job-form');
|
|
23
|
+
/**
|
|
24
|
+
* @return {VasJobActionModel}
|
|
25
|
+
*/
|
|
26
|
+
static empty(): VasJobActionModel;
|
|
27
|
+
/**
|
|
28
|
+
* @param {VasJobActionDto} dto
|
|
29
|
+
* @return {VasJobActionModel}
|
|
30
|
+
*/
|
|
31
|
+
static fromDto(dto: Partial<VasJobActionDto>): VasJobActionModel;
|
|
32
|
+
/**
|
|
33
|
+
* @return {VasJobActionDto}
|
|
34
|
+
*/
|
|
35
|
+
toDto(): VasJobActionDto;
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vas-control-config.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-control-config.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,yBAAyB,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vas-control-config.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-control-config.model.ts"],"names":[],"mappings":"","sourcesContent":["import { VasControlConfigDirection } from './vas-control-config-direction.enum';\n\nexport interface VasControlConfigModel {\n placeholder: string;\n direction: VasControlConfigDirection;\n excludeFromSummary: boolean;\n includeInJobCard: boolean;\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { VasControlConfigModel } from './vas-control-config.model';
|
|
2
|
-
export interface VasSelectControlConfigSelectOptionModel {
|
|
3
|
-
value: string;
|
|
4
|
-
title: string;
|
|
5
|
-
score: number | undefined;
|
|
6
|
-
}
|
|
7
|
-
export interface VasSelectControlConfigModel extends VasControlConfigModel {
|
|
8
|
-
options: Array<VasSelectControlConfigSelectOptionModel>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=vas-select-control-config.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vas-select-control-config.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-select-control-config.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA4B,SAAQ,qBAAqB;IACxE,OAAO,EAAE,KAAK,CAAC,uCAAuC,CAAC,CAAA;CACxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vas-select-control-config.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-select-control-config.model.ts"],"names":[],"mappings":"","sourcesContent":["import { VasControlConfigModel } from './vas-control-config.model';\n\nexport interface VasSelectControlConfigSelectOptionModel {\n value: string;\n title: string;\n score: number | undefined;\n}\n\nexport interface VasSelectControlConfigModel extends VasControlConfigModel {\n options: Array<VasSelectControlConfigSelectOptionModel>\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VasControlConfigModel } from './vas-control-config.model';
|
|
2
|
-
export interface VasSelectControlConfigSelectOptionModel {
|
|
3
|
-
value: string;
|
|
4
|
-
title: string;
|
|
5
|
-
score: number | undefined;
|
|
6
|
-
}
|
|
7
|
-
export interface VasSelectControlConfigModel extends VasControlConfigModel {
|
|
8
|
-
options: Array<VasSelectControlConfigSelectOptionModel>;
|
|
9
|
-
}
|