@longvansoftware/service-js-client 1.8.6 → 1.8.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.
- package/dist/src/graphql/cloud/queries.js +1 -0
- 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/graphql/orderGraphQL/queries.js +3 -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
@@ -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
|
+
`;
|
@@ -20,6 +20,8 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
20
20
|
currencyCode
|
21
21
|
}
|
22
22
|
createdStamp
|
23
|
+
customAttribute
|
24
|
+
description
|
23
25
|
}
|
24
26
|
lineItems {
|
25
27
|
orderLineItem {
|
@@ -69,6 +71,7 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
69
71
|
unit
|
70
72
|
productId
|
71
73
|
}
|
74
|
+
itemType
|
72
75
|
}
|
73
76
|
}
|
74
77
|
}
|
@@ -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;
|