@resolution/jira-api-client 0.1.0 → 0.1.2

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 (201) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +10 -3
  3. package/.eslintrc.js +0 -3
  4. package/config/api-typescript-generator.config.ts +0 -91
  5. package/config/compare-schemas.ts +0 -307
  6. package/src/index.ts +0 -47
  7. package/src/openapi/platform/base-jira-platform-api-client.ts +0 -2298
  8. package/src/openapi/platform/core/common-http-client.ts +0 -723
  9. package/src/openapi/platform/core/common-http-service.ts +0 -22
  10. package/src/openapi/platform/core/common-validation-schema-storage.ts +0 -105
  11. package/src/openapi/platform/models/announcement-banner.ts +0 -59
  12. package/src/openapi/platform/models/app-data-policies.ts +0 -79
  13. package/src/openapi/platform/models/app-migration.ts +0 -172
  14. package/src/openapi/platform/models/app-properties.ts +0 -32
  15. package/src/openapi/platform/models/audit-records.ts +0 -140
  16. package/src/openapi/platform/models/avatars.ts +0 -48
  17. package/src/openapi/platform/models/classification-levels.ts +0 -58
  18. package/src/openapi/platform/models/common.ts +0 -2669
  19. package/src/openapi/platform/models/dashboards.ts +0 -849
  20. package/src/openapi/platform/models/dynamic-modules.ts +0 -121
  21. package/src/openapi/platform/models/filter-sharing.ts +0 -103
  22. package/src/openapi/platform/models/filters.ts +0 -319
  23. package/src/openapi/platform/models/group-and-user-picker.ts +0 -85
  24. package/src/openapi/platform/models/groups.ts +0 -247
  25. package/src/openapi/platform/models/issue-attachments.ts +0 -290
  26. package/src/openapi/platform/models/issue-comment-properties.ts +0 -27
  27. package/src/openapi/platform/models/issue-comments.ts +0 -91
  28. package/src/openapi/platform/models/issue-custom-field-configuration-apps.ts +0 -96
  29. package/src/openapi/platform/models/issue-custom-field-contexts.ts +0 -1072
  30. package/src/openapi/platform/models/issue-custom-field-options-apps.ts +0 -273
  31. package/src/openapi/platform/models/issue-custom-field-options.ts +0 -283
  32. package/src/openapi/platform/models/issue-custom-field-values-apps.ts +0 -118
  33. package/src/openapi/platform/models/issue-field-configurations.ts +0 -435
  34. package/src/openapi/platform/models/issue-fields.ts +0 -392
  35. package/src/openapi/platform/models/issue-link-types.ts +0 -28
  36. package/src/openapi/platform/models/issue-links.ts +0 -185
  37. package/src/openapi/platform/models/issue-notification-schemes.ts +0 -370
  38. package/src/openapi/platform/models/issue-priorities.ts +0 -196
  39. package/src/openapi/platform/models/issue-properties.ts +0 -259
  40. package/src/openapi/platform/models/issue-remote-links.ts +0 -207
  41. package/src/openapi/platform/models/issue-resolutions.ts +0 -180
  42. package/src/openapi/platform/models/issue-search.ts +0 -367
  43. package/src/openapi/platform/models/issue-security-level.ts +0 -76
  44. package/src/openapi/platform/models/issue-security-schemes.ts +0 -496
  45. package/src/openapi/platform/models/issue-type-schemes.ts +0 -290
  46. package/src/openapi/platform/models/issue-type-screen-schemes.ts +0 -286
  47. package/src/openapi/platform/models/issue-types.ts +0 -66
  48. package/src/openapi/platform/models/issue-votes.ts +0 -38
  49. package/src/openapi/platform/models/issue-watchers.ts +0 -67
  50. package/src/openapi/platform/models/issue-worklogs.ts +0 -190
  51. package/src/openapi/platform/models/issues.ts +0 -1268
  52. package/src/openapi/platform/models/jira-expressions.ts +0 -578
  53. package/src/openapi/platform/models/jira-settings.ts +0 -118
  54. package/src/openapi/platform/models/jql-functions-apps.ts +0 -128
  55. package/src/openapi/platform/models/jql.ts +0 -783
  56. package/src/openapi/platform/models/labels.ts +0 -42
  57. package/src/openapi/platform/models/license-metrics.ts +0 -68
  58. package/src/openapi/platform/models/myself.ts +0 -29
  59. package/src/openapi/platform/models/permission-schemes.ts +0 -89
  60. package/src/openapi/platform/models/permissions.ts +0 -308
  61. package/src/openapi/platform/models/priority-schemes.ts +0 -527
  62. package/src/openapi/platform/models/project-avatars.ts +0 -29
  63. package/src/openapi/platform/models/project-classification-levels.ts +0 -24
  64. package/src/openapi/platform/models/project-components.ts +0 -231
  65. package/src/openapi/platform/models/project-email.ts +0 -27
  66. package/src/openapi/platform/models/project-features.ts +0 -78
  67. package/src/openapi/platform/models/project-permission-schemes.ts +0 -43
  68. package/src/openapi/platform/models/project-role-actors.ts +0 -107
  69. package/src/openapi/platform/models/project-roles.ts +0 -76
  70. package/src/openapi/platform/models/project-types.ts +0 -36
  71. package/src/openapi/platform/models/project-versions.ts +0 -216
  72. package/src/openapi/platform/models/projects.ts +0 -429
  73. package/src/openapi/platform/models/screen-schemes.ts +0 -192
  74. package/src/openapi/platform/models/screen-tab-fields.ts +0 -45
  75. package/src/openapi/platform/models/screens.ts +0 -171
  76. package/src/openapi/platform/models/server-info.ts +0 -100
  77. package/src/openapi/platform/models/service-registry.ts +0 -68
  78. package/src/openapi/platform/models/status.ts +0 -229
  79. package/src/openapi/platform/models/time-tracking.ts +0 -38
  80. package/src/openapi/platform/models/ui-modifications-apps.ts +0 -229
  81. package/src/openapi/platform/models/user-search.ts +0 -69
  82. package/src/openapi/platform/models/users.ts +0 -121
  83. package/src/openapi/platform/models/webhooks.ts +0 -307
  84. package/src/openapi/platform/models/workflow-scheme-drafts.ts +0 -58
  85. package/src/openapi/platform/models/workflow-scheme-project-associations.ts +0 -68
  86. package/src/openapi/platform/models/workflow-schemes.ts +0 -545
  87. package/src/openapi/platform/models/workflow-transition-properties.ts +0 -33
  88. package/src/openapi/platform/models/workflow-transition-rules.ts +0 -261
  89. package/src/openapi/platform/models/workflows.ts +0 -1943
  90. package/src/openapi/platform/services/announcement-banner-service.ts +0 -142
  91. package/src/openapi/platform/services/app-data-policies-service.ts +0 -136
  92. package/src/openapi/platform/services/app-migration-service.ts +0 -289
  93. package/src/openapi/platform/services/app-properties-service.ts +0 -441
  94. package/src/openapi/platform/services/application-roles-service.ts +0 -247
  95. package/src/openapi/platform/services/audit-records-service.ts +0 -164
  96. package/src/openapi/platform/services/avatars-service.ts +0 -769
  97. package/src/openapi/platform/services/classification-levels-service.ts +0 -131
  98. package/src/openapi/platform/services/dashboards-service.ts +0 -1721
  99. package/src/openapi/platform/services/dynamic-modules-service.ts +0 -127
  100. package/src/openapi/platform/services/filter-sharing-service.ts +0 -687
  101. package/src/openapi/platform/services/filters-service.ts +0 -1901
  102. package/src/openapi/platform/services/group-and-user-picker-service.ts +0 -224
  103. package/src/openapi/platform/services/groups-service.ts +0 -751
  104. package/src/openapi/platform/services/issue-attachments-service.ts +0 -900
  105. package/src/openapi/platform/services/issue-comment-properties-service.ts +0 -324
  106. package/src/openapi/platform/services/issue-comments-service.ts +0 -812
  107. package/src/openapi/platform/services/issue-custom-field-configuration-apps-service.ts +0 -277
  108. package/src/openapi/platform/services/issue-custom-field-contexts-service.ts +0 -1339
  109. package/src/openapi/platform/services/issue-custom-field-options-apps-service.ts +0 -994
  110. package/src/openapi/platform/services/issue-custom-field-options-service.ts +0 -651
  111. package/src/openapi/platform/services/issue-custom-field-values-apps-service.ts +0 -201
  112. package/src/openapi/platform/services/issue-field-configurations-service.ts +0 -1294
  113. package/src/openapi/platform/services/issue-fields-service.ts +0 -837
  114. package/src/openapi/platform/services/issue-link-types-service.ts +0 -360
  115. package/src/openapi/platform/services/issue-links-service.ts +0 -345
  116. package/src/openapi/platform/services/issue-navigator-settings-service.ts +0 -119
  117. package/src/openapi/platform/services/issue-notification-schemes-service.ts +0 -1209
  118. package/src/openapi/platform/services/issue-priorities-service.ts +0 -575
  119. package/src/openapi/platform/services/issue-properties-service.ts +0 -606
  120. package/src/openapi/platform/services/issue-remote-links-service.ts +0 -597
  121. package/src/openapi/platform/services/issue-resolutions-service.ts +0 -534
  122. package/src/openapi/platform/services/issue-search-service.ts +0 -1139
  123. package/src/openapi/platform/services/issue-security-level-service.ts +0 -250
  124. package/src/openapi/platform/services/issue-security-schemes-service.ts +0 -1240
  125. package/src/openapi/platform/services/issue-type-properties-service.ts +0 -325
  126. package/src/openapi/platform/services/issue-type-schemes-service.ts +0 -940
  127. package/src/openapi/platform/services/issue-type-screen-schemes-service.ts +0 -994
  128. package/src/openapi/platform/services/issue-types-service.ts +0 -679
  129. package/src/openapi/platform/services/issue-votes-service.ts +0 -221
  130. package/src/openapi/platform/services/issue-watchers-service.ts +0 -331
  131. package/src/openapi/platform/services/issue-worklog-properties-service.ts +0 -348
  132. package/src/openapi/platform/services/issue-worklogs-service.ts +0 -1089
  133. package/src/openapi/platform/services/issues-service.ts +0 -3346
  134. package/src/openapi/platform/services/jira-expressions-service.ts +0 -407
  135. package/src/openapi/platform/services/jira-settings-service.ts +0 -415
  136. package/src/openapi/platform/services/jql-functions-apps-service.ts +0 -219
  137. package/src/openapi/platform/services/jql-service.ts +0 -896
  138. package/src/openapi/platform/services/labels-service.ts +0 -89
  139. package/src/openapi/platform/services/license-metrics-service.ts +0 -216
  140. package/src/openapi/platform/services/myself-service.ts +0 -520
  141. package/src/openapi/platform/services/permission-schemes-service.ts +0 -926
  142. package/src/openapi/platform/services/permissions-service.ts +0 -407
  143. package/src/openapi/platform/services/priority-schemes-service.ts +0 -1001
  144. package/src/openapi/platform/services/project-avatars-service.ts +0 -341
  145. package/src/openapi/platform/services/project-categories-service.ts +0 -318
  146. package/src/openapi/platform/services/project-classification-levels-service.ts +0 -232
  147. package/src/openapi/platform/services/project-components-service.ts +0 -1332
  148. package/src/openapi/platform/services/project-email-service.ts +0 -161
  149. package/src/openapi/platform/services/project-features-service.ts +0 -207
  150. package/src/openapi/platform/services/project-key-and-name-validation-service.ts +0 -200
  151. package/src/openapi/platform/services/project-permission-schemes-service.ts +0 -384
  152. package/src/openapi/platform/services/project-properties-service.ts +0 -320
  153. package/src/openapi/platform/services/project-role-actors-service.ts +0 -627
  154. package/src/openapi/platform/services/project-roles-service.ts +0 -867
  155. package/src/openapi/platform/services/project-types-service.ts +0 -297
  156. package/src/openapi/platform/services/project-versions-service.ts +0 -1287
  157. package/src/openapi/platform/services/projects-service.ts +0 -2196
  158. package/src/openapi/platform/services/screen-schemes-service.ts +0 -334
  159. package/src/openapi/platform/services/screen-tab-fields-service.ts +0 -276
  160. package/src/openapi/platform/services/screen-tabs-service.ts +0 -421
  161. package/src/openapi/platform/services/screens-service.ts +0 -528
  162. package/src/openapi/platform/services/server-info-service.ts +0 -88
  163. package/src/openapi/platform/services/service-registry-service.ts +0 -89
  164. package/src/openapi/platform/services/status-service.ts +0 -498
  165. package/src/openapi/platform/services/tasks-service.ts +0 -159
  166. package/src/openapi/platform/services/time-tracking-service.ts +0 -386
  167. package/src/openapi/platform/services/ui-modifications-apps-service.ts +0 -403
  168. package/src/openapi/platform/services/user-properties-service.ts +0 -413
  169. package/src/openapi/platform/services/user-search-service.ts +0 -1214
  170. package/src/openapi/platform/services/users-service.ts +0 -1108
  171. package/src/openapi/platform/services/webhooks-service.ts +0 -458
  172. package/src/openapi/platform/services/workflow-scheme-drafts-service.ts +0 -1313
  173. package/src/openapi/platform/services/workflow-scheme-project-associations-service.ts +0 -189
  174. package/src/openapi/platform/services/workflow-schemes-service.ts +0 -1617
  175. package/src/openapi/platform/services/workflow-status-categories-service.ts +0 -151
  176. package/src/openapi/platform/services/workflow-statuses-service.ts +0 -176
  177. package/src/openapi/platform/services/workflow-transition-properties-service.ts +0 -388
  178. package/src/openapi/platform/services/workflow-transition-rules-service.ts +0 -485
  179. package/src/openapi/platform/services/workflows-service.ts +0 -3477
  180. package/src/openapi/platform/validation-schema-storage.ts +0 -186
  181. package/src/openapi/software/base-jira-software-api-client.ts +0 -447
  182. package/src/openapi/software/core/common-http-client.ts +0 -723
  183. package/src/openapi/software/core/common-http-service.ts +0 -22
  184. package/src/openapi/software/core/common-validation-schema-storage.ts +0 -105
  185. package/src/openapi/software/models/board.ts +0 -918
  186. package/src/openapi/software/services/backlog-service.ts +0 -160
  187. package/src/openapi/software/services/board-service.ts +0 -4189
  188. package/src/openapi/software/services/builds-service.ts +0 -571
  189. package/src/openapi/software/services/deployments-service.ts +0 -403
  190. package/src/openapi/software/services/dev-ops-components-service.ts +0 -371
  191. package/src/openapi/software/services/development-information-service.ts +0 -2357
  192. package/src/openapi/software/services/epic-service.ts +0 -854
  193. package/src/openapi/software/services/feature-flags-service.ts +0 -303
  194. package/src/openapi/software/services/issue-service.ts +0 -529
  195. package/src/openapi/software/services/operations-service.ts +0 -741
  196. package/src/openapi/software/services/remote-links-service.ts +0 -653
  197. package/src/openapi/software/services/security-information-service.ts +0 -495
  198. package/src/openapi/software/services/sprint-service.ts +0 -969
  199. package/src/openapi/software/validation-schema-storage.ts +0 -186
  200. package/tsconfig.build.json +0 -7
  201. package/tsconfig.json +0 -4
@@ -1,415 +0,0 @@
1
- // DO NOT EDIT!
2
- // This file is generated by "api-typescript-generator".
3
- // To update this file run "yarn build:openapi".
4
- import { z } from "zod";
5
-
6
- import * as commonHttpClient from "../core/common-http-client";
7
- import { CommonHttpService } from "../core/common-http-service";
8
- import {
9
- type ApplicationProperty,
10
- type Configuration,
11
- registerJiraSettingsValidationSchemas,
12
- type SimpleApplicationPropertyBean,
13
- } from "../models/jira-settings";
14
- import { validationSchemaStorage } from "../validation-schema-storage";
15
- /**
16
- * This resource represents various settings in Jira. Use it to get and update
17
- * Jira settings and properties.
18
- */
19
- export class JiraSettingsService extends CommonHttpService {
20
- /**
21
- * Returns the application properties that are accessible on the *Advanced
22
- * Settings* page. To navigate to the *Advanced Settings* page in Jira, choose the
23
- * Jira icon > **Jira settings** > **System**, **General Configuration** and then
24
- * click **Advanced Settings** (in the upper right).
25
- *
26
- * **[Permissions](#permissions) required:** *Administer Jira* [global
27
- * permission](https://confluence.atlassian.com/x/x4dKLg).
28
- *
29
- * @returns Returned if the request is successful.
30
- *
31
- * example: [
32
- * {
33
- * "defaultValue": "",
34
- * "desc": "Jira home directory",
35
- * "id": "jira.home",
36
- * "key": "jira.home",
37
- * "name": "jira.home",
38
- * "type": "string",
39
- * "value": "/var/jira/jira-home"
40
- * },
41
- * {
42
- * "defaultValue": "CLONE -",
43
- * "id": "jira.clone.prefix",
44
- * "key": "jira.clone.prefix",
45
- * "name": "The prefix added to the Summary field of cloned issues",
46
- * "type": "string",
47
- * "value": "CLONE -"
48
- * }
49
- * ]
50
- * @path {GET} /rest/api/3/application-properties/advanced-settings
51
- * @scopes-current manage:jira-configuration
52
- * @scopes-beta read:instance-configuration:jira
53
- */
54
- getAdvancedSettings(): Promise<ApplicationProperty[]> {
55
- return this.getClientInstance()
56
- .request({
57
- path: "/rest/api/3/application-properties/advanced-settings",
58
- method: "GET",
59
- })
60
- .then(
61
- this.getClientInstance().responseHandler({
62
- 200: {
63
- "application/json": "json",
64
- },
65
- }),
66
- )
67
- .then(
68
- commonHttpClient.castResponse<{
69
- status: 200;
70
- mediaType: "application/json";
71
- body: ApplicationProperty[];
72
- }>(),
73
- )
74
- .then(
75
- validationSchemaStorage.validator(
76
- "JiraSettingsService.getAdvancedSettings.response",
77
- ),
78
- )
79
- .then(commonHttpClient.getBody);
80
- }
81
- /**
82
- * Returns all application properties or an application property.
83
- *
84
- * If you specify a value for the `key` parameter, then an application property is
85
- * returned as an object (not in an array). Otherwise, an array of all editable
86
- * application properties is returned. See [Set application
87
- * property](#api-rest-api-3-application-properties-id-put) for descriptions of
88
- * editable properties.
89
- *
90
- * **[Permissions](#permissions) required:** *Administer Jira* [global
91
- * permission](https://confluence.atlassian.com/x/x4dKLg).
92
- *
93
- * @returns Returned if the request is successful.
94
- *
95
- * example: [
96
- * {
97
- * "defaultValue": "",
98
- * "desc": "Jira home directory",
99
- * "id": "jira.home",
100
- * "key": "jira.home",
101
- * "name": "jira.home",
102
- * "type": "string",
103
- * "value": "/var/jira/jira-home"
104
- * },
105
- * {
106
- * "defaultValue": "CLONE -",
107
- * "id": "jira.clone.prefix",
108
- * "key": "jira.clone.prefix",
109
- * "name": "The prefix added to the Summary field of cloned issues",
110
- * "type": "string",
111
- * "value": "CLONE -"
112
- * }
113
- * ]
114
- * @path {GET} /rest/api/3/application-properties
115
- * @scopes-current manage:jira-configuration
116
- * @scopes-beta read:instance-configuration:jira
117
- */
118
- getApplicationProperty({
119
- key,
120
- permissionLevel,
121
- keyFilter,
122
- }: {
123
- /** The key of the application property. */
124
- key?: string;
125
- /** The permission level of all items being returned in the list. */
126
- permissionLevel?: string;
127
- /**
128
- * When a `key` isn't provided, this filters the list of results by the
129
- * application property `key` using a regular expression. For example, using
130
- * `jira.lf.*` will return all application properties with keys that start with
131
- * *jira.lf.*.
132
- */
133
- keyFilter?: string;
134
- }): Promise<ApplicationProperty[]> {
135
- return this.getClientInstance()
136
- .request({
137
- path: "/rest/api/3/application-properties",
138
- method: "GET",
139
- query: {
140
- key,
141
- permissionLevel,
142
- keyFilter,
143
- },
144
- })
145
- .then(
146
- this.getClientInstance().responseHandler({
147
- 200: {
148
- "application/json": "json",
149
- },
150
- }),
151
- )
152
- .then(
153
- commonHttpClient.castResponse<{
154
- status: 200;
155
- mediaType: "application/json";
156
- body: ApplicationProperty[];
157
- }>(),
158
- )
159
- .then(
160
- validationSchemaStorage.validator(
161
- "JiraSettingsService.getApplicationProperty.response",
162
- ),
163
- )
164
- .then(commonHttpClient.getBody);
165
- }
166
- /**
167
- * Returns the [global settings](https://confluence.atlassian.com/x/qYXKM) in
168
- * Jira. These settings determine whether optional features (for example,
169
- * subtasks, time tracking, and others) are enabled. If time tracking is enabled,
170
- * this operation also returns the time tracking configuration.
171
- *
172
- * **[Permissions](#permissions) required:** Permission to access Jira.
173
- *
174
- * @returns Returned if the request is successful.
175
- *
176
- * example: {
177
- * "attachmentsEnabled": true,
178
- * "issueLinkingEnabled": true,
179
- * "subTasksEnabled": false,
180
- * "timeTrackingConfiguration": {
181
- * "defaultUnit": "day",
182
- * "timeFormat": "pretty",
183
- * "workingDaysPerWeek": 5,
184
- * "workingHoursPerDay": 8
185
- * },
186
- * "timeTrackingEnabled": true,
187
- * "unassignedIssuesAllowed": false,
188
- * "votingEnabled": true,
189
- * "watchingEnabled": true
190
- * }
191
- * @path {GET} /rest/api/3/configuration
192
- * @scopes-current read:jira-user
193
- * @scopes-beta read:instance-configuration:jira, read:issue.time-tracking:jira
194
- */
195
- getConfiguration(): Promise<Configuration> {
196
- return this.getClientInstance()
197
- .request({
198
- path: "/rest/api/3/configuration",
199
- method: "GET",
200
- })
201
- .then(
202
- this.getClientInstance().responseHandler({
203
- 200: {
204
- "application/json": "json",
205
- },
206
- }),
207
- )
208
- .then(
209
- commonHttpClient.castResponse<{
210
- status: 200;
211
- mediaType: "application/json";
212
- body: Configuration;
213
- }>(),
214
- )
215
- .then(
216
- validationSchemaStorage.validator(
217
- "JiraSettingsService.getConfiguration.response",
218
- ),
219
- )
220
- .then(commonHttpClient.getBody);
221
- }
222
- /**
223
- * Changes the value of an application property. For example, you can change the
224
- * value of the `jira.clone.prefix` from its default value of *CLONE -* to *Clone
225
- * -* if you prefer sentence case capitalization. Editable properties are
226
- * described below along with their default values.
227
- *
228
- * #### Advanced settings ####
229
- *
230
- * The advanced settings below are also accessible in
231
- * [Jira](https://confluence.atlassian.com/x/vYXKM).
232
- *
233
- * | Key | Description | Default value |
234
- * | -- | -- | -- |
235
- * | `jira.clone.prefix` | The string of text prefixed to the title of a cloned
236
- * issue. | `CLONE -` |
237
- * | `jira.date.picker.java.format` | The date format for the Java (server-side)
238
- * generated dates. This must be the same as the
239
- * `jira.date.picker.javascript.format` format setting. | `d/MMM/yy` |
240
- * | `jira.date.picker.javascript.format` | The date format for the JavaScript
241
- * (client-side) generated dates. This must be the same as the
242
- * `jira.date.picker.java.format` format setting. | `%e/%b/%y` |
243
- * | `jira.date.time.picker.java.format` | The date format for the Java
244
- * (server-side) generated date times. This must be the same as the
245
- * `jira.date.time.picker.javascript.format` format setting. | `dd/MMM/yy h:mm a` |
246
- * | `jira.date.time.picker.javascript.format` | The date format for the
247
- * JavaScript (client-side) generated date times. This must be the same as the
248
- * `jira.date.time.picker.java.format` format setting. | `%e/%b/%y %I:%M %p` |
249
- * | `jira.issue.actions.order` | The default order of actions (such as *Comments*
250
- * or *Change history*) displayed on the issue view. | `asc` |
251
- * | `jira.view.issue.links.sort.order` | The sort order of the list of issue
252
- * links on the issue view. | `type, status, priority` |
253
- * | `jira.comment.collapsing.minimum.hidden` | The minimum number of comments
254
- * required for comment collapsing to occur. A value of `0` disables comment
255
- * collapsing. | `4` |
256
- * | `jira.newsletter.tip.delay.days` | The number of days before a prompt to sign
257
- * up to the Jira Insiders newsletter is shown. A value of `-1` disables this
258
- * feature. | `7` |
259
- *
260
- *
261
- * #### Look and feel ####
262
- *
263
- * The settings listed below adjust the [look and
264
- * feel](https://confluence.atlassian.com/x/VwCLLg).
265
- *
266
- * | Key | Description | Default value |
267
- * | -- | -- | -- |
268
- * | `jira.lf.date.time` | The [ time
269
- * format](https://docs.oracle.com/javase/6/docs/api/index.html?java/text/SimpleDateFormat.html).
270
- * | `h:mm a` |
271
- * | `jira.lf.date.day` | The [ day
272
- * format](https://docs.oracle.com/javase/6/docs/api/index.html?java/text/SimpleDateFormat.html).
273
- * | `EEEE h:mm a` |
274
- * | `jira.lf.date.complete` | The [ date and time
275
- * format](https://docs.oracle.com/javase/6/docs/api/index.html?java/text/SimpleDateFormat.html).
276
- * | `dd/MMM/yy h:mm a` |
277
- * | `jira.lf.date.dmy` | The [ date
278
- * format](https://docs.oracle.com/javase/6/docs/api/index.html?java/text/SimpleDateFormat.html).
279
- * | `dd/MMM/yy` |
280
- * | `jira.date.time.picker.use.iso8061` | When enabled, sets Monday as the first
281
- * day of the week in the date picker, as specified by the ISO8601 standard. |
282
- * `false` |
283
- * | `jira.lf.logo.url` | The URL of the logo image file. |
284
- * `/images/icon-jira-logo.png` |
285
- * | `jira.lf.logo.show.application.title` | Controls the visibility of the
286
- * application title on the sidebar. | `false` |
287
- * | `jira.lf.favicon.url` | The URL of the favicon. | `/favicon.ico` |
288
- * | `jira.lf.favicon.hires.url` | The URL of the high-resolution favicon. |
289
- * `/images/64jira.png` |
290
- * | `jira.lf.navigation.bgcolour` | The background color of the sidebar. |
291
- * `#0747A6` |
292
- * | `jira.lf.navigation.highlightcolour` | The color of the text and logo of the
293
- * sidebar. | `#DEEBFF` |
294
- * | `jira.lf.hero.button.base.bg.colour` | The background color of the hero
295
- * button. | `#3b7fc4` |
296
- * | `jira.title` | The text for the application title. The application title can
297
- * also be set in *General settings*. | `Jira` |
298
- * | `jira.option.globalsharing` | Whether filters and dashboards can be shared
299
- * with anyone signed into Jira. | `true` |
300
- * | `xflow.product.suggestions.enabled` | Whether to expose product suggestions
301
- * for other Atlassian products within Jira. | `true` |
302
- *
303
- *
304
- * #### Other settings ####
305
- *
306
- * | Key | Description | Default value |
307
- * | -- | -- | -- |
308
- * | `jira.issuenav.criteria.autoupdate` | Whether instant updates to search
309
- * criteria is active. | `true` |
310
- *
311
- *
312
- * *Note: Be careful when changing [application properties and advanced
313
- * settings](https://confluence.atlassian.com/x/vYXKM).*
314
- *
315
- * **[Permissions](#permissions) required:** *Administer Jira* [global
316
- * permission](https://confluence.atlassian.com/x/x4dKLg).
317
- *
318
- * @returns Returned if the request is successful.
319
- * @path {PUT} /rest/api/3/application-properties/{id}
320
- * @scopes-current manage:jira-configuration
321
- * @scopes-beta write:instance-configuration:jira, read:instance-configuration:jira
322
- */
323
- setApplicationProperty({
324
- id,
325
- simpleApplicationPropertyBean,
326
- }: {
327
- /** The key of the application property to update. */
328
- id: string;
329
- /**
330
- * @example {
331
- * "id": "jira.home",
332
- * "value": "/var/jira/jira-home"
333
- * }
334
- */
335
- simpleApplicationPropertyBean: SimpleApplicationPropertyBean;
336
- }): Promise<ApplicationProperty> {
337
- return this.getClientInstance()
338
- .request({
339
- path: "/rest/api/3/application-properties/{id}",
340
- method: "PUT",
341
- pathParams: {
342
- id,
343
- },
344
- headers: {
345
- "Content-Type": "application/json",
346
- },
347
- body: simpleApplicationPropertyBean,
348
- })
349
- .then(
350
- this.getClientInstance().responseHandler({
351
- 200: {
352
- "application/json": "json",
353
- },
354
- }),
355
- )
356
- .then(
357
- commonHttpClient.castResponse<{
358
- status: 200;
359
- mediaType: "application/json";
360
- body: ApplicationProperty;
361
- }>(),
362
- )
363
- .then(
364
- validationSchemaStorage.validator(
365
- "JiraSettingsService.setApplicationProperty.response",
366
- ),
367
- )
368
- .then(commonHttpClient.getBody);
369
- }
370
- static initialize() {
371
- validationSchemaStorage.registerExtensible(
372
- "JiraSettingsService.getApplicationProperty.response",
373
- z
374
- .object({
375
- status: z.literal(200),
376
- mediaType: z.literal("application/json"),
377
- body: z.array(validationSchemaStorage.lazy("ApplicationProperty")),
378
- })
379
- .describe("JiraSettingsService.getApplicationProperty.response"),
380
- );
381
- validationSchemaStorage.registerExtensible(
382
- "JiraSettingsService.setApplicationProperty.response",
383
- z
384
- .object({
385
- status: z.literal(200),
386
- mediaType: z.literal("application/json"),
387
- body: validationSchemaStorage.lazy("ApplicationProperty"),
388
- })
389
- .describe("JiraSettingsService.setApplicationProperty.response"),
390
- );
391
- validationSchemaStorage.registerExtensible(
392
- "JiraSettingsService.getAdvancedSettings.response",
393
- z
394
- .object({
395
- status: z.literal(200),
396
- mediaType: z.literal("application/json"),
397
- body: z.array(validationSchemaStorage.lazy("ApplicationProperty")),
398
- })
399
- .describe("JiraSettingsService.getAdvancedSettings.response"),
400
- );
401
- validationSchemaStorage.registerExtensible(
402
- "JiraSettingsService.getConfiguration.response",
403
- z
404
- .object({
405
- status: z.literal(200),
406
- mediaType: z.literal("application/json"),
407
- body: validationSchemaStorage.lazy("Configuration"),
408
- })
409
- .describe("JiraSettingsService.getConfiguration.response"),
410
- );
411
- validationSchemaStorage.registerOnce([
412
- registerJiraSettingsValidationSchemas,
413
- ]);
414
- }
415
- }
@@ -1,219 +0,0 @@
1
- // DO NOT EDIT!
2
- // This file is generated by "api-typescript-generator".
3
- // To update this file run "yarn build:openapi".
4
- import { z } from "zod";
5
-
6
- import * as commonHttpClient from "../core/common-http-client";
7
- import { CommonHttpService } from "../core/common-http-service";
8
- import {
9
- type JqlFunctionPrecomputationUpdateRequestBean,
10
- type PageBeanJqlFunctionPrecomputationBean,
11
- registerJqlFunctionsAppsValidationSchemas,
12
- } from "../models/jql-functions-apps";
13
- import { validationSchemaStorage } from "../validation-schema-storage";
14
- /**
15
- * This resource represents JQL function's precomputations. Precomputation is a
16
- * mapping between custom function call and JQL fragment returned by this
17
- * function. Use it to get and update precomputations.
18
- */
19
- export class JqlFunctionsAppsService extends CommonHttpService {
20
- /**
21
- * Returns the list of a function's precomputations along with information about
22
- * when they were created, updated, and last used. Each precomputation has a
23
- * `value` \- the JQL fragment to replace the custom function clause with.
24
- *
25
- * **[Permissions](#permissions) required:** This API is only accessible to apps
26
- * and apps can only inspect their own functions.
27
- *
28
- * @returns Returned if the request is successful.
29
- *
30
- * example: {
31
- * "isLast": true,
32
- * "maxResults": 100,
33
- * "startAt": 0,
34
- * "total": 1,
35
- * "values": [
36
- * {
37
- * "id": "cf75a1b0-4ac6-4bd8-8a50-29a465a96520",
38
- * "value": "issue in (TEST-1, TEST-2, TEST-3)",
39
- * "functionKey":
40
- * "ari:cloud:ecosystem::extension/00000000-1111-2222-3333-4444444/111111-2222-3333-4444-55555/static/issuesWithText",
41
- * "field": "issue",
42
- * "operator": "in",
43
- * "functionName": "issuesWithText",
44
- * "arguments": [
45
- * "Test"
46
- * ],
47
- * "created": "2023-10-14T05:25:20.000+0000",
48
- * "updated": "2023-10-14T05:25:20.000+0000",
49
- * "used": "2023-10-14T05:25:20.000+0000"
50
- * },
51
- * {
52
- * "id": "2a854f11-d0e1-4260-aea8-64a562a7062a",
53
- * "error": "Error message to be displayed to the user",
54
- * "functionKey":
55
- * "ari:cloud:ecosystem::extension/00000000-1111-2222-3333-4444444/111111-2222-3333-4444-55555/static/issuesWithText",
56
- * "field": "issue",
57
- * "operator": "=",
58
- * "functionName": "issuesWithText",
59
- * "arguments": [
60
- * "10001"
61
- * ],
62
- * "created": "2023-10-14T05:25:20.000+0000",
63
- * "updated": "2023-10-14T05:25:20.000+0000",
64
- * "used": "2023-10-14T05:25:20.000+0000"
65
- * }
66
- * ]
67
- * }
68
- * @path {GET} /rest/api/3/jql/function/computation
69
- * @scopes-current
70
- * @scopes-beta
71
- */
72
- getPrecomputations({
73
- functionKey,
74
- startAt,
75
- maxResults,
76
- orderBy,
77
- }: {
78
- /**
79
- * The function key in format:
80
- *
81
- * * Forge: `ari:cloud:ecosystem::extension/[App ID]/[Environment
82
- * ID]/static/[Function key from manifest]`
83
- * * Connect: `[App key]__[Module key]`
84
- */
85
- functionKey?: string[];
86
- /** The index of the first item to return in a page of results (page offset). */
87
- startAt?: number;
88
- /** The maximum number of items to return per page. */
89
- maxResults?: number;
90
- /**
91
- * [Order](#ordering) the results by a field:
92
- *
93
- * * `functionKey` Sorts by the functionKey.
94
- * * `used` Sorts by the used timestamp.
95
- * * `created` Sorts by the created timestamp.
96
- * * `updated` Sorts by the updated timestamp.
97
- */
98
- orderBy?: string;
99
- }): Promise<PageBeanJqlFunctionPrecomputationBean> {
100
- return this.getClientInstance()
101
- .request({
102
- path: "/rest/api/3/jql/function/computation",
103
- method: "GET",
104
- query: {
105
- functionKey,
106
- startAt,
107
- maxResults,
108
- orderBy,
109
- },
110
- })
111
- .then(
112
- this.getClientInstance().responseHandler({
113
- 200: {
114
- "application/json": "json",
115
- },
116
- }),
117
- )
118
- .then(
119
- commonHttpClient.castResponse<{
120
- status: 200;
121
- mediaType: "application/json";
122
- body: PageBeanJqlFunctionPrecomputationBean;
123
- }>(),
124
- )
125
- .then(
126
- validationSchemaStorage.validator(
127
- "JqlFunctionsAppsService.getPrecomputations.response",
128
- ),
129
- )
130
- .then(commonHttpClient.getBody);
131
- }
132
- /**
133
- * Update the precomputation value of a function created by a Forge/Connect app.
134
- *
135
- * **[Permissions](#permissions) required:** An API for apps to update their own
136
- * precomputations.
137
- *
138
- * @returns Returned if the request is successful.
139
- * @path {POST} /rest/api/3/jql/function/computation
140
- * @scopes-current
141
- * @scopes-beta
142
- */
143
- updatePrecomputations({
144
- jqlFunctionPrecomputationUpdateRequestBean,
145
- }: {
146
- /**
147
- * @example {
148
- * "values": [
149
- * {
150
- * "id": "f2ef228b-367f-4c6b-bd9d-0d0e96b5bd7b",
151
- * "value": "issue in (TEST-1, TEST-2, TEST-3)"
152
- * },
153
- * {
154
- * "error": "Error message to be displayed to the user",
155
- * "id": "2a854f11-d0e1-4260-aea8-64a562a7062a"
156
- * }
157
- * ]
158
- * }
159
- */
160
- jqlFunctionPrecomputationUpdateRequestBean: JqlFunctionPrecomputationUpdateRequestBean;
161
- }): Promise<void> {
162
- return this.getClientInstance()
163
- .request({
164
- path: "/rest/api/3/jql/function/computation",
165
- method: "POST",
166
- headers: {
167
- "Content-Type": "application/json",
168
- },
169
- body: jqlFunctionPrecomputationUpdateRequestBean,
170
- })
171
- .then(
172
- this.getClientInstance().responseHandler({
173
- 204: {
174
- "application/json": "json",
175
- },
176
- }),
177
- )
178
- .then(
179
- commonHttpClient.castResponse<{
180
- status: 204;
181
- mediaType: "application/json";
182
- body: void;
183
- }>(),
184
- )
185
- .then(
186
- validationSchemaStorage.validator(
187
- "JqlFunctionsAppsService.updatePrecomputations.response",
188
- ),
189
- )
190
- .then(commonHttpClient.getBody);
191
- }
192
- static initialize() {
193
- validationSchemaStorage.registerExtensible(
194
- "JqlFunctionsAppsService.getPrecomputations.response",
195
- z
196
- .object({
197
- status: z.literal(200),
198
- mediaType: z.literal("application/json"),
199
- body: validationSchemaStorage.lazy(
200
- "PageBeanJqlFunctionPrecomputationBean",
201
- ),
202
- })
203
- .describe("JqlFunctionsAppsService.getPrecomputations.response"),
204
- );
205
- validationSchemaStorage.registerExtensible(
206
- "JqlFunctionsAppsService.updatePrecomputations.response",
207
- z
208
- .object({
209
- status: z.literal(204),
210
- mediaType: z.literal("application/json"),
211
- body: z.unknown(),
212
- })
213
- .describe("JqlFunctionsAppsService.updatePrecomputations.response"),
214
- );
215
- validationSchemaStorage.registerOnce([
216
- registerJqlFunctionsAppsValidationSchemas,
217
- ]);
218
- }
219
- }