@longvansoftware/storefront-js-client 3.4.3 → 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
|
-
$
|
|
392
|
-
$
|
|
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
|
-
|
|
401
|
-
|
|
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
|
`;
|
|
@@ -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, decription: string,
|
|
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>;
|
|
@@ -292,7 +292,7 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
createWorkEffort(createdBy, name, decription,
|
|
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
|
-
|
|
304
|
-
|
|
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);
|