@ampsec/platform-client 62.8.0 → 62.10.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/base.dto.d.ts +6 -0
- package/build/src/dto/base.dto.js +8 -2
- package/build/src/dto/base.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +365 -0
- package/build/src/dto/customActions.dto.js +40 -0
- package/build/src/dto/customActions.dto.js.map +1 -0
- package/build/src/dto/customScores.dto.d.ts +153 -0
- package/build/src/dto/customScores.dto.js +17 -0
- package/build/src/dto/customScores.dto.js.map +1 -0
- package/build/src/dto/findings.dto.d.ts +88 -0
- package/build/src/dto/findings.dto.js +25 -0
- package/build/src/dto/findings.dto.js.map +1 -1
- package/build/src/dto/flows.dto.d.ts +19 -0
- package/build/src/dto/flows.dto.js +9 -10
- package/build/src/dto/flows.dto.js.map +1 -1
- 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/platform/index.d.ts +2 -0
- package/build/src/dto/platform/index.js +2 -0
- package/build/src/dto/platform/index.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +303 -0
- package/build/src/dto/platform/platform.customActions.dto.js +12 -0
- package/build/src/dto/platform/platform.customActions.dto.js.map +1 -0
- package/build/src/dto/platform/platform.customScores.dto.d.ts +165 -0
- package/build/src/dto/platform/platform.customScores.dto.js +18 -0
- package/build/src/dto/platform/platform.customScores.dto.js.map +1 -0
- package/build/src/dto/platform/platform.findings.dto.d.ts +77 -0
- package/build/src/dto/platform/platform.findings.dto.js +9 -0
- package/build/src/dto/platform/platform.findings.dto.js.map +1 -1
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +3 -0
- package/build/src/dto/platform/platform.saasAssets.dto.js +1 -0
- package/build/src/dto/platform/platform.saasAssets.dto.js.map +1 -1
- package/build/src/dto/platform/platform.saasComponents.dto.d.ts +1 -0
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +3 -0
- package/build/src/dto/platform/platform.saasUsers.dto.js +1 -0
- package/build/src/dto/platform/platform.saasUsers.dto.js.map +1 -1
- package/build/src/services/AmpApi.d.ts +5 -1
- package/build/src/services/AmpApi.js +4 -0
- package/build/src/services/AmpApi.js.map +1 -1
- package/build/src/services/AmpSdk.d.ts +5 -4
- package/build/src/services/AmpSdk.js +4 -0
- package/build/src/services/AmpSdk.js.map +1 -1
- package/build/src/services/constants.d.ts +4 -0
- package/build/src/services/constants.js +4 -0
- package/build/src/services/constants.js.map +1 -1
- package/build/src/services/entity.service.d.ts +2 -2
- package/build/src/services/entity.service.js +4 -7
- package/build/src/services/entity.service.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/base.dto.ts +7 -2
- package/src/dto/customActions.dto.ts +44 -0
- package/src/dto/customScores.dto.ts +21 -0
- package/src/dto/findings.dto.ts +29 -1
- package/src/dto/flows.dto.ts +8 -11
- package/src/dto/index.ts +2 -0
- package/src/dto/platform/index.ts +2 -0
- package/src/dto/platform/platform.customActions.dto.ts +12 -0
- package/src/dto/platform/platform.customScores.dto.ts +22 -0
- package/src/dto/platform/platform.findings.dto.ts +12 -1
- package/src/dto/platform/platform.saasAssets.dto.ts +1 -0
- package/src/dto/platform/platform.saasComponents.dto.ts +1 -0
- package/src/dto/platform/platform.saasUsers.dto.ts +1 -0
- package/src/services/AmpApi.ts +29 -1
- package/src/services/AmpSdk.ts +29 -10
- package/src/services/constants.ts +4 -0
- package/src/services/entity.service.ts +5 -8
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _PlatformCustomScoreValueDto: z.ZodObject<{
|
|
3
|
+
value: z.ZodNumber;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodString;
|
|
7
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
8
|
+
findingSpecId: z.ZodString;
|
|
9
|
+
tid: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
value: number;
|
|
12
|
+
id: string;
|
|
13
|
+
tid: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
deletedAt: string | null;
|
|
17
|
+
findingSpecId: string;
|
|
18
|
+
}, {
|
|
19
|
+
value: number;
|
|
20
|
+
id: string;
|
|
21
|
+
tid: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
findingSpecId: string;
|
|
26
|
+
}>;
|
|
27
|
+
export type PlatformCustomScoreValueDto = z.infer<typeof _PlatformCustomScoreValueDto>;
|
|
28
|
+
export declare const _PlatformCustomScoreValueUpsertDto: z.ZodObject<{
|
|
29
|
+
value: z.ZodNumber;
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
32
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
findingSpecId: z.ZodString;
|
|
35
|
+
tid: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
value: number;
|
|
38
|
+
tid: string;
|
|
39
|
+
findingSpecId: string;
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
createdAt?: string | undefined;
|
|
42
|
+
updatedAt?: string | undefined;
|
|
43
|
+
deletedAt?: string | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
value: number;
|
|
46
|
+
tid: string;
|
|
47
|
+
findingSpecId: string;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
createdAt?: string | undefined;
|
|
50
|
+
updatedAt?: string | undefined;
|
|
51
|
+
deletedAt?: string | null | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export type PlatformCustomScoreValueUpsertDto = z.infer<typeof _PlatformCustomScoreValueUpsertDto>;
|
|
54
|
+
export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
+
cohort: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
62
|
+
displayValue: z.ZodString;
|
|
63
|
+
value: z.ZodString;
|
|
64
|
+
inclusive: z.ZodBoolean;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
inclusive: boolean;
|
|
67
|
+
value: string;
|
|
68
|
+
id: string;
|
|
69
|
+
displayValue: string;
|
|
70
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
71
|
+
}, {
|
|
72
|
+
inclusive: boolean;
|
|
73
|
+
value: string;
|
|
74
|
+
id: string;
|
|
75
|
+
displayValue: string;
|
|
76
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
77
|
+
}>;
|
|
78
|
+
multiplier: z.ZodNumber;
|
|
79
|
+
tid: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
id: string;
|
|
82
|
+
tid: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
deletedAt: string | null;
|
|
86
|
+
cohort: {
|
|
87
|
+
inclusive: boolean;
|
|
88
|
+
value: string;
|
|
89
|
+
id: string;
|
|
90
|
+
displayValue: string;
|
|
91
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
92
|
+
};
|
|
93
|
+
multiplier: number;
|
|
94
|
+
}, {
|
|
95
|
+
id: string;
|
|
96
|
+
tid: string;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
deletedAt: string | null;
|
|
100
|
+
cohort: {
|
|
101
|
+
inclusive: boolean;
|
|
102
|
+
value: string;
|
|
103
|
+
id: string;
|
|
104
|
+
displayValue: string;
|
|
105
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
106
|
+
};
|
|
107
|
+
multiplier: number;
|
|
108
|
+
}>;
|
|
109
|
+
export type PlatformCustomScoreCohortDto = z.infer<typeof _PlatformCustomScoreCohortDto>;
|
|
110
|
+
export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
createdAt: z.ZodString;
|
|
113
|
+
updatedAt: z.ZodString;
|
|
114
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
115
|
+
cohort: z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
118
|
+
displayValue: z.ZodString;
|
|
119
|
+
value: z.ZodString;
|
|
120
|
+
inclusive: z.ZodBoolean;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
inclusive: boolean;
|
|
123
|
+
value: string;
|
|
124
|
+
id: string;
|
|
125
|
+
displayValue: string;
|
|
126
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
127
|
+
}, {
|
|
128
|
+
inclusive: boolean;
|
|
129
|
+
value: string;
|
|
130
|
+
id: string;
|
|
131
|
+
displayValue: string;
|
|
132
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
133
|
+
}>;
|
|
134
|
+
multiplier: z.ZodNumber;
|
|
135
|
+
tid: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
id: string;
|
|
138
|
+
tid: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
deletedAt: string | null;
|
|
142
|
+
cohort: {
|
|
143
|
+
inclusive: boolean;
|
|
144
|
+
value: string;
|
|
145
|
+
id: string;
|
|
146
|
+
displayValue: string;
|
|
147
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
148
|
+
};
|
|
149
|
+
multiplier: number;
|
|
150
|
+
}, {
|
|
151
|
+
id: string;
|
|
152
|
+
tid: string;
|
|
153
|
+
createdAt: string;
|
|
154
|
+
updatedAt: string;
|
|
155
|
+
deletedAt: string | null;
|
|
156
|
+
cohort: {
|
|
157
|
+
inclusive: boolean;
|
|
158
|
+
value: string;
|
|
159
|
+
id: string;
|
|
160
|
+
displayValue: string;
|
|
161
|
+
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
162
|
+
};
|
|
163
|
+
multiplier: number;
|
|
164
|
+
}>;
|
|
165
|
+
export type PlatformCustomScoreCohortUpsertDto = z.infer<typeof _PlatformCustomScoreCohortUpsertDto>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformCustomScoreCohortUpsertDto = exports._PlatformCustomScoreCohortDto = exports._PlatformCustomScoreValueUpsertDto = exports._PlatformCustomScoreValueDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const customScores_dto_1 = require("../customScores.dto");
|
|
6
|
+
exports._PlatformCustomScoreValueDto = customScores_dto_1._CustomScoreValueDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformCustomScoreValueUpsertDto = customScores_dto_1._CustomScoreValueUpsertDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports._PlatformCustomScoreCohortDto = customScores_dto_1._CustomScoreCohortDto.extend({
|
|
13
|
+
tid: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
exports._PlatformCustomScoreCohortUpsertDto = customScores_dto_1._CustomScoreCohortDto.extend({
|
|
16
|
+
tid: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=platform.customScores.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.customScores.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,0DAAyI;AAE5H,QAAA,4BAA4B,GAAG,uCAAoB,CAAC,MAAM,CAAC;IACtE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,kCAAkC,GAAG,6CAA0B,CAAC,MAAM,CAAC;IAClF,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,wCAAqB,CAAC,MAAM,CAAC;IACxE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,wCAAqB,CAAC,MAAM,CAAC;IAC9E,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -1,4 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { FindingDto, FindingUpsertDto } from '../findings.dto';
|
|
2
3
|
import { TenantBased, UpsertTenantBased } from './tenant.based.dto';
|
|
3
4
|
export type PlatformFindingUpsertDto = FindingUpsertDto & UpsertTenantBased;
|
|
4
5
|
export type PlatformFindingDto = FindingDto & TenantBased;
|
|
6
|
+
export declare const _PlatformFindingSpecDto: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodUnion<[z.ZodString, z.ZodUnknown]>;
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
updatedAt: z.ZodString;
|
|
13
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
14
|
+
displayValue: z.ZodString;
|
|
15
|
+
eventType: z.ZodString;
|
|
16
|
+
severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
|
|
17
|
+
tid: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
tid: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
displayValue: string;
|
|
26
|
+
eventType: string;
|
|
27
|
+
severity: import("..").FindingSeverity;
|
|
28
|
+
description?: unknown;
|
|
29
|
+
cid?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
name: string;
|
|
32
|
+
id: string;
|
|
33
|
+
tid: string;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
deletedAt: string | null;
|
|
37
|
+
displayValue: string;
|
|
38
|
+
eventType: string;
|
|
39
|
+
severity: import("..").FindingSeverity;
|
|
40
|
+
description?: unknown;
|
|
41
|
+
cid?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type PlatformFindingSpecDto = z.infer<typeof _PlatformFindingSpecDto>;
|
|
44
|
+
export declare const _PlatformFindingSpecUpsertDto: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
description: z.ZodUnion<[z.ZodString, z.ZodUnknown]>;
|
|
47
|
+
id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
cid: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
51
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
displayValue: z.ZodString;
|
|
53
|
+
eventType: z.ZodString;
|
|
54
|
+
severity: z.ZodNativeEnum<typeof import("..").FindingSeverity>;
|
|
55
|
+
tid: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
name: string;
|
|
58
|
+
tid: string;
|
|
59
|
+
displayValue: string;
|
|
60
|
+
eventType: string;
|
|
61
|
+
severity: import("..").FindingSeverity;
|
|
62
|
+
description?: unknown;
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
cid?: string | undefined;
|
|
65
|
+
createdAt?: string | undefined;
|
|
66
|
+
updatedAt?: string | undefined;
|
|
67
|
+
deletedAt?: string | null | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
name: string;
|
|
70
|
+
tid: string;
|
|
71
|
+
displayValue: string;
|
|
72
|
+
eventType: string;
|
|
73
|
+
severity: import("..").FindingSeverity;
|
|
74
|
+
description?: unknown;
|
|
75
|
+
id?: string | undefined;
|
|
76
|
+
cid?: string | undefined;
|
|
77
|
+
createdAt?: string | undefined;
|
|
78
|
+
updatedAt?: string | undefined;
|
|
79
|
+
deletedAt?: string | null | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export type PlatformFindingSpecUpsertDto = z.infer<typeof _PlatformFindingSpecUpsertDto>;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._PlatformFindingSpecUpsertDto = exports._PlatformFindingSpecDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const findings_dto_1 = require("../findings.dto");
|
|
6
|
+
exports._PlatformFindingSpecDto = findings_dto_1._FindingSpecDto.extend({
|
|
7
|
+
tid: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
exports._PlatformFindingSpecUpsertDto = findings_dto_1._FindingSpecUpsertDto.extend({
|
|
10
|
+
tid: zod_1.z.string(),
|
|
11
|
+
});
|
|
3
12
|
//# sourceMappingURL=platform.findings.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.findings.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.findings.dto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"platform.findings.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.findings.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,kDAAqG;AAOxF,QAAA,uBAAuB,GAAG,8BAAe,CAAC,MAAM,CAAC;IAC5D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAGU,QAAA,6BAA6B,GAAG,oCAAqB,CAAC,MAAM,CAAC;IACxE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC"}
|
|
@@ -114,6 +114,7 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
114
114
|
_raw?: unknown;
|
|
115
115
|
}>;
|
|
116
116
|
aid: z.ZodOptional<z.ZodString>;
|
|
117
|
+
sessionId: z.ZodString;
|
|
117
118
|
}, "strip", z.ZodTypeAny, {
|
|
118
119
|
cid: string;
|
|
119
120
|
etag: string;
|
|
@@ -141,6 +142,7 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
141
142
|
};
|
|
142
143
|
_raw?: unknown;
|
|
143
144
|
};
|
|
145
|
+
sessionId: string;
|
|
144
146
|
id?: string | undefined;
|
|
145
147
|
uid?: string | undefined;
|
|
146
148
|
createdAt?: string | undefined;
|
|
@@ -174,6 +176,7 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
174
176
|
};
|
|
175
177
|
_raw?: unknown;
|
|
176
178
|
};
|
|
179
|
+
sessionId: string;
|
|
177
180
|
id?: string | undefined;
|
|
178
181
|
uid?: string | undefined;
|
|
179
182
|
createdAt?: string | undefined;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const saasAssets_dto_1 = require("../saasAssets.dto");
|
|
6
6
|
exports._StagedSaasAssetUpsertDto = saasAssets_dto_1._SaasAssetUpsertDto.extend({
|
|
7
7
|
aid: zod_1.z.string().optional(),
|
|
8
|
+
sessionId: zod_1.z.string(),
|
|
8
9
|
});
|
|
9
10
|
//# sourceMappingURL=platform.saasAssets.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.saasAssets.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,sDAAwF;AAM3E,QAAA,yBAAyB,GAAG,oCAAmB,CAAC,MAAM,CAAC;IAClE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"platform.saasAssets.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,sDAAwF;AAM3E,QAAA,yBAAyB,GAAG,oCAAmB,CAAC,MAAM,CAAC;IAClE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ export type PlatformSaasComponentUpsertDto = SaasComponentUpsertDto & UpsertTena
|
|
|
4
4
|
export type PlatformSaasComponentDto = SaasComponentDto & TenantBased;
|
|
5
5
|
export type StagedSaasComponentUpsertDto = SaasComponentUpsertDto & {
|
|
6
6
|
displayValue?: string | null;
|
|
7
|
+
sessionId: string;
|
|
7
8
|
};
|
|
8
9
|
export type PlatformStagedSaasComponentUpsertDto = StagedSaasComponentUpsertDto & UpsertTenantBased;
|
|
9
10
|
export type PlatformStagedSaasComponentDto = StagedSaasComponentUpsertDto & TenantBased;
|
|
@@ -206,6 +206,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
206
206
|
_raw?: unknown;
|
|
207
207
|
}>;
|
|
208
208
|
uid: z.ZodOptional<z.ZodString>;
|
|
209
|
+
sessionId: z.ZodString;
|
|
209
210
|
}, "strip", z.ZodTypeAny, {
|
|
210
211
|
email: string;
|
|
211
212
|
cid: string;
|
|
@@ -242,6 +243,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
242
243
|
};
|
|
243
244
|
_raw?: unknown;
|
|
244
245
|
};
|
|
246
|
+
sessionId: string;
|
|
245
247
|
id?: string | undefined;
|
|
246
248
|
createdAt?: string | undefined;
|
|
247
249
|
updatedAt?: string | undefined;
|
|
@@ -283,6 +285,7 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
283
285
|
};
|
|
284
286
|
_raw?: unknown;
|
|
285
287
|
};
|
|
288
|
+
sessionId: string;
|
|
286
289
|
id?: string | undefined;
|
|
287
290
|
createdAt?: string | undefined;
|
|
288
291
|
updatedAt?: string | undefined;
|
|
@@ -5,5 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const saasUsers_dto_1 = require("../saasUsers.dto");
|
|
6
6
|
exports._StagedSaasUserUpsertDto = saasUsers_dto_1._SaasUserUpsertDto.extend({
|
|
7
7
|
uid: zod_1.z.string().optional(),
|
|
8
|
+
sessionId: zod_1.z.string(),
|
|
8
9
|
});
|
|
9
10
|
//# sourceMappingURL=platform.saasUsers.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.saasUsers.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,oDAAuE;AAM1D,QAAA,wBAAwB,GAAG,kCAAkB,CAAC,MAAM,CAAC;IAChE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"platform.saasUsers.dto.js","sourceRoot":"","sources":["../../../../src/dto/platform/platform.saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,oDAAuE;AAM1D,QAAA,wBAAwB,GAAG,kCAAkB,CAAC,MAAM,CAAC;IAChE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentDto, AgentUpsertDto, AssetDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
|
|
1
|
+
import { AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, UserDto } from '../dto';
|
|
2
2
|
import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
|
|
3
3
|
import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
|
|
4
4
|
import { UsersInsightsService } from './usersInsights.service';
|
|
@@ -22,9 +22,13 @@ export declare class AmpApi {
|
|
|
22
22
|
readonly asset: AmpDataService<AssetDto>;
|
|
23
23
|
readonly cohorts: CohortService;
|
|
24
24
|
readonly connectors: ConnectorsService;
|
|
25
|
+
readonly customActions: AmpEntityService<CustomActionUpsertDto, CustomActionDto>;
|
|
26
|
+
readonly customScoreValues: AmpEntityService<CustomScoreValueUpsertDto, CustomScoreValueDto>;
|
|
27
|
+
readonly customScoreCohorts: AmpEntityService<CustomScoreCohortUpsertDto, CustomScoreCohortDto>;
|
|
25
28
|
readonly enums: EnumService;
|
|
26
29
|
readonly findings: FindingsService;
|
|
27
30
|
readonly findingsInsights: FindingsInsightsService;
|
|
31
|
+
readonly findingSpecs: AmpEntityService<FindingSpecUpsertDto, FindingSpecDto>;
|
|
28
32
|
readonly flowSpecs: FlowSpecsService;
|
|
29
33
|
readonly identity: AgentIdentityService;
|
|
30
34
|
readonly install: ConnectorInstallService;
|
|
@@ -25,9 +25,13 @@ class AmpApi {
|
|
|
25
25
|
this.asset = new _1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS);
|
|
26
26
|
this.cohorts = new CohortService_1.CohortService(rest);
|
|
27
27
|
this.connectors = new _1.ConnectorsService(rest);
|
|
28
|
+
this.customActions = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS);
|
|
29
|
+
this.customScoreCohorts = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS);
|
|
30
|
+
this.customScoreValues = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES);
|
|
28
31
|
this.enums = new rest_1.DefaultEnumService(rest);
|
|
29
32
|
this.findings = new _1.FindingsService(rest);
|
|
30
33
|
this.findingsInsights = new _1.FindingsInsightsService(rest, constants_1.KIND.FINDINGS_INSIGHTS);
|
|
34
|
+
this.findingSpecs = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.FINDING_SPECS);
|
|
31
35
|
this.flowSpecs = new flowSpecs_service_1.FlowSpecsService(rest);
|
|
32
36
|
this.identity = new rest_1.AgentIdentityService(rest);
|
|
33
37
|
this.install = new rest_1.ConnectorInstallService(rest, constants_1.TARGET_API_AGENT);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAqBA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;A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C,CAAC;IAC1B,CAAC;CACF;AA7DD,wBA6DC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
|
|
1
|
+
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
|
|
2
2
|
import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TruncatableAmpEntityService } from './entity.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
|
-
import { PlatformJobSpecDto, PlatformJobSpecUpsertDto } from '../dto/platform/platform.jobSpec.dto';
|
|
5
|
-
import { PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto } from '../dto/platform/platform.jobExecutionState.dto';
|
|
6
4
|
import { EnumService } from './rest/EnumService';
|
|
7
5
|
import { AmpSdkSettingsService } from './settings.service';
|
|
8
6
|
import { AmpSaaSEntityService, AmpSdkSaasAssetService, AmpSdkSaasComponentService, AmpSdkSaasUserService } from './saasEntity.service';
|
|
9
7
|
import { ContentfulService } from './contentful.service';
|
|
10
8
|
import { FindingsInsightsService } from './findingsInsights.service';
|
|
11
|
-
import { PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto } from '../dto/platform/platform.flows.dto';
|
|
12
9
|
export type AmpSdkOptions = AmpRestClientOptions;
|
|
13
10
|
/**
|
|
14
11
|
* AMP API
|
|
@@ -24,8 +21,12 @@ export declare class AmpSdkServices {
|
|
|
24
21
|
readonly asset: AmpSdkAssetService;
|
|
25
22
|
readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
|
|
26
23
|
readonly contentful: ContentfulService;
|
|
24
|
+
readonly customActions: AmpEntityService<PlatformCustomActionUpsertDto, PlatformCustomActionDto>;
|
|
25
|
+
readonly customScoreCohorts: AmpEntityService<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>;
|
|
26
|
+
readonly customScoreValues: AmpEntityService<PlatformCustomScoreValueUpsertDto, PlatformCustomScoreValueDto>;
|
|
27
27
|
readonly enums: EnumService;
|
|
28
28
|
readonly findings: AmpSaaSEntityService<PlatformFindingUpsertDto, PlatformFindingDto>;
|
|
29
|
+
readonly findingSpecs: AmpSaaSEntityService<PlatformFindingSpecUpsertDto, PlatformFindingSpecDto>;
|
|
29
30
|
readonly findingsInsights: FindingsInsightsService;
|
|
30
31
|
readonly flowSpecs: AmpSaaSEntityService<PlatformFlowSpecUpsertDto, PlatformFlowSpecDto>;
|
|
31
32
|
readonly flowStates: AmpSaaSEntityService<PlatformFlowStateUpsertDto, PlatformFlowStateDto>;
|
|
@@ -24,8 +24,12 @@ class AmpSdkServices {
|
|
|
24
24
|
this.asset = new entity_service_1.AmpSdkAssetService(rest, constants_1.TARGET_API_PLATFORM);
|
|
25
25
|
this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_PLATFORM);
|
|
26
26
|
this.contentful = new contentful_service_1.ContentfulService();
|
|
27
|
+
this.customActions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS, constants_1.TARGET_API_PLATFORM);
|
|
28
|
+
this.customScoreCohorts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS, constants_1.TARGET_API_PLATFORM);
|
|
29
|
+
this.customScoreValues = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES, constants_1.TARGET_API_PLATFORM);
|
|
27
30
|
this.enums = new EnumService_1.DefaultEnumService(rest, constants_1.TARGET_API_PLATFORM);
|
|
28
31
|
this.findings = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FINDINGS, constants_1.TARGET_API_PLATFORM);
|
|
32
|
+
this.findingSpecs = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FINDING_SPECS, constants_1.TARGET_API_PLATFORM);
|
|
29
33
|
this.findingsInsights = new findingsInsights_service_1.FindingsInsightsService(rest, constants_1.KIND.FINDINGS_INSIGHTS, constants_1.TARGET_API_PLATFORM);
|
|
30
34
|
this.flowSpecs = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FLOW_SPECS, constants_1.TARGET_API_PLATFORM);
|
|
31
35
|
this.flowStates = new saasEntity_service_1.AmpSaaSEntityServiceImpl(rest, constants_1.KIND.FLOW_STATES, constants_1.TARGET_API_PLATFORM);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AA0CA,qDAQ0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAInE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA8BzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,gBAAI,CAAC,MAAM,EAAE,+BAAmB,CAAC,CAAC;QACzH,IAAI,CAAC,KAAK,GAAG,IAAI,mCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,UAAU,GAAG,IAAI,qCAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,CAAC;QACzI,IAAI,CAAC,UAAU,GAAG,IAAI,sCAAiB,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,IAAI,qCAAoB,CAAyD,IAAI,EAAE,gBAAI,CAAC,cAAc,EAAE,+BAAmB,CAAC,CAAC;QACtJ,IAAI,CAAC,kBAAkB,GAAG,IAAI,qCAAoB,CAAmE,IAAI,EAAE,gBAAI,CAAC,oBAAoB,EAAE,+BAAmB,CAAC,CAAC;QAC3K,IAAI,CAAC,iBAAiB,GAAG,IAAI,qCAAoB,CAAiE,IAAI,EAAE,gBAAI,CAAC,mBAAmB,EAAE,+BAAmB,CAAC,CAAC;QACvK,IAAI,CAAC,KAAK,GAAG,IAAI,gCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI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
ENUM_DEPARTMENTS: string;
|
|
14
17
|
ENUM_ORGANIZATIONS: string;
|
|
15
18
|
ENUM_TITLES: string;
|
|
16
19
|
FINDINGS: string;
|
|
17
20
|
FINDINGS_INSIGHTS: string;
|
|
21
|
+
FINDING_SPECS: string;
|
|
18
22
|
FLOW_SPECS: string;
|
|
19
23
|
FLOW_STATES: string;
|
|
20
24
|
JOB_EXECUTIONS: string;
|
|
@@ -9,11 +9,15 @@ exports.KIND = {
|
|
|
9
9
|
AGENTS: 'agents',
|
|
10
10
|
ASSETS: 'assets',
|
|
11
11
|
CONNECTORS: 'connectors',
|
|
12
|
+
CUSTOM_ACTIONS: 'custom_actions',
|
|
13
|
+
CUSTOM_SCORE_COHORTS: 'custom_score_cohorts',
|
|
14
|
+
CUSTOM_SCORE_VALUES: 'custom_score_values',
|
|
12
15
|
ENUM_DEPARTMENTS: 'departments',
|
|
13
16
|
ENUM_ORGANIZATIONS: 'organizations',
|
|
14
17
|
ENUM_TITLES: 'titles',
|
|
15
18
|
FINDINGS: 'findings',
|
|
16
19
|
FINDINGS_INSIGHTS: 'findings_insights',
|
|
20
|
+
FINDING_SPECS: 'findings_specs',
|
|
17
21
|
FLOW_SPECS: 'flow_specs',
|
|
18
22
|
FLOW_STATES: 'flow_states',
|
|
19
23
|
JOB_EXECUTIONS: 'job_executions',
|
|
@@ -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,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eA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UpsertDto, ReadT extends Ba
|
|
|
12
12
|
delete(_id: string, _options?: EntityCallOptions): Promise<Page<ReadT>>;
|
|
13
13
|
}
|
|
14
14
|
export interface TruncatableAmpEntityService<WriteT extends BaseUpsertDto, ReadT extends BaseDto> extends AmpEntityService<WriteT, ReadT> {
|
|
15
|
-
truncate(tid: string): Promise<Message>;
|
|
15
|
+
truncate(tid: string, sessionId?: string): Promise<Message>;
|
|
16
16
|
}
|
|
17
17
|
export interface AmpSdkTenantService<WriteT extends BaseUpsertDto, ReadT extends BaseDto> extends AmpDataService<ReadT> {
|
|
18
18
|
create(_model: WriteT | WriteT[], _options?: EntityCallOptions): Promise<Page<ReadT>>;
|
|
@@ -35,7 +35,7 @@ export declare class AmpEntityServiceImpl<WriteT extends BaseUpsertDto, ReadT ex
|
|
|
35
35
|
delete: (id: string, options?: EntityCallOptions) => Promise<Page<ReadT>>;
|
|
36
36
|
}
|
|
37
37
|
export declare class TruncatableAmpEntityServiceImpl<WriteT extends BaseUpsertDto, ReadT extends BaseDto> extends AmpEntityServiceImpl<WriteT, ReadT> implements TruncatableAmpEntityService<WriteT, ReadT> {
|
|
38
|
-
truncate: (tid: string) => Promise<Message>;
|
|
38
|
+
truncate: (tid: string, sessionId?: string) => Promise<Message>;
|
|
39
39
|
}
|
|
40
40
|
export declare class AmpGlobalEntityServiceImpl<WriteT extends BaseUpsertDto, ReadT extends BaseDto> extends AmpEntityServiceImpl<WriteT, ReadT> implements AmpGlobalEntityService<WriteT, ReadT> {
|
|
41
41
|
constructor(rest: RestClient, kind: string, targetApi?: TargetApi);
|
|
@@ -55,14 +55,11 @@ exports.AmpEntityServiceImpl = AmpEntityServiceImpl;
|
|
|
55
55
|
class TruncatableAmpEntityServiceImpl extends AmpEntityServiceImpl {
|
|
56
56
|
constructor() {
|
|
57
57
|
super(...arguments);
|
|
58
|
-
this.truncate = async (tid) => {
|
|
59
|
-
if (!tid) {
|
|
60
|
-
throw new Error('Tenant id is required');
|
|
61
|
-
}
|
|
58
|
+
this.truncate = async (tid, sessionId) => {
|
|
62
59
|
const req = {
|
|
63
60
|
url: `/${this.targetApi}/v1/${this.kind}/truncate`,
|
|
64
61
|
method: 'POST',
|
|
65
|
-
data: { tid },
|
|
62
|
+
data: { tid, sessionId },
|
|
66
63
|
};
|
|
67
64
|
const { error } = await this.call(req, (error) => {
|
|
68
65
|
if (error instanceof Error) {
|
|
@@ -71,10 +68,10 @@ class TruncatableAmpEntityServiceImpl extends AmpEntityServiceImpl {
|
|
|
71
68
|
return { success: false, error };
|
|
72
69
|
});
|
|
73
70
|
if (error) {
|
|
74
|
-
throw new Error(`Failed to truncate ${this.kind} for tenant id=
|
|
71
|
+
throw new Error(`Failed to truncate ${this.kind} for tenant id=[${tid}]${sessionId ? ` and sessionId=[${sessionId}]` : ''}`);
|
|
75
72
|
}
|
|
76
73
|
return {
|
|
77
|
-
message: `Truncated ${this.kind} for tenant id=
|
|
74
|
+
message: `Truncated ${this.kind} for tenant id=[${tid}]${sessionId ? ` and sessionId=[${sessionId}]` : ''}`,
|
|
78
75
|
};
|
|
79
76
|
};
|
|
80
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.service.js","sourceRoot":"","sources":["../../../src/services/entity.service.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AAEvB,2CAA4E;AAC5E,iDAAkE;AAGlE,qDAAuE;AAEvE,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAiC/B,MAAa,oBAA0E,SAAQ,iCAAyB;IACtH,YAAY,IAAgB,EAAE,IAAY,EAAE,YAAuB,4BAAgB;QACjF,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QAG/B,WAAM,GAAG,CAAC,KAAwB,EAAE,OAA2B,EAAwB,EAAE;YACvF,OAAO,IAAI,CAAC,OAAO,CAAC;gBAClB,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,EAAE;gBACzC,MAAM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CAAC,GAAG,CAAC,OAAO,EAAE,kBAAkB,EAAE,EAAC,GAAG,EAAE,MAAM,CAAC,cAAc,EAAE,EAAC,CAAC,CAAC;YACnE,OAAO,OAAO,EAAE,CAAC;gBACf,MAAM,GAAG,GAAgB;oBACvB,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,aAAa;oBACpD,MAAM,EAAE,KAAK;oBACb,MAAM,EAAE;wBACN,GAAG,CAAC,MAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAmB,mCAAI,EAAE,CAAC;wBACxC,GAAG;wBACH,KAAK;wBACL,MAAM;qBACP;iBACF,CAAC;gBACF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,YAA8C,CAAC,CAAC;gBAClF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC1C,MAAM,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,MAAM,mCAAI,MAAM,CAAC,GAAG,KAAK,CAAC;gBAC/C,OAAO,GAAG,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,mCAAI,KAAK,CAAC;YACxC,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IAhCF,CAAC;CAiCF;AApCD,gDAoCC"}
|
package/package.json
CHANGED
package/src/dto/base.dto.ts
CHANGED
|
@@ -6,11 +6,16 @@ export const _BaseDto = z.object({
|
|
|
6
6
|
updatedAt: z.string(),
|
|
7
7
|
deletedAt: z.string().nullable(),
|
|
8
8
|
});
|
|
9
|
-
|
|
10
9
|
export type BaseDto = z.infer<typeof _BaseDto>;
|
|
11
10
|
|
|
12
|
-
export const
|
|
11
|
+
export const UPSERT_DTO_MASK = {
|
|
12
|
+
id: true,
|
|
13
|
+
createdAt: true,
|
|
14
|
+
updatedAt: true,
|
|
15
|
+
deletedAt: true,
|
|
16
|
+
} as const;
|
|
13
17
|
|
|
18
|
+
export const _BaseUpsertDto = _BaseDto.partial(UPSERT_DTO_MASK);
|
|
14
19
|
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
15
20
|
|
|
16
21
|
const WithEtag = z.object({etag: z.string()});
|