@longvansoftware/service-js-client 1.9.5 → 1.9.7

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.
@@ -13,3 +13,4 @@ export declare const ADD_COMPUTING_IN_CLUSTER: import("graphql").DocumentNode;
13
13
  export declare const REMOVE_COMPUTING_IN_CLUSTER: import("graphql").DocumentNode;
14
14
  export declare const STOP_USE_COMPUTING: import("graphql").DocumentNode;
15
15
  export declare const ADD_PORT_NAT: import("graphql").DocumentNode;
16
+ export declare const UPDATE_DESCRIPTION_COMPUTING: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
3
+ exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
6
  mutation Restart($computingId: String!, $actor: String!) {
@@ -208,3 +208,16 @@ exports.ADD_PORT_NAT = (0, graphql_tag_1.gql) `
208
208
  )
209
209
  }
210
210
  `;
211
+ exports.UPDATE_DESCRIPTION_COMPUTING = (0, graphql_tag_1.gql) `
212
+ mutation UpdateDescriptionComputing(
213
+ $computingId: String!
214
+ $description: String!
215
+ $updateBy: String!
216
+ ) {
217
+ updateDescriptionComputing(
218
+ computingId: $computingId
219
+ description: $description
220
+ updateBy: $updateBy
221
+ )
222
+ }
223
+ `;
@@ -37,6 +37,7 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
37
37
  url
38
38
  baremetalId
39
39
  platform
40
+ description
40
41
  }
41
42
  }
42
43
  `;
@@ -244,6 +245,7 @@ exports.GET_COMPUTINGS = (0, graphql_tag_1.gql) `
244
245
  url
245
246
  baremetalId
246
247
  platform
248
+ description
247
249
  }
248
250
  }
249
251
  `;
@@ -338,6 +340,7 @@ exports.GET_COMPUTING_BY_CLUSTER = (0, graphql_tag_1.gql) `
338
340
  url
339
341
  baremetalId
340
342
  platform
343
+ description
341
344
  }
342
345
  }
343
346
  `;
@@ -376,6 +379,7 @@ exports.GET_COMPUTING_BY_SERVICE = (0, graphql_tag_1.gql) `
376
379
  url
377
380
  baremetalId
378
381
  platform
382
+ description
379
383
  }
380
384
  }
381
385
  `;
@@ -25,9 +25,11 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
25
25
  }
26
26
  createdStamp
27
27
  customAttribute
28
+ description
28
29
  }
29
30
  lineItems {
30
31
  orderLineItem {
32
+ description
31
33
  unitType
32
34
  customAttributes {
33
35
  key
@@ -75,6 +77,7 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
75
77
  unit
76
78
  productId
77
79
  }
80
+ itemType
78
81
  }
79
82
  }
80
83
  }
@@ -45,4 +45,5 @@ export declare class ComputingService extends Service {
45
45
  getEdges(serviceId: string): Promise<any>;
46
46
  addPortNat(data: any): Promise<any>;
47
47
  getPortNatsByServiceId(serviceId: any): Promise<any>;
48
+ updateDescriptionComputing(computingId: string, description: string, updateBy: string): Promise<any>;
48
49
  }
@@ -571,7 +571,7 @@ class ComputingService extends serviceSDK_1.Service {
571
571
  const mutation = mutations_1.STOP_USE_COMPUTING;
572
572
  const variables = {
573
573
  computingId,
574
- userId
574
+ userId,
575
575
  };
576
576
  try {
577
577
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -587,7 +587,7 @@ class ComputingService extends serviceSDK_1.Service {
587
587
  return __awaiter(this, void 0, void 0, function* () {
588
588
  const query = queries_1.GET_EDGES;
589
589
  const variables = {
590
- serviceId
590
+ serviceId,
591
591
  };
592
592
  try {
593
593
  const response = yield this.graphqlQueryV2(query, variables);
@@ -617,7 +617,7 @@ class ComputingService extends serviceSDK_1.Service {
617
617
  return __awaiter(this, void 0, void 0, function* () {
618
618
  const query = queries_1.GET_PORT_NATS_BY_SERVICE_ID;
619
619
  const variables = {
620
- serviceId
620
+ serviceId,
621
621
  };
622
622
  try {
623
623
  const response = yield this.graphqlQueryV2(query, variables);
@@ -629,5 +629,23 @@ class ComputingService extends serviceSDK_1.Service {
629
629
  }
630
630
  });
631
631
  }
632
+ updateDescriptionComputing(computingId, description, updateBy) {
633
+ return __awaiter(this, void 0, void 0, function* () {
634
+ const query = mutations_1.UPDATE_DESCRIPTION_COMPUTING;
635
+ const variables = {
636
+ computingId,
637
+ description,
638
+ updateBy,
639
+ };
640
+ try {
641
+ const response = yield this.graphqlMutationV2(query, variables);
642
+ return response.updateDescriptionComputing;
643
+ }
644
+ catch (error) {
645
+ console.log(`Error fetching get updateDescriptionComputing method: ${error}`);
646
+ throw error;
647
+ }
648
+ });
649
+ }
632
650
  }
633
651
  exports.ComputingService = ComputingService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.9.5",
3
+ "version": "1.9.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [