@useshortcut/client 1.0.0-beta.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.
@@ -0,0 +1,955 @@
1
+ import { Category, CreateCategory, CreateCommentComment, CreateEntityTemplate, CreateEpic, CreateEpicComment, CreateGroup, CreateIteration, CreateLabelParams, CreateLinkedFile, CreateMilestone, CreateOrDeleteStoryReaction, CreateProject, CreateStories, CreateStoryComment, CreateStoryLink, CreateStoryParams, CreateTask, DeleteStories, EntityTemplate, Epic, EpicSearchResults, EpicSlim, EpicWorkflow, GetEpicStories, GetExternalLinkStoriesParams, GetIterationStories, GetLabelStories, GetMember, GetProjectStories, Group, History, Iteration, IterationSlim, Label, LinkedFile, ListEpics, ListGroupStories, ListLabels, ListMembers, Member, MemberInfo, Milestone, Project, Repository, Search, SearchResults, SearchStories, Story, StoryComment, StoryLink, StoryReaction, StorySearchResults, StorySlim, Task, ThreadedComment, UpdateCategory, UpdateComment, UpdateEntityTemplate, UpdateEpic, UpdateFile, UpdateGroup, UpdateIteration, UpdateLabel, UpdateLinkedFile, UpdateMilestone, UpdateProject, UpdateStories, UpdateStory, UpdateStoryComment, UpdateStoryLink, UpdateTask, UploadedFile, Workflow } from "./data-contracts";
2
+ import { HttpClient, RequestParams } from "./http-client";
3
+ export declare class Api<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
+ /**
5
+ * @description List Categories returns a list of all Categories and their attributes.
6
+ *
7
+ * @name ListCategories
8
+ * @summary List Categories
9
+ * @request GET:/api/v3/categories
10
+ * @secure
11
+ */
12
+ listCategories: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Category[]>>;
13
+ /**
14
+ * @description Create Category allows you to create a new Category in Shortcut.
15
+ *
16
+ * @name CreateCategory
17
+ * @summary Create Category
18
+ * @request POST:/api/v3/categories
19
+ * @secure
20
+ */
21
+ createCategory: (CreateCategory: CreateCategory, params?: RequestParams) => Promise<import("axios").AxiosResponse<Category>>;
22
+ /**
23
+ * @description Get Category returns information about the selected Category.
24
+ *
25
+ * @name GetCategory
26
+ * @summary Get Category
27
+ * @request GET:/api/v3/categories/{category-public-id}
28
+ * @secure
29
+ */
30
+ getCategory: (categoryPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Category>>;
31
+ /**
32
+ * @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.
33
+ *
34
+ * @name UpdateCategory
35
+ * @summary Update Category
36
+ * @request PUT:/api/v3/categories/{category-public-id}
37
+ * @secure
38
+ */
39
+ updateCategory: (categoryPublicId: number, UpdateCategory: UpdateCategory, params?: RequestParams) => Promise<import("axios").AxiosResponse<Category>>;
40
+ /**
41
+ * @description Delete Category can be used to delete any Category.
42
+ *
43
+ * @name DeleteCategory
44
+ * @summary Delete Category
45
+ * @request DELETE:/api/v3/categories/{category-public-id}
46
+ * @secure
47
+ */
48
+ deleteCategory: (categoryPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
49
+ /**
50
+ * @description List Category Milestones returns a list of all Milestones with the Category.
51
+ *
52
+ * @name ListCategoryMilestones
53
+ * @summary List Category Milestones
54
+ * @request GET:/api/v3/categories/{category-public-id}/milestones
55
+ * @secure
56
+ */
57
+ listCategoryMilestones: (categoryPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Milestone[]>>;
58
+ /**
59
+ * @description List all the entity templates for an organization.
60
+ *
61
+ * @name ListEntityTemplates
62
+ * @summary List Entity Templates
63
+ * @request GET:/api/v3/entity-templates
64
+ * @secure
65
+ */
66
+ listEntityTemplates: (params?: RequestParams) => Promise<import("axios").AxiosResponse<EntityTemplate[]>>;
67
+ /**
68
+ * @description Create a new entity template for your organization.
69
+ *
70
+ * @name CreateEntityTemplate
71
+ * @summary Create Entity Template
72
+ * @request POST:/api/v3/entity-templates
73
+ * @secure
74
+ */
75
+ createEntityTemplate: (CreateEntityTemplate: CreateEntityTemplate, params?: RequestParams) => Promise<import("axios").AxiosResponse<EntityTemplate>>;
76
+ /**
77
+ * @description Disables the Story Template feature for the given Organization.
78
+ *
79
+ * @name DisableStoryTemplates
80
+ * @summary Disable Story Templates
81
+ * @request PUT:/api/v3/entity-templates/disable
82
+ * @secure
83
+ */
84
+ disableStoryTemplates: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
85
+ /**
86
+ * @description Enables the Story Template feature for the given Organization.
87
+ *
88
+ * @name EnableStoryTemplates
89
+ * @summary Enable Story Templates
90
+ * @request PUT:/api/v3/entity-templates/enable
91
+ * @secure
92
+ */
93
+ enableStoryTemplates: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
94
+ /**
95
+ * @description Get Entity Template returns information about a given entity template.
96
+ *
97
+ * @name GetEntityTemplate
98
+ * @summary Get Entity Template
99
+ * @request GET:/api/v3/entity-templates/{entity-template-public-id}
100
+ * @secure
101
+ */
102
+ getEntityTemplate: (entityTemplatePublicId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<EntityTemplate>>;
103
+ /**
104
+ * @description Update an entity template's name or its contents.
105
+ *
106
+ * @name UpdateEntityTemplate
107
+ * @summary Update Entity Template
108
+ * @request PUT:/api/v3/entity-templates/{entity-template-public-id}
109
+ * @secure
110
+ */
111
+ updateEntityTemplate: (entityTemplatePublicId: string, UpdateEntityTemplate: UpdateEntityTemplate, params?: RequestParams) => Promise<import("axios").AxiosResponse<EntityTemplate>>;
112
+ /**
113
+ * No description
114
+ *
115
+ * @name DeleteEntityTemplate
116
+ * @summary Delete Entity Template
117
+ * @request DELETE:/api/v3/entity-templates/{entity-template-public-id}
118
+ * @secure
119
+ */
120
+ deleteEntityTemplate: (entityTemplatePublicId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
121
+ /**
122
+ * @description Get Epic Workflow returns the Epic Workflow for the organization.
123
+ *
124
+ * @name GetEpicWorkflow
125
+ * @summary Get Epic Workflow
126
+ * @request GET:/api/v3/epic-workflow
127
+ * @secure
128
+ */
129
+ getEpicWorkflow: (params?: RequestParams) => Promise<import("axios").AxiosResponse<EpicWorkflow>>;
130
+ /**
131
+ * @description List Epics returns a list of all Epics and their attributes.
132
+ *
133
+ * @name ListEpics
134
+ * @summary List Epics
135
+ * @request GET:/api/v3/epics
136
+ * @secure
137
+ */
138
+ listEpics: (ListEpics: ListEpics, params?: RequestParams) => Promise<import("axios").AxiosResponse<EpicSlim[]>>;
139
+ /**
140
+ * @description Create Epic allows you to create a new Epic in Shortcut.
141
+ *
142
+ * @name CreateEpic
143
+ * @summary Create Epic
144
+ * @request POST:/api/v3/epics
145
+ * @secure
146
+ */
147
+ createEpic: (CreateEpic: CreateEpic, params?: RequestParams) => Promise<import("axios").AxiosResponse<Epic>>;
148
+ /**
149
+ * @description Get Epic returns information about the selected Epic.
150
+ *
151
+ * @name GetEpic
152
+ * @summary Get Epic
153
+ * @request GET:/api/v3/epics/{epic-public-id}
154
+ * @secure
155
+ */
156
+ getEpic: (epicPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Epic>>;
157
+ /**
158
+ * @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.
159
+ *
160
+ * @name UpdateEpic
161
+ * @summary Update Epic
162
+ * @request PUT:/api/v3/epics/{epic-public-id}
163
+ * @secure
164
+ */
165
+ updateEpic: (epicPublicId: number, UpdateEpic: UpdateEpic, params?: RequestParams) => Promise<import("axios").AxiosResponse<Epic>>;
166
+ /**
167
+ * @description Delete Epic can be used to delete the Epic. The only required parameter is Epic ID.
168
+ *
169
+ * @name DeleteEpic
170
+ * @summary Delete Epic
171
+ * @request DELETE:/api/v3/epics/{epic-public-id}
172
+ * @secure
173
+ */
174
+ deleteEpic: (epicPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
175
+ /**
176
+ * @description Get a list of all Comments on an Epic.
177
+ *
178
+ * @name ListEpicComments
179
+ * @summary List Epic Comments
180
+ * @request GET:/api/v3/epics/{epic-public-id}/comments
181
+ * @secure
182
+ */
183
+ listEpicComments: (epicPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<ThreadedComment[]>>;
184
+ /**
185
+ * @description This endpoint allows you to create a threaded Comment on an Epic.
186
+ *
187
+ * @name CreateEpicComment
188
+ * @summary Create Epic Comment
189
+ * @request POST:/api/v3/epics/{epic-public-id}/comments
190
+ * @secure
191
+ */
192
+ createEpicComment: (epicPublicId: number, CreateEpicComment: CreateEpicComment, params?: RequestParams) => Promise<import("axios").AxiosResponse<ThreadedComment>>;
193
+ /**
194
+ * @description This endpoint allows you to create a nested Comment reply to an existing Epic Comment.
195
+ *
196
+ * @name CreateEpicCommentComment
197
+ * @summary Create Epic Comment Comment
198
+ * @request POST:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
199
+ * @secure
200
+ */
201
+ createEpicCommentComment: (epicPublicId: number, commentPublicId: number, CreateCommentComment: CreateCommentComment, params?: RequestParams) => Promise<import("axios").AxiosResponse<ThreadedComment>>;
202
+ /**
203
+ * @description This endpoint returns information about the selected Epic Comment.
204
+ *
205
+ * @name GetEpicComment
206
+ * @summary Get Epic Comment
207
+ * @request GET:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
208
+ * @secure
209
+ */
210
+ getEpicComment: (epicPublicId: number, commentPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<ThreadedComment>>;
211
+ /**
212
+ * @description This endpoint allows you to update a threaded Comment on an Epic.
213
+ *
214
+ * @name UpdateEpicComment
215
+ * @summary Update Epic Comment
216
+ * @request PUT:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
217
+ * @secure
218
+ */
219
+ updateEpicComment: (epicPublicId: number, commentPublicId: number, UpdateComment: UpdateComment, params?: RequestParams) => Promise<import("axios").AxiosResponse<ThreadedComment>>;
220
+ /**
221
+ * @description This endpoint allows you to delete a Comment from an Epic.
222
+ *
223
+ * @name DeleteEpicComment
224
+ * @summary Delete Epic Comment
225
+ * @request DELETE:/api/v3/epics/{epic-public-id}/comments/{comment-public-id}
226
+ * @secure
227
+ */
228
+ deleteEpicComment: (epicPublicId: number, commentPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
229
+ /**
230
+ * @description Get a list of all Stories in an Epic.
231
+ *
232
+ * @name ListEpicStories
233
+ * @summary List Epic Stories
234
+ * @request GET:/api/v3/epics/{epic-public-id}/stories
235
+ * @secure
236
+ */
237
+ listEpicStories: (epicPublicId: number, GetEpicStories: GetEpicStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
238
+ /**
239
+ * @description This endpoint allows you to unlink a productboard epic.
240
+ *
241
+ * @name UnlinkProductboardFromEpic
242
+ * @summary Unlink Productboard from Epic
243
+ * @request POST:/api/v3/epics/{epic-public-id}/unlink-productboard
244
+ * @secure
245
+ */
246
+ unlinkProductboardFromEpic: (epicPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
247
+ /**
248
+ * @description Get Stories which have a given External Link associated with them.
249
+ *
250
+ * @name GetExternalLinkStories
251
+ * @summary Get External Link Stories
252
+ * @request GET:/api/v3/external-link/stories
253
+ * @secure
254
+ */
255
+ getExternalLinkStories: (GetExternalLinkStoriesParams: GetExternalLinkStoriesParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
256
+ /**
257
+ * @description List Files returns a list of all UploadedFiles in the workspace.
258
+ *
259
+ * @name ListFiles
260
+ * @summary List Files
261
+ * @request GET:/api/v3/files
262
+ * @secure
263
+ */
264
+ listFiles: (params?: RequestParams) => Promise<import("axios").AxiosResponse<UploadedFile[]>>;
265
+ /**
266
+ * @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.
267
+ *
268
+ * @name UploadFiles
269
+ * @summary Upload Files
270
+ * @request POST:/api/v3/files
271
+ * @secure
272
+ */
273
+ uploadFiles: (data: {
274
+ story_id?: number;
275
+ file0: File;
276
+ file1?: File;
277
+ file2?: File;
278
+ file3?: File;
279
+ }, params?: RequestParams) => Promise<import("axios").AxiosResponse<UploadedFile[]>>;
280
+ /**
281
+ * @description Get File returns information about the selected UploadedFile.
282
+ *
283
+ * @name GetFile
284
+ * @summary Get File
285
+ * @request GET:/api/v3/files/{file-public-id}
286
+ * @secure
287
+ */
288
+ getFile: (filePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<UploadedFile>>;
289
+ /**
290
+ * @description Update File updates the properties of an UploadedFile (but not its content).
291
+ *
292
+ * @name UpdateFile
293
+ * @summary Update File
294
+ * @request PUT:/api/v3/files/{file-public-id}
295
+ * @secure
296
+ */
297
+ updateFile: (filePublicId: number, UpdateFile: UpdateFile, params?: RequestParams) => Promise<import("axios").AxiosResponse<UploadedFile>>;
298
+ /**
299
+ * @description Delete File deletes a previously uploaded file.
300
+ *
301
+ * @name DeleteFile
302
+ * @summary Delete File
303
+ * @request DELETE:/api/v3/files/{file-public-id}
304
+ * @secure
305
+ */
306
+ deleteFile: (filePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
307
+ /**
308
+ * @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.
309
+ *
310
+ * @name ListGroups
311
+ * @summary List Groups
312
+ * @request GET:/api/v3/groups
313
+ * @secure
314
+ */
315
+ listGroups: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Group[]>>;
316
+ /**
317
+ * No description
318
+ *
319
+ * @name CreateGroup
320
+ * @summary Create Group
321
+ * @request POST:/api/v3/groups
322
+ * @secure
323
+ */
324
+ createGroup: (CreateGroup: CreateGroup, params?: RequestParams) => Promise<import("axios").AxiosResponse<Group>>;
325
+ /**
326
+ * @description Disables Groups for the current workspace2
327
+ *
328
+ * @name DisableGroups
329
+ * @summary Disable Groups
330
+ * @request PUT:/api/v3/groups/disable
331
+ * @secure
332
+ */
333
+ disableGroups: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
334
+ /**
335
+ * @description Enables Groups for the current workspace2
336
+ *
337
+ * @name EnableGroups
338
+ * @summary Enable Groups
339
+ * @request PUT:/api/v3/groups/enable
340
+ * @secure
341
+ */
342
+ enableGroups: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
343
+ /**
344
+ * No description
345
+ *
346
+ * @name GetGroup
347
+ * @summary Get Group
348
+ * @request GET:/api/v3/groups/{group-public-id}
349
+ * @secure
350
+ */
351
+ getGroup: (groupPublicId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<Group>>;
352
+ /**
353
+ * No description
354
+ *
355
+ * @name UpdateGroup
356
+ * @summary Update Group
357
+ * @request PUT:/api/v3/groups/{group-public-id}
358
+ * @secure
359
+ */
360
+ updateGroup: (groupPublicId: string, UpdateGroup: UpdateGroup, params?: RequestParams) => Promise<import("axios").AxiosResponse<Group>>;
361
+ /**
362
+ * @description List the Stories assigned to the Group. (By default, limited to 1,000).
363
+ *
364
+ * @name ListGroupStories
365
+ * @summary List Group Stories
366
+ * @request GET:/api/v3/groups/{group-public-id}/stories
367
+ * @secure
368
+ */
369
+ listGroupStories: (groupPublicId: string, ListGroupStories: ListGroupStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
370
+ /**
371
+ * No description
372
+ *
373
+ * @name ListIterations
374
+ * @summary List Iterations
375
+ * @request GET:/api/v3/iterations
376
+ * @secure
377
+ */
378
+ listIterations: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IterationSlim[]>>;
379
+ /**
380
+ * No description
381
+ *
382
+ * @name CreateIteration
383
+ * @summary Create Iteration
384
+ * @request POST:/api/v3/iterations
385
+ * @secure
386
+ */
387
+ createIteration: (CreateIteration: CreateIteration, params?: RequestParams) => Promise<import("axios").AxiosResponse<Iteration>>;
388
+ /**
389
+ * @description Disables Iterations for the current workspace
390
+ *
391
+ * @name DisableIterations
392
+ * @summary Disable Iterations
393
+ * @request PUT:/api/v3/iterations/disable
394
+ * @secure
395
+ */
396
+ disableIterations: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
397
+ /**
398
+ * @description Enables Iterations for the current workspace
399
+ *
400
+ * @name EnableIterations
401
+ * @summary Enable Iterations
402
+ * @request PUT:/api/v3/iterations/enable
403
+ * @secure
404
+ */
405
+ enableIterations: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
406
+ /**
407
+ * No description
408
+ *
409
+ * @name GetIteration
410
+ * @summary Get Iteration
411
+ * @request GET:/api/v3/iterations/{iteration-public-id}
412
+ * @secure
413
+ */
414
+ getIteration: (iterationPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Iteration>>;
415
+ /**
416
+ * No description
417
+ *
418
+ * @name UpdateIteration
419
+ * @summary Update Iteration
420
+ * @request PUT:/api/v3/iterations/{iteration-public-id}
421
+ * @secure
422
+ */
423
+ updateIteration: (iterationPublicId: number, UpdateIteration: UpdateIteration, params?: RequestParams) => Promise<import("axios").AxiosResponse<Iteration>>;
424
+ /**
425
+ * No description
426
+ *
427
+ * @name DeleteIteration
428
+ * @summary Delete Iteration
429
+ * @request DELETE:/api/v3/iterations/{iteration-public-id}
430
+ * @secure
431
+ */
432
+ deleteIteration: (iterationPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
433
+ /**
434
+ * @description Get a list of all Stories in an Iteration.
435
+ *
436
+ * @name ListIterationStories
437
+ * @summary List Iteration Stories
438
+ * @request GET:/api/v3/iterations/{iteration-public-id}/stories
439
+ * @secure
440
+ */
441
+ listIterationStories: (iterationPublicId: number, GetIterationStories: GetIterationStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
442
+ /**
443
+ * @description List Labels returns a list of all Labels and their attributes.
444
+ *
445
+ * @name ListLabels
446
+ * @summary List Labels
447
+ * @request GET:/api/v3/labels
448
+ * @secure
449
+ */
450
+ listLabels: (ListLabels: ListLabels, params?: RequestParams) => Promise<import("axios").AxiosResponse<Label[]>>;
451
+ /**
452
+ * @description Create Label allows you to create a new Label in Shortcut.
453
+ *
454
+ * @name CreateLabel
455
+ * @summary Create Label
456
+ * @request POST:/api/v3/labels
457
+ * @secure
458
+ */
459
+ createLabel: (CreateLabelParams: CreateLabelParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<Label>>;
460
+ /**
461
+ * @description Get Label returns information about the selected Label.
462
+ *
463
+ * @name GetLabel
464
+ * @summary Get Label
465
+ * @request GET:/api/v3/labels/{label-public-id}
466
+ * @secure
467
+ */
468
+ getLabel: (labelPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Label>>;
469
+ /**
470
+ * @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.
471
+ *
472
+ * @name UpdateLabel
473
+ * @summary Update Label
474
+ * @request PUT:/api/v3/labels/{label-public-id}
475
+ * @secure
476
+ */
477
+ updateLabel: (labelPublicId: number, UpdateLabel: UpdateLabel, params?: RequestParams) => Promise<import("axios").AxiosResponse<Label>>;
478
+ /**
479
+ * @description Delete Label can be used to delete any Label.
480
+ *
481
+ * @name DeleteLabel
482
+ * @summary Delete Label
483
+ * @request DELETE:/api/v3/labels/{label-public-id}
484
+ * @secure
485
+ */
486
+ deleteLabel: (labelPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
487
+ /**
488
+ * @description List all of the Epics with the Label.
489
+ *
490
+ * @name ListLabelEpics
491
+ * @summary List Label Epics
492
+ * @request GET:/api/v3/labels/{label-public-id}/epics
493
+ * @secure
494
+ */
495
+ listLabelEpics: (labelPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<EpicSlim[]>>;
496
+ /**
497
+ * @description List all of the Stories with the Label.
498
+ *
499
+ * @name ListLabelStories
500
+ * @summary List Label Stories
501
+ * @request GET:/api/v3/labels/{label-public-id}/stories
502
+ * @secure
503
+ */
504
+ listLabelStories: (labelPublicId: number, GetLabelStories: GetLabelStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
505
+ /**
506
+ * @description List Linked Files returns a list of all Linked-Files and their attributes.
507
+ *
508
+ * @name ListLinkedFiles
509
+ * @summary List Linked Files
510
+ * @request GET:/api/v3/linked-files
511
+ * @secure
512
+ */
513
+ listLinkedFiles: (params?: RequestParams) => Promise<import("axios").AxiosResponse<LinkedFile[]>>;
514
+ /**
515
+ * @description Create Linked File allows you to create a new Linked File in Shortcut.
516
+ *
517
+ * @name CreateLinkedFile
518
+ * @summary Create Linked File
519
+ * @request POST:/api/v3/linked-files
520
+ * @secure
521
+ */
522
+ createLinkedFile: (CreateLinkedFile: CreateLinkedFile, params?: RequestParams) => Promise<import("axios").AxiosResponse<LinkedFile>>;
523
+ /**
524
+ * @description Get File returns information about the selected Linked File.
525
+ *
526
+ * @name GetLinkedFile
527
+ * @summary Get Linked File
528
+ * @request GET:/api/v3/linked-files/{linked-file-public-id}
529
+ * @secure
530
+ */
531
+ getLinkedFile: (linkedFilePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<LinkedFile>>;
532
+ /**
533
+ * @description Updated Linked File allows you to update properties of a previously attached Linked-File.
534
+ *
535
+ * @name UpdateLinkedFile
536
+ * @summary Update Linked File
537
+ * @request PUT:/api/v3/linked-files/{linked-file-public-id}
538
+ * @secure
539
+ */
540
+ updateLinkedFile: (linkedFilePublicId: number, UpdateLinkedFile: UpdateLinkedFile, params?: RequestParams) => Promise<import("axios").AxiosResponse<LinkedFile>>;
541
+ /**
542
+ * @description Delete Linked File can be used to delete any previously attached Linked-File.
543
+ *
544
+ * @name DeleteLinkedFile
545
+ * @summary Delete Linked File
546
+ * @request DELETE:/api/v3/linked-files/{linked-file-public-id}
547
+ * @secure
548
+ */
549
+ deleteLinkedFile: (linkedFilePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
550
+ /**
551
+ * @description Returns information about the authenticated member.
552
+ *
553
+ * @name GetCurrentMemberInfo
554
+ * @summary Get Current Member Info
555
+ * @request GET:/api/v3/member
556
+ * @secure
557
+ */
558
+ getCurrentMemberInfo: (params?: RequestParams) => Promise<import("axios").AxiosResponse<MemberInfo>>;
559
+ /**
560
+ * @description List Members returns information about members of the organization.
561
+ *
562
+ * @name ListMembers
563
+ * @summary List Members
564
+ * @request GET:/api/v3/members
565
+ * @secure
566
+ */
567
+ listMembers: (ListMembers: ListMembers, params?: RequestParams) => Promise<import("axios").AxiosResponse<Member[]>>;
568
+ /**
569
+ * @description Returns information about a Member.
570
+ *
571
+ * @name GetMember
572
+ * @summary Get Member
573
+ * @request GET:/api/v3/members/{member-public-id}
574
+ * @secure
575
+ */
576
+ getMember: (memberPublicId: string, GetMember: GetMember, params?: RequestParams) => Promise<import("axios").AxiosResponse<Member>>;
577
+ /**
578
+ * @description List Milestones returns a list of all Milestones and their attributes.
579
+ *
580
+ * @name ListMilestones
581
+ * @summary List Milestones
582
+ * @request GET:/api/v3/milestones
583
+ * @secure
584
+ */
585
+ listMilestones: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Milestone[]>>;
586
+ /**
587
+ * @description Create Milestone allows you to create a new Milestone in Shortcut.
588
+ *
589
+ * @name CreateMilestone
590
+ * @summary Create Milestone
591
+ * @request POST:/api/v3/milestones
592
+ * @secure
593
+ */
594
+ createMilestone: (CreateMilestone: CreateMilestone, params?: RequestParams) => Promise<import("axios").AxiosResponse<Milestone>>;
595
+ /**
596
+ * @description Get Milestone returns information about a chosen Milestone.
597
+ *
598
+ * @name GetMilestone
599
+ * @summary Get Milestone
600
+ * @request GET:/api/v3/milestones/{milestone-public-id}
601
+ * @secure
602
+ */
603
+ getMilestone: (milestonePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Milestone>>;
604
+ /**
605
+ * @description Update Milestone can be used to update Milestone properties.
606
+ *
607
+ * @name UpdateMilestone
608
+ * @summary Update Milestone
609
+ * @request PUT:/api/v3/milestones/{milestone-public-id}
610
+ * @secure
611
+ */
612
+ updateMilestone: (milestonePublicId: number, UpdateMilestone: UpdateMilestone, params?: RequestParams) => Promise<import("axios").AxiosResponse<Milestone>>;
613
+ /**
614
+ * @description Delete Milestone can be used to delete any Milestone.
615
+ *
616
+ * @name DeleteMilestone
617
+ * @summary Delete Milestone
618
+ * @request DELETE:/api/v3/milestones/{milestone-public-id}
619
+ * @secure
620
+ */
621
+ deleteMilestone: (milestonePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
622
+ /**
623
+ * @description List all of the Epics within the Milestone.
624
+ *
625
+ * @name ListMilestoneEpics
626
+ * @summary List Milestone Epics
627
+ * @request GET:/api/v3/milestones/{milestone-public-id}/epics
628
+ * @secure
629
+ */
630
+ listMilestoneEpics: (milestonePublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<EpicSlim[]>>;
631
+ /**
632
+ * @description List Projects returns a list of all Projects and their attributes.
633
+ *
634
+ * @name ListProjects
635
+ * @summary List Projects
636
+ * @request GET:/api/v3/projects
637
+ * @secure
638
+ */
639
+ listProjects: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Project[]>>;
640
+ /**
641
+ * @description Create Project is used to create a new Shortcut Project.
642
+ *
643
+ * @name CreateProject
644
+ * @summary Create Project
645
+ * @request POST:/api/v3/projects
646
+ * @secure
647
+ */
648
+ createProject: (CreateProject: CreateProject, params?: RequestParams) => Promise<import("axios").AxiosResponse<Project>>;
649
+ /**
650
+ * @description Get Project returns information about the selected Project.
651
+ *
652
+ * @name GetProject
653
+ * @summary Get Project
654
+ * @request GET:/api/v3/projects/{project-public-id}
655
+ * @secure
656
+ */
657
+ getProject: (projectPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Project>>;
658
+ /**
659
+ * @description Update Project can be used to change properties of a Project.
660
+ *
661
+ * @name UpdateProject
662
+ * @summary Update Project
663
+ * @request PUT:/api/v3/projects/{project-public-id}
664
+ * @secure
665
+ */
666
+ updateProject: (projectPublicId: number, UpdateProject: UpdateProject, params?: RequestParams) => Promise<import("axios").AxiosResponse<Project>>;
667
+ /**
668
+ * @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.
669
+ *
670
+ * @name DeleteProject
671
+ * @summary Delete Project
672
+ * @request DELETE:/api/v3/projects/{project-public-id}
673
+ * @secure
674
+ */
675
+ deleteProject: (projectPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
676
+ /**
677
+ * @description List Stories returns a list of all Stories in a selected Project and their attributes.
678
+ *
679
+ * @name ListStories
680
+ * @summary List Stories
681
+ * @request GET:/api/v3/projects/{project-public-id}/stories
682
+ * @secure
683
+ */
684
+ listStories: (projectPublicId: number, GetProjectStories: GetProjectStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
685
+ /**
686
+ * @description List Repositories returns a list of all Repositories and their attributes.
687
+ *
688
+ * @name ListRepositories
689
+ * @summary List Repositories
690
+ * @request GET:/api/v3/repositories
691
+ * @secure
692
+ */
693
+ listRepositories: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Repository[]>>;
694
+ /**
695
+ * @description Get Repository returns information about the selected Repository.
696
+ *
697
+ * @name GetRepository
698
+ * @summary Get Repository
699
+ * @request GET:/api/v3/repositories/{repo-public-id}
700
+ * @secure
701
+ */
702
+ getRepository: (repoPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Repository>>;
703
+ /**
704
+ * @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.
705
+ *
706
+ * @name Search
707
+ * @summary Search
708
+ * @request GET:/api/v3/search
709
+ * @secure
710
+ */
711
+ search: (Search: Search, params?: RequestParams) => Promise<import("axios").AxiosResponse<SearchResults>>;
712
+ /**
713
+ * @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.
714
+ *
715
+ * @name SearchEpics
716
+ * @summary Search Epics
717
+ * @request GET:/api/v3/search/epics
718
+ * @secure
719
+ */
720
+ searchEpics: (Search: Search, params?: RequestParams) => Promise<import("axios").AxiosResponse<EpicSearchResults>>;
721
+ /**
722
+ * @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.
723
+ *
724
+ * @name SearchStories
725
+ * @summary Search Stories
726
+ * @request GET:/api/v3/search/stories
727
+ * @secure
728
+ */
729
+ searchStories: (Search: Search, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySearchResults>>;
730
+ /**
731
+ * @description Create Story is used to add a new story to your Shortcut.
732
+ *
733
+ * @name CreateStory
734
+ * @summary Create Story
735
+ * @request POST:/api/v3/stories
736
+ * @secure
737
+ */
738
+ createStory: (CreateStoryParams: CreateStoryParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<Story>>;
739
+ /**
740
+ * @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).
741
+ *
742
+ * @name CreateMultipleStories
743
+ * @summary Create Multiple Stories
744
+ * @request POST:/api/v3/stories/bulk
745
+ * @secure
746
+ */
747
+ createMultipleStories: (CreateStories: CreateStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
748
+ /**
749
+ * @description Update Multiple Stories allows you to make changes to numerous stories at once.
750
+ *
751
+ * @name UpdateMultipleStories
752
+ * @summary Update Multiple Stories
753
+ * @request PUT:/api/v3/stories/bulk
754
+ * @secure
755
+ */
756
+ updateMultipleStories: (UpdateStories: UpdateStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
757
+ /**
758
+ * @description Delete Multiple Stories allows you to delete multiple archived stories at once.
759
+ *
760
+ * @name DeleteMultipleStories
761
+ * @summary Delete Multiple Stories
762
+ * @request DELETE:/api/v3/stories/bulk
763
+ * @secure
764
+ */
765
+ deleteMultipleStories: (DeleteStories: DeleteStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
766
+ /**
767
+ * @description Search Stories lets you search Stories based on desired parameters.
768
+ *
769
+ * @name SearchStoriesOld
770
+ * @summary Search Stories (Old)
771
+ * @request POST:/api/v3/stories/search
772
+ * @secure
773
+ */
774
+ searchStoriesOld: (SearchStories: SearchStories, params?: RequestParams) => Promise<import("axios").AxiosResponse<StorySlim[]>>;
775
+ /**
776
+ * @description Get Story returns information about a chosen Story.
777
+ *
778
+ * @name GetStory
779
+ * @summary Get Story
780
+ * @request GET:/api/v3/stories/{story-public-id}
781
+ * @secure
782
+ */
783
+ getStory: (storyPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Story>>;
784
+ /**
785
+ * @description Update Story can be used to update Story properties.
786
+ *
787
+ * @name UpdateStory
788
+ * @summary Update Story
789
+ * @request PUT:/api/v3/stories/{story-public-id}
790
+ * @secure
791
+ */
792
+ updateStory: (storyPublicId: number, UpdateStory: UpdateStory, params?: RequestParams) => Promise<import("axios").AxiosResponse<Story>>;
793
+ /**
794
+ * @description Delete Story can be used to delete any Story.
795
+ *
796
+ * @name DeleteStory
797
+ * @summary Delete Story
798
+ * @request DELETE:/api/v3/stories/{story-public-id}
799
+ * @secure
800
+ */
801
+ deleteStory: (storyPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
802
+ /**
803
+ * @description Create Comment allows you to create a Comment on any Story.
804
+ *
805
+ * @name CreateStoryComment
806
+ * @summary Create Story Comment
807
+ * @request POST:/api/v3/stories/{story-public-id}/comments
808
+ * @secure
809
+ */
810
+ createStoryComment: (storyPublicId: number, CreateStoryComment: CreateStoryComment, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryComment>>;
811
+ /**
812
+ * @description Get Comment is used to get Comment information.
813
+ *
814
+ * @name GetStoryComment
815
+ * @summary Get Story Comment
816
+ * @request GET:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
817
+ * @secure
818
+ */
819
+ getStoryComment: (storyPublicId: number, commentPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryComment>>;
820
+ /**
821
+ * @description Update Comment replaces the text of the existing Comment.
822
+ *
823
+ * @name UpdateStoryComment
824
+ * @summary Update Story Comment
825
+ * @request PUT:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
826
+ * @secure
827
+ */
828
+ updateStoryComment: (storyPublicId: number, commentPublicId: number, UpdateStoryComment: UpdateStoryComment, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryComment>>;
829
+ /**
830
+ * @description Delete a Comment from any story.
831
+ *
832
+ * @name DeleteStoryComment
833
+ * @summary Delete Story Comment
834
+ * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}
835
+ * @secure
836
+ */
837
+ deleteStoryComment: (storyPublicId: number, commentPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
838
+ /**
839
+ * @description Create a reaction to a story comment.
840
+ *
841
+ * @name CreateStoryReaction
842
+ * @summary Create Story Reaction
843
+ * @request POST:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
844
+ * @secure
845
+ */
846
+ createStoryReaction: (storyPublicId: number, commentPublicId: number, CreateOrDeleteStoryReaction: CreateOrDeleteStoryReaction, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryReaction[]>>;
847
+ /**
848
+ * @description Delete a reaction from any story comment.
849
+ *
850
+ * @name DeleteStoryReaction
851
+ * @summary Delete Story Reaction
852
+ * @request DELETE:/api/v3/stories/{story-public-id}/comments/{comment-public-id}/reactions
853
+ * @secure
854
+ */
855
+ deleteStoryReaction: (storyPublicId: number, commentPublicId: number, CreateOrDeleteStoryReaction: CreateOrDeleteStoryReaction, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
856
+ /**
857
+ * No description
858
+ *
859
+ * @name StoryHistory
860
+ * @summary Story History
861
+ * @request GET:/api/v3/stories/{story-public-id}/history
862
+ * @secure
863
+ */
864
+ storyHistory: (storyPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<History[]>>;
865
+ /**
866
+ * @description Create Task is used to create a new task in a Story.
867
+ *
868
+ * @name CreateTask
869
+ * @summary Create Task
870
+ * @request POST:/api/v3/stories/{story-public-id}/tasks
871
+ * @secure
872
+ */
873
+ createTask: (storyPublicId: number, CreateTask: CreateTask, params?: RequestParams) => Promise<import("axios").AxiosResponse<Task>>;
874
+ /**
875
+ * @description Returns information about a chosen Task.
876
+ *
877
+ * @name GetTask
878
+ * @summary Get Task
879
+ * @request GET:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
880
+ * @secure
881
+ */
882
+ getTask: (storyPublicId: number, taskPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Task>>;
883
+ /**
884
+ * @description Update Task can be used to update Task properties.
885
+ *
886
+ * @name UpdateTask
887
+ * @summary Update Task
888
+ * @request PUT:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
889
+ * @secure
890
+ */
891
+ updateTask: (storyPublicId: number, taskPublicId: number, UpdateTask: UpdateTask, params?: RequestParams) => Promise<import("axios").AxiosResponse<Task>>;
892
+ /**
893
+ * @description Delete Task can be used to delete any previously created Task on a Story.
894
+ *
895
+ * @name DeleteTask
896
+ * @summary Delete Task
897
+ * @request DELETE:/api/v3/stories/{story-public-id}/tasks/{task-public-id}
898
+ * @secure
899
+ */
900
+ deleteTask: (storyPublicId: number, taskPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
901
+ /**
902
+ * @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”
903
+ *
904
+ * @name CreateStoryLink
905
+ * @summary Create Story Link
906
+ * @request POST:/api/v3/story-links
907
+ * @secure
908
+ */
909
+ createStoryLink: (CreateStoryLink: CreateStoryLink, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryLink>>;
910
+ /**
911
+ * @description Returns the stories and their relationship for the given Story Link.
912
+ *
913
+ * @name GetStoryLink
914
+ * @summary Get Story Link
915
+ * @request GET:/api/v3/story-links/{story-link-public-id}
916
+ * @secure
917
+ */
918
+ getStoryLink: (storyLinkPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryLink>>;
919
+ /**
920
+ * @description Updates the stories and/or the relationship for the given Story Link.
921
+ *
922
+ * @name UpdateStoryLink
923
+ * @summary Update Story Link
924
+ * @request PUT:/api/v3/story-links/{story-link-public-id}
925
+ * @secure
926
+ */
927
+ updateStoryLink: (storyLinkPublicId: number, UpdateStoryLink: UpdateStoryLink, params?: RequestParams) => Promise<import("axios").AxiosResponse<StoryLink>>;
928
+ /**
929
+ * @description Removes the relationship between the stories for the given Story Link.
930
+ *
931
+ * @name DeleteStoryLink
932
+ * @summary Delete Story Link
933
+ * @request DELETE:/api/v3/story-links/{story-link-public-id}
934
+ * @secure
935
+ */
936
+ deleteStoryLink: (storyLinkPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<void>>;
937
+ /**
938
+ * @description List Workflows returns a list of all Workflows in the organization.
939
+ *
940
+ * @name ListWorkflows
941
+ * @summary List Workflows
942
+ * @request GET:/api/v3/workflows
943
+ * @secure
944
+ */
945
+ listWorkflows: (params?: RequestParams) => Promise<import("axios").AxiosResponse<Workflow[]>>;
946
+ /**
947
+ * @description Get Workflow returns information about a chosen Workflow.
948
+ *
949
+ * @name GetWorkflow
950
+ * @summary Get Workflow
951
+ * @request GET:/api/v3/workflows/{workflow-public-id}
952
+ * @secure
953
+ */
954
+ getWorkflow: (workflowPublicId: number, params?: RequestParams) => Promise<import("axios").AxiosResponse<Workflow>>;
955
+ }