@ampsec/platform-client 64.0.0 → 64.1.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 { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformAgentDto, PlatformAgentUpsertDto, PlatformConnectorDto, PlatformConnectorUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
1
+ import { PlatformActionExecutionDto, PlatformActionExecutionUpsertDto, PlatformAgentDto, PlatformAgentUpsertDto, PlatformCustomActionDto, PlatformCustomActionUpsertDto, PlatformCustomScoreCohortDto, PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreValueDto, PlatformCustomScoreValueUpsertDto, PlatformFindingDto, PlatformFindingSpecDto, PlatformFindingSpecUpsertDto, PlatformFindingUpsertDto, PlatformFlowSpecDto, PlatformFlowSpecUpsertDto, PlatformFlowStateDto, PlatformFlowStateUpsertDto, PlatformJobExecutionStateDto, PlatformJobExecutionStateUpsertDto, PlatformJobSpecDto, PlatformJobSpecUpsertDto, PlatformNotificationDto, PlatformNotificationUpsertDto, PlatformProviderUpsertDto, PlatformReportResultDto, PlatformReportResultUpsertDto, PlatformRiskContributorDto, PlatformRiskContributorUpsertDto, PlatformSaasComponentDto, PlatformSaasComponentUpsertDto, PlatformStagedSaasAssetDto, PlatformStagedSaasAssetUpsertDto, PlatformStagedSaasUserDto, PlatformStagedSaasUserUpsertDto, PlatformTokenDto, PlatformTokenUpsertDto, ProviderDto, TenantDto, TenantUpsertDto } from '../dto';
2
2
  import { AmpEntityService, AmpSdkAssetService, AmpSdkTenantService, AmpSdkUserService, TruncatableAmpEntityService } from './entity.service';
3
3
  import { AmpRestClientOptions, RestClient } from './rest';
4
4
  import { EnumService } from './rest/EnumService';
@@ -6,6 +6,7 @@ import { AmpSdkSettingsService } from './settings.service';
6
6
  import { AmpSaaSEntityService, AmpSdkSaasAssetService, AmpSdkSaasComponentService, AmpSdkSaasUserService } from './saasEntity.service';
7
7
  import { ContentfulService } from './contentful.service';
8
8
  import { FindingsInsightsService } from './findingsInsights.service';
9
+ import { PlatformConnectorService } from './connector.platform.service';
9
10
  export type AmpSdkOptions = AmpRestClientOptions;
10
11
  /**
11
12
  * AMP API
@@ -20,7 +21,7 @@ export declare class AmpSdkServices {
20
21
  readonly actionExecutions: AmpEntityService<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>;
21
22
  readonly agents: AmpEntityService<PlatformAgentUpsertDto, PlatformAgentDto>;
22
23
  readonly asset: AmpSdkAssetService;
23
- readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
24
+ readonly connectors: PlatformConnectorService;
24
25
  readonly contentful: ContentfulService;
25
26
  readonly customActions: AmpEntityService<PlatformCustomActionUpsertDto, PlatformCustomActionDto>;
26
27
  readonly customScoreCohorts: AmpEntityService<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>;
@@ -9,6 +9,7 @@ const settings_service_1 = require("./settings.service");
9
9
  const saasEntity_service_1 = require("./saasEntity.service");
10
10
  const contentful_service_1 = require("./contentful.service");
11
11
  const findingsInsights_service_1 = require("./findingsInsights.service");
12
+ const connector_platform_service_1 = require("./connector.platform.service");
12
13
  /**
13
14
  * AMP API
14
15
  * This client is a wrapper around the AMP REST API meant to be used by
@@ -23,7 +24,7 @@ class AmpSdkServices {
23
24
  this.actionExecutions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.ACTION_EXECUTION, constants_1.TARGET_API_PLATFORM);
24
25
  this.agents = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.AGENTS, constants_1.TARGET_API_PLATFORM);
25
26
  this.asset = new entity_service_1.AmpSdkAssetService(rest, constants_1.TARGET_API_PLATFORM);
26
- this.connectors = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_PLATFORM);
27
+ this.connectors = new connector_platform_service_1.PlatformConnectorService(rest);
27
28
  this.contentful = new contentful_service_1.ContentfulService();
28
29
  this.customActions = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS, constants_1.TARGET_API_PLATFORM);
29
30
  this.customScoreCohorts = new entity_service_1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS, constants_1.TARGET_API_PLATFORM);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpSdk.js","sourceRoot":"","sources":["../../../src/services/AmpSdk.ts"],"names":[],"mappings":";;;AA8CA,qDAQ0B;AAC1B,iCAA0E;AAC1E,2CAAsD;AACtD,oDAAmE;AACnE,yDAAyD;AACzD,6DAA+J;AAC/J,6DAAuD;AACvD,yEAAmE;AAInE;;;;;;;;GAQG;AACH,MAAa,cAAc;IAgCzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qCAAoB,CAA+D,IAAI,EAAE,gBAAI,CAAC,gBAAgB,EAAE,+BAAmB,CAAC,CAAC;QACjK,IAAI,CAAC,MAAM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AC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,qCAAoB,CAA6B,IAAI,EAAE,gBAAI,CAAC,OAAO,EAAE,+BAAmB,CAAC,CAAC;QAC7G,IAAI,CAAC,MAAM,GAAG,IAAI,qCAAoB,CAA2C,IAAI,EAAE,gBAAI,CAAC,MAAM,EAAE,+BAAmB,CAAC,CAAC;QACzH,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;AA1ED,wCA0EC"}
@@ -0,0 +1,7 @@
1
+ import { PlatformConnectorDto, PlatformConnectorUpsertDto } from '../dto';
2
+ import { AmpEntityServiceImpl } from './entity.service';
3
+ import { RestClient } from './rest';
4
+ export declare class PlatformConnectorService extends AmpEntityServiceImpl<PlatformConnectorUpsertDto, PlatformConnectorDto> {
5
+ constructor(rest: RestClient);
6
+ seedFindings(id: string): Promise<void>;
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformConnectorService = void 0;
4
+ const constants_1 = require("./constants");
5
+ const entity_service_1 = require("./entity.service");
6
+ class PlatformConnectorService extends entity_service_1.AmpEntityServiceImpl {
7
+ constructor(rest) {
8
+ super(rest, constants_1.KIND.CONNECTORS, constants_1.TARGET_API_PLATFORM);
9
+ }
10
+ async seedFindings(id) {
11
+ await this.getPage({
12
+ url: `/${this.targetApi}/v1/${this.kind}/${id}/seed_findings`,
13
+ method: 'POST',
14
+ });
15
+ return;
16
+ }
17
+ }
18
+ exports.PlatformConnectorService = PlatformConnectorService;
19
+ //# sourceMappingURL=connector.platform.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector.platform.service.js","sourceRoot":"","sources":["../../../src/services/connector.platform.service.ts"],"names":[],"mappings":";;;AACA,2CAAsD;AACtD,qDAAsD;AAGtD,MAAa,wBAAyB,SAAQ,qCAAsE;IAClH,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,EAAU;QAC3B,MAAM,IAAI,CAAC,OAAO,CAAC;YACjB,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,gBAAgB;YAC7D,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;QACH,OAAO;IACT,CAAC;CACF;AAZD,4DAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "64.0.0",
3
+ "version": "64.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -3,8 +3,6 @@ import {
3
3
  PlatformActionExecutionUpsertDto,
4
4
  PlatformAgentDto,
5
5
  PlatformAgentUpsertDto,
6
- PlatformConnectorDto,
7
- PlatformConnectorUpsertDto,
8
6
  PlatformCustomActionDto,
9
7
  PlatformCustomActionUpsertDto,
10
8
  PlatformCustomScoreCohortDto,
@@ -60,6 +58,7 @@ import {AmpSdkSettingsService} from './settings.service';
60
58
  import {AmpSaaSEntityService, AmpSaaSEntityServiceImpl, AmpSdkSaasAssetService, AmpSdkSaasComponentService, AmpSdkSaasUserService} from './saasEntity.service';
61
59
  import {ContentfulService} from './contentful.service';
62
60
  import {FindingsInsightsService} from './findingsInsights.service';
61
+ import {PlatformConnectorService} from './connector.platform.service';
63
62
 
64
63
  export type AmpSdkOptions = AmpRestClientOptions;
65
64
 
@@ -76,7 +75,7 @@ export class AmpSdkServices {
76
75
  readonly actionExecutions: AmpEntityService<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>;
77
76
  readonly agents: AmpEntityService<PlatformAgentUpsertDto, PlatformAgentDto>;
78
77
  readonly asset: AmpSdkAssetService;
79
- readonly connectors: AmpEntityService<PlatformConnectorUpsertDto, PlatformConnectorDto>;
78
+ readonly connectors: PlatformConnectorService;
80
79
  readonly contentful: ContentfulService;
81
80
  readonly customActions: AmpEntityService<PlatformCustomActionUpsertDto, PlatformCustomActionDto>;
82
81
  readonly customScoreCohorts: AmpEntityService<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>;
@@ -108,7 +107,7 @@ export class AmpSdkServices {
108
107
  this.actionExecutions = new AmpEntityServiceImpl<PlatformActionExecutionUpsertDto, PlatformActionExecutionDto>(rest, KIND.ACTION_EXECUTION, TARGET_API_PLATFORM);
109
108
  this.agents = new AmpEntityServiceImpl<PlatformAgentUpsertDto, PlatformAgentDto>(rest, KIND.AGENTS, TARGET_API_PLATFORM);
110
109
  this.asset = new AmpSdkAssetService(rest, TARGET_API_PLATFORM);
111
- this.connectors = new AmpEntityServiceImpl<PlatformConnectorUpsertDto, PlatformConnectorDto>(rest, KIND.CONNECTORS, TARGET_API_PLATFORM);
110
+ this.connectors = new PlatformConnectorService(rest);
112
111
  this.contentful = new ContentfulService();
113
112
  this.customActions = new AmpEntityServiceImpl<PlatformCustomActionUpsertDto, PlatformCustomActionDto>(rest, KIND.CUSTOM_ACTIONS, TARGET_API_PLATFORM);
114
113
  this.customScoreCohorts = new AmpEntityServiceImpl<PlatformCustomScoreCohortUpsertDto, PlatformCustomScoreCohortDto>(rest, KIND.CUSTOM_SCORE_COHORTS, TARGET_API_PLATFORM);
@@ -0,0 +1,18 @@
1
+ import {PlatformConnectorDto, PlatformConnectorUpsertDto} from '../dto';
2
+ import {KIND, TARGET_API_PLATFORM} from './constants';
3
+ import {AmpEntityServiceImpl} from './entity.service';
4
+ import {RestClient} from './rest';
5
+
6
+ export class PlatformConnectorService extends AmpEntityServiceImpl<PlatformConnectorUpsertDto, PlatformConnectorDto> {
7
+ constructor(rest: RestClient) {
8
+ super(rest, KIND.CONNECTORS, TARGET_API_PLATFORM);
9
+ }
10
+
11
+ async seedFindings(id: string): Promise<void> {
12
+ await this.getPage({
13
+ url: `/${this.targetApi}/v1/${this.kind}/${id}/seed_findings`,
14
+ method: 'POST',
15
+ });
16
+ return;
17
+ }
18
+ }