@longvansoftware/service-js-client 1.12.3 → 1.12.5

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.
@@ -10,3 +10,4 @@ export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
10
10
  export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
11
11
  export declare const UPDATE_DNS: import("graphql").DocumentNode;
12
12
  export declare const CREATE_DOMAIN_CONTACT: import("graphql").DocumentNode;
13
+ export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
3
+ exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
6
6
  mutation GetDomainInfo($domainName: String!) {
@@ -181,3 +181,18 @@ exports.CREATE_DOMAIN_CONTACT = (0, graphql_tag_1.gql) `
181
181
  }
182
182
  }
183
183
  `;
184
+ exports.GET_ORDER_CHANGE_RESOURCE_TERM = (0, graphql_tag_1.gql) `
185
+ mutation GetOrderChangeResourceTerm(
186
+ $serviceId: String!
187
+ $storeId: String!
188
+ $createdBy: String!
189
+ $partnerId: String!
190
+ ) {
191
+ getOrderChangeResourceTerm(
192
+ serviceId: $serviceId
193
+ storeId: $storeId
194
+ createdBy: $createdBy
195
+ partnerId: $partnerId
196
+ )
197
+ }
198
+ `;
@@ -77,6 +77,7 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
77
77
  amount
78
78
  currencyCode
79
79
  }
80
+ type
80
81
  }
81
82
  }
82
83
  lineItems {
@@ -12,6 +12,7 @@ exports.GET_SHARED_USER_BY_SERVICE = (0, graphql_tag_1.gql) `
12
12
  partyId
13
13
  partyName
14
14
  permission
15
+ status
15
16
  }
16
17
  }
17
18
  `;
@@ -36,4 +36,5 @@ export declare class CloudService extends Service {
36
36
  getWhoisDomainInfo(domainName: string): Promise<any>;
37
37
  getDomainSupplier(serviceId: string): Promise<any>;
38
38
  checkDomainExist(domainName: string): Promise<any>;
39
+ getOrderChangeResourceTerm(serviceId: string, createdBy: string): Promise<any>;
39
40
  }
@@ -476,5 +476,24 @@ class CloudService extends serviceSDK_1.Service {
476
476
  }
477
477
  });
478
478
  }
479
+ getOrderChangeResourceTerm(serviceId, createdBy) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ const mutation = mutations_1.GET_ORDER_CHANGE_RESOURCE_TERM;
482
+ const variables = {
483
+ serviceId,
484
+ storeId: this.storeId,
485
+ createdBy,
486
+ partnerId: this.orgId,
487
+ };
488
+ try {
489
+ const response = yield this.graphqlMutationV2(mutation, variables);
490
+ return response.getOrderChangeResourceTerm;
491
+ }
492
+ catch (error) {
493
+ console.log(`Error in getOrderChangeResourceTerm: ${error}`);
494
+ throw error;
495
+ }
496
+ });
497
+ }
479
498
  }
480
499
  exports.CloudService = CloudService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.12.3",
3
+ "version": "1.12.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [