@longvansoftware/service-js-client 1.7.5 → 1.7.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.
- package/dist/src/graphql/cloud/queries.d.ts +1 -0
- package/dist/src/graphql/cloud/queries.js +20 -1
- package/dist/src/lib/cloud/index.d.ts +1 -0
- package/dist/src/lib/cloud/index.js +14 -0
- package/dist/src/lib/cloud_rest/index.d.ts +1 -0
- package/dist/src/lib/cloud_rest/index.js +14 -0
- package/package.json +1 -1
@@ -11,3 +11,4 @@ export declare const GET_SERVICE_TYPE_LIST: import("graphql").DocumentNode;
|
|
11
11
|
export declare const GET_DOMAIN_CONTACTS: import("graphql").DocumentNode;
|
12
12
|
export declare const GET_OWNERS_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
13
13
|
export declare const GET_CONTACTS_BY_OWNER_ID: import("graphql").DocumentNode;
|
14
|
+
export declare const GET_WHOIS_DOMAIN_INFO: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
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_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;
|
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) {
|
@@ -252,3 +252,22 @@ exports.GET_CONTACTS_BY_OWNER_ID = (0, graphql_tag_1.gql) `
|
|
252
252
|
}
|
253
253
|
}
|
254
254
|
`;
|
255
|
+
exports.GET_WHOIS_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
256
|
+
query GetWhoisDomainInfo($domainName: String!) {
|
257
|
+
getWhoisDomainInfo(domainName: $domainName) {
|
258
|
+
dnssec
|
259
|
+
domainName
|
260
|
+
existed
|
261
|
+
expiredDate
|
262
|
+
idnDomainName
|
263
|
+
issuedDate
|
264
|
+
nameServer
|
265
|
+
reason
|
266
|
+
registrantName
|
267
|
+
registrarEnUrl
|
268
|
+
registrarViUrl
|
269
|
+
renewalDeadline
|
270
|
+
status
|
271
|
+
}
|
272
|
+
}
|
273
|
+
`;
|
@@ -32,4 +32,5 @@ export declare class CloudService extends Service {
|
|
32
32
|
getDomainContacts(serviceId: string): Promise<any>;
|
33
33
|
getOwnersByCustomerId(userId: string): Promise<any>;
|
34
34
|
getContactsByOwnerId(ownerId: string): Promise<any>;
|
35
|
+
getWhoisDomainInfo(domainName: string): Promise<any>;
|
35
36
|
}
|
@@ -381,5 +381,19 @@ class CloudService extends serviceSDK_1.Service {
|
|
381
381
|
}
|
382
382
|
});
|
383
383
|
}
|
384
|
+
getWhoisDomainInfo(domainName) {
|
385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
386
|
+
const query = queries_1.GET_WHOIS_DOMAIN_INFO;
|
387
|
+
const variables = { domainName };
|
388
|
+
try {
|
389
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
390
|
+
return response.getWhoisDomainInfo;
|
391
|
+
}
|
392
|
+
catch (error) {
|
393
|
+
console.log(`Error in getWhoisDomainInfo: ${error}`);
|
394
|
+
throw error;
|
395
|
+
}
|
396
|
+
});
|
397
|
+
}
|
384
398
|
}
|
385
399
|
exports.CloudService = CloudService;
|
@@ -69,5 +69,19 @@ class CloudRestService extends serviceSDK_1.Service {
|
|
69
69
|
}
|
70
70
|
});
|
71
71
|
}
|
72
|
+
getEnterprises(gdtCode) {
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
74
|
+
const endpoint = `/enterprises/query?gdtCode=${gdtCode}`;
|
75
|
+
const method = "GET";
|
76
|
+
try {
|
77
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
78
|
+
return response;
|
79
|
+
}
|
80
|
+
catch (error) {
|
81
|
+
console.log(`Error in getEnterprises: ${error}`);
|
82
|
+
throw error;
|
83
|
+
}
|
84
|
+
});
|
85
|
+
}
|
72
86
|
}
|
73
87
|
exports.CloudRestService = CloudRestService;
|