codeapp-js 1.0.1 → 1.1.0

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.
Files changed (130) hide show
  1. package/AI/skills/autoreview/SKILL.md +69 -0
  2. package/AI/skills/connections/SKILL.md +4 -4
  3. package/AI/skills/dataverse/SKILL.md +4 -2
  4. package/AI/skills/frontend-design/SKILL.md +32 -20
  5. package/AI/skills/keyvault/SKILL.md +139 -0
  6. package/AI/skills/office365-groups/SKILL.md +46 -25
  7. package/AI/skills/office365-outlook/SKILL.md +56 -25
  8. package/AI/skills/office365-users/SKILL.md +41 -36
  9. package/AI/skills/sharepoint/SKILL.md +174 -31
  10. package/AI/skills/start/SKILL.md +38 -30
  11. package/codeApp/dist/connectors/autoreview.js +1654 -0
  12. package/codeApp/dist/connectors/office365groups.js +2995 -432
  13. package/{examples/outlook Demo/.power/schemas/office365/office365.Schema.json → codeApp/dist/connectors/office365outlook.js} +7439 -16
  14. package/codeApp/dist/connectors/office365users.js +2990 -349
  15. package/codeApp/dist/connectors/sharepoint.js +529 -308
  16. package/examples/combined demo/dist/connectors/office365outlook.js +28521 -0
  17. package/examples/combined demo/dist/connectors/office365users.js +3154 -0
  18. package/examples/combined demo/dist/index.js +2 -6
  19. package/examples/combined demo/power.config.json +1 -1
  20. package/examples/groups Demo/{.power/schemas/office365groups/office365groups.Schema.json → dist/connectors/office365groups.js } +3205 -2204
  21. package/examples/groups Demo/dist/index.js +1 -5
  22. package/examples/groups Demo/power.config.json +1 -1
  23. package/examples/myProfile/dist/connectors/office365users.js +3154 -0
  24. package/examples/myProfile/dist/index.js +1 -5
  25. package/examples/myProfile/power.config.json +1 -1
  26. package/examples/outlook Demo/dist/connectors/office365outlook.js +28521 -0
  27. package/examples/outlook Demo/dist/index.js +2 -5
  28. package/examples/outlook Demo/power.config.json +1 -1
  29. package/examples/sharePoint Demo/dist/connectors/sharepoint.js +687 -0
  30. package/examples/sharePoint Demo/dist/index.js +86 -127
  31. package/examples/sharePoint Demo/power.config.json +1 -1
  32. package/package.json +1 -1
  33. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  34. package/codeApp/.power/schemas/jira/jira.Schema.json +0 -6903
  35. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  36. package/codeApp/.power/schemas/office365groups/office365groups.Schema.json +0 -2204
  37. package/codeApp/.power/schemas/teams/teams.Schema.json +0 -11112
  38. package/codeApp/dist/connectors/outlook.js +0 -1393
  39. package/codeApp/src/generated/index.ts +0 -12
  40. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +0 -107
  41. package/codeApp/src/generated/models/JiraModel.ts +0 -501
  42. package/codeApp/src/generated/models/Office365GroupsModel.ts +0 -363
  43. package/codeApp/src/generated/models/Office365OutlookModel.ts +0 -2046
  44. package/codeApp/src/generated/models/Office365UsersModel.ts +0 -254
  45. package/codeApp/src/generated/services/AzureKeyVaultService.ts +0 -257
  46. package/codeApp/src/generated/services/JiraService.ts +0 -1124
  47. package/codeApp/src/generated/services/Office365GroupsService.ts +0 -326
  48. package/codeApp/src/generated/services/Office365OutlookService.ts +0 -2476
  49. package/codeApp/src/generated/services/Office365UsersService.ts +0 -358
  50. package/examples/apps/kanban/dist/dataverse.js +0 -94
  51. package/examples/apps/kanban/dist/environmentVar.js +0 -55
  52. package/examples/apps/kanban/dist/index.css +0 -605
  53. package/examples/apps/kanban/dist/index.html +0 -21
  54. package/examples/apps/kanban/dist/index.js +0 -860
  55. package/examples/apps/kanban/dist/office365groups.js +0 -97
  56. package/examples/apps/kanban/dist/office365users.js +0 -451
  57. package/examples/apps/kanban/dist/outlook.js +0 -162
  58. package/examples/apps/kanban/dist/power-apps-data.js +0 -2953
  59. package/examples/apps/kanban/dist/sharepoint.js +0 -435
  60. package/examples/apps/kanban/power.config.json +0 -35
  61. package/examples/apps/kanban/src/generated/index.ts +0 -14
  62. package/examples/apps/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  63. package/examples/apps/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  64. package/examples/apps/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  65. package/examples/apps/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  66. package/examples/apps/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  67. package/examples/apps/kanban/src/generated/services/Office365UsersService.ts +0 -358
  68. package/examples/apps/planning Poker/additional files/AgilePoker_1_0_0_1.zip +0 -0
  69. package/examples/apps/planning Poker/additional files/PokerTables_1_0_0_1.zip +0 -0
  70. package/examples/apps/planning Poker/additional files/customizations (tables).xml +0 -6429
  71. package/examples/apps/planning Poker/additional files/dataverse-tables.json +0 -165
  72. package/examples/apps/planning Poker/additional files/readme.md +0 -122
  73. package/examples/apps/planning Poker/dist/dataverse.js +0 -78
  74. package/examples/apps/planning Poker/dist/index.html +0 -198
  75. package/examples/apps/planning Poker/dist/index.js +0 -955
  76. package/examples/apps/planning Poker/dist/power-apps-data.js +0 -2953
  77. package/examples/apps/planning Poker/dist/styles.css +0 -815
  78. package/examples/apps/planning Poker/power.config.json +0 -50
  79. package/examples/apps/solution explorer/dist/codeapp.js +0 -1098
  80. package/examples/apps/solution explorer/dist/icon-512.png +0 -0
  81. package/examples/apps/solution explorer/dist/index.html +0 -80
  82. package/examples/apps/solution explorer/dist/index.js +0 -735
  83. package/examples/apps/solution explorer/dist/power-apps-data.js +0 -3007
  84. package/examples/apps/solution explorer/dist/styles.css +0 -571
  85. package/examples/apps/solution explorer/power.config.json +0 -151
  86. package/examples/apps/todo/dist/dataverse.js +0 -64
  87. package/examples/apps/todo/dist/icon192.png +0 -0
  88. package/examples/apps/todo/dist/index.html +0 -75
  89. package/examples/apps/todo/dist/index.js +0 -9
  90. package/examples/apps/todo/dist/power-apps-data.js +0 -2953
  91. package/examples/apps/todo/dist/renderer.js +0 -375
  92. package/examples/apps/todo/dist/styles.css +0 -691
  93. package/examples/apps/todo/power.config.json +0 -35
  94. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6275
  95. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +0 -6903
  96. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +0 -1600
  97. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +0 -11112
  98. package/examples/combined demo/dist/office365users.js +0 -513
  99. package/examples/combined demo/dist/outlook.js +0 -1393
  100. package/examples/combined demo/src/generated/index.ts +0 -12
  101. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +0 -107
  102. package/examples/combined demo/src/generated/models/JiraModel.ts +0 -501
  103. package/examples/combined demo/src/generated/models/Office365GroupsModel.ts +0 -363
  104. package/examples/combined demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  105. package/examples/combined demo/src/generated/models/Office365UsersModel.ts +0 -254
  106. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +0 -257
  107. package/examples/combined demo/src/generated/services/JiraService.ts +0 -1124
  108. package/examples/combined demo/src/generated/services/Office365GroupsService.ts +0 -326
  109. package/examples/combined demo/src/generated/services/Office365OutlookService.ts +0 -2476
  110. package/examples/combined demo/src/generated/services/Office365UsersService.ts +0 -358
  111. package/examples/groups Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -613
  112. package/examples/groups Demo/dist/office365groups.js +0 -642
  113. package/examples/groups Demo/src/generated/index.ts +0 -10
  114. package/examples/groups Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  115. package/examples/groups Demo/src/generated/services/Office365GroupsService.ts +0 -326
  116. package/examples/myProfile/dist/office365users.js +0 -517
  117. package/examples/outlook Demo/.power/schemas/appschemas/dataSourcesInfo.ts +0 -6512
  118. package/examples/outlook Demo/dist/outlook.js +0 -1393
  119. package/examples/outlook Demo/src/generated/index.ts +0 -10
  120. package/examples/outlook Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  121. package/examples/outlook Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  122. package/examples/sharePoint Demo/dist/sharepoint.js +0 -466
  123. package/examples/sharePoint Demo/src/generated/index.ts +0 -14
  124. package/examples/sharePoint Demo/src/generated/models/Office365GroupsModel.ts +0 -363
  125. package/examples/sharePoint Demo/src/generated/models/Office365OutlookModel.ts +0 -2046
  126. package/examples/sharePoint Demo/src/generated/models/Office365UsersModel.ts +0 -254
  127. package/examples/sharePoint Demo/src/generated/services/Office365GroupsService.ts +0 -326
  128. package/examples/sharePoint Demo/src/generated/services/Office365OutlookService.ts +0 -2476
  129. package/examples/sharePoint Demo/src/generated/services/Office365UsersService.ts +0 -358
  130. package/readme.md +0 -590
@@ -1,1124 +0,0 @@
1
- /*!
2
- * Copyright (C) Microsoft Corporation. All rights reserved.
3
- * This file is autogenerated. Do not edit this file directly.
4
- */
5
-
6
- import type { Comment } from '../models/JiraModel';
7
- import type { CreateIssueRequest } from '../models/JiraModel';
8
- import type { FullIssue } from '../models/JiraModel';
9
- import type { IOperationResult } from '@microsoft/power-apps/data';
10
- import type { IssueTypes } from '../models/JiraModel';
11
- import type { ListFiltersResponse } from '../models/JiraModel';
12
- import type { ListIssuesResponse } from '../models/JiraModel';
13
- import type { ListIssuesResponseDatacenter } from '../models/JiraModel';
14
- import type { ListProjects_ResponseV2 } from '../models/JiraModel';
15
- import type { MCPQueryRequest } from '../models/JiraModel';
16
- import type { MCPQueryResponse } from '../models/JiraModel';
17
- import type { PriorityList } from '../models/JiraModel';
18
- import type { ProjectArray } from '../models/JiraModel';
19
- import type { Sites } from '../models/JiraModel';
20
- import type { StatusList } from '../models/JiraModel';
21
- import type { TransitionInput } from '../models/JiraModel';
22
- import type { UpdateIssueRequest } from '../models/JiraModel';
23
- import type { UserList } from '../models/JiraModel';
24
- import { dataSourcesInfo } from '../../../.power/schemas/appschemas/dataSourcesInfo';
25
- import { getClient } from '@microsoft/power-apps/data';
26
-
27
- export class JiraService {
28
- private static readonly dataSourceName = 'jira';
29
-
30
- private static readonly client = getClient(dataSourcesInfo);
31
-
32
- /**
33
- * Edit Issue
34
- * Edits an issue. A transition may be applied and issue properties updated as part of the edit. The edits to the issue's fields are defined using update and fields.
35
- */
36
- public static async EditIssue(issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
37
- const params: { issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown> } = { issueIdOrKey, notifyUsers, overrideScreenSecurity, overrideEditableFlag, body };
38
- const result = await JiraService.client.executeAsync<{ issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown> }, void>(
39
- {
40
- connectorOperation: {
41
- tableName: JiraService.dataSourceName,
42
- operationName: 'EditIssue',
43
- parameters: params
44
- },
45
- });
46
- return result;
47
- }
48
-
49
- /**
50
- * Edit Issue (V2)
51
- * Edits an issue. A transition may be applied and issue properties updated as part of the edit. The edits to the issue's fields are defined using update and fields.
52
- */
53
- public static async EditIssue_V2(X_Request_Jirainstance: string, issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
54
- const params: { X_Request_Jirainstance: string, issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown> } = { X_Request_Jirainstance, issueIdOrKey, notifyUsers, overrideScreenSecurity, overrideEditableFlag, body };
55
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueIdOrKey: string, notifyUsers?: boolean, overrideScreenSecurity?: boolean, overrideEditableFlag?: boolean, body?: Record<string, unknown> }, void>(
56
- {
57
- connectorOperation: {
58
- tableName: JiraService.dataSourceName,
59
- operationName: 'EditIssue_V2',
60
- parameters: params
61
- },
62
- });
63
- return result;
64
- }
65
-
66
- /**
67
- * Delete Project
68
- * Deletes a project. Permissions required: Administer Jira (global permissions)
69
- */
70
- public static async DeleteProject(projectIdOrKey: string, enableUndo?: boolean): Promise<IOperationResult<void>> {
71
- const params: { projectIdOrKey: string, enableUndo?: boolean } = { projectIdOrKey, enableUndo };
72
- const result = await JiraService.client.executeAsync<{ projectIdOrKey: string, enableUndo?: boolean }, void>(
73
- {
74
- connectorOperation: {
75
- tableName: JiraService.dataSourceName,
76
- operationName: 'DeleteProject',
77
- parameters: params
78
- },
79
- });
80
- return result;
81
- }
82
-
83
- /**
84
- * Update Project
85
- * Updates the project details of a project.
86
- */
87
- public static async UpdateProject(projectIdOrKey: string, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
88
- const params: { projectIdOrKey: string, body?: Record<string, unknown> } = { projectIdOrKey, body };
89
- const result = await JiraService.client.executeAsync<{ projectIdOrKey: string, body?: Record<string, unknown> }, void>(
90
- {
91
- connectorOperation: {
92
- tableName: JiraService.dataSourceName,
93
- operationName: 'UpdateProject',
94
- parameters: params
95
- },
96
- });
97
- return result;
98
- }
99
-
100
- /**
101
- * Delete Project (V2)
102
- * Deletes a project. Permissions required: Administer Jira (global permissions)
103
- */
104
- public static async DeleteProject_V2(X_Request_Jirainstance: string, projectIdOrKey: string, enableUndo?: boolean): Promise<IOperationResult<void>> {
105
- const params: { X_Request_Jirainstance: string, projectIdOrKey: string, enableUndo?: boolean } = { X_Request_Jirainstance, projectIdOrKey, enableUndo };
106
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectIdOrKey: string, enableUndo?: boolean }, void>(
107
- {
108
- connectorOperation: {
109
- tableName: JiraService.dataSourceName,
110
- operationName: 'DeleteProject_V2',
111
- parameters: params
112
- },
113
- });
114
- return result;
115
- }
116
-
117
- /**
118
- * Update Project (V2)
119
- * Updates the project details of a project.
120
- */
121
- public static async UpdateProject_V2(X_Request_Jirainstance: string, projectIdOrKey: string, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
122
- const params: { X_Request_Jirainstance: string, projectIdOrKey: string, body?: Record<string, unknown> } = { X_Request_Jirainstance, projectIdOrKey, body };
123
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectIdOrKey: string, body?: Record<string, unknown> }, void>(
124
- {
125
- connectorOperation: {
126
- tableName: JiraService.dataSourceName,
127
- operationName: 'UpdateProject_V2',
128
- parameters: params
129
- },
130
- });
131
- return result;
132
- }
133
-
134
- /**
135
- * Get All Project Categories
136
- * Returns all project categories.
137
- */
138
- public static async GetAllProjectCategories(): Promise<IOperationResult<unknown>> {
139
- const result = await JiraService.client.executeAsync<void, unknown>(
140
- {
141
- connectorOperation: {
142
- tableName: JiraService.dataSourceName,
143
- operationName: 'GetAllProjectCategories',
144
- },
145
- });
146
- return result;
147
- }
148
-
149
- /**
150
- * Create Project Category
151
- * Creates a project category. Permissions required: Administer Jira (global permissions)
152
- */
153
- public static async CreateProjectCategory(body?: Record<string, unknown>): Promise<IOperationResult<void>> {
154
- const params: { body?: Record<string, unknown> } = { body };
155
- const result = await JiraService.client.executeAsync<{ body?: Record<string, unknown> }, void>(
156
- {
157
- connectorOperation: {
158
- tableName: JiraService.dataSourceName,
159
- operationName: 'CreateProjectCategory',
160
- parameters: params
161
- },
162
- });
163
- return result;
164
- }
165
-
166
- /**
167
- * Get All Project Categories (V2)
168
- * Returns all project categories.
169
- */
170
- public static async GetAllProjectCategories_V2(X_Request_Jirainstance: string): Promise<IOperationResult<unknown>> {
171
- const params: { X_Request_Jirainstance: string } = { X_Request_Jirainstance };
172
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string }, unknown>(
173
- {
174
- connectorOperation: {
175
- tableName: JiraService.dataSourceName,
176
- operationName: 'GetAllProjectCategories_V2',
177
- parameters: params
178
- },
179
- });
180
- return result;
181
- }
182
-
183
- /**
184
- * Create Project Category (V2)
185
- * Creates a project category. Permissions required: Administer Jira (global permissions)
186
- */
187
- public static async CreateProjectCategory_V2(X_Request_Jirainstance: string, body?: Record<string, unknown>): Promise<IOperationResult<void>> {
188
- const params: { X_Request_Jirainstance: string, body?: Record<string, unknown> } = { X_Request_Jirainstance, body };
189
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, body?: Record<string, unknown> }, void>(
190
- {
191
- connectorOperation: {
192
- tableName: JiraService.dataSourceName,
193
- operationName: 'CreateProjectCategory_V2',
194
- parameters: params
195
- },
196
- });
197
- return result;
198
- }
199
-
200
- /**
201
- * Remove Project Category
202
- * Deletes a project category. Permissions required: Administer Jira (global permissions)
203
- */
204
- public static async RemoveProjectCategory(id: number): Promise<IOperationResult<void>> {
205
- const params: { id: number } = { id };
206
- const result = await JiraService.client.executeAsync<{ id: number }, void>(
207
- {
208
- connectorOperation: {
209
- tableName: JiraService.dataSourceName,
210
- operationName: 'RemoveProjectCategory',
211
- parameters: params
212
- },
213
- });
214
- return result;
215
- }
216
-
217
- /**
218
- * Remove Project Category (V2)
219
- * Deletes a project category. Permissions required: Administer Jira (global permissions)
220
- */
221
- public static async RemoveProjectCategory_V2(X_Request_Jirainstance: string, id: number): Promise<IOperationResult<void>> {
222
- const params: { X_Request_Jirainstance: string, id: number } = { X_Request_Jirainstance, id };
223
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, id: number }, void>(
224
- {
225
- connectorOperation: {
226
- tableName: JiraService.dataSourceName,
227
- operationName: 'RemoveProjectCategory_V2',
228
- parameters: params
229
- },
230
- });
231
- return result;
232
- }
233
-
234
- /**
235
- * Get Task
236
- * Returns the status of a long-running asynchronous task. When a task has finished, this operation returns the JSON blob applicable to the task.
237
- */
238
- public static async GetTask(taskId: string): Promise<IOperationResult<void>> {
239
- const params: { taskId: string } = { taskId };
240
- const result = await JiraService.client.executeAsync<{ taskId: string }, void>(
241
- {
242
- connectorOperation: {
243
- tableName: JiraService.dataSourceName,
244
- operationName: 'GetTask',
245
- parameters: params
246
- },
247
- });
248
- return result;
249
- }
250
-
251
- /**
252
- * Get Task (V2)
253
- * Returns the status of a long-running asynchronous task. When a task has finished, this operation returns the JSON blob applicable to the task.
254
- */
255
- public static async GetTask_V2(X_Request_Jirainstance: string, taskId: string): Promise<IOperationResult<void>> {
256
- const params: { X_Request_Jirainstance: string, taskId: string } = { X_Request_Jirainstance, taskId };
257
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, taskId: string }, void>(
258
- {
259
- connectorOperation: {
260
- tableName: JiraService.dataSourceName,
261
- operationName: 'GetTask_V2',
262
- parameters: params
263
- },
264
- });
265
- return result;
266
- }
267
-
268
- /**
269
- * Cancel Task
270
- * Cancels a task. Permissions required: either of: Administer Jira or Creator of the task.
271
- */
272
- public static async CancelTask(taskId: string, X_Atlassian_Token: string): Promise<IOperationResult<void>> {
273
- const params: { taskId: string, X_Atlassian_Token: string } = { taskId, X_Atlassian_Token };
274
- const result = await JiraService.client.executeAsync<{ taskId: string, X_Atlassian_Token: string }, void>(
275
- {
276
- connectorOperation: {
277
- tableName: JiraService.dataSourceName,
278
- operationName: 'CancelTask',
279
- parameters: params
280
- },
281
- });
282
- return result;
283
- }
284
-
285
- /**
286
- * Cancel Task (V2)
287
- * Cancels a task. Permissions required: either of: Administer Jira or Creator of the task.
288
- */
289
- public static async CancelTask_V2(X_Request_Jirainstance: string, taskId: string, X_Atlassian_Token: string): Promise<IOperationResult<void>> {
290
- const params: { X_Request_Jirainstance: string, taskId: string, X_Atlassian_Token: string } = { X_Request_Jirainstance, taskId, X_Atlassian_Token };
291
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, taskId: string, X_Atlassian_Token: string }, void>(
292
- {
293
- connectorOperation: {
294
- tableName: JiraService.dataSourceName,
295
- operationName: 'CancelTask_V2',
296
- parameters: params
297
- },
298
- });
299
- return result;
300
- }
301
-
302
- /**
303
- * Get User
304
- * Returns a user. Permissions required: Browse users and groups.
305
- */
306
- public static async GetUser(accountId: string, expand?: string): Promise<IOperationResult<void>> {
307
- const params: { accountId: string, expand?: string } = { accountId, expand };
308
- const result = await JiraService.client.executeAsync<{ accountId: string, expand?: string }, void>(
309
- {
310
- connectorOperation: {
311
- tableName: JiraService.dataSourceName,
312
- operationName: 'GetUser',
313
- parameters: params
314
- },
315
- });
316
- return result;
317
- }
318
-
319
- /**
320
- * Get User (V2)
321
- * Returns a user. Permissions required: Browse users and groups.
322
- */
323
- public static async GetUser_V2(X_Request_Jirainstance: string, accountId: string, expand?: string): Promise<IOperationResult<void>> {
324
- const params: { X_Request_Jirainstance: string, accountId: string, expand?: string } = { X_Request_Jirainstance, accountId, expand };
325
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, accountId: string, expand?: string }, void>(
326
- {
327
- connectorOperation: {
328
- tableName: JiraService.dataSourceName,
329
- operationName: 'GetUser_V2',
330
- parameters: params
331
- },
332
- });
333
- return result;
334
- }
335
-
336
- /**
337
- * Create a new issue
338
- * This operation is used to create a new issue.
339
- */
340
- public static async CreateIssue(projectKey: string, body: CreateIssueRequest): Promise<IOperationResult<void>> {
341
- const params: { projectKey: string, body: CreateIssueRequest } = { projectKey, body };
342
- const result = await JiraService.client.executeAsync<{ projectKey: string, body: CreateIssueRequest }, void>(
343
- {
344
- connectorOperation: {
345
- tableName: JiraService.dataSourceName,
346
- operationName: 'CreateIssue',
347
- parameters: params
348
- },
349
- });
350
- return result;
351
- }
352
-
353
- /**
354
- * Create a new issue (V2)
355
- * This operation is used to create a new issue.
356
- */
357
- public static async CreateIssueV2(projectKey: string, issueTypeIds: string, item?: Record<string, unknown>): Promise<IOperationResult<void>> {
358
- const params: { projectKey: string, issueTypeIds: string, item?: Record<string, unknown> } = { projectKey, issueTypeIds, item };
359
- const result = await JiraService.client.executeAsync<{ projectKey: string, issueTypeIds: string, item?: Record<string, unknown> }, void>(
360
- {
361
- connectorOperation: {
362
- tableName: JiraService.dataSourceName,
363
- operationName: 'CreateIssueV2',
364
- parameters: params
365
- },
366
- });
367
- return result;
368
- }
369
-
370
- /**
371
- * Create a new issue (V3)
372
- * This operation is used to create a new issue.
373
- */
374
- public static async CreateIssue_V3(X_Request_Jirainstance: string, projectKey: string, issueTypeIds: string, item?: Record<string, unknown>): Promise<IOperationResult<void>> {
375
- const params: { X_Request_Jirainstance: string, projectKey: string, issueTypeIds: string, item?: Record<string, unknown> } = { X_Request_Jirainstance, projectKey, issueTypeIds, item };
376
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectKey: string, issueTypeIds: string, item?: Record<string, unknown> }, void>(
377
- {
378
- connectorOperation: {
379
- tableName: JiraService.dataSourceName,
380
- operationName: 'CreateIssue_V3',
381
- parameters: params
382
- },
383
- });
384
- return result;
385
- }
386
-
387
- /**
388
- * Get issue by key
389
- * This operation is used to retrieve the issue object for a given issue Key.
390
- */
391
- public static async GetIssue(issueKey: string): Promise<IOperationResult<FullIssue>> {
392
- const params: { issueKey: string } = { issueKey };
393
- const result = await JiraService.client.executeAsync<{ issueKey: string }, FullIssue>(
394
- {
395
- connectorOperation: {
396
- tableName: JiraService.dataSourceName,
397
- operationName: 'GetIssue',
398
- parameters: params
399
- },
400
- });
401
- return result;
402
- }
403
-
404
- /**
405
- * Update issue
406
- * This operation is used to update an existing Jira issue.
407
- */
408
- public static async UpdateIssue(issueKey: string, body: UpdateIssueRequest): Promise<IOperationResult<string>> {
409
- const params: { issueKey: string, body: UpdateIssueRequest } = { issueKey, body };
410
- const result = await JiraService.client.executeAsync<{ issueKey: string, body: UpdateIssueRequest }, string>(
411
- {
412
- connectorOperation: {
413
- tableName: JiraService.dataSourceName,
414
- operationName: 'UpdateIssue',
415
- parameters: params
416
- },
417
- });
418
- return result;
419
- }
420
-
421
- /**
422
- * Get issue by key (V2)
423
- * This operation is used to retrieve the issue object for a given issue Key.
424
- */
425
- public static async GetIssue_V2(X_Request_Jirainstance: string, issueKey: string): Promise<IOperationResult<FullIssue>> {
426
- const params: { X_Request_Jirainstance: string, issueKey: string } = { X_Request_Jirainstance, issueKey };
427
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueKey: string }, FullIssue>(
428
- {
429
- connectorOperation: {
430
- tableName: JiraService.dataSourceName,
431
- operationName: 'GetIssue_V2',
432
- parameters: params
433
- },
434
- });
435
- return result;
436
- }
437
-
438
- /**
439
- * Update issue (V2)
440
- * This operation is used to update an existing Jira issue.
441
- */
442
- public static async UpdateIssue_V2(X_Request_Jirainstance: string, issueKey: string, body: UpdateIssueRequest): Promise<IOperationResult<string>> {
443
- const params: { X_Request_Jirainstance: string, issueKey: string, body: UpdateIssueRequest } = { X_Request_Jirainstance, issueKey, body };
444
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueKey: string, body: UpdateIssueRequest }, string>(
445
- {
446
- connectorOperation: {
447
- tableName: JiraService.dataSourceName,
448
- operationName: 'UpdateIssue_V2',
449
- parameters: params
450
- },
451
- });
452
- return result;
453
- }
454
-
455
- /**
456
- * Add comment
457
- * This operation is used to add a comment to an existing Jira issue.
458
- */
459
- public static async AddComment(issueKey: string, body: Comment): Promise<IOperationResult<void>> {
460
- const params: { issueKey: string, body: Comment } = { issueKey, body };
461
- const result = await JiraService.client.executeAsync<{ issueKey: string, body: Comment }, void>(
462
- {
463
- connectorOperation: {
464
- tableName: JiraService.dataSourceName,
465
- operationName: 'AddComment',
466
- parameters: params
467
- },
468
- });
469
- return result;
470
- }
471
-
472
- /**
473
- * Add comment (V2)
474
- * This operation is used to add a comment to an existing Jira issue.
475
- */
476
- public static async AddComment_V2(X_Request_Jirainstance: string, issueKey: string, body: Comment): Promise<IOperationResult<void>> {
477
- const params: { X_Request_Jirainstance: string, issueKey: string, body: Comment } = { X_Request_Jirainstance, issueKey, body };
478
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueKey: string, body: Comment }, void>(
479
- {
480
- connectorOperation: {
481
- tableName: JiraService.dataSourceName,
482
- operationName: 'AddComment_V2',
483
- parameters: params
484
- },
485
- });
486
- return result;
487
- }
488
-
489
- /**
490
- * Get issue types
491
- * This operation is used to retrieve a list of issue types for a given project.
492
- */
493
- public static async ListIssueTypes(projectKey: string): Promise<IOperationResult<IssueTypes>> {
494
- const params: { projectKey: string } = { projectKey };
495
- const result = await JiraService.client.executeAsync<{ projectKey: string }, IssueTypes>(
496
- {
497
- connectorOperation: {
498
- tableName: JiraService.dataSourceName,
499
- operationName: 'ListIssueTypes',
500
- parameters: params
501
- },
502
- });
503
- return result;
504
- }
505
-
506
- /**
507
- * Get issue types (V2)
508
- * This operation is used to retrieve a list of issue types for a given project.
509
- */
510
- public static async ListIssueTypes_V2(X_Request_Jirainstance: string, projectKey: string): Promise<IOperationResult<IssueTypes>> {
511
- const params: { X_Request_Jirainstance: string, projectKey: string } = { X_Request_Jirainstance, projectKey };
512
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectKey: string }, IssueTypes>(
513
- {
514
- connectorOperation: {
515
- tableName: JiraService.dataSourceName,
516
- operationName: 'ListIssueTypes_V2',
517
- parameters: params
518
- },
519
- });
520
- return result;
521
- }
522
-
523
- /**
524
- * Get issue types fields
525
- * This operation is used to retrieve a list of fields for a specific issue type.
526
- */
527
- public static async ListIssueTypesFields(projectKey: string, issuetypeIds: string): Promise<IOperationResult<IssueTypes>> {
528
- const params: { projectKey: string, issuetypeIds: string } = { projectKey, issuetypeIds };
529
- const result = await JiraService.client.executeAsync<{ projectKey: string, issuetypeIds: string }, IssueTypes>(
530
- {
531
- connectorOperation: {
532
- tableName: JiraService.dataSourceName,
533
- operationName: 'ListIssueTypesFields',
534
- parameters: params
535
- },
536
- });
537
- return result;
538
- }
539
-
540
- /**
541
- * Get issue types fields (V2)
542
- * This operation is used to retrieve a list of fields for a specific issue type.
543
- */
544
- public static async ListIssueTypesFields_V2(X_Request_Jirainstance: string, projectKey: string, issuetypeIds: string): Promise<IOperationResult<IssueTypes>> {
545
- const params: { X_Request_Jirainstance: string, projectKey: string, issuetypeIds: string } = { X_Request_Jirainstance, projectKey, issuetypeIds };
546
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectKey: string, issuetypeIds: string }, IssueTypes>(
547
- {
548
- connectorOperation: {
549
- tableName: JiraService.dataSourceName,
550
- operationName: 'ListIssueTypesFields_V2',
551
- parameters: params
552
- },
553
- });
554
- return result;
555
- }
556
-
557
- /**
558
- * Get projects
559
- * This operation is used to retrieve a list of projects for your Jira instance.
560
- */
561
- public static async ListProjects(): Promise<IOperationResult<ProjectArray>> {
562
- const result = await JiraService.client.executeAsync<void, ProjectArray>(
563
- {
564
- connectorOperation: {
565
- tableName: JiraService.dataSourceName,
566
- operationName: 'ListProjects',
567
- },
568
- });
569
- return result;
570
- }
571
-
572
- /**
573
- * Create a new project
574
- * This operation is used to create a new Jira project.
575
- */
576
- public static async CreateProject(Project: Record<string, unknown>): Promise<IOperationResult<void>> {
577
- const params: { Project: Record<string, unknown> } = { Project };
578
- const result = await JiraService.client.executeAsync<{ Project: Record<string, unknown> }, void>(
579
- {
580
- connectorOperation: {
581
- tableName: JiraService.dataSourceName,
582
- operationName: 'CreateProject',
583
- parameters: params
584
- },
585
- });
586
- return result;
587
- }
588
-
589
- /**
590
- * Create a new project (V2)
591
- * This operation is used to create a new Jira project.
592
- */
593
- public static async CreateProject_V2(X_Request_Jirainstance: string, Project: Record<string, unknown>): Promise<IOperationResult<void>> {
594
- const params: { X_Request_Jirainstance: string, Project: Record<string, unknown> } = { X_Request_Jirainstance, Project };
595
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, Project: Record<string, unknown> }, void>(
596
- {
597
- connectorOperation: {
598
- tableName: JiraService.dataSourceName,
599
- operationName: 'CreateProject_V2',
600
- parameters: params
601
- },
602
- });
603
- return result;
604
- }
605
-
606
- /**
607
- * Get projects
608
- * This operation is used to retrieve a list of projects for your Jira instance.
609
- */
610
- public static async ListProjects_V2(): Promise<IOperationResult<ListProjects_ResponseV2>> {
611
- const result = await JiraService.client.executeAsync<void, ListProjects_ResponseV2>(
612
- {
613
- connectorOperation: {
614
- tableName: JiraService.dataSourceName,
615
- operationName: 'ListProjects_V2',
616
- },
617
- });
618
- return result;
619
- }
620
-
621
- /**
622
- * Get projects (V2)
623
- * This operation is used to retrieve a list of projects for your Jira instance.
624
- */
625
- public static async ListProjects_V3(X_Request_Jirainstance: string): Promise<IOperationResult<ListProjects_ResponseV2>> {
626
- const params: { X_Request_Jirainstance: string } = { X_Request_Jirainstance };
627
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string }, ListProjects_ResponseV2>(
628
- {
629
- connectorOperation: {
630
- tableName: JiraService.dataSourceName,
631
- operationName: 'ListProjects_V3',
632
- parameters: params
633
- },
634
- });
635
- return result;
636
- }
637
-
638
- /**
639
- * Get statuses
640
- * This operation is used to retrieve a list of statuses for a project and issue type.
641
- */
642
- public static async ListStatuses(issueType: string, projectId: string): Promise<IOperationResult<StatusList>> {
643
- const params: { issueType: string, projectId: string } = { issueType, projectId };
644
- const result = await JiraService.client.executeAsync<{ issueType: string, projectId: string }, StatusList>(
645
- {
646
- connectorOperation: {
647
- tableName: JiraService.dataSourceName,
648
- operationName: 'ListStatuses',
649
- parameters: params
650
- },
651
- });
652
- return result;
653
- }
654
-
655
- /**
656
- * Get statuses (V2)
657
- * This operation is used to retrieve a list of statuses for a project and issue type.
658
- */
659
- public static async ListStatuses_V2(X_Request_Jirainstance: string, projectId: string, issueType?: string): Promise<IOperationResult<StatusList>> {
660
- const params: { X_Request_Jirainstance: string, projectId: string, issueType?: string } = { X_Request_Jirainstance, projectId, issueType };
661
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectId: string, issueType?: string }, StatusList>(
662
- {
663
- connectorOperation: {
664
- tableName: JiraService.dataSourceName,
665
- operationName: 'ListStatuses_V2',
666
- parameters: params
667
- },
668
- });
669
- return result;
670
- }
671
-
672
- /**
673
- * List users by project
674
- * This operation is used to retrieve a list of all users associated with a project.
675
- */
676
- public static async ListProjectUsers(projectKey: string): Promise<IOperationResult<UserList>> {
677
- const params: { projectKey: string } = { projectKey };
678
- const result = await JiraService.client.executeAsync<{ projectKey: string }, UserList>(
679
- {
680
- connectorOperation: {
681
- tableName: JiraService.dataSourceName,
682
- operationName: 'ListProjectUsers',
683
- parameters: params
684
- },
685
- });
686
- return result;
687
- }
688
-
689
- /**
690
- * List users by project (V2)
691
- * This operation is used to retrieve a list of all users associated with a project.
692
- */
693
- public static async ListProjectUsers_V2(X_Request_Jirainstance: string, projectKey: string): Promise<IOperationResult<UserList>> {
694
- const params: { X_Request_Jirainstance: string, projectKey: string } = { X_Request_Jirainstance, projectKey };
695
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectKey: string }, UserList>(
696
- {
697
- connectorOperation: {
698
- tableName: JiraService.dataSourceName,
699
- operationName: 'ListProjectUsers_V2',
700
- parameters: params
701
- },
702
- });
703
- return result;
704
- }
705
-
706
- /**
707
- * Get assignable Users
708
- * This operation returns a list of the users who can be assigned issues for a given project.
709
- */
710
- public static async ListAssignableUsers(projectKey: string): Promise<IOperationResult<UserList>> {
711
- const params: { projectKey: string } = { projectKey };
712
- const result = await JiraService.client.executeAsync<{ projectKey: string }, UserList>(
713
- {
714
- connectorOperation: {
715
- tableName: JiraService.dataSourceName,
716
- operationName: 'ListAssignableUsers',
717
- parameters: params
718
- },
719
- });
720
- return result;
721
- }
722
-
723
- /**
724
- * Get assignable Users (V2)
725
- * This operation returns a list of the users who can be assigned issues for a given project.
726
- */
727
- public static async ListAssignableUsers_V2(X_Request_Jirainstance: string, projectKey: string): Promise<IOperationResult<UserList>> {
728
- const params: { X_Request_Jirainstance: string, projectKey: string } = { X_Request_Jirainstance, projectKey };
729
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, projectKey: string }, UserList>(
730
- {
731
- connectorOperation: {
732
- tableName: JiraService.dataSourceName,
733
- operationName: 'ListAssignableUsers_V2',
734
- parameters: params
735
- },
736
- });
737
- return result;
738
- }
739
-
740
- /**
741
- * Get priority types
742
- * This operation returns a list of priority types.
743
- */
744
- public static async ListPriorityTypes(): Promise<IOperationResult<PriorityList>> {
745
- const result = await JiraService.client.executeAsync<void, PriorityList>(
746
- {
747
- connectorOperation: {
748
- tableName: JiraService.dataSourceName,
749
- operationName: 'ListPriorityTypes',
750
- },
751
- });
752
- return result;
753
- }
754
-
755
- /**
756
- * Get priority types (V2)
757
- * This operation returns a list of priority types.
758
- */
759
- public static async ListPriorityTypes_V2(X_Request_Jirainstance: string): Promise<IOperationResult<PriorityList>> {
760
- const params: { X_Request_Jirainstance: string } = { X_Request_Jirainstance };
761
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string }, PriorityList>(
762
- {
763
- connectorOperation: {
764
- tableName: JiraService.dataSourceName,
765
- operationName: 'ListPriorityTypes_V2',
766
- parameters: params
767
- },
768
- });
769
- return result;
770
- }
771
-
772
- /**
773
- * Get list of Filters
774
- * This operation returns a list of Filters accessible to user.
775
- */
776
- public static async ListFilters(): Promise<IOperationResult<ListFiltersResponse>> {
777
- const result = await JiraService.client.executeAsync<void, ListFiltersResponse>(
778
- {
779
- connectorOperation: {
780
- tableName: JiraService.dataSourceName,
781
- operationName: 'ListFilters',
782
- },
783
- });
784
- return result;
785
- }
786
-
787
- /**
788
- * Get list of Filters (V2)
789
- * This operation returns a list of Filters accessible to user.
790
- */
791
- public static async ListFilters_V2(X_Request_Jirainstance: string): Promise<IOperationResult<ListFiltersResponse>> {
792
- const params: { X_Request_Jirainstance: string } = { X_Request_Jirainstance };
793
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string }, ListFiltersResponse>(
794
- {
795
- connectorOperation: {
796
- tableName: JiraService.dataSourceName,
797
- operationName: 'ListFilters_V2',
798
- parameters: params
799
- },
800
- });
801
- return result;
802
- }
803
-
804
- /**
805
- * Get list of Resources
806
- * This operation returns a list of resources accessible to user.
807
- */
808
- public static async ListResources(): Promise<IOperationResult<Sites>> {
809
- const result = await JiraService.client.executeAsync<void, Sites>(
810
- {
811
- connectorOperation: {
812
- tableName: JiraService.dataSourceName,
813
- operationName: 'ListResources',
814
- },
815
- });
816
- return result;
817
- }
818
-
819
- /**
820
- * Get list of issues
821
- * This operation returns a list of issues using JQL.
822
- */
823
- public static async ListIssues(X_Request_Jirainstance: string, jql?: string, expand?: string, fields?: string): Promise<IOperationResult<ListIssuesResponse>> {
824
- const params: { X_Request_Jirainstance: string, jql?: string, expand?: string, fields?: string } = { X_Request_Jirainstance, jql, expand, fields };
825
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, jql?: string, expand?: string, fields?: string }, ListIssuesResponse>(
826
- {
827
- connectorOperation: {
828
- tableName: JiraService.dataSourceName,
829
- operationName: 'ListIssues',
830
- parameters: params
831
- },
832
- });
833
- return result;
834
- }
835
-
836
- /**
837
- * Get list of issues (Datacenter)
838
- * This operation returns a list of issues using JQL.
839
- */
840
- public static async ListIssues_Datacenter(X_Request_Jirainstance: string): Promise<IOperationResult<ListIssuesResponseDatacenter>> {
841
- const params: { X_Request_Jirainstance: string } = { X_Request_Jirainstance };
842
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string }, ListIssuesResponseDatacenter>(
843
- {
844
- connectorOperation: {
845
- tableName: JiraService.dataSourceName,
846
- operationName: 'ListIssues_Datacenter',
847
- parameters: params
848
- },
849
- });
850
- return result;
851
- }
852
-
853
- /**
854
- * Get list of Transitions
855
- * Returns a list of the transitions possible for this issue by the current user
856
- */
857
- public static async ListTransitions(X_Request_Jirainstance: string, issueIdOrKey: string): Promise<IOperationResult<Record<string, unknown>>> {
858
- const params: { X_Request_Jirainstance: string, issueIdOrKey: string } = { X_Request_Jirainstance, issueIdOrKey };
859
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueIdOrKey: string }, Record<string, unknown>>(
860
- {
861
- connectorOperation: {
862
- tableName: JiraService.dataSourceName,
863
- operationName: 'ListTransitions',
864
- parameters: params
865
- },
866
- });
867
- return result;
868
- }
869
-
870
- /**
871
- * Performs an issue transition
872
- * Transitions an issue to a new status.
873
- */
874
- public static async UpdateTransition(X_Request_Jirainstance: string, issueIdOrKey: string, body: TransitionInput): Promise<IOperationResult<void>> {
875
- const params: { X_Request_Jirainstance: string, issueIdOrKey: string, body: TransitionInput } = { X_Request_Jirainstance, issueIdOrKey, body };
876
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, issueIdOrKey: string, body: TransitionInput }, void>(
877
- {
878
- connectorOperation: {
879
- tableName: JiraService.dataSourceName,
880
- operationName: 'UpdateTransition',
881
- parameters: params
882
- },
883
- });
884
- return result;
885
- }
886
-
887
- /**
888
- * Get current user
889
- * This operation returns details for the current user
890
- */
891
- public static async GetCurrentUser(X_Request_Jirainstance: string, expand?: string): Promise<IOperationResult<void>> {
892
- const params: { X_Request_Jirainstance: string, expand?: string } = { X_Request_Jirainstance, expand };
893
- const result = await JiraService.client.executeAsync<{ X_Request_Jirainstance: string, expand?: string }, void>(
894
- {
895
- connectorOperation: {
896
- tableName: JiraService.dataSourceName,
897
- operationName: 'GetCurrentUser',
898
- parameters: params
899
- },
900
- });
901
- return result;
902
- }
903
-
904
- /**
905
- * When a new issue is created
906
- * This operation triggers when a new issue is added to the given project.
907
- */
908
- public static async OnNewIssue(projectKey: string): Promise<IOperationResult<FullIssue[]>> {
909
- const params: { projectKey: string } = { projectKey };
910
- const result = await JiraService.client.executeAsync<{ projectKey: string }, FullIssue[]>(
911
- {
912
- connectorOperation: {
913
- tableName: JiraService.dataSourceName,
914
- operationName: 'OnNewIssue',
915
- parameters: params
916
- },
917
- });
918
- return result;
919
- }
920
-
921
- /**
922
- * When a new issue is created (V2)
923
- * This operation triggers when a new issue is added to the given project.
924
- */
925
- public static async OnNewIssue_V2(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
926
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
927
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
928
- {
929
- connectorOperation: {
930
- tableName: JiraService.dataSourceName,
931
- operationName: 'OnNewIssue_V2',
932
- parameters: params
933
- },
934
- });
935
- return result;
936
- }
937
-
938
- /**
939
- * When a new issue is created (Datacenter)
940
- * This operation triggers when a new issue is added to the given project.
941
- */
942
- public static async OnNewIssue_Datacenter(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
943
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
944
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
945
- {
946
- connectorOperation: {
947
- tableName: JiraService.dataSourceName,
948
- operationName: 'OnNewIssue_Datacenter',
949
- parameters: params
950
- },
951
- });
952
- return result;
953
- }
954
-
955
- /**
956
- * When an issue is closed
957
- * This operation triggers when an existing issue is closed in the given project.
958
- */
959
- public static async OnCloseIssue(projectKey: string): Promise<IOperationResult<FullIssue[]>> {
960
- const params: { projectKey: string } = { projectKey };
961
- const result = await JiraService.client.executeAsync<{ projectKey: string }, FullIssue[]>(
962
- {
963
- connectorOperation: {
964
- tableName: JiraService.dataSourceName,
965
- operationName: 'OnCloseIssue',
966
- parameters: params
967
- },
968
- });
969
- return result;
970
- }
971
-
972
- /**
973
- * When an issue is closed (V2)
974
- * This operation triggers when an existing issue is closed in the given project.
975
- */
976
- public static async OnCloseIssue_V2(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
977
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
978
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
979
- {
980
- connectorOperation: {
981
- tableName: JiraService.dataSourceName,
982
- operationName: 'OnCloseIssue_V2',
983
- parameters: params
984
- },
985
- });
986
- return result;
987
- }
988
-
989
- /**
990
- * When an issue is closed (Datacenter)
991
- * This operation triggers when an existing issue is closed in the given project.
992
- */
993
- public static async OnCloseIssue_Datacenter(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
994
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
995
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
996
- {
997
- connectorOperation: {
998
- tableName: JiraService.dataSourceName,
999
- operationName: 'OnCloseIssue_Datacenter',
1000
- parameters: params
1001
- },
1002
- });
1003
- return result;
1004
- }
1005
-
1006
- /**
1007
- * When an issue is updated
1008
- * This operation triggers when an existing Jira issue is updated.
1009
- */
1010
- public static async OnUpdateIssue(projectKey: string): Promise<IOperationResult<FullIssue[]>> {
1011
- const params: { projectKey: string } = { projectKey };
1012
- const result = await JiraService.client.executeAsync<{ projectKey: string }, FullIssue[]>(
1013
- {
1014
- connectorOperation: {
1015
- tableName: JiraService.dataSourceName,
1016
- operationName: 'OnUpdateIssue',
1017
- parameters: params
1018
- },
1019
- });
1020
- return result;
1021
- }
1022
-
1023
- /**
1024
- * When an issue is updated (V2)
1025
- * This operation triggers when an existing Jira issue is updated.
1026
- */
1027
- public static async OnUpdateIssue_V2(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
1028
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
1029
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
1030
- {
1031
- connectorOperation: {
1032
- tableName: JiraService.dataSourceName,
1033
- operationName: 'OnUpdateIssue_V2',
1034
- parameters: params
1035
- },
1036
- });
1037
- return result;
1038
- }
1039
-
1040
- /**
1041
- * When an issue is updated (Datacenter)
1042
- * This operation triggers when an existing Jira issue is updated.
1043
- */
1044
- public static async OnUpdateIssue_Datacenter(projectKey: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
1045
- const params: { projectKey: string, X_Request_Jirainstance?: string } = { projectKey, X_Request_Jirainstance };
1046
- const result = await JiraService.client.executeAsync<{ projectKey: string, X_Request_Jirainstance?: string }, FullIssue[]>(
1047
- {
1048
- connectorOperation: {
1049
- tableName: JiraService.dataSourceName,
1050
- operationName: 'OnUpdateIssue_Datacenter',
1051
- parameters: params
1052
- },
1053
- });
1054
- return result;
1055
- }
1056
-
1057
- /**
1058
- * When a new issue is returned by a JQL query
1059
- * This operation triggers when a new issue appears in the latest 100 results of a JQL query.
1060
- */
1061
- public static async OnNewIssueJQL(jql: string): Promise<IOperationResult<FullIssue[]>> {
1062
- const params: { jql: string } = { jql };
1063
- const result = await JiraService.client.executeAsync<{ jql: string }, FullIssue[]>(
1064
- {
1065
- connectorOperation: {
1066
- tableName: JiraService.dataSourceName,
1067
- operationName: 'OnNewIssueJQL',
1068
- parameters: params
1069
- },
1070
- });
1071
- return result;
1072
- }
1073
-
1074
- /**
1075
- * When a new issue is returned by a JQL query (V2)
1076
- * This operation triggers when a new issue appears in the latest 100 results of a JQL query.
1077
- */
1078
- public static async OnNewIssueJQL_V2(jql: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
1079
- const params: { jql: string, X_Request_Jirainstance?: string } = { jql, X_Request_Jirainstance };
1080
- const result = await JiraService.client.executeAsync<{ jql: string, X_Request_Jirainstance?: string }, FullIssue[]>(
1081
- {
1082
- connectorOperation: {
1083
- tableName: JiraService.dataSourceName,
1084
- operationName: 'OnNewIssueJQL_V2',
1085
- parameters: params
1086
- },
1087
- });
1088
- return result;
1089
- }
1090
-
1091
- /**
1092
- * When a new issue is returned by a JQL query (Datacenter)
1093
- * This operation triggers when a new issue appears in the latest 100 results of a JQL query.
1094
- */
1095
- public static async OnNewIssueJQL_Datacenter(jql: string, X_Request_Jirainstance?: string): Promise<IOperationResult<FullIssue[]>> {
1096
- const params: { jql: string, X_Request_Jirainstance?: string } = { jql, X_Request_Jirainstance };
1097
- const result = await JiraService.client.executeAsync<{ jql: string, X_Request_Jirainstance?: string }, FullIssue[]>(
1098
- {
1099
- connectorOperation: {
1100
- tableName: JiraService.dataSourceName,
1101
- operationName: 'OnNewIssueJQL_Datacenter',
1102
- parameters: params
1103
- },
1104
- });
1105
- return result;
1106
- }
1107
-
1108
- /**
1109
- * Jira MCP Server
1110
- * Jira MCP Server
1111
- */
1112
- public static async mcp_JiraIssueManagement(queryRequest?: MCPQueryRequest, sessionId?: string): Promise<IOperationResult<MCPQueryResponse>> {
1113
- const params: { queryRequest?: MCPQueryRequest, sessionId?: string } = { queryRequest, sessionId };
1114
- const result = await JiraService.client.executeAsync<{ queryRequest?: MCPQueryRequest, sessionId?: string }, MCPQueryResponse>(
1115
- {
1116
- connectorOperation: {
1117
- tableName: JiraService.dataSourceName,
1118
- operationName: 'mcp_JiraIssueManagement',
1119
- parameters: params
1120
- },
1121
- });
1122
- return result;
1123
- }
1124
- }