@longvansoftware/service-js-client 1.12.1 → 1.12.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.
@@ -1,3 +1,6 @@
|
|
1
|
+
export declare const CHECK_DOMAIN_NAME_AVAILABLE: import("graphql").DocumentNode;
|
2
|
+
export declare const CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC: import("graphql").DocumentNode;
|
3
|
+
export declare const GET_WHOIS_DOMAIN_INFO: import("graphql").DocumentNode;
|
1
4
|
export declare const SERVICE_DETAIL: import("graphql").DocumentNode;
|
2
5
|
export declare const GET_MAIL_RESOURCE: import("graphql").DocumentNode;
|
3
6
|
export declare const GET_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
@@ -1,7 +1,46 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
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 = void 0;
|
3
|
+
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 = 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
|
+
exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
6
|
+
query CheckDomainNameAvailable($domainName: String!) {
|
7
|
+
checkDomainNameAvailable(domainName: $domainName) {
|
8
|
+
domainName
|
9
|
+
isAvailable
|
10
|
+
topDomain
|
11
|
+
message
|
12
|
+
}
|
13
|
+
}
|
14
|
+
`;
|
15
|
+
exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = (0, graphql_tag_1.gql) `
|
16
|
+
query CheckDomainNameAvailableVnnic($domainNames: [String!]!) {
|
17
|
+
checkDomainNameAvailableVnnic(domainNames: $domainNames) {
|
18
|
+
domainName
|
19
|
+
isAvailable
|
20
|
+
topDomain
|
21
|
+
}
|
22
|
+
}
|
23
|
+
`;
|
24
|
+
exports.GET_WHOIS_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
25
|
+
query GetWhoisDomainInfo($domainName: String!) {
|
26
|
+
getWhoisDomainInfo(domainName: $domainName) {
|
27
|
+
dnssec
|
28
|
+
domainName
|
29
|
+
existed
|
30
|
+
expiredDate
|
31
|
+
idnDomainName
|
32
|
+
issuedDate
|
33
|
+
dns
|
34
|
+
reason
|
35
|
+
registrantName
|
36
|
+
registrarEnUrl
|
37
|
+
registrarViUrl
|
38
|
+
renewalDeadline
|
39
|
+
status
|
40
|
+
registrarName
|
41
|
+
}
|
42
|
+
}
|
43
|
+
`;
|
5
44
|
exports.SERVICE_DETAIL = (0, graphql_tag_1.gql) `
|
6
45
|
query ServiceDetail($serviceId: String) {
|
7
46
|
serviceDetail(serviceId: $serviceId) {
|
@@ -26,14 +26,14 @@ export declare class CloudService extends Service {
|
|
26
26
|
getProductsOfService(serviceId: string): Promise<any>;
|
27
27
|
getIpsOfService(serviceId: string): Promise<any>;
|
28
28
|
getServicesByOrderId(orderId: string): Promise<any>;
|
29
|
-
|
30
|
-
|
29
|
+
checkDomainNameAvailable(domainName: string): Promise<any>;
|
30
|
+
checkDomainNameAvailableVnnic(domainNames: [string]): Promise<any>;
|
31
31
|
getServiceTypeList(): Promise<any>;
|
32
32
|
createDomainContact(serviceId: string, domainContacts: any): Promise<any>;
|
33
33
|
getDomainContacts(serviceId: string): Promise<any>;
|
34
34
|
getOwnersByCustomerId(userId: string): Promise<any>;
|
35
35
|
getContactsByOwnerId(ownerId: string): Promise<any>;
|
36
|
-
|
36
|
+
getWhoisDomainInfo(domainName: string): Promise<any>;
|
37
37
|
getDomainSupplier(serviceId: string): Promise<any>;
|
38
38
|
checkDomainExist(domainName: string): Promise<any>;
|
39
39
|
}
|
@@ -295,7 +295,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
295
295
|
}
|
296
296
|
});
|
297
297
|
}
|
298
|
-
|
298
|
+
checkDomainNameAvailable(domainName) {
|
299
299
|
return __awaiter(this, void 0, void 0, function* () {
|
300
300
|
const mutation = mutations_1.CHECK_DOMAIN_NAME;
|
301
301
|
const variables = {
|
@@ -311,7 +311,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
311
311
|
}
|
312
312
|
});
|
313
313
|
}
|
314
|
-
|
314
|
+
checkDomainNameAvailableVnnic(domainNames) {
|
315
315
|
return __awaiter(this, void 0, void 0, function* () {
|
316
316
|
const mutation = mutations_1.CHECK_LIST_DOMAIN_NAME;
|
317
317
|
const variables = {
|
@@ -327,6 +327,32 @@ class CloudService extends serviceSDK_1.Service {
|
|
327
327
|
}
|
328
328
|
});
|
329
329
|
}
|
330
|
+
// async checkDomainNameAvailable(domainName: string) {
|
331
|
+
// const query = CHECK_DOMAIN_NAME_AVAILABLE;
|
332
|
+
// const variables = {
|
333
|
+
// domainName,
|
334
|
+
// };
|
335
|
+
// try {
|
336
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
337
|
+
// return response.checkDomainNameAvailable;
|
338
|
+
// } catch (error) {
|
339
|
+
// console.log(`Error in checkDomainNameAvailable: ${error}`);
|
340
|
+
// throw error;
|
341
|
+
// }
|
342
|
+
// }
|
343
|
+
// async checkDomainNameAvailableVnnic(domainNames: [string]) {
|
344
|
+
// const query = CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC;
|
345
|
+
// const variables = {
|
346
|
+
// domainNames,
|
347
|
+
// };
|
348
|
+
// try {
|
349
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
350
|
+
// return response.checkDomainNameAvailableVnnic;
|
351
|
+
// } catch (error) {
|
352
|
+
// console.log(`Error in checkDomainNameAvailableVnnic: ${error}`);
|
353
|
+
// throw error;
|
354
|
+
// }
|
355
|
+
// }
|
330
356
|
getServiceTypeList() {
|
331
357
|
return __awaiter(this, void 0, void 0, function* () {
|
332
358
|
const query = queries_1.GET_SERVICE_TYPE_LIST;
|
@@ -397,7 +423,7 @@ class CloudService extends serviceSDK_1.Service {
|
|
397
423
|
}
|
398
424
|
});
|
399
425
|
}
|
400
|
-
|
426
|
+
getWhoisDomainInfo(domainName) {
|
401
427
|
return __awaiter(this, void 0, void 0, function* () {
|
402
428
|
const mutation = mutations_1.GET_DOMAIN_INFO;
|
403
429
|
const variables = { domainName };
|
@@ -411,6 +437,17 @@ class CloudService extends serviceSDK_1.Service {
|
|
411
437
|
}
|
412
438
|
});
|
413
439
|
}
|
440
|
+
// async getWhoisDomainInfo(domainName: string) {
|
441
|
+
// const query = GET_WHOIS_DOMAIN_INFO;
|
442
|
+
// const variables = { domainName };
|
443
|
+
// try {
|
444
|
+
// const response = await this.graphqlQueryV2(query, variables);
|
445
|
+
// return response.getWhoisDomainInfo;
|
446
|
+
// } catch (error) {
|
447
|
+
// console.log(`Error in getWhoisDomainInfo: ${error}`);
|
448
|
+
// throw error;
|
449
|
+
// }
|
450
|
+
// }
|
414
451
|
getDomainSupplier(serviceId) {
|
415
452
|
return __awaiter(this, void 0, void 0, function* () {
|
416
453
|
const query = queries_1.GET_DOMAIN_SUPPLIER;
|