@longvansoftware/storefront-js-client 3.4.2 → 3.4.4

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.
@@ -388,18 +388,22 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
388
388
  $createdBy: String!
389
389
  $name: String
390
390
  $description: String
391
- $workflowId: String
392
- $group: String
391
+ $workEffortTypeId: String!
392
+ $source: String!
393
393
  $attributes: JSON
394
+ $addAttachmentRequest: [AddAttachmentRequest]
395
+ $parentId: String
394
396
  ) {
395
397
  createWorkEffort(
396
398
  partnerId: $partnerId
397
399
  createdBy: $createdBy
398
400
  name: $name
399
401
  description: $description
400
- workflowId: $workflowId
401
- group: $group
402
+ workEffortTypeId: $workEffortTypeId
403
+ source: $source
402
404
  attributes: $attributes
405
+ addAttachmentRequest: $addAttachmentRequest
406
+ parentId: $parentId
403
407
  ) {
404
408
  id
405
409
  createdStamp
@@ -422,6 +426,14 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
422
426
  startDateActual
423
427
  startDateExpect
424
428
  source
429
+ owner {
430
+ id
431
+ fullName
432
+ name
433
+ type
434
+ phone
435
+ email
436
+ }
425
437
  priorityName
426
438
  priorityValue
427
439
  connectorId
@@ -430,6 +442,143 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
430
442
  tagIds
431
443
  processResult
432
444
  processStatus
445
+ subTasks {
446
+ id
447
+ createdStamp
448
+ updatedStamp
449
+ createdBy
450
+ updatedBy
451
+ name
452
+ partyId
453
+ targetId
454
+ targetType
455
+ targetUrl
456
+ description
457
+ status
458
+ parentId
459
+ workEffortTypeId
460
+ stmId
461
+ workflowId
462
+ endDateExpect
463
+ endDateActual
464
+ startDateActual
465
+ startDateExpect
466
+ source
467
+ owner {
468
+ id
469
+ fullName
470
+ name
471
+ type
472
+ phone
473
+ email
474
+ }
475
+ priorityName
476
+ priorityValue
477
+ connectorId
478
+ mode
479
+ partyGroupIds
480
+ tagIds
481
+ processResult
482
+ processStatus
483
+ processPipeline {
484
+ id
485
+ name
486
+ }
487
+ attachments {
488
+ id
489
+ createdStamp
490
+ updatedStamp
491
+ updatedBy
492
+ createdBy
493
+ partyId
494
+ path
495
+ srcId
496
+ srcName
497
+ srcPath
498
+ srcConfigPathId
499
+ name
500
+ fileType
501
+ type
502
+ status
503
+ referId
504
+ }
505
+ subTasks {
506
+ id
507
+ createdStamp
508
+ updatedStamp
509
+ createdBy
510
+ updatedBy
511
+ name
512
+ partyId
513
+ targetId
514
+ targetType
515
+ targetUrl
516
+ description
517
+ status
518
+ parentId
519
+ workEffortTypeId
520
+ stmId
521
+ workflowId
522
+ endDateExpect
523
+ endDateActual
524
+ startDateActual
525
+ startDateExpect
526
+ source
527
+ owner {
528
+ id
529
+ fullName
530
+ name
531
+ type
532
+ phone
533
+ email
534
+ }
535
+ priorityName
536
+ priorityValue
537
+ connectorId
538
+ mode
539
+ partyGroupIds
540
+ tagIds
541
+ processResult
542
+ processStatus
543
+ }
544
+ actionLink {
545
+ name
546
+ uri
547
+ type
548
+ partyId
549
+ fromCollection
550
+ toCollection
551
+ group
552
+ params
553
+ id
554
+ createdStamp
555
+ updatedStamp
556
+ updatedBy
557
+ createdBy
558
+ }
559
+ }
560
+ attachments {
561
+ id
562
+ createdStamp
563
+ updatedStamp
564
+ updatedBy
565
+ createdBy
566
+ partyId
567
+ path
568
+ srcId
569
+ srcName
570
+ srcPath
571
+ srcConfigPathId
572
+ name
573
+ fileType
574
+ type
575
+ status
576
+ referId
577
+ }
578
+ processPipeline {
579
+ id
580
+ name
581
+ }
433
582
  }
434
583
  }
435
584
  `;
@@ -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
@@ -18,12 +18,13 @@ export declare class CrmService extends Service {
18
18
  getAttachmentByWorkEffortId(workEffortIds: [string]): Promise<any>;
19
19
  getListComment(getCommentRequest: GetCommentRequest): Promise<any>;
20
20
  addComment(params: any): Promise<any>;
21
- createWorkEffort(createdBy: string, name: String, decription: string, workflowId: string, group: string, attributes: object): Promise<any>;
21
+ createWorkEffort(createdBy: string, name: String, decription: string, workEffortTypeId: string, source: string, attributes: object, addAttachmentRequest: AddAttachmentRequest, parentId?: string): Promise<any>;
22
22
  createWorkEffortV2(createdBy: string, name: string, decription: string, workEffortTypeId: string, source: string): Promise<any>;
23
23
  getWorkEfforts(performerId: string, workflowId: string, group: string, pageNumber: number, pageSize: number, sorts: BaseSort, attributes: object, fromDate: any, toDate: any): Promise<any>;
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>;
@@ -292,7 +292,7 @@ class CrmService extends serviceSDK_1.Service {
292
292
  }
293
293
  });
294
294
  }
295
- createWorkEffort(createdBy, name, decription, workflowId, group, attributes) {
295
+ createWorkEffort(createdBy, name, decription, workEffortTypeId, source, attributes, addAttachmentRequest, parentId) {
296
296
  return __awaiter(this, void 0, void 0, function* () {
297
297
  const query = mutations_1.CREATE_WORK_EFFORT;
298
298
  const variables = {
@@ -300,9 +300,11 @@ class CrmService extends serviceSDK_1.Service {
300
300
  createdBy,
301
301
  name,
302
302
  decription,
303
- workflowId,
304
- group,
303
+ workEffortTypeId,
304
+ source,
305
305
  attributes,
306
+ addAttachmentRequest,
307
+ parentId,
306
308
  };
307
309
  try {
308
310
  const response = yield this.graphqlMutationV2(query, variables);
@@ -413,6 +415,21 @@ class CrmService extends serviceSDK_1.Service {
413
415
  }
414
416
  });
415
417
  }
418
+ getWorkEffortByIdV2(id) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const query = queries_1.GET_WORK_EFFORT_BY_ID_V2;
421
+ const variables = {
422
+ id,
423
+ };
424
+ try {
425
+ const response = yield this.graphqlMutationV2(query, variables);
426
+ return response.getWorkEffortById;
427
+ }
428
+ catch (error) {
429
+ throw error;
430
+ }
431
+ });
432
+ }
416
433
  updateWorkEffortProcessStatus(workEffortId, processStatus, performerId) {
417
434
  return __awaiter(this, void 0, void 0, function* () {
418
435
  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.4",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [