@arrowsphere/api-client 3.31.0 → 3.32.0-rc-jpb.1

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,5 +1,7 @@
1
1
  import { CatalogGraphQLClient } from './catalog/catalogGraphQLClient';
2
2
  import { AbstractGraphQLClient } from './abstractGraphQLClient';
3
+ import { SecurityScoreGraphQLClient } from './securityScore';
3
4
  export declare class PublicGraphQLClient extends AbstractGraphQLClient {
4
5
  getCatalogGraphQLClient(): CatalogGraphQLClient;
6
+ getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
5
7
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PublicGraphQLClient = void 0;
4
4
  const catalogGraphQLClient_1 = require("./catalog/catalogGraphQLClient");
5
5
  const abstractGraphQLClient_1 = require("./abstractGraphQLClient");
6
+ const securityScore_1 = require("./securityScore");
6
7
  class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
7
8
  getCatalogGraphQLClient() {
8
9
  return new catalogGraphQLClient_1.CatalogGraphQLClient()
@@ -12,6 +13,14 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
12
13
  .setToken(this.token)
13
14
  .setHttpExceptionHandlers(this.httpExceptionHandlers);
14
15
  }
16
+ getSecurityScoreGraphQLClient() {
17
+ return new securityScore_1.SecurityScoreGraphQLClient()
18
+ .setUrl(this.url)
19
+ .setToken(this.token)
20
+ .setHeaders(this.headers)
21
+ .setToken(this.token)
22
+ .setHttpExceptionHandlers(this.httpExceptionHandlers);
23
+ }
15
24
  }
16
25
  exports.PublicGraphQLClient = PublicGraphQLClient;
17
26
  //# sourceMappingURL=publicGraphQLClient.js.map
@@ -8,7 +8,22 @@ export declare class StandardsClient extends AbstractRestfulClient {
8
8
  * The base path of the API
9
9
  */
10
10
  protected basePath: string;
11
+ /**
12
+ * @deprecated
13
+ * Prefer using listSecurityStandardsWithAccountReference
14
+ */
11
15
  listSecurityStandards(subscriptionReference: string, parameters?: Parameters): Promise<GetResult<Standards>>;
16
+ listSecurityStandardsWithAccountReference(subscriptionReference: string, parameters: Parameters | undefined, accountReference: string): Promise<GetResult<Standards>>;
17
+ /**
18
+ * @deprecated
19
+ * Prefer using listSecurityChecksWithAccountReference
20
+ */
12
21
  listSecurityChecks(subscriptionReference: string, standardReference: string, parameters?: Parameters): Promise<GetResult<Checks>>;
22
+ listSecurityChecksWithAccountReference(subscriptionReference: string, standardReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Checks>>;
23
+ /**
24
+ * @deprecated
25
+ * Prefer using listSecurityResourcesWithAccountReference
26
+ */
13
27
  listSecurityResources(subscriptionReference: string, standardReference: string, checkReference: string, parameters?: Parameters): Promise<GetResult<Resources>>;
28
+ listSecurityResourcesWithAccountReference(subscriptionReference: string, standardReference: string, checkReference: string, accountReference: string, parameters?: Parameters): Promise<GetResult<Resources>>;
14
29
  }
@@ -14,18 +14,42 @@ class StandardsClient extends abstractRestfulClient_1.AbstractRestfulClient {
14
14
  */
15
15
  this.basePath = '/security';
16
16
  }
17
+ /**
18
+ * @deprecated
19
+ * Prefer using listSecurityStandardsWithAccountReference
20
+ */
17
21
  async listSecurityStandards(subscriptionReference, parameters = {}) {
18
22
  this.path = `/${subscriptionReference}/standards`;
19
23
  return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
20
24
  }
25
+ async listSecurityStandardsWithAccountReference(subscriptionReference, parameters = {}, accountReference) {
26
+ this.path = `/${subscriptionReference}/accounts/${accountReference}/standards`;
27
+ return new getResult_1.GetResult(standards_1.Standards, await this.get(parameters));
28
+ }
29
+ /**
30
+ * @deprecated
31
+ * Prefer using listSecurityChecksWithAccountReference
32
+ */
21
33
  async listSecurityChecks(subscriptionReference, standardReference, parameters = {}) {
22
34
  this.path = `/${subscriptionReference}/standards/${standardReference}/checks`;
23
35
  return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
24
36
  }
37
+ async listSecurityChecksWithAccountReference(subscriptionReference, standardReference, accountReference, parameters = {}) {
38
+ this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks`;
39
+ return new getResult_1.GetResult(checks_1.Checks, await this.get(parameters));
40
+ }
41
+ /**
42
+ * @deprecated
43
+ * Prefer using listSecurityResourcesWithAccountReference
44
+ */
25
45
  async listSecurityResources(subscriptionReference, standardReference, checkReference, parameters = {}) {
26
46
  this.path = `/${subscriptionReference}/standards/${standardReference}/checks/${checkReference}/resources`;
27
47
  return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
28
48
  }
49
+ async listSecurityResourcesWithAccountReference(subscriptionReference, standardReference, checkReference, accountReference, parameters = {}) {
50
+ this.path = `/${subscriptionReference}/accounts/${accountReference}/standards/${standardReference}/checks/${checkReference}/resources`;
51
+ return new getResult_1.GetResult(resources_1.Resources, await this.get(parameters));
52
+ }
29
53
  }
30
54
  exports.StandardsClient = StandardsClient;
31
55
  //# sourceMappingURL=standardsClient.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.31.0",
7
+ "version": "3.32.0-rc-jpb.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",