@ampsec/platform-client 59.6.0 → 59.6.2
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/AmpApi.d.ts +2 -0
- package/build/src/services/AmpApi.js +2 -0
- package/build/src/services/AmpApi.js.map +1 -1
- package/build/src/services/flowSpecs.service.js +1 -1
- package/build/src/services/flowSpecs.service.js.map +1 -1
- package/package.json +1 -1
- package/src/services/AmpApi.ts +3 -0
- package/src/services/flowSpecs.service.ts +1 -1
|
@@ -2,6 +2,7 @@ import { AgentDto, AgentUpsertDto, AssetDto, ProviderDto, ReportResultDto, SaasA
|
|
|
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';
|
|
5
|
+
import { FlowSpecsService } from './flowSpecs.service';
|
|
5
6
|
export type AmpApiOptions = AmpRestClientOptions;
|
|
6
7
|
/**
|
|
7
8
|
* AMP API
|
|
@@ -22,6 +23,7 @@ export declare class AmpApi {
|
|
|
22
23
|
readonly enums: EnumService;
|
|
23
24
|
readonly findings: FindingsService;
|
|
24
25
|
readonly findingsInsights: FindingsInsightsService;
|
|
26
|
+
readonly flowSpecs: FlowSpecsService;
|
|
25
27
|
readonly identity: AgentIdentityService;
|
|
26
28
|
readonly install: ConnectorInstallService;
|
|
27
29
|
readonly notifications: NotificationService;
|
|
@@ -5,6 +5,7 @@ const _1 = require(".");
|
|
|
5
5
|
const constants_1 = require("./constants");
|
|
6
6
|
const rest_1 = require("./rest");
|
|
7
7
|
const usersInsights_service_1 = require("./usersInsights.service");
|
|
8
|
+
const flowSpecs_service_1 = require("./flowSpecs.service");
|
|
8
9
|
/**
|
|
9
10
|
* AMP API
|
|
10
11
|
* This client is a wrapper around the AMP REST API meant to be used by
|
|
@@ -25,6 +26,7 @@ class AmpApi {
|
|
|
25
26
|
this.enums = new rest_1.DefaultEnumService(rest);
|
|
26
27
|
this.findings = new _1.FindingsService(rest);
|
|
27
28
|
this.findingsInsights = new _1.FindingsInsightsService(rest, constants_1.KIND.FINDINGS_INSIGHTS);
|
|
29
|
+
this.flowSpecs = new flowSpecs_service_1.FlowSpecsService(rest);
|
|
28
30
|
this.identity = new rest_1.AgentIdentityService(rest);
|
|
29
31
|
this.install = new rest_1.ConnectorInstallService(rest, constants_1.TARGET_API_AGENT);
|
|
30
32
|
this.notifications = new _1.NotificationService(rest);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AACA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;
|
|
1
|
+
{"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AACA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AAIrD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IAuBjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,IAAI,yBAAkB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAe,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,gBAAgB,GAAG,IAAI,0BAAuB,CAAC,IAAI,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GAAG,IAAI,oBAAiB,CAAC,IAAI,EAAE,gBAAI,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,OAAsB;QACpC,MAAM,IAAI,GAAG,IAAA,uBAAgB,EAAC,OAAO,CAAC,CAAC;QACvC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAnDD,wBAmDC"}
|
|
@@ -5,7 +5,7 @@ const constants_1 = require("./constants");
|
|
|
5
5
|
const entity_service_1 = require("./entity.service");
|
|
6
6
|
class FlowSpecsService extends entity_service_1.AmpEntityServiceImpl {
|
|
7
7
|
constructor(rest) {
|
|
8
|
-
super(rest, constants_1.KIND.
|
|
8
|
+
super(rest, constants_1.KIND.FLOW_SPECS);
|
|
9
9
|
/** @deprecated Use `createFromName` instead */
|
|
10
10
|
this.create = (_model, _options) => {
|
|
11
11
|
throw new Error('Method not implemented.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowSpecs.service.js","sourceRoot":"","sources":["../../../src/services/flowSpecs.service.ts"],"names":[],"mappings":";;;AAGA,2CAAiC;AACjC,qDAAyE;AAEzE,MAAa,gBAAiB,SAAQ,qCAAoD;IACxF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"flowSpecs.service.js","sourceRoot":"","sources":["../../../src/services/flowSpecs.service.ts"],"names":[],"mappings":";;;AAGA,2CAAiC;AACjC,qDAAyE;AAEzE,MAAa,gBAAiB,SAAQ,qCAAoD;IACxF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,UAAU,CAAC,CAAC;QAG/B,+CAA+C;QAC/C,WAAM,GAAG,CAAC,MAA+C,EAAE,QAA4B,EAA8B,EAAE;YACrH,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEF,mBAAc,GAAG,KAAK,EAAE,KAAwB,EAAwB,EAAE;YACxE,MAAM,GAAG,GAAsB,MAAM,IAAI,CAAC,IAAI,CAC5C;gBACE,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,EAAE;gBACzC,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,KAAK;aACZ,EACD,CAAC,KAAc,EAAE,EAAE;gBACjB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;gBACzE,OAAO;oBACL,IAAI,EAAE,EAAE;oBACR,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;oBAC7B,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,EAAE;iBACV,CAAC;YACJ,CAAC,CACF,CAAC;YACF,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,CAAC;IAzBF,CAAC;CA0BF;AA7BD,4CA6BC"}
|
package/package.json
CHANGED
package/src/services/AmpApi.ts
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import {KIND, TARGET_API_AGENT} from './constants';
|
|
17
17
|
import {getAmpRestClient, AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, DefaultEnumService, EnumService, RestClient} from './rest';
|
|
18
18
|
import {UsersInsightsService} from './usersInsights.service';
|
|
19
|
+
import {FlowSpecsService} from './flowSpecs.service';
|
|
19
20
|
|
|
20
21
|
export type AmpApiOptions = AmpRestClientOptions;
|
|
21
22
|
|
|
@@ -38,6 +39,7 @@ export class AmpApi {
|
|
|
38
39
|
readonly enums: EnumService;
|
|
39
40
|
readonly findings: FindingsService;
|
|
40
41
|
readonly findingsInsights: FindingsInsightsService;
|
|
42
|
+
readonly flowSpecs: FlowSpecsService;
|
|
41
43
|
readonly identity: AgentIdentityService;
|
|
42
44
|
readonly install: ConnectorInstallService;
|
|
43
45
|
readonly notifications: NotificationService;
|
|
@@ -60,6 +62,7 @@ export class AmpApi {
|
|
|
60
62
|
this.enums = new DefaultEnumService(rest);
|
|
61
63
|
this.findings = new FindingsService(rest);
|
|
62
64
|
this.findingsInsights = new FindingsInsightsService(rest, KIND.FINDINGS_INSIGHTS);
|
|
65
|
+
this.flowSpecs = new FlowSpecsService(rest);
|
|
63
66
|
this.identity = new AgentIdentityService(rest);
|
|
64
67
|
this.install = new ConnectorInstallService(rest, TARGET_API_AGENT);
|
|
65
68
|
this.notifications = new NotificationService(rest);
|
|
@@ -6,7 +6,7 @@ import {AmpEntityServiceImpl, EntityCallOptions} from './entity.service';
|
|
|
6
6
|
|
|
7
7
|
export class FlowSpecsService extends AmpEntityServiceImpl<FlowSpecUpsertDto, FlowSpecDto> {
|
|
8
8
|
constructor(rest: RestClient) {
|
|
9
|
-
super(rest, KIND.
|
|
9
|
+
super(rest, KIND.FLOW_SPECS);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/** @deprecated Use `createFromName` instead */
|