@ampsec/platform-client 59.1.0 → 59.3.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/coverage.dto.d.ts +40 -0
- package/build/src/dto/coverage.dto.js +6 -1
- package/build/src/dto/coverage.dto.js.map +1 -1
- package/build/src/services/AmpSdk.d.ts +4 -1
- package/build/src/services/AmpSdk.js +3 -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/package.json +1 -1
- package/src/dto/coverage.dto.ts +7 -0
- package/src/services/AmpSdk.ts +13 -0
- package/src/services/constants.ts +3 -0
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const _AssetAccountSummary: z.ZodObject<{
|
|
3
|
+
active: z.ZodBoolean;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
active: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
active: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
2
10
|
export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
3
11
|
id: z.ZodOptional<z.ZodString>;
|
|
4
12
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -10,8 +18,18 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
10
18
|
os: z.ZodOptional<z.ZodString>;
|
|
11
19
|
model: z.ZodOptional<z.ZodString>;
|
|
12
20
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21
|
+
assetAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
22
|
+
active: z.ZodBoolean;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
active: boolean;
|
|
25
|
+
}, {
|
|
26
|
+
active: boolean;
|
|
27
|
+
}>, "many">>;
|
|
13
28
|
}, "strip", z.ZodTypeAny, {
|
|
14
29
|
assetAccounts: Record<string, unknown>;
|
|
30
|
+
assetAccounts2: Record<string, {
|
|
31
|
+
active: boolean;
|
|
32
|
+
}[]>;
|
|
15
33
|
id?: string | undefined;
|
|
16
34
|
uid?: string | undefined;
|
|
17
35
|
sn?: string | undefined;
|
|
@@ -23,6 +41,9 @@ export declare const _AssetCoverageSummary: z.ZodObject<{
|
|
|
23
41
|
model?: string | undefined;
|
|
24
42
|
}, {
|
|
25
43
|
assetAccounts: Record<string, unknown>;
|
|
44
|
+
assetAccounts2: Record<string, {
|
|
45
|
+
active: boolean;
|
|
46
|
+
}[]>;
|
|
26
47
|
id?: string | undefined;
|
|
27
48
|
uid?: string | undefined;
|
|
28
49
|
sn?: string | undefined;
|
|
@@ -59,8 +80,18 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
59
80
|
os: z.ZodOptional<z.ZodString>;
|
|
60
81
|
model: z.ZodOptional<z.ZodString>;
|
|
61
82
|
assetAccounts: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
83
|
+
assetAccounts2: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
84
|
+
active: z.ZodBoolean;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
active: boolean;
|
|
87
|
+
}, {
|
|
88
|
+
active: boolean;
|
|
89
|
+
}>, "many">>;
|
|
62
90
|
}, "strip", z.ZodTypeAny, {
|
|
63
91
|
assetAccounts: Record<string, unknown>;
|
|
92
|
+
assetAccounts2: Record<string, {
|
|
93
|
+
active: boolean;
|
|
94
|
+
}[]>;
|
|
64
95
|
id?: string | undefined;
|
|
65
96
|
uid?: string | undefined;
|
|
66
97
|
sn?: string | undefined;
|
|
@@ -72,6 +103,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
72
103
|
model?: string | undefined;
|
|
73
104
|
}, {
|
|
74
105
|
assetAccounts: Record<string, unknown>;
|
|
106
|
+
assetAccounts2: Record<string, {
|
|
107
|
+
active: boolean;
|
|
108
|
+
}[]>;
|
|
75
109
|
id?: string | undefined;
|
|
76
110
|
uid?: string | undefined;
|
|
77
111
|
sn?: string | undefined;
|
|
@@ -87,6 +121,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
87
121
|
userAccounts: Record<string, number>;
|
|
88
122
|
assets: {
|
|
89
123
|
assetAccounts: Record<string, unknown>;
|
|
124
|
+
assetAccounts2: Record<string, {
|
|
125
|
+
active: boolean;
|
|
126
|
+
}[]>;
|
|
90
127
|
id?: string | undefined;
|
|
91
128
|
uid?: string | undefined;
|
|
92
129
|
sn?: string | undefined;
|
|
@@ -113,6 +150,9 @@ export declare const _UserCoverageSummary: z.ZodObject<{
|
|
|
113
150
|
userAccounts: Record<string, number>;
|
|
114
151
|
assets: {
|
|
115
152
|
assetAccounts: Record<string, unknown>;
|
|
153
|
+
assetAccounts2: Record<string, {
|
|
154
|
+
active: boolean;
|
|
155
|
+
}[]>;
|
|
116
156
|
id?: string | undefined;
|
|
117
157
|
uid?: string | undefined;
|
|
118
158
|
sn?: string | undefined;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = void 0;
|
|
3
|
+
exports._UserCoverageReport = exports._UserCoverageSummary = exports._AssetCoverageSummary = exports._AssetAccountSummary = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assets_dto_1 = require("./assets.dto");
|
|
6
6
|
const saasAssets_dto_1 = require("./saasAssets.dto");
|
|
7
7
|
const saasUsers_dto_1 = require("./saasUsers.dto");
|
|
8
8
|
const users_dto_1 = require("./users.dto");
|
|
9
|
+
exports._AssetAccountSummary = zod_1.z.object({
|
|
10
|
+
active: zod_1.z.boolean(),
|
|
11
|
+
});
|
|
9
12
|
exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.object({
|
|
13
|
+
/** @deprecated */
|
|
10
14
|
assetAccounts: zod_1.z.record(zod_1.z.unknown()),
|
|
15
|
+
assetAccounts2: zod_1.z.record(zod_1.z.array(exports._AssetAccountSummary)),
|
|
11
16
|
}));
|
|
12
17
|
exports._UserCoverageSummary = users_dto_1._SimpleUserDto.merge(zod_1.z.object({
|
|
13
18
|
name: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;IACpC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC;CACxD,CAAC,CACH,CAAC;AAGW,QAAA,oBAAoB,GAAG,0BAAc,CAAC,KAAK,CACtD,OAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;CACvC,CAAC,CACH,CAAC;AAGW,QAAA,mBAAmB,GAAG,0BAAc,CAAC,KAAK,CACrD,OAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAY,CAAC,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAS,CAAC;CAC3B,CAAC,CACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
|
|
1
|
+
import { PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformFindingDto, PlatformFindingUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasAssetDto, PlatformSaasAssetUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformSaasUserDto, PlatformSaasUserUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
|
|
2
2
|
import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService } from './entity.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
4
|
import { PlatformJobSpecDto, PlatformJobSpecUpsertDto } from '../dto/platform/platform.jobSpec.dto';
|
|
@@ -38,6 +38,9 @@ export declare class AmpSdkServices {
|
|
|
38
38
|
readonly saasAssets: AmpSdkSaasAssetService;
|
|
39
39
|
readonly saasComponents: AmpSdkSaasComponentService;
|
|
40
40
|
readonly saasUsers: AmpSdkSaasUserService;
|
|
41
|
+
readonly stagedSaasAssets: AmpEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
|
|
42
|
+
readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
|
|
43
|
+
readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
|
|
41
44
|
readonly settings: AmpSdkSettingsService;
|
|
42
45
|
readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
|
|
43
46
|
readonly users: AmpSdkUserService;
|
|
@@ -38,6 +38,9 @@ class AmpSdkServices {
|
|
|
38
38
|
this.saasAssets = new saasEntity_service_1.AmpSdkSaasAssetService(rest, constants_1.TARGET_API_PLATFORM);
|
|
39
39
|
this.saasComponents = new saasEntity_service_1.AmpSdkSaasComponentService(rest, constants_1.TARGET_API_PLATFORM);
|
|
40
40
|
this.saasUsers = new saasEntity_service_1.AmpSdkSaasUserService(rest, constants_1.TARGET_API_PLATFORM);
|
|
41
|
+
this.stagedSaasAssets = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_ASSETS, constants_1.TARGET_API_PLATFORM);
|
|
42
|
+
this.stagedSaaSComponents = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_COMPONENTS, constants_1.TARGET_API_PLATFORM);
|
|
43
|
+
this.stagedSaaSUsers = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.STAGED_SAAS_USERS, constants_1.TARGET_API_PLATFORM);
|
|
41
44
|
this.settings = new settings_service_1.AmpSdkSettingsService(rest);
|
|
42
45
|
this.tenants = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.TENANTS, constants_1.TARGET_API_PLATFORM);
|
|
43
46
|
this.users = new entity_service_1.AmpSdkUserService(rest, 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":";;;AAwBA,qDAAoI;AACpI,iCAA0E;AAC1E,2CAAsD;AAGtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAKnE;;;;;;;;GAQG;AACH,MAAa,cAAc;IA0BzB,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,KAAK,GAAG,IAAI,gCAAkB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAC/D,I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B,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QAChF,IAAI,CAAC,SAAS,GAAG,IAAI,0CAAqB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;QACtE,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAoB,CAAmD,IAAI,EAAE,gBAAI,CAAC,kBAAkB,EAAE,+BAAmB,CAAC,CAAC;QACvJ,IAAI,CAAC,oBAAoB,GAAG,IAAI,qCAAoB,CAA2D,IAAI,EAAE,gBAAI,CAAC,sBAAsB,EAAE,+BAAmB,CAAC,CAAC;QACvK,IAAI,CAAC,eAAe,GAAG,IAAI,qCAAoB,CAAiD,IAAI,EAAE,gBAAI,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QAEnJ,IAAI,CAAC,QAAQ,GAAG,IAAI,wCAAqB,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,EAAE,+BAAmB,CAAC,CAAC;QAC7G,IAAI,CAAC,KAAK,GAAG,IAAI,kCAAiB,CAAC,IAAI,EAAE,+BAAmB,CAAC,CAAC;IAChE,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;AA1DD,wCA0DC"}
|
|
@@ -26,6 +26,9 @@ export declare const KIND: {
|
|
|
26
26
|
SAAS_ASSETS: string;
|
|
27
27
|
SAAS_COMPONENTS: string;
|
|
28
28
|
SAAS_USERS: string;
|
|
29
|
+
STAGED_SAAS_ASSETS: string;
|
|
30
|
+
STAGED_SAAS_COMPONENTS: string;
|
|
31
|
+
STAGED_SAAS_USERS: string;
|
|
29
32
|
TENANTS: string;
|
|
30
33
|
USERS: string;
|
|
31
34
|
USERS_INSIGHTS: string;
|
|
@@ -25,6 +25,9 @@ exports.KIND = {
|
|
|
25
25
|
SAAS_ASSETS: 'saas_assets',
|
|
26
26
|
SAAS_COMPONENTS: 'saas_components',
|
|
27
27
|
SAAS_USERS: 'saas_users',
|
|
28
|
+
STAGED_SAAS_ASSETS: 'staged_saas_assets',
|
|
29
|
+
STAGED_SAAS_COMPONENTS: 'staged_saas_components',
|
|
30
|
+
STAGED_SAAS_USERS: 'staged_saas_users',
|
|
28
31
|
TENANTS: 'tenants',
|
|
29
32
|
USERS: 'users',
|
|
30
33
|
USERS_INSIGHTS: 'coverage',
|
|
@@ -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,eAAe;IACnC,WAAW,EAAE,QAAQ;IACrB,QAAQ,EAAE,UAAU;IACpB,iBAAiB,EAAE,mBAAmB;IACtC,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,eAAe;IAC9B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,UAAU;IAC1B,iBAAiB,EAAE,mBAAmB;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,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,UAAU;IAC1B,iBAAiB,EAAE,mBAAmB;CACvC,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,YAAY,EAAE,cAAc;IAC5B,yBAAyB,EAAE,qCAAqC;IAChE,yBAAyB,EAAE,qCAAqC;IAChE,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,2BAA2B,EAAE,6BAA6B;IAC1D,YAAY,EAAE,0BAA0B;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,WAAW,EAAE,aAAa;IAC1B,mBAAmB;IACnB,kBAAkB,EAAE,sBAAsB;CAC3C,CAAC"}
|
package/package.json
CHANGED
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -4,9 +4,16 @@ import {_SaasAssetDto} from './saasAssets.dto';
|
|
|
4
4
|
import {_SaasUserDto} from './saasUsers.dto';
|
|
5
5
|
import {_SimpleUserDto} from './users.dto';
|
|
6
6
|
|
|
7
|
+
export const _AssetAccountSummary = z.object({
|
|
8
|
+
active: z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
export type AssetAccountSummary = z.infer<typeof _AssetAccountSummary>;
|
|
11
|
+
|
|
7
12
|
export const _AssetCoverageSummary = _SummaryAssetDto.merge(
|
|
8
13
|
z.object({
|
|
14
|
+
/** @deprecated */
|
|
9
15
|
assetAccounts: z.record(z.unknown()),
|
|
16
|
+
assetAccounts2: z.record(z.array(_AssetAccountSummary)),
|
|
10
17
|
})
|
|
11
18
|
);
|
|
12
19
|
export type AssetCoverageSummary = z.infer<typeof _AssetCoverageSummary>;
|
package/src/services/AmpSdk.ts
CHANGED
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
PlatformReportResultUpsertDto,
|
|
13
13
|
PlatformRiskContributorDto,
|
|
14
14
|
PlatformRiskContributorUpsertDto,
|
|
15
|
+
PlatformSaasAssetDto,
|
|
16
|
+
PlatformSaasAssetUpsertDto,
|
|
17
|
+
PlatformSaasComponentDto,
|
|
18
|
+
PlatformSaasComponentUpsertDto,
|
|
19
|
+
PlatformSaasUserDto,
|
|
20
|
+
PlatformSaasUserUpsertDto,
|
|
15
21
|
ProviderDto,
|
|
16
22
|
TenantDto,
|
|
17
23
|
TenantUpsertDto,
|
|
@@ -58,6 +64,9 @@ export class AmpSdkServices {
|
|
|
58
64
|
readonly saasAssets: AmpSdkSaasAssetService;
|
|
59
65
|
readonly saasComponents: AmpSdkSaasComponentService;
|
|
60
66
|
readonly saasUsers: AmpSdkSaasUserService;
|
|
67
|
+
readonly stagedSaasAssets: AmpEntityService<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>;
|
|
68
|
+
readonly stagedSaaSComponents: AmpEntityService<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>;
|
|
69
|
+
readonly stagedSaaSUsers: AmpEntityService<PlatformSaasUserUpsertDto, PlatformSaasUserDto>;
|
|
61
70
|
readonly settings: AmpSdkSettingsService;
|
|
62
71
|
readonly tenants: AmpSdkTenantService<TenantUpsertDto, TenantDto>;
|
|
63
72
|
readonly users: AmpSdkUserService;
|
|
@@ -81,6 +90,10 @@ export class AmpSdkServices {
|
|
|
81
90
|
this.saasAssets = new AmpSdkSaasAssetService(rest, TARGET_API_PLATFORM);
|
|
82
91
|
this.saasComponents = new AmpSdkSaasComponentService(rest, TARGET_API_PLATFORM);
|
|
83
92
|
this.saasUsers = new AmpSdkSaasUserService(rest, TARGET_API_PLATFORM);
|
|
93
|
+
this.stagedSaasAssets = new AmpEntityServiceImpl<PlatformSaasAssetUpsertDto, PlatformSaasAssetDto>(rest, KIND.STAGED_SAAS_ASSETS, TARGET_API_PLATFORM);
|
|
94
|
+
this.stagedSaaSComponents = new AmpEntityServiceImpl<PlatformSaasComponentUpsertDto, PlatformSaasComponentDto>(rest, KIND.STAGED_SAAS_COMPONENTS, TARGET_API_PLATFORM);
|
|
95
|
+
this.stagedSaaSUsers = new AmpEntityServiceImpl<PlatformSaasUserUpsertDto, PlatformSaasUserDto>(rest, KIND.STAGED_SAAS_USERS, TARGET_API_PLATFORM);
|
|
96
|
+
|
|
84
97
|
this.settings = new AmpSdkSettingsService(rest);
|
|
85
98
|
this.tenants = new AmpEntityServiceImpl<TenantUpsertDto, TenantDto>(rest, KIND.TENANTS, TARGET_API_PLATFORM);
|
|
86
99
|
this.users = new AmpSdkUserService(rest, TARGET_API_PLATFORM);
|
|
@@ -29,6 +29,9 @@ export const KIND = {
|
|
|
29
29
|
SAAS_ASSETS: 'saas_assets',
|
|
30
30
|
SAAS_COMPONENTS: 'saas_components',
|
|
31
31
|
SAAS_USERS: 'saas_users',
|
|
32
|
+
STAGED_SAAS_ASSETS: 'staged_saas_assets',
|
|
33
|
+
STAGED_SAAS_COMPONENTS: 'staged_saas_components',
|
|
34
|
+
STAGED_SAAS_USERS: 'staged_saas_users',
|
|
32
35
|
TENANTS: 'tenants',
|
|
33
36
|
USERS: 'users',
|
|
34
37
|
USERS_INSIGHTS: 'coverage',
|