@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,186 +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 {
5
- z,
6
- ZodArray,
7
- ZodError,
8
- ZodIntersection,
9
- ZodLazy,
10
- ZodNever,
11
- ZodNullable,
12
- ZodObject,
13
- ZodOptional,
14
- ZodTuple,
15
- type ZodTypeAny,
16
- ZodUnion,
17
- } from "zod";
18
-
19
- import { CommonValidationSchemaStorage } from "./core/common-validation-schema-storage";
20
- export const validationSchemaStorage =
21
- new CommonValidationSchemaStorage<ZodTypeAny>({
22
- assertDataShape: (schema, data) => schema.parse(data),
23
- makeExtensible: function makeExtensible(zodSchema: ZodTypeAny): ZodTypeAny {
24
- if (zodSchema instanceof ZodObject) {
25
- let zodObject = zodSchema;
26
- const currentShape: Record<string, ZodTypeAny> = zodObject.shape;
27
- const newShape = Object.fromEntries(
28
- Object.entries(currentShape).map(([key, value]) => [
29
- key,
30
- makeExtensible(value),
31
- ]),
32
- );
33
- if (
34
- Object.entries(newShape).some(
35
- ([key, value]) => value !== currentShape[key],
36
- )
37
- ) {
38
- zodObject = zodObject.extend(newShape);
39
- }
40
- const newCatchall = makeExtensible(zodSchema._def.catchall);
41
- if (newCatchall !== zodSchema._def.catchall) {
42
- zodObject = zodObject.catchall(newCatchall);
43
- }
44
- if (!(zodObject._def.catchall instanceof ZodNever)) {
45
- return zodObject;
46
- }
47
- if (zodObject._def.unknownKeys === "passthrough") {
48
- return zodObject;
49
- }
50
- return zodObject.passthrough();
51
- } else if (zodSchema instanceof ZodOptional) {
52
- const nestedType = makeExtensible(zodSchema.unwrap());
53
- if (nestedType !== zodSchema.unwrap()) {
54
- return new ZodOptional({
55
- ...zodSchema._def,
56
- innerType: nestedType,
57
- });
58
- }
59
- } else if (zodSchema instanceof ZodNullable) {
60
- const nestedType = makeExtensible(zodSchema.unwrap());
61
- if (nestedType !== zodSchema.unwrap()) {
62
- return new ZodNullable({
63
- ...zodSchema._def,
64
- innerType: nestedType,
65
- });
66
- }
67
- } else if (zodSchema instanceof ZodArray) {
68
- const nestedType = makeExtensible(zodSchema.element);
69
- if (nestedType !== zodSchema.element) {
70
- return new ZodArray({
71
- ...zodSchema._def,
72
- type: nestedType,
73
- });
74
- }
75
- } else if (zodSchema instanceof ZodIntersection) {
76
- const left = makeExtensible(zodSchema._def.left);
77
- const right = makeExtensible(zodSchema._def.right);
78
- if (left !== zodSchema._def.left || right !== zodSchema._def.right) {
79
- return new ZodIntersection({
80
- ...zodSchema._def,
81
- left,
82
- right,
83
- });
84
- }
85
- } else if (zodSchema instanceof ZodUnion) {
86
- const newOptions = (zodSchema._def.options as ZodTypeAny[]).map(
87
- (type) => makeExtensible(type),
88
- );
89
- if (newOptions.some((type, i) => type !== zodSchema._def.options[i])) {
90
- return new ZodUnion({
91
- ...zodSchema._def,
92
- options: newOptions as [ZodTypeAny, ...ZodTypeAny[]],
93
- });
94
- }
95
- } else if (zodSchema instanceof ZodLazy) {
96
- return new ZodLazy({
97
- ...zodSchema._def,
98
- getter: () => makeExtensible(zodSchema._def.getter()),
99
- });
100
- }
101
- return zodSchema;
102
- },
103
- formatErrorMessage: function formatErrorMessage(
104
- error: Error,
105
- schema: ZodTypeAny,
106
- ) {
107
- interface ModelNameWithFieldPath {
108
- modelName: string;
109
- path: (string | number)[];
110
- }
111
- function findModelNameByPath(
112
- schema: ZodTypeAny,
113
- path: (string | number)[],
114
- ): ModelNameWithFieldPath | undefined {
115
- let result: ModelNameWithFieldPath | undefined = undefined;
116
- if (schema instanceof ZodLazy) {
117
- return findModelNameByPath(schema.schema, path) ?? result;
118
- }
119
- if (schema.description !== undefined) {
120
- result = {
121
- modelName: schema.description,
122
- path,
123
- };
124
- }
125
- if (path.length === 0) {
126
- return result;
127
- }
128
- if (schema instanceof ZodObject) {
129
- const [pathBit, ...restPath] = path;
130
- const field = schema.shape[pathBit];
131
- if (field !== undefined) {
132
- result = findModelNameByPath(field, restPath) ?? result;
133
- }
134
- const catchall = schema._def.catchall;
135
- if (catchall !== undefined) {
136
- result = findModelNameByPath(catchall, restPath) ?? result;
137
- }
138
- } else if (schema instanceof ZodArray) {
139
- const [, ...restPath] = path;
140
- result = findModelNameByPath(schema.element, restPath) ?? result;
141
- } else if (schema instanceof ZodTuple) {
142
- const [pathBit, ...restPath] = path;
143
- const element = schema.items[pathBit];
144
- if (element !== undefined) {
145
- result = findModelNameByPath(element, restPath) ?? result;
146
- }
147
- } else if (schema instanceof ZodOptional) {
148
- result = findModelNameByPath(schema.unwrap(), path) ?? result;
149
- } else if (schema instanceof ZodNullable) {
150
- result = findModelNameByPath(schema.unwrap(), path) ?? result;
151
- } else if (schema instanceof ZodIntersection) {
152
- result =
153
- findModelNameByPath(schema._def.left, path) ??
154
- findModelNameByPath(schema._def.right, path) ??
155
- result;
156
- } else if (schema instanceof ZodUnion) {
157
- result = schema.options.reduce(
158
- (acc: ModelNameWithFieldPath | undefined, option: ZodTypeAny) =>
159
- findModelNameByPath(option, path) ?? acc,
160
- result,
161
- );
162
- }
163
- return result;
164
- }
165
- function pathToString(path: (string | number)[]): string {
166
- return path
167
- .map((p, index) =>
168
- typeof p === "number" ? `[${p}]` : `${index > 0 ? "." : ""}${p}`,
169
- )
170
- .join("");
171
- }
172
- if (error instanceof ZodError) {
173
- return error.errors
174
- .map(({ message, path }) => {
175
- const info = findModelNameByPath(schema, path);
176
- const modelInfo = info
177
- ? ` at '${pathToString([info.modelName, ...info.path])}'`
178
- : "";
179
- return `${message}${path.length > 0 ? `${modelInfo}, full path: '${pathToString(path)}'.` : ""}`;
180
- })
181
- .join(" ");
182
- }
183
- return error.message;
184
- },
185
- lazyGetter: (getSchema) => z.lazy(getSchema),
186
- });
@@ -1,447 +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 * as commonHttpClient from "./core/common-http-client";
5
- import { CommonHttpService } from "./core/common-http-service";
6
- import type {
7
- IssueBean,
8
- LinkGroup,
9
- Operations,
10
- SearchResults,
11
- } from "./models/board";
12
- import { BacklogService } from "./services/backlog-service";
13
- import { BoardService } from "./services/board-service";
14
- import { BuildsService } from "./services/builds-service";
15
- import { DeploymentsService } from "./services/deployments-service";
16
- import { DevOpsComponentsService } from "./services/dev-ops-components-service";
17
- import { DevelopmentInformationService } from "./services/development-information-service";
18
- import { EpicService } from "./services/epic-service";
19
- import { FeatureFlagsService } from "./services/feature-flags-service";
20
- import { IssueService } from "./services/issue-service";
21
- import { OperationsService } from "./services/operations-service";
22
- import { RemoteLinksService } from "./services/remote-links-service";
23
- import { SecurityInformationService } from "./services/security-information-service";
24
- import { SprintService } from "./services/sprint-service";
25
- import { validationSchemaStorage } from "./validation-schema-storage";
26
- export type BaseJiraSoftwareApiClientOptions =
27
- Partial<commonHttpClient.CommonHttpClientOptions>;
28
- export class BaseJiraSoftwareApiClientError extends commonHttpClient.CommonHttpClientError {
29
- name = "BaseJiraSoftwareApiClientError";
30
- }
31
- /**
32
- * Jira Software Cloud API
33
- *
34
- * Jira Software Cloud REST API documentation
35
- *
36
- * @version 1001.0.0
37
- */
38
- export class BaseJiraSoftwareApiClient extends CommonHttpService {
39
- client = new commonHttpClient.CommonHttpClient({
40
- baseUrl: "https://your-domain.atlassian.net",
41
- binaryResponseType: "blob",
42
- errorClass: BaseJiraSoftwareApiClientError,
43
- });
44
- getClient = () => this.client;
45
- /** Apis related to the backlog */
46
- backlog = new BacklogService(this.getClient);
47
- /** Apis related to boards */
48
- board = new BoardService(this.getClient);
49
- /**
50
- * APIs related to integrating builds data with Jira Software. These APIs
51
- * are available to Atlassian Connect apps. To use these APIs you must
52
- * have the Build module see
53
- * https://developer.atlassian.com/cloud/jira/software/modules/build/
54
- * in your app's descriptor. They are also related to integrating Jira
55
- * Software Cloud with on-premises tools using
56
- * OAuth 2.0 credentials, see
57
- * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
58
- */
59
- builds = new BuildsService(this.getClient);
60
- /**
61
- * APIs related to integrating deployments data with Jira Software. These APIs
62
- * are available to Atlassian Connect apps. To use these APIs you must
63
- * have the Deployment module see
64
- * https://developer.atlassian.com/cloud/jira/software/modules/deployment/
65
- * in your app's descriptor. They are also related to integrating Jira
66
- * Software Cloud with on-premises tools using
67
- * OAuth 2.0 credentials, see
68
- * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
69
- */
70
- deployments = new DeploymentsService(this.getClient);
71
- /**
72
- * APIs related to integrating development information (commits, branches and pull
73
- * requests) with Jira. These APIs are available to Atlassian Connect apps and
74
- * on-premise integrations using OAuth. Connect apps using these APIs must have
75
- * the Development Tool module in the app descriptor, see
76
- * https://developer.atlassian.com/cloud/jira/software/modules/development-tool/.
77
- * For more details on integrating Jira Software Cloud with on-premises tools
78
- * using OAuth 2.0 credentials, see
79
- * https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/.
80
- */
81
- developmentInformation = new DevelopmentInformationService(this.getClient);
82
- /**
83
- * APIs related to integrating Dev Ops Components affected by Incident data with
84
- * Jira Software. These APIs are available to Atlassian Connect
85
- * apps. To use these APIs you must have the DevOps Component module in your app's
86
- * descriptor. Read more about Jira Software modules
87
- * [here](https://developer.atlassian.com/cloud/jira/software/about-jira-modules/).
88
- *
89
- * # Module
90
- * The DevOps Component module allows third-party providers to add devops
91
- * components through a public REST API.
92
- *
93
- * Supplied devops components information will be used by the Connection Manager
94
- * tab in Jira to allow users to associate devops components with Jira projects.
95
- * All incident and PIR information related to that devops component will be
96
- * presented in the Incidents page in Jira Software, and as a link to any issues
97
- * created via the Incidents Page.
98
- *
99
- * This module also provides actions, two will be used by Jira to let the provider
100
- * know when the devops component has been associated or disassociated with a Jira
101
- * project, and two can be used by the Provider to associate a devops component
102
- * with a Jira Issue.
103
- *
104
- * Note that the module key and name are not private and therefore should not
105
- * contain any sensitive or personally identifiable information.
106
- *
107
- * ## Example Module
108
- *
109
- * An example can also be found at
110
- * [jira-data-provider-sample-addon](https://bitbucket.org/atlassianlabs/jira-data-provider-sample-addon/src/master/),
111
- * which has an `atlassian-connect.json`.
112
- *
113
- * ```
114
- * {
115
- * "modules": {
116
- * "jiraDevOpsComponentProvider": {
117
- * "homeUrl": "https://my-operations-provider.com",
118
- * "logoUrl": "https://my-operations-provider.com/images/logo.svg",
119
- * "documentationUrl":
120
- * "https://my-operations-provider.com/docs/jira-integration",
121
- * "actions": {
122
- * "associateEntity": {
123
- * "templateUrl": "/components/associate"
124
- * },
125
- * "disassociateEntity": {
126
- * "templateUrl": "/components/disassociate"
127
- * },
128
- * "onEntityAssociated": {
129
- * "templateUrl": "/components/associate"
130
- * },
131
- * "onEntityDisassociated": {
132
- * "templateUrl": "/components/disassociate"
133
- * }
134
- * },
135
- * "name": {
136
- * "value": "My DevOps Component Provider"
137
- * },
138
- * "key": "devops-component-integration"
139
- * }
140
- * }
141
- * }
142
- * ```
143
- *
144
- * ### Properties
145
- *
146
- * | Property | type | Description
147
- *
148
- * | Required |
149
- * |------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|----------|
150
- * | key | string | A key to identify this module. Must match
151
- * `^[a-zA-Z0-9-]+$` pattern, with a max length of 100
152
- * | Yes |
153
- * | name | object (i18N) | A human readable name. This object
154
- * supports
155
- * [internationalization](https://developer.atlassian.com/cloud/jira/software/internationalization/).
156
- * | Yes |
157
- * | homeUrl | string | URL to the provider’s homepage
158
- *
159
- * | Yes |
160
- * | logoUrl | string | Optional URL to the provider’s logo, which
161
- * will be displayed in the UI
162
- * | |
163
- * | documentationUrl | string | Optional URL to documentation about the
164
- * provider’s Jira integration
165
- * | |
166
- * | actions | object | Actions the can be used by Jira to improve
167
- * the integrated experience
168
- * | Yes |
169
- *
170
- * ### Actions object
171
- *
172
- * | Property | type | Description
173
- *
174
- * | Required |
175
- * |------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
176
- * | associateEntity | object | An action defined by the provider to allow Jira to
177
- * retrieve details about operations workspaces via a post endpoint.
178
- *
179
- * | Yes |
180
- * | disassociateEntity | object | An action defined by the provider to allow Jira
181
- * to search using details about operations workspaces via a get endpoint.
182
- *
183
- * | Yes |
184
- * | onEntityAssociated | object | An action defined by the provider to allow Jira
185
- * to create a new operations container via a post endpoint.
186
- *
187
- * | |
188
- * | onEntityDisassociated | object | An action defined by the provider to allow
189
- * Jira to create a new Post-Incident Review object via a post endpoint.
190
- *
191
- * | |
192
- */
193
- devOpsComponents = new DevOpsComponentsService(this.getClient);
194
- /** Apis related to epics */
195
- epic = new EpicService(this.getClient);
196
- /**
197
- * Apis related to integrating Feature Flags with Jira Software. These apis are
198
- * only available to Atlassian Connect apps. To use these apis you must have the
199
- * Feature Flag module (see
200
- * https://developer.atlassian.com/cloud/jira/software/modules/feature-flag/) in
201
- * your app's descriptor
202
- */
203
- featureFlags = new FeatureFlagsService(this.getClient);
204
- /** Apis related to issues */
205
- issue = new IssueService(this.getClient);
206
- /**
207
- * APIs related to integrating Incident and Post-Incident Review (PIR) data with
208
- * Jira Software. These APIs are available to Atlassian Connect
209
- * apps. To use these APIs you must have the Operations module in your app's
210
- * descriptor. Read more about Jira Software modules
211
- * [here](https://developer.atlassian.com/cloud/jira/software/about-jira-modules/).
212
- *
213
- * # Module
214
- *
215
- * The Operations module allows third-party providers to add incident and PIR
216
- * information through a public REST API.
217
- *
218
- * Supplied incident information will be presented in the Incidents page in Jira
219
- * Software, and as a link to any issues created via the Incidents Page.
220
- *
221
- * This module also provides actions, one which allows Jira to provide a direct
222
- * link to the operations provider where the user can create a post-incident
223
- * review and two which allow Jira to search for relevant workspaces and devops
224
- * components.
225
- *
226
- * Note that the module key and name are not private and therefore should not
227
- * contain any sensitive or personally identifiable information.
228
- *
229
- * ## Example Module
230
- *
231
- * An example can also be found at
232
- * [jira-data-provider-sample-addon](https://bitbucket.org/atlassianlabs/jira-data-provider-sample-addon/src/master/),
233
- * which has an `atlassian-connect.json`.
234
- *
235
- * ```
236
- * {
237
- * "modules": {
238
- * "jiraOperationsInfoProvider": {
239
- * "homeUrl": "https://my-operations-provider.com",
240
- * "logoUrl": "https://my-operations-provider.com/images/logo.svg",
241
- * "documentationUrl":
242
- * "https://my-operations-provider.com/docs/jira-integration",
243
- * "actions": {
244
- * "fetchWorkspaces": {
245
- * "templateUrl": "/workspaces/list"
246
- * },
247
- * "searchContainers": {
248
- * "templateUrl": "/containers/search"
249
- * },
250
- * "createPostIncidentReview": {
251
- * "url":
252
- * "https://my-operations-provider.com/my-workspace/create-post-incident-review?affected-component={component-id}&incident={incident-id}
253
- * }
254
- * },
255
- * "name": {
256
- * "value": "My Operations Provider"
257
- * },
258
- * "key": "operations-integration"
259
- * }
260
- * }
261
- * }
262
- * ```
263
- *
264
- * ### Properties
265
- *
266
- * | Property | type | Description
267
- *
268
- * | Required |
269
- * |------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|----------|
270
- * | key | string | A key to identify this module. Must match
271
- * `^[a-zA-Z0-9-]+$` pattern, with a max length of 100
272
- * | Yes |
273
- * | name | object (i18N) | A human readable name. This object
274
- * supports
275
- * [internationalization](https://developer.atlassian.com/cloud/jira/software/internationalization/).
276
- * | Yes |
277
- * | homeUrl | string | URL to the provider’s homepage
278
- *
279
- * | Yes |
280
- * | logoUrl | string | Optional URL to the provider’s logo, which
281
- * will be displayed in the UI
282
- * | |
283
- * | documentationUrl | string | Optional URL to documentation about the
284
- * provider’s Jira integration
285
- * | |
286
- * | actions | object | Actions the can be used by Jira to improve
287
- * the integrated experience
288
- * | Yes |
289
- *
290
- * ### Actions object
291
- *
292
- * | Property | type | Description
293
- *
294
- * | Required |
295
- * |------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
296
- * | fetchWorkspaces | object | An action defined by the provider to allow Jira to
297
- * retrieve details about operations workspaces via a post endpoint.
298
- *
299
- * | Yes |
300
- * | searchContainers | object | An action defined by the provider to allow Jira
301
- * to search using details about devops components via a get endpoint.
302
- *
303
- * | Yes |
304
- * | createPostIncidentReview | object | An action defined by the provider to
305
- * allow Jira to create a new Post-Incident Review object via a post endpoint.
306
- *
307
- * | |
308
- */
309
- operations = new OperationsService(this.getClient);
310
- /**
311
- * APIs related to integrating Remote Links data with Jira Software. These APIs
312
- * are available to Atlassian Connect
313
- * apps. To use these APIs you must have the Remote Link module in your app's
314
- * descriptor. Read more about Jira Software modules
315
- * [here](https://developer.atlassian.com/cloud/jira/software/about-jira-modules/).
316
- *
317
- * # Module
318
- *
319
- * The Remote Link module allows third-party providers to add a generic link
320
- * through a public REST API and associate it with Jira issues or services.
321
- *
322
- * Supplied remote link information will be presented in the right sidebar of the
323
- * new Jira issue view under Releases.
324
- *
325
- * This module also provides actions, which allows users to perform an action on
326
- * the remote link.
327
- *
328
- * Note that the module key and name are not private and should therefore not
329
- * contain any sensitive or personally identifiable information.
330
- *
331
- * ## Example Module
332
- *
333
- * An example can also be found at
334
- * [jira-data-provider-sample-addon](https://bitbucket.org/atlassianlabs/jira-data-provider-sample-addon/src/master/),
335
- * which has an `atlassian-connect.json`.
336
- *
337
- * ```
338
- * {
339
- * "modules": {
340
- * "jiraRemoteLinkInfoProvider": {
341
- * "homeUrl": "https://my-remotelink-provider.com",
342
- * "logoUrl": "https://my-remotelink-provider.com/images/logo.svg",
343
- * "documentationUrl":
344
- * "https://my-remotelink-provider.com/docs/jira-integration",
345
- * "actions": [
346
- * {
347
- * "actionId": "action-1",
348
- * "actionLabel": {
349
- * "value": {
350
- * "value": "Acknowledge"
351
- * }
352
- * },
353
- * "templateUrl": "https://my-remotelink-provider.com/ack/{ack-id}"
354
- * }
355
- * ],
356
- * "name": {
357
- * "value": "My Remote Link Provider"
358
- * },
359
- * "key": "remotelink-integration"
360
- * }
361
- * }
362
- * }
363
- * ```
364
- *
365
- * ### Properties
366
- *
367
- * | Property | type | Description
368
- *
369
- * | Required |
370
- * |------------------|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|----------|
371
- * | key | string | A key to identify this module. Must match
372
- * `^[a-zA-Z0-9-]+$` pattern, with a max length of 100
373
- * | Yes |
374
- * | name | object (i18N) | A human readable name. This object
375
- * supports
376
- * [internationalization](https://developer.atlassian.com/cloud/jira/software/internationalization/).
377
- * | Yes |
378
- * | homeUrl | string | URL to the provider’s homepage
379
- *
380
- * | Yes |
381
- * | logoUrl | string | Optional URL to the provider’s logo, which
382
- * will be displayed in the UI
383
- * | |
384
- * | documentationUrl | string | Optional URL to documentation about the
385
- * provider’s Jira integration
386
- * | |
387
- * | actions | object | Optional actions that can be performed by
388
- * Jira users on the remote link
389
- *
390
- * ### Actions object
391
- *
392
- * | Property | type | Description
393
- *
394
- * | Required |
395
- * |-------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
396
- * | actionId | string | A key to identify a specific action. Used for
397
- * associating a specific Remote link to an action of this ID. <br> The actionId
398
- * of an action must be unique across all actions.
399
- * | Yes |
400
- * | actionLabel | object | The actionLabel of an Action is shown visibly to the
401
- * User alongside the Remote Link.
402
- *
403
- * | Yes |
404
- * | templateUrl | string | The templateUrl of an Action is a template where
405
- * strings can be substituted into the URL for a specific Remote Link. <br>
406
- * Strings used in the templateUrl must be passed in via an attribute map when
407
- * associating an action with a remote link. | Yes |
408
- *
409
- * ### ActionLabel Object
410
- *
411
- * | Property | type | Description
412
- *
413
- * | Required |
414
- * |----------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------|
415
- * | value | object (i18n) | The label shown on the UI. This object supports
416
- * [internationalization](https://developer.atlassian.com/cloud/jira/software/internationalization/).
417
- * | Yes |
418
- */
419
- remoteLinks = new RemoteLinksService(this.getClient);
420
- /**
421
- * Send security information to Jira Software and enable your teams to turn
422
- * unplanned vulnerabilities into planned and tracked work.
423
- *
424
- * Security is everyone's responsibility, and the security feature in Jira lets
425
- * you triage and track relevant vulnerabilities as a team. Discuss and prioritise
426
- * issues, minimise errors and duplication, and plan security work to complete in
427
- * your sprints.
428
- *
429
- * APIs related to integrating Security information with Jira Software are
430
- * available to Atlassian Connect apps. To use these APIs you must have the
431
- * Security module in your app's descriptor. Read more about Jira Software modules
432
- * [here](https://developer.atlassian.com/cloud/jira/software/about-jira-modules/).
433
- */
434
- securityInformation = new SecurityInformationService(this.getClient);
435
- /** Apis related to sprints */
436
- sprint = new SprintService(this.getClient);
437
- constructor(options?: BaseJiraSoftwareApiClientOptions) {
438
- super(() => this.client);
439
- this.client.setOptions({
440
- ...this.client.getOptions(),
441
- ...options,
442
- });
443
- }
444
- static createClientWithServices = commonHttpClient.createClientWithServices;
445
- }
446
- validationSchemaStorage.setErrorClass(BaseJiraSoftwareApiClientError);
447
- export type { IssueBean, LinkGroup, Operations, SearchResults };