@credal/actions 0.2.148 → 0.2.149
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.
- package/dist/actions/actionMapper.js +1 -0
- package/dist/actions/autogen/templates.d.ts +11 -0
- package/dist/actions/autogen/templates.js +734 -10
- package/dist/actions/autogen/types.d.ts +723 -12
- package/dist/actions/autogen/types.js +212 -4
- package/dist/actions/groups.js +14 -1
- package/dist/actions/invoke.js +1 -1
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +47 -0
- package/dist/actions/providers/jamf/types.d.ts +8 -0
- package/dist/actions/providers/jamf/types.js +7 -0
- package/dist/actions/providers/jira/assignJiraTicket.js +16 -12
- package/dist/actions/providers/jira/commentJiraTicket.js +10 -22
- package/dist/actions/providers/jira/createJiraTicket.js +39 -49
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +37 -36
- package/dist/actions/providers/jira/getJiraTicketDetails.js +7 -5
- package/dist/actions/providers/jira/getJiraTicketHistory.js +10 -8
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +16 -37
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +8 -6
- package/dist/actions/providers/jira/utils.d.ts +55 -2
- package/dist/actions/providers/jira/utils.js +129 -9
- package/dist/actions/providers/slack/archiveChannel.js +9 -2
- package/package.json +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
|
@@ -1012,7 +1012,7 @@ export const confluenceFetchPageContentDefinition = {
|
|
|
1012
1012
|
provider: "confluence",
|
|
1013
1013
|
};
|
|
1014
1014
|
export const jiraAssignJiraTicketDefinition = {
|
|
1015
|
-
description: "Assigns/
|
|
1015
|
+
description: "Assigns/Reassigns a Jira ticket to a specified user",
|
|
1016
1016
|
scopes: ["write:jira-work", "read:jira-user"],
|
|
1017
1017
|
parameters: {
|
|
1018
1018
|
type: "object",
|
|
@@ -1177,11 +1177,19 @@ export const jiraCreateJiraTicketDefinition = {
|
|
|
1177
1177
|
},
|
|
1178
1178
|
output: {
|
|
1179
1179
|
type: "object",
|
|
1180
|
-
required: ["
|
|
1180
|
+
required: ["success"],
|
|
1181
1181
|
properties: {
|
|
1182
|
+
success: {
|
|
1183
|
+
type: "boolean",
|
|
1184
|
+
description: "Whether the ticket was successfully created",
|
|
1185
|
+
},
|
|
1182
1186
|
ticketUrl: {
|
|
1183
1187
|
type: "string",
|
|
1184
|
-
description: "The url to the created Jira Ticket",
|
|
1188
|
+
description: "The url to the created Jira Ticket (only present if success is true)",
|
|
1189
|
+
},
|
|
1190
|
+
error: {
|
|
1191
|
+
type: "string",
|
|
1192
|
+
description: "Error message if the ticket creation failed (only present if success is false)",
|
|
1185
1193
|
},
|
|
1186
1194
|
},
|
|
1187
1195
|
},
|
|
@@ -1473,11 +1481,19 @@ export const jiraUpdateJiraTicketDetailsDefinition = {
|
|
|
1473
1481
|
},
|
|
1474
1482
|
output: {
|
|
1475
1483
|
type: "object",
|
|
1476
|
-
required: ["
|
|
1484
|
+
required: ["success"],
|
|
1477
1485
|
properties: {
|
|
1486
|
+
success: {
|
|
1487
|
+
type: "boolean",
|
|
1488
|
+
description: "Whether the ticket was successfully updated",
|
|
1489
|
+
},
|
|
1478
1490
|
ticketUrl: {
|
|
1479
1491
|
type: "string",
|
|
1480
|
-
description: "The url to the Jira ticket",
|
|
1492
|
+
description: "The url to the Jira ticket (only present if success is true)",
|
|
1493
|
+
},
|
|
1494
|
+
error: {
|
|
1495
|
+
type: "string",
|
|
1496
|
+
description: "Error message if the ticket update failed (only present if success is false)",
|
|
1481
1497
|
},
|
|
1482
1498
|
},
|
|
1483
1499
|
},
|
|
@@ -1688,7 +1704,7 @@ export const jiraGetJiraIssuesByQueryDefinition = {
|
|
|
1688
1704
|
provider: "jira",
|
|
1689
1705
|
};
|
|
1690
1706
|
export const jiraOrgAssignJiraTicketDefinition = {
|
|
1691
|
-
description: "Assigns/
|
|
1707
|
+
description: "Assigns/Reassigns a Jira ticket to a specified user",
|
|
1692
1708
|
scopes: ["write:jira-work", "read:jira-user"],
|
|
1693
1709
|
parameters: {
|
|
1694
1710
|
type: "object",
|
|
@@ -1853,11 +1869,19 @@ export const jiraOrgCreateJiraTicketDefinition = {
|
|
|
1853
1869
|
},
|
|
1854
1870
|
output: {
|
|
1855
1871
|
type: "object",
|
|
1856
|
-
required: ["
|
|
1872
|
+
required: ["success"],
|
|
1857
1873
|
properties: {
|
|
1874
|
+
success: {
|
|
1875
|
+
type: "boolean",
|
|
1876
|
+
description: "Whether the ticket was successfully created",
|
|
1877
|
+
},
|
|
1858
1878
|
ticketUrl: {
|
|
1859
1879
|
type: "string",
|
|
1860
|
-
description: "The url to the created Jira Ticket",
|
|
1880
|
+
description: "The url to the created Jira Ticket (only present if success is true)",
|
|
1881
|
+
},
|
|
1882
|
+
error: {
|
|
1883
|
+
type: "string",
|
|
1884
|
+
description: "Error message if the ticket creation failed (only present if success is false)",
|
|
1861
1885
|
},
|
|
1862
1886
|
},
|
|
1863
1887
|
},
|
|
@@ -2149,11 +2173,19 @@ export const jiraOrgUpdateJiraTicketDetailsDefinition = {
|
|
|
2149
2173
|
},
|
|
2150
2174
|
output: {
|
|
2151
2175
|
type: "object",
|
|
2152
|
-
required: ["
|
|
2176
|
+
required: ["success"],
|
|
2153
2177
|
properties: {
|
|
2178
|
+
success: {
|
|
2179
|
+
type: "boolean",
|
|
2180
|
+
description: "Whether the ticket was successfully updated",
|
|
2181
|
+
},
|
|
2154
2182
|
ticketUrl: {
|
|
2155
2183
|
type: "string",
|
|
2156
|
-
description: "The url to the Jira ticket",
|
|
2184
|
+
description: "The url to the Jira ticket (only present if success is true)",
|
|
2185
|
+
},
|
|
2186
|
+
error: {
|
|
2187
|
+
type: "string",
|
|
2188
|
+
description: "Error message if the ticket update failed (only present if success is false)",
|
|
2157
2189
|
},
|
|
2158
2190
|
},
|
|
2159
2191
|
},
|
|
@@ -2363,6 +2395,698 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
|
|
|
2363
2395
|
name: "getJiraIssuesByQuery",
|
|
2364
2396
|
provider: "jiraOrg",
|
|
2365
2397
|
};
|
|
2398
|
+
export const jiraDataCenterAssignJiraTicketDefinition = {
|
|
2399
|
+
description: "Assigns/Reassigns a Jira ticket to a specified user",
|
|
2400
|
+
scopes: ["write:jira-work", "read:jira-user"],
|
|
2401
|
+
parameters: {
|
|
2402
|
+
type: "object",
|
|
2403
|
+
required: ["projectKey", "issueId", "assignee"],
|
|
2404
|
+
properties: {
|
|
2405
|
+
projectKey: {
|
|
2406
|
+
type: "string",
|
|
2407
|
+
description: "The key for the project you want to add it to",
|
|
2408
|
+
},
|
|
2409
|
+
assignee: {
|
|
2410
|
+
type: "string",
|
|
2411
|
+
description: "The assignee for the ticket, userID or email",
|
|
2412
|
+
},
|
|
2413
|
+
issueId: {
|
|
2414
|
+
type: "string",
|
|
2415
|
+
description: "The issue ID associated with the ticket to be assigned/re-assigned",
|
|
2416
|
+
},
|
|
2417
|
+
},
|
|
2418
|
+
},
|
|
2419
|
+
output: {
|
|
2420
|
+
type: "object",
|
|
2421
|
+
required: ["success"],
|
|
2422
|
+
properties: {
|
|
2423
|
+
success: {
|
|
2424
|
+
type: "boolean",
|
|
2425
|
+
description: "Whether the ticket was successfully assigned/reassigned",
|
|
2426
|
+
},
|
|
2427
|
+
error: {
|
|
2428
|
+
type: "string",
|
|
2429
|
+
description: "The error that occurred if the ticket was not successfully assigned/reassigned",
|
|
2430
|
+
},
|
|
2431
|
+
ticketUrl: {
|
|
2432
|
+
type: "string",
|
|
2433
|
+
description: "The url to the newly assigned/reassigned Jira ticket",
|
|
2434
|
+
},
|
|
2435
|
+
},
|
|
2436
|
+
},
|
|
2437
|
+
name: "assignJiraTicket",
|
|
2438
|
+
provider: "jiraDataCenter",
|
|
2439
|
+
};
|
|
2440
|
+
export const jiraDataCenterPublicCommentOnServiceDeskRequestDefinition = {
|
|
2441
|
+
description: "Comments publicly on a Jira service desk request with specified content",
|
|
2442
|
+
scopes: ["write:comment:jira"],
|
|
2443
|
+
parameters: {
|
|
2444
|
+
type: "object",
|
|
2445
|
+
required: ["issueId", "comment"],
|
|
2446
|
+
properties: {
|
|
2447
|
+
issueId: {
|
|
2448
|
+
type: "string",
|
|
2449
|
+
description: "The issue ID associated with the ticket to be commented on",
|
|
2450
|
+
},
|
|
2451
|
+
comment: {
|
|
2452
|
+
type: "string",
|
|
2453
|
+
description: "The text to be commented on the ticket",
|
|
2454
|
+
},
|
|
2455
|
+
},
|
|
2456
|
+
},
|
|
2457
|
+
output: {
|
|
2458
|
+
type: "object",
|
|
2459
|
+
required: ["success"],
|
|
2460
|
+
properties: {
|
|
2461
|
+
success: {
|
|
2462
|
+
type: "boolean",
|
|
2463
|
+
description: "Whether the comment was sent successfully",
|
|
2464
|
+
},
|
|
2465
|
+
error: {
|
|
2466
|
+
type: "string",
|
|
2467
|
+
description: "The error that occurred if the comment was not sent successfully",
|
|
2468
|
+
},
|
|
2469
|
+
commentUrl: {
|
|
2470
|
+
type: "string",
|
|
2471
|
+
description: "The url to the created Jira comment",
|
|
2472
|
+
},
|
|
2473
|
+
},
|
|
2474
|
+
},
|
|
2475
|
+
name: "publicCommentOnServiceDeskRequest",
|
|
2476
|
+
provider: "jiraDataCenter",
|
|
2477
|
+
};
|
|
2478
|
+
export const jiraDataCenterCommentJiraTicketDefinition = {
|
|
2479
|
+
description: "Comments on a Jira ticket with specified content",
|
|
2480
|
+
scopes: ["write:comment:jira"],
|
|
2481
|
+
parameters: {
|
|
2482
|
+
type: "object",
|
|
2483
|
+
required: ["projectKey", "issueId", "comment"],
|
|
2484
|
+
properties: {
|
|
2485
|
+
projectKey: {
|
|
2486
|
+
type: "string",
|
|
2487
|
+
description: "The key for the project",
|
|
2488
|
+
},
|
|
2489
|
+
issueId: {
|
|
2490
|
+
type: "string",
|
|
2491
|
+
description: "The issue ID associated with the ticket to be commented on",
|
|
2492
|
+
},
|
|
2493
|
+
comment: {
|
|
2494
|
+
type: "string",
|
|
2495
|
+
description: "The text to be commented on the ticket",
|
|
2496
|
+
},
|
|
2497
|
+
},
|
|
2498
|
+
},
|
|
2499
|
+
output: {
|
|
2500
|
+
type: "object",
|
|
2501
|
+
required: ["success"],
|
|
2502
|
+
properties: {
|
|
2503
|
+
success: {
|
|
2504
|
+
type: "boolean",
|
|
2505
|
+
description: "Whether the comment was sent successfully",
|
|
2506
|
+
},
|
|
2507
|
+
error: {
|
|
2508
|
+
type: "string",
|
|
2509
|
+
description: "The error that occurred if the comment was not sent successfully",
|
|
2510
|
+
},
|
|
2511
|
+
commentUrl: {
|
|
2512
|
+
type: "string",
|
|
2513
|
+
description: "The url to the created Jira comment",
|
|
2514
|
+
},
|
|
2515
|
+
},
|
|
2516
|
+
},
|
|
2517
|
+
name: "commentJiraTicket",
|
|
2518
|
+
provider: "jiraDataCenter",
|
|
2519
|
+
};
|
|
2520
|
+
export const jiraDataCenterCreateJiraTicketDefinition = {
|
|
2521
|
+
description: "Create a jira ticket with new content specified",
|
|
2522
|
+
scopes: [],
|
|
2523
|
+
parameters: {
|
|
2524
|
+
type: "object",
|
|
2525
|
+
required: ["projectKey", "summary", "description", "issueType"],
|
|
2526
|
+
properties: {
|
|
2527
|
+
projectKey: {
|
|
2528
|
+
type: "string",
|
|
2529
|
+
description: "The key for the project you want to add it to",
|
|
2530
|
+
},
|
|
2531
|
+
summary: {
|
|
2532
|
+
type: "string",
|
|
2533
|
+
description: "The summary of the new ticket",
|
|
2534
|
+
},
|
|
2535
|
+
description: {
|
|
2536
|
+
type: "string",
|
|
2537
|
+
description: "The description for the new ticket",
|
|
2538
|
+
},
|
|
2539
|
+
issueType: {
|
|
2540
|
+
type: "string",
|
|
2541
|
+
description: "The issue type of the new ticket. Should be Epic, Story, Task, Bug, Sub-task, etc.",
|
|
2542
|
+
},
|
|
2543
|
+
reporter: {
|
|
2544
|
+
type: "string",
|
|
2545
|
+
description: "The reporter for the new ticket creation",
|
|
2546
|
+
},
|
|
2547
|
+
assignee: {
|
|
2548
|
+
type: "string",
|
|
2549
|
+
description: "The assignee for the new ticket creation",
|
|
2550
|
+
},
|
|
2551
|
+
requestTypeId: {
|
|
2552
|
+
type: "string",
|
|
2553
|
+
description: "The request type ID for Jira Service Management tickets",
|
|
2554
|
+
},
|
|
2555
|
+
customFields: {
|
|
2556
|
+
type: "object",
|
|
2557
|
+
description: "Custom fields to be set on the create ticket request",
|
|
2558
|
+
additionalProperties: true,
|
|
2559
|
+
},
|
|
2560
|
+
},
|
|
2561
|
+
},
|
|
2562
|
+
output: {
|
|
2563
|
+
type: "object",
|
|
2564
|
+
required: ["success"],
|
|
2565
|
+
properties: {
|
|
2566
|
+
success: {
|
|
2567
|
+
type: "boolean",
|
|
2568
|
+
description: "Whether the ticket was successfully created",
|
|
2569
|
+
},
|
|
2570
|
+
ticketUrl: {
|
|
2571
|
+
type: "string",
|
|
2572
|
+
description: "The url to the created Jira Ticket (only present if success is true)",
|
|
2573
|
+
},
|
|
2574
|
+
error: {
|
|
2575
|
+
type: "string",
|
|
2576
|
+
description: "Error message if the ticket creation failed (only present if success is false)",
|
|
2577
|
+
},
|
|
2578
|
+
},
|
|
2579
|
+
},
|
|
2580
|
+
name: "createJiraTicket",
|
|
2581
|
+
provider: "jiraDataCenter",
|
|
2582
|
+
};
|
|
2583
|
+
export const jiraDataCenterGetServiceDesksDefinition = {
|
|
2584
|
+
description: "Get the service desks for a Jira instance",
|
|
2585
|
+
scopes: [],
|
|
2586
|
+
parameters: {
|
|
2587
|
+
type: "object",
|
|
2588
|
+
required: [],
|
|
2589
|
+
properties: {},
|
|
2590
|
+
},
|
|
2591
|
+
output: {
|
|
2592
|
+
type: "object",
|
|
2593
|
+
required: ["success"],
|
|
2594
|
+
properties: {
|
|
2595
|
+
success: {
|
|
2596
|
+
type: "boolean",
|
|
2597
|
+
description: "Whether the service desks were retrieved successfully",
|
|
2598
|
+
},
|
|
2599
|
+
error: {
|
|
2600
|
+
type: "string",
|
|
2601
|
+
description: "The error that occurred if the service desks were not retrieved successfully",
|
|
2602
|
+
},
|
|
2603
|
+
serviceDesks: {
|
|
2604
|
+
type: "array",
|
|
2605
|
+
description: "The list of service desks",
|
|
2606
|
+
items: {
|
|
2607
|
+
type: "object",
|
|
2608
|
+
description: "A service desk",
|
|
2609
|
+
properties: {
|
|
2610
|
+
id: {
|
|
2611
|
+
type: "string",
|
|
2612
|
+
description: "The ID of the service desk",
|
|
2613
|
+
},
|
|
2614
|
+
projectId: {
|
|
2615
|
+
type: "string",
|
|
2616
|
+
description: "The ID of the project",
|
|
2617
|
+
},
|
|
2618
|
+
projectKey: {
|
|
2619
|
+
type: "string",
|
|
2620
|
+
description: "The key of the project",
|
|
2621
|
+
},
|
|
2622
|
+
projectName: {
|
|
2623
|
+
type: "string",
|
|
2624
|
+
description: "The name of the service desk",
|
|
2625
|
+
},
|
|
2626
|
+
requestTypes: {
|
|
2627
|
+
type: "array",
|
|
2628
|
+
description: "The list of request types",
|
|
2629
|
+
items: {
|
|
2630
|
+
type: "object",
|
|
2631
|
+
description: "A request type",
|
|
2632
|
+
properties: {
|
|
2633
|
+
id: {
|
|
2634
|
+
type: "string",
|
|
2635
|
+
description: "The ID of the request type",
|
|
2636
|
+
},
|
|
2637
|
+
name: {
|
|
2638
|
+
type: "string",
|
|
2639
|
+
description: "The name of the request type",
|
|
2640
|
+
},
|
|
2641
|
+
description: {
|
|
2642
|
+
type: "string",
|
|
2643
|
+
description: "The description of the request type",
|
|
2644
|
+
},
|
|
2645
|
+
issueTypeId: {
|
|
2646
|
+
type: "string",
|
|
2647
|
+
description: "The ID of the issue type",
|
|
2648
|
+
},
|
|
2649
|
+
portalId: {
|
|
2650
|
+
type: "string",
|
|
2651
|
+
description: "The ID of the customer portal",
|
|
2652
|
+
},
|
|
2653
|
+
helpText: {
|
|
2654
|
+
type: "string",
|
|
2655
|
+
description: "The help text for the request type",
|
|
2656
|
+
},
|
|
2657
|
+
serviceDeskId: {
|
|
2658
|
+
type: "string",
|
|
2659
|
+
description: "The ID of the service desk",
|
|
2660
|
+
},
|
|
2661
|
+
canCreateRequest: {
|
|
2662
|
+
type: "boolean",
|
|
2663
|
+
description: "Whether the request type can be created",
|
|
2664
|
+
},
|
|
2665
|
+
},
|
|
2666
|
+
},
|
|
2667
|
+
},
|
|
2668
|
+
},
|
|
2669
|
+
},
|
|
2670
|
+
},
|
|
2671
|
+
},
|
|
2672
|
+
},
|
|
2673
|
+
name: "getServiceDesks",
|
|
2674
|
+
provider: "jiraDataCenter",
|
|
2675
|
+
};
|
|
2676
|
+
export const jiraDataCenterCreateServiceDeskRequestDefinition = {
|
|
2677
|
+
description: "Create a jira service desk request with specified content",
|
|
2678
|
+
scopes: [],
|
|
2679
|
+
parameters: {
|
|
2680
|
+
type: "object",
|
|
2681
|
+
required: ["serviceDeskId", "requestTypeId", "summary", "description"],
|
|
2682
|
+
properties: {
|
|
2683
|
+
serviceDeskId: {
|
|
2684
|
+
type: "string",
|
|
2685
|
+
description: "The ID of the service desk to create the request in",
|
|
2686
|
+
},
|
|
2687
|
+
requestTypeId: {
|
|
2688
|
+
type: "string",
|
|
2689
|
+
description: "The ID of the request type to use for the new request",
|
|
2690
|
+
},
|
|
2691
|
+
summary: {
|
|
2692
|
+
type: "string",
|
|
2693
|
+
description: "The summary of the new service desk request",
|
|
2694
|
+
},
|
|
2695
|
+
description: {
|
|
2696
|
+
type: "string",
|
|
2697
|
+
description: "The description for the new service desk request",
|
|
2698
|
+
},
|
|
2699
|
+
reporter: {
|
|
2700
|
+
type: "string",
|
|
2701
|
+
description: "The email address of the person reporting the issue (for raising on behalf of)",
|
|
2702
|
+
},
|
|
2703
|
+
},
|
|
2704
|
+
},
|
|
2705
|
+
output: {
|
|
2706
|
+
type: "object",
|
|
2707
|
+
required: ["success"],
|
|
2708
|
+
properties: {
|
|
2709
|
+
success: {
|
|
2710
|
+
type: "boolean",
|
|
2711
|
+
description: "Whether the request was created successfully",
|
|
2712
|
+
},
|
|
2713
|
+
error: {
|
|
2714
|
+
type: "string",
|
|
2715
|
+
description: "The error that occurred if the request was not created successfully",
|
|
2716
|
+
},
|
|
2717
|
+
issueKey: {
|
|
2718
|
+
type: "string",
|
|
2719
|
+
description: "The Jira issue key of the created request",
|
|
2720
|
+
},
|
|
2721
|
+
webLink: {
|
|
2722
|
+
type: "string",
|
|
2723
|
+
description: "The link to the customer portal request, if available",
|
|
2724
|
+
},
|
|
2725
|
+
currentStatus: {
|
|
2726
|
+
type: "string",
|
|
2727
|
+
description: "The current status of the created request",
|
|
2728
|
+
},
|
|
2729
|
+
},
|
|
2730
|
+
},
|
|
2731
|
+
name: "createServiceDeskRequest",
|
|
2732
|
+
provider: "jiraDataCenter",
|
|
2733
|
+
};
|
|
2734
|
+
export const jiraDataCenterGetJiraTicketDetailsDefinition = {
|
|
2735
|
+
description: "Get details of a ticket in Jira",
|
|
2736
|
+
scopes: ["read:jira-work"],
|
|
2737
|
+
parameters: {
|
|
2738
|
+
type: "object",
|
|
2739
|
+
required: ["projectKey", "issueId"],
|
|
2740
|
+
properties: {
|
|
2741
|
+
projectKey: {
|
|
2742
|
+
type: "string",
|
|
2743
|
+
description: "The key for the project",
|
|
2744
|
+
},
|
|
2745
|
+
issueId: {
|
|
2746
|
+
type: "string",
|
|
2747
|
+
description: "The ID of the ticket",
|
|
2748
|
+
},
|
|
2749
|
+
},
|
|
2750
|
+
},
|
|
2751
|
+
output: {
|
|
2752
|
+
type: "object",
|
|
2753
|
+
required: ["success"],
|
|
2754
|
+
properties: {
|
|
2755
|
+
success: {
|
|
2756
|
+
type: "boolean",
|
|
2757
|
+
description: "Whether the status was updated successfully",
|
|
2758
|
+
},
|
|
2759
|
+
error: {
|
|
2760
|
+
type: "string",
|
|
2761
|
+
description: "The error that occurred if the retrieval was unsuccessful",
|
|
2762
|
+
},
|
|
2763
|
+
results: {
|
|
2764
|
+
type: "array",
|
|
2765
|
+
description: "The results of the Jira ticket",
|
|
2766
|
+
items: {
|
|
2767
|
+
type: "object",
|
|
2768
|
+
required: ["name", "url", "contents"],
|
|
2769
|
+
properties: {
|
|
2770
|
+
name: {
|
|
2771
|
+
type: "string",
|
|
2772
|
+
description: "The name of the result",
|
|
2773
|
+
},
|
|
2774
|
+
url: {
|
|
2775
|
+
type: "string",
|
|
2776
|
+
description: "The URL of the result",
|
|
2777
|
+
},
|
|
2778
|
+
contents: {
|
|
2779
|
+
type: "object",
|
|
2780
|
+
description: "The data of the Jira ticket",
|
|
2781
|
+
},
|
|
2782
|
+
},
|
|
2783
|
+
},
|
|
2784
|
+
},
|
|
2785
|
+
},
|
|
2786
|
+
},
|
|
2787
|
+
name: "getJiraTicketDetails",
|
|
2788
|
+
provider: "jiraDataCenter",
|
|
2789
|
+
};
|
|
2790
|
+
export const jiraDataCenterGetJiraTicketHistoryDefinition = {
|
|
2791
|
+
description: "Get ticket history of a ticket in Jira",
|
|
2792
|
+
scopes: ["read:jira-work"],
|
|
2793
|
+
parameters: {
|
|
2794
|
+
type: "object",
|
|
2795
|
+
required: ["projectKey", "issueId"],
|
|
2796
|
+
properties: {
|
|
2797
|
+
projectKey: {
|
|
2798
|
+
type: "string",
|
|
2799
|
+
description: "The key for the project",
|
|
2800
|
+
},
|
|
2801
|
+
issueId: {
|
|
2802
|
+
type: "string",
|
|
2803
|
+
description: "The ID of the ticket",
|
|
2804
|
+
},
|
|
2805
|
+
},
|
|
2806
|
+
},
|
|
2807
|
+
output: {
|
|
2808
|
+
type: "object",
|
|
2809
|
+
required: ["success"],
|
|
2810
|
+
properties: {
|
|
2811
|
+
success: {
|
|
2812
|
+
type: "boolean",
|
|
2813
|
+
description: "Whether the status was updated successfully",
|
|
2814
|
+
},
|
|
2815
|
+
error: {
|
|
2816
|
+
type: "string",
|
|
2817
|
+
description: "The error that occurred if the retrieval was unsuccessful",
|
|
2818
|
+
},
|
|
2819
|
+
history: {
|
|
2820
|
+
type: "array",
|
|
2821
|
+
description: "The history data of the Jira ticket",
|
|
2822
|
+
},
|
|
2823
|
+
},
|
|
2824
|
+
},
|
|
2825
|
+
name: "getJiraTicketHistory",
|
|
2826
|
+
provider: "jiraDataCenter",
|
|
2827
|
+
};
|
|
2828
|
+
export const jiraDataCenterUpdateJiraTicketDetailsDefinition = {
|
|
2829
|
+
description: "Update a Jira ticket with new content specified",
|
|
2830
|
+
scopes: ["write:jira-work"],
|
|
2831
|
+
parameters: {
|
|
2832
|
+
type: "object",
|
|
2833
|
+
required: ["projectKey", "issueId"],
|
|
2834
|
+
properties: {
|
|
2835
|
+
projectKey: {
|
|
2836
|
+
type: "string",
|
|
2837
|
+
description: "The key for the project you want to add it to",
|
|
2838
|
+
},
|
|
2839
|
+
issueId: {
|
|
2840
|
+
type: "string",
|
|
2841
|
+
description: "The issue ID associated with the ticket to be updated",
|
|
2842
|
+
},
|
|
2843
|
+
summary: {
|
|
2844
|
+
type: "string",
|
|
2845
|
+
description: "The updated summary",
|
|
2846
|
+
},
|
|
2847
|
+
description: {
|
|
2848
|
+
type: "string",
|
|
2849
|
+
description: "The updated description",
|
|
2850
|
+
},
|
|
2851
|
+
issueType: {
|
|
2852
|
+
type: "string",
|
|
2853
|
+
description: "The updated issue type",
|
|
2854
|
+
},
|
|
2855
|
+
requestTypeId: {
|
|
2856
|
+
type: "string",
|
|
2857
|
+
description: "The request type ID for Jira Service Management tickets",
|
|
2858
|
+
},
|
|
2859
|
+
customFields: {
|
|
2860
|
+
type: "object",
|
|
2861
|
+
description: "Custom fields to be set on the update ticket request",
|
|
2862
|
+
additionalProperties: true,
|
|
2863
|
+
},
|
|
2864
|
+
},
|
|
2865
|
+
},
|
|
2866
|
+
output: {
|
|
2867
|
+
type: "object",
|
|
2868
|
+
required: ["success"],
|
|
2869
|
+
properties: {
|
|
2870
|
+
success: {
|
|
2871
|
+
type: "boolean",
|
|
2872
|
+
description: "Whether the ticket was successfully updated",
|
|
2873
|
+
},
|
|
2874
|
+
ticketUrl: {
|
|
2875
|
+
type: "string",
|
|
2876
|
+
description: "The url to the Jira ticket (only present if success is true)",
|
|
2877
|
+
},
|
|
2878
|
+
error: {
|
|
2879
|
+
type: "string",
|
|
2880
|
+
description: "Error message if the ticket update failed (only present if success is false)",
|
|
2881
|
+
},
|
|
2882
|
+
},
|
|
2883
|
+
},
|
|
2884
|
+
name: "updateJiraTicketDetails",
|
|
2885
|
+
provider: "jiraDataCenter",
|
|
2886
|
+
};
|
|
2887
|
+
export const jiraDataCenterUpdateJiraTicketStatusDefinition = {
|
|
2888
|
+
description: "Updates the status of Jira ticket with specified status",
|
|
2889
|
+
scopes: ["read:jira-work", "write:jira-work"],
|
|
2890
|
+
parameters: {
|
|
2891
|
+
type: "object",
|
|
2892
|
+
required: ["projectKey", "issueId", "status"],
|
|
2893
|
+
properties: {
|
|
2894
|
+
projectKey: {
|
|
2895
|
+
type: "string",
|
|
2896
|
+
description: "The key for the project you want to add it to",
|
|
2897
|
+
},
|
|
2898
|
+
issueId: {
|
|
2899
|
+
type: "string",
|
|
2900
|
+
description: "The issue ID associated with the ticket",
|
|
2901
|
+
},
|
|
2902
|
+
status: {
|
|
2903
|
+
type: "string",
|
|
2904
|
+
description: 'The status the ticket should be changed to (eg "In Progress", "Closed")',
|
|
2905
|
+
},
|
|
2906
|
+
},
|
|
2907
|
+
},
|
|
2908
|
+
output: {
|
|
2909
|
+
type: "object",
|
|
2910
|
+
required: ["success"],
|
|
2911
|
+
properties: {
|
|
2912
|
+
success: {
|
|
2913
|
+
type: "boolean",
|
|
2914
|
+
description: "Whether the status was updated successfully",
|
|
2915
|
+
},
|
|
2916
|
+
error: {
|
|
2917
|
+
type: "string",
|
|
2918
|
+
description: "The error that occurred if the status was not updated successfully",
|
|
2919
|
+
},
|
|
2920
|
+
ticketUrl: {
|
|
2921
|
+
type: "string",
|
|
2922
|
+
description: "The url to the Jira ticket",
|
|
2923
|
+
},
|
|
2924
|
+
},
|
|
2925
|
+
},
|
|
2926
|
+
name: "updateJiraTicketStatus",
|
|
2927
|
+
provider: "jiraDataCenter",
|
|
2928
|
+
};
|
|
2929
|
+
export const jiraDataCenterGetJiraIssuesByQueryDefinition = {
|
|
2930
|
+
description: "Retrieve Jira Issues by JQL query",
|
|
2931
|
+
scopes: [],
|
|
2932
|
+
parameters: {
|
|
2933
|
+
type: "object",
|
|
2934
|
+
required: ["query"],
|
|
2935
|
+
properties: {
|
|
2936
|
+
query: {
|
|
2937
|
+
type: "string",
|
|
2938
|
+
description: "The JQL query to execute",
|
|
2939
|
+
},
|
|
2940
|
+
limit: {
|
|
2941
|
+
type: "number",
|
|
2942
|
+
description: "The maximum number of records to retrieve",
|
|
2943
|
+
},
|
|
2944
|
+
},
|
|
2945
|
+
},
|
|
2946
|
+
output: {
|
|
2947
|
+
type: "object",
|
|
2948
|
+
required: ["success"],
|
|
2949
|
+
properties: {
|
|
2950
|
+
success: {
|
|
2951
|
+
type: "boolean",
|
|
2952
|
+
description: "Whether the records were successfully retrieved",
|
|
2953
|
+
},
|
|
2954
|
+
results: {
|
|
2955
|
+
type: "array",
|
|
2956
|
+
description: "The results of the Jira issues",
|
|
2957
|
+
items: {
|
|
2958
|
+
type: "object",
|
|
2959
|
+
required: ["name", "url", "contents"],
|
|
2960
|
+
properties: {
|
|
2961
|
+
name: {
|
|
2962
|
+
type: "string",
|
|
2963
|
+
description: "The name of the result",
|
|
2964
|
+
},
|
|
2965
|
+
url: {
|
|
2966
|
+
type: "string",
|
|
2967
|
+
description: "The URL of the result",
|
|
2968
|
+
},
|
|
2969
|
+
contents: {
|
|
2970
|
+
type: "object",
|
|
2971
|
+
description: "The result object containing issues",
|
|
2972
|
+
required: [
|
|
2973
|
+
"id",
|
|
2974
|
+
"key",
|
|
2975
|
+
"summary",
|
|
2976
|
+
"description",
|
|
2977
|
+
"project",
|
|
2978
|
+
"issueType",
|
|
2979
|
+
"status",
|
|
2980
|
+
"created",
|
|
2981
|
+
"updated",
|
|
2982
|
+
"url",
|
|
2983
|
+
],
|
|
2984
|
+
properties: {
|
|
2985
|
+
id: {
|
|
2986
|
+
type: "string",
|
|
2987
|
+
description: "Internal Jira issue ID",
|
|
2988
|
+
},
|
|
2989
|
+
key: {
|
|
2990
|
+
type: "string",
|
|
2991
|
+
description: "Human-readable issue key (e.g. SSPR-123)",
|
|
2992
|
+
},
|
|
2993
|
+
summary: {
|
|
2994
|
+
type: "string",
|
|
2995
|
+
description: "Summary of the issue",
|
|
2996
|
+
},
|
|
2997
|
+
description: {
|
|
2998
|
+
type: "string",
|
|
2999
|
+
description: "Plain text description",
|
|
3000
|
+
},
|
|
3001
|
+
url: {
|
|
3002
|
+
type: "string",
|
|
3003
|
+
description: "The web url of the Jira ticket",
|
|
3004
|
+
},
|
|
3005
|
+
project: {
|
|
3006
|
+
type: "object",
|
|
3007
|
+
properties: {
|
|
3008
|
+
id: {
|
|
3009
|
+
type: "string",
|
|
3010
|
+
},
|
|
3011
|
+
key: {
|
|
3012
|
+
type: "string",
|
|
3013
|
+
},
|
|
3014
|
+
name: {
|
|
3015
|
+
type: "string",
|
|
3016
|
+
},
|
|
3017
|
+
},
|
|
3018
|
+
},
|
|
3019
|
+
issueType: {
|
|
3020
|
+
type: "object",
|
|
3021
|
+
properties: {
|
|
3022
|
+
id: {
|
|
3023
|
+
type: "string",
|
|
3024
|
+
},
|
|
3025
|
+
name: {
|
|
3026
|
+
type: "string",
|
|
3027
|
+
},
|
|
3028
|
+
},
|
|
3029
|
+
},
|
|
3030
|
+
status: {
|
|
3031
|
+
type: "object",
|
|
3032
|
+
properties: {
|
|
3033
|
+
id: {
|
|
3034
|
+
type: "string",
|
|
3035
|
+
},
|
|
3036
|
+
name: {
|
|
3037
|
+
type: "string",
|
|
3038
|
+
},
|
|
3039
|
+
category: {
|
|
3040
|
+
type: "string",
|
|
3041
|
+
},
|
|
3042
|
+
},
|
|
3043
|
+
},
|
|
3044
|
+
assignee: {
|
|
3045
|
+
type: "string",
|
|
3046
|
+
nullable: true,
|
|
3047
|
+
description: "Email of the assignee, if any",
|
|
3048
|
+
},
|
|
3049
|
+
reporter: {
|
|
3050
|
+
type: "string",
|
|
3051
|
+
nullable: true,
|
|
3052
|
+
description: "Email of the reporter, if any",
|
|
3053
|
+
},
|
|
3054
|
+
creator: {
|
|
3055
|
+
type: "string",
|
|
3056
|
+
nullable: true,
|
|
3057
|
+
description: "Email of the creator, if any",
|
|
3058
|
+
},
|
|
3059
|
+
created: {
|
|
3060
|
+
type: "string",
|
|
3061
|
+
format: "date-time",
|
|
3062
|
+
},
|
|
3063
|
+
updated: {
|
|
3064
|
+
type: "string",
|
|
3065
|
+
format: "date-time",
|
|
3066
|
+
},
|
|
3067
|
+
resolution: {
|
|
3068
|
+
type: "string",
|
|
3069
|
+
nullable: true,
|
|
3070
|
+
},
|
|
3071
|
+
dueDate: {
|
|
3072
|
+
type: "string",
|
|
3073
|
+
nullable: true,
|
|
3074
|
+
format: "date",
|
|
3075
|
+
},
|
|
3076
|
+
},
|
|
3077
|
+
},
|
|
3078
|
+
},
|
|
3079
|
+
},
|
|
3080
|
+
},
|
|
3081
|
+
error: {
|
|
3082
|
+
type: "string",
|
|
3083
|
+
description: "The error that occurred if the records were not successfully retrieved",
|
|
3084
|
+
},
|
|
3085
|
+
},
|
|
3086
|
+
},
|
|
3087
|
+
name: "getJiraIssuesByQuery",
|
|
3088
|
+
provider: "jiraDataCenter",
|
|
3089
|
+
};
|
|
2366
3090
|
export const kandjiGetFVRecoveryKeyForDeviceDefinition = {
|
|
2367
3091
|
description: "Get the FileVault recovery key for a device",
|
|
2368
3092
|
scopes: [],
|