@longvansoftware/storefront-js-client 1.7.4 → 1.7.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.
@@ -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
@@ -266,7 +287,14 @@ exports.UPDATE_WORK_EFFORT_STATUS = (0, graphql_tag_1.gql) `
266
287
  startDateActual
267
288
  startDateExpect
268
289
  source
269
- ownerId
290
+ owner {
291
+ id
292
+ fullName
293
+ name
294
+ type
295
+ phone
296
+ email
297
+ }
270
298
  priorityName
271
299
  priorityValue
272
300
  extSource
@@ -373,6 +401,7 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
373
401
  $partnerId: String!
374
402
  $createdBy: String!
375
403
  $name: String
404
+ $description: String
376
405
  $workEffortTypeId: String!
377
406
  $source: String!
378
407
  $attributes: JSON
@@ -382,13 +411,201 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
382
411
  partnerId: $partnerId
383
412
  createdBy: $createdBy
384
413
  name: $name
414
+ description: $description
385
415
  workEffortTypeId: $workEffortTypeId
386
416
  source: $source
387
417
  attributes: $attributes
388
418
  addAttachmentRequest: $addAttachmentRequest
389
419
  ) {
390
- workEffortTypeId
391
420
  id
421
+ createdStamp
422
+ updatedStamp
423
+ createdBy
424
+ updatedBy
425
+ name
426
+ partyId
427
+ targetId
428
+ targetType
429
+ targetUrl
430
+ description
431
+ status
432
+ parentId
433
+ workEffortTypeId
434
+ stmId
435
+ workflowId
436
+ endDateExpect
437
+ endDateActual
438
+ startDateActual
439
+ startDateExpect
440
+ source
441
+ owner {
442
+ id
443
+ fullName
444
+ name
445
+ type
446
+ phone
447
+ email
448
+ }
449
+ priorityName
450
+ priorityValue
451
+ connectorId
452
+ mode
453
+ partyGroupIds
454
+ tagIds
455
+ processResult
456
+ processStatus
457
+ subTasks {
458
+ id
459
+ createdStamp
460
+ updatedStamp
461
+ createdBy
462
+ updatedBy
463
+ name
464
+ partyId
465
+ targetId
466
+ targetType
467
+ targetUrl
468
+ description
469
+ status
470
+ parentId
471
+ workEffortTypeId
472
+ stmId
473
+ workflowId
474
+ endDateExpect
475
+ endDateActual
476
+ startDateActual
477
+ startDateExpect
478
+ source
479
+ owner {
480
+ id
481
+ fullName
482
+ name
483
+ type
484
+ phone
485
+ email
486
+ }
487
+ priorityName
488
+ priorityValue
489
+ connectorId
490
+ mode
491
+ partyGroupIds
492
+ tagIds
493
+ processResult
494
+ processStatus
495
+ processPipeline {
496
+ id
497
+ name
498
+ }
499
+ attachments {
500
+ id
501
+ createdStamp
502
+ updatedStamp
503
+ updatedBy
504
+ createdBy
505
+ partyId
506
+ path
507
+ srcId
508
+ srcName
509
+ srcPath
510
+ srcConfigPathId
511
+ name
512
+ fileType
513
+ type
514
+ status
515
+ referId
516
+ }
517
+ subTasks {
518
+ id
519
+ createdStamp
520
+ updatedStamp
521
+ createdBy
522
+ updatedBy
523
+ name
524
+ partyId
525
+ targetId
526
+ targetType
527
+ targetUrl
528
+ description
529
+ status
530
+ parentId
531
+ workEffortTypeId
532
+ stmId
533
+ workflowId
534
+ endDateExpect
535
+ endDateActual
536
+ startDateActual
537
+ startDateExpect
538
+ source
539
+ owner {
540
+ id
541
+ fullName
542
+ name
543
+ type
544
+ phone
545
+ email
546
+ }
547
+ priorityName
548
+ priorityValue
549
+ connectorId
550
+ mode
551
+ partyGroupIds
552
+ tagIds
553
+ processResult
554
+ processStatus
555
+ }
556
+ actionLink {
557
+ name
558
+ uri
559
+ type
560
+ partyId
561
+ fromCollection
562
+ toCollection
563
+ group
564
+ params
565
+ id
566
+ createdStamp
567
+ updatedStamp
568
+ updatedBy
569
+ createdBy
570
+ }
571
+ }
572
+ attachments {
573
+ id
574
+ createdStamp
575
+ updatedStamp
576
+ updatedBy
577
+ createdBy
578
+ partyId
579
+ path
580
+ srcId
581
+ srcName
582
+ srcPath
583
+ srcConfigPathId
584
+ name
585
+ fileType
586
+ type
587
+ status
588
+ referId
589
+ }
590
+ processPipeline {
591
+ id
592
+ name
593
+ }
594
+ actionLink {
595
+ name
596
+ uri
597
+ type
598
+ partyId
599
+ fromCollection
600
+ toCollection
601
+ group
602
+ params
603
+ id
604
+ createdStamp
605
+ updatedStamp
606
+ updatedBy
607
+ createdBy
608
+ }
392
609
  }
393
610
  }
394
611
  `;
@@ -424,7 +641,14 @@ exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = (0, graphql_tag_1.gql) `
424
641
  startDateActual
425
642
  startDateExpect
426
643
  source
427
- ownerId
644
+ owner {
645
+ id
646
+ fullName
647
+ name
648
+ type
649
+ phone
650
+ email
651
+ }
428
652
  priorityName
429
653
  priorityValue
430
654
  connectorId
@@ -469,7 +693,14 @@ exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = (0, graphql_tag_1.gql) `
469
693
  startDateActual
470
694
  startDateExpect
471
695
  source
472
- ownerId
696
+ owner {
697
+ id
698
+ fullName
699
+ name
700
+ type
701
+ phone
702
+ email
703
+ }
473
704
  priorityName
474
705
  priorityValue
475
706
  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.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [