@longvansoftware/storefront-js-client 1.7.4 → 1.7.5

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.
@@ -106,7 +106,14 @@ exports.UPDATE_WORK_EFFORT_DESCRIPTION = (0, graphql_tag_1.gql) `
106
106
  startDateActual
107
107
  startDateExpect
108
108
  source
109
- ownerId
109
+ owner {
110
+ id
111
+ fullName
112
+ name
113
+ type
114
+ phone
115
+ email
116
+ }
110
117
  priorityName
111
118
  priorityValue
112
119
  connectorId
@@ -151,7 +158,14 @@ exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
151
158
  startDateActual
152
159
  startDateExpect
153
160
  source
154
- ownerId
161
+ owner {
162
+ id
163
+ fullName
164
+ name
165
+ type
166
+ phone
167
+ email
168
+ }
155
169
  priorityName
156
170
  priorityValue
157
171
  connectorId
@@ -203,7 +217,14 @@ exports.UPDATE_WORK_EFFORT_NAME = (0, graphql_tag_1.gql) `
203
217
  startDateActual
204
218
  startDateExpect
205
219
  source
206
- ownerId
220
+ owner {
221
+ id
222
+ fullName
223
+ name
224
+ type
225
+ phone
226
+ email
227
+ }
207
228
  priorityName
208
229
  priorityValue
209
230
  connectorId
@@ -373,6 +394,7 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
373
394
  $partnerId: String!
374
395
  $createdBy: String!
375
396
  $name: String
397
+ $description: String
376
398
  $workEffortTypeId: String!
377
399
  $source: String!
378
400
  $attributes: JSON
@@ -382,13 +404,194 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
382
404
  partnerId: $partnerId
383
405
  createdBy: $createdBy
384
406
  name: $name
407
+ description: $description
385
408
  workEffortTypeId: $workEffortTypeId
386
409
  source: $source
387
410
  attributes: $attributes
388
411
  addAttachmentRequest: $addAttachmentRequest
389
412
  ) {
390
- workEffortTypeId
391
413
  id
414
+ createdStamp
415
+ updatedStamp
416
+ createdBy
417
+ updatedBy
418
+ name
419
+ partyId
420
+ targetId
421
+ targetType
422
+ targetUrl
423
+ description
424
+ status
425
+ parentId
426
+ workEffortTypeId
427
+ stmId
428
+ workflowId
429
+ endDateExpect
430
+ endDateActual
431
+ startDateActual
432
+ startDateExpect
433
+ source
434
+ owner {
435
+ id
436
+ fullName
437
+ name
438
+ type
439
+ phone
440
+ email
441
+ }
442
+ priorityName
443
+ priorityValue
444
+ connectorId
445
+ mode
446
+ partyGroupIds
447
+ tagIds
448
+ processResult
449
+ processStatus
450
+ subTasks {
451
+ id
452
+ createdStamp
453
+ updatedStamp
454
+ createdBy
455
+ updatedBy
456
+ name
457
+ partyId
458
+ targetId
459
+ targetType
460
+ targetUrl
461
+ description
462
+ status
463
+ parentId
464
+ workEffortTypeId
465
+ stmId
466
+ workflowId
467
+ endDateExpect
468
+ endDateActual
469
+ startDateActual
470
+ startDateExpect
471
+ source
472
+ owner {
473
+ id
474
+ fullName
475
+ name
476
+ type
477
+ phone
478
+ email
479
+ }
480
+ priorityName
481
+ priorityValue
482
+ connectorId
483
+ mode
484
+ partyGroupIds
485
+ tagIds
486
+ processResult
487
+ processStatus
488
+ processPipeline {
489
+ id
490
+ name
491
+ }
492
+ attachments {
493
+ id
494
+ createdStamp
495
+ updatedStamp
496
+ updatedBy
497
+ createdBy
498
+ partyId
499
+ path
500
+ srcId
501
+ srcName
502
+ srcPath
503
+ srcConfigPathId
504
+ name
505
+ fileType
506
+ type
507
+ status
508
+ referId
509
+ }
510
+ subTasks {
511
+ id
512
+ createdStamp
513
+ updatedStamp
514
+ createdBy
515
+ updatedBy
516
+ name
517
+ partyId
518
+ targetId
519
+ targetType
520
+ targetUrl
521
+ description
522
+ status
523
+ parentId
524
+ workEffortTypeId
525
+ stmId
526
+ workflowId
527
+ endDateExpect
528
+ endDateActual
529
+ startDateActual
530
+ startDateExpect
531
+ source
532
+ ownerId
533
+ priorityName
534
+ priorityValue
535
+ connectorId
536
+ mode
537
+ partyGroupIds
538
+ tagIds
539
+ processResult
540
+ processStatus
541
+ }
542
+ actionLink {
543
+ name
544
+ uri
545
+ type
546
+ partyId
547
+ fromCollection
548
+ toCollection
549
+ group
550
+ params
551
+ id
552
+ createdStamp
553
+ updatedStamp
554
+ updatedBy
555
+ createdBy
556
+ }
557
+ }
558
+ attachments {
559
+ id
560
+ createdStamp
561
+ updatedStamp
562
+ updatedBy
563
+ createdBy
564
+ partyId
565
+ path
566
+ srcId
567
+ srcName
568
+ srcPath
569
+ srcConfigPathId
570
+ name
571
+ fileType
572
+ type
573
+ status
574
+ referId
575
+ }
576
+ processPipeline {
577
+ id
578
+ name
579
+ }
580
+ actionLink {
581
+ name
582
+ uri
583
+ type
584
+ partyId
585
+ fromCollection
586
+ toCollection
587
+ group
588
+ params
589
+ id
590
+ createdStamp
591
+ updatedStamp
592
+ updatedBy
593
+ createdBy
594
+ }
392
595
  }
393
596
  }
394
597
  `;
@@ -424,7 +627,14 @@ exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = (0, graphql_tag_1.gql) `
424
627
  startDateActual
425
628
  startDateExpect
426
629
  source
427
- ownerId
630
+ owner {
631
+ id
632
+ fullName
633
+ name
634
+ type
635
+ phone
636
+ email
637
+ }
428
638
  priorityName
429
639
  priorityValue
430
640
  connectorId
@@ -469,7 +679,14 @@ exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = (0, graphql_tag_1.gql) `
469
679
  startDateActual
470
680
  startDateExpect
471
681
  source
472
- ownerId
682
+ owner {
683
+ id
684
+ fullName
685
+ name
686
+ type
687
+ phone
688
+ email
689
+ }
473
690
  priorityName
474
691
  priorityValue
475
692
  connectorId
@@ -25,7 +25,6 @@ exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
25
25
  referEmail
26
26
  id
27
27
  createdBy
28
- ownerId
29
28
  workEffortTypeId
30
29
  partyId
31
30
  name
@@ -173,7 +172,6 @@ exports.GET_LIST_TICKET = (0, graphql_tag_1.gql) `
173
172
  total
174
173
  data {
175
174
  id
176
- ownerId
177
175
  workEffortTypeId
178
176
  partyId
179
177
  name
@@ -328,10 +326,17 @@ exports.GET_WORK_EFFORTS = (0, graphql_tag_1.gql) `
328
326
  startDateActual
329
327
  startDateExpect
330
328
  source
331
- ownerId
332
329
  priorityName
333
330
  priorityValue
334
331
  connectorId
332
+ owner {
333
+ id
334
+ fullName
335
+ name
336
+ type
337
+ phone
338
+ email
339
+ }
335
340
  mode
336
341
  partyGroupIds
337
342
  tagIds
@@ -381,7 +386,6 @@ exports.GET_WORK_EFFORTS = (0, graphql_tag_1.gql) `
381
386
  startDateActual
382
387
  startDateExpect
383
388
  source
384
- ownerId
385
389
  priorityName
386
390
  priorityValue
387
391
  connectorId
@@ -434,13 +438,20 @@ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
434
438
  startDateActual
435
439
  startDateExpect
436
440
  source
437
- ownerId
438
441
  priorityName
439
442
  priorityValue
440
443
  connectorId
441
444
  mode
442
445
  partyGroupIds
443
446
  tagIds
447
+ owner {
448
+ id
449
+ fullName
450
+ name
451
+ type
452
+ phone
453
+ email
454
+ }
444
455
  processResult
445
456
  processStatus
446
457
  processPipeline {
@@ -487,7 +498,6 @@ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
487
498
  startDateActual
488
499
  startDateExpect
489
500
  source
490
- ownerId
491
501
  priorityName
492
502
  priorityValue
493
503
  connectorId
@@ -18,7 +18,7 @@ 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, workEffortTypeId: string, source: string, attributes: object, addAttachmentRequest: AddAttachmentRequest): Promise<any>;
21
+ createWorkEffort(createdBy: string, name: String, decription: string, workEffortTypeId: string, source: string, attributes: object, addAttachmentRequest: AddAttachmentRequest): Promise<any>;
22
22
  getWorkEfforts(performerId: string, workEffortTypeId: string, source: string, pageNumber: number, pageSize: number, sorts: BaseSort): Promise<any>;
23
23
  getWorkEffortById(id: string): Promise<any>;
24
24
  updateWorkEffortProcessStatus(workEffortId: string, processStatus: string, performerId: string): Promise<any>;
@@ -292,13 +292,14 @@ class CrmService extends serviceSDK_1.Service {
292
292
  }
293
293
  });
294
294
  }
295
- createWorkEffort(createdBy, name, workEffortTypeId, source, attributes, addAttachmentRequest) {
295
+ createWorkEffort(createdBy, name, decription, workEffortTypeId, source, attributes, addAttachmentRequest) {
296
296
  return __awaiter(this, void 0, void 0, function* () {
297
297
  const query = mutations_1.CREATE_WORK_EFFORT;
298
298
  const variables = {
299
299
  partnerId: this.orgId,
300
300
  createdBy,
301
301
  name,
302
+ decription,
302
303
  workEffortTypeId,
303
304
  source,
304
305
  attributes,
@@ -9,6 +9,11 @@ export interface AddOpportunityRequest {
9
9
  targetId: string;
10
10
  extSource: string;
11
11
  ownerId?: string;
12
+ forms: [Map];
13
+ }
14
+ export interface Map {
15
+ key: string;
16
+ value: string;
12
17
  }
13
18
  export interface AddAttachmentRequestFull {
14
19
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [