@longvansoftware/storefront-js-client 1.7.3 → 1.7.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.
|
@@ -7,3 +7,4 @@ export declare const ADD_ATTACHMENT_FOR_WORK_EFFORT: import("graphql").DocumentN
|
|
|
7
7
|
export declare const ADD_TICKED: import("graphql").DocumentNode;
|
|
8
8
|
export declare const ADD_COMMENT: import("graphql").DocumentNode;
|
|
9
9
|
export declare const CREATE_WORK_EFFORT: import("graphql").DocumentNode;
|
|
10
|
+
export declare const UPDATE_WORK_EFFORT_PROCESS_STATUS: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CREATE_WORK_EFFORT = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
|
3
|
+
exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = exports.CREATE_WORK_EFFORT = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
|
6
6
|
mutation AddOpportunity(
|
|
@@ -392,3 +392,114 @@ exports.CREATE_WORK_EFFORT = (0, graphql_tag_1.gql) `
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
`;
|
|
395
|
+
exports.UPDATE_WORK_EFFORT_PROCESS_STATUS = (0, graphql_tag_1.gql) `
|
|
396
|
+
mutation UpdateWorkEffortProcessStatus(
|
|
397
|
+
$workEffortId: String!
|
|
398
|
+
$processStatus: String!
|
|
399
|
+
$performerId: String!
|
|
400
|
+
) {
|
|
401
|
+
updateWorkEffortProcessStatus(
|
|
402
|
+
workEffortId: $workEffortId
|
|
403
|
+
processStatus: $processStatus
|
|
404
|
+
performerId: $performerId
|
|
405
|
+
) {
|
|
406
|
+
id
|
|
407
|
+
createdStamp
|
|
408
|
+
updatedStamp
|
|
409
|
+
createdBy
|
|
410
|
+
updatedBy
|
|
411
|
+
name
|
|
412
|
+
partyId
|
|
413
|
+
targetId
|
|
414
|
+
targetType
|
|
415
|
+
targetUrl
|
|
416
|
+
description
|
|
417
|
+
status
|
|
418
|
+
parentId
|
|
419
|
+
workEffortTypeId
|
|
420
|
+
stmId
|
|
421
|
+
workflowId
|
|
422
|
+
endDateExpect
|
|
423
|
+
endDateActual
|
|
424
|
+
startDateActual
|
|
425
|
+
startDateExpect
|
|
426
|
+
source
|
|
427
|
+
ownerId
|
|
428
|
+
priorityName
|
|
429
|
+
priorityValue
|
|
430
|
+
connectorId
|
|
431
|
+
mode
|
|
432
|
+
partyGroupIds
|
|
433
|
+
tagIds
|
|
434
|
+
processResult
|
|
435
|
+
actionLink {
|
|
436
|
+
name
|
|
437
|
+
uri
|
|
438
|
+
type
|
|
439
|
+
partyId
|
|
440
|
+
fromCollection
|
|
441
|
+
toCollection
|
|
442
|
+
group
|
|
443
|
+
params
|
|
444
|
+
id
|
|
445
|
+
createdStamp
|
|
446
|
+
updatedStamp
|
|
447
|
+
updatedBy
|
|
448
|
+
createdBy
|
|
449
|
+
}
|
|
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
|
+
ownerId
|
|
473
|
+
priorityName
|
|
474
|
+
priorityValue
|
|
475
|
+
connectorId
|
|
476
|
+
mode
|
|
477
|
+
partyGroupIds
|
|
478
|
+
tagIds
|
|
479
|
+
processResult
|
|
480
|
+
}
|
|
481
|
+
attachments {
|
|
482
|
+
id
|
|
483
|
+
createdStamp
|
|
484
|
+
updatedStamp
|
|
485
|
+
updatedBy
|
|
486
|
+
createdBy
|
|
487
|
+
partyId
|
|
488
|
+
path
|
|
489
|
+
srcId
|
|
490
|
+
srcName
|
|
491
|
+
srcPath
|
|
492
|
+
srcConfigPathId
|
|
493
|
+
name
|
|
494
|
+
fileType
|
|
495
|
+
type
|
|
496
|
+
status
|
|
497
|
+
referId
|
|
498
|
+
}
|
|
499
|
+
processPipeline {
|
|
500
|
+
id
|
|
501
|
+
name
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
`;
|
|
@@ -336,6 +336,76 @@ exports.GET_WORK_EFFORTS = (0, graphql_tag_1.gql) `
|
|
|
336
336
|
partyGroupIds
|
|
337
337
|
tagIds
|
|
338
338
|
processResult
|
|
339
|
+
processStatus
|
|
340
|
+
processPipeline {
|
|
341
|
+
id
|
|
342
|
+
name
|
|
343
|
+
}
|
|
344
|
+
attachments {
|
|
345
|
+
id
|
|
346
|
+
createdStamp
|
|
347
|
+
updatedStamp
|
|
348
|
+
updatedBy
|
|
349
|
+
createdBy
|
|
350
|
+
partyId
|
|
351
|
+
path
|
|
352
|
+
srcId
|
|
353
|
+
srcName
|
|
354
|
+
srcPath
|
|
355
|
+
srcConfigPathId
|
|
356
|
+
name
|
|
357
|
+
fileType
|
|
358
|
+
type
|
|
359
|
+
status
|
|
360
|
+
referId
|
|
361
|
+
}
|
|
362
|
+
subTasks {
|
|
363
|
+
id
|
|
364
|
+
createdStamp
|
|
365
|
+
updatedStamp
|
|
366
|
+
createdBy
|
|
367
|
+
updatedBy
|
|
368
|
+
name
|
|
369
|
+
partyId
|
|
370
|
+
targetId
|
|
371
|
+
targetType
|
|
372
|
+
targetUrl
|
|
373
|
+
description
|
|
374
|
+
status
|
|
375
|
+
parentId
|
|
376
|
+
workEffortTypeId
|
|
377
|
+
stmId
|
|
378
|
+
workflowId
|
|
379
|
+
endDateExpect
|
|
380
|
+
endDateActual
|
|
381
|
+
startDateActual
|
|
382
|
+
startDateExpect
|
|
383
|
+
source
|
|
384
|
+
ownerId
|
|
385
|
+
priorityName
|
|
386
|
+
priorityValue
|
|
387
|
+
connectorId
|
|
388
|
+
mode
|
|
389
|
+
partyGroupIds
|
|
390
|
+
tagIds
|
|
391
|
+
processResult
|
|
392
|
+
processStatus
|
|
393
|
+
}
|
|
394
|
+
actionLink {
|
|
395
|
+
name
|
|
396
|
+
uri
|
|
397
|
+
type
|
|
398
|
+
partyId
|
|
399
|
+
fromCollection
|
|
400
|
+
toCollection
|
|
401
|
+
group
|
|
402
|
+
params
|
|
403
|
+
id
|
|
404
|
+
createdStamp
|
|
405
|
+
updatedStamp
|
|
406
|
+
updatedBy
|
|
407
|
+
createdBy
|
|
408
|
+
}
|
|
339
409
|
}
|
|
340
410
|
}
|
|
341
411
|
}
|
|
@@ -372,6 +442,7 @@ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
|
|
|
372
442
|
partyGroupIds
|
|
373
443
|
tagIds
|
|
374
444
|
processResult
|
|
445
|
+
processStatus
|
|
375
446
|
processPipeline {
|
|
376
447
|
id
|
|
377
448
|
name
|
|
@@ -19,6 +19,7 @@ export declare class CrmService extends Service {
|
|
|
19
19
|
getListComment(getCommentRequest: GetCommentRequest): Promise<any>;
|
|
20
20
|
addComment(params: any): Promise<any>;
|
|
21
21
|
createWorkEffort(createdBy: string, name: String, workEffortTypeId: string, source: string, attributes: object, addAttachmentRequest: AddAttachmentRequest): Promise<any>;
|
|
22
|
-
getWorkEfforts(performerId: string, source: string, pageNumber: number, pageSize: number, sorts: BaseSort): Promise<any>;
|
|
22
|
+
getWorkEfforts(performerId: string, workEffortTypeId: string, source: string, pageNumber: number, pageSize: number, sorts: BaseSort): Promise<any>;
|
|
23
23
|
getWorkEffortById(id: string): Promise<any>;
|
|
24
|
+
updateWorkEffortProcessStatus(workEffortId: string, processStatus: string, performerId: string): Promise<any>;
|
|
24
25
|
}
|
|
@@ -313,12 +313,13 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
getWorkEfforts(performerId, source, pageNumber, pageSize, sorts) {
|
|
316
|
+
getWorkEfforts(performerId, workEffortTypeId, source, pageNumber, pageSize, sorts) {
|
|
317
317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
318
318
|
const query = queries_1.GET_WORK_EFFORTS;
|
|
319
319
|
const variables = {
|
|
320
320
|
partnerId: this.orgId,
|
|
321
321
|
performerId,
|
|
322
|
+
workEffortTypeId,
|
|
322
323
|
source,
|
|
323
324
|
pageNumber,
|
|
324
325
|
pageSize,
|
|
@@ -348,5 +349,22 @@ class CrmService extends serviceSDK_1.Service {
|
|
|
348
349
|
}
|
|
349
350
|
});
|
|
350
351
|
}
|
|
352
|
+
updateWorkEffortProcessStatus(workEffortId, processStatus, performerId) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
const mutation = mutations_1.UPDATE_WORK_EFFORT_PROCESS_STATUS;
|
|
355
|
+
const variables = {
|
|
356
|
+
workEffortId,
|
|
357
|
+
processStatus,
|
|
358
|
+
performerId
|
|
359
|
+
};
|
|
360
|
+
try {
|
|
361
|
+
const response = yield this.graphqlMutationV2(mutation, variables);
|
|
362
|
+
return response.updateWorkEffortProcessStatus;
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
throw error;
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}
|
|
351
369
|
}
|
|
352
370
|
exports.CrmService = CrmService;
|