@longvansoftware/service-js-client 1.8.5 → 1.8.7
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 +10 -1
- package/dist/src/graphql/crm/mutations.d.ts +1 -0
- package/dist/src/graphql/crm/mutations.js +16 -1
- package/dist/src/graphql/crm/queries.js +1 -0
- package/dist/src/lib/cloud/index.d.ts +1 -0
- package/dist/src/lib/cloud/index.js +16 -0
- package/dist/src/lib/cloud_rest/index.d.ts +1 -0
- package/dist/src/lib/cloud_rest/index.js +14 -0
- package/dist/src/lib/crm/index.d.ts +1 -0
- package/dist/src/lib/crm/index.js +21 -2
- package/package.json +1 -1
@@ -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 {
|
@@ -10,3 +10,4 @@ export declare const CREATE_RESUME: import("graphql").DocumentNode;
|
|
10
10
|
export declare const UPDATE_RESUME_CONTACT: import("graphql").DocumentNode;
|
11
11
|
export declare const LINKING_RESUME_SERVICE: import("graphql").DocumentNode;
|
12
12
|
export declare const CLONE_RESUME: import("graphql").DocumentNode;
|
13
|
+
export declare const LINKING_RESUME_DOMAIN_AND_CONTACT: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CLONE_RESUME = exports.LINKING_RESUME_SERVICE = exports.UPDATE_RESUME_CONTACT = exports.CREATE_RESUME = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
3
|
+
exports.LINKING_RESUME_DOMAIN_AND_CONTACT = exports.CLONE_RESUME = exports.LINKING_RESUME_SERVICE = exports.UPDATE_RESUME_CONTACT = exports.CREATE_RESUME = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
6
6
|
mutation AddOpportunity(
|
@@ -374,3 +374,18 @@ exports.CLONE_RESUME = (0, graphql_tag_1.gql) `
|
|
374
374
|
)
|
375
375
|
}
|
376
376
|
`;
|
377
|
+
exports.LINKING_RESUME_DOMAIN_AND_CONTACT = (0, graphql_tag_1.gql) `
|
378
|
+
mutation CloneResume(
|
379
|
+
$resumeDomainId: String
|
380
|
+
$resumeContactId: String
|
381
|
+
$contactType: String
|
382
|
+
$linkedBy: String
|
383
|
+
) {
|
384
|
+
linkingResumeDomainAndContact(
|
385
|
+
resumeDomainId: $resumeDomainId
|
386
|
+
resumeContactId: $resumeContactId
|
387
|
+
contactType: $contactType
|
388
|
+
linkedBy: $linkedBy
|
389
|
+
)
|
390
|
+
}
|
391
|
+
`;
|
@@ -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;
|
@@ -83,5 +83,19 @@ class CloudRestService extends serviceSDK_1.Service {
|
|
83
83
|
}
|
84
84
|
});
|
85
85
|
}
|
86
|
+
getCountries() {
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
88
|
+
const endpoint = `/places/countries`;
|
89
|
+
const method = "GET";
|
90
|
+
try {
|
91
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
92
|
+
return response;
|
93
|
+
}
|
94
|
+
catch (error) {
|
95
|
+
console.log(`Error in getCountries: ${error}`);
|
96
|
+
throw error;
|
97
|
+
}
|
98
|
+
});
|
99
|
+
}
|
86
100
|
}
|
87
101
|
exports.CloudRestService = CloudRestService;
|
@@ -26,4 +26,5 @@ export declare class CrmService extends Service {
|
|
26
26
|
getResumeContact(resumeId: string, contactType: string): Promise<any>;
|
27
27
|
getResumesByCustomerId(customerId: string): Promise<any>;
|
28
28
|
cloneResume(resumeOriginalId: string, domain: string, createdBy: string): Promise<any>;
|
29
|
+
linkingResumeDomainAndContact(resumeDomainId: string, resumeContactId: string, contactType: string, linkedBy: string): Promise<any>;
|
29
30
|
}
|
@@ -392,7 +392,7 @@ class CrmService extends serviceSDK_1.Service {
|
|
392
392
|
const query = queries_1.GET_REUSME_BY_CUSTOMER_ID;
|
393
393
|
const variables = {
|
394
394
|
customerId,
|
395
|
-
partyId: this.orgId
|
395
|
+
partyId: this.orgId,
|
396
396
|
};
|
397
397
|
try {
|
398
398
|
const response = yield this.graphqlQueryV2(query, variables);
|
@@ -410,7 +410,7 @@ class CrmService extends serviceSDK_1.Service {
|
|
410
410
|
const variables = {
|
411
411
|
resumeOriginalId,
|
412
412
|
domain,
|
413
|
-
createdBy
|
413
|
+
createdBy,
|
414
414
|
};
|
415
415
|
try {
|
416
416
|
const response = yield this.graphqlMutationV2(mutation, variables);
|
@@ -422,5 +422,24 @@ class CrmService extends serviceSDK_1.Service {
|
|
422
422
|
}
|
423
423
|
});
|
424
424
|
}
|
425
|
+
linkingResumeDomainAndContact(resumeDomainId, resumeContactId, contactType, linkedBy) {
|
426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
427
|
+
const mutation = mutations_1.LINKING_RESUME_DOMAIN_AND_CONTACT;
|
428
|
+
const variables = {
|
429
|
+
resumeDomainId,
|
430
|
+
resumeContactId,
|
431
|
+
contactType,
|
432
|
+
linkedBy,
|
433
|
+
};
|
434
|
+
try {
|
435
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
436
|
+
return response.linkingResumeDomainAndContact;
|
437
|
+
}
|
438
|
+
catch (error) {
|
439
|
+
console.log(`Error in linkingResumeDomainAndContact: ${error}`);
|
440
|
+
throw error;
|
441
|
+
}
|
442
|
+
});
|
443
|
+
}
|
425
444
|
}
|
426
445
|
exports.CrmService = CrmService;
|