@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.
@@ -166,6 +166,7 @@ exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
166
166
  domainName
167
167
  isAvailable
168
168
  topDomain
169
+ message
169
170
  }
170
171
  }
171
172
  `;
@@ -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
+ `;
@@ -304,6 +304,7 @@ exports.GET_RESUME_CONTACT = (0, graphql_tag_1.gql) `
304
304
  birthday
305
305
  cpFrom
306
306
  level
307
+ statusCode
307
308
  }
308
309
  }
309
310
  `;
@@ -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
  }
@@ -13,4 +13,5 @@ export declare class CloudRestService extends Service {
13
13
  getDistrictsByProvinceId(provinceId: string): Promise<any>;
14
14
  getWardByDistrictId(districtId: string): Promise<any>;
15
15
  getEnterprises(gdtCode: string): Promise<any>;
16
+ getCountries(): Promise<any>;
16
17
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [