@longvansoftware/storefront-js-client 3.4.2 → 3.4.3

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,6 +9,7 @@ export declare const GET_WORK_EFFORTS: import("graphql").DocumentNode;
9
9
  export declare const GET_WORK_EFFORTS_V3: import("graphql").DocumentNode;
10
10
  export declare const GET_WORK_EFFORTS_V2: import("graphql").DocumentNode;
11
11
  export declare const GET_WORK_EFFORT_BY_ID: import("graphql").DocumentNode;
12
+ export declare const GET_WORK_EFFORT_BY_ID_V2: import("graphql").DocumentNode;
12
13
  export declare const GET_CONNECTOR_BY_RESOURCE: import("graphql").DocumentNode;
13
14
  export declare const GET_TAG: import("graphql").DocumentNode;
14
15
  export declare const SEARCH_TOPIC: 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 = 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_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(
@@ -687,6 +687,101 @@ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
687
687
  }
688
688
  }
689
689
  `;
690
+ exports.GET_WORK_EFFORT_BY_ID_V2 = (0, graphql_tag_1.gql) `
691
+ query GetWorkEffortById($id: String!) {
692
+ getWorkEffortById(id: $id) {
693
+ id
694
+ createdStamp
695
+ updatedStamp
696
+ createdBy
697
+ updatedBy
698
+ name
699
+ partyId
700
+ targetId
701
+ targetType
702
+ targetUrl
703
+ description
704
+ status
705
+ parentId
706
+ workEffortTypeId
707
+ stmId
708
+ workflowId
709
+ endDateExpect
710
+ endDateActual
711
+ startDateActual
712
+ startDateExpect
713
+ source
714
+ priorityName
715
+ priorityValue
716
+ connectorId
717
+ mode
718
+ partyGroupIds
719
+ tagIds
720
+ contactName
721
+ contactPhone
722
+ contactEmail
723
+ extSource
724
+ owner {
725
+ id
726
+ fullName
727
+ name
728
+ type
729
+ phone
730
+ email
731
+ }
732
+ processResult
733
+ processStatus
734
+ subTasks {
735
+ id
736
+ createdStamp
737
+ updatedStamp
738
+ createdBy
739
+ updatedBy
740
+ name
741
+ partyId
742
+ targetId
743
+ targetType
744
+ targetUrl
745
+ description
746
+ status
747
+ parentId
748
+ workEffortTypeId
749
+ stmId
750
+ workflowId
751
+ endDateExpect
752
+ endDateActual
753
+ startDateActual
754
+ startDateExpect
755
+ source
756
+ priorityName
757
+ priorityValue
758
+ connectorId
759
+ mode
760
+ partyGroupIds
761
+ tagIds
762
+ processResult
763
+ attachments {
764
+ id
765
+ createdStamp
766
+ updatedStamp
767
+ updatedBy
768
+ createdBy
769
+ partyId
770
+ path
771
+ srcId
772
+ srcName
773
+ srcPath
774
+ srcConfigPathId
775
+ name
776
+ fileType
777
+ type
778
+ status
779
+ referId
780
+ }
781
+ }
782
+ }
783
+ }
784
+ `;
690
785
  exports.GET_CONNECTOR_BY_RESOURCE = (0, graphql_tag_1.gql) `
691
786
  query GetConnectorByResource(
692
787
  $resourceId: String
@@ -24,6 +24,7 @@ export declare class CrmService extends Service {
24
24
  getWorkEffortsV3(performerId: string, workflowId: string, group: string, pageNumber: number, pageSize: number, sorts: BaseSort, fromDate: string, toDate: string): Promise<any>;
25
25
  getWorkEffortsV2(performerId: string, workEffortTypeId: string, source: string, fromDate: string, toDate: string): Promise<any>;
26
26
  getWorkEffortById(id: string): Promise<any>;
27
+ getWorkEffortByIdV2(id: string): Promise<any>;
27
28
  updateWorkEffortProcessStatus(workEffortId: string, processStatus: string, performerId: string): Promise<any>;
28
29
  getConnectorByResource(resourceId: string, resourceType: string, type: string): Promise<any>;
29
30
  createConnector(resourceId: string, resourceType: string, description: string, type: string, createdBy: string): Promise<any>;
@@ -413,6 +413,21 @@ class CrmService extends serviceSDK_1.Service {
413
413
  }
414
414
  });
415
415
  }
416
+ getWorkEffortByIdV2(id) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ const query = queries_1.GET_WORK_EFFORT_BY_ID_V2;
419
+ const variables = {
420
+ id,
421
+ };
422
+ try {
423
+ const response = yield this.graphqlMutationV2(query, variables);
424
+ return response.getWorkEffortById;
425
+ }
426
+ catch (error) {
427
+ throw error;
428
+ }
429
+ });
430
+ }
416
431
  updateWorkEffortProcessStatus(workEffortId, processStatus, performerId) {
417
432
  return __awaiter(this, void 0, void 0, function* () {
418
433
  const mutation = mutations_1.UPDATE_WORK_EFFORT_PROCESS_STATUS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [