@longvansoftware/service-js-client 1.13.3 → 1.13.4
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.
@@ -8,3 +8,4 @@ export declare const GET_LIST_COMMENT: import("graphql").DocumentNode;
|
|
8
8
|
export declare const GET_RESUME_ID_BY_RESOURCE: import("graphql").DocumentNode;
|
9
9
|
export declare const GET_RESUME_CONTACT: import("graphql").DocumentNode;
|
10
10
|
export declare const GET_REUSME_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
11
|
+
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
3
|
+
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
6
6
|
query GetListOpportunity(
|
@@ -317,3 +317,14 @@ exports.GET_REUSME_BY_CUSTOMER_ID = (0, graphql_tag_1.gql) `
|
|
317
317
|
}
|
318
318
|
}
|
319
319
|
`;
|
320
|
+
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
321
|
+
query GetResumeDomainByServiceId($serviceId: String!) {
|
322
|
+
getResumeDomainByServiceId(serviceId: $serviceId) {
|
323
|
+
resumeId
|
324
|
+
resumeName
|
325
|
+
status
|
326
|
+
statusCode
|
327
|
+
level
|
328
|
+
}
|
329
|
+
}
|
330
|
+
`;
|
@@ -27,4 +27,5 @@ export declare class CrmService extends Service {
|
|
27
27
|
getResumesByCustomerId(customerId: string): Promise<any>;
|
28
28
|
cloneResume(resumeOriginalId: string, domain: string, createdBy: string): Promise<any>;
|
29
29
|
linkingResumeDomainAndContact(resumeDomainId: string, resumeContactId: string, contactType: string, linkedBy: string): Promise<any>;
|
30
|
+
getResumeDomainByServiceId(serviceId: string): Promise<any>;
|
30
31
|
}
|
@@ -441,5 +441,21 @@ class CrmService extends serviceSDK_1.Service {
|
|
441
441
|
}
|
442
442
|
});
|
443
443
|
}
|
444
|
+
getResumeDomainByServiceId(serviceId) {
|
445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
446
|
+
const query = queries_1.GET_RESUME_DOMAIN_BY_SERVICE_ID;
|
447
|
+
const variables = {
|
448
|
+
serviceId,
|
449
|
+
};
|
450
|
+
try {
|
451
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
452
|
+
return response.getResumeDomainByServiceId;
|
453
|
+
}
|
454
|
+
catch (error) {
|
455
|
+
console.log(`Error in getResumeDomainByServiceId: ${error}`);
|
456
|
+
throw error;
|
457
|
+
}
|
458
|
+
});
|
459
|
+
}
|
444
460
|
}
|
445
461
|
exports.CrmService = CrmService;
|