@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,324 +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 EntityProperty,
10
- type PropertyKeys,
11
- registerCommonValidationSchemas,
12
- } from "../models/common";
13
- import { validationSchemaStorage } from "../validation-schema-storage";
14
- /**
15
- * This resource represents [issue comment](#api-group-Issue-comments) properties,
16
- * which provides for storing custom data against an issue comment. Use is to get,
17
- * set, and delete issue comment properties as well as obtain the keys of all
18
- * properties on a comment. Comment properties are a type of [entity
19
- * property](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
20
- */
21
- export class IssueCommentPropertiesService extends CommonHttpService {
22
- /**
23
- * Deletes a comment property.
24
- *
25
- * **[Permissions](#permissions) required:** either of:
26
- *
27
- * * *Edit All Comments* [project
28
- * permission](https://confluence.atlassian.com/x/yodKLg) to delete a property
29
- * from any comment.
30
- * * *Edit Own Comments* [project
31
- * permission](https://confluence.atlassian.com/x/yodKLg) to delete a property
32
- * from a comment created by the user.
33
- *
34
- * Also, when the visibility of a comment is restricted to a role or group the
35
- * user must be a member of that role or group.
36
- *
37
- * @path {DELETE} /rest/api/3/comment/{commentId}/properties/{propertyKey}
38
- * @scopes-current write:jira-work
39
- * @scopes-beta delete:comment.property:jira
40
- */
41
- deleteCommentProperty({
42
- commentId,
43
- propertyKey,
44
- }: {
45
- /** The ID of the comment. */
46
- commentId: string;
47
- /** The key of the property. */
48
- propertyKey: string;
49
- }): Promise<void> {
50
- return this.getClientInstance()
51
- .request({
52
- path: "/rest/api/3/comment/{commentId}/properties/{propertyKey}",
53
- method: "DELETE",
54
- pathParams: {
55
- commentId,
56
- propertyKey,
57
- },
58
- })
59
- .then(commonHttpClient.discardResult);
60
- }
61
- /**
62
- * Returns the value of a comment property.
63
- *
64
- * This operation can be accessed anonymously.
65
- *
66
- * **[Permissions](#permissions) required:**
67
- *
68
- * * *Browse projects* [project
69
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
70
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
71
- * configured, issue-level security permission to view the issue.
72
- * * If the comment has visibility restrictions, belongs to the group or has the
73
- * role visibility is restricted to.
74
- *
75
- * @returns Returned if the request is successful.
76
- *
77
- * example: {
78
- * "key": "issue.support",
79
- * "value": {
80
- * "system.conversation.id": "b1bf38be-5e94-4b40-a3b8-9278735ee1e6",
81
- * "system.support.time": "1m"
82
- * }
83
- * }
84
- * @path {GET} /rest/api/3/comment/{commentId}/properties/{propertyKey}
85
- * @scopes-current read:jira-work
86
- * @scopes-beta read:comment.property:jira
87
- */
88
- getCommentProperty({
89
- commentId,
90
- propertyKey,
91
- }: {
92
- /** The ID of the comment. */
93
- commentId: string;
94
- /** The key of the property. */
95
- propertyKey: string;
96
- }): Promise<EntityProperty> {
97
- return this.getClientInstance()
98
- .request({
99
- path: "/rest/api/3/comment/{commentId}/properties/{propertyKey}",
100
- method: "GET",
101
- pathParams: {
102
- commentId,
103
- propertyKey,
104
- },
105
- })
106
- .then(
107
- this.getClientInstance().responseHandler({
108
- 200: {
109
- "application/json": "json",
110
- },
111
- }),
112
- )
113
- .then(
114
- commonHttpClient.castResponse<{
115
- status: 200;
116
- mediaType: "application/json";
117
- body: EntityProperty;
118
- }>(),
119
- )
120
- .then(
121
- validationSchemaStorage.validator(
122
- "IssueCommentPropertiesService.getCommentProperty.response",
123
- ),
124
- )
125
- .then(commonHttpClient.getBody);
126
- }
127
- /**
128
- * Returns the keys of all the properties of a comment.
129
- *
130
- * This operation can be accessed anonymously.
131
- *
132
- * **[Permissions](#permissions) required:**
133
- *
134
- * * *Browse projects* [project
135
- * permission](https://confluence.atlassian.com/x/yodKLg) for the project.
136
- * * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) is
137
- * configured, issue-level security permission to view the issue.
138
- * * If the comment has visibility restrictions, belongs to the group or has the
139
- * role visibility is restricted to.
140
- *
141
- * @returns Returned if the request is successful.
142
- *
143
- * example: {
144
- * "keys": [
145
- * {
146
- * "key": "issue.support",
147
- * "self":
148
- * "https://your-domain.atlassian.net/rest/api/3/issue/EX-2/properties/issue.support"
149
- * }
150
- * ]
151
- * }
152
- * @path {GET} /rest/api/3/comment/{commentId}/properties
153
- * @scopes-current read:jira-work
154
- * @scopes-beta read:comment.property:jira
155
- */
156
- getCommentPropertyKeys({
157
- commentId,
158
- }: {
159
- /** The ID of the comment. */
160
- commentId: string;
161
- }): Promise<PropertyKeys> {
162
- return this.getClientInstance()
163
- .request({
164
- path: "/rest/api/3/comment/{commentId}/properties",
165
- method: "GET",
166
- pathParams: {
167
- commentId,
168
- },
169
- })
170
- .then(
171
- this.getClientInstance().responseHandler({
172
- 200: {
173
- "application/json": "json",
174
- },
175
- }),
176
- )
177
- .then(
178
- commonHttpClient.castResponse<{
179
- status: 200;
180
- mediaType: "application/json";
181
- body: PropertyKeys;
182
- }>(),
183
- )
184
- .then(
185
- validationSchemaStorage.validator(
186
- "IssueCommentPropertiesService.getCommentPropertyKeys.response",
187
- ),
188
- )
189
- .then(commonHttpClient.getBody);
190
- }
191
- /**
192
- * Creates or updates the value of a property for a comment. Use this resource to
193
- * store custom data against a comment.
194
- *
195
- * The value of the request body must be a
196
- * [valid](http://tools.ietf.org/html/rfc4627), non-empty JSON blob. The maximum
197
- * length is 32768 characters.
198
- *
199
- * **[Permissions](#permissions) required:** either of:
200
- *
201
- * * *Edit All Comments* [project
202
- * permission](https://confluence.atlassian.com/x/yodKLg) to create or update the
203
- * value of a property on any comment.
204
- * * *Edit Own Comments* [project
205
- * permission](https://confluence.atlassian.com/x/yodKLg) to create or update the
206
- * value of a property on a comment created by the user.
207
- *
208
- * Also, when the visibility of a comment is restricted to a role or group the
209
- * user must be a member of that role or group.
210
- *
211
- * @returns * status: 200, mediaType: application/json
212
- *
213
- * Returned if the comment property is updated.
214
- *
215
- * * status: 201, mediaType: application/json
216
- *
217
- * Returned if the comment property is created.
218
- * @path {PUT} /rest/api/3/comment/{commentId}/properties/{propertyKey}
219
- * @scopes-current write:jira-work
220
- * @scopes-beta write:comment.property:jira
221
- */
222
- setCommentProperty({
223
- commentId,
224
- propertyKey,
225
- requestBody,
226
- }: {
227
- /** The ID of the comment. */
228
- commentId: string;
229
- /** The key of the property. The maximum length is 255 characters. */
230
- propertyKey: string;
231
- /**
232
- * The value of the property. The value has to be a valid, non-empty
233
- * [JSON](https://tools.ietf.org/html/rfc4627) value. The maximum length of the
234
- * property value is 32768 bytes.
235
- */
236
- requestBody: unknown;
237
- }): Promise<{
238
- created: boolean;
239
- body: unknown;
240
- }> {
241
- return this.getClientInstance()
242
- .request({
243
- path: "/rest/api/3/comment/{commentId}/properties/{propertyKey}",
244
- method: "PUT",
245
- pathParams: {
246
- commentId,
247
- propertyKey,
248
- },
249
- headers: {
250
- "Content-Type": "application/json",
251
- },
252
- body: requestBody,
253
- })
254
- .then(
255
- this.getClientInstance().responseHandler({
256
- 200: {
257
- "application/json": "json",
258
- },
259
- 201: {
260
- "application/json": "json",
261
- },
262
- }),
263
- )
264
- .then(
265
- commonHttpClient.castResponse<{
266
- status: 200 | 201;
267
- mediaType: "application/json";
268
- body: unknown;
269
- }>(),
270
- )
271
- .then(
272
- validationSchemaStorage.validator(
273
- "IssueCommentPropertiesService.setCommentProperty.response",
274
- ),
275
- )
276
- .then(commonHttpClient.asCreatedResponse("body"));
277
- }
278
- static initialize() {
279
- validationSchemaStorage.registerExtensible(
280
- "IssueCommentPropertiesService.getCommentPropertyKeys.response",
281
- z
282
- .object({
283
- status: z.literal(200),
284
- mediaType: z.literal("application/json"),
285
- body: validationSchemaStorage.lazy("PropertyKeys"),
286
- })
287
- .describe(
288
- "IssueCommentPropertiesService.getCommentPropertyKeys.response",
289
- ),
290
- );
291
- validationSchemaStorage.registerExtensible(
292
- "IssueCommentPropertiesService.getCommentProperty.response",
293
- z
294
- .object({
295
- status: z.literal(200),
296
- mediaType: z.literal("application/json"),
297
- body: validationSchemaStorage.lazy("EntityProperty"),
298
- })
299
- .describe("IssueCommentPropertiesService.getCommentProperty.response"),
300
- );
301
- validationSchemaStorage.registerExtensible(
302
- "IssueCommentPropertiesService.setCommentProperty.response",
303
- z
304
- .object({
305
- status: z.number(),
306
- mediaType: z.string(),
307
- body: z.unknown(),
308
- })
309
- .superRefine(({ status: status, body: body }, ctx) => {
310
- if (status === 200 || status === 201) {
311
- z.unknown().parse(body);
312
- } else {
313
- ctx.addIssue({
314
- code: z.ZodIssueCode.custom,
315
- path: ["status"],
316
- message: `Unexpected status code: ${status}`,
317
- });
318
- }
319
- })
320
- .describe("IssueCommentPropertiesService.setCommentProperty.response"),
321
- );
322
- validationSchemaStorage.registerOnce([registerCommonValidationSchemas]);
323
- }
324
- }