@longvansoftware/service-js-client 1.8.3 → 1.8.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.
@@ -9,3 +9,4 @@ export declare const ADD_COMMENT: import("graphql").DocumentNode;
9
9
  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
+ export declare const CLONE_RESUME: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.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(
@@ -361,3 +361,16 @@ exports.LINKING_RESUME_SERVICE = (0, graphql_tag_1.gql) `
361
361
  )
362
362
  }
363
363
  `;
364
+ exports.CLONE_RESUME = (0, graphql_tag_1.gql) `
365
+ mutation CloneResume(
366
+ $resumeOriginalId: String
367
+ $domain: String
368
+ $createdBy: String
369
+ ) {
370
+ cloneResume(
371
+ resumeOriginalId: $resumeOriginalId
372
+ domain: $domain
373
+ createdBy: $createdBy
374
+ )
375
+ }
376
+ `;
@@ -25,4 +25,5 @@ export declare class CrmService extends Service {
25
25
  getResumeIdByResource(resourceId: string, resourceType: string): Promise<any>;
26
26
  getResumeContact(resumeId: string, contactType: string): Promise<any>;
27
27
  getResumesByCustomerId(customerId: string): Promise<any>;
28
+ cloneResume(resumeOriginalId: string, domain: string, createdBy: string): Promise<any>;
28
29
  }
@@ -404,5 +404,23 @@ class CrmService extends serviceSDK_1.Service {
404
404
  }
405
405
  });
406
406
  }
407
+ cloneResume(resumeOriginalId, domain, createdBy) {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ const mutation = mutations_1.CLONE_RESUME;
410
+ const variables = {
411
+ resumeOriginalId,
412
+ domain,
413
+ createdBy
414
+ };
415
+ try {
416
+ const response = yield this.graphqlMutationV2(mutation, variables);
417
+ return response.cloneResume;
418
+ }
419
+ catch (error) {
420
+ console.log(`Error in cloneResume: ${error}`);
421
+ throw error;
422
+ }
423
+ });
424
+ }
407
425
  }
408
426
  exports.CrmService = CrmService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [