@longvansoftware/service-js-client 2.5.7 → 2.5.8

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.
@@ -21,3 +21,4 @@ export declare const SEARCH_ACTIONS: DocumentNode;
21
21
  export declare const GET_ELASTIC_CLOUD_RESOURCE: DocumentNode;
22
22
  export declare const SEARCH_SERVICE_DYNAMIC: (fields?: string[]) => DocumentNode;
23
23
  export declare const SEARCH_ACTIONS_DYNAMIC: (fields?: string[]) => DocumentNode;
24
+ export declare const ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING: DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_ACTIONS_DYNAMIC = exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
3
+ exports.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING = exports.SEARCH_ACTIONS_DYNAMIC = exports.SEARCH_SERVICE_DYNAMIC = exports.GET_ELASTIC_CLOUD_RESOURCE = exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL_DYNAMIC = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
6
6
  query CheckDomainNameAvailable($domainName: String!) {
@@ -403,3 +403,8 @@ const SEARCH_ACTIONS_DYNAMIC = (fields = []) => {
403
403
  `;
404
404
  };
405
405
  exports.SEARCH_ACTIONS_DYNAMIC = SEARCH_ACTIONS_DYNAMIC;
406
+ exports.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING = (0, graphql_tag_1.gql) `
407
+ mutation AddLetsEncryptSSLForMailHosting($serviceId: String!, $actorId: String!) {
408
+ addLetsEncryptSSLForMailHosting(serviceId: $serviceId, actorId: $actorId)
409
+ }
410
+ `;
@@ -55,4 +55,5 @@ export declare class CloudService extends Service {
55
55
  searchServiceDynamic(filter: Filter, fields: string[]): Promise<any>;
56
56
  convertProductResourceOutputsToProductJsonList(productResourceInput: any, fields: string[]): Promise<any>;
57
57
  searchActionsDynamic(parameter: any, fields: string[]): Promise<any>;
58
+ addLetsEncryptSSLForMailHosting(serviceId: string, actorId: string): Promise<any>;
58
59
  }
@@ -801,5 +801,22 @@ class CloudService extends serviceSDK_1.Service {
801
801
  }
802
802
  });
803
803
  }
804
+ addLetsEncryptSSLForMailHosting(serviceId, actorId) {
805
+ return __awaiter(this, void 0, void 0, function* () {
806
+ const query = queries_1.ADD_LETS_ENCRYPT_SSL_FOR_MAIL_HOSTING;
807
+ const variables = {
808
+ serviceId,
809
+ actorId,
810
+ };
811
+ try {
812
+ const response = yield this.graphqlQueryV2(query, variables);
813
+ return response.addLetsEncryptSSLForMailHosting;
814
+ }
815
+ catch (error) {
816
+ console.log(`Error in addLetsEncryptSSLForMailHosting: ${error}`);
817
+ throw error;
818
+ }
819
+ });
820
+ }
804
821
  }
805
822
  exports.CloudService = CloudService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [