@ampsec/platform-client 80.3.1 → 80.4.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectorDto, NotificationDto, ProviderDto } from '../dto';
|
|
1
|
+
import { AssetDto, ConnectorDto, NotificationDto, ProviderDto } from '../dto';
|
|
2
2
|
import { AmpDataService } from './data.service';
|
|
3
3
|
import { AmpRestClientOptions, RestClient } from './rest';
|
|
4
4
|
import { AmpReportService } from './reports.service';
|
|
@@ -29,6 +29,7 @@ export type EngageApiOptions = AmpRestClientOptions;
|
|
|
29
29
|
* - Findings: {@link EngageApi.findings}
|
|
30
30
|
*/
|
|
31
31
|
export declare class EngageApi {
|
|
32
|
+
readonly asset: AmpDataService<AssetDto>;
|
|
32
33
|
readonly connectors: AmpDataService<ConnectorDto>;
|
|
33
34
|
readonly findings: FindingsService;
|
|
34
35
|
readonly identity: UserIdentityService;
|
|
@@ -33,6 +33,7 @@ const engagementConversations_service_1 = require("./engagementConversations.ser
|
|
|
33
33
|
*/
|
|
34
34
|
class EngageApi {
|
|
35
35
|
constructor(rest) {
|
|
36
|
+
this.asset = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS, constants_1.TARGET_API_ENGAGE);
|
|
36
37
|
this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_ENGAGE);
|
|
37
38
|
this.findings = new findings_service_1.FindingsService(rest, constants_1.TARGET_API_ENGAGE);
|
|
38
39
|
this.identity = new UserIdentityService_1.UserIdentityService(rest);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngageApi.js","sourceRoot":"","sources":["../../../src/services/EngageApi.ts"],"names":[],"mappings":";;;AACA,qDAAsD;AACtD,iDAAkE;AAClE,iCAA0E;AAC1E,2CAAoD;AACpD,uDAAyE;AACzE,yDAAsD;AACtD,oEAA+D;AAC/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CAAC,aAAa,GAAG,IAAI,+DAA6B,CAAC,IAAI,EAAE,gBAAI,CAAC,wBAAwB,EAAE,6BAAiB,CAAC,CAAC;IACjH,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAyB;QACvC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AA7BD,8BA6BC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ConnectorDto, ConnectorUpsertDto, NotificationDto, ProviderDto} from '../dto';
|
|
1
|
+
import {AssetDto, ConnectorDto, ConnectorUpsertDto, NotificationDto, ProviderDto} from '../dto';
|
|
2
2
|
import {AmpEntityServiceImpl} from './entity.service';
|
|
3
3
|
import {AmpDataService, AmpDataServiceImpl} from './data.service';
|
|
4
4
|
import {AmpRestClientOptions, RestClient, getAmpRestClient} from './rest';
|
|
@@ -33,6 +33,7 @@ export type EngageApiOptions = AmpRestClientOptions;
|
|
|
33
33
|
* - Findings: {@link EngageApi.findings}
|
|
34
34
|
*/
|
|
35
35
|
export class EngageApi {
|
|
36
|
+
readonly asset: AmpDataService<AssetDto>;
|
|
36
37
|
readonly connectors: AmpDataService<ConnectorDto>;
|
|
37
38
|
readonly findings: FindingsService;
|
|
38
39
|
readonly identity: UserIdentityService;
|
|
@@ -44,6 +45,7 @@ export class EngageApi {
|
|
|
44
45
|
readonly conversations: EngagementConversationService;
|
|
45
46
|
|
|
46
47
|
constructor(rest: RestClient) {
|
|
48
|
+
this.asset = new AmpDataServiceImpl<AssetDto>(rest, KIND.ASSETS, TARGET_API_ENGAGE);
|
|
47
49
|
this.connectors = new AmpEntityServiceImpl<ConnectorUpsertDto, ConnectorDto>(rest, KIND.CONNECTORS, TARGET_API_ENGAGE);
|
|
48
50
|
this.findings = new FindingsService(rest, TARGET_API_ENGAGE);
|
|
49
51
|
this.identity = new UserIdentityService(rest);
|