@longvansoftware/service-js-client 1.10.0 → 1.10.2

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
@@ -38,6 +35,15 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
38
35
  baremetalId
39
36
  platform
40
37
  description
38
+ cpu
39
+ cpuUnit
40
+ ram
41
+ ramUnit
42
+ disks {
43
+ index
44
+ size
45
+ unit
46
+ }
41
47
  }
42
48
  }
43
49
  `;
@@ -222,9 +228,6 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
222
228
  os
223
229
  ips
224
230
  province
225
- console
226
- consoleCookieName
227
- consoleCookieValue
228
231
  existPortNat
229
232
  ipConnect
230
233
  portConnect
@@ -247,6 +250,15 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
247
250
  baremetalId
248
251
  platform
249
252
  description
253
+ cpu
254
+ cpuUnit
255
+ ram
256
+ ramUnit
257
+ disks {
258
+ index
259
+ size
260
+ unit
261
+ }
250
262
  }
251
263
  }
252
264
  `;
@@ -261,9 +273,6 @@ exports.GET_LAB_INSTANCE = (0, graphql_tag_1.gql) `
261
273
  os
262
274
  ips
263
275
  province
264
- console
265
- consoleCookieName
266
- consoleCookieValue
267
276
  existPortNat
268
277
  ipConnect
269
278
  portConnect
@@ -317,9 +326,6 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
317
326
  os
318
327
  ips
319
328
  province
320
- console
321
- consoleCookieName
322
- consoleCookieValue
323
329
  existPortNat
324
330
  ipConnect
325
331
  portConnect
@@ -342,6 +348,15 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
342
348
  baremetalId
343
349
  platform
344
350
  description
351
+ cpu
352
+ cpuUnit
353
+ ram
354
+ ramUnit
355
+ disks {
356
+ index
357
+ size
358
+ unit
359
+ }
345
360
  }
346
361
  }
347
362
  `;
@@ -356,9 +371,6 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
356
371
  os
357
372
  ips
358
373
  province
359
- console
360
- consoleCookieName
361
- consoleCookieValue
362
374
  existPortNat
363
375
  ipConnect
364
376
  portConnect
@@ -381,6 +393,15 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
381
393
  baremetalId
382
394
  platform
383
395
  description
396
+ cpu
397
+ cpuUnit
398
+ ram
399
+ ramUnit
400
+ disks {
401
+ index
402
+ size
403
+ unit
404
+ }
384
405
  }
385
406
  }
386
407
  `;
@@ -465,3 +486,12 @@ exports.GET_RESOUCE_POOL_BY_SERVICE = (0, graphql_tag_1.gql) `
465
486
  }
466
487
  }
467
488
  `;
489
+ exports.GET_CONSOLE = (0, graphql_tag_1.gql) `
490
+ query GetConsole($computingId: String!) {
491
+ getConsole(computingId: $computingId) {
492
+ console
493
+ cookieName
494
+ cookieValue
495
+ }
496
+ }
497
+ `;
@@ -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.2",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [