@ampsec/platform-client 87.7.1 → 87.7.2

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.
@@ -21,10 +21,28 @@ export declare const _EngagementMappingDto: z.ZodObject<{
21
21
  }>;
22
22
  flowSpec: z.ZodObject<{
23
23
  id: z.ZodString;
24
+ skipWaitingPeriod: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
25
+ enabled: z.ZodOptional<z.ZodBoolean>;
26
+ ignoreBusinessHours: z.ZodOptional<z.ZodBoolean>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ enabled?: boolean | undefined;
29
+ ignoreBusinessHours?: boolean | undefined;
30
+ }, {
31
+ enabled?: boolean | undefined;
32
+ ignoreBusinessHours?: boolean | undefined;
33
+ }>]>>;
24
34
  }, "strip", z.ZodTypeAny, {
25
35
  id: string;
36
+ skipWaitingPeriod?: boolean | {
37
+ enabled?: boolean | undefined;
38
+ ignoreBusinessHours?: boolean | undefined;
39
+ } | undefined;
26
40
  }, {
27
41
  id: string;
42
+ skipWaitingPeriod?: boolean | {
43
+ enabled?: boolean | undefined;
44
+ ignoreBusinessHours?: boolean | undefined;
45
+ } | undefined;
28
46
  }>;
29
47
  engagementConfig: z.ZodOptional<z.ZodObject<{
30
48
  consolidation: z.ZodOptional<z.ZodBoolean>;
@@ -42,6 +60,10 @@ export declare const _EngagementMappingDto: z.ZodObject<{
42
60
  }, "strip", z.ZodTypeAny, {
43
61
  flowSpec: {
44
62
  id: string;
63
+ skipWaitingPeriod?: boolean | {
64
+ enabled?: boolean | undefined;
65
+ ignoreBusinessHours?: boolean | undefined;
66
+ } | undefined;
45
67
  };
46
68
  finding: {
47
69
  id: string;
@@ -58,6 +80,10 @@ export declare const _EngagementMappingDto: z.ZodObject<{
58
80
  }, {
59
81
  flowSpec: {
60
82
  id: string;
83
+ skipWaitingPeriod?: boolean | {
84
+ enabled?: boolean | undefined;
85
+ ignoreBusinessHours?: boolean | undefined;
86
+ } | undefined;
61
87
  };
62
88
  finding: {
63
89
  id: string;
@@ -2,6 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports._EngagementMappingDto = void 0;
4
4
  const zod_1 = require("zod");
5
+ const _SkipWaitingPeriodOnEngagementMapping = zod_1.z.union([
6
+ zod_1.z.boolean(),
7
+ zod_1.z.object({
8
+ enabled: zod_1.z.boolean().optional(),
9
+ ignoreBusinessHours: zod_1.z.boolean().optional(),
10
+ }),
11
+ ]);
5
12
  exports._EngagementMappingDto = zod_1.z.object({
6
13
  finding: zod_1.z.object({
7
14
  id: zod_1.z.string(),
@@ -12,6 +19,7 @@ exports._EngagementMappingDto = zod_1.z.object({
12
19
  }),
13
20
  flowSpec: zod_1.z.object({
14
21
  id: zod_1.z.string(),
22
+ skipWaitingPeriod: _SkipWaitingPeriodOnEngagementMapping.optional(),
15
23
  }),
16
24
  engagementConfig: zod_1.z
17
25
  .object({
@@ -1 +1 @@
1
- {"version":3,"file":"engagementMappings.dto.js","sourceRoot":"","sources":["../../../src/dto/engagementMappings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;KAClB,CAAC;IACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;KACf,CAAC;IACF,gBAAgB,EAAE,OAAC;SAChB,MAAM,CAAC;QACN,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACrC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AAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
@@ -21,10 +21,28 @@ export declare const _PlatformEngagementMappingDto: z.ZodObject<z.objectUtil.ext
21
21
  }>;
22
22
  flowSpec: z.ZodObject<{
23
23
  id: z.ZodString;
24
+ skipWaitingPeriod: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
25
+ enabled: z.ZodOptional<z.ZodBoolean>;
26
+ ignoreBusinessHours: z.ZodOptional<z.ZodBoolean>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ enabled?: boolean | undefined;
29
+ ignoreBusinessHours?: boolean | undefined;
30
+ }, {
31
+ enabled?: boolean | undefined;
32
+ ignoreBusinessHours?: boolean | undefined;
33
+ }>]>>;
24
34
  }, "strip", z.ZodTypeAny, {
25
35
  id: string;
36
+ skipWaitingPeriod?: boolean | {
37
+ enabled?: boolean | undefined;
38
+ ignoreBusinessHours?: boolean | undefined;
39
+ } | undefined;
26
40
  }, {
27
41
  id: string;
42
+ skipWaitingPeriod?: boolean | {
43
+ enabled?: boolean | undefined;
44
+ ignoreBusinessHours?: boolean | undefined;
45
+ } | undefined;
28
46
  }>;
29
47
  engagementConfig: z.ZodOptional<z.ZodObject<{
30
48
  consolidation: z.ZodOptional<z.ZodBoolean>;
@@ -45,6 +63,10 @@ export declare const _PlatformEngagementMappingDto: z.ZodObject<z.objectUtil.ext
45
63
  tid: string;
46
64
  flowSpec: {
47
65
  id: string;
66
+ skipWaitingPeriod?: boolean | {
67
+ enabled?: boolean | undefined;
68
+ ignoreBusinessHours?: boolean | undefined;
69
+ } | undefined;
48
70
  };
49
71
  finding: {
50
72
  id: string;
@@ -62,6 +84,10 @@ export declare const _PlatformEngagementMappingDto: z.ZodObject<z.objectUtil.ext
62
84
  tid: string;
63
85
  flowSpec: {
64
86
  id: string;
87
+ skipWaitingPeriod?: boolean | {
88
+ enabled?: boolean | undefined;
89
+ ignoreBusinessHours?: boolean | undefined;
90
+ } | undefined;
65
91
  };
66
92
  finding: {
67
93
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "87.7.1",
3
+ "version": "87.7.2",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,5 +1,13 @@
1
1
  import {z} from 'zod';
2
2
 
3
+ const _SkipWaitingPeriodOnEngagementMapping = z.union([
4
+ z.boolean(),
5
+ z.object({
6
+ enabled: z.boolean().optional(),
7
+ ignoreBusinessHours: z.boolean().optional(),
8
+ }),
9
+ ]);
10
+
3
11
  export const _EngagementMappingDto = z.object({
4
12
  finding: z.object({
5
13
  id: z.string(),
@@ -10,6 +18,7 @@ export const _EngagementMappingDto = z.object({
10
18
  }),
11
19
  flowSpec: z.object({
12
20
  id: z.string(),
21
+ skipWaitingPeriod: _SkipWaitingPeriodOnEngagementMapping.optional(),
13
22
  }),
14
23
  engagementConfig: z
15
24
  .object({