@longvansoftware/service-js-client 1.10.0 → 1.10.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.
@@ -154,9 +154,6 @@ exports.STOP_USE_COMPUTING = (0, graphql_tag_1.gql) `
154
154
  os
155
155
  ips
156
156
  province
157
- console
158
- consoleCookieName
159
- consoleCookieValue
160
157
  existPortNat
161
158
  ipConnect
162
159
  portConnect
@@ -22,3 +22,4 @@ export declare const GET_TEMPLATE: import("graphql").DocumentNode;
22
22
  export declare const GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID: import("graphql").DocumentNode;
23
23
  export declare const GET_AVAILABLE_STORAGES_FOR_DC: import("graphql").DocumentNode;
24
24
  export declare const GET_RESOUCE_POOL_BY_SERVICE: import("graphql").DocumentNode;
25
+ export declare const GET_CONSOLE: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
3
+ exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
6
  query ComputingDetail($computingId: String!) {
@@ -13,9 +13,6 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
13
13
  os
14
14
  ips
15
15
  province
16
- console
17
- consoleCookieName
18
- consoleCookieValue
19
16
  existPortNat
20
17
  ipConnect
21
18
  portConnect
@@ -222,9 +219,6 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
222
219
  os
223
220
  ips
224
221
  province
225
- console
226
- consoleCookieName
227
- consoleCookieValue
228
222
  existPortNat
229
223
  ipConnect
230
224
  portConnect
@@ -261,9 +255,6 @@ exports.GET_LAB_INSTANCE = (0, graphql_tag_1.gql) `
261
255
  os
262
256
  ips
263
257
  province
264
- console
265
- consoleCookieName
266
- consoleCookieValue
267
258
  existPortNat
268
259
  ipConnect
269
260
  portConnect
@@ -317,9 +308,6 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
317
308
  os
318
309
  ips
319
310
  province
320
- console
321
- consoleCookieName
322
- consoleCookieValue
323
311
  existPortNat
324
312
  ipConnect
325
313
  portConnect
@@ -356,9 +344,6 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
356
344
  os
357
345
  ips
358
346
  province
359
- console
360
- consoleCookieName
361
- consoleCookieValue
362
347
  existPortNat
363
348
  ipConnect
364
349
  portConnect
@@ -465,3 +450,12 @@ exports.GET_RESOUCE_POOL_BY_SERVICE = (0, graphql_tag_1.gql) `
465
450
  }
466
451
  }
467
452
  `;
453
+ exports.GET_CONSOLE = (0, graphql_tag_1.gql) `
454
+ query GetConsole($computingId: String!) {
455
+ getConsole(computingId: $computingId) {
456
+ console
457
+ cookieName
458
+ cookieValue
459
+ }
460
+ }
461
+ `;
@@ -52,4 +52,5 @@ export declare class ComputingService extends Service {
52
52
  getResourcePoolsByService(serviceId: string): Promise<any>;
53
53
  createComputingForDC(data: any): Promise<any>;
54
54
  updateNameComputing(computingId: string, name: string, updateBy: string): Promise<any>;
55
+ getConsole(computingId: string): Promise<any>;
55
56
  }
@@ -752,5 +752,21 @@ class ComputingService extends serviceSDK_1.Service {
752
752
  }
753
753
  });
754
754
  }
755
+ getConsole(computingId) {
756
+ return __awaiter(this, void 0, void 0, function* () {
757
+ const query = queries_1.GET_CONSOLE;
758
+ const variables = {
759
+ computingId,
760
+ };
761
+ try {
762
+ const response = yield this.graphqlQueryV2(query, variables);
763
+ return response.getConsole;
764
+ }
765
+ catch (error) {
766
+ console.log(`Error fetching get getConsole method: ${error}`);
767
+ throw error;
768
+ }
769
+ });
770
+ }
755
771
  }
756
772
  exports.ComputingService = ComputingService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [