@arrowsphere/api-client 3.108.1 → 3.108.2-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/CHANGELOG.md CHANGED
@@ -3,11 +3,6 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
- ## [3.108.1] - 2024.04.12
7
-
8
- ### Fixed
9
- - [License schedules tasks] Fixes get all schedules tasks to prevent breaking changes of api
10
-
11
6
  ## [3.108.0] - 2024.04.08
12
7
 
13
8
  ### Added
@@ -440,18 +440,15 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
440
440
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
441
441
  }
442
442
  async getSchedulesTasks(licenseReference, parameters = {}) {
443
- var _a;
444
443
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
445
444
  const response = await this.get(parameters);
446
445
  //A workaround, the public api endpoint is not returning "schedulesTasks" in the payload
447
446
  //@todo: remove this workaround when the public api endpoint is fixed
448
- if (!((_a = response[getResult_1.GetResultFields.COLUMN_DATA]) === null || _a === void 0 ? void 0 : _a[getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS])) {
449
- response[getResult_1.GetResultFields.COLUMN_DATA] = {
450
- [getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS]: getResult_1.GetResultFields.COLUMN_DATA in response
451
- ? response[getResult_1.GetResultFields.COLUMN_DATA]
452
- : [],
453
- };
454
- }
447
+ response[getResult_1.GetResultFields.COLUMN_DATA] = {
448
+ [getSchedulesTasksResult_1.GetSchedulesTasksResultFields.COLUMN_SCHEDULES_TASKS]: getResult_1.GetResultFields.COLUMN_DATA in response
449
+ ? response[getResult_1.GetResultFields.COLUMN_DATA]
450
+ : [],
451
+ };
455
452
  return new getResult_1.GetResult(getSchedulesTasksResult_1.GetSchedulesTasksResult, response);
456
453
  }
457
454
  async getLicenseDailyPredictions(licenseReference, parameters = {}) {
@@ -1,2 +1,3 @@
1
1
  export * from './UserClient';
2
+ export * from './userGraphqlClient';
2
3
  export * from './types';
@@ -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.108.1",
7
+ "version": "3.108.2-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",