@ampsec/platform-client 84.26.0 → 84.28.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/findingsTags.dto.d.ts +90 -0
- package/build/src/dto/findingsTags.dto.js +33 -0
- package/build/src/dto/findingsTags.dto.js.map +1 -0
- package/build/src/dto/index.d.ts +2 -0
- package/build/src/dto/index.js +2 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/tagSpecs.dto.d.ts +174 -0
- package/build/src/dto/tagSpecs.dto.js +48 -0
- package/build/src/dto/tagSpecs.dto.js.map +1 -0
- package/build/src/dto/trainings.dto.d.ts +29 -0
- package/build/src/dto/trainings.dto.js +11 -0
- package/build/src/dto/trainings.dto.js.map +1 -0
- package/build/src/services/AmpApi.d.ts +2 -0
- package/build/src/services/AmpApi.js +2 -0
- package/build/src/services/AmpApi.js.map +1 -1
- package/build/src/services/AmpSdk.d.ts +4 -0
- package/build/src/services/AmpSdk.js +4 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/constants.d.ts +3 -0
- package/build/src/services/constants.js +3 -0
- package/build/src/services/constants.js.map +1 -1
- package/build/src/services/findingsTags.service.d.ts +11 -0
- package/build/src/services/findingsTags.service.js +67 -0
- package/build/src/services/findingsTags.service.js.map +1 -0
- package/build/src/services/tagSpecs.service.d.ts +7 -0
- package/build/src/services/tagSpecs.service.js +35 -0
- package/build/src/services/tagSpecs.service.js.map +1 -0
- package/build/src/services/trainings.service.d.ts +23 -0
- package/build/src/services/trainings.service.js +41 -0
- package/build/src/services/trainings.service.js.map +1 -0
- package/build/src/settings.d.ts +1 -0
- package/build/src/settings.js +1 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/findingsTags.dto.ts +35 -0
- package/src/dto/index.ts +2 -0
- package/src/dto/tagSpecs.dto.ts +63 -0
- package/src/dto/trainings.dto.ts +12 -0
- package/src/services/AmpApi.ts +3 -0
- package/src/services/AmpSdk.ts +6 -0
- package/src/services/constants.ts +3 -0
- package/src/services/findingsTags.service.ts +83 -0
- package/src/services/tagSpecs.service.ts +44 -0
- package/src/services/trainings.service.ts +47 -0
- package/src/settings.ts +2 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* =====================================
|
|
4
|
+
* Read DTO
|
|
5
|
+
* GET /finding-tags
|
|
6
|
+
* =====================================
|
|
7
|
+
*/
|
|
8
|
+
export declare const _FindingTagDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
/**
|
|
11
|
+
* =====================================
|
|
12
|
+
* Read DTO
|
|
13
|
+
* GET /finding-tags
|
|
14
|
+
* =====================================
|
|
15
|
+
*/
|
|
16
|
+
createdAt: z.ZodString;
|
|
17
|
+
updatedAt: z.ZodString;
|
|
18
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, {
|
|
20
|
+
tid: z.ZodString;
|
|
21
|
+
fid: z.ZodString;
|
|
22
|
+
tsId: z.ZodString;
|
|
23
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24
|
+
}>, "strip", z.ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
tid: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
deletedAt: string | null;
|
|
30
|
+
fid: string;
|
|
31
|
+
tsId: string;
|
|
32
|
+
meta?: Record<string, unknown> | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
id: string;
|
|
35
|
+
tid: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
deletedAt: string | null;
|
|
39
|
+
fid: string;
|
|
40
|
+
tsId: string;
|
|
41
|
+
meta?: Record<string, unknown> | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type FindingTagDto = z.infer<typeof _FindingTagDto>;
|
|
44
|
+
/**
|
|
45
|
+
* =====================================
|
|
46
|
+
* Upsert DTO
|
|
47
|
+
* POST /finding-tags
|
|
48
|
+
* =====================================
|
|
49
|
+
* fid + tsId come from client
|
|
50
|
+
* tid comes from auth
|
|
51
|
+
*/
|
|
52
|
+
export declare const _FindingTagUpsertDto: z.ZodObject<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
/**
|
|
55
|
+
* =====================================
|
|
56
|
+
* Read DTO
|
|
57
|
+
* GET /finding-tags
|
|
58
|
+
* =====================================
|
|
59
|
+
*/
|
|
60
|
+
createdAt: z.ZodString;
|
|
61
|
+
updatedAt: z.ZodString;
|
|
62
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
63
|
+
}, {
|
|
64
|
+
tid: z.ZodString;
|
|
65
|
+
fid: z.ZodString;
|
|
66
|
+
tsId: z.ZodString;
|
|
67
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
|
+
}>, "meta" | "fid" | "tsId">, {
|
|
69
|
+
id: z.ZodOptional<z.ZodString>;
|
|
70
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
71
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
72
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}>, "strip", z.ZodTypeAny, {
|
|
74
|
+
fid: string;
|
|
75
|
+
tsId: string;
|
|
76
|
+
id?: string | undefined;
|
|
77
|
+
createdAt?: string | undefined;
|
|
78
|
+
updatedAt?: string | undefined;
|
|
79
|
+
deletedAt?: string | null | undefined;
|
|
80
|
+
meta?: Record<string, unknown> | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
fid: string;
|
|
83
|
+
tsId: string;
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
createdAt?: string | undefined;
|
|
86
|
+
updatedAt?: string | undefined;
|
|
87
|
+
deletedAt?: string | null | undefined;
|
|
88
|
+
meta?: Record<string, unknown> | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
export type FindingTagUpsertDto = z.infer<typeof _FindingTagUpsertDto>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._FindingTagUpsertDto = exports._FindingTagDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const base_dto_1 = require("./base.dto");
|
|
6
|
+
/**
|
|
7
|
+
* =====================================
|
|
8
|
+
* Read DTO
|
|
9
|
+
* GET /finding-tags
|
|
10
|
+
* =====================================
|
|
11
|
+
*/
|
|
12
|
+
exports._FindingTagDto = base_dto_1._BaseDto.extend({
|
|
13
|
+
tid: zod_1.z.string(), // Tenant ID
|
|
14
|
+
fid: zod_1.z.string(), // Finding ID
|
|
15
|
+
tsId: zod_1.z.string(), // TagSpec ID
|
|
16
|
+
meta: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* =====================================
|
|
20
|
+
* Upsert DTO
|
|
21
|
+
* POST /finding-tags
|
|
22
|
+
* =====================================
|
|
23
|
+
* fid + tsId come from client
|
|
24
|
+
* tid comes from auth
|
|
25
|
+
*/
|
|
26
|
+
exports._FindingTagUpsertDto = exports._FindingTagDto
|
|
27
|
+
.pick({
|
|
28
|
+
fid: true,
|
|
29
|
+
tsId: true,
|
|
30
|
+
meta: true,
|
|
31
|
+
})
|
|
32
|
+
.merge(base_dto_1._BaseUpsertDto);
|
|
33
|
+
//# sourceMappingURL=findingsTags.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findingsTags.dto.js","sourceRoot":"","sources":["../../../src/dto/findingsTags.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAoD;AAEpD;;;;;GAKG;AACU,QAAA,cAAc,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,YAAY;IAC7B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,aAAa;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,aAAa;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAIH;;;;;;;GAOG;AACU,QAAA,oBAAoB,GAAG,sBAAc;KAC/C,IAAI,CAAC;IACJ,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;CACX,CAAC;KACD,KAAK,CAAC,yBAAc,CAAC,CAAC"}
|
package/build/src/dto/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './enums';
|
|
|
19
19
|
export * from './extKeyMap.dto';
|
|
20
20
|
export * from './findings.dto';
|
|
21
21
|
export * from './findingsInsights.dto';
|
|
22
|
+
export * from './findingsTags.dto';
|
|
22
23
|
export * from './flows.dto';
|
|
23
24
|
export * from './jwt';
|
|
24
25
|
export * from './message.dto';
|
|
@@ -32,6 +33,7 @@ export * from './saasAssets.dto';
|
|
|
32
33
|
export * from './saasComponents.dto';
|
|
33
34
|
export * from './saasUsers.dto';
|
|
34
35
|
export * from './ampSetting.dto';
|
|
36
|
+
export * from './tagSpecs.dto';
|
|
35
37
|
export * from './tenants.dto';
|
|
36
38
|
export * from './tenantNotes.dto';
|
|
37
39
|
export * from './tokens.dto';
|
package/build/src/dto/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __exportStar(require("./enums"), exports);
|
|
|
35
35
|
__exportStar(require("./extKeyMap.dto"), exports);
|
|
36
36
|
__exportStar(require("./findings.dto"), exports);
|
|
37
37
|
__exportStar(require("./findingsInsights.dto"), exports);
|
|
38
|
+
__exportStar(require("./findingsTags.dto"), exports);
|
|
38
39
|
__exportStar(require("./flows.dto"), exports);
|
|
39
40
|
__exportStar(require("./jwt"), exports);
|
|
40
41
|
__exportStar(require("./message.dto"), exports);
|
|
@@ -48,6 +49,7 @@ __exportStar(require("./saasAssets.dto"), exports);
|
|
|
48
49
|
__exportStar(require("./saasComponents.dto"), exports);
|
|
49
50
|
__exportStar(require("./saasUsers.dto"), exports);
|
|
50
51
|
__exportStar(require("./ampSetting.dto"), exports);
|
|
52
|
+
__exportStar(require("./tagSpecs.dto"), exports);
|
|
51
53
|
__exportStar(require("./tenants.dto"), exports);
|
|
52
54
|
__exportStar(require("./tenantNotes.dto"), exports);
|
|
53
55
|
__exportStar(require("./tokens.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,wCAAsB;AACtB,2DAAyC;AACzC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,qDAAmC;AACnC,8CAA4B;AAC5B,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,8CAA4B;AAC5B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC;AACtC,sDAAoC;AACpC,iDAA+B;AAC/B,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
3
|
+
/**
|
|
4
|
+
* ------------------------
|
|
5
|
+
* Base TagSpec schema
|
|
6
|
+
* ------------------------
|
|
7
|
+
*/
|
|
8
|
+
export declare const _TagSpecBase: z.ZodObject<{
|
|
9
|
+
/** Tenant ID */
|
|
10
|
+
tid: z.ZodString;
|
|
11
|
+
/** Rule ID */
|
|
12
|
+
rid: z.ZodString;
|
|
13
|
+
/** Display name */
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
/** Optional description */
|
|
16
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
/** Arbitrary configuration */
|
|
18
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
/** Notification enabled */
|
|
20
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name: string;
|
|
23
|
+
tid: string;
|
|
24
|
+
rid: string;
|
|
25
|
+
notify: boolean;
|
|
26
|
+
description?: string | null | undefined;
|
|
27
|
+
config?: any;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
tid: string;
|
|
31
|
+
rid: string;
|
|
32
|
+
description?: string | null | undefined;
|
|
33
|
+
config?: any;
|
|
34
|
+
notify?: boolean | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* ------------------------
|
|
38
|
+
* Upsert DTO
|
|
39
|
+
* ------------------------
|
|
40
|
+
*/
|
|
41
|
+
export declare const _TagSpecUpsertDto: z.ZodObject<{
|
|
42
|
+
/** Tenant ID */
|
|
43
|
+
tid: z.ZodString;
|
|
44
|
+
/** Rule ID */
|
|
45
|
+
rid: z.ZodString;
|
|
46
|
+
/** Display name */
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
/** Optional description */
|
|
49
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
/** Arbitrary configuration */
|
|
51
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
52
|
+
/** Notification enabled */
|
|
53
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
name: string;
|
|
56
|
+
tid: string;
|
|
57
|
+
rid: string;
|
|
58
|
+
notify: boolean;
|
|
59
|
+
description?: string | null | undefined;
|
|
60
|
+
config?: any;
|
|
61
|
+
}, {
|
|
62
|
+
name: string;
|
|
63
|
+
tid: string;
|
|
64
|
+
rid: string;
|
|
65
|
+
description?: string | null | undefined;
|
|
66
|
+
config?: any;
|
|
67
|
+
notify?: boolean | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
export type TagSpecUpsertDto = ChangeAwareUpsertDto & z.infer<typeof _TagSpecUpsertDto>;
|
|
70
|
+
/**
|
|
71
|
+
* ------------------------
|
|
72
|
+
* Read DTO
|
|
73
|
+
* ------------------------
|
|
74
|
+
*/
|
|
75
|
+
export declare const _TagSpecDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
76
|
+
/** Tenant ID */
|
|
77
|
+
tid: z.ZodString;
|
|
78
|
+
/** Rule ID */
|
|
79
|
+
rid: z.ZodString;
|
|
80
|
+
/** Display name */
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
/** Optional description */
|
|
83
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
/** Arbitrary configuration */
|
|
85
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
86
|
+
/** Notification enabled */
|
|
87
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
88
|
+
}, {
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
}>, "strip", z.ZodTypeAny, {
|
|
91
|
+
name: string;
|
|
92
|
+
id: string;
|
|
93
|
+
tid: string;
|
|
94
|
+
rid: string;
|
|
95
|
+
notify: boolean;
|
|
96
|
+
description?: string | null | undefined;
|
|
97
|
+
config?: any;
|
|
98
|
+
}, {
|
|
99
|
+
name: string;
|
|
100
|
+
id: string;
|
|
101
|
+
tid: string;
|
|
102
|
+
rid: string;
|
|
103
|
+
description?: string | null | undefined;
|
|
104
|
+
config?: any;
|
|
105
|
+
notify?: boolean | undefined;
|
|
106
|
+
}>;
|
|
107
|
+
export type TagSpecDto = ChangeAwareDto & z.infer<typeof _TagSpecDto>;
|
|
108
|
+
/**
|
|
109
|
+
* ------------------------
|
|
110
|
+
* Composite DTO
|
|
111
|
+
* /tag-spec/ruleset
|
|
112
|
+
* ------------------------
|
|
113
|
+
*/
|
|
114
|
+
export declare const _TagSpecWithRuleSetDto: z.ZodObject<{
|
|
115
|
+
tagSpec: z.ZodObject<z.objectUtil.extendShape<{
|
|
116
|
+
/** Tenant ID */
|
|
117
|
+
tid: z.ZodString;
|
|
118
|
+
/** Rule ID */
|
|
119
|
+
rid: z.ZodString;
|
|
120
|
+
/** Display name */
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
/** Optional description */
|
|
123
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
/** Arbitrary configuration */
|
|
125
|
+
config: z.ZodOptional<z.ZodAny>;
|
|
126
|
+
/** Notification enabled */
|
|
127
|
+
notify: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
}, {
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
}>, "strip", z.ZodTypeAny, {
|
|
131
|
+
name: string;
|
|
132
|
+
id: string;
|
|
133
|
+
tid: string;
|
|
134
|
+
rid: string;
|
|
135
|
+
notify: boolean;
|
|
136
|
+
description?: string | null | undefined;
|
|
137
|
+
config?: any;
|
|
138
|
+
}, {
|
|
139
|
+
name: string;
|
|
140
|
+
id: string;
|
|
141
|
+
tid: string;
|
|
142
|
+
rid: string;
|
|
143
|
+
description?: string | null | undefined;
|
|
144
|
+
config?: any;
|
|
145
|
+
notify?: boolean | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
ruleSet: z.ZodAny;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
tagSpec: {
|
|
150
|
+
name: string;
|
|
151
|
+
id: string;
|
|
152
|
+
tid: string;
|
|
153
|
+
rid: string;
|
|
154
|
+
notify: boolean;
|
|
155
|
+
description?: string | null | undefined;
|
|
156
|
+
config?: any;
|
|
157
|
+
};
|
|
158
|
+
ruleSet?: any;
|
|
159
|
+
}, {
|
|
160
|
+
tagSpec: {
|
|
161
|
+
name: string;
|
|
162
|
+
id: string;
|
|
163
|
+
tid: string;
|
|
164
|
+
rid: string;
|
|
165
|
+
description?: string | null | undefined;
|
|
166
|
+
config?: any;
|
|
167
|
+
notify?: boolean | undefined;
|
|
168
|
+
};
|
|
169
|
+
ruleSet?: any;
|
|
170
|
+
}>;
|
|
171
|
+
export type TagSpecWithRuleSetDto = {
|
|
172
|
+
tagSpec: TagSpecDto;
|
|
173
|
+
ruleSet: any;
|
|
174
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._TagSpecWithRuleSetDto = exports._TagSpecDto = exports._TagSpecUpsertDto = exports._TagSpecBase = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* ------------------------
|
|
7
|
+
* Base TagSpec schema
|
|
8
|
+
* ------------------------
|
|
9
|
+
*/
|
|
10
|
+
exports._TagSpecBase = zod_1.z.object({
|
|
11
|
+
/** Tenant ID */
|
|
12
|
+
tid: zod_1.z.string(),
|
|
13
|
+
/** Rule ID */
|
|
14
|
+
rid: zod_1.z.string(),
|
|
15
|
+
/** Display name */
|
|
16
|
+
name: zod_1.z.string(),
|
|
17
|
+
/** Optional description */
|
|
18
|
+
description: zod_1.z.string().nullish(),
|
|
19
|
+
/** Arbitrary configuration */
|
|
20
|
+
config: zod_1.z.any().optional(),
|
|
21
|
+
/** Notification enabled */
|
|
22
|
+
notify: zod_1.z.boolean().default(false),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* ------------------------
|
|
26
|
+
* Upsert DTO
|
|
27
|
+
* ------------------------
|
|
28
|
+
*/
|
|
29
|
+
exports._TagSpecUpsertDto = exports._TagSpecBase;
|
|
30
|
+
/**
|
|
31
|
+
* ------------------------
|
|
32
|
+
* Read DTO
|
|
33
|
+
* ------------------------
|
|
34
|
+
*/
|
|
35
|
+
exports._TagSpecDto = exports._TagSpecBase.extend({
|
|
36
|
+
id: zod_1.z.string(),
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* ------------------------
|
|
40
|
+
* Composite DTO
|
|
41
|
+
* /tag-spec/ruleset
|
|
42
|
+
* ------------------------
|
|
43
|
+
*/
|
|
44
|
+
exports._TagSpecWithRuleSetDto = zod_1.z.object({
|
|
45
|
+
tagSpec: exports._TagSpecDto,
|
|
46
|
+
ruleSet: zod_1.z.any(), // compiled rule JSON
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=tagSpecs.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagSpecs.dto.js","sourceRoot":"","sources":["../../../src/dto/tagSpecs.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAGtB;;;;GAIG;AACU,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,gBAAgB;IAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IAEf,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IAEf,mBAAmB;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAEhB,2BAA2B;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAEjC,8BAA8B;IAC9B,MAAM,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAE1B,2BAA2B;IAC3B,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACnC,CAAC,CAAC;AAEH;;;;GAIG;AACU,QAAA,iBAAiB,GAAG,oBAAY,CAAC;AAI9C;;;;GAIG;AACU,QAAA,WAAW,GAAG,oBAAY,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAIH;;;;;GAKG;AACU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,mBAAW;IACpB,OAAO,EAAE,OAAC,CAAC,GAAG,EAAE,EAAE,qBAAqB;CACxC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _TrainingDto: z.ZodObject<{
|
|
3
|
+
subject: z.ZodString;
|
|
4
|
+
videoUrl: z.ZodString;
|
|
5
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
subject: string;
|
|
8
|
+
videoUrl: string;
|
|
9
|
+
thumbnailUrl?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
subject: string;
|
|
12
|
+
videoUrl: string;
|
|
13
|
+
thumbnailUrl?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type TrainingDto = z.infer<typeof _TrainingDto>;
|
|
16
|
+
export declare const _TrainingUpsertDto: z.ZodObject<{
|
|
17
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
18
|
+
videoUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
thumbnailUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
subject?: string | undefined;
|
|
22
|
+
videoUrl?: string | undefined;
|
|
23
|
+
thumbnailUrl?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
subject?: string | undefined;
|
|
26
|
+
videoUrl?: string | undefined;
|
|
27
|
+
thumbnailUrl?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type TrainingUpsertDto = z.infer<typeof _TrainingUpsertDto>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._TrainingUpsertDto = exports._TrainingDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports._TrainingDto = zod_1.z.object({
|
|
6
|
+
subject: zod_1.z.string(),
|
|
7
|
+
videoUrl: zod_1.z.string().url(),
|
|
8
|
+
thumbnailUrl: zod_1.z.string().url().optional(),
|
|
9
|
+
});
|
|
10
|
+
exports._TrainingUpsertDto = exports._TrainingDto.partial();
|
|
11
|
+
//# sourceMappingURL=trainings.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trainings.dto.js","sourceRoot":"","sources":["../../../src/dto/trainings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,oBAAY,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { FlowSpecsService } from './flowSpecs.service';
|
|
|
6
6
|
import { CohortService } from './rest/CohortService';
|
|
7
7
|
import { AgentsService } from './AgentsService';
|
|
8
8
|
import { EngagementService } from './engagements.service';
|
|
9
|
+
import { TrainingsService } from './trainings.service';
|
|
9
10
|
export type AmpApiOptions = AmpRestClientOptions;
|
|
10
11
|
/**
|
|
11
12
|
* AMP API
|
|
@@ -46,6 +47,7 @@ export declare class AmpApi {
|
|
|
46
47
|
readonly settings: AmpSettingsService;
|
|
47
48
|
readonly tenants: AmpEntityService<TenantUpsertDto, TenantDto>;
|
|
48
49
|
readonly tokens: AmpDataService<TokenDto>;
|
|
50
|
+
readonly trainings: TrainingsService;
|
|
49
51
|
readonly users: AmpDataService<UserDto>;
|
|
50
52
|
readonly usersInsights: UsersInsightsService;
|
|
51
53
|
readonly prediction: PredictionService;
|
|
@@ -9,6 +9,7 @@ const flowSpecs_service_1 = require("./flowSpecs.service");
|
|
|
9
9
|
const CohortService_1 = require("./rest/CohortService");
|
|
10
10
|
const AgentsService_1 = require("./AgentsService");
|
|
11
11
|
const engagements_service_1 = require("./engagements.service");
|
|
12
|
+
const trainings_service_1 = require("./trainings.service");
|
|
12
13
|
/**
|
|
13
14
|
* AMP API
|
|
14
15
|
* This client is a wrapper around the AMP REST API meant to be used by
|
|
@@ -49,6 +50,7 @@ class AmpApi {
|
|
|
49
50
|
this.settings = new _1.AmpSettingsService(rest);
|
|
50
51
|
this.tenants = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.TENANTS);
|
|
51
52
|
this.tokens = new _1.AmpDataServiceImpl(rest, constants_1.KIND.TOKENS);
|
|
53
|
+
this.trainings = new trainings_service_1.TrainingsService(rest, constants_1.KIND.TRAININGS);
|
|
52
54
|
this.users = new _1.AmpDataServiceImpl(rest, constants_1.KIND.USERS);
|
|
53
55
|
this.usersInsights = new usersInsights_service_1.UsersInsightsService(rest);
|
|
54
56
|
this.prediction = new _1.PredictionService(rest, constants_1.KIND.FINDINGS);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAmBA,wBAcW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AACnD,mDAA8C;AAC9C,+DAAwD;
|
|
1
|
+
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAmBA,wBAcW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AACnD,mDAA8C;AAC9C,+DAAwD;AACxD,2DAAqD;AAIrD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IAgCjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qBAAkB,CAAqB,IAAI,EAAE,gBAAI,CAAC,gBAAgB,CAAC,CAAC;QAChG,IAAI,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,K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AI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AArED,wBAqEC"}
|
|
@@ -11,6 +11,8 @@ import { PlatformAgentService } from './AgentsService';
|
|
|
11
11
|
import { TenantsService } from './rest/TenantsService';
|
|
12
12
|
import { FindingsService } from './findings.service';
|
|
13
13
|
import { EngagementService } from './engagements.service';
|
|
14
|
+
import { AmpSdkTagSpecsService } from './tagSpecs.service';
|
|
15
|
+
import { AmpSdkFindingsTagsService } from './findingsTags.service';
|
|
14
16
|
export type AmpSdkOptions = AmpRestClientOptions;
|
|
15
17
|
/**
|
|
16
18
|
* AMP API
|
|
@@ -36,6 +38,7 @@ export declare class AmpSdkServices {
|
|
|
36
38
|
readonly findings: FindingsService;
|
|
37
39
|
readonly findingSpecs: AmpSaaSEntityService<PlatformFindingSpecUpsertDto, PlatformFindingSpecDto>;
|
|
38
40
|
readonly findingsInsights: FindingsInsightsService;
|
|
41
|
+
readonly findingsTags: AmpSdkFindingsTagsService;
|
|
39
42
|
readonly flowSpecs: AmpSaaSEntityService<PlatformFlowSpecUpsertDto, PlatformFlowSpecDto>;
|
|
40
43
|
readonly flowStates: AmpSaaSEntityService<PlatformFlowStateUpsertDto, PlatformFlowStateDto>;
|
|
41
44
|
readonly jobExecutions: AmpEntityService<PlatformJobExecutionStateUpsertDto, PlatformJobExecutionStateDto>;
|
|
@@ -51,6 +54,7 @@ export declare class AmpSdkServices {
|
|
|
51
54
|
readonly stagedSaaSComponents: TruncatableAmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
|
|
52
55
|
readonly stagedSaaSUsers: TruncatableAmpEntityService<PlatformStagedSaasUserUpsertDto, PlatformStagedSaasUserDto>;
|
|
53
56
|
readonly settings: AmpSdkSettingsService;
|
|
57
|
+
readonly tagSpecs: AmpSdkTagSpecsService;
|
|
54
58
|
readonly tenants: TenantsService;
|
|
55
59
|
readonly tenantNotes: TenantNotesService;
|
|
56
60
|
readonly tokens: AmpSdkTenantService<PlatformTokenUpsertDto, PlatformTokenDto>;
|
|
@@ -14,6 +14,8 @@ const AgentsService_1 = require("./AgentsService");
|
|
|
14
14
|
const TenantsService_1 = require("./rest/TenantsService");
|
|
15
15
|
const findings_service_1 = require("./findings.service");
|
|
16
16
|
const engagements_service_1 = require("./engagements.service");
|
|
17
|
+
const tagSpecs_service_1 = require("./tagSpecs.service");
|
|
18
|
+
const findingsTags_service_1 = require("./findingsTags.service");
|
|
17
19
|
/**
|
|
18
20
|
* AMP API
|
|
19
21
|
* This client is a wrapper around the AMP REST API meant to be used by
|
|
@@ -42,6 +44,7 @@ class AmpSdkServices {
|
|
|
42
44
|
this.enums = new EnumService_1.DefaultEnumService(rest, constants_1.TARGET_API_PLATFORM);
|
|
43
45
|
this.findings = new findings_service_1.FindingsService(rest, constants_1.TARGET_API_PLATFORM);
|
|
44
46
|
this.findingSpecs = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FINDING_SPECS, constants_1.TARGET_API_PLATFORM);
|
|
47
|
+
this.findingsTags = new findingsTags_service_1.AmpSdkFindingsTagsService(rest);
|
|
45
48
|
this.findingsInsights = new findingsInsights_service_1.FindingsInsightsService(rest, constants_1.KIND.FINDINGS_INSIGHTS, constants_1.TARGET_API_PLATFORM);
|
|
46
49
|
this.flowSpecs = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FLOW_SPECS, constants_1.TARGET_API_PLATFORM);
|
|
47
50
|
this.flowStates = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FLOW_STATES, constants_1.TARGET_API_PLATFORM);
|
|
@@ -58,6 +61,7 @@ class AmpSdkServices {
|
|
|
58
61
|
this.stagedSaaSComponents = new entity_service_1.TruncatableAmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_COMPONENTS, constants_1.TARGET_API_PLATFORM);
|
|
59
62
|
this.stagedSaaSUsers = new entity_service_1.TruncatableAmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_USERS, constants_1.TARGET_API_PLATFORM);
|
|
60
63
|
this.settings = new settings_service_1.AmpSdkSettingsService(rest);
|
|
64
|
+
this.tagSpecs = new tagSpecs_service_1.AmpSdkTagSpecsService(rest);
|
|
61
65
|
this.tenants = new TenantsService_1.TenantsService(rest, constants_1.TARGET_API_PLATFORM);
|
|
62
66
|
this.tenantNotes = new entity_service_1.TenantNotesService(rest, constants_1.TARGET_API_PLATFORM);
|
|
63
67
|
this.tokens = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.TOKENS, constants_1.TARGET_API_PLATFORM);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAoDA,qDAS0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AACnE,6EAAsE;AACtE,mDAAqD;AACrD,0DAAqD;AACrD,yDAAmD;AACnD,+DAAwD;
|
|
1
|
+
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AAoDA,qDAS0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AACnE,6EAAsE;AACtE,mDAAqD;AACrD,0DAAqD;AACrD,yDAAmD;AACnD,+DAAwD;AACxD,yDAAyD;AACzD,iEAAiE;AAIjE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA2CzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAoB,CAA+D,IAAI,EAAE,gBAAI,CAAC,gBAAgB,EAAE,+BAAmB,CAAC,CAAC;QACjK,IAAI,CAAC,MAAM,GAAG,IAAI,oCAAoB,CAAC,IAAI,CAAC,CAAC;QAC7C,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I,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QAClK,IAAI,CAAC,oBAAoB,GAAG,IAAI,qCAAoB,CAClD,IAAI,EACJ,gBAAI,CAAC,qBAAqB,EAC1B,+BAAmB,CACpB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAzGD,wCAyGC"}
|
|
@@ -25,6 +25,7 @@ export declare const KIND: {
|
|
|
25
25
|
FINDINGS: string;
|
|
26
26
|
FINDINGS_INSIGHTS: string;
|
|
27
27
|
FINDING_SPECS: string;
|
|
28
|
+
FINDINGS_TAGS: string;
|
|
28
29
|
FLOW_SPECS: string;
|
|
29
30
|
FLOW_STATES: string;
|
|
30
31
|
INSIGHTS: string;
|
|
@@ -40,9 +41,11 @@ export declare const KIND: {
|
|
|
40
41
|
STAGED_SAAS_ASSETS: string;
|
|
41
42
|
STAGED_SAAS_COMPONENTS: string;
|
|
42
43
|
STAGED_SAAS_USERS: string;
|
|
44
|
+
TAG_SPECS: string;
|
|
43
45
|
TENANTS: string;
|
|
44
46
|
TENANT_NOTES: string;
|
|
45
47
|
TOKENS: string;
|
|
48
|
+
TRAININGS: string;
|
|
46
49
|
USERS: string;
|
|
47
50
|
USERS_INSIGHTS: string;
|
|
48
51
|
WORKFLOW_PROGRESS: string;
|
|
@@ -24,6 +24,7 @@ exports.KIND = {
|
|
|
24
24
|
FINDINGS: 'findings',
|
|
25
25
|
FINDINGS_INSIGHTS: 'findings_insights',
|
|
26
26
|
FINDING_SPECS: 'findings_specs',
|
|
27
|
+
FINDINGS_TAGS: 'findings_tags',
|
|
27
28
|
FLOW_SPECS: 'flow_specs',
|
|
28
29
|
FLOW_STATES: 'flow_states',
|
|
29
30
|
INSIGHTS: 'insights',
|
|
@@ -39,9 +40,11 @@ exports.KIND = {
|
|
|
39
40
|
STAGED_SAAS_ASSETS: 'staged_saas_assets',
|
|
40
41
|
STAGED_SAAS_COMPONENTS: 'staged_saas_components',
|
|
41
42
|
STAGED_SAAS_USERS: 'staged_saas_users',
|
|
43
|
+
TAG_SPECS: 'tag_specs',
|
|
42
44
|
TENANTS: 'tenants',
|
|
43
45
|
TENANT_NOTES: 'tenant_notes',
|
|
44
46
|
TOKENS: 'tokens',
|
|
47
|
+
TRAININGS: 'trainings',
|
|
45
48
|
USERS: 'users',
|
|
46
49
|
USERS_INSIGHTS: 'coverage',
|
|
47
50
|
WORKFLOW_PROGRESS: 'workflow_progress',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AACpC,QAAA,iBAAiB,GAAc,KAAK,CAAC;AAErC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,iBAAiB;IAClC,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,eAAe;IAC7B,OAAO,EAAE,UAAU;IACnB,oBAAoB,EAAE,uBAAuB;IAC7C,QAAQ,EAAE,WAAW;IACrB,wBAAwB,EAAE,0BAA0B;IACpD,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eAAe;IACnC,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,gBAAgB;IAC/B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,QAAQ,E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IACZ,KAAK,EAAE,OAAO;CACf,CAAC;AAEc,qCAAmB,GAAG;IACpC,OAAO,EAAE;QACP,6BAA6B;QAC7B,YAAY,EAAE,cAAc;QAC5B,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,cAAc;QAC5B,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;QACJ,6BAA6B;QAC7B,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,eAAe;QACzB,YAAY,EAAE,mBAAmB;QACjC,UAAU,EAAE,iBAAiB;QAC7B,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,gBAAgB;KACxB;IACD,KAAK,EAAE;QACL,6BAA6B;QAC7B,YAAY,EAAE,oBAAoB;QAClC,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,qBAAqB;KAClC;CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RestClient } from './rest';
|
|
2
|
+
import { FindingTagDto } from '../dto/findingsTags.dto';
|
|
3
|
+
import { FindingTagUpsertDto } from '../dto';
|
|
4
|
+
export declare class AmpSdkFindingsTagsService {
|
|
5
|
+
protected readonly rest: RestClient;
|
|
6
|
+
constructor(rest: RestClient);
|
|
7
|
+
attach(tid: string, body: FindingTagUpsertDto): Promise<FindingTagDto>;
|
|
8
|
+
listByFinding(fid: string): Promise<FindingTagDto[]>;
|
|
9
|
+
listByTenant(tid: string): Promise<FindingTagDto[]>;
|
|
10
|
+
detach(tid: string, body: FindingTagUpsertDto): Promise<void>;
|
|
11
|
+
}
|