@arrowsphere/api-client 3.46.0-rc.bdj.3 → 3.46.0-rc.bdj.4
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,7 +1,9 @@
|
|
|
1
1
|
import { CatalogGraphQLClient } from './catalog/catalogGraphQLClient';
|
|
2
2
|
import { AbstractGraphQLClient } from './abstractGraphQLClient';
|
|
3
3
|
import { SecurityScoreGraphQLClient } from './securityScore';
|
|
4
|
+
import { GraphqlApiClient } from './graphqlApi';
|
|
4
5
|
export declare class PublicGraphQLClient extends AbstractGraphQLClient {
|
|
5
6
|
getCatalogGraphQLClient(): CatalogGraphQLClient;
|
|
6
7
|
getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
|
|
8
|
+
getGraphqlApiClient(): GraphqlApiClient;
|
|
7
9
|
}
|
|
@@ -4,6 +4,7 @@ exports.PublicGraphQLClient = void 0;
|
|
|
4
4
|
const catalogGraphQLClient_1 = require("./catalog/catalogGraphQLClient");
|
|
5
5
|
const abstractGraphQLClient_1 = require("./abstractGraphQLClient");
|
|
6
6
|
const securityScore_1 = require("./securityScore");
|
|
7
|
+
const graphqlApi_1 = require("./graphqlApi");
|
|
7
8
|
class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
8
9
|
getCatalogGraphQLClient() {
|
|
9
10
|
return new catalogGraphQLClient_1.CatalogGraphQLClient()
|
|
@@ -21,6 +22,14 @@ class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient
|
|
|
21
22
|
.setToken(this.token)
|
|
22
23
|
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
23
24
|
}
|
|
25
|
+
getGraphqlApiClient() {
|
|
26
|
+
return new graphqlApi_1.GraphqlApiClient()
|
|
27
|
+
.setUrl(this.url)
|
|
28
|
+
.setToken(this.token)
|
|
29
|
+
.setHeaders(this.headers)
|
|
30
|
+
.setToken(this.token)
|
|
31
|
+
.setHttpExceptionHandlers(this.httpExceptionHandlers);
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
exports.PublicGraphQLClient = PublicGraphQLClient;
|
|
26
35
|
//# sourceMappingURL=publicGraphQLClient.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.46.0-rc.bdj.
|
|
7
|
+
"version": "3.46.0-rc.bdj.4",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|