@longvansoftware/storefront-js-client 4.4.0 → 4.4.2
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.
|
@@ -18,3 +18,4 @@ export declare const CREATE_TOPIC: import("graphql").DocumentNode;
|
|
|
18
18
|
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
|
+
export declare const UPDATE_RESUME: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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(
|
|
@@ -1086,3 +1086,16 @@ exports.CREATE_ORG_MUTATION = (0, graphql_tag_1.gql) `
|
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
`;
|
|
1089
|
+
exports.UPDATE_RESUME = (0, graphql_tag_1.gql) `
|
|
1090
|
+
mutation UpdateResume(
|
|
1091
|
+
$resumeId: String!
|
|
1092
|
+
$updatedBy: String!
|
|
1093
|
+
$updateResumeRequests: JSON
|
|
1094
|
+
) {
|
|
1095
|
+
updateResume(
|
|
1096
|
+
resumeId: $resumeId
|
|
1097
|
+
updatedBy:$updatedBy
|
|
1098
|
+
updateResumeRequests: $updateResumeRequests
|
|
1099
|
+
)
|
|
1100
|
+
}
|
|
1101
|
+
`;
|
|
@@ -44,4 +44,5 @@ export declare class CrmService extends Service {
|
|
|
44
44
|
addTopicRelatedResource(topicId: string, resourceId: string, resourceType: string, createdBy: string): Promise<any>;
|
|
45
45
|
getWorkflows(group: string, keyword: string): Promise<any>;
|
|
46
46
|
createOrg(orgName: string, providerId: string, groupTenantId: string): Promise<any>;
|
|
47
|
+
updateResume(resumeId: string, updateResumeRequests: any, updatedBy: string): Promise<any>;
|
|
47
48
|
}
|
|
@@ -757,5 +757,22 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
+
updateResume(resumeId, updateResumeRequests, updatedBy) {
|
|
761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
762
|
+
const mutation = mutations_1.UPDATE_RESUME;
|
|
763
|
+
const variables = {
|
|
764
|
+
resumeId,
|
|
765
|
+
updateResumeRequests,
|
|
766
|
+
updatedBy,
|
|
767
|
+
};
|
|
768
|
+
try {
|
|
769
|
+
const response = yield this.graphqlMutation(mutation, variables);
|
|
770
|
+
return response.updateResume;
|
|
771
|
+
}
|
|
772
|
+
catch (error) {
|
|
773
|
+
throw error;
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
}
|
|
760
777
|
}
|
|
761
778
|
exports.CrmService = CrmService;
|