@longvansoftware/service-js-client 1.20.7 → 1.20.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.
@@ -391,11 +391,12 @@ exports.LINKING_RESUME_DOMAIN_AND_CONTACT = (0, graphql_tag_1.gql) `
391
391
  `;
392
392
  exports.ADD_RESOURCE_RELATED = (0, graphql_tag_1.gql) `
393
393
  mutation AddResourceRelated(
394
- $fromId: String!
395
- $fromResourceType: String!
396
- $toIds: [String]!
397
- $toResourceType: String!
398
- $createdBy: String!
394
+ $fromId: String
395
+ $fromResourceType: String
396
+ $toIds: [String]
397
+ $toResourceType: String
398
+ $createdBy: String
399
+ $type: String
399
400
  ) {
400
401
  addResourceRelated(
401
402
  fromId: $fromId
@@ -403,6 +404,7 @@ exports.ADD_RESOURCE_RELATED = (0, graphql_tag_1.gql) `
403
404
  toIds: $toIds
404
405
  toResourceType: $toResourceType
405
406
  createdBy: $createdBy
407
+ type: $type
406
408
  )
407
409
  }
408
410
  `;
@@ -32,7 +32,7 @@ export declare class CrmService extends Service {
32
32
  getResumeDomainByServiceId(serviceId: string): Promise<any>;
33
33
  getCollegesByProvinceId(provinceId: string | null): Promise<any>;
34
34
  getRelatedResourceByResourceType(fromId: string, fromResourceType: string, toResourceType: string): Promise<any>;
35
- addResourceRelated(fromId: string, fromResourceType: string, toIds: string[], toResourceType: string, createdBy: string): Promise<any>;
35
+ addResourceRelated(fromId: string, fromResourceType: string, toIds: string[], toResourceType: string, createdBy: string, type: string): Promise<any>;
36
36
  getResumeInfoByCustomerId(customerId: string): Promise<any>;
37
37
  getResumeInfoByCustomerIdDynamic(customerId: string, fields: string[]): Promise<any>;
38
38
  createResumeInfo(data: any): Promise<any>;
@@ -527,7 +527,7 @@ class CrmService extends serviceSDK_1.Service {
527
527
  }
528
528
  });
529
529
  }
530
- addResourceRelated(fromId, fromResourceType, toIds, toResourceType, createdBy) {
530
+ addResourceRelated(fromId, fromResourceType, toIds, toResourceType, createdBy, type) {
531
531
  return __awaiter(this, void 0, void 0, function* () {
532
532
  const mutation = mutations_1.ADD_RESOURCE_RELATED;
533
533
  const variables = {
@@ -536,6 +536,7 @@ class CrmService extends serviceSDK_1.Service {
536
536
  toIds,
537
537
  toResourceType,
538
538
  createdBy,
539
+ type
539
540
  };
540
541
  try {
541
542
  const response = yield this.graphqlMutationV2(mutation, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.20.7",
3
+ "version": "1.20.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [