codeapp-js 0.3.0 → 1.0.1

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 (158) hide show
  1. package/AI/codeapp.agent.md +105 -0
  2. package/AI/skills/connections/SKILL.md +47 -0
  3. package/AI/skills/dataverse/SKILL.md +99 -0
  4. package/AI/skills/environment-variables/SKILL.md +89 -0
  5. package/AI/skills/frontend-design/SKILL.md +34 -0
  6. package/AI/skills/jira/SKILL.md +81 -0
  7. package/AI/skills/office365-groups/SKILL.md +61 -0
  8. package/AI/skills/office365-outlook/SKILL.md +52 -0
  9. package/AI/skills/office365-users/SKILL.md +78 -0
  10. package/AI/skills/sharepoint/SKILL.md +77 -0
  11. package/AI/skills/sql/SKILL.md +85 -0
  12. package/AI/skills/start/SKILL.md +46 -0
  13. package/AI/skills/teams/SKILL.md +55 -0
  14. package/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
  15. package/codeApp/dist/codeapp.js +95 -1792
  16. package/codeApp/dist/connectors/azureKeyvault.js +459 -0
  17. package/codeApp/dist/connectors/jira.js +1247 -0
  18. package/codeApp/dist/connectors/office365groups.js +642 -0
  19. package/codeApp/dist/connectors/office365users.js +513 -0
  20. package/codeApp/dist/connectors/outlook.js +1393 -0
  21. package/codeApp/dist/connectors/sharepoint.js +466 -0
  22. package/codeApp/dist/connectors/sql.js +149 -0
  23. package/codeApp/dist/connectors/teams.js +280 -0
  24. package/codeApp/dist/power-apps-data.js +16 -2
  25. package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
  26. package/examples/{kanban → apps/kanban}/dist/environmentVar.js +55 -55
  27. package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
  28. package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
  29. package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
  30. package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
  31. package/examples/apps/kanban/dist/office365users.js +451 -0
  32. package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
  33. package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
  34. package/examples/{kanban → apps/kanban}/dist/sharepoint.js +435 -339
  35. package/examples/{kanban → apps/kanban}/power.config.json +35 -35
  36. package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
  37. package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
  38. package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
  39. package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
  40. package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
  41. package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
  42. package/examples/{todo/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
  43. package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
  44. package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
  45. package/examples/{outlook Demo2 → apps/solution explorer}/dist/codeapp.js +9 -245
  46. package/examples/apps/solution explorer/dist/index.html +80 -0
  47. package/examples/apps/solution explorer/dist/index.js +735 -0
  48. package/examples/apps/solution explorer/dist/styles.css +571 -0
  49. package/examples/apps/solution explorer/power.config.json +151 -0
  50. package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
  51. package/examples/{todo → apps/todo}/dist/index.html +75 -75
  52. package/examples/{todo → apps/todo}/dist/index.js +8 -8
  53. package/examples/{kanban → apps/todo}/dist/power-apps-data.js +2953 -2953
  54. package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
  55. package/examples/{todo → apps/todo}/dist/styles.css +691 -691
  56. package/examples/{todo → apps/todo}/power.config.json +34 -34
  57. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
  58. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
  59. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  60. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
  61. package/examples/combined demo/dist/codeapp.js +394 -1098
  62. package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → combined demo/dist/icon-512.png} +0 -0
  63. package/examples/combined demo/dist/index.html +29 -511
  64. package/examples/combined demo/dist/index.js +490 -470
  65. package/examples/combined demo/dist/office365users.js +513 -0
  66. package/examples/combined demo/dist/outlook.js +1393 -0
  67. package/examples/combined demo/dist/power-apps-data.js +3079 -3006
  68. package/examples/combined demo/dist/styles.css +483 -0
  69. package/examples/combined demo/power.config.json +33 -42
  70. package/examples/combined demo/src/generated/index.ts +12 -14
  71. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
  72. package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
  73. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
  74. package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
  75. package/examples/dataverse Demo/dist/codeapp.js +394 -1085
  76. package/examples/dataverse Demo/dist/icon-512.png +0 -0
  77. package/examples/dataverse Demo/dist/index.html +146 -54
  78. package/examples/dataverse Demo/dist/index.js +693 -83
  79. package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
  80. package/examples/dataverse Demo/dist/styles.css +528 -0
  81. package/examples/dataverse Demo/power.config.json +41 -35
  82. package/examples/dataverse Demo/readme.md +79 -79
  83. package/examples/groups Demo/dist/codeapp.js +394 -1085
  84. package/examples/groups Demo/dist/icon-512.png +0 -0
  85. package/examples/groups Demo/dist/index.html +21 -25
  86. package/examples/groups Demo/dist/index.js +304 -113
  87. package/examples/groups Demo/dist/office365groups.js +642 -0
  88. package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
  89. package/examples/groups Demo/dist/styles.css +509 -0
  90. package/examples/groups Demo/power.config.json +25 -25
  91. package/examples/myProfile/dist/codeapp.js +398 -0
  92. package/examples/myProfile/dist/index.html +21 -184
  93. package/examples/myProfile/dist/index.js +324 -141
  94. package/examples/myProfile/dist/office365users.js +517 -169
  95. package/examples/myProfile/dist/power-apps-data.js +3080 -2953
  96. package/examples/myProfile/dist/styles.css +458 -0
  97. package/examples/myProfile/power.config.json +24 -23
  98. package/examples/outlook Demo/dist/codeapp.js +394 -1085
  99. package/examples/outlook Demo/dist/index.html +150 -35
  100. package/examples/outlook Demo/dist/index.js +516 -170
  101. package/examples/outlook Demo/dist/outlook.js +1393 -121
  102. package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
  103. package/examples/outlook Demo/dist/styles.css +408 -84
  104. package/examples/outlook Demo/power.config.json +24 -23
  105. package/examples/outlook Demo/readme.md +92 -82
  106. package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
  107. package/examples/sharePoint Demo/dist/icon-512.png +0 -0
  108. package/examples/sharePoint Demo/dist/index.html +22 -255
  109. package/examples/sharePoint Demo/dist/index.js +899 -262
  110. package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
  111. package/{dev files → examples/sharePoint Demo/dist}/sharepoint.js +239 -112
  112. package/examples/sharePoint Demo/dist/styles.css +587 -0
  113. package/examples/sharePoint Demo/power.config.json +23 -22
  114. package/package.json +1 -1
  115. package/readme.md +465 -76
  116. package/.vscode/settings.json +0 -6
  117. package/dev files/customConnector.js +0 -98
  118. package/dev files/dataverse.js +0 -120
  119. package/dev files/environmentVar.js +0 -55
  120. package/dev files/office365groups.js +0 -65
  121. package/dev files/office365users.js +0 -169
  122. package/dev files/outlook.js +0 -330
  123. package/dev files/power-apps-data.js +0 -2952
  124. package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
  125. package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
  126. package/examples/kanban/agent/decision-log.md +0 -9
  127. package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
  128. package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
  129. package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
  130. package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
  131. package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
  132. package/examples/kanban/dist/office365users.js +0 -169
  133. package/examples/kanban/src/generated/index.ts +0 -14
  134. package/examples/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  135. package/examples/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  136. package/examples/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  137. package/examples/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  138. package/examples/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  139. package/examples/kanban/src/generated/services/Office365UsersService.ts +0 -358
  140. package/examples/outlook Demo2/agent/decision-log.md +0 -7
  141. package/examples/outlook Demo2/dist/index.html +0 -98
  142. package/examples/outlook Demo2/dist/index.js +0 -272
  143. package/examples/outlook Demo2/dist/styles.css +0 -639
  144. package/examples/outlook Demo2/power.config.json +0 -23
  145. package/examples/planning Poker/.vscode/settings.json +0 -5
  146. package/examples/sharePoint Demo/agent/decision-log.md +0 -17
  147. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
  148. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
  149. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
  150. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
  151. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
  152. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
  153. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
  154. /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
  155. /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
  156. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
  157. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
  158. /package/examples/{todo → apps/todo}/dist/icon192.png +0 -0
@@ -0,0 +1,1124 @@
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
+ }