@longvansoftware/service-js-client 1.8.4 → 1.8.6
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.
@@ -7,6 +7,7 @@ export declare const GET_PRODUCTS_OF_SERVICE: import("graphql").DocumentNode;
|
|
7
7
|
export declare const GET_IPS_OF_SERVICE: import("graphql").DocumentNode;
|
8
8
|
export declare const GET_SERVICES_BY_ORDER_ID: import("graphql").DocumentNode;
|
9
9
|
export declare const CHECK_DOMAIN_NAME_AVAILABLE: import("graphql").DocumentNode;
|
10
|
+
export declare const CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC: import("graphql").DocumentNode;
|
10
11
|
export declare const GET_SERVICE_TYPE_LIST: import("graphql").DocumentNode;
|
11
12
|
export declare const GET_DOMAIN_CONTACTS: import("graphql").DocumentNode;
|
12
13
|
export declare const GET_OWNERS_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_DOMAIN_SUPPLIER = exports.GET_WHOIS_DOMAIN_INFO = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.CHECK_DOMAIN_NAME_AVAILABLE = 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 = void 0;
|
3
|
+
exports.GET_DOMAIN_SUPPLIER = exports.GET_WHOIS_DOMAIN_INFO = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = 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 = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query ServiceDetail($serviceId: String) {
|
@@ -169,6 +169,15 @@ exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
|
169
169
|
}
|
170
170
|
}
|
171
171
|
`;
|
172
|
+
exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = (0, graphql_tag_1.gql) `
|
173
|
+
query CheckDomainNameAvailableVnnic($domainNames: [String!]!) {
|
174
|
+
checkDomainNameAvailableVnnic(domainNames: $domainNames) {
|
175
|
+
domainName
|
176
|
+
isAvailable
|
177
|
+
topDomain
|
178
|
+
}
|
179
|
+
}
|
180
|
+
`;
|
172
181
|
exports.GET_SERVICE_TYPE_LIST = (0, graphql_tag_1.gql) `
|
173
182
|
query {
|
174
183
|
getServiceTypeList {
|
@@ -27,6 +27,7 @@ export declare class CloudService extends Service {
|
|
27
27
|
getIpsOfService(serviceId: string): Promise<any>;
|
28
28
|
getServicesByOrderId(orderId: string): Promise<any>;
|
29
29
|
checkDomainNameAvailable(domainName: string): Promise<any>;
|
30
|
+
checkDomainNameAvailableVnnic(domainNames: [string]): Promise<any>;
|
30
31
|
getServiceTypeList(): Promise<any>;
|
31
32
|
createDomainContact(serviceId: string, domainContacts: any): Promise<any>;
|
32
33
|
getDomainContacts(serviceId: string): Promise<any>;
|
@@ -311,6 +311,22 @@ class CloudService extends serviceSDK_1.Service {
|
|
311
311
|
}
|
312
312
|
});
|
313
313
|
}
|
314
|
+
checkDomainNameAvailableVnnic(domainNames) {
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
316
|
+
const query = queries_1.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
|
317
|
+
const variables = {
|
318
|
+
domainNames,
|
319
|
+
};
|
320
|
+
try {
|
321
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
322
|
+
return response.checkDomainNameAvailableVnnic;
|
323
|
+
}
|
324
|
+
catch (error) {
|
325
|
+
console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
|
326
|
+
throw error;
|
327
|
+
}
|
328
|
+
});
|
329
|
+
}
|
314
330
|
getServiceTypeList() {
|
315
331
|
return __awaiter(this, void 0, void 0, function* () {
|
316
332
|
const query = queries_1.GET_SERVICE_TYPE_LIST;
|