@useshortcut/client 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1314 +1,2165 @@
1
1
  "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- var __extends = (this && this.__extends) || (function () {
13
- var extendStatics = function (d, b) {
14
- extendStatics = Object.setPrototypeOf ||
15
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
17
- return extendStatics(d, b);
18
- };
19
- return function (d, b) {
20
- if (typeof b !== "function" && b !== null)
21
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
22
- extendStatics(d, b);
23
- function __() { this.constructor = d; }
24
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
25
- };
26
- })();
27
- var __assign = (this && this.__assign) || function () {
28
- __assign = Object.assign || function(t) {
29
- for (var s, i = 1, n = arguments.length; i < n; i++) {
30
- s = arguments[i];
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
32
- t[p] = s[p];
33
- }
34
- return t;
35
- };
36
- return __assign.apply(this, arguments);
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
37
11
  };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Api = void 0;
40
- var http_client_1 = require("./http-client");
41
- /**
42
- * Please don't use this class directly, instead use the `ShortcutClient` class we provided which is extending this class to add headers for authorization.
43
- * @internal
44
- * @private
45
- */
46
- var Api = /** @class */ (function (_super) {
47
- __extends(Api, _super);
48
- function Api() {
49
- var _this = _super !== null && _super.apply(this, arguments) || this;
50
- /**
51
- * @description List Categories returns a list of all Categories and their attributes.
52
- *
53
- * @name ListCategories
54
- * @summary List Categories
55
- * @request GET:/api/v3/categories
56
- * @secure
57
- */
58
- _this.listCategories = function (params) {
59
- if (params === void 0) { params = {}; }
60
- return _this.request(__assign({ path: "/api/v3/categories", method: "GET", secure: true, format: "json" }, params));
61
- };
62
- /**
63
- * @description Create Category allows you to create a new Category in Shortcut.
64
- *
65
- * @name CreateCategory
66
- * @summary Create Category
67
- * @request POST:/api/v3/categories
68
- * @secure
69
- */
70
- _this.createCategory = function (CreateCategory, params) {
71
- if (params === void 0) { params = {}; }
72
- return _this.request(__assign({ path: "/api/v3/categories", method: "POST", body: CreateCategory, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
73
- };
74
- /**
75
- * @description Get Category returns information about the selected Category.
76
- *
77
- * @name GetCategory
78
- * @summary Get Category
79
- * @request GET:/api/v3/categories/{category-public-id}
80
- * @secure
81
- */
82
- _this.getCategory = function (categoryPublicId, params) {
83
- if (params === void 0) { params = {}; }
84
- return _this.request(__assign({ path: "/api/v3/categories/" + categoryPublicId, method: "GET", secure: true, format: "json" }, params));
85
- };
86
- /**
87
- * @description Update Category allows you to replace a Category name with another name. If you try to name a Category something that already exists, you will receive a 422 response.
88
- *
89
- * @name UpdateCategory
90
- * @summary Update Category
91
- * @request PUT:/api/v3/categories/{category-public-id}
92
- * @secure
93
- */
94
- _this.updateCategory = function (categoryPublicId, UpdateCategory, params) {
95
- if (params === void 0) { params = {}; }
96
- return _this.request(__assign({ path: "/api/v3/categories/" + categoryPublicId, method: "PUT", body: UpdateCategory, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
97
- };
98
- /**
99
- * @description Delete Category can be used to delete any Category.
100
- *
101
- * @name DeleteCategory
102
- * @summary Delete Category
103
- * @request DELETE:/api/v3/categories/{category-public-id}
104
- * @secure
105
- */
106
- _this.deleteCategory = function (categoryPublicId, params) {
107
- if (params === void 0) { params = {}; }
108
- return _this.request(__assign({ path: "/api/v3/categories/" + categoryPublicId, method: "DELETE", secure: true }, params));
109
- };
110
- /**
111
- * @description List Category Milestones returns a list of all Milestones with the Category.
112
- *
113
- * @name ListCategoryMilestones
114
- * @summary List Category Milestones
115
- * @request GET:/api/v3/categories/{category-public-id}/milestones
116
- * @secure
117
- */
118
- _this.listCategoryMilestones = function (categoryPublicId, params) {
119
- if (params === void 0) { params = {}; }
120
- return _this.request(__assign({ path: "/api/v3/categories/" + categoryPublicId + "/milestones", method: "GET", secure: true, format: "json" }, params));
121
- };
122
- /**
123
- * @description List all the entity templates for an organization.
124
- *
125
- * @name ListEntityTemplates
126
- * @summary List Entity Templates
127
- * @request GET:/api/v3/entity-templates
128
- * @secure
129
- */
130
- _this.listEntityTemplates = function (params) {
131
- if (params === void 0) { params = {}; }
132
- return _this.request(__assign({ path: "/api/v3/entity-templates", method: "GET", secure: true, format: "json" }, params));
133
- };
134
- /**
135
- * @description Create a new entity template for your organization.
136
- *
137
- * @name CreateEntityTemplate
138
- * @summary Create Entity Template
139
- * @request POST:/api/v3/entity-templates
140
- * @secure
141
- */
142
- _this.createEntityTemplate = function (CreateEntityTemplate, params) {
143
- if (params === void 0) { params = {}; }
144
- return _this.request(__assign({ path: "/api/v3/entity-templates", method: "POST", body: CreateEntityTemplate, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
145
- };
146
- /**
147
- * @description Disables the Story Template feature for the given Organization.
148
- *
149
- * @name DisableStoryTemplates
150
- * @summary Disable Story Templates
151
- * @request PUT:/api/v3/entity-templates/disable
152
- * @secure
153
- */
154
- _this.disableStoryTemplates = function (params) {
155
- if (params === void 0) { params = {}; }
156
- return _this.request(__assign({ path: "/api/v3/entity-templates/disable", method: "PUT", secure: true }, params));
157
- };
158
- /**
159
- * @description Enables the Story Template feature for the given Organization.
160
- *
161
- * @name EnableStoryTemplates
162
- * @summary Enable Story Templates
163
- * @request PUT:/api/v3/entity-templates/enable
164
- * @secure
165
- */
166
- _this.enableStoryTemplates = function (params) {
167
- if (params === void 0) { params = {}; }
168
- return _this.request(__assign({ path: "/api/v3/entity-templates/enable", method: "PUT", secure: true }, params));
169
- };
170
- /**
171
- * @description Get Entity Template returns information about a given entity template.
172
- *
173
- * @name GetEntityTemplate
174
- * @summary Get Entity Template
175
- * @request GET:/api/v3/entity-templates/{entity-template-public-id}
176
- * @secure
177
- */
178
- _this.getEntityTemplate = function (entityTemplatePublicId, params) {
179
- if (params === void 0) { params = {}; }
180
- return _this.request(__assign({ path: "/api/v3/entity-templates/" + entityTemplatePublicId, method: "GET", secure: true, format: "json" }, params));
181
- };
182
- /**
183
- * @description Update an entity template's name or its contents.
184
- *
185
- * @name UpdateEntityTemplate
186
- * @summary Update Entity Template
187
- * @request PUT:/api/v3/entity-templates/{entity-template-public-id}
188
- * @secure
189
- */
190
- _this.updateEntityTemplate = function (entityTemplatePublicId, UpdateEntityTemplate, params) {
191
- if (params === void 0) { params = {}; }
192
- return _this.request(__assign({ path: "/api/v3/entity-templates/" + entityTemplatePublicId, method: "PUT", body: UpdateEntityTemplate, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
193
- };
194
- /**
195
- * No description
196
- *
197
- * @name DeleteEntityTemplate
198
- * @summary Delete Entity Template
199
- * @request DELETE:/api/v3/entity-templates/{entity-template-public-id}
200
- * @secure
201
- */
202
- _this.deleteEntityTemplate = function (entityTemplatePublicId, params) {
203
- if (params === void 0) { params = {}; }
204
- return _this.request(__assign({ path: "/api/v3/entity-templates/" + entityTemplatePublicId, method: "DELETE", secure: true }, params));
205
- };
206
- /**
207
- * @description Get Epic Workflow returns the Epic Workflow for the organization.
208
- *
209
- * @name GetEpicWorkflow
210
- * @summary Get Epic Workflow
211
- * @request GET:/api/v3/epic-workflow
212
- * @secure
213
- */
214
- _this.getEpicWorkflow = function (params) {
215
- if (params === void 0) { params = {}; }
216
- return _this.request(__assign({ path: "/api/v3/epic-workflow", method: "GET", secure: true, format: "json" }, params));
217
- };
218
- /**
219
- * @description List Epics returns a list of all Epics and their attributes.
220
- *
221
- * @name ListEpics
222
- * @summary List Epics
223
- * @request GET:/api/v3/epics
224
- * @secure
225
- */
226
- _this.listEpics = function (ListEpics, params) {
227
- if (params === void 0) { params = {}; }
228
- return _this.request(__assign({ path: "/api/v3/epics", method: "GET", body: ListEpics, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
229
- };
230
- /**
231
- * @description Create Epic allows you to create a new Epic in Shortcut.
232
- *
233
- * @name CreateEpic
234
- * @summary Create Epic
235
- * @request POST:/api/v3/epics
236
- * @secure
237
- */
238
- _this.createEpic = function (CreateEpic, params) {
239
- if (params === void 0) { params = {}; }
240
- return _this.request(__assign({ path: "/api/v3/epics", method: "POST", body: CreateEpic, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
241
- };
242
- /**
243
- * @description Get Epic returns information about the selected Epic.
244
- *
245
- * @name GetEpic
246
- * @summary Get Epic
247
- * @request GET:/api/v3/epics/{epic-public-id}
248
- * @secure
249
- */
250
- _this.getEpic = function (epicPublicId, params) {
251
- if (params === void 0) { params = {}; }
252
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId, method: "GET", secure: true, format: "json" }, params));
253
- };
254
- /**
255
- * @description Update Epic can be used to update numerous fields in the Epic. The only required parameter is Epic ID, which can be found in the Shortcut UI.
256
- *
257
- * @name UpdateEpic
258
- * @summary Update Epic
259
- * @request PUT:/api/v3/epics/{epic-public-id}
260
- * @secure
261
- */
262
- _this.updateEpic = function (epicPublicId, UpdateEpic, params) {
263
- if (params === void 0) { params = {}; }
264
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId, method: "PUT", body: UpdateEpic, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
265
- };
266
- /**
267
- * @description Delete Epic can be used to delete the Epic. The only required parameter is Epic ID.
268
- *
269
- * @name DeleteEpic
270
- * @summary Delete Epic
271
- * @request DELETE:/api/v3/epics/{epic-public-id}
272
- * @secure
273
- */
274
- _this.deleteEpic = function (epicPublicId, params) {
275
- if (params === void 0) { params = {}; }
276
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId, method: "DELETE", secure: true }, params));
277
- };
278
- /**
279
- * @description Get a list of all Comments on an Epic.
280
- *
281
- * @name ListEpicComments
282
- * @summary List Epic Comments
283
- * @request GET:/api/v3/epics/{epic-public-id}/comments
284
- * @secure
285
- */
286
- _this.listEpicComments = function (epicPublicId, params) {
287
- if (params === void 0) { params = {}; }
288
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments", method: "GET", secure: true, format: "json" }, params));
289
- };
290
- /**
291
- * @description This endpoint allows you to create a threaded Comment on an Epic.
292
- *
293
- * @name CreateEpicComment
294
- * @summary Create Epic Comment
295
- * @request POST:/api/v3/epics/{epic-public-id}/comments
296
- * @secure
297
- */
298
- _this.createEpicComment = function (epicPublicId, CreateEpicComment, params) {
299
- if (params === void 0) { params = {}; }
300
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments", method: "POST", body: CreateEpicComment, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
301
- };
302
- /**
303
- * @description This endpoint allows you to create a nested Comment reply to an existing Epic Comment.
304
- *
305
- * @name CreateEpicCommentComment
306
- * @summary Create Epic Comment Comment
307
- * @request POST:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
308
- * @secure
309
- */
310
- _this.createEpicCommentComment = function (epicPublicId, commentPublicId, CreateCommentComment, params) {
311
- if (params === void 0) { params = {}; }
312
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments/" + commentPublicId, method: "POST", body: CreateCommentComment, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
313
- };
314
- /**
315
- * @description This endpoint returns information about the selected Epic Comment.
316
- *
317
- * @name GetEpicComment
318
- * @summary Get Epic Comment
319
- * @request GET:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
320
- * @secure
321
- */
322
- _this.getEpicComment = function (epicPublicId, commentPublicId, params) {
323
- if (params === void 0) { params = {}; }
324
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments/" + commentPublicId, method: "GET", secure: true, format: "json" }, params));
325
- };
326
- /**
327
- * @description This endpoint allows you to update a threaded Comment on an Epic.
328
- *
329
- * @name UpdateEpicComment
330
- * @summary Update Epic Comment
331
- * @request PUT:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
332
- * @secure
333
- */
334
- _this.updateEpicComment = function (epicPublicId, commentPublicId, UpdateComment, params) {
335
- if (params === void 0) { params = {}; }
336
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments/" + commentPublicId, method: "PUT", body: UpdateComment, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
337
- };
338
- /**
339
- * @description This endpoint allows you to delete a Comment from an Epic.
340
- *
341
- * @name DeleteEpicComment
342
- * @summary Delete Epic Comment
343
- * @request DELETE:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
344
- * @secure
345
- */
346
- _this.deleteEpicComment = function (epicPublicId, commentPublicId, params) {
347
- if (params === void 0) { params = {}; }
348
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/comments/" + commentPublicId, method: "DELETE", secure: true }, params));
349
- };
350
- /**
351
- * @description Get a list of all Stories in an Epic.
352
- *
353
- * @name ListEpicStories
354
- * @summary List Epic Stories
355
- * @request GET:/api/v3/epics/{epic-public-id}/stories
356
- * @secure
357
- */
358
- _this.listEpicStories = function (epicPublicId, GetEpicStories, params) {
359
- if (params === void 0) { params = {}; }
360
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/stories", method: "GET", body: GetEpicStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
361
- };
362
- /**
363
- * @description This endpoint allows you to unlink a productboard epic.
364
- *
365
- * @name UnlinkProductboardFromEpic
366
- * @summary Unlink Productboard from Epic
367
- * @request POST:/api/v3/epics/{epic-public-id}/unlink-productboard
368
- * @secure
369
- */
370
- _this.unlinkProductboardFromEpic = function (epicPublicId, params) {
371
- if (params === void 0) { params = {}; }
372
- return _this.request(__assign({ path: "/api/v3/epics/" + epicPublicId + "/unlink-productboard", method: "POST", secure: true }, params));
373
- };
374
- /**
375
- * @description Get Stories which have a given External Link associated with them.
376
- *
377
- * @name GetExternalLinkStories
378
- * @summary Get External Link Stories
379
- * @request GET:/api/v3/external-link/stories
380
- * @secure
381
- */
382
- _this.getExternalLinkStories = function (GetExternalLinkStoriesParams, params) {
383
- if (params === void 0) { params = {}; }
384
- return _this.request(__assign({ path: "/api/v3/external-link/stories", method: "GET", body: GetExternalLinkStoriesParams, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
385
- };
386
- /**
387
- * @description List Files returns a list of all UploadedFiles in the workspace.
388
- *
389
- * @name ListFiles
390
- * @summary List Files
391
- * @request GET:/api/v3/files
392
- * @secure
393
- */
394
- _this.listFiles = function (params) {
395
- if (params === void 0) { params = {}; }
396
- return _this.request(__assign({ path: "/api/v3/files", method: "GET", secure: true, format: "json" }, params));
397
- };
398
- /**
399
- * @description Upload Files uploads one or many files and optionally associates them with a story. Use the multipart/form-data content-type to upload. Each `file` key should contain a separate file. Each UploadedFile's name comes from the Content-Disposition header "filename" directive for that field.
400
- *
401
- * @name UploadFiles
402
- * @summary Upload Files
403
- * @request POST:/api/v3/files
404
- * @secure
405
- */
406
- _this.uploadFiles = function (data, params) {
407
- if (params === void 0) { params = {}; }
408
- return _this.request(__assign({ path: "/api/v3/files", method: "POST", body: data, secure: true, type: http_client_1.ContentType.FormData, format: "json" }, params));
409
- };
410
- /**
411
- * @description Get File returns information about the selected UploadedFile.
412
- *
413
- * @name GetFile
414
- * @summary Get File
415
- * @request GET:/api/v3/files/{file-public-id}
416
- * @secure
417
- */
418
- _this.getFile = function (filePublicId, params) {
419
- if (params === void 0) { params = {}; }
420
- return _this.request(__assign({ path: "/api/v3/files/" + filePublicId, method: "GET", secure: true, format: "json" }, params));
421
- };
422
- /**
423
- * @description Update File updates the properties of an UploadedFile (but not its content).
424
- *
425
- * @name UpdateFile
426
- * @summary Update File
427
- * @request PUT:/api/v3/files/{file-public-id}
428
- * @secure
429
- */
430
- _this.updateFile = function (filePublicId, UpdateFile, params) {
431
- if (params === void 0) { params = {}; }
432
- return _this.request(__assign({ path: "/api/v3/files/" + filePublicId, method: "PUT", body: UpdateFile, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
433
- };
434
- /**
435
- * @description Delete File deletes a previously uploaded file.
436
- *
437
- * @name DeleteFile
438
- * @summary Delete File
439
- * @request DELETE:/api/v3/files/{file-public-id}
440
- * @secure
441
- */
442
- _this.deleteFile = function (filePublicId, params) {
443
- if (params === void 0) { params = {}; }
444
- return _this.request(__assign({ path: "/api/v3/files/" + filePublicId, method: "DELETE", secure: true }, params));
445
- };
446
- /**
447
- * @description A group in our API maps to a "Team" within the Shortcut Product. A Team is a collection of Users that can be associated to Stories, Epics, and Iterations within Shortcut.
448
- *
449
- * @name ListGroups
450
- * @summary List Groups
451
- * @request GET:/api/v3/groups
452
- * @secure
453
- */
454
- _this.listGroups = function (params) {
455
- if (params === void 0) { params = {}; }
456
- return _this.request(__assign({ path: "/api/v3/groups", method: "GET", secure: true, format: "json" }, params));
457
- };
458
- /**
459
- * No description
460
- *
461
- * @name CreateGroup
462
- * @summary Create Group
463
- * @request POST:/api/v3/groups
464
- * @secure
465
- */
466
- _this.createGroup = function (CreateGroup, params) {
467
- if (params === void 0) { params = {}; }
468
- return _this.request(__assign({ path: "/api/v3/groups", method: "POST", body: CreateGroup, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
469
- };
470
- /**
471
- * @description Disables Groups for the current workspace2
472
- *
473
- * @name DisableGroups
474
- * @summary Disable Groups
475
- * @request PUT:/api/v3/groups/disable
476
- * @secure
477
- */
478
- _this.disableGroups = function (params) {
479
- if (params === void 0) { params = {}; }
480
- return _this.request(__assign({ path: "/api/v3/groups/disable", method: "PUT", secure: true }, params));
481
- };
482
- /**
483
- * @description Enables Groups for the current workspace2
484
- *
485
- * @name EnableGroups
486
- * @summary Enable Groups
487
- * @request PUT:/api/v3/groups/enable
488
- * @secure
489
- */
490
- _this.enableGroups = function (params) {
491
- if (params === void 0) { params = {}; }
492
- return _this.request(__assign({ path: "/api/v3/groups/enable", method: "PUT", secure: true }, params));
493
- };
494
- /**
495
- * No description
496
- *
497
- * @name GetGroup
498
- * @summary Get Group
499
- * @request GET:/api/v3/groups/{group-public-id}
500
- * @secure
501
- */
502
- _this.getGroup = function (groupPublicId, params) {
503
- if (params === void 0) { params = {}; }
504
- return _this.request(__assign({ path: "/api/v3/groups/" + groupPublicId, method: "GET", secure: true, format: "json" }, params));
505
- };
506
- /**
507
- * No description
508
- *
509
- * @name UpdateGroup
510
- * @summary Update Group
511
- * @request PUT:/api/v3/groups/{group-public-id}
512
- * @secure
513
- */
514
- _this.updateGroup = function (groupPublicId, UpdateGroup, params) {
515
- if (params === void 0) { params = {}; }
516
- return _this.request(__assign({ path: "/api/v3/groups/" + groupPublicId, method: "PUT", body: UpdateGroup, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
517
- };
518
- /**
519
- * @description List the Stories assigned to the Group. (By default, limited to 1,000).
520
- *
521
- * @name ListGroupStories
522
- * @summary List Group Stories
523
- * @request GET:/api/v3/groups/{group-public-id}/stories
524
- * @secure
525
- */
526
- _this.listGroupStories = function (groupPublicId, ListGroupStories, params) {
527
- if (params === void 0) { params = {}; }
528
- return _this.request(__assign({ path: "/api/v3/groups/" + groupPublicId + "/stories", method: "GET", body: ListGroupStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
529
- };
530
- /**
531
- * No description
532
- *
533
- * @name ListIterations
534
- * @summary List Iterations
535
- * @request GET:/api/v3/iterations
536
- * @secure
537
- */
538
- _this.listIterations = function (params) {
539
- if (params === void 0) { params = {}; }
540
- return _this.request(__assign({ path: "/api/v3/iterations", method: "GET", secure: true, format: "json" }, params));
541
- };
542
- /**
543
- * No description
544
- *
545
- * @name CreateIteration
546
- * @summary Create Iteration
547
- * @request POST:/api/v3/iterations
548
- * @secure
549
- */
550
- _this.createIteration = function (CreateIteration, params) {
551
- if (params === void 0) { params = {}; }
552
- return _this.request(__assign({ path: "/api/v3/iterations", method: "POST", body: CreateIteration, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
553
- };
554
- /**
555
- * @description Disables Iterations for the current workspace
556
- *
557
- * @name DisableIterations
558
- * @summary Disable Iterations
559
- * @request PUT:/api/v3/iterations/disable
560
- * @secure
561
- */
562
- _this.disableIterations = function (params) {
563
- if (params === void 0) { params = {}; }
564
- return _this.request(__assign({ path: "/api/v3/iterations/disable", method: "PUT", secure: true }, params));
565
- };
566
- /**
567
- * @description Enables Iterations for the current workspace
568
- *
569
- * @name EnableIterations
570
- * @summary Enable Iterations
571
- * @request PUT:/api/v3/iterations/enable
572
- * @secure
573
- */
574
- _this.enableIterations = function (params) {
575
- if (params === void 0) { params = {}; }
576
- return _this.request(__assign({ path: "/api/v3/iterations/enable", method: "PUT", secure: true }, params));
577
- };
578
- /**
579
- * No description
580
- *
581
- * @name GetIteration
582
- * @summary Get Iteration
583
- * @request GET:/api/v3/iterations/{iteration-public-id}
584
- * @secure
585
- */
586
- _this.getIteration = function (iterationPublicId, params) {
587
- if (params === void 0) { params = {}; }
588
- return _this.request(__assign({ path: "/api/v3/iterations/" + iterationPublicId, method: "GET", secure: true, format: "json" }, params));
589
- };
590
- /**
591
- * No description
592
- *
593
- * @name UpdateIteration
594
- * @summary Update Iteration
595
- * @request PUT:/api/v3/iterations/{iteration-public-id}
596
- * @secure
597
- */
598
- _this.updateIteration = function (iterationPublicId, UpdateIteration, params) {
599
- if (params === void 0) { params = {}; }
600
- return _this.request(__assign({ path: "/api/v3/iterations/" + iterationPublicId, method: "PUT", body: UpdateIteration, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
601
- };
602
- /**
603
- * No description
604
- *
605
- * @name DeleteIteration
606
- * @summary Delete Iteration
607
- * @request DELETE:/api/v3/iterations/{iteration-public-id}
608
- * @secure
609
- */
610
- _this.deleteIteration = function (iterationPublicId, params) {
611
- if (params === void 0) { params = {}; }
612
- return _this.request(__assign({ path: "/api/v3/iterations/" + iterationPublicId, method: "DELETE", secure: true }, params));
613
- };
614
- /**
615
- * @description Get a list of all Stories in an Iteration.
616
- *
617
- * @name ListIterationStories
618
- * @summary List Iteration Stories
619
- * @request GET:/api/v3/iterations/{iteration-public-id}/stories
620
- * @secure
621
- */
622
- _this.listIterationStories = function (iterationPublicId, GetIterationStories, params) {
623
- if (params === void 0) { params = {}; }
624
- return _this.request(__assign({ path: "/api/v3/iterations/" + iterationPublicId + "/stories", method: "GET", body: GetIterationStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
625
- };
626
- /**
627
- * @description List Labels returns a list of all Labels and their attributes.
628
- *
629
- * @name ListLabels
630
- * @summary List Labels
631
- * @request GET:/api/v3/labels
632
- * @secure
633
- */
634
- _this.listLabels = function (ListLabels, params) {
635
- if (params === void 0) { params = {}; }
636
- return _this.request(__assign({ path: "/api/v3/labels", method: "GET", body: ListLabels, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
637
- };
638
- /**
639
- * @description Create Label allows you to create a new Label in Shortcut.
640
- *
641
- * @name CreateLabel
642
- * @summary Create Label
643
- * @request POST:/api/v3/labels
644
- * @secure
645
- */
646
- _this.createLabel = function (CreateLabelParams, params) {
647
- if (params === void 0) { params = {}; }
648
- return _this.request(__assign({ path: "/api/v3/labels", method: "POST", body: CreateLabelParams, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
649
- };
650
- /**
651
- * @description Get Label returns information about the selected Label.
652
- *
653
- * @name GetLabel
654
- * @summary Get Label
655
- * @request GET:/api/v3/labels/{label-public-id}
656
- * @secure
657
- */
658
- _this.getLabel = function (labelPublicId, params) {
659
- if (params === void 0) { params = {}; }
660
- return _this.request(__assign({ path: "/api/v3/labels/" + labelPublicId, method: "GET", secure: true, format: "json" }, params));
661
- };
662
- /**
663
- * @description Update Label allows you to replace a Label name with another name. If you try to name a Label something that already exists, you will receive a 422 response.
664
- *
665
- * @name UpdateLabel
666
- * @summary Update Label
667
- * @request PUT:/api/v3/labels/{label-public-id}
668
- * @secure
669
- */
670
- _this.updateLabel = function (labelPublicId, UpdateLabel, params) {
671
- if (params === void 0) { params = {}; }
672
- return _this.request(__assign({ path: "/api/v3/labels/" + labelPublicId, method: "PUT", body: UpdateLabel, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
673
- };
674
- /**
675
- * @description Delete Label can be used to delete any Label.
676
- *
677
- * @name DeleteLabel
678
- * @summary Delete Label
679
- * @request DELETE:/api/v3/labels/{label-public-id}
680
- * @secure
681
- */
682
- _this.deleteLabel = function (labelPublicId, params) {
683
- if (params === void 0) { params = {}; }
684
- return _this.request(__assign({ path: "/api/v3/labels/" + labelPublicId, method: "DELETE", secure: true }, params));
685
- };
686
- /**
687
- * @description List all of the Epics with the Label.
688
- *
689
- * @name ListLabelEpics
690
- * @summary List Label Epics
691
- * @request GET:/api/v3/labels/{label-public-id}/epics
692
- * @secure
693
- */
694
- _this.listLabelEpics = function (labelPublicId, params) {
695
- if (params === void 0) { params = {}; }
696
- return _this.request(__assign({ path: "/api/v3/labels/" + labelPublicId + "/epics", method: "GET", secure: true, format: "json" }, params));
697
- };
698
- /**
699
- * @description List all of the Stories with the Label.
700
- *
701
- * @name ListLabelStories
702
- * @summary List Label Stories
703
- * @request GET:/api/v3/labels/{label-public-id}/stories
704
- * @secure
705
- */
706
- _this.listLabelStories = function (labelPublicId, GetLabelStories, params) {
707
- if (params === void 0) { params = {}; }
708
- return _this.request(__assign({ path: "/api/v3/labels/" + labelPublicId + "/stories", method: "GET", body: GetLabelStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
709
- };
710
- /**
711
- * @description List Linked Files returns a list of all Linked-Files and their attributes.
712
- *
713
- * @name ListLinkedFiles
714
- * @summary List Linked Files
715
- * @request GET:/api/v3/linked-files
716
- * @secure
717
- */
718
- _this.listLinkedFiles = function (params) {
719
- if (params === void 0) { params = {}; }
720
- return _this.request(__assign({ path: "/api/v3/linked-files", method: "GET", secure: true, format: "json" }, params));
721
- };
722
- /**
723
- * @description Create Linked File allows you to create a new Linked File in Shortcut.
724
- *
725
- * @name CreateLinkedFile
726
- * @summary Create Linked File
727
- * @request POST:/api/v3/linked-files
728
- * @secure
729
- */
730
- _this.createLinkedFile = function (CreateLinkedFile, params) {
731
- if (params === void 0) { params = {}; }
732
- return _this.request(__assign({ path: "/api/v3/linked-files", method: "POST", body: CreateLinkedFile, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
733
- };
734
- /**
735
- * @description Get File returns information about the selected Linked File.
736
- *
737
- * @name GetLinkedFile
738
- * @summary Get Linked File
739
- * @request GET:/api/v3/linked-files/{linked-file-public-id}
740
- * @secure
741
- */
742
- _this.getLinkedFile = function (linkedFilePublicId, params) {
743
- if (params === void 0) { params = {}; }
744
- return _this.request(__assign({ path: "/api/v3/linked-files/" + linkedFilePublicId, method: "GET", secure: true, format: "json" }, params));
745
- };
746
- /**
747
- * @description Updated Linked File allows you to update properties of a previously attached Linked-File.
748
- *
749
- * @name UpdateLinkedFile
750
- * @summary Update Linked File
751
- * @request PUT:/api/v3/linked-files/{linked-file-public-id}
752
- * @secure
753
- */
754
- _this.updateLinkedFile = function (linkedFilePublicId, UpdateLinkedFile, params) {
755
- if (params === void 0) { params = {}; }
756
- return _this.request(__assign({ path: "/api/v3/linked-files/" + linkedFilePublicId, method: "PUT", body: UpdateLinkedFile, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
757
- };
758
- /**
759
- * @description Delete Linked File can be used to delete any previously attached Linked-File.
760
- *
761
- * @name DeleteLinkedFile
762
- * @summary Delete Linked File
763
- * @request DELETE:/api/v3/linked-files/{linked-file-public-id}
764
- * @secure
765
- */
766
- _this.deleteLinkedFile = function (linkedFilePublicId, params) {
767
- if (params === void 0) { params = {}; }
768
- return _this.request(__assign({ path: "/api/v3/linked-files/" + linkedFilePublicId, method: "DELETE", secure: true }, params));
769
- };
770
- /**
771
- * @description Returns information about the authenticated member.
772
- *
773
- * @name GetCurrentMemberInfo
774
- * @summary Get Current Member Info
775
- * @request GET:/api/v3/member
776
- * @secure
777
- */
778
- _this.getCurrentMemberInfo = function (params) {
779
- if (params === void 0) { params = {}; }
780
- return _this.request(__assign({ path: "/api/v3/member", method: "GET", secure: true, format: "json" }, params));
781
- };
782
- /**
783
- * @description List Members returns information about members of the organization.
784
- *
785
- * @name ListMembers
786
- * @summary List Members
787
- * @request GET:/api/v3/members
788
- * @secure
789
- */
790
- _this.listMembers = function (ListMembers, params) {
791
- if (params === void 0) { params = {}; }
792
- return _this.request(__assign({ path: "/api/v3/members", method: "GET", body: ListMembers, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
793
- };
794
- /**
795
- * @description Returns information about a Member.
796
- *
797
- * @name GetMember
798
- * @summary Get Member
799
- * @request GET:/api/v3/members/{member-public-id}
800
- * @secure
801
- */
802
- _this.getMember = function (memberPublicId, GetMember, params) {
803
- if (params === void 0) { params = {}; }
804
- return _this.request(__assign({ path: "/api/v3/members/" + memberPublicId, method: "GET", body: GetMember, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
805
- };
806
- /**
807
- * @description List Milestones returns a list of all Milestones and their attributes.
808
- *
809
- * @name ListMilestones
810
- * @summary List Milestones
811
- * @request GET:/api/v3/milestones
812
- * @secure
813
- */
814
- _this.listMilestones = function (params) {
815
- if (params === void 0) { params = {}; }
816
- return _this.request(__assign({ path: "/api/v3/milestones", method: "GET", secure: true, format: "json" }, params));
817
- };
818
- /**
819
- * @description Create Milestone allows you to create a new Milestone in Shortcut.
820
- *
821
- * @name CreateMilestone
822
- * @summary Create Milestone
823
- * @request POST:/api/v3/milestones
824
- * @secure
825
- */
826
- _this.createMilestone = function (CreateMilestone, params) {
827
- if (params === void 0) { params = {}; }
828
- return _this.request(__assign({ path: "/api/v3/milestones", method: "POST", body: CreateMilestone, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
829
- };
830
- /**
831
- * @description Get Milestone returns information about a chosen Milestone.
832
- *
833
- * @name GetMilestone
834
- * @summary Get Milestone
835
- * @request GET:/api/v3/milestones/{milestone-public-id}
836
- * @secure
837
- */
838
- _this.getMilestone = function (milestonePublicId, params) {
839
- if (params === void 0) { params = {}; }
840
- return _this.request(__assign({ path: "/api/v3/milestones/" + milestonePublicId, method: "GET", secure: true, format: "json" }, params));
841
- };
842
- /**
843
- * @description Update Milestone can be used to update Milestone properties.
844
- *
845
- * @name UpdateMilestone
846
- * @summary Update Milestone
847
- * @request PUT:/api/v3/milestones/{milestone-public-id}
848
- * @secure
849
- */
850
- _this.updateMilestone = function (milestonePublicId, UpdateMilestone, params) {
851
- if (params === void 0) { params = {}; }
852
- return _this.request(__assign({ path: "/api/v3/milestones/" + milestonePublicId, method: "PUT", body: UpdateMilestone, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
853
- };
854
- /**
855
- * @description Delete Milestone can be used to delete any Milestone.
856
- *
857
- * @name DeleteMilestone
858
- * @summary Delete Milestone
859
- * @request DELETE:/api/v3/milestones/{milestone-public-id}
860
- * @secure
861
- */
862
- _this.deleteMilestone = function (milestonePublicId, params) {
863
- if (params === void 0) { params = {}; }
864
- return _this.request(__assign({ path: "/api/v3/milestones/" + milestonePublicId, method: "DELETE", secure: true }, params));
865
- };
866
- /**
867
- * @description List all of the Epics within the Milestone.
868
- *
869
- * @name ListMilestoneEpics
870
- * @summary List Milestone Epics
871
- * @request GET:/api/v3/milestones/{milestone-public-id}/epics
872
- * @secure
873
- */
874
- _this.listMilestoneEpics = function (milestonePublicId, params) {
875
- if (params === void 0) { params = {}; }
876
- return _this.request(__assign({ path: "/api/v3/milestones/" + milestonePublicId + "/epics", method: "GET", secure: true, format: "json" }, params));
877
- };
878
- /**
879
- * @description List Projects returns a list of all Projects and their attributes.
880
- *
881
- * @name ListProjects
882
- * @summary List Projects
883
- * @request GET:/api/v3/projects
884
- * @secure
885
- */
886
- _this.listProjects = function (params) {
887
- if (params === void 0) { params = {}; }
888
- return _this.request(__assign({ path: "/api/v3/projects", method: "GET", secure: true, format: "json" }, params));
889
- };
890
- /**
891
- * @description Create Project is used to create a new Shortcut Project.
892
- *
893
- * @name CreateProject
894
- * @summary Create Project
895
- * @request POST:/api/v3/projects
896
- * @secure
897
- */
898
- _this.createProject = function (CreateProject, params) {
899
- if (params === void 0) { params = {}; }
900
- return _this.request(__assign({ path: "/api/v3/projects", method: "POST", body: CreateProject, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
901
- };
902
- /**
903
- * @description Get Project returns information about the selected Project.
904
- *
905
- * @name GetProject
906
- * @summary Get Project
907
- * @request GET:/api/v3/projects/{project-public-id}
908
- * @secure
909
- */
910
- _this.getProject = function (projectPublicId, params) {
911
- if (params === void 0) { params = {}; }
912
- return _this.request(__assign({ path: "/api/v3/projects/" + projectPublicId, method: "GET", secure: true, format: "json" }, params));
913
- };
914
- /**
915
- * @description Update Project can be used to change properties of a Project.
916
- *
917
- * @name UpdateProject
918
- * @summary Update Project
919
- * @request PUT:/api/v3/projects/{project-public-id}
920
- * @secure
921
- */
922
- _this.updateProject = function (projectPublicId, UpdateProject, params) {
923
- if (params === void 0) { params = {}; }
924
- return _this.request(__assign({ path: "/api/v3/projects/" + projectPublicId, method: "PUT", body: UpdateProject, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
925
- };
926
- /**
927
- * @description Delete Project can be used to delete a Project. Projects can only be deleted if all associated Stories are moved or deleted. In the case that the Project cannot be deleted, you will receive a 422 response.
928
- *
929
- * @name DeleteProject
930
- * @summary Delete Project
931
- * @request DELETE:/api/v3/projects/{project-public-id}
932
- * @secure
933
- */
934
- _this.deleteProject = function (projectPublicId, params) {
935
- if (params === void 0) { params = {}; }
936
- return _this.request(__assign({ path: "/api/v3/projects/" + projectPublicId, method: "DELETE", secure: true }, params));
937
- };
938
- /**
939
- * @description List Stories returns a list of all Stories in a selected Project and their attributes.
940
- *
941
- * @name ListStories
942
- * @summary List Stories
943
- * @request GET:/api/v3/projects/{project-public-id}/stories
944
- * @secure
945
- */
946
- _this.listStories = function (projectPublicId, GetProjectStories, params) {
947
- if (params === void 0) { params = {}; }
948
- return _this.request(__assign({ path: "/api/v3/projects/" + projectPublicId + "/stories", method: "GET", body: GetProjectStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
949
- };
950
- /**
951
- * @description List Repositories returns a list of all Repositories and their attributes.
952
- *
953
- * @name ListRepositories
954
- * @summary List Repositories
955
- * @request GET:/api/v3/repositories
956
- * @secure
957
- */
958
- _this.listRepositories = function (params) {
959
- if (params === void 0) { params = {}; }
960
- return _this.request(__assign({ path: "/api/v3/repositories", method: "GET", secure: true, format: "json" }, params));
961
- };
962
- /**
963
- * @description Get Repository returns information about the selected Repository.
964
- *
965
- * @name GetRepository
966
- * @summary Get Repository
967
- * @request GET:/api/v3/repositories/{repo-public-id}
968
- * @secure
969
- */
970
- _this.getRepository = function (repoPublicId, params) {
971
- if (params === void 0) { params = {}; }
972
- return _this.request(__assign({ path: "/api/v3/repositories/" + repoPublicId, method: "GET", secure: true, format: "json" }, params));
973
- };
974
- /**
975
- * @description Search lets you search Epics and Stories based on desired parameters. Since ordering of the results can change over time (due to search ranking decay, new Epics and Stories being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
976
- *
977
- * @name Search
978
- * @summary Search
979
- * @request GET:/api/v3/search
980
- * @secure
981
- */
982
- _this.search = function (Search, params) {
983
- if (params === void 0) { params = {}; }
984
- return _this.request(__assign({ path: "/api/v3/search", method: "GET", body: Search, secure: true, format: "json" }, params));
985
- };
986
- /**
987
- * @description Search Epics lets you search Epics based on desired parameters. Since ordering of stories can change over time (due to search ranking decay, new Epics being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
988
- *
989
- * @name SearchEpics
990
- * @summary Search Epics
991
- * @request GET:/api/v3/search/epics
992
- * @secure
993
- */
994
- _this.searchEpics = function (Search, params) {
995
- if (params === void 0) { params = {}; }
996
- return _this.request(__assign({ path: "/api/v3/search/epics", method: "GET", body: Search, secure: true, format: "json" }, params));
997
- };
998
- /**
999
- * @description Search Stories lets you search Stories based on desired parameters. Since ordering of stories can change over time (due to search ranking decay, new stories being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1000
- *
1001
- * @name SearchStories
1002
- * @summary Search Stories
1003
- * @request GET:/api/v3/search/stories
1004
- * @secure
1005
- */
1006
- _this.searchStories = function (Search, params) {
1007
- if (params === void 0) { params = {}; }
1008
- return _this.request(__assign({ path: "/api/v3/search/stories", method: "GET", body: Search, secure: true, format: "json" }, params));
1009
- };
1010
- /**
1011
- * @description Create Story is used to add a new story to your Shortcut.
1012
- *
1013
- * @name CreateStory
1014
- * @summary Create Story
1015
- * @request POST:/api/v3/stories
1016
- * @secure
1017
- */
1018
- _this.createStory = function (CreateStoryParams, params) {
1019
- if (params === void 0) { params = {}; }
1020
- return _this.request(__assign({ path: "/api/v3/stories", method: "POST", body: CreateStoryParams, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1021
- };
1022
- /**
1023
- * @description Create Multiple Stories allows you to create multiple stories in a single request using the same syntax as [Create Story](https://shortcut.com/api/#create-story).
1024
- *
1025
- * @name CreateMultipleStories
1026
- * @summary Create Multiple Stories
1027
- * @request POST:/api/v3/stories/bulk
1028
- * @secure
1029
- */
1030
- _this.createMultipleStories = function (CreateStories, params) {
1031
- if (params === void 0) { params = {}; }
1032
- return _this.request(__assign({ path: "/api/v3/stories/bulk", method: "POST", body: CreateStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1033
- };
1034
- /**
1035
- * @description Update Multiple Stories allows you to make changes to numerous stories at once.
1036
- *
1037
- * @name UpdateMultipleStories
1038
- * @summary Update Multiple Stories
1039
- * @request PUT:/api/v3/stories/bulk
1040
- * @secure
1041
- */
1042
- _this.updateMultipleStories = function (UpdateStories, params) {
1043
- if (params === void 0) { params = {}; }
1044
- return _this.request(__assign({ path: "/api/v3/stories/bulk", method: "PUT", body: UpdateStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1045
- };
1046
- /**
1047
- * @description Delete Multiple Stories allows you to delete multiple archived stories at once.
1048
- *
1049
- * @name DeleteMultipleStories
1050
- * @summary Delete Multiple Stories
1051
- * @request DELETE:/api/v3/stories/bulk
1052
- * @secure
1053
- */
1054
- _this.deleteMultipleStories = function (DeleteStories, params) {
1055
- if (params === void 0) { params = {}; }
1056
- return _this.request(__assign({ path: "/api/v3/stories/bulk", method: "DELETE", body: DeleteStories, secure: true, type: http_client_1.ContentType.Json }, params));
1057
- };
1058
- /**
1059
- * @description Search Stories lets you search Stories based on desired parameters.
1060
- *
1061
- * @name SearchStoriesOld
1062
- * @summary Search Stories (Old)
1063
- * @request POST:/api/v3/stories/search
1064
- * @secure
1065
- */
1066
- _this.searchStoriesOld = function (SearchStories, params) {
1067
- if (params === void 0) { params = {}; }
1068
- return _this.request(__assign({ path: "/api/v3/stories/search", method: "POST", body: SearchStories, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1069
- };
1070
- /**
1071
- * @description Get Story returns information about a chosen Story.
1072
- *
1073
- * @name GetStory
1074
- * @summary Get Story
1075
- * @request GET:/api/v3/stories/{story-public-id}
1076
- * @secure
1077
- */
1078
- _this.getStory = function (storyPublicId, params) {
1079
- if (params === void 0) { params = {}; }
1080
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId, method: "GET", secure: true, format: "json" }, params));
1081
- };
1082
- /**
1083
- * @description Update Story can be used to update Story properties.
1084
- *
1085
- * @name UpdateStory
1086
- * @summary Update Story
1087
- * @request PUT:/api/v3/stories/{story-public-id}
1088
- * @secure
1089
- */
1090
- _this.updateStory = function (storyPublicId, UpdateStory, params) {
1091
- if (params === void 0) { params = {}; }
1092
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId, method: "PUT", body: UpdateStory, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1093
- };
1094
- /**
1095
- * @description Delete Story can be used to delete any Story.
1096
- *
1097
- * @name DeleteStory
1098
- * @summary Delete Story
1099
- * @request DELETE:/api/v3/stories/{story-public-id}
1100
- * @secure
1101
- */
1102
- _this.deleteStory = function (storyPublicId, params) {
1103
- if (params === void 0) { params = {}; }
1104
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId, method: "DELETE", secure: true }, params));
1105
- };
1106
- /**
1107
- * @description Create Comment allows you to create a Comment on any Story.
1108
- *
1109
- * @name CreateStoryComment
1110
- * @summary Create Story Comment
1111
- * @request POST:/api/v3/stories/{story-public-id}/comments
1112
- * @secure
1113
- */
1114
- _this.createStoryComment = function (storyPublicId, CreateStoryComment, params) {
1115
- if (params === void 0) { params = {}; }
1116
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments", method: "POST", body: CreateStoryComment, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1117
- };
1118
- /**
1119
- * @description Get Comment is used to get Comment information.
1120
- *
1121
- * @name GetStoryComment
1122
- * @summary Get Story Comment
1123
- * @request GET:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1124
- * @secure
1125
- */
1126
- _this.getStoryComment = function (storyPublicId, commentPublicId, params) {
1127
- if (params === void 0) { params = {}; }
1128
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments/" + commentPublicId, method: "GET", secure: true, format: "json" }, params));
1129
- };
1130
- /**
1131
- * @description Update Comment replaces the text of the existing Comment.
1132
- *
1133
- * @name UpdateStoryComment
1134
- * @summary Update Story Comment
1135
- * @request PUT:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1136
- * @secure
1137
- */
1138
- _this.updateStoryComment = function (storyPublicId, commentPublicId, UpdateStoryComment, params) {
1139
- if (params === void 0) { params = {}; }
1140
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments/" + commentPublicId, method: "PUT", body: UpdateStoryComment, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1141
- };
1142
- /**
1143
- * @description Delete a Comment from any story.
1144
- *
1145
- * @name DeleteStoryComment
1146
- * @summary Delete Story Comment
1147
- * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1148
- * @secure
1149
- */
1150
- _this.deleteStoryComment = function (storyPublicId, commentPublicId, params) {
1151
- if (params === void 0) { params = {}; }
1152
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments/" + commentPublicId, method: "DELETE", secure: true }, params));
1153
- };
1154
- /**
1155
- * @description Create a reaction to a story comment.
1156
- *
1157
- * @name CreateStoryReaction
1158
- * @summary Create Story Reaction
1159
- * @request POST:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
1160
- * @secure
1161
- */
1162
- _this.createStoryReaction = function (storyPublicId, commentPublicId, CreateOrDeleteStoryReaction, params) {
1163
- if (params === void 0) { params = {}; }
1164
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments/" + commentPublicId + "/reactions", method: "POST", body: CreateOrDeleteStoryReaction, secure: true, format: "json" }, params));
1165
- };
1166
- /**
1167
- * @description Delete a reaction from any story comment.
1168
- *
1169
- * @name DeleteStoryReaction
1170
- * @summary Delete Story Reaction
1171
- * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
1172
- * @secure
1173
- */
1174
- _this.deleteStoryReaction = function (storyPublicId, commentPublicId, CreateOrDeleteStoryReaction, params) {
1175
- if (params === void 0) { params = {}; }
1176
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/comments/" + commentPublicId + "/reactions", method: "DELETE", body: CreateOrDeleteStoryReaction, secure: true }, params));
1177
- };
1178
- /**
1179
- * No description
1180
- *
1181
- * @name StoryHistory
1182
- * @summary Story History
1183
- * @request GET:/api/v3/stories/{story-public-id}/history
1184
- * @secure
1185
- */
1186
- _this.storyHistory = function (storyPublicId, params) {
1187
- if (params === void 0) { params = {}; }
1188
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/history", method: "GET", secure: true, format: "json" }, params));
1189
- };
1190
- /**
1191
- * @description Create Task is used to create a new task in a Story.
1192
- *
1193
- * @name CreateTask
1194
- * @summary Create Task
1195
- * @request POST:/api/v3/stories/{story-public-id}/tasks
1196
- * @secure
1197
- */
1198
- _this.createTask = function (storyPublicId, CreateTask, params) {
1199
- if (params === void 0) { params = {}; }
1200
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/tasks", method: "POST", body: CreateTask, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1201
- };
1202
- /**
1203
- * @description Returns information about a chosen Task.
1204
- *
1205
- * @name GetTask
1206
- * @summary Get Task
1207
- * @request GET:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
1208
- * @secure
1209
- */
1210
- _this.getTask = function (storyPublicId, taskPublicId, params) {
1211
- if (params === void 0) { params = {}; }
1212
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/tasks/" + taskPublicId, method: "GET", secure: true, format: "json" }, params));
1213
- };
1214
- /**
1215
- * @description Update Task can be used to update Task properties.
1216
- *
1217
- * @name UpdateTask
1218
- * @summary Update Task
1219
- * @request PUT:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
1220
- * @secure
1221
- */
1222
- _this.updateTask = function (storyPublicId, taskPublicId, UpdateTask, params) {
1223
- if (params === void 0) { params = {}; }
1224
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/tasks/" + taskPublicId, method: "PUT", body: UpdateTask, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1225
- };
1226
- /**
1227
- * @description Delete Task can be used to delete any previously created Task on a Story.
1228
- *
1229
- * @name DeleteTask
1230
- * @summary Delete Task
1231
- * @request DELETE:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
1232
- * @secure
1233
- */
1234
- _this.deleteTask = function (storyPublicId, taskPublicId, params) {
1235
- if (params === void 0) { params = {}; }
1236
- return _this.request(__assign({ path: "/api/v3/stories/" + storyPublicId + "/tasks/" + taskPublicId, method: "DELETE", secure: true }, params));
1237
- };
1238
- /**
1239
- * @description Story Links (called Story Relationships in the UI) allow you create semantic relationships between two stories. The parameters read like an active voice grammatical sentence: subject -> verb -> object. The subject story acts on the object Story; the object story is the direct object of the sentence. The subject story "blocks", "duplicates", or "relates to" the object story. Examples: - "story 5 blocks story 6” -- story 6 is now "blocked" until story 5 is moved to a Done workflow state. - "story 2 duplicates story 1” -- Story 2 represents the same body of work as Story 1 (and should probably be archived). - "story 7 relates to story 3”
1240
- *
1241
- * @name CreateStoryLink
1242
- * @summary Create Story Link
1243
- * @request POST:/api/v3/story-links
1244
- * @secure
1245
- */
1246
- _this.createStoryLink = function (CreateStoryLink, params) {
1247
- if (params === void 0) { params = {}; }
1248
- return _this.request(__assign({ path: "/api/v3/story-links", method: "POST", body: CreateStoryLink, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1249
- };
1250
- /**
1251
- * @description Returns the stories and their relationship for the given Story Link.
1252
- *
1253
- * @name GetStoryLink
1254
- * @summary Get Story Link
1255
- * @request GET:/api/v3/story-links/{story-link-public-id}
1256
- * @secure
1257
- */
1258
- _this.getStoryLink = function (storyLinkPublicId, params) {
1259
- if (params === void 0) { params = {}; }
1260
- return _this.request(__assign({ path: "/api/v3/story-links/" + storyLinkPublicId, method: "GET", secure: true, format: "json" }, params));
1261
- };
1262
- /**
1263
- * @description Updates the stories and/or the relationship for the given Story Link.
1264
- *
1265
- * @name UpdateStoryLink
1266
- * @summary Update Story Link
1267
- * @request PUT:/api/v3/story-links/{story-link-public-id}
1268
- * @secure
1269
- */
1270
- _this.updateStoryLink = function (storyLinkPublicId, UpdateStoryLink, params) {
1271
- if (params === void 0) { params = {}; }
1272
- return _this.request(__assign({ path: "/api/v3/story-links/" + storyLinkPublicId, method: "PUT", body: UpdateStoryLink, secure: true, type: http_client_1.ContentType.Json, format: "json" }, params));
1273
- };
1274
- /**
1275
- * @description Removes the relationship between the stories for the given Story Link.
1276
- *
1277
- * @name DeleteStoryLink
1278
- * @summary Delete Story Link
1279
- * @request DELETE:/api/v3/story-links/{story-link-public-id}
1280
- * @secure
1281
- */
1282
- _this.deleteStoryLink = function (storyLinkPublicId, params) {
1283
- if (params === void 0) { params = {}; }
1284
- return _this.request(__assign({ path: "/api/v3/story-links/" + storyLinkPublicId, method: "DELETE", secure: true }, params));
1285
- };
1286
- /**
1287
- * @description List Workflows returns a list of all Workflows in the organization.
1288
- *
1289
- * @name ListWorkflows
1290
- * @summary List Workflows
1291
- * @request GET:/api/v3/workflows
1292
- * @secure
1293
- */
1294
- _this.listWorkflows = function (params) {
1295
- if (params === void 0) { params = {}; }
1296
- return _this.request(__assign({ path: "/api/v3/workflows", method: "GET", secure: true, format: "json" }, params));
1297
- };
1298
- /**
1299
- * @description Get Workflow returns information about a chosen Workflow.
1300
- *
1301
- * @name GetWorkflow
1302
- * @summary Get Workflow
1303
- * @request GET:/api/v3/workflows/{workflow-public-id}
1304
- * @secure
1305
- */
1306
- _this.getWorkflow = function (workflowPublicId, params) {
1307
- if (params === void 0) { params = {}; }
1308
- return _this.request(__assign({ path: "/api/v3/workflows/" + workflowPublicId, method: "GET", secure: true, format: "json" }, params));
1309
- };
1310
- return _this;
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/generated/Api.ts
31
+ var Api_exports = {};
32
+ __export(Api_exports, {
33
+ Api: () => Api
34
+ });
35
+ module.exports = __toCommonJS(Api_exports);
36
+
37
+ // src/generated/http-client.ts
38
+ var import_axios = __toESM(require("axios"));
39
+ var HttpClient = class {
40
+ instance;
41
+ securityData = null;
42
+ securityWorker;
43
+ secure;
44
+ format;
45
+ constructor({
46
+ securityWorker,
47
+ secure,
48
+ format,
49
+ ...axiosConfig
50
+ } = {}) {
51
+ this.instance = import_axios.default.create({
52
+ ...axiosConfig,
53
+ baseURL: axiosConfig.baseURL || "https://api.app.shortcut.com"
54
+ });
55
+ this.secure = secure;
56
+ this.format = format;
57
+ this.securityWorker = securityWorker;
58
+ }
59
+ setSecurityData = (data) => {
60
+ this.securityData = data;
61
+ };
62
+ mergeRequestParams(params1, params2) {
63
+ const method = params1.method || params2 && params2.method;
64
+ return {
65
+ ...this.instance.defaults,
66
+ ...params1,
67
+ ...params2 || {},
68
+ headers: {
69
+ ...method && this.instance.defaults.headers[method.toLowerCase()] || {},
70
+ ...params1.headers || {},
71
+ ...params2 && params2.headers || {}
72
+ }
73
+ };
74
+ }
75
+ stringifyFormItem(formItem) {
76
+ if (typeof formItem === "object" && formItem !== null) {
77
+ return JSON.stringify(formItem);
78
+ } else {
79
+ return `${formItem}`;
1311
80
  }
1312
- return Api;
1313
- }(http_client_1.HttpClient));
1314
- exports.Api = Api;
81
+ }
82
+ createFormData(input) {
83
+ return Object.keys(input || {}).reduce((formData, key) => {
84
+ const property = input[key];
85
+ const propertyContent = property instanceof Array ? property : [property];
86
+ for (const formItem of propertyContent) {
87
+ const isFileType = formItem instanceof Blob;
88
+ formData.append(
89
+ key,
90
+ isFileType ? formItem : this.stringifyFormItem(formItem)
91
+ );
92
+ }
93
+ return formData;
94
+ }, new FormData());
95
+ }
96
+ request = async ({
97
+ secure,
98
+ path,
99
+ type,
100
+ query,
101
+ format,
102
+ body,
103
+ ...params
104
+ }) => {
105
+ const secureParams = (typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
106
+ const requestParams = this.mergeRequestParams(params, secureParams);
107
+ const responseFormat = format || this.format || void 0;
108
+ if (type === "multipart/form-data" /* FormData */ && body && body !== null && typeof body === "object") {
109
+ body = this.createFormData(body);
110
+ }
111
+ if (type === "text/plain" /* Text */ && body && body !== null && typeof body !== "string") {
112
+ body = JSON.stringify(body);
113
+ }
114
+ return this.instance.request({
115
+ ...requestParams,
116
+ headers: {
117
+ ...requestParams.headers || {},
118
+ ...type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}
119
+ },
120
+ params: query,
121
+ responseType: responseFormat,
122
+ data: body,
123
+ url: path
124
+ });
125
+ };
126
+ };
127
+
128
+ // src/generated/Api.ts
129
+ var Api = class extends HttpClient {
130
+ /**
131
+ * @description List Categories returns a list of all Categories and their attributes.
132
+ *
133
+ * @name ListCategories
134
+ * @summary List Categories
135
+ * @request GET:/api/v3/categories
136
+ * @secure
137
+ */
138
+ listCategories = (params = {}) => this.request({
139
+ path: `/api/v3/categories`,
140
+ method: "GET",
141
+ secure: true,
142
+ format: "json",
143
+ ...params
144
+ });
145
+ /**
146
+ * @description Create Category allows you to create a new Category in Shortcut.
147
+ *
148
+ * @name CreateCategory
149
+ * @summary Create Category
150
+ * @request POST:/api/v3/categories
151
+ * @secure
152
+ */
153
+ createCategory = (CreateCategory, params = {}) => this.request({
154
+ path: `/api/v3/categories`,
155
+ method: "POST",
156
+ body: CreateCategory,
157
+ secure: true,
158
+ type: "application/json" /* Json */,
159
+ format: "json",
160
+ ...params
161
+ });
162
+ /**
163
+ * @description Get Category returns information about the selected Category.
164
+ *
165
+ * @name GetCategory
166
+ * @summary Get Category
167
+ * @request GET:/api/v3/categories/{category-public-id}
168
+ * @secure
169
+ */
170
+ getCategory = (categoryPublicId, params = {}) => this.request({
171
+ path: `/api/v3/categories/${categoryPublicId}`,
172
+ method: "GET",
173
+ secure: true,
174
+ format: "json",
175
+ ...params
176
+ });
177
+ /**
178
+ * @description Update Category allows you to replace a Category name with another name. If you try to name a Category something that already exists, you will receive a 422 response.
179
+ *
180
+ * @name UpdateCategory
181
+ * @summary Update Category
182
+ * @request PUT:/api/v3/categories/{category-public-id}
183
+ * @secure
184
+ */
185
+ updateCategory = (categoryPublicId, UpdateCategory, params = {}) => this.request({
186
+ path: `/api/v3/categories/${categoryPublicId}`,
187
+ method: "PUT",
188
+ body: UpdateCategory,
189
+ secure: true,
190
+ type: "application/json" /* Json */,
191
+ format: "json",
192
+ ...params
193
+ });
194
+ /**
195
+ * @description Delete Category can be used to delete any Category.
196
+ *
197
+ * @name DeleteCategory
198
+ * @summary Delete Category
199
+ * @request DELETE:/api/v3/categories/{category-public-id}
200
+ * @secure
201
+ */
202
+ deleteCategory = (categoryPublicId, params = {}) => this.request({
203
+ path: `/api/v3/categories/${categoryPublicId}`,
204
+ method: "DELETE",
205
+ secure: true,
206
+ ...params
207
+ });
208
+ /**
209
+ * @description List Category Milestones returns a list of all Milestones with the Category.
210
+ *
211
+ * @name ListCategoryMilestones
212
+ * @summary List Category Milestones
213
+ * @request GET:/api/v3/categories/{category-public-id}/milestones
214
+ * @secure
215
+ */
216
+ listCategoryMilestones = (categoryPublicId, params = {}) => this.request({
217
+ path: `/api/v3/categories/${categoryPublicId}/milestones`,
218
+ method: "GET",
219
+ secure: true,
220
+ format: "json",
221
+ ...params
222
+ });
223
+ /**
224
+ * @description Returns a list of all Objectives with the Category.
225
+ *
226
+ * @name ListCategoryObjectives
227
+ * @summary List Category Objectives
228
+ * @request GET:/api/v3/categories/{category-public-id}/objectives
229
+ * @secure
230
+ */
231
+ listCategoryObjectives = (categoryPublicId, params = {}) => this.request({
232
+ path: `/api/v3/categories/${categoryPublicId}/objectives`,
233
+ method: "GET",
234
+ secure: true,
235
+ format: "json",
236
+ ...params
237
+ });
238
+ /**
239
+ * No description
240
+ *
241
+ * @name ListCustomFields
242
+ * @summary List Custom Fields
243
+ * @request GET:/api/v3/custom-fields
244
+ * @secure
245
+ */
246
+ listCustomFields = (params = {}) => this.request({
247
+ path: `/api/v3/custom-fields`,
248
+ method: "GET",
249
+ secure: true,
250
+ format: "json",
251
+ ...params
252
+ });
253
+ /**
254
+ * No description
255
+ *
256
+ * @name GetCustomField
257
+ * @summary Get Custom Field
258
+ * @request GET:/api/v3/custom-fields/{custom-field-public-id}
259
+ * @secure
260
+ */
261
+ getCustomField = (customFieldPublicId, params = {}) => this.request({
262
+ path: `/api/v3/custom-fields/${customFieldPublicId}`,
263
+ method: "GET",
264
+ secure: true,
265
+ format: "json",
266
+ ...params
267
+ });
268
+ /**
269
+ * @description Update Custom Field can be used to update the definition of a Custom Field. The order of items in the 'values' collection is interpreted to be their ascending sort order.To delete an existing enum value, simply omit it from the 'values' collection. New enum values may be created inline by including an object in the 'values' collection having a 'value' entry with no 'id' (eg. {'value': 'myNewValue', 'color_key': 'green'}).
270
+ *
271
+ * @name UpdateCustomField
272
+ * @summary Update Custom Field
273
+ * @request PUT:/api/v3/custom-fields/{custom-field-public-id}
274
+ * @secure
275
+ */
276
+ updateCustomField = (customFieldPublicId, UpdateCustomField, params = {}) => this.request({
277
+ path: `/api/v3/custom-fields/${customFieldPublicId}`,
278
+ method: "PUT",
279
+ body: UpdateCustomField,
280
+ secure: true,
281
+ type: "application/json" /* Json */,
282
+ format: "json",
283
+ ...params
284
+ });
285
+ /**
286
+ * No description
287
+ *
288
+ * @name DeleteCustomField
289
+ * @summary Delete Custom Field
290
+ * @request DELETE:/api/v3/custom-fields/{custom-field-public-id}
291
+ * @secure
292
+ */
293
+ deleteCustomField = (customFieldPublicId, params = {}) => this.request({
294
+ path: `/api/v3/custom-fields/${customFieldPublicId}`,
295
+ method: "DELETE",
296
+ secure: true,
297
+ ...params
298
+ });
299
+ /**
300
+ * @description List all the entity templates for the Workspace.
301
+ *
302
+ * @name ListEntityTemplates
303
+ * @summary List Entity Templates
304
+ * @request GET:/api/v3/entity-templates
305
+ * @secure
306
+ */
307
+ listEntityTemplates = (params = {}) => this.request({
308
+ path: `/api/v3/entity-templates`,
309
+ method: "GET",
310
+ secure: true,
311
+ format: "json",
312
+ ...params
313
+ });
314
+ /**
315
+ * @description Create a new entity template for the Workspace.
316
+ *
317
+ * @name CreateEntityTemplate
318
+ * @summary Create Entity Template
319
+ * @request POST:/api/v3/entity-templates
320
+ * @secure
321
+ */
322
+ createEntityTemplate = (CreateEntityTemplate, params = {}) => this.request({
323
+ path: `/api/v3/entity-templates`,
324
+ method: "POST",
325
+ body: CreateEntityTemplate,
326
+ secure: true,
327
+ type: "application/json" /* Json */,
328
+ format: "json",
329
+ ...params
330
+ });
331
+ /**
332
+ * @description Disables the Story Template feature for the Workspace.
333
+ *
334
+ * @name DisableStoryTemplates
335
+ * @summary Disable Story Templates
336
+ * @request PUT:/api/v3/entity-templates/disable
337
+ * @secure
338
+ */
339
+ disableStoryTemplates = (params = {}) => this.request({
340
+ path: `/api/v3/entity-templates/disable`,
341
+ method: "PUT",
342
+ secure: true,
343
+ ...params
344
+ });
345
+ /**
346
+ * @description Enables the Story Template feature for the Workspace.
347
+ *
348
+ * @name EnableStoryTemplates
349
+ * @summary Enable Story Templates
350
+ * @request PUT:/api/v3/entity-templates/enable
351
+ * @secure
352
+ */
353
+ enableStoryTemplates = (params = {}) => this.request({
354
+ path: `/api/v3/entity-templates/enable`,
355
+ method: "PUT",
356
+ secure: true,
357
+ ...params
358
+ });
359
+ /**
360
+ * @description Get Entity Template returns information about a given entity template.
361
+ *
362
+ * @name GetEntityTemplate
363
+ * @summary Get Entity Template
364
+ * @request GET:/api/v3/entity-templates/{entity-template-public-id}
365
+ * @secure
366
+ */
367
+ getEntityTemplate = (entityTemplatePublicId, params = {}) => this.request({
368
+ path: `/api/v3/entity-templates/${entityTemplatePublicId}`,
369
+ method: "GET",
370
+ secure: true,
371
+ format: "json",
372
+ ...params
373
+ });
374
+ /**
375
+ * @description Update an entity template's name or its contents.
376
+ *
377
+ * @name UpdateEntityTemplate
378
+ * @summary Update Entity Template
379
+ * @request PUT:/api/v3/entity-templates/{entity-template-public-id}
380
+ * @secure
381
+ */
382
+ updateEntityTemplate = (entityTemplatePublicId, UpdateEntityTemplate, params = {}) => this.request({
383
+ path: `/api/v3/entity-templates/${entityTemplatePublicId}`,
384
+ method: "PUT",
385
+ body: UpdateEntityTemplate,
386
+ secure: true,
387
+ type: "application/json" /* Json */,
388
+ format: "json",
389
+ ...params
390
+ });
391
+ /**
392
+ * No description
393
+ *
394
+ * @name DeleteEntityTemplate
395
+ * @summary Delete Entity Template
396
+ * @request DELETE:/api/v3/entity-templates/{entity-template-public-id}
397
+ * @secure
398
+ */
399
+ deleteEntityTemplate = (entityTemplatePublicId, params = {}) => this.request({
400
+ path: `/api/v3/entity-templates/${entityTemplatePublicId}`,
401
+ method: "DELETE",
402
+ secure: true,
403
+ ...params
404
+ });
405
+ /**
406
+ * @description Returns the Epic Workflow for the Workspace.
407
+ *
408
+ * @name GetEpicWorkflow
409
+ * @summary Get Epic Workflow
410
+ * @request GET:/api/v3/epic-workflow
411
+ * @secure
412
+ */
413
+ getEpicWorkflow = (params = {}) => this.request({
414
+ path: `/api/v3/epic-workflow`,
415
+ method: "GET",
416
+ secure: true,
417
+ format: "json",
418
+ ...params
419
+ });
420
+ /**
421
+ * @description List Epics returns a list of all Epics and their attributes.
422
+ *
423
+ * @name ListEpics
424
+ * @summary List Epics
425
+ * @request GET:/api/v3/epics
426
+ * @secure
427
+ */
428
+ listEpics = (query, params = {}) => this.request({
429
+ path: `/api/v3/epics`,
430
+ method: "GET",
431
+ query,
432
+ secure: true,
433
+ format: "json",
434
+ ...params
435
+ });
436
+ /**
437
+ * @description Create Epic allows you to create a new Epic in Shortcut.
438
+ *
439
+ * @name CreateEpic
440
+ * @summary Create Epic
441
+ * @request POST:/api/v3/epics
442
+ * @secure
443
+ */
444
+ createEpic = (CreateEpic, params = {}) => this.request({
445
+ path: `/api/v3/epics`,
446
+ method: "POST",
447
+ body: CreateEpic,
448
+ secure: true,
449
+ type: "application/json" /* Json */,
450
+ format: "json",
451
+ ...params
452
+ });
453
+ /**
454
+ * @description List Epics with pagination returns a paginated list of Epics and their attributes.
455
+ *
456
+ * @name ListEpicsPaginated
457
+ * @summary List Epics Paginated
458
+ * @request GET:/api/v3/epics/paginated
459
+ * @secure
460
+ */
461
+ listEpicsPaginated = (query, params = {}) => this.request({
462
+ path: `/api/v3/epics/paginated`,
463
+ method: "GET",
464
+ query,
465
+ secure: true,
466
+ format: "json",
467
+ ...params
468
+ });
469
+ /**
470
+ * @description Get Epic returns information about the selected Epic.
471
+ *
472
+ * @name GetEpic
473
+ * @summary Get Epic
474
+ * @request GET:/api/v3/epics/{epic-public-id}
475
+ * @secure
476
+ */
477
+ getEpic = (epicPublicId, params = {}) => this.request({
478
+ path: `/api/v3/epics/${epicPublicId}`,
479
+ method: "GET",
480
+ secure: true,
481
+ format: "json",
482
+ ...params
483
+ });
484
+ /**
485
+ * @description Update Epic can be used to update numerous fields in the Epic. The only required parameter is Epic ID, which can be found in the Shortcut UI.
486
+ *
487
+ * @name UpdateEpic
488
+ * @summary Update Epic
489
+ * @request PUT:/api/v3/epics/{epic-public-id}
490
+ * @secure
491
+ */
492
+ updateEpic = (epicPublicId, UpdateEpic, params = {}) => this.request({
493
+ path: `/api/v3/epics/${epicPublicId}`,
494
+ method: "PUT",
495
+ body: UpdateEpic,
496
+ secure: true,
497
+ type: "application/json" /* Json */,
498
+ format: "json",
499
+ ...params
500
+ });
501
+ /**
502
+ * @description Delete Epic can be used to delete the Epic. The only required parameter is Epic ID.
503
+ *
504
+ * @name DeleteEpic
505
+ * @summary Delete Epic
506
+ * @request DELETE:/api/v3/epics/{epic-public-id}
507
+ * @secure
508
+ */
509
+ deleteEpic = (epicPublicId, params = {}) => this.request({
510
+ path: `/api/v3/epics/${epicPublicId}`,
511
+ method: "DELETE",
512
+ secure: true,
513
+ ...params
514
+ });
515
+ /**
516
+ * @description Get a list of all Comments on an Epic.
517
+ *
518
+ * @name ListEpicComments
519
+ * @summary List Epic Comments
520
+ * @request GET:/api/v3/epics/{epic-public-id}/comments
521
+ * @secure
522
+ */
523
+ listEpicComments = (epicPublicId, params = {}) => this.request({
524
+ path: `/api/v3/epics/${epicPublicId}/comments`,
525
+ method: "GET",
526
+ secure: true,
527
+ format: "json",
528
+ ...params
529
+ });
530
+ /**
531
+ * @description This endpoint allows you to create a threaded Comment on an Epic.
532
+ *
533
+ * @name CreateEpicComment
534
+ * @summary Create Epic Comment
535
+ * @request POST:/api/v3/epics/{epic-public-id}/comments
536
+ * @secure
537
+ */
538
+ createEpicComment = (epicPublicId, CreateEpicComment, params = {}) => this.request({
539
+ path: `/api/v3/epics/${epicPublicId}/comments`,
540
+ method: "POST",
541
+ body: CreateEpicComment,
542
+ secure: true,
543
+ type: "application/json" /* Json */,
544
+ format: "json",
545
+ ...params
546
+ });
547
+ /**
548
+ * @description This endpoint allows you to create a nested Comment reply to an existing Epic Comment.
549
+ *
550
+ * @name CreateEpicCommentComment
551
+ * @summary Create Epic Comment Comment
552
+ * @request POST:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
553
+ * @secure
554
+ */
555
+ createEpicCommentComment = (epicPublicId, commentPublicId, CreateCommentComment, params = {}) => this.request({
556
+ path: `/api/v3/epics/${epicPublicId}/comments/${commentPublicId}`,
557
+ method: "POST",
558
+ body: CreateCommentComment,
559
+ secure: true,
560
+ type: "application/json" /* Json */,
561
+ format: "json",
562
+ ...params
563
+ });
564
+ /**
565
+ * @description This endpoint returns information about the selected Epic Comment.
566
+ *
567
+ * @name GetEpicComment
568
+ * @summary Get Epic Comment
569
+ * @request GET:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
570
+ * @secure
571
+ */
572
+ getEpicComment = (epicPublicId, commentPublicId, params = {}) => this.request({
573
+ path: `/api/v3/epics/${epicPublicId}/comments/${commentPublicId}`,
574
+ method: "GET",
575
+ secure: true,
576
+ format: "json",
577
+ ...params
578
+ });
579
+ /**
580
+ * @description This endpoint allows you to update a threaded Comment on an Epic.
581
+ *
582
+ * @name UpdateEpicComment
583
+ * @summary Update Epic Comment
584
+ * @request PUT:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
585
+ * @secure
586
+ */
587
+ updateEpicComment = (epicPublicId, commentPublicId, UpdateComment, params = {}) => this.request({
588
+ path: `/api/v3/epics/${epicPublicId}/comments/${commentPublicId}`,
589
+ method: "PUT",
590
+ body: UpdateComment,
591
+ secure: true,
592
+ type: "application/json" /* Json */,
593
+ format: "json",
594
+ ...params
595
+ });
596
+ /**
597
+ * @description This endpoint allows you to delete a Comment from an Epic.
598
+ *
599
+ * @name DeleteEpicComment
600
+ * @summary Delete Epic Comment
601
+ * @request DELETE:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
602
+ * @secure
603
+ */
604
+ deleteEpicComment = (epicPublicId, commentPublicId, params = {}) => this.request({
605
+ path: `/api/v3/epics/${epicPublicId}/comments/${commentPublicId}`,
606
+ method: "DELETE",
607
+ secure: true,
608
+ ...params
609
+ });
610
+ /**
611
+ * @description Get the current health for the specified Epic.
612
+ *
613
+ * @name GetEpicHealth
614
+ * @summary Get Epic Health
615
+ * @request GET:/api/v3/epics/{epic-public-id}/health
616
+ * @secure
617
+ */
618
+ getEpicHealth = (epicPublicId, params = {}) => this.request({
619
+ path: `/api/v3/epics/${epicPublicId}/health`,
620
+ method: "GET",
621
+ secure: true,
622
+ format: "json",
623
+ ...params
624
+ });
625
+ /**
626
+ * @description Create a new health status for the specified Epic.
627
+ *
628
+ * @name CreateEpicHealth
629
+ * @summary Create Epic Health
630
+ * @request POST:/api/v3/epics/{epic-public-id}/health
631
+ * @secure
632
+ */
633
+ createEpicHealth = (epicPublicId, CreateEpicHealth, params = {}) => this.request({
634
+ path: `/api/v3/epics/${epicPublicId}/health`,
635
+ method: "POST",
636
+ body: CreateEpicHealth,
637
+ secure: true,
638
+ type: "application/json" /* Json */,
639
+ format: "json",
640
+ ...params
641
+ });
642
+ /**
643
+ * @description List the history of health statuses for the specified Epic, most recent first.
644
+ *
645
+ * @name ListEpicHealths
646
+ * @summary List Epic Healths
647
+ * @request GET:/api/v3/epics/{epic-public-id}/health-history
648
+ * @secure
649
+ */
650
+ listEpicHealths = (epicPublicId, params = {}) => this.request({
651
+ path: `/api/v3/epics/${epicPublicId}/health-history`,
652
+ method: "GET",
653
+ secure: true,
654
+ format: "json",
655
+ ...params
656
+ });
657
+ /**
658
+ * @description Get a list of all Stories in an Epic.
659
+ *
660
+ * @name ListEpicStories
661
+ * @summary List Epic Stories
662
+ * @request GET:/api/v3/epics/{epic-public-id}/stories
663
+ * @secure
664
+ */
665
+ listEpicStories = (epicPublicId, query, params = {}) => this.request({
666
+ path: `/api/v3/epics/${epicPublicId}/stories`,
667
+ method: "GET",
668
+ query,
669
+ secure: true,
670
+ format: "json",
671
+ ...params
672
+ });
673
+ /**
674
+ * @description This endpoint allows you to unlink a productboard epic.
675
+ *
676
+ * @name UnlinkProductboardFromEpic
677
+ * @summary Unlink Productboard from Epic
678
+ * @request POST:/api/v3/epics/{epic-public-id}/unlink-productboard
679
+ * @secure
680
+ */
681
+ unlinkProductboardFromEpic = (epicPublicId, params = {}) => this.request({
682
+ path: `/api/v3/epics/${epicPublicId}/unlink-productboard`,
683
+ method: "POST",
684
+ secure: true,
685
+ ...params
686
+ });
687
+ /**
688
+ * @description Get Stories which have a given External Link associated with them.
689
+ *
690
+ * @name GetExternalLinkStories
691
+ * @summary Get External Link Stories
692
+ * @request GET:/api/v3/external-link/stories
693
+ * @secure
694
+ */
695
+ getExternalLinkStories = (query, params = {}) => this.request({
696
+ path: `/api/v3/external-link/stories`,
697
+ method: "GET",
698
+ query,
699
+ secure: true,
700
+ format: "json",
701
+ ...params
702
+ });
703
+ /**
704
+ * @description List Files returns a list of all UploadedFiles in the workspace.
705
+ *
706
+ * @name ListFiles
707
+ * @summary List Files
708
+ * @request GET:/api/v3/files
709
+ * @secure
710
+ */
711
+ listFiles = (params = {}) => this.request({
712
+ path: `/api/v3/files`,
713
+ method: "GET",
714
+ secure: true,
715
+ format: "json",
716
+ ...params
717
+ });
718
+ /**
719
+ * @description Upload Files uploads one or many files and optionally associates them with a story. Use the multipart/form-data content-type to upload. Each `file` key should contain a separate file. Each UploadedFile's name comes from the Content-Disposition header "filename" directive for that field.
720
+ *
721
+ * @name UploadFiles
722
+ * @summary Upload Files
723
+ * @request POST:/api/v3/files
724
+ * @secure
725
+ */
726
+ uploadFiles = (data, params = {}) => this.request({
727
+ path: `/api/v3/files`,
728
+ method: "POST",
729
+ body: data,
730
+ secure: true,
731
+ type: "multipart/form-data" /* FormData */,
732
+ format: "json",
733
+ ...params
734
+ });
735
+ /**
736
+ * @description Get File returns information about the selected UploadedFile.
737
+ *
738
+ * @name GetFile
739
+ * @summary Get File
740
+ * @request GET:/api/v3/files/{file-public-id}
741
+ * @secure
742
+ */
743
+ getFile = (filePublicId, params = {}) => this.request({
744
+ path: `/api/v3/files/${filePublicId}`,
745
+ method: "GET",
746
+ secure: true,
747
+ format: "json",
748
+ ...params
749
+ });
750
+ /**
751
+ * @description Update File updates the properties of an UploadedFile (but not its content).
752
+ *
753
+ * @name UpdateFile
754
+ * @summary Update File
755
+ * @request PUT:/api/v3/files/{file-public-id}
756
+ * @secure
757
+ */
758
+ updateFile = (filePublicId, UpdateFile, params = {}) => this.request({
759
+ path: `/api/v3/files/${filePublicId}`,
760
+ method: "PUT",
761
+ body: UpdateFile,
762
+ secure: true,
763
+ type: "application/json" /* Json */,
764
+ format: "json",
765
+ ...params
766
+ });
767
+ /**
768
+ * @description Delete File deletes a previously uploaded file.
769
+ *
770
+ * @name DeleteFile
771
+ * @summary Delete File
772
+ * @request DELETE:/api/v3/files/{file-public-id}
773
+ * @secure
774
+ */
775
+ deleteFile = (filePublicId, params = {}) => this.request({
776
+ path: `/api/v3/files/${filePublicId}`,
777
+ method: "DELETE",
778
+ secure: true,
779
+ ...params
780
+ });
781
+ /**
782
+ * @description A group in our API maps to a "Team" within the Shortcut Product. A Team is a collection of Users that can be associated to Stories, Epics, and Iterations within Shortcut.
783
+ *
784
+ * @name ListGroups
785
+ * @summary List Groups
786
+ * @request GET:/api/v3/groups
787
+ * @secure
788
+ */
789
+ listGroups = (params = {}) => this.request({
790
+ path: `/api/v3/groups`,
791
+ method: "GET",
792
+ secure: true,
793
+ format: "json",
794
+ ...params
795
+ });
796
+ /**
797
+ * No description
798
+ *
799
+ * @name CreateGroup
800
+ * @summary Create Group
801
+ * @request POST:/api/v3/groups
802
+ * @secure
803
+ */
804
+ createGroup = (CreateGroup, params = {}) => this.request({
805
+ path: `/api/v3/groups`,
806
+ method: "POST",
807
+ body: CreateGroup,
808
+ secure: true,
809
+ type: "application/json" /* Json */,
810
+ format: "json",
811
+ ...params
812
+ });
813
+ /**
814
+ * No description
815
+ *
816
+ * @name GetGroup
817
+ * @summary Get Group
818
+ * @request GET:/api/v3/groups/{group-public-id}
819
+ * @secure
820
+ */
821
+ getGroup = (groupPublicId, params = {}) => this.request({
822
+ path: `/api/v3/groups/${groupPublicId}`,
823
+ method: "GET",
824
+ secure: true,
825
+ format: "json",
826
+ ...params
827
+ });
828
+ /**
829
+ * No description
830
+ *
831
+ * @name UpdateGroup
832
+ * @summary Update Group
833
+ * @request PUT:/api/v3/groups/{group-public-id}
834
+ * @secure
835
+ */
836
+ updateGroup = (groupPublicId, UpdateGroup, params = {}) => this.request({
837
+ path: `/api/v3/groups/${groupPublicId}`,
838
+ method: "PUT",
839
+ body: UpdateGroup,
840
+ secure: true,
841
+ type: "application/json" /* Json */,
842
+ format: "json",
843
+ ...params
844
+ });
845
+ /**
846
+ * @description List the Stories assigned to the Group. (By default, limited to 1,000).
847
+ *
848
+ * @name ListGroupStories
849
+ * @summary List Group Stories
850
+ * @request GET:/api/v3/groups/{group-public-id}/stories
851
+ * @secure
852
+ */
853
+ listGroupStories = (groupPublicId, query, params = {}) => this.request({
854
+ path: `/api/v3/groups/${groupPublicId}/stories`,
855
+ method: "GET",
856
+ query,
857
+ secure: true,
858
+ format: "json",
859
+ ...params
860
+ });
861
+ /**
862
+ * @description Update an existing health status by its ID.
863
+ *
864
+ * @name UpdateHealth
865
+ * @summary Update Health
866
+ * @request PUT:/api/v3/health/{health-public-id}
867
+ * @secure
868
+ */
869
+ updateHealth = (healthPublicId, UpdateHealth, params = {}) => this.request({
870
+ path: `/api/v3/health/${healthPublicId}`,
871
+ method: "PUT",
872
+ body: UpdateHealth,
873
+ secure: true,
874
+ type: "application/json" /* Json */,
875
+ format: "json",
876
+ ...params
877
+ });
878
+ /**
879
+ * No description
880
+ *
881
+ * @name CreateGenericIntegration
882
+ * @summary Create Generic Integration
883
+ * @request POST:/api/v3/integrations/webhook
884
+ * @secure
885
+ */
886
+ createGenericIntegration = (CreateGenericIntegration, params = {}) => this.request({
887
+ path: `/api/v3/integrations/webhook`,
888
+ method: "POST",
889
+ body: CreateGenericIntegration,
890
+ secure: true,
891
+ type: "application/json" /* Json */,
892
+ ...params
893
+ });
894
+ /**
895
+ * No description
896
+ *
897
+ * @name GetGenericIntegration
898
+ * @summary Get Generic Integration
899
+ * @request GET:/api/v3/integrations/webhook/{integration-public-id}
900
+ * @secure
901
+ */
902
+ getGenericIntegration = (integrationPublicId, params = {}) => this.request({
903
+ path: `/api/v3/integrations/webhook/${integrationPublicId}`,
904
+ method: "GET",
905
+ secure: true,
906
+ ...params
907
+ });
908
+ /**
909
+ * No description
910
+ *
911
+ * @name DeleteGenericIntegration
912
+ * @summary Delete Generic Integration
913
+ * @request DELETE:/api/v3/integrations/webhook/{integration-public-id}
914
+ * @secure
915
+ */
916
+ deleteGenericIntegration = (integrationPublicId, params = {}) => this.request({
917
+ path: `/api/v3/integrations/webhook/${integrationPublicId}`,
918
+ method: "DELETE",
919
+ secure: true,
920
+ ...params
921
+ });
922
+ /**
923
+ * No description
924
+ *
925
+ * @name ListIterations
926
+ * @summary List Iterations
927
+ * @request GET:/api/v3/iterations
928
+ * @secure
929
+ */
930
+ listIterations = (params = {}) => this.request({
931
+ path: `/api/v3/iterations`,
932
+ method: "GET",
933
+ secure: true,
934
+ format: "json",
935
+ ...params
936
+ });
937
+ /**
938
+ * No description
939
+ *
940
+ * @name CreateIteration
941
+ * @summary Create Iteration
942
+ * @request POST:/api/v3/iterations
943
+ * @secure
944
+ */
945
+ createIteration = (CreateIteration, params = {}) => this.request({
946
+ path: `/api/v3/iterations`,
947
+ method: "POST",
948
+ body: CreateIteration,
949
+ secure: true,
950
+ type: "application/json" /* Json */,
951
+ format: "json",
952
+ ...params
953
+ });
954
+ /**
955
+ * @description Disables Iterations for the current workspace
956
+ *
957
+ * @name DisableIterations
958
+ * @summary Disable Iterations
959
+ * @request PUT:/api/v3/iterations/disable
960
+ * @secure
961
+ */
962
+ disableIterations = (params = {}) => this.request({
963
+ path: `/api/v3/iterations/disable`,
964
+ method: "PUT",
965
+ secure: true,
966
+ ...params
967
+ });
968
+ /**
969
+ * @description Enables Iterations for the current workspace
970
+ *
971
+ * @name EnableIterations
972
+ * @summary Enable Iterations
973
+ * @request PUT:/api/v3/iterations/enable
974
+ * @secure
975
+ */
976
+ enableIterations = (params = {}) => this.request({
977
+ path: `/api/v3/iterations/enable`,
978
+ method: "PUT",
979
+ secure: true,
980
+ ...params
981
+ });
982
+ /**
983
+ * No description
984
+ *
985
+ * @name GetIteration
986
+ * @summary Get Iteration
987
+ * @request GET:/api/v3/iterations/{iteration-public-id}
988
+ * @secure
989
+ */
990
+ getIteration = (iterationPublicId, params = {}) => this.request({
991
+ path: `/api/v3/iterations/${iterationPublicId}`,
992
+ method: "GET",
993
+ secure: true,
994
+ format: "json",
995
+ ...params
996
+ });
997
+ /**
998
+ * No description
999
+ *
1000
+ * @name UpdateIteration
1001
+ * @summary Update Iteration
1002
+ * @request PUT:/api/v3/iterations/{iteration-public-id}
1003
+ * @secure
1004
+ */
1005
+ updateIteration = (iterationPublicId, UpdateIteration, params = {}) => this.request({
1006
+ path: `/api/v3/iterations/${iterationPublicId}`,
1007
+ method: "PUT",
1008
+ body: UpdateIteration,
1009
+ secure: true,
1010
+ type: "application/json" /* Json */,
1011
+ format: "json",
1012
+ ...params
1013
+ });
1014
+ /**
1015
+ * No description
1016
+ *
1017
+ * @name DeleteIteration
1018
+ * @summary Delete Iteration
1019
+ * @request DELETE:/api/v3/iterations/{iteration-public-id}
1020
+ * @secure
1021
+ */
1022
+ deleteIteration = (iterationPublicId, params = {}) => this.request({
1023
+ path: `/api/v3/iterations/${iterationPublicId}`,
1024
+ method: "DELETE",
1025
+ secure: true,
1026
+ ...params
1027
+ });
1028
+ /**
1029
+ * @description Get a list of all Stories in an Iteration.
1030
+ *
1031
+ * @name ListIterationStories
1032
+ * @summary List Iteration Stories
1033
+ * @request GET:/api/v3/iterations/{iteration-public-id}/stories
1034
+ * @secure
1035
+ */
1036
+ listIterationStories = (iterationPublicId, query, params = {}) => this.request({
1037
+ path: `/api/v3/iterations/${iterationPublicId}/stories`,
1038
+ method: "GET",
1039
+ query,
1040
+ secure: true,
1041
+ format: "json",
1042
+ ...params
1043
+ });
1044
+ /**
1045
+ * @description Get Key Result returns information about a chosen Key Result.
1046
+ *
1047
+ * @name GetKeyResult
1048
+ * @summary Get Key Result
1049
+ * @request GET:/api/v3/key-results/{key-result-public-id}
1050
+ * @secure
1051
+ */
1052
+ getKeyResult = (keyResultPublicId, params = {}) => this.request({
1053
+ path: `/api/v3/key-results/${keyResultPublicId}`,
1054
+ method: "GET",
1055
+ secure: true,
1056
+ format: "json",
1057
+ ...params
1058
+ });
1059
+ /**
1060
+ * @description Update Key Result allows updating a Key Result's name or initial, observed, or target values.
1061
+ *
1062
+ * @name UpdateKeyResult
1063
+ * @summary Update Key Result
1064
+ * @request PUT:/api/v3/key-results/{key-result-public-id}
1065
+ * @secure
1066
+ */
1067
+ updateKeyResult = (keyResultPublicId, UpdateKeyResult, params = {}) => this.request({
1068
+ path: `/api/v3/key-results/${keyResultPublicId}`,
1069
+ method: "PUT",
1070
+ body: UpdateKeyResult,
1071
+ secure: true,
1072
+ type: "application/json" /* Json */,
1073
+ format: "json",
1074
+ ...params
1075
+ });
1076
+ /**
1077
+ * @description List Labels returns a list of all Labels and their attributes.
1078
+ *
1079
+ * @name ListLabels
1080
+ * @summary List Labels
1081
+ * @request GET:/api/v3/labels
1082
+ * @secure
1083
+ */
1084
+ listLabels = (query, params = {}) => this.request({
1085
+ path: `/api/v3/labels`,
1086
+ method: "GET",
1087
+ query,
1088
+ secure: true,
1089
+ format: "json",
1090
+ ...params
1091
+ });
1092
+ /**
1093
+ * @description Create Label allows you to create a new Label in Shortcut.
1094
+ *
1095
+ * @name CreateLabel
1096
+ * @summary Create Label
1097
+ * @request POST:/api/v3/labels
1098
+ * @secure
1099
+ */
1100
+ createLabel = (CreateLabelParams, params = {}) => this.request({
1101
+ path: `/api/v3/labels`,
1102
+ method: "POST",
1103
+ body: CreateLabelParams,
1104
+ secure: true,
1105
+ type: "application/json" /* Json */,
1106
+ format: "json",
1107
+ ...params
1108
+ });
1109
+ /**
1110
+ * @description Get Label returns information about the selected Label.
1111
+ *
1112
+ * @name GetLabel
1113
+ * @summary Get Label
1114
+ * @request GET:/api/v3/labels/{label-public-id}
1115
+ * @secure
1116
+ */
1117
+ getLabel = (labelPublicId, params = {}) => this.request({
1118
+ path: `/api/v3/labels/${labelPublicId}`,
1119
+ method: "GET",
1120
+ secure: true,
1121
+ format: "json",
1122
+ ...params
1123
+ });
1124
+ /**
1125
+ * @description Update Label allows you to replace a Label name with another name. If you try to name a Label something that already exists, you will receive a 422 response.
1126
+ *
1127
+ * @name UpdateLabel
1128
+ * @summary Update Label
1129
+ * @request PUT:/api/v3/labels/{label-public-id}
1130
+ * @secure
1131
+ */
1132
+ updateLabel = (labelPublicId, UpdateLabel, params = {}) => this.request({
1133
+ path: `/api/v3/labels/${labelPublicId}`,
1134
+ method: "PUT",
1135
+ body: UpdateLabel,
1136
+ secure: true,
1137
+ type: "application/json" /* Json */,
1138
+ format: "json",
1139
+ ...params
1140
+ });
1141
+ /**
1142
+ * @description Delete Label can be used to delete any Label.
1143
+ *
1144
+ * @name DeleteLabel
1145
+ * @summary Delete Label
1146
+ * @request DELETE:/api/v3/labels/{label-public-id}
1147
+ * @secure
1148
+ */
1149
+ deleteLabel = (labelPublicId, params = {}) => this.request({
1150
+ path: `/api/v3/labels/${labelPublicId}`,
1151
+ method: "DELETE",
1152
+ secure: true,
1153
+ ...params
1154
+ });
1155
+ /**
1156
+ * @description List all of the Epics with the Label.
1157
+ *
1158
+ * @name ListLabelEpics
1159
+ * @summary List Label Epics
1160
+ * @request GET:/api/v3/labels/{label-public-id}/epics
1161
+ * @secure
1162
+ */
1163
+ listLabelEpics = (labelPublicId, params = {}) => this.request({
1164
+ path: `/api/v3/labels/${labelPublicId}/epics`,
1165
+ method: "GET",
1166
+ secure: true,
1167
+ format: "json",
1168
+ ...params
1169
+ });
1170
+ /**
1171
+ * @description List all of the Stories with the Label.
1172
+ *
1173
+ * @name ListLabelStories
1174
+ * @summary List Label Stories
1175
+ * @request GET:/api/v3/labels/{label-public-id}/stories
1176
+ * @secure
1177
+ */
1178
+ listLabelStories = (labelPublicId, query, params = {}) => this.request({
1179
+ path: `/api/v3/labels/${labelPublicId}/stories`,
1180
+ method: "GET",
1181
+ query,
1182
+ secure: true,
1183
+ format: "json",
1184
+ ...params
1185
+ });
1186
+ /**
1187
+ * @description List Linked Files returns a list of all Linked-Files and their attributes.
1188
+ *
1189
+ * @name ListLinkedFiles
1190
+ * @summary List Linked Files
1191
+ * @request GET:/api/v3/linked-files
1192
+ * @secure
1193
+ */
1194
+ listLinkedFiles = (params = {}) => this.request({
1195
+ path: `/api/v3/linked-files`,
1196
+ method: "GET",
1197
+ secure: true,
1198
+ format: "json",
1199
+ ...params
1200
+ });
1201
+ /**
1202
+ * @description Create Linked File allows you to create a new Linked File in Shortcut.
1203
+ *
1204
+ * @name CreateLinkedFile
1205
+ * @summary Create Linked File
1206
+ * @request POST:/api/v3/linked-files
1207
+ * @secure
1208
+ */
1209
+ createLinkedFile = (CreateLinkedFile, params = {}) => this.request({
1210
+ path: `/api/v3/linked-files`,
1211
+ method: "POST",
1212
+ body: CreateLinkedFile,
1213
+ secure: true,
1214
+ type: "application/json" /* Json */,
1215
+ format: "json",
1216
+ ...params
1217
+ });
1218
+ /**
1219
+ * @description Get File returns information about the selected Linked File.
1220
+ *
1221
+ * @name GetLinkedFile
1222
+ * @summary Get Linked File
1223
+ * @request GET:/api/v3/linked-files/{linked-file-public-id}
1224
+ * @secure
1225
+ */
1226
+ getLinkedFile = (linkedFilePublicId, params = {}) => this.request({
1227
+ path: `/api/v3/linked-files/${linkedFilePublicId}`,
1228
+ method: "GET",
1229
+ secure: true,
1230
+ format: "json",
1231
+ ...params
1232
+ });
1233
+ /**
1234
+ * @description Updated Linked File allows you to update properties of a previously attached Linked-File.
1235
+ *
1236
+ * @name UpdateLinkedFile
1237
+ * @summary Update Linked File
1238
+ * @request PUT:/api/v3/linked-files/{linked-file-public-id}
1239
+ * @secure
1240
+ */
1241
+ updateLinkedFile = (linkedFilePublicId, UpdateLinkedFile, params = {}) => this.request({
1242
+ path: `/api/v3/linked-files/${linkedFilePublicId}`,
1243
+ method: "PUT",
1244
+ body: UpdateLinkedFile,
1245
+ secure: true,
1246
+ type: "application/json" /* Json */,
1247
+ format: "json",
1248
+ ...params
1249
+ });
1250
+ /**
1251
+ * @description Delete Linked File can be used to delete any previously attached Linked-File.
1252
+ *
1253
+ * @name DeleteLinkedFile
1254
+ * @summary Delete Linked File
1255
+ * @request DELETE:/api/v3/linked-files/{linked-file-public-id}
1256
+ * @secure
1257
+ */
1258
+ deleteLinkedFile = (linkedFilePublicId, params = {}) => this.request({
1259
+ path: `/api/v3/linked-files/${linkedFilePublicId}`,
1260
+ method: "DELETE",
1261
+ secure: true,
1262
+ ...params
1263
+ });
1264
+ /**
1265
+ * @description Returns information about the authenticated member.
1266
+ *
1267
+ * @name GetCurrentMemberInfo
1268
+ * @summary Get Current Member Info
1269
+ * @request GET:/api/v3/member
1270
+ * @secure
1271
+ */
1272
+ getCurrentMemberInfo = (params = {}) => this.request({
1273
+ path: `/api/v3/member`,
1274
+ method: "GET",
1275
+ secure: true,
1276
+ format: "json",
1277
+ ...params
1278
+ });
1279
+ /**
1280
+ * @description Returns information about members of the Workspace.
1281
+ *
1282
+ * @name ListMembers
1283
+ * @summary List Members
1284
+ * @request GET:/api/v3/members
1285
+ * @secure
1286
+ */
1287
+ listMembers = (query, params = {}) => this.request({
1288
+ path: `/api/v3/members`,
1289
+ method: "GET",
1290
+ query,
1291
+ secure: true,
1292
+ format: "json",
1293
+ ...params
1294
+ });
1295
+ /**
1296
+ * @description Returns information about a Member.
1297
+ *
1298
+ * @name GetMember
1299
+ * @summary Get Member
1300
+ * @request GET:/api/v3/members/{member-public-id}
1301
+ * @secure
1302
+ */
1303
+ getMember = (memberPublicId, query, params = {}) => this.request({
1304
+ path: `/api/v3/members/${memberPublicId}`,
1305
+ method: "GET",
1306
+ query,
1307
+ secure: true,
1308
+ format: "json",
1309
+ ...params
1310
+ });
1311
+ /**
1312
+ * @description (Deprecated: Use 'List Objectives') List Milestones returns a list of all Milestones and their attributes.
1313
+ *
1314
+ * @name ListMilestones
1315
+ * @summary List Milestones
1316
+ * @request GET:/api/v3/milestones
1317
+ * @secure
1318
+ */
1319
+ listMilestones = (params = {}) => this.request({
1320
+ path: `/api/v3/milestones`,
1321
+ method: "GET",
1322
+ secure: true,
1323
+ format: "json",
1324
+ ...params
1325
+ });
1326
+ /**
1327
+ * @description (Deprecated: Use 'Create Objective') Create Milestone allows you to create a new Milestone in Shortcut.
1328
+ *
1329
+ * @name CreateMilestone
1330
+ * @summary Create Milestone
1331
+ * @request POST:/api/v3/milestones
1332
+ * @secure
1333
+ */
1334
+ createMilestone = (CreateMilestone, params = {}) => this.request({
1335
+ path: `/api/v3/milestones`,
1336
+ method: "POST",
1337
+ body: CreateMilestone,
1338
+ secure: true,
1339
+ type: "application/json" /* Json */,
1340
+ format: "json",
1341
+ ...params
1342
+ });
1343
+ /**
1344
+ * @description (Deprecated: Use 'Get Objective') Get Milestone returns information about a chosen Milestone.
1345
+ *
1346
+ * @name GetMilestone
1347
+ * @summary Get Milestone
1348
+ * @request GET:/api/v3/milestones/{milestone-public-id}
1349
+ * @secure
1350
+ */
1351
+ getMilestone = (milestonePublicId, params = {}) => this.request({
1352
+ path: `/api/v3/milestones/${milestonePublicId}`,
1353
+ method: "GET",
1354
+ secure: true,
1355
+ format: "json",
1356
+ ...params
1357
+ });
1358
+ /**
1359
+ * @description (Deprecated: Use 'Update Objective') Update Milestone can be used to update Milestone properties.
1360
+ *
1361
+ * @name UpdateMilestone
1362
+ * @summary Update Milestone
1363
+ * @request PUT:/api/v3/milestones/{milestone-public-id}
1364
+ * @secure
1365
+ */
1366
+ updateMilestone = (milestonePublicId, UpdateMilestone, params = {}) => this.request({
1367
+ path: `/api/v3/milestones/${milestonePublicId}`,
1368
+ method: "PUT",
1369
+ body: UpdateMilestone,
1370
+ secure: true,
1371
+ type: "application/json" /* Json */,
1372
+ format: "json",
1373
+ ...params
1374
+ });
1375
+ /**
1376
+ * @description (Deprecated: Use 'Delete Objective') Delete Milestone can be used to delete any Milestone.
1377
+ *
1378
+ * @name DeleteMilestone
1379
+ * @summary Delete Milestone
1380
+ * @request DELETE:/api/v3/milestones/{milestone-public-id}
1381
+ * @secure
1382
+ */
1383
+ deleteMilestone = (milestonePublicId, params = {}) => this.request({
1384
+ path: `/api/v3/milestones/${milestonePublicId}`,
1385
+ method: "DELETE",
1386
+ secure: true,
1387
+ ...params
1388
+ });
1389
+ /**
1390
+ * @description (Deprecated: Use 'List Objective Epics') List all of the Epics within the Milestone.
1391
+ *
1392
+ * @name ListMilestoneEpics
1393
+ * @summary List Milestone Epics
1394
+ * @request GET:/api/v3/milestones/{milestone-public-id}/epics
1395
+ * @secure
1396
+ */
1397
+ listMilestoneEpics = (milestonePublicId, params = {}) => this.request({
1398
+ path: `/api/v3/milestones/${milestonePublicId}/epics`,
1399
+ method: "GET",
1400
+ secure: true,
1401
+ format: "json",
1402
+ ...params
1403
+ });
1404
+ /**
1405
+ * @description List Objectives returns a list of all Objectives and their attributes.
1406
+ *
1407
+ * @name ListObjectives
1408
+ * @summary List Objectives
1409
+ * @request GET:/api/v3/objectives
1410
+ * @secure
1411
+ */
1412
+ listObjectives = (params = {}) => this.request({
1413
+ path: `/api/v3/objectives`,
1414
+ method: "GET",
1415
+ secure: true,
1416
+ format: "json",
1417
+ ...params
1418
+ });
1419
+ /**
1420
+ * @description Create Objective allows you to create a new Objective in Shortcut.
1421
+ *
1422
+ * @name CreateObjective
1423
+ * @summary Create Objective
1424
+ * @request POST:/api/v3/objectives
1425
+ * @secure
1426
+ */
1427
+ createObjective = (CreateObjective, params = {}) => this.request({
1428
+ path: `/api/v3/objectives`,
1429
+ method: "POST",
1430
+ body: CreateObjective,
1431
+ secure: true,
1432
+ type: "application/json" /* Json */,
1433
+ format: "json",
1434
+ ...params
1435
+ });
1436
+ /**
1437
+ * @description Get Objective returns information about a chosen Objective.
1438
+ *
1439
+ * @name GetObjective
1440
+ * @summary Get Objective
1441
+ * @request GET:/api/v3/objectives/{objective-public-id}
1442
+ * @secure
1443
+ */
1444
+ getObjective = (objectivePublicId, params = {}) => this.request({
1445
+ path: `/api/v3/objectives/${objectivePublicId}`,
1446
+ method: "GET",
1447
+ secure: true,
1448
+ format: "json",
1449
+ ...params
1450
+ });
1451
+ /**
1452
+ * @description Update Objective can be used to update Objective properties.
1453
+ *
1454
+ * @name UpdateObjective
1455
+ * @summary Update Objective
1456
+ * @request PUT:/api/v3/objectives/{objective-public-id}
1457
+ * @secure
1458
+ */
1459
+ updateObjective = (objectivePublicId, UpdateObjective, params = {}) => this.request({
1460
+ path: `/api/v3/objectives/${objectivePublicId}`,
1461
+ method: "PUT",
1462
+ body: UpdateObjective,
1463
+ secure: true,
1464
+ type: "application/json" /* Json */,
1465
+ format: "json",
1466
+ ...params
1467
+ });
1468
+ /**
1469
+ * @description Delete Objective can be used to delete any Objective.
1470
+ *
1471
+ * @name DeleteObjective
1472
+ * @summary Delete Objective
1473
+ * @request DELETE:/api/v3/objectives/{objective-public-id}
1474
+ * @secure
1475
+ */
1476
+ deleteObjective = (objectivePublicId, params = {}) => this.request({
1477
+ path: `/api/v3/objectives/${objectivePublicId}`,
1478
+ method: "DELETE",
1479
+ secure: true,
1480
+ ...params
1481
+ });
1482
+ /**
1483
+ * @description List all of the Epics within the Objective.
1484
+ *
1485
+ * @name ListObjectiveEpics
1486
+ * @summary List Objective Epics
1487
+ * @request GET:/api/v3/objectives/{objective-public-id}/epics
1488
+ * @secure
1489
+ */
1490
+ listObjectiveEpics = (objectivePublicId, params = {}) => this.request({
1491
+ path: `/api/v3/objectives/${objectivePublicId}/epics`,
1492
+ method: "GET",
1493
+ secure: true,
1494
+ format: "json",
1495
+ ...params
1496
+ });
1497
+ /**
1498
+ * @description List Projects returns a list of all Projects and their attributes.
1499
+ *
1500
+ * @name ListProjects
1501
+ * @summary List Projects
1502
+ * @request GET:/api/v3/projects
1503
+ * @secure
1504
+ */
1505
+ listProjects = (params = {}) => this.request({
1506
+ path: `/api/v3/projects`,
1507
+ method: "GET",
1508
+ secure: true,
1509
+ format: "json",
1510
+ ...params
1511
+ });
1512
+ /**
1513
+ * @description Create Project is used to create a new Shortcut Project.
1514
+ *
1515
+ * @name CreateProject
1516
+ * @summary Create Project
1517
+ * @request POST:/api/v3/projects
1518
+ * @secure
1519
+ */
1520
+ createProject = (CreateProject, params = {}) => this.request({
1521
+ path: `/api/v3/projects`,
1522
+ method: "POST",
1523
+ body: CreateProject,
1524
+ secure: true,
1525
+ type: "application/json" /* Json */,
1526
+ format: "json",
1527
+ ...params
1528
+ });
1529
+ /**
1530
+ * @description Get Project returns information about the selected Project.
1531
+ *
1532
+ * @name GetProject
1533
+ * @summary Get Project
1534
+ * @request GET:/api/v3/projects/{project-public-id}
1535
+ * @secure
1536
+ */
1537
+ getProject = (projectPublicId, params = {}) => this.request({
1538
+ path: `/api/v3/projects/${projectPublicId}`,
1539
+ method: "GET",
1540
+ secure: true,
1541
+ format: "json",
1542
+ ...params
1543
+ });
1544
+ /**
1545
+ * @description Update Project can be used to change properties of a Project.
1546
+ *
1547
+ * @name UpdateProject
1548
+ * @summary Update Project
1549
+ * @request PUT:/api/v3/projects/{project-public-id}
1550
+ * @secure
1551
+ */
1552
+ updateProject = (projectPublicId, UpdateProject, params = {}) => this.request({
1553
+ path: `/api/v3/projects/${projectPublicId}`,
1554
+ method: "PUT",
1555
+ body: UpdateProject,
1556
+ secure: true,
1557
+ type: "application/json" /* Json */,
1558
+ format: "json",
1559
+ ...params
1560
+ });
1561
+ /**
1562
+ * @description Delete Project can be used to delete a Project. Projects can only be deleted if all associated Stories are moved or deleted. In the case that the Project cannot be deleted, you will receive a 422 response.
1563
+ *
1564
+ * @name DeleteProject
1565
+ * @summary Delete Project
1566
+ * @request DELETE:/api/v3/projects/{project-public-id}
1567
+ * @secure
1568
+ */
1569
+ deleteProject = (projectPublicId, params = {}) => this.request({
1570
+ path: `/api/v3/projects/${projectPublicId}`,
1571
+ method: "DELETE",
1572
+ secure: true,
1573
+ ...params
1574
+ });
1575
+ /**
1576
+ * @description List Stories returns a list of all Stories in a selected Project and their attributes.
1577
+ *
1578
+ * @name ListStories
1579
+ * @summary List Stories
1580
+ * @request GET:/api/v3/projects/{project-public-id}/stories
1581
+ * @secure
1582
+ */
1583
+ listStories = (projectPublicId, query, params = {}) => this.request({
1584
+ path: `/api/v3/projects/${projectPublicId}/stories`,
1585
+ method: "GET",
1586
+ query,
1587
+ secure: true,
1588
+ format: "json",
1589
+ ...params
1590
+ });
1591
+ /**
1592
+ * @description List Repositories returns a list of all Repositories and their attributes.
1593
+ *
1594
+ * @name ListRepositories
1595
+ * @summary List Repositories
1596
+ * @request GET:/api/v3/repositories
1597
+ * @secure
1598
+ */
1599
+ listRepositories = (params = {}) => this.request({
1600
+ path: `/api/v3/repositories`,
1601
+ method: "GET",
1602
+ secure: true,
1603
+ format: "json",
1604
+ ...params
1605
+ });
1606
+ /**
1607
+ * @description Get Repository returns information about the selected Repository.
1608
+ *
1609
+ * @name GetRepository
1610
+ * @summary Get Repository
1611
+ * @request GET:/api/v3/repositories/{repo-public-id}
1612
+ * @secure
1613
+ */
1614
+ getRepository = (repoPublicId, params = {}) => this.request({
1615
+ path: `/api/v3/repositories/${repoPublicId}`,
1616
+ method: "GET",
1617
+ secure: true,
1618
+ format: "json",
1619
+ ...params
1620
+ });
1621
+ /**
1622
+ * @description Search lets you search Epics and Stories based on desired parameters. Since ordering of the results can change over time (due to search ranking decay, new Epics and Stories being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1623
+ *
1624
+ * @name Search
1625
+ * @summary Search
1626
+ * @request GET:/api/v3/search
1627
+ * @secure
1628
+ */
1629
+ search = (query, params = {}) => this.request({
1630
+ path: `/api/v3/search`,
1631
+ method: "GET",
1632
+ query,
1633
+ secure: true,
1634
+ format: "json",
1635
+ ...params
1636
+ });
1637
+ /**
1638
+ * @description Search Epics lets you search Epics based on desired parameters. Since ordering of stories can change over time (due to search ranking decay, new Epics being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1639
+ *
1640
+ * @name SearchEpics
1641
+ * @summary Search Epics
1642
+ * @request GET:/api/v3/search/epics
1643
+ * @secure
1644
+ */
1645
+ searchEpics = (query, params = {}) => this.request({
1646
+ path: `/api/v3/search/epics`,
1647
+ method: "GET",
1648
+ query,
1649
+ secure: true,
1650
+ format: "json",
1651
+ ...params
1652
+ });
1653
+ /**
1654
+ * @description Search Iterations lets you search Iterations based on desired parameters. Since ordering of results can change over time (due to search ranking decay, new Iterations being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1655
+ *
1656
+ * @name SearchIterations
1657
+ * @summary Search Iterations
1658
+ * @request GET:/api/v3/search/iterations
1659
+ * @secure
1660
+ */
1661
+ searchIterations = (query, params = {}) => this.request({
1662
+ path: `/api/v3/search/iterations`,
1663
+ method: "GET",
1664
+ query,
1665
+ secure: true,
1666
+ format: "json",
1667
+ ...params
1668
+ });
1669
+ /**
1670
+ * @description Search Milestones lets you search Milestones based on desired parameters. Since ordering of results can change over time (due to search ranking decay, new Milestones being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1671
+ *
1672
+ * @name SearchMilestones
1673
+ * @summary Search Milestones
1674
+ * @request GET:/api/v3/search/milestones
1675
+ * @secure
1676
+ */
1677
+ searchMilestones = (query, params = {}) => this.request({
1678
+ path: `/api/v3/search/milestones`,
1679
+ method: "GET",
1680
+ query,
1681
+ secure: true,
1682
+ format: "json",
1683
+ ...params
1684
+ });
1685
+ /**
1686
+ * @description Search Objectives lets you search Objectives based on desired parameters. Since ordering of results can change over time (due to search ranking decay, new Objectives being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1687
+ *
1688
+ * @name SearchObjectives
1689
+ * @summary Search Objectives
1690
+ * @request GET:/api/v3/search/objectives
1691
+ * @secure
1692
+ */
1693
+ searchObjectives = (query, params = {}) => this.request({
1694
+ path: `/api/v3/search/objectives`,
1695
+ method: "GET",
1696
+ query,
1697
+ secure: true,
1698
+ format: "json",
1699
+ ...params
1700
+ });
1701
+ /**
1702
+ * @description Search Stories lets you search Stories based on desired parameters. Since ordering of stories can change over time (due to search ranking decay, new stories being created), the `next` value from the previous response can be used as the path and query string for the next page to ensure stable ordering.
1703
+ *
1704
+ * @name SearchStories
1705
+ * @summary Search Stories
1706
+ * @request GET:/api/v3/search/stories
1707
+ * @secure
1708
+ */
1709
+ searchStories = (query, params = {}) => this.request({
1710
+ path: `/api/v3/search/stories`,
1711
+ method: "GET",
1712
+ query,
1713
+ secure: true,
1714
+ format: "json",
1715
+ ...params
1716
+ });
1717
+ /**
1718
+ * @description Create Story is used to add a new story to your Shortcut Workspace. This endpoint requires that either **workflow_state_id** or **project_id** be provided, but will reject the request if both or neither are specified. The workflow_state_id has been marked as required and is the recommended field to specify because we are in the process of sunsetting Projects in Shortcut.
1719
+ *
1720
+ * @name CreateStory
1721
+ * @summary Create Story
1722
+ * @request POST:/api/v3/stories
1723
+ * @secure
1724
+ */
1725
+ createStory = (CreateStoryParams, params = {}) => this.request({
1726
+ path: `/api/v3/stories`,
1727
+ method: "POST",
1728
+ body: CreateStoryParams,
1729
+ secure: true,
1730
+ type: "application/json" /* Json */,
1731
+ format: "json",
1732
+ ...params
1733
+ });
1734
+ /**
1735
+ * @description Create Multiple Stories allows you to create multiple stories in a single request using the same syntax as [Create Story](https://developer.shortcut.com/api/rest/v3#create-story).
1736
+ *
1737
+ * @name CreateMultipleStories
1738
+ * @summary Create Multiple Stories
1739
+ * @request POST:/api/v3/stories/bulk
1740
+ * @secure
1741
+ */
1742
+ createMultipleStories = (CreateStories, params = {}) => this.request({
1743
+ path: `/api/v3/stories/bulk`,
1744
+ method: "POST",
1745
+ body: CreateStories,
1746
+ secure: true,
1747
+ type: "application/json" /* Json */,
1748
+ format: "json",
1749
+ ...params
1750
+ });
1751
+ /**
1752
+ * @description Update Multiple Stories allows you to make changes to numerous stories at once.
1753
+ *
1754
+ * @name UpdateMultipleStories
1755
+ * @summary Update Multiple Stories
1756
+ * @request PUT:/api/v3/stories/bulk
1757
+ * @secure
1758
+ */
1759
+ updateMultipleStories = (UpdateStories, params = {}) => this.request({
1760
+ path: `/api/v3/stories/bulk`,
1761
+ method: "PUT",
1762
+ body: UpdateStories,
1763
+ secure: true,
1764
+ type: "application/json" /* Json */,
1765
+ format: "json",
1766
+ ...params
1767
+ });
1768
+ /**
1769
+ * @description Delete Multiple Stories allows you to delete multiple archived stories at once.
1770
+ *
1771
+ * @name DeleteMultipleStories
1772
+ * @summary Delete Multiple Stories
1773
+ * @request DELETE:/api/v3/stories/bulk
1774
+ * @secure
1775
+ */
1776
+ deleteMultipleStories = (DeleteStories, params = {}) => this.request({
1777
+ path: `/api/v3/stories/bulk`,
1778
+ method: "DELETE",
1779
+ body: DeleteStories,
1780
+ secure: true,
1781
+ type: "application/json" /* Json */,
1782
+ ...params
1783
+ });
1784
+ /**
1785
+ * @description Create Story From Template is used to add a new story derived from a template to your Shortcut Workspace.
1786
+ *
1787
+ * @name CreateStoryFromTemplate
1788
+ * @summary Create Story From Template
1789
+ * @request POST:/api/v3/stories/from-template
1790
+ * @secure
1791
+ */
1792
+ createStoryFromTemplate = (CreateStoryFromTemplateParams, params = {}) => this.request({
1793
+ path: `/api/v3/stories/from-template`,
1794
+ method: "POST",
1795
+ body: CreateStoryFromTemplateParams,
1796
+ secure: true,
1797
+ type: "application/json" /* Json */,
1798
+ format: "json",
1799
+ ...params
1800
+ });
1801
+ /**
1802
+ * @description Search Stories lets you search Stories based on desired parameters.
1803
+ *
1804
+ * @name SearchStoriesOld
1805
+ * @summary Search Stories (Old)
1806
+ * @request POST:/api/v3/stories/search
1807
+ * @secure
1808
+ */
1809
+ searchStoriesOld = (SearchStories, params = {}) => this.request({
1810
+ path: `/api/v3/stories/search`,
1811
+ method: "POST",
1812
+ body: SearchStories,
1813
+ secure: true,
1814
+ type: "application/json" /* Json */,
1815
+ format: "json",
1816
+ ...params
1817
+ });
1818
+ /**
1819
+ * @description Get Story returns information about a chosen Story.
1820
+ *
1821
+ * @name GetStory
1822
+ * @summary Get Story
1823
+ * @request GET:/api/v3/stories/{story-public-id}
1824
+ * @secure
1825
+ */
1826
+ getStory = (storyPublicId, params = {}) => this.request({
1827
+ path: `/api/v3/stories/${storyPublicId}`,
1828
+ method: "GET",
1829
+ secure: true,
1830
+ format: "json",
1831
+ ...params
1832
+ });
1833
+ /**
1834
+ * @description Update Story can be used to update Story properties.
1835
+ *
1836
+ * @name UpdateStory
1837
+ * @summary Update Story
1838
+ * @request PUT:/api/v3/stories/{story-public-id}
1839
+ * @secure
1840
+ */
1841
+ updateStory = (storyPublicId, UpdateStory, params = {}) => this.request({
1842
+ path: `/api/v3/stories/${storyPublicId}`,
1843
+ method: "PUT",
1844
+ body: UpdateStory,
1845
+ secure: true,
1846
+ type: "application/json" /* Json */,
1847
+ format: "json",
1848
+ ...params
1849
+ });
1850
+ /**
1851
+ * @description Delete Story can be used to delete any Story.
1852
+ *
1853
+ * @name DeleteStory
1854
+ * @summary Delete Story
1855
+ * @request DELETE:/api/v3/stories/{story-public-id}
1856
+ * @secure
1857
+ */
1858
+ deleteStory = (storyPublicId, params = {}) => this.request({
1859
+ path: `/api/v3/stories/${storyPublicId}`,
1860
+ method: "DELETE",
1861
+ secure: true,
1862
+ ...params
1863
+ });
1864
+ /**
1865
+ * @description Lists Comments associated with a Story
1866
+ *
1867
+ * @name ListStoryComment
1868
+ * @summary List Story Comment
1869
+ * @request GET:/api/v3/stories/{story-public-id}/comments
1870
+ * @secure
1871
+ */
1872
+ listStoryComment = (storyPublicId, params = {}) => this.request({
1873
+ path: `/api/v3/stories/${storyPublicId}/comments`,
1874
+ method: "GET",
1875
+ secure: true,
1876
+ format: "json",
1877
+ ...params
1878
+ });
1879
+ /**
1880
+ * @description Create Comment allows you to create a Comment on any Story.
1881
+ *
1882
+ * @name CreateStoryComment
1883
+ * @summary Create Story Comment
1884
+ * @request POST:/api/v3/stories/{story-public-id}/comments
1885
+ * @secure
1886
+ */
1887
+ createStoryComment = (storyPublicId, CreateStoryComment, params = {}) => this.request({
1888
+ path: `/api/v3/stories/${storyPublicId}/comments`,
1889
+ method: "POST",
1890
+ body: CreateStoryComment,
1891
+ secure: true,
1892
+ type: "application/json" /* Json */,
1893
+ format: "json",
1894
+ ...params
1895
+ });
1896
+ /**
1897
+ * @description Get Comment is used to get Comment information.
1898
+ *
1899
+ * @name GetStoryComment
1900
+ * @summary Get Story Comment
1901
+ * @request GET:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1902
+ * @secure
1903
+ */
1904
+ getStoryComment = (storyPublicId, commentPublicId, params = {}) => this.request({
1905
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}`,
1906
+ method: "GET",
1907
+ secure: true,
1908
+ format: "json",
1909
+ ...params
1910
+ });
1911
+ /**
1912
+ * @description Update Comment replaces the text of the existing Comment.
1913
+ *
1914
+ * @name UpdateStoryComment
1915
+ * @summary Update Story Comment
1916
+ * @request PUT:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1917
+ * @secure
1918
+ */
1919
+ updateStoryComment = (storyPublicId, commentPublicId, UpdateStoryComment, params = {}) => this.request({
1920
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}`,
1921
+ method: "PUT",
1922
+ body: UpdateStoryComment,
1923
+ secure: true,
1924
+ type: "application/json" /* Json */,
1925
+ format: "json",
1926
+ ...params
1927
+ });
1928
+ /**
1929
+ * @description Delete a Comment from any story.
1930
+ *
1931
+ * @name DeleteStoryComment
1932
+ * @summary Delete Story Comment
1933
+ * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
1934
+ * @secure
1935
+ */
1936
+ deleteStoryComment = (storyPublicId, commentPublicId, params = {}) => this.request({
1937
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}`,
1938
+ method: "DELETE",
1939
+ secure: true,
1940
+ ...params
1941
+ });
1942
+ /**
1943
+ * @description Create a reaction to a story comment.
1944
+ *
1945
+ * @name CreateStoryReaction
1946
+ * @summary Create Story Reaction
1947
+ * @request POST:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
1948
+ * @secure
1949
+ */
1950
+ createStoryReaction = (storyPublicId, commentPublicId, CreateOrDeleteStoryReaction, params = {}) => this.request({
1951
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}/reactions`,
1952
+ method: "POST",
1953
+ body: CreateOrDeleteStoryReaction,
1954
+ secure: true,
1955
+ type: "application/json" /* Json */,
1956
+ format: "json",
1957
+ ...params
1958
+ });
1959
+ /**
1960
+ * @description Delete a reaction from any story comment.
1961
+ *
1962
+ * @name DeleteStoryReaction
1963
+ * @summary Delete Story Reaction
1964
+ * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
1965
+ * @secure
1966
+ */
1967
+ deleteStoryReaction = (storyPublicId, commentPublicId, CreateOrDeleteStoryReaction, params = {}) => this.request({
1968
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}/reactions`,
1969
+ method: "DELETE",
1970
+ body: CreateOrDeleteStoryReaction,
1971
+ secure: true,
1972
+ type: "application/json" /* Json */,
1973
+ ...params
1974
+ });
1975
+ /**
1976
+ * @description Unlinks a Comment from its linked Slack thread (Comment replies and Slack replies will no longer be synced)
1977
+ *
1978
+ * @name UnlinkCommentThreadFromSlack
1979
+ * @summary Unlink Comment thread from Slack
1980
+ * @request POST:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/unlink-from-slack
1981
+ * @secure
1982
+ */
1983
+ unlinkCommentThreadFromSlack = (storyPublicId, commentPublicId, params = {}) => this.request({
1984
+ path: `/api/v3/stories/${storyPublicId}/comments/${commentPublicId}/unlink-from-slack`,
1985
+ method: "POST",
1986
+ secure: true,
1987
+ format: "json",
1988
+ ...params
1989
+ });
1990
+ /**
1991
+ * No description
1992
+ *
1993
+ * @name StoryHistory
1994
+ * @summary Story History
1995
+ * @request GET:/api/v3/stories/{story-public-id}/history
1996
+ * @secure
1997
+ */
1998
+ storyHistory = (storyPublicId, params = {}) => this.request({
1999
+ path: `/api/v3/stories/${storyPublicId}/history`,
2000
+ method: "GET",
2001
+ secure: true,
2002
+ format: "json",
2003
+ ...params
2004
+ });
2005
+ /**
2006
+ * @description Create Task is used to create a new task in a Story.
2007
+ *
2008
+ * @name CreateTask
2009
+ * @summary Create Task
2010
+ * @request POST:/api/v3/stories/{story-public-id}/tasks
2011
+ * @secure
2012
+ */
2013
+ createTask = (storyPublicId, CreateTask, params = {}) => this.request({
2014
+ path: `/api/v3/stories/${storyPublicId}/tasks`,
2015
+ method: "POST",
2016
+ body: CreateTask,
2017
+ secure: true,
2018
+ type: "application/json" /* Json */,
2019
+ format: "json",
2020
+ ...params
2021
+ });
2022
+ /**
2023
+ * @description Returns information about a chosen Task.
2024
+ *
2025
+ * @name GetTask
2026
+ * @summary Get Task
2027
+ * @request GET:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
2028
+ * @secure
2029
+ */
2030
+ getTask = (storyPublicId, taskPublicId, params = {}) => this.request({
2031
+ path: `/api/v3/stories/${storyPublicId}/tasks/${taskPublicId}`,
2032
+ method: "GET",
2033
+ secure: true,
2034
+ format: "json",
2035
+ ...params
2036
+ });
2037
+ /**
2038
+ * @description Update Task can be used to update Task properties.
2039
+ *
2040
+ * @name UpdateTask
2041
+ * @summary Update Task
2042
+ * @request PUT:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
2043
+ * @secure
2044
+ */
2045
+ updateTask = (storyPublicId, taskPublicId, UpdateTask, params = {}) => this.request({
2046
+ path: `/api/v3/stories/${storyPublicId}/tasks/${taskPublicId}`,
2047
+ method: "PUT",
2048
+ body: UpdateTask,
2049
+ secure: true,
2050
+ type: "application/json" /* Json */,
2051
+ format: "json",
2052
+ ...params
2053
+ });
2054
+ /**
2055
+ * @description Delete Task can be used to delete any previously created Task on a Story.
2056
+ *
2057
+ * @name DeleteTask
2058
+ * @summary Delete Task
2059
+ * @request DELETE:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
2060
+ * @secure
2061
+ */
2062
+ deleteTask = (storyPublicId, taskPublicId, params = {}) => this.request({
2063
+ path: `/api/v3/stories/${storyPublicId}/tasks/${taskPublicId}`,
2064
+ method: "DELETE",
2065
+ secure: true,
2066
+ ...params
2067
+ });
2068
+ /**
2069
+ * @description Story Links (called Story Relationships in the UI) allow you create semantic relationships between two stories. The parameters read like an active voice grammatical sentence: subject -> verb -> object. The subject story acts on the object Story; the object story is the direct object of the sentence. The subject story "blocks", "duplicates", or "relates to" the object story. Examples: - "story 5 blocks story 6” -- story 6 is now "blocked" until story 5 is moved to a Done workflow state. - "story 2 duplicates story 1” -- Story 2 represents the same body of work as Story 1 (and should probably be archived). - "story 7 relates to story 3”
2070
+ *
2071
+ * @name CreateStoryLink
2072
+ * @summary Create Story Link
2073
+ * @request POST:/api/v3/story-links
2074
+ * @secure
2075
+ */
2076
+ createStoryLink = (CreateStoryLink, params = {}) => this.request({
2077
+ path: `/api/v3/story-links`,
2078
+ method: "POST",
2079
+ body: CreateStoryLink,
2080
+ secure: true,
2081
+ type: "application/json" /* Json */,
2082
+ format: "json",
2083
+ ...params
2084
+ });
2085
+ /**
2086
+ * @description Returns the stories and their relationship for the given Story Link.
2087
+ *
2088
+ * @name GetStoryLink
2089
+ * @summary Get Story Link
2090
+ * @request GET:/api/v3/story-links/{story-link-public-id}
2091
+ * @secure
2092
+ */
2093
+ getStoryLink = (storyLinkPublicId, params = {}) => this.request({
2094
+ path: `/api/v3/story-links/${storyLinkPublicId}`,
2095
+ method: "GET",
2096
+ secure: true,
2097
+ format: "json",
2098
+ ...params
2099
+ });
2100
+ /**
2101
+ * @description Updates the stories and/or the relationship for the given Story Link.
2102
+ *
2103
+ * @name UpdateStoryLink
2104
+ * @summary Update Story Link
2105
+ * @request PUT:/api/v3/story-links/{story-link-public-id}
2106
+ * @secure
2107
+ */
2108
+ updateStoryLink = (storyLinkPublicId, UpdateStoryLink, params = {}) => this.request({
2109
+ path: `/api/v3/story-links/${storyLinkPublicId}`,
2110
+ method: "PUT",
2111
+ body: UpdateStoryLink,
2112
+ secure: true,
2113
+ type: "application/json" /* Json */,
2114
+ format: "json",
2115
+ ...params
2116
+ });
2117
+ /**
2118
+ * @description Removes the relationship between the stories for the given Story Link.
2119
+ *
2120
+ * @name DeleteStoryLink
2121
+ * @summary Delete Story Link
2122
+ * @request DELETE:/api/v3/story-links/{story-link-public-id}
2123
+ * @secure
2124
+ */
2125
+ deleteStoryLink = (storyLinkPublicId, params = {}) => this.request({
2126
+ path: `/api/v3/story-links/${storyLinkPublicId}`,
2127
+ method: "DELETE",
2128
+ secure: true,
2129
+ ...params
2130
+ });
2131
+ /**
2132
+ * @description Returns a list of all Workflows in the Workspace.
2133
+ *
2134
+ * @name ListWorkflows
2135
+ * @summary List Workflows
2136
+ * @request GET:/api/v3/workflows
2137
+ * @secure
2138
+ */
2139
+ listWorkflows = (params = {}) => this.request({
2140
+ path: `/api/v3/workflows`,
2141
+ method: "GET",
2142
+ secure: true,
2143
+ format: "json",
2144
+ ...params
2145
+ });
2146
+ /**
2147
+ * @description Get Workflow returns information about a chosen Workflow.
2148
+ *
2149
+ * @name GetWorkflow
2150
+ * @summary Get Workflow
2151
+ * @request GET:/api/v3/workflows/{workflow-public-id}
2152
+ * @secure
2153
+ */
2154
+ getWorkflow = (workflowPublicId, params = {}) => this.request({
2155
+ path: `/api/v3/workflows/${workflowPublicId}`,
2156
+ method: "GET",
2157
+ secure: true,
2158
+ format: "json",
2159
+ ...params
2160
+ });
2161
+ };
2162
+ // Annotate the CommonJS export names for ESM import in node:
2163
+ 0 && (module.exports = {
2164
+ Api
2165
+ });