@longvansoftware/storefront-js-client 4.6.5 → 4.6.6

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.
@@ -19,3 +19,5 @@ export declare const ADD_TOPIC_RELATED_RESOURCE: import("graphql").DocumentNode;
19
19
  export declare const CREATE_WORK_EFFORT_V2: import("graphql").DocumentNode;
20
20
  export declare const CREATE_ORG_MUTATION: import("graphql").DocumentNode;
21
21
  export declare const UPDATE_RESUME: import("graphql").DocumentNode;
22
+ export declare const UPLOAD_IMAGE_RESUME: import("graphql").DocumentNode;
23
+ export declare const CREATE_RESUME: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UPDATE_RESUME = exports.CREATE_ORG_MUTATION = exports.CREATE_WORK_EFFORT_V2 = exports.ADD_TOPIC_RELATED_RESOURCE = exports.CREATE_TOPIC = exports.CLOSE_TOPIC = exports.REMOVE_TAG = exports.UPDATE_CONNECTOR_DESCRIPTION = exports.ADD_TAG = exports.CREATE_CONNECTOR = exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = exports.CREATE_WORK_EFFORT = 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_V2 = exports.ADD_OPPORTUNITY_MUTATION = void 0;
3
+ exports.CREATE_RESUME = exports.UPLOAD_IMAGE_RESUME = exports.UPDATE_RESUME = exports.CREATE_ORG_MUTATION = exports.CREATE_WORK_EFFORT_V2 = exports.ADD_TOPIC_RELATED_RESOURCE = exports.CREATE_TOPIC = exports.CLOSE_TOPIC = exports.REMOVE_TAG = exports.UPDATE_CONNECTOR_DESCRIPTION = exports.ADD_TAG = exports.CREATE_CONNECTOR = exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = exports.CREATE_WORK_EFFORT = 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_V2 = 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(
@@ -1094,8 +1094,38 @@ exports.UPDATE_RESUME = (0, graphql_tag_1.gql) `
1094
1094
  ) {
1095
1095
  updateResume(
1096
1096
  resumeId: $resumeId
1097
- updatedBy:$updatedBy
1097
+ updatedBy: $updatedBy
1098
1098
  updateResumeRequests: $updateResumeRequests
1099
1099
  )
1100
1100
  }
1101
1101
  `;
1102
+ exports.UPLOAD_IMAGE_RESUME = (0, graphql_tag_1.gql) `
1103
+ mutation UploadImageResume(
1104
+ $resumeId: String
1105
+ $fieldName: String
1106
+ $uploadImageInput: UploadImageInput!
1107
+ $updatedBy: String!
1108
+ ) {
1109
+ uploadImageResume(
1110
+ resumeId: $resumeId
1111
+ fieldName: $fieldName
1112
+ uploadImageInput: $uploadImageInput
1113
+ updatedBy: $updatedBy
1114
+ )
1115
+ }
1116
+ `;
1117
+ exports.CREATE_RESUME = (0, graphql_tag_1.gql) `
1118
+ mutation CreateResume(
1119
+ $resumeTemplateId: String!
1120
+ $partyId: String!
1121
+ $createdBy: String!
1122
+ $name: String
1123
+ ) {
1124
+ createResume(
1125
+ resumeTemplateId: $resumeTemplateId
1126
+ partyId: $partyId
1127
+ createdBy: $createdBy
1128
+ name: $name
1129
+ )
1130
+ }
1131
+ `;
@@ -17,3 +17,4 @@ export declare const GET_MY_WORK_EFFORT_TODAY: import("graphql").DocumentNode;
17
17
  export declare const GET_MESSAGES: import("graphql").DocumentNode;
18
18
  export declare const GET_RESOURCE_RELATED_TOPIC: import("graphql").DocumentNode;
19
19
  export declare const GET_WORK_FLOWS: import("graphql").DocumentNode;
20
+ export declare const GET_RESUMES_BY_FIELD_NAME_AND_VALUE: import("graphql").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_WORK_FLOWS = exports.GET_RESOURCE_RELATED_TOPIC = exports.GET_MESSAGES = exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = exports.GET_WORK_EFFORT_BY_ID_V2 = exports.GET_WORK_EFFORT_BY_ID = exports.GET_WORK_EFFORTS_V2 = exports.GET_WORK_EFFORTS_V3 = exports.GET_WORK_EFFORTS = 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_RESUMES_BY_FIELD_NAME_AND_VALUE = exports.GET_WORK_FLOWS = exports.GET_RESOURCE_RELATED_TOPIC = exports.GET_MESSAGES = exports.GET_MY_WORK_EFFORT_TODAY = exports.SEARCH_TOPIC = exports.GET_TAG = exports.GET_CONNECTOR_BY_RESOURCE = exports.GET_WORK_EFFORT_BY_ID_V2 = exports.GET_WORK_EFFORT_BY_ID = exports.GET_WORK_EFFORTS_V2 = exports.GET_WORK_EFFORTS_V3 = exports.GET_WORK_EFFORTS = 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(
@@ -941,3 +941,25 @@ exports.GET_WORK_FLOWS = (0, graphql_tag_1.gql) `
941
941
  }
942
942
  }
943
943
  `;
944
+ exports.GET_RESUMES_BY_FIELD_NAME_AND_VALUE = (0, graphql_tag_1.gql) `
945
+ query GetResumesByFieldNameAndValue(
946
+ $fieldName: String
947
+ $value: String
948
+ $resumeTemplateId: String
949
+ $orgId: String
950
+ ) {
951
+ getResumesByFieldNameAndValue(
952
+ fieldName: $fieldName
953
+ value: $value
954
+ resumeTemplateId: $resumeTemplateId
955
+ orgId: $orgId
956
+ ) {
957
+ resumeId
958
+ resumeName
959
+ status
960
+ statusCode
961
+ level
962
+ data
963
+ }
964
+ }
965
+ `;
@@ -45,4 +45,7 @@ export declare class CrmService extends Service {
45
45
  getWorkflows(group: string, keyword: string): Promise<any>;
46
46
  createOrg(orgName: string, providerId: string, groupTenantId: string): Promise<any>;
47
47
  updateResume(resumeId: string, updateResumeRequests: any, updatedBy: string): Promise<any>;
48
+ getResumesByFieldNameAndValue(orgId: string, fieldName: string, value: string, resumeTemplateId: string): Promise<any>;
49
+ uploadImageResume(resumeId: string, fieldName: string, uploadImageInput: any, updatedBy: string): Promise<any>;
50
+ createResume(resumeTemplateId: string, partyId: string, createdBy: string, name: string): Promise<any>;
48
51
  }
@@ -774,5 +774,59 @@ class CrmService extends serviceSDK_1.Service {
774
774
  }
775
775
  });
776
776
  }
777
+ getResumesByFieldNameAndValue(orgId, fieldName, value, resumeTemplateId) {
778
+ return __awaiter(this, void 0, void 0, function* () {
779
+ const query = queries_1.GET_RESUMES_BY_FIELD_NAME_AND_VALUE;
780
+ const variables = {
781
+ orgId,
782
+ fieldName,
783
+ value,
784
+ resumeTemplateId,
785
+ };
786
+ try {
787
+ const response = yield this.graphqlQuery(query, variables);
788
+ return response.getResumesByFieldNameAndValue;
789
+ }
790
+ catch (error) {
791
+ throw error;
792
+ }
793
+ });
794
+ }
795
+ uploadImageResume(resumeId, fieldName, uploadImageInput, updatedBy) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ const mutation = mutations_1.UPLOAD_IMAGE_RESUME;
798
+ const variables = {
799
+ resumeId,
800
+ fieldName,
801
+ uploadImageInput,
802
+ updatedBy,
803
+ };
804
+ try {
805
+ const response = yield this.graphqlMutation(mutation, variables);
806
+ return response.uploadImageResume;
807
+ }
808
+ catch (error) {
809
+ throw error;
810
+ }
811
+ });
812
+ }
813
+ createResume(resumeTemplateId, partyId, createdBy, name) {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ const mutation = mutations_1.CREATE_RESUME;
816
+ const variables = {
817
+ resumeTemplateId,
818
+ partyId,
819
+ createdBy,
820
+ name,
821
+ };
822
+ try {
823
+ const response = yield this.graphqlMutation(mutation, variables);
824
+ return response.createResume;
825
+ }
826
+ catch (error) {
827
+ throw error;
828
+ }
829
+ });
830
+ }
777
831
  }
778
832
  exports.CrmService = CrmService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [