@ampsec/platform-client 59.1.0 → 59.2.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/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/services/AmpSdk.ts +13 -0
- package/src/services/constants.ts +3 -0
|
@@ -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,IAAI,CAAC,QAAQ,GAAG,IAAI,6CAAwB,CAA+C,IAAI,EAAE,gBAAI,CAAC,QAAQ,EAAE,+BAAmB,CAAC,CAAC;QACrI,IAAI,CAAC,gBAAgB,GAAG,IAAI,kDAAuB,CAAC,IAAI,EAAE,gBAAI,CAAC,iBAAiB,EAAE,+BAAmB,CAAC,CAAC;QACvG,IAAI,CAAC,SAAS,GAAG,IAAI,6CAAwB,CAAiD,IAAI,EAAE,gBAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,CAAC;QAC1I,IAAI,CAAC,UAAU,GAAG,IAAI,6CAAwB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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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B;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/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',
|