@ampsec/platform-client 45.6.0 → 45.7.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.
|
@@ -32,7 +32,7 @@ class AmpApi {
|
|
|
32
32
|
this.findings = new findings_service_1.FindingsService(rest);
|
|
33
33
|
this.identity = new AgentIdentityService_1.AgentIdentityService(rest);
|
|
34
34
|
this.install = new ConnectorInstallService_1.ConnectorInstallService(rest);
|
|
35
|
-
this.notifications = new
|
|
35
|
+
this.notifications = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.NOTIFICATIONS);
|
|
36
36
|
this.providers = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.PROVIDERS);
|
|
37
37
|
this.reportResults = new data_service_1.AmpDataServiceImpl(rest, constants_1.KIND.REPORT_RESULTS);
|
|
38
38
|
this.reports = new reports_service_1.AmpReportServiceImpl(rest);
|
|
@@ -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":";;;AAiBA,qDAAwE;AACxE,iDAAkE;AAClE,iCAA0E;AAC1E,2CAAiC;AACjC,uDAAyE;AACzE,oDAAmE;AACnE,yDAAsD;AACtD,sEAAiE;AACjE,4EAAuE;AACvE,yDAAmD;AAInD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IAmBjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,UAAU,GAAG,IAAI,qCAAoB,CAAmC,IAAI,EAAE,gBAAI,CAA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AQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AA3CD,wBA2CC"}
|
package/package.json
CHANGED
package/src/services/AmpApi.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ConnectorDto,
|
|
6
6
|
ConnectorUpsertDto,
|
|
7
7
|
NotificationDto,
|
|
8
|
+
NotificationUpsertDto,
|
|
8
9
|
ProviderDto,
|
|
9
10
|
ReportResultDto,
|
|
10
11
|
SaasAssetDto,
|
|
@@ -66,7 +67,7 @@ export class AmpApi {
|
|
|
66
67
|
this.findings = new FindingsService(rest);
|
|
67
68
|
this.identity = new AgentIdentityService(rest);
|
|
68
69
|
this.install = new ConnectorInstallService(rest);
|
|
69
|
-
this.notifications = new
|
|
70
|
+
this.notifications = new AmpEntityServiceImpl<NotificationUpsertDto, NotificationDto>(rest, KIND.NOTIFICATIONS);
|
|
70
71
|
this.providers = new AmpDataServiceImpl<ProviderDto>(rest, KIND.PROVIDERS);
|
|
71
72
|
this.reportResults = new AmpDataServiceImpl<ReportResultDto>(rest, KIND.REPORT_RESULTS);
|
|
72
73
|
this.reports = new AmpReportServiceImpl(rest);
|