@arrowsphere/api-client 3.55.0-rc.fdi.4 → 3.55.0-rc.fdi.6
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.
|
@@ -20,7 +20,6 @@ export declare abstract class AbstractGraphQLClient extends AbstractHttpClient {
|
|
|
20
20
|
private getClientInstance;
|
|
21
21
|
setOptions(options: Options): this;
|
|
22
22
|
protected post<GraphQLResponseTypes>(query: string): Promise<GraphQLResponseTypes>;
|
|
23
|
-
private request;
|
|
24
23
|
private applyHeaders;
|
|
25
24
|
private generateUrl;
|
|
26
25
|
protected stringifyQuery(query: any): string;
|
|
@@ -48,7 +48,15 @@ class AbstractGraphQLClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
48
48
|
async post(query) {
|
|
49
49
|
try {
|
|
50
50
|
this.applyHeaders();
|
|
51
|
-
|
|
51
|
+
if (this.isLogging) {
|
|
52
|
+
console.info('GRAPHQL - Instance : ', this.getClientInstance());
|
|
53
|
+
console.info('GRAPHQL - Query : ', query);
|
|
54
|
+
}
|
|
55
|
+
const response = await this.getClientInstance().request(query);
|
|
56
|
+
if (this.isLogging) {
|
|
57
|
+
console.info('GRAPHQL - Response : ', response);
|
|
58
|
+
}
|
|
59
|
+
return response;
|
|
52
60
|
}
|
|
53
61
|
catch (error) {
|
|
54
62
|
const exception = this.mapToPublicApiException(error);
|
|
@@ -60,16 +68,6 @@ class AbstractGraphQLClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
60
68
|
throw error;
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
|
-
async request(query) {
|
|
64
|
-
if (this.isLogging) {
|
|
65
|
-
console.info('GRAPHQL - Query : ', query);
|
|
66
|
-
}
|
|
67
|
-
const response = await this.getClientInstance().request(query);
|
|
68
|
-
if (this.isLogging) {
|
|
69
|
-
console.info('GRAPHQL - Response : ', response);
|
|
70
|
-
}
|
|
71
|
-
return response;
|
|
72
|
-
}
|
|
73
71
|
applyHeaders() {
|
|
74
72
|
const headers = {
|
|
75
73
|
authorization: this.token,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Merge, Schema } from 'type-fest';
|
|
2
2
|
import { AccountAttributeType } from './accountGraphQLTypes';
|
|
3
3
|
import { AccountAttributeSchema } from './accountGraphQLSchemas';
|
|
4
|
-
export declare type GetAccountQuery =
|
|
4
|
+
export declare type GetAccountQuery = {
|
|
5
|
+
getUsers?: GetAccountQueryRequest;
|
|
6
|
+
};
|
|
7
|
+
export declare type GetAccountQueryRequest = Merge<{
|
|
5
8
|
__args: QueryAccountArgument;
|
|
6
9
|
}, AccountAttributeSchema>;
|
|
7
10
|
export declare type QueryAccountArgument = {
|
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.55.0-rc.fdi.
|
|
7
|
+
"version": "3.55.0-rc.fdi.6",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|