@arrowsphere/api-client 3.110.0-rc.cpu.2 → 3.111.0-rc.bdj.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.
package/build/user/index.d.ts
CHANGED
package/build/user/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./UserClient"), exports);
|
|
18
|
+
__exportStar(require("./userGraphqlClient"), exports);
|
|
18
19
|
__exportStar(require("./types"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractGraphQLClient } from '../abstractGraphQLClient';
|
|
2
|
+
export declare class UserGraphqlClient extends AbstractGraphQLClient {
|
|
3
|
+
/**
|
|
4
|
+
* The Path of graphql catalog API
|
|
5
|
+
*/
|
|
6
|
+
private GRAPHQL;
|
|
7
|
+
findRaw<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
|
|
8
|
+
find(): Promise<unknown | null>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserGraphqlClient = void 0;
|
|
4
|
+
const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
|
|
5
|
+
class UserGraphqlClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/**
|
|
9
|
+
* The Path of graphql catalog API
|
|
10
|
+
*/
|
|
11
|
+
this.GRAPHQL = '/v2/graphql';
|
|
12
|
+
}
|
|
13
|
+
async findRaw(request) {
|
|
14
|
+
this.path = this.GRAPHQL;
|
|
15
|
+
try {
|
|
16
|
+
return await this.post(request);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async find() {
|
|
23
|
+
const queryStr = '{ getUsers { updatedBy isEnabled extraData { name value} } }';
|
|
24
|
+
const result = await this.findRaw(queryStr);
|
|
25
|
+
console.log(result);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.UserGraphqlClient = UserGraphqlClient;
|
|
30
|
+
//# sourceMappingURL=userGraphqlClient.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.
|
|
7
|
+
"version": "3.111.0-rc.bdj.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",
|