@ampsec/platform-client 34.0.0 → 35.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/build/src/dto/enums/index.d.ts +2 -1
- package/build/src/dto/enums/index.js +2 -1
- package/build/src/dto/enums/index.js.map +1 -1
- package/build/src/dto/enums/{notification.type.d.ts → notification.strategy.d.ts} +1 -1
- package/build/src/dto/enums/notification.strategy.js +11 -0
- package/build/src/dto/enums/notification.strategy.js.map +1 -0
- package/build/src/dto/enums/{workflowStep.type.d.ts → workflowStep.kind.d.ts} +1 -1
- package/build/src/dto/enums/workflowStep.kind.js +10 -0
- package/build/src/dto/enums/workflowStep.kind.js.map +1 -0
- package/build/src/dto/enums/{workflowTrigger.type.d.ts → workflowTrigger.kind.d.ts} +1 -1
- package/build/src/dto/enums/workflowTrigger.kind.js +11 -0
- package/build/src/dto/enums/workflowTrigger.kind.js.map +1 -0
- package/build/src/dto/notification.dto.d.ts +2 -2
- package/build/src/dto/workflow.dto.d.ts +4 -4
- package/package.json +1 -1
- package/src/dto/enums/index.ts +2 -1
- package/src/dto/enums/{notification.type.ts → notification.strategy.ts} +1 -1
- package/src/dto/enums/{workflowStep.type.ts → workflowStep.kind.ts} +1 -1
- package/src/dto/enums/{workflowTrigger.type.ts → workflowTrigger.kind.ts} +1 -1
- package/src/dto/notification.dto.ts +2 -2
- package/src/dto/workflow.dto.ts +4 -4
- package/build/src/dto/enums/notification.type.js +0 -11
- package/build/src/dto/enums/notification.type.js.map +0 -1
- package/build/src/dto/enums/workflowStep.type.js +0 -10
- package/build/src/dto/enums/workflowStep.type.js.map +0 -1
- package/build/src/dto/enums/workflowTrigger.type.js +0 -11
- package/build/src/dto/enums/workflowTrigger.type.js.map +0 -1
|
@@ -10,4 +10,5 @@ export * from './jobExecution.status';
|
|
|
10
10
|
export * from './notification.status';
|
|
11
11
|
export * from './riskContributor.type';
|
|
12
12
|
export * from './saasComponentKind';
|
|
13
|
-
export * from './workflowStep.
|
|
13
|
+
export * from './workflowStep.kind';
|
|
14
|
+
export * from './notification.strategy';
|
|
@@ -26,5 +26,6 @@ __exportStar(require("./jobExecution.status"), exports);
|
|
|
26
26
|
__exportStar(require("./notification.status"), exports);
|
|
27
27
|
__exportStar(require("./riskContributor.type"), exports);
|
|
28
28
|
__exportStar(require("./saasComponentKind"), exports);
|
|
29
|
-
__exportStar(require("./workflowStep.
|
|
29
|
+
__exportStar(require("./workflowStep.kind"), exports);
|
|
30
|
+
__exportStar(require("./notification.strategy"), exports);
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationStrategy = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
var NotificationStrategy;
|
|
6
|
+
(function (NotificationStrategy) {
|
|
7
|
+
NotificationStrategy["LLM"] = "LLM";
|
|
8
|
+
NotificationStrategy["RAW"] = "RAW";
|
|
9
|
+
NotificationStrategy["TEMPLATE"] = "TEMPLATE";
|
|
10
|
+
})(NotificationStrategy || (exports.NotificationStrategy = NotificationStrategy = {}));
|
|
11
|
+
//# sourceMappingURL=notification.strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.strategy.js","sourceRoot":"","sources":["../../../../src/dto/enums/notification.strategy.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,6CAAqB,CAAA;AACvB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowStepKind = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
var WorkflowStepKind;
|
|
6
|
+
(function (WorkflowStepKind) {
|
|
7
|
+
WorkflowStepKind["NOTIFICATION"] = "NOTIFICATION";
|
|
8
|
+
WorkflowStepKind["PAUSE"] = "PAUSE";
|
|
9
|
+
})(WorkflowStepKind || (exports.WorkflowStepKind = WorkflowStepKind = {}));
|
|
10
|
+
//# sourceMappingURL=workflowStep.kind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowStep.kind.js","sourceRoot":"","sources":["../../../../src/dto/enums/workflowStep.kind.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowTriggerKind = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
var WorkflowTriggerKind;
|
|
6
|
+
(function (WorkflowTriggerKind) {
|
|
7
|
+
WorkflowTriggerKind["FINDING"] = "FINDING";
|
|
8
|
+
WorkflowTriggerKind["USER"] = "USER";
|
|
9
|
+
WorkflowTriggerKind["SAAS_COMPONENT"] = "SAAS_COMPONENT";
|
|
10
|
+
})(WorkflowTriggerKind || (exports.WorkflowTriggerKind = WorkflowTriggerKind = {}));
|
|
11
|
+
//# sourceMappingURL=workflowTrigger.kind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflowTrigger.kind.js","sourceRoot":"","sources":["../../../../src/dto/enums/workflowTrigger.kind.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,wDAAiC,CAAA;AACnC,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseDto, BaseUpsertDto } from './base.dto';
|
|
2
2
|
import { NotificationStatus } from './enums';
|
|
3
|
-
import {
|
|
3
|
+
import { NotificationStrategy } from './enums/notification.strategy';
|
|
4
4
|
import { NotificationStepData, TrainingNotificationStepData } from './workflow.dto';
|
|
5
5
|
export type NotificationSchema = {
|
|
6
|
-
|
|
6
|
+
strategy: NotificationStrategy;
|
|
7
7
|
};
|
|
8
8
|
export type TemplateNotificationSchema = NotificationSchema & {
|
|
9
9
|
/** ID of the template to be used for the notification */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseDto } from './base.dto';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { WorkflowStepKind } from './enums/workflowStep.kind';
|
|
3
|
+
import { WorkflowTriggerKind } from './enums/workflowTrigger.kind';
|
|
4
4
|
import { NotificationSchema, TemplateNotificationSchema, RawNotificationSchema } from './notification.dto';
|
|
5
5
|
export type NotificationStepData = {
|
|
6
6
|
/** Name of the device to which the notification of finding applies */
|
|
@@ -24,7 +24,7 @@ export type PauseStepData = {
|
|
|
24
24
|
};
|
|
25
25
|
export type WorkflowStep = {
|
|
26
26
|
/** Type of the notification step, either NOTIFICATION or PAUSE */
|
|
27
|
-
|
|
27
|
+
kind: WorkflowStepKind;
|
|
28
28
|
/** Schema for the notification step */
|
|
29
29
|
schema?: NotificationSchema | TemplateNotificationSchema | RawNotificationSchema;
|
|
30
30
|
/** Data associated with the notification step */
|
|
@@ -46,7 +46,7 @@ export type WorkflowTriggerRule = {
|
|
|
46
46
|
};
|
|
47
47
|
export type WorkflowTrigger = {
|
|
48
48
|
/** Type of the trigger */
|
|
49
|
-
|
|
49
|
+
kind: WorkflowTriggerKind;
|
|
50
50
|
/** Rule to which the applicable entity type must conform to trigger the workflow */
|
|
51
51
|
rule: unknown;
|
|
52
52
|
};
|
package/package.json
CHANGED
package/src/dto/enums/index.ts
CHANGED
|
@@ -10,4 +10,5 @@ export * from './jobExecution.status';
|
|
|
10
10
|
export * from './notification.status';
|
|
11
11
|
export * from './riskContributor.type';
|
|
12
12
|
export * from './saasComponentKind';
|
|
13
|
-
export * from './workflowStep.
|
|
13
|
+
export * from './workflowStep.kind';
|
|
14
|
+
export * from './notification.strategy';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {BaseDto, BaseUpsertDto} from './base.dto';
|
|
2
2
|
import {NotificationStatus} from './enums';
|
|
3
|
-
import {
|
|
3
|
+
import {NotificationStrategy} from './enums/notification.strategy';
|
|
4
4
|
import {NotificationStepData, TrainingNotificationStepData} from './workflow.dto';
|
|
5
5
|
|
|
6
6
|
export type NotificationSchema = {
|
|
7
|
-
|
|
7
|
+
strategy: NotificationStrategy;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export type TemplateNotificationSchema = NotificationSchema & {
|
package/src/dto/workflow.dto.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {BaseDto} from './base.dto';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import {WorkflowStepKind} from './enums/workflowStep.kind';
|
|
3
|
+
import {WorkflowTriggerKind} from './enums/workflowTrigger.kind';
|
|
4
4
|
import {NotificationSchema, TemplateNotificationSchema, RawNotificationSchema} from './notification.dto';
|
|
5
5
|
|
|
6
6
|
export type NotificationStepData = {
|
|
@@ -28,7 +28,7 @@ export type PauseStepData = {
|
|
|
28
28
|
|
|
29
29
|
export type WorkflowStep = {
|
|
30
30
|
/** Type of the notification step, either NOTIFICATION or PAUSE */
|
|
31
|
-
|
|
31
|
+
kind: WorkflowStepKind;
|
|
32
32
|
/** Schema for the notification step */
|
|
33
33
|
schema?: NotificationSchema | TemplateNotificationSchema | RawNotificationSchema;
|
|
34
34
|
/** Data associated with the notification step */
|
|
@@ -59,7 +59,7 @@ export type WorkflowTriggerRule = {
|
|
|
59
59
|
|
|
60
60
|
export type WorkflowTrigger = {
|
|
61
61
|
/** Type of the trigger */
|
|
62
|
-
|
|
62
|
+
kind: WorkflowTriggerKind;
|
|
63
63
|
/** Rule to which the applicable entity type must conform to trigger the workflow */
|
|
64
64
|
rule: unknown;
|
|
65
65
|
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationType = void 0;
|
|
4
|
-
/* eslint-disable no-unused-vars */
|
|
5
|
-
var NotificationType;
|
|
6
|
-
(function (NotificationType) {
|
|
7
|
-
NotificationType["LLM"] = "LLM";
|
|
8
|
-
NotificationType["RAW"] = "RAW";
|
|
9
|
-
NotificationType["TEMPLATE"] = "TEMPLATE";
|
|
10
|
-
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
11
|
-
//# sourceMappingURL=notification.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notification.type.js","sourceRoot":"","sources":["../../../../src/dto/enums/notification.type.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowStepType = void 0;
|
|
4
|
-
/* eslint-disable no-unused-vars */
|
|
5
|
-
var WorkflowStepType;
|
|
6
|
-
(function (WorkflowStepType) {
|
|
7
|
-
WorkflowStepType["NOTIFICATION"] = "NOTIFICATION";
|
|
8
|
-
WorkflowStepType["PAUSE"] = "PAUSE";
|
|
9
|
-
})(WorkflowStepType || (exports.WorkflowStepType = WorkflowStepType = {}));
|
|
10
|
-
//# sourceMappingURL=workflowStep.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflowStep.type.js","sourceRoot":"","sources":["../../../../src/dto/enums/workflowStep.type.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;AACjB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowTriggerType = void 0;
|
|
4
|
-
/* eslint-disable no-unused-vars */
|
|
5
|
-
var WorkflowTriggerType;
|
|
6
|
-
(function (WorkflowTriggerType) {
|
|
7
|
-
WorkflowTriggerType["FINDING"] = "FINDING";
|
|
8
|
-
WorkflowTriggerType["USER"] = "USER";
|
|
9
|
-
WorkflowTriggerType["SAAS_COMPONENT"] = "SAAS_COMPONENT";
|
|
10
|
-
})(WorkflowTriggerType || (exports.WorkflowTriggerType = WorkflowTriggerType = {}));
|
|
11
|
-
//# sourceMappingURL=workflowTrigger.type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflowTrigger.type.js","sourceRoot":"","sources":["../../../../src/dto/enums/workflowTrigger.type.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,wDAAiC,CAAA;AACnC,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|