@makeplane/plane-node-sdk 0.1.5 → 0.2.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.
- package/LICENSE +7 -0
- package/README.md +117 -76
- package/dist/Configuration.d.ts +21 -0
- package/dist/Configuration.d.ts.map +1 -0
- package/dist/Configuration.js +28 -0
- package/dist/Configuration.js.map +1 -0
- package/dist/api/BaseResource.d.ts +55 -0
- package/dist/api/BaseResource.d.ts.map +1 -0
- package/dist/api/BaseResource.js +179 -0
- package/dist/api/BaseResource.js.map +1 -0
- package/dist/api/Customers/Properties.d.ts +44 -0
- package/dist/api/Customers/Properties.d.ts.map +1 -0
- package/dist/api/Customers/Properties.js +65 -0
- package/dist/api/Customers/Properties.js.map +1 -0
- package/dist/api/Customers/Requests.d.ts +32 -0
- package/dist/api/Customers/Requests.d.ts.map +1 -0
- package/dist/api/Customers/Requests.js +45 -0
- package/dist/api/Customers/Requests.js.map +1 -0
- package/dist/api/Customers/index.d.ts +49 -0
- package/dist/api/Customers/index.d.ts.map +1 -0
- package/dist/api/Customers/index.js +71 -0
- package/dist/api/Customers/index.js.map +1 -0
- package/dist/api/Cycles.d.ts +61 -0
- package/dist/api/Cycles.d.ts.map +1 -0
- package/dist/api/Cycles.js +89 -0
- package/dist/api/Cycles.js.map +1 -0
- package/dist/api/Epics.d.ts +20 -0
- package/dist/api/Epics.d.ts.map +1 -0
- package/dist/api/Epics.js +27 -0
- package/dist/api/Epics.js.map +1 -0
- package/dist/api/Intake.d.ts +32 -0
- package/dist/api/Intake.d.ts.map +1 -0
- package/dist/api/Intake.js +45 -0
- package/dist/api/Intake.js.map +1 -0
- package/dist/api/Labels.d.ts +58 -0
- package/dist/api/Labels.d.ts.map +1 -0
- package/dist/api/Labels.js +45 -0
- package/dist/api/Labels.js.map +1 -0
- package/dist/api/Links.d.ts +32 -0
- package/dist/api/Links.d.ts.map +1 -0
- package/dist/api/Links.js +45 -0
- package/dist/api/Links.js.map +1 -0
- package/dist/api/Members.d.ts +56 -0
- package/dist/api/Members.d.ts.map +1 -0
- package/dist/api/Members.js +45 -0
- package/dist/api/Members.js.map +1 -0
- package/dist/api/Modules.d.ts +57 -0
- package/dist/api/Modules.d.ts.map +1 -0
- package/dist/api/Modules.js +83 -0
- package/dist/api/Modules.js.map +1 -0
- package/dist/api/Pages.d.ts +35 -0
- package/dist/api/Pages.d.ts.map +1 -0
- package/dist/api/Pages.js +53 -0
- package/dist/api/Pages.js.map +1 -0
- package/dist/api/Projects.d.ts +41 -0
- package/dist/api/Projects.d.ts.map +1 -0
- package/dist/api/Projects.js +60 -0
- package/dist/api/Projects.js.map +1 -0
- package/dist/api/States.d.ts +32 -0
- package/dist/api/States.d.ts.map +1 -0
- package/dist/api/States.js +45 -0
- package/dist/api/States.js.map +1 -0
- package/dist/api/Users.d.ts +15 -0
- package/dist/api/Users.d.ts.map +1 -0
- package/dist/api/Users.js +21 -0
- package/dist/api/Users.js.map +1 -0
- package/dist/api/WorkItemProperties/Options.d.ts +31 -0
- package/dist/api/WorkItemProperties/Options.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/Options.js +45 -0
- package/dist/api/WorkItemProperties/Options.js.map +1 -0
- package/dist/api/WorkItemProperties/Values.d.ts +23 -0
- package/dist/api/WorkItemProperties/Values.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/Values.js +34 -0
- package/dist/api/WorkItemProperties/Values.js.map +1 -0
- package/dist/api/WorkItemProperties/index.d.ts +35 -0
- package/dist/api/WorkItemProperties/index.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/index.js +49 -0
- package/dist/api/WorkItemProperties/index.js.map +1 -0
- package/dist/api/WorkItemTypes.d.ts +36 -0
- package/dist/api/WorkItemTypes.d.ts.map +1 -0
- package/dist/api/WorkItemTypes.js +45 -0
- package/dist/api/WorkItemTypes.js.map +1 -0
- package/dist/api/WorkItems/Activities.d.ts +20 -0
- package/dist/api/WorkItems/Activities.d.ts.map +1 -0
- package/dist/api/WorkItems/Activities.js +27 -0
- package/dist/api/WorkItems/Activities.js.map +1 -0
- package/dist/api/WorkItems/Attachments.d.ts +31 -0
- package/dist/api/WorkItems/Attachments.d.ts.map +1 -0
- package/dist/api/WorkItems/Attachments.js +45 -0
- package/dist/api/WorkItems/Attachments.js.map +1 -0
- package/dist/api/WorkItems/Comments.d.ts +32 -0
- package/dist/api/WorkItems/Comments.d.ts.map +1 -0
- package/dist/api/WorkItems/Comments.js +45 -0
- package/dist/api/WorkItems/Comments.js.map +1 -0
- package/dist/api/WorkItems/Relations.d.ts +23 -0
- package/dist/api/WorkItems/Relations.d.ts.map +1 -0
- package/dist/api/WorkItems/Relations.js +33 -0
- package/dist/api/WorkItems/Relations.js.map +1 -0
- package/dist/api/WorkItems/WorkLogs.d.ts +27 -0
- package/dist/api/WorkItems/WorkLogs.d.ts.map +1 -0
- package/dist/api/WorkItems/WorkLogs.js +39 -0
- package/dist/api/WorkItems/WorkLogs.js.map +1 -0
- package/dist/api/WorkItems/index.d.ts +48 -0
- package/dist/api/WorkItems/index.d.ts.map +1 -0
- package/dist/api/WorkItems/index.js +75 -0
- package/dist/api/WorkItems/index.js.map +1 -0
- package/dist/api/Workspace.d.ts +15 -0
- package/dist/api/Workspace.d.ts.map +1 -0
- package/dist/api/Workspace.js +21 -0
- package/dist/api/Workspace.js.map +1 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -0
- package/dist/client/index.js.map +1 -0
- package/dist/{oauth/api.d.ts → client/oauth-client.d.ts} +7 -5
- package/dist/client/oauth-client.d.ts.map +1 -0
- package/dist/client/oauth-client.js +129 -0
- package/dist/client/oauth-client.js.map +1 -0
- package/dist/client/plane-client.d.ts +47 -0
- package/dist/client/plane-client.d.ts.map +1 -0
- package/dist/client/plane-client.js +55 -0
- package/dist/client/plane-client.js.map +1 -0
- package/dist/errors/HttpError.d.ts +8 -0
- package/dist/errors/HttpError.d.ts.map +1 -0
- package/dist/errors/HttpError.js +15 -0
- package/dist/errors/HttpError.js.map +1 -0
- package/dist/errors/PlaneError.d.ts +9 -0
- package/dist/errors/PlaneError.d.ts.map +1 -0
- package/dist/errors/PlaneError.js +16 -0
- package/dist/errors/PlaneError.js.map +1 -0
- package/dist/errors/index.d.ts +3 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +8 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +31 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +67 -5
- package/dist/index.js.map +1 -0
- package/dist/models/Attachment.d.ts +46 -0
- package/dist/models/Attachment.d.ts.map +1 -0
- package/dist/models/Attachment.js +7 -0
- package/dist/models/Attachment.js.map +1 -0
- package/dist/models/Comment.d.ts +43 -0
- package/dist/models/Comment.d.ts.map +1 -0
- package/dist/models/Comment.js +3 -0
- package/dist/models/Comment.js.map +1 -0
- package/dist/models/Customer.d.ts +136 -0
- package/dist/models/Customer.d.ts.map +1 -0
- package/dist/models/Customer.js +3 -0
- package/dist/models/Customer.js.map +1 -0
- package/dist/models/Cycle.d.ts +59 -210
- package/dist/models/Cycle.d.ts.map +1 -0
- package/dist/models/Cycle.js +1 -91
- package/dist/models/Cycle.js.map +1 -0
- package/dist/models/Epic.d.ts +28 -200
- package/dist/models/Epic.d.ts.map +1 -0
- package/dist/models/Epic.js +1 -104
- package/dist/models/Epic.js.map +1 -0
- package/dist/models/Intake.d.ts +48 -0
- package/dist/models/Intake.d.ts.map +1 -0
- package/dist/models/Intake.js +3 -0
- package/dist/models/Intake.js.map +1 -0
- package/dist/models/Label.d.ts +13 -113
- package/dist/models/Label.d.ts.map +1 -0
- package/dist/models/Label.js +1 -68
- package/dist/models/Label.js.map +1 -0
- package/dist/models/Link.d.ts +25 -0
- package/dist/models/Link.d.ts.map +1 -0
- package/dist/{oauth/models.js → models/Link.js} +1 -0
- package/dist/models/Link.js.map +1 -0
- package/dist/models/Module.d.ts +55 -193
- package/dist/models/Module.d.ts.map +1 -0
- package/dist/models/Module.js +1 -89
- package/dist/models/Module.js.map +1 -0
- package/dist/{oauth/models.d.ts → models/OAuth.d.ts} +1 -0
- package/dist/models/OAuth.d.ts.map +1 -0
- package/dist/models/OAuth.js +3 -0
- package/dist/models/OAuth.js.map +1 -0
- package/dist/models/Page.d.ts +14 -0
- package/dist/models/Page.d.ts.map +1 -0
- package/dist/models/Page.js +3 -0
- package/dist/models/Page.js.map +1 -0
- package/dist/models/Project.d.ts +42 -290
- package/dist/models/Project.d.ts.map +1 -0
- package/dist/models/Project.js +1 -122
- package/dist/models/Project.js.map +1 -0
- package/dist/models/State.d.ts +34 -124
- package/dist/models/State.d.ts.map +1 -0
- package/dist/models/State.js +2 -73
- package/dist/models/State.js.map +1 -0
- package/dist/models/User.d.ts +10 -0
- package/dist/models/User.d.ts.map +1 -0
- package/dist/models/User.js +3 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/WorkItem.d.ts +111 -0
- package/dist/models/WorkItem.d.ts.map +1 -0
- package/dist/models/WorkItem.js +3 -0
- package/dist/models/WorkItem.js.map +1 -0
- package/dist/models/WorkItemProperty.d.ts +123 -0
- package/dist/models/WorkItemProperty.d.ts.map +1 -0
- package/dist/models/WorkItemProperty.js +3 -0
- package/dist/models/WorkItemProperty.js.map +1 -0
- package/dist/models/WorkItemRelation.d.ts +34 -0
- package/dist/models/WorkItemRelation.d.ts.map +1 -0
- package/dist/models/WorkItemRelation.js +3 -0
- package/dist/models/WorkItemRelation.js.map +1 -0
- package/dist/models/WorkItemType.d.ts +18 -0
- package/dist/models/WorkItemType.d.ts.map +1 -0
- package/dist/models/WorkItemType.js +3 -0
- package/dist/models/WorkItemType.js.map +1 -0
- package/dist/models/WorkLog.d.ts +23 -0
- package/dist/models/WorkLog.d.ts.map +1 -0
- package/dist/models/WorkLog.js +3 -0
- package/dist/models/WorkLog.js.map +1 -0
- package/dist/models/common.d.ts +63 -0
- package/dist/models/common.d.ts.map +1 -0
- package/dist/models/common.js +6 -0
- package/dist/models/common.js.map +1 -0
- package/dist/models/index.d.ts +11 -106
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +9 -105
- package/dist/models/index.js.map +1 -0
- package/package.json +49 -14
- package/.github/workflows/publish-node-sdk.yml +0 -42
- package/.openapi-generator/FILES +0 -138
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/dist/apis/AssetsApi.d.ts +0 -100
- package/dist/apis/AssetsApi.js +0 -522
- package/dist/apis/CyclesApi.d.ts +0 -225
- package/dist/apis/CyclesApi.js +0 -1142
- package/dist/apis/EpicsApi.d.ts +0 -49
- package/dist/apis/EpicsApi.js +0 -243
- package/dist/apis/IntakeApi.d.ts +0 -96
- package/dist/apis/IntakeApi.js +0 -485
- package/dist/apis/LabelsApi.d.ts +0 -97
- package/dist/apis/LabelsApi.js +0 -488
- package/dist/apis/MembersApi.d.ts +0 -44
- package/dist/apis/MembersApi.js +0 -228
- package/dist/apis/ModulesApi.d.ts +0 -198
- package/dist/apis/ModulesApi.js +0 -991
- package/dist/apis/PagesApi.d.ts +0 -75
- package/dist/apis/PagesApi.js +0 -393
- package/dist/apis/ProjectsApi.d.ts +0 -120
- package/dist/apis/ProjectsApi.js +0 -621
- package/dist/apis/StatesApi.d.ts +0 -96
- package/dist/apis/StatesApi.js +0 -485
- package/dist/apis/UsersApi.d.ts +0 -27
- package/dist/apis/UsersApi.js +0 -149
- package/dist/apis/WorkItemActivityApi.d.ts +0 -58
- package/dist/apis/WorkItemActivityApi.js +0 -270
- package/dist/apis/WorkItemAttachmentsApi.d.ts +0 -97
- package/dist/apis/WorkItemAttachmentsApi.js +0 -482
- package/dist/apis/WorkItemCommentsApi.d.ts +0 -102
- package/dist/apis/WorkItemCommentsApi.js +0 -500
- package/dist/apis/WorkItemLinksApi.d.ts +0 -106
- package/dist/apis/WorkItemLinksApi.js +0 -515
- package/dist/apis/WorkItemPropertiesApi.d.ts +0 -226
- package/dist/apis/WorkItemPropertiesApi.js +0 -1148
- package/dist/apis/WorkItemTypesApi.d.ts +0 -92
- package/dist/apis/WorkItemTypesApi.js +0 -473
- package/dist/apis/WorkItemWorklogsApi.d.ts +0 -95
- package/dist/apis/WorkItemWorklogsApi.js +0 -479
- package/dist/apis/WorkItemsApi.d.ts +0 -186
- package/dist/apis/WorkItemsApi.js +0 -934
- package/dist/apis/WorkspacesApi.d.ts +0 -28
- package/dist/apis/WorkspacesApi.js +0 -150
- package/dist/apis/index.d.ts +0 -20
- package/dist/apis/index.js +0 -37
- package/dist/models/AccessBd4Enum.d.ts +0 -25
- package/dist/models/AccessBd4Enum.js +0 -51
- package/dist/models/CycleCreateRequest.d.ts +0 -77
- package/dist/models/CycleCreateRequest.js +0 -67
- package/dist/models/CycleIssue.d.ts +0 -94
- package/dist/models/CycleIssue.js +0 -65
- package/dist/models/CycleIssueRequestRequest.d.ts +0 -34
- package/dist/models/CycleIssueRequestRequest.js +0 -50
- package/dist/models/CycleLite.d.ts +0 -161
- package/dist/models/CycleLite.js +0 -96
- package/dist/models/EntityTypeEnum.d.ts +0 -25
- package/dist/models/EntityTypeEnum.js +0 -51
- package/dist/models/GenericAssetUploadRequest.d.ts +0 -65
- package/dist/models/GenericAssetUploadRequest.js +0 -62
- package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +0 -73
- package/dist/models/GetWorkspaceMembers200ResponseInner.js +0 -55
- package/dist/models/GroupEnum.d.ts +0 -33
- package/dist/models/GroupEnum.js +0 -59
- package/dist/models/IntakeIssue.d.ts +0 -150
- package/dist/models/IntakeIssue.js +0 -80
- package/dist/models/IntakeIssueCreateRequest.d.ts +0 -72
- package/dist/models/IntakeIssueCreateRequest.js +0 -66
- package/dist/models/IntakeWorkItemStatusEnum.d.ts +0 -31
- package/dist/models/IntakeWorkItemStatusEnum.js +0 -57
- package/dist/models/Issue.d.ts +0 -197
- package/dist/models/Issue.js +0 -98
- package/dist/models/IssueActivity.d.ts +0 -136
- package/dist/models/IssueActivity.js +0 -83
- package/dist/models/IssueAttachment.d.ts +0 -172
- package/dist/models/IssueAttachment.js +0 -89
- package/dist/models/IssueAttachmentUploadRequest.d.ts +0 -58
- package/dist/models/IssueAttachmentUploadRequest.js +0 -60
- package/dist/models/IssueComment.d.ts +0 -137
- package/dist/models/IssueComment.js +0 -74
- package/dist/models/IssueCommentCreateRequest.d.ts +0 -59
- package/dist/models/IssueCommentCreateRequest.js +0 -57
- package/dist/models/IssueDetail.d.ts +0 -211
- package/dist/models/IssueDetail.js +0 -108
- package/dist/models/IssueExpand.d.ts +0 -224
- package/dist/models/IssueExpand.js +0 -103
- package/dist/models/IssueForIntakeRequest.d.ts +0 -53
- package/dist/models/IssueForIntakeRequest.js +0 -57
- package/dist/models/IssueLink.d.ts +0 -100
- package/dist/models/IssueLink.js +0 -64
- package/dist/models/IssueLinkCreateRequest.d.ts +0 -34
- package/dist/models/IssueLinkCreateRequest.js +0 -50
- package/dist/models/IssuePropertyAPI.d.ts +0 -171
- package/dist/models/IssuePropertyAPI.js +0 -88
- package/dist/models/IssuePropertyAPIRelationTypeEnum.d.ts +0 -25
- package/dist/models/IssuePropertyAPIRelationTypeEnum.js +0 -51
- package/dist/models/IssuePropertyAPIRequest.d.ts +0 -99
- package/dist/models/IssuePropertyAPIRequest.js +0 -76
- package/dist/models/IssuePropertyOptionAPI.d.ts +0 -133
- package/dist/models/IssuePropertyOptionAPI.js +0 -73
- package/dist/models/IssuePropertyOptionAPIRequest.d.ts +0 -67
- package/dist/models/IssuePropertyOptionAPIRequest.js +0 -62
- package/dist/models/IssuePropertyValueAPI.d.ts +0 -133
- package/dist/models/IssuePropertyValueAPI.js +0 -78
- package/dist/models/IssuePropertyValueAPIDetail.d.ts +0 -39
- package/dist/models/IssuePropertyValueAPIDetail.js +0 -54
- package/dist/models/IssuePropertyValueAPIRequest.d.ts +0 -85
- package/dist/models/IssuePropertyValueAPIRequest.js +0 -70
- package/dist/models/IssueRelation.d.ts +0 -106
- package/dist/models/IssueRelation.js +0 -58
- package/dist/models/IssueRelationCreateRelationTypeEnum.d.ts +0 -37
- package/dist/models/IssueRelationCreateRelationTypeEnum.js +0 -63
- package/dist/models/IssueRelationCreateRequest.d.ts +0 -50
- package/dist/models/IssueRelationCreateRequest.js +0 -55
- package/dist/models/IssueRelationRemoveRequest.d.ts +0 -34
- package/dist/models/IssueRelationRemoveRequest.js +0 -50
- package/dist/models/IssueRelationResponse.d.ts +0 -75
- package/dist/models/IssueRelationResponse.js +0 -78
- package/dist/models/IssueRequest.d.ts +0 -167
- package/dist/models/IssueRequest.js +0 -95
- package/dist/models/IssueSearch.d.ts +0 -34
- package/dist/models/IssueSearch.js +0 -51
- package/dist/models/IssueSearchItem.d.ts +0 -64
- package/dist/models/IssueSearchItem.js +0 -70
- package/dist/models/IssueTypeAPI.d.ts +0 -127
- package/dist/models/IssueTypeAPI.js +0 -72
- package/dist/models/IssueTypeAPIRequest.d.ts +0 -67
- package/dist/models/IssueTypeAPIRequest.js +0 -62
- package/dist/models/IssueWorkLogAPI.d.ts +0 -85
- package/dist/models/IssueWorkLogAPI.js +0 -60
- package/dist/models/IssueWorkLogAPIRequest.d.ts +0 -49
- package/dist/models/IssueWorkLogAPIRequest.js +0 -54
- package/dist/models/LabelCreateUpdateRequest.d.ts +0 -70
- package/dist/models/LabelCreateUpdateRequest.js +0 -62
- package/dist/models/ModuleCreateRequest.d.ts +0 -83
- package/dist/models/ModuleCreateRequest.js +0 -67
- package/dist/models/ModuleIssue.d.ts +0 -94
- package/dist/models/ModuleIssue.js +0 -63
- package/dist/models/ModuleIssueRequestRequest.d.ts +0 -34
- package/dist/models/ModuleIssueRequestRequest.js +0 -50
- package/dist/models/ModuleLite.d.ts +0 -167
- package/dist/models/ModuleLite.js +0 -97
- package/dist/models/ModuleStatusEnum.d.ts +0 -33
- package/dist/models/ModuleStatusEnum.js +0 -59
- package/dist/models/NetworkEnum.d.ts +0 -25
- package/dist/models/NetworkEnum.js +0 -51
- package/dist/models/PageCreateAPI.d.ts +0 -134
- package/dist/models/PageCreateAPI.js +0 -79
- package/dist/models/PageCreateAPIAccessEnum.d.ts +0 -25
- package/dist/models/PageCreateAPIAccessEnum.js +0 -51
- package/dist/models/PageCreateAPIRequest.d.ts +0 -86
- package/dist/models/PageCreateAPIRequest.js +0 -71
- package/dist/models/PageDetailAPI.d.ts +0 -79
- package/dist/models/PageDetailAPI.js +0 -57
- package/dist/models/PaginatedArchivedCycleResponse.d.ts +0 -98
- package/dist/models/PaginatedArchivedCycleResponse.js +0 -95
- package/dist/models/PaginatedArchivedModuleResponse.d.ts +0 -98
- package/dist/models/PaginatedArchivedModuleResponse.js +0 -95
- package/dist/models/PaginatedCycleIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedCycleIssueResponse.js +0 -95
- package/dist/models/PaginatedCycleResponse.d.ts +0 -98
- package/dist/models/PaginatedCycleResponse.js +0 -95
- package/dist/models/PaginatedEpicResponse.d.ts +0 -98
- package/dist/models/PaginatedEpicResponse.js +0 -95
- package/dist/models/PaginatedIntakeIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedIntakeIssueResponse.js +0 -95
- package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueActivityDetailResponse.js +0 -95
- package/dist/models/PaginatedIssueActivityResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueActivityResponse.js +0 -95
- package/dist/models/PaginatedIssueCommentResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueCommentResponse.js +0 -95
- package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueLinkDetailResponse.js +0 -95
- package/dist/models/PaginatedIssueLinkResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueLinkResponse.js +0 -95
- package/dist/models/PaginatedLabelResponse.d.ts +0 -98
- package/dist/models/PaginatedLabelResponse.js +0 -95
- package/dist/models/PaginatedModuleIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedModuleIssueResponse.js +0 -95
- package/dist/models/PaginatedModuleResponse.d.ts +0 -98
- package/dist/models/PaginatedModuleResponse.js +0 -95
- package/dist/models/PaginatedProjectResponse.d.ts +0 -98
- package/dist/models/PaginatedProjectResponse.js +0 -95
- package/dist/models/PaginatedStateResponse.d.ts +0 -98
- package/dist/models/PaginatedStateResponse.js +0 -95
- package/dist/models/PaginatedWorkItemResponse.d.ts +0 -98
- package/dist/models/PaginatedWorkItemResponse.js +0 -95
- package/dist/models/PatchedAssetUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedAssetUpdateRequest.js +0 -48
- package/dist/models/PatchedCycleUpdateRequest.d.ts +0 -77
- package/dist/models/PatchedCycleUpdateRequest.js +0 -63
- package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedGenericAssetUpdateRequest.js +0 -48
- package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +0 -66
- package/dist/models/PatchedIntakeIssueUpdateRequest.js +0 -60
- package/dist/models/PatchedIssueCommentCreateRequest.d.ts +0 -59
- package/dist/models/PatchedIssueCommentCreateRequest.js +0 -57
- package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedIssueLinkUpdateRequest.js +0 -48
- package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +0 -99
- package/dist/models/PatchedIssuePropertyAPIRequest.js +0 -72
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +0 -67
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +0 -60
- package/dist/models/PatchedIssueRequest.d.ts +0 -167
- package/dist/models/PatchedIssueRequest.js +0 -93
- package/dist/models/PatchedIssueTypeAPIRequest.d.ts +0 -67
- package/dist/models/PatchedIssueTypeAPIRequest.js +0 -60
- package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +0 -49
- package/dist/models/PatchedIssueWorkLogAPIRequest.js +0 -54
- package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +0 -70
- package/dist/models/PatchedLabelCreateUpdateRequest.js +0 -60
- package/dist/models/PatchedModuleUpdateRequest.d.ts +0 -83
- package/dist/models/PatchedModuleUpdateRequest.js +0 -65
- package/dist/models/PatchedProjectUpdateRequest.d.ts +0 -167
- package/dist/models/PatchedProjectUpdateRequest.js +0 -93
- package/dist/models/PatchedStateRequest.d.ts +0 -83
- package/dist/models/PatchedStateRequest.js +0 -65
- package/dist/models/PriorityEnum.d.ts +0 -31
- package/dist/models/PriorityEnum.js +0 -57
- package/dist/models/ProjectCreateRequest.d.ts +0 -155
- package/dist/models/ProjectCreateRequest.js +0 -93
- package/dist/models/ProjectWorklogSummary.d.ts +0 -37
- package/dist/models/ProjectWorklogSummary.js +0 -54
- package/dist/models/PropertyTypeEnum.d.ts +0 -39
- package/dist/models/PropertyTypeEnum.js +0 -65
- package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +0 -37
- package/dist/models/RetrieveWorkItemAttachment400Response.js +0 -50
- package/dist/models/StateLite.d.ts +0 -53
- package/dist/models/StateLite.js +0 -50
- package/dist/models/StateRequest.d.ts +0 -83
- package/dist/models/StateRequest.js +0 -69
- package/dist/models/TimezoneEnum.d.ts +0 -887
- package/dist/models/TimezoneEnum.js +0 -913
- package/dist/models/TransferCycleIssueRequestRequest.d.ts +0 -34
- package/dist/models/TransferCycleIssueRequestRequest.js +0 -50
- package/dist/models/TransferCycleWorkItems200Response.d.ts +0 -31
- package/dist/models/TransferCycleWorkItems200Response.js +0 -48
- package/dist/models/TransferCycleWorkItems400Response.d.ts +0 -31
- package/dist/models/TransferCycleWorkItems400Response.js +0 -48
- package/dist/models/TypeEnum.d.ts +0 -31
- package/dist/models/TypeEnum.js +0 -57
- package/dist/models/UserAssetUploadRequest.d.ts +0 -64
- package/dist/models/UserAssetUploadRequest.js +0 -62
- package/dist/models/UserLite.d.ts +0 -70
- package/dist/models/UserLite.js +0 -52
- package/dist/oauth/api.js +0 -243
- package/dist/runtime.d.ts +0 -183
- package/dist/runtime.js +0 -563
- package/eslint.config.mjs +0 -11
- package/src/apis/AssetsApi.ts +0 -388
- package/src/apis/CyclesApi.ts +0 -1031
- package/src/apis/EpicsApi.ts +0 -177
- package/src/apis/IntakeApi.ts +0 -401
- package/src/apis/LabelsApi.ts +0 -406
- package/src/apis/MembersApi.ts +0 -146
- package/src/apis/ModulesApi.ts +0 -890
- package/src/apis/PagesApi.ts +0 -301
- package/src/apis/ProjectsApi.ts +0 -486
- package/src/apis/StatesApi.ts +0 -401
- package/src/apis/UsersApi.ts +0 -71
- package/src/apis/WorkItemActivityApi.ts +0 -228
- package/src/apis/WorkItemAttachmentsApi.ts +0 -415
- package/src/apis/WorkItemCommentsApi.ts +0 -439
- package/src/apis/WorkItemLinksApi.ts +0 -469
- package/src/apis/WorkItemPropertiesApi.ts +0 -1061
- package/src/apis/WorkItemTypesApi.ts +0 -378
- package/src/apis/WorkItemWorklogsApi.ts +0 -398
- package/src/apis/WorkItemsApi.ts +0 -859
- package/src/apis/WorkspacesApi.ts +0 -80
- package/src/apis/index.ts +0 -22
- package/src/index.ts +0 -6
- package/src/models/AccessBd4Enum.ts +0 -53
- package/src/models/Cycle.ts +0 -300
- package/src/models/CycleCreateRequest.ts +0 -135
- package/src/models/CycleIssue.ts +0 -142
- package/src/models/CycleIssueRequestRequest.ts +0 -68
- package/src/models/CycleLite.ts +0 -246
- package/src/models/EntityTypeEnum.ts +0 -53
- package/src/models/Epic.ts +0 -302
- package/src/models/GenericAssetUploadRequest.ts +0 -110
- package/src/models/GetWorkspaceMembers200ResponseInner.ts +0 -113
- package/src/models/GroupEnum.ts +0 -61
- package/src/models/IntakeIssue.ts +0 -227
- package/src/models/IntakeIssueCreateRequest.ts +0 -134
- package/src/models/IntakeWorkItemStatusEnum.ts +0 -59
- package/src/models/Issue.ts +0 -287
- package/src/models/IssueActivity.ts +0 -202
- package/src/models/IssueAttachment.ts +0 -245
- package/src/models/IssueAttachmentUploadRequest.ts +0 -101
- package/src/models/IssueComment.ts +0 -204
- package/src/models/IssueCommentCreateRequest.ts +0 -109
- package/src/models/IssueDetail.ts +0 -319
- package/src/models/IssueExpand.ts +0 -334
- package/src/models/IssueForIntakeRequest.ts +0 -102
- package/src/models/IssueLink.ts +0 -148
- package/src/models/IssueLinkCreateRequest.ts +0 -68
- package/src/models/IssuePropertyAPI.ts +0 -255
- package/src/models/IssuePropertyAPIRelationTypeEnum.ts +0 -53
- package/src/models/IssuePropertyAPIRequest.ts +0 -171
- package/src/models/IssuePropertyOptionAPI.ts +0 -190
- package/src/models/IssuePropertyOptionAPIRequest.ts +0 -113
- package/src/models/IssuePropertyValueAPI.ts +0 -194
- package/src/models/IssuePropertyValueAPIDetail.ts +0 -76
- package/src/models/IssuePropertyValueAPIRequest.ts +0 -138
- package/src/models/IssueRelation.ts +0 -150
- package/src/models/IssueRelationCreateRelationTypeEnum.ts +0 -65
- package/src/models/IssueRelationCreateRequest.ts +0 -96
- package/src/models/IssueRelationRemoveRequest.ts +0 -68
- package/src/models/IssueRelationResponse.ts +0 -130
- package/src/models/IssueRequest.ts +0 -254
- package/src/models/IssueSearch.ts +0 -75
- package/src/models/IssueSearchItem.ts +0 -113
- package/src/models/IssueTypeAPI.ts +0 -183
- package/src/models/IssueTypeAPIRequest.ts +0 -113
- package/src/models/IssueWorkLogAPI.ts +0 -130
- package/src/models/IssueWorkLogAPIRequest.ts +0 -88
- package/src/models/Label.ts +0 -172
- package/src/models/LabelCreateUpdateRequest.ts +0 -116
- package/src/models/Module.ts +0 -280
- package/src/models/ModuleCreateRequest.ts +0 -142
- package/src/models/ModuleIssue.ts +0 -140
- package/src/models/ModuleIssueRequestRequest.ts +0 -68
- package/src/models/ModuleLite.ts +0 -253
- package/src/models/ModuleStatusEnum.ts +0 -61
- package/src/models/NetworkEnum.ts +0 -53
- package/src/models/PageCreateAPI.ts +0 -204
- package/src/models/PageCreateAPIAccessEnum.ts +0 -53
- package/src/models/PageCreateAPIRequest.ts +0 -148
- package/src/models/PageDetailAPI.ts +0 -121
- package/src/models/PaginatedArchivedCycleResponse.ts +0 -172
- package/src/models/PaginatedArchivedModuleResponse.ts +0 -172
- package/src/models/PaginatedCycleIssueResponse.ts +0 -172
- package/src/models/PaginatedCycleResponse.ts +0 -172
- package/src/models/PaginatedEpicResponse.ts +0 -172
- package/src/models/PaginatedIntakeIssueResponse.ts +0 -172
- package/src/models/PaginatedIssueActivityDetailResponse.ts +0 -172
- package/src/models/PaginatedIssueActivityResponse.ts +0 -172
- package/src/models/PaginatedIssueCommentResponse.ts +0 -172
- package/src/models/PaginatedIssueLinkDetailResponse.ts +0 -172
- package/src/models/PaginatedIssueLinkResponse.ts +0 -172
- package/src/models/PaginatedLabelResponse.ts +0 -172
- package/src/models/PaginatedModuleIssueResponse.ts +0 -172
- package/src/models/PaginatedModuleResponse.ts +0 -172
- package/src/models/PaginatedProjectResponse.ts +0 -172
- package/src/models/PaginatedStateResponse.ts +0 -172
- package/src/models/PaginatedWorkItemResponse.ts +0 -172
- package/src/models/PatchedAssetUpdateRequest.ts +0 -67
- package/src/models/PatchedCycleUpdateRequest.ts +0 -133
- package/src/models/PatchedGenericAssetUpdateRequest.ts +0 -67
- package/src/models/PatchedIntakeIssueUpdateRequest.ts +0 -124
- package/src/models/PatchedIssueCommentCreateRequest.ts +0 -109
- package/src/models/PatchedIssueLinkUpdateRequest.ts +0 -67
- package/src/models/PatchedIssuePropertyAPIRequest.ts +0 -169
- package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +0 -112
- package/src/models/PatchedIssueRequest.ts +0 -253
- package/src/models/PatchedIssueTypeAPIRequest.ts +0 -112
- package/src/models/PatchedIssueWorkLogAPIRequest.ts +0 -88
- package/src/models/PatchedLabelCreateUpdateRequest.ts +0 -115
- package/src/models/PatchedModuleUpdateRequest.ts +0 -141
- package/src/models/PatchedProjectUpdateRequest.ts +0 -253
- package/src/models/PatchedStateRequest.ts +0 -141
- package/src/models/PriorityEnum.ts +0 -59
- package/src/models/Project.ts +0 -414
- package/src/models/ProjectCreateRequest.ts +0 -239
- package/src/models/ProjectWorklogSummary.ts +0 -74
- package/src/models/PropertyTypeEnum.ts +0 -67
- package/src/models/RetrieveWorkItemAttachment400Response.ts +0 -72
- package/src/models/State.ts +0 -199
- package/src/models/StateLite.ts +0 -97
- package/src/models/StateRequest.ts +0 -143
- package/src/models/TimezoneEnum.ts +0 -915
- package/src/models/TransferCycleIssueRequestRequest.ts +0 -68
- package/src/models/TransferCycleWorkItems200Response.ts +0 -64
- package/src/models/TransferCycleWorkItems400Response.ts +0 -64
- package/src/models/TypeEnum.ts +0 -59
- package/src/models/UserAssetUploadRequest.ts +0 -121
- package/src/models/UserLite.ts +0 -108
- package/src/models/index.ts +0 -108
- package/src/oauth/api.ts +0 -183
- package/src/oauth/models.ts +0 -30
- package/src/runtime.ts +0 -431
- package/tsconfig.json +0 -20
package/src/apis/WorkItemsApi.ts
DELETED
|
@@ -1,859 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* The Plane REST API
|
|
5
|
-
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
6
|
-
*
|
|
7
|
-
* The version of the API Spec: 0.0.2
|
|
8
|
-
* Contact: support@plane.so
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated.
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
import type {
|
|
17
|
-
Issue,
|
|
18
|
-
IssueDetail,
|
|
19
|
-
IssueRelation,
|
|
20
|
-
IssueRelationCreateRequest,
|
|
21
|
-
IssueRelationRemoveRequest,
|
|
22
|
-
IssueRelationResponse,
|
|
23
|
-
IssueRequest,
|
|
24
|
-
IssueSearch,
|
|
25
|
-
PaginatedWorkItemResponse,
|
|
26
|
-
PatchedIssueRequest,
|
|
27
|
-
} from '../models/index';
|
|
28
|
-
import {
|
|
29
|
-
IssueFromJSON,
|
|
30
|
-
IssueToJSON,
|
|
31
|
-
IssueDetailFromJSON,
|
|
32
|
-
IssueDetailToJSON,
|
|
33
|
-
IssueRelationFromJSON,
|
|
34
|
-
IssueRelationToJSON,
|
|
35
|
-
IssueRelationCreateRequestFromJSON,
|
|
36
|
-
IssueRelationCreateRequestToJSON,
|
|
37
|
-
IssueRelationRemoveRequestFromJSON,
|
|
38
|
-
IssueRelationRemoveRequestToJSON,
|
|
39
|
-
IssueRelationResponseFromJSON,
|
|
40
|
-
IssueRelationResponseToJSON,
|
|
41
|
-
IssueRequestFromJSON,
|
|
42
|
-
IssueRequestToJSON,
|
|
43
|
-
IssueSearchFromJSON,
|
|
44
|
-
IssueSearchToJSON,
|
|
45
|
-
PaginatedWorkItemResponseFromJSON,
|
|
46
|
-
PaginatedWorkItemResponseToJSON,
|
|
47
|
-
PatchedIssueRequestFromJSON,
|
|
48
|
-
PatchedIssueRequestToJSON,
|
|
49
|
-
} from '../models/index';
|
|
50
|
-
|
|
51
|
-
export interface CreateWorkItemRequest {
|
|
52
|
-
projectId: string;
|
|
53
|
-
slug: string;
|
|
54
|
-
issueRequest: IssueRequest;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface CreateWorkItemRelationRequest {
|
|
58
|
-
issueId: string;
|
|
59
|
-
projectId: string;
|
|
60
|
-
slug: string;
|
|
61
|
-
issueRelationCreateRequest: IssueRelationCreateRequest;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface DeleteWorkItemRequest {
|
|
65
|
-
pk: string;
|
|
66
|
-
projectId: string;
|
|
67
|
-
slug: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface GetWorkspaceWorkItemRequest {
|
|
71
|
-
issueIdentifier: number;
|
|
72
|
-
projectIdentifier: string;
|
|
73
|
-
slug: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface ListWorkItemRelationsRequest {
|
|
77
|
-
issueId: string;
|
|
78
|
-
projectId: string;
|
|
79
|
-
slug: string;
|
|
80
|
-
cursor?: string;
|
|
81
|
-
expand?: string;
|
|
82
|
-
fields?: string;
|
|
83
|
-
orderBy?: string;
|
|
84
|
-
perPage?: number;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface ListWorkItemsRequest {
|
|
88
|
-
projectId: string;
|
|
89
|
-
slug: string;
|
|
90
|
-
cursor?: string;
|
|
91
|
-
expand?: string;
|
|
92
|
-
externalId?: string;
|
|
93
|
-
externalSource?: string;
|
|
94
|
-
fields?: string;
|
|
95
|
-
orderBy?: string;
|
|
96
|
-
perPage?: number;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface RemoveWorkItemRelationRequest {
|
|
100
|
-
issueId: string;
|
|
101
|
-
projectId: string;
|
|
102
|
-
slug: string;
|
|
103
|
-
issueRelationRemoveRequest: IssueRelationRemoveRequest;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface RetrieveWorkItemRequest {
|
|
107
|
-
pk: string;
|
|
108
|
-
projectId: string;
|
|
109
|
-
slug: string;
|
|
110
|
-
expand?: string;
|
|
111
|
-
externalId?: string;
|
|
112
|
-
externalSource?: string;
|
|
113
|
-
fields?: string;
|
|
114
|
-
orderBy?: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface SearchWorkItemsRequest {
|
|
118
|
-
search: string;
|
|
119
|
-
slug: string;
|
|
120
|
-
limit?: number;
|
|
121
|
-
projectId?: string;
|
|
122
|
-
workspaceSearch?: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface UpdateWorkItemRequest {
|
|
126
|
-
pk: string;
|
|
127
|
-
projectId: string;
|
|
128
|
-
slug: string;
|
|
129
|
-
patchedIssueRequest?: PatchedIssueRequest;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
*/
|
|
135
|
-
export class WorkItemsApi extends runtime.BaseAPI {
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Create a new work item in the specified project with the provided details.
|
|
139
|
-
* Create work item
|
|
140
|
-
*/
|
|
141
|
-
async createWorkItemRaw(requestParameters: CreateWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Issue>> {
|
|
142
|
-
if (requestParameters['projectId'] == null) {
|
|
143
|
-
throw new runtime.RequiredError(
|
|
144
|
-
'projectId',
|
|
145
|
-
'Required parameter "projectId" was null or undefined when calling createWorkItem().'
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (requestParameters['slug'] == null) {
|
|
150
|
-
throw new runtime.RequiredError(
|
|
151
|
-
'slug',
|
|
152
|
-
'Required parameter "slug" was null or undefined when calling createWorkItem().'
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (requestParameters['issueRequest'] == null) {
|
|
157
|
-
throw new runtime.RequiredError(
|
|
158
|
-
'issueRequest',
|
|
159
|
-
'Required parameter "issueRequest" was null or undefined when calling createWorkItem().'
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
const queryParameters: any = {};
|
|
164
|
-
|
|
165
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
|
-
|
|
167
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
168
|
-
|
|
169
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
-
// oauth required
|
|
175
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
179
|
-
// oauth required
|
|
180
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
const response = await this.request({
|
|
184
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
185
|
-
method: 'POST',
|
|
186
|
-
headers: headerParameters,
|
|
187
|
-
query: queryParameters,
|
|
188
|
-
body: IssueRequestToJSON(requestParameters['issueRequest']),
|
|
189
|
-
}, initOverrides);
|
|
190
|
-
|
|
191
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueFromJSON(jsonValue));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Create a new work item in the specified project with the provided details.
|
|
196
|
-
* Create work item
|
|
197
|
-
*/
|
|
198
|
-
async createWorkItem(requestParameters: CreateWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Issue> {
|
|
199
|
-
const response = await this.createWorkItemRaw(requestParameters, initOverrides);
|
|
200
|
-
return await response.value();
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
|
|
205
|
-
* Create work item relation
|
|
206
|
-
*/
|
|
207
|
-
async createWorkItemRelationRaw(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssueRelation>>> {
|
|
208
|
-
if (requestParameters['issueId'] == null) {
|
|
209
|
-
throw new runtime.RequiredError(
|
|
210
|
-
'issueId',
|
|
211
|
-
'Required parameter "issueId" was null or undefined when calling createWorkItemRelation().'
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
if (requestParameters['projectId'] == null) {
|
|
216
|
-
throw new runtime.RequiredError(
|
|
217
|
-
'projectId',
|
|
218
|
-
'Required parameter "projectId" was null or undefined when calling createWorkItemRelation().'
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
if (requestParameters['slug'] == null) {
|
|
223
|
-
throw new runtime.RequiredError(
|
|
224
|
-
'slug',
|
|
225
|
-
'Required parameter "slug" was null or undefined when calling createWorkItemRelation().'
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (requestParameters['issueRelationCreateRequest'] == null) {
|
|
230
|
-
throw new runtime.RequiredError(
|
|
231
|
-
'issueRelationCreateRequest',
|
|
232
|
-
'Required parameter "issueRelationCreateRequest" was null or undefined when calling createWorkItemRelation().'
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
const queryParameters: any = {};
|
|
237
|
-
|
|
238
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
239
|
-
|
|
240
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
241
|
-
|
|
242
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
243
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
247
|
-
// oauth required
|
|
248
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
252
|
-
// oauth required
|
|
253
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
const response = await this.request({
|
|
257
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
258
|
-
method: 'POST',
|
|
259
|
-
headers: headerParameters,
|
|
260
|
-
query: queryParameters,
|
|
261
|
-
body: IssueRelationCreateRequestToJSON(requestParameters['issueRelationCreateRequest']),
|
|
262
|
-
}, initOverrides);
|
|
263
|
-
|
|
264
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssueRelationFromJSON));
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
|
|
269
|
-
* Create work item relation
|
|
270
|
-
*/
|
|
271
|
-
async createWorkItemRelation(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssueRelation>> {
|
|
272
|
-
const response = await this.createWorkItemRelationRaw(requestParameters, initOverrides);
|
|
273
|
-
return await response.value();
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Permanently delete an existing work item from the project. Only admins or the item creator can perform this action.
|
|
278
|
-
* Delete work item
|
|
279
|
-
*/
|
|
280
|
-
async deleteWorkItemRaw(requestParameters: DeleteWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
281
|
-
if (requestParameters['pk'] == null) {
|
|
282
|
-
throw new runtime.RequiredError(
|
|
283
|
-
'pk',
|
|
284
|
-
'Required parameter "pk" was null or undefined when calling deleteWorkItem().'
|
|
285
|
-
);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (requestParameters['projectId'] == null) {
|
|
289
|
-
throw new runtime.RequiredError(
|
|
290
|
-
'projectId',
|
|
291
|
-
'Required parameter "projectId" was null or undefined when calling deleteWorkItem().'
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
if (requestParameters['slug'] == null) {
|
|
296
|
-
throw new runtime.RequiredError(
|
|
297
|
-
'slug',
|
|
298
|
-
'Required parameter "slug" was null or undefined when calling deleteWorkItem().'
|
|
299
|
-
);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
const queryParameters: any = {};
|
|
303
|
-
|
|
304
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
305
|
-
|
|
306
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
307
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
311
|
-
// oauth required
|
|
312
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
316
|
-
// oauth required
|
|
317
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
const response = await this.request({
|
|
321
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
322
|
-
method: 'DELETE',
|
|
323
|
-
headers: headerParameters,
|
|
324
|
-
query: queryParameters,
|
|
325
|
-
}, initOverrides);
|
|
326
|
-
|
|
327
|
-
return new runtime.VoidApiResponse(response);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Permanently delete an existing work item from the project. Only admins or the item creator can perform this action.
|
|
332
|
-
* Delete work item
|
|
333
|
-
*/
|
|
334
|
-
async deleteWorkItem(requestParameters: DeleteWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
335
|
-
await this.deleteWorkItemRaw(requestParameters, initOverrides);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Retrieve a specific work item using workspace slug, project identifier, and issue identifier.
|
|
340
|
-
* Retrieve work item by identifiers
|
|
341
|
-
*/
|
|
342
|
-
async getWorkspaceWorkItemRaw(requestParameters: GetWorkspaceWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Issue>> {
|
|
343
|
-
if (requestParameters['issueIdentifier'] == null) {
|
|
344
|
-
throw new runtime.RequiredError(
|
|
345
|
-
'issueIdentifier',
|
|
346
|
-
'Required parameter "issueIdentifier" was null or undefined when calling getWorkspaceWorkItem().'
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if (requestParameters['projectIdentifier'] == null) {
|
|
351
|
-
throw new runtime.RequiredError(
|
|
352
|
-
'projectIdentifier',
|
|
353
|
-
'Required parameter "projectIdentifier" was null or undefined when calling getWorkspaceWorkItem().'
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (requestParameters['slug'] == null) {
|
|
358
|
-
throw new runtime.RequiredError(
|
|
359
|
-
'slug',
|
|
360
|
-
'Required parameter "slug" was null or undefined when calling getWorkspaceWorkItem().'
|
|
361
|
-
);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
const queryParameters: any = {};
|
|
365
|
-
|
|
366
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
367
|
-
|
|
368
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
369
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
-
// oauth required
|
|
374
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
378
|
-
// oauth required
|
|
379
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
const response = await this.request({
|
|
383
|
-
path: `/api/v1/workspaces/{slug}/issues/{project_identifier}-{issue_identifier}/`.replace(`{${"issue_identifier"}}`, encodeURIComponent(String(requestParameters['issueIdentifier']))).replace(`{${"project_identifier"}}`, encodeURIComponent(String(requestParameters['projectIdentifier']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
384
|
-
method: 'GET',
|
|
385
|
-
headers: headerParameters,
|
|
386
|
-
query: queryParameters,
|
|
387
|
-
}, initOverrides);
|
|
388
|
-
|
|
389
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueFromJSON(jsonValue));
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Retrieve a specific work item using workspace slug, project identifier, and issue identifier.
|
|
394
|
-
* Retrieve work item by identifiers
|
|
395
|
-
*/
|
|
396
|
-
async getWorkspaceWorkItem(requestParameters: GetWorkspaceWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Issue> {
|
|
397
|
-
const response = await this.getWorkspaceWorkItemRaw(requestParameters, initOverrides);
|
|
398
|
-
return await response.value();
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
|
|
403
|
-
* List work item relations
|
|
404
|
-
*/
|
|
405
|
-
async listWorkItemRelationsRaw(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueRelationResponse>> {
|
|
406
|
-
if (requestParameters['issueId'] == null) {
|
|
407
|
-
throw new runtime.RequiredError(
|
|
408
|
-
'issueId',
|
|
409
|
-
'Required parameter "issueId" was null or undefined when calling listWorkItemRelations().'
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
if (requestParameters['projectId'] == null) {
|
|
414
|
-
throw new runtime.RequiredError(
|
|
415
|
-
'projectId',
|
|
416
|
-
'Required parameter "projectId" was null or undefined when calling listWorkItemRelations().'
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
if (requestParameters['slug'] == null) {
|
|
421
|
-
throw new runtime.RequiredError(
|
|
422
|
-
'slug',
|
|
423
|
-
'Required parameter "slug" was null or undefined when calling listWorkItemRelations().'
|
|
424
|
-
);
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
const queryParameters: any = {};
|
|
428
|
-
|
|
429
|
-
if (requestParameters['cursor'] != null) {
|
|
430
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
if (requestParameters['expand'] != null) {
|
|
434
|
-
queryParameters['expand'] = requestParameters['expand'];
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (requestParameters['fields'] != null) {
|
|
438
|
-
queryParameters['fields'] = requestParameters['fields'];
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
if (requestParameters['orderBy'] != null) {
|
|
442
|
-
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
if (requestParameters['perPage'] != null) {
|
|
446
|
-
queryParameters['per_page'] = requestParameters['perPage'];
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
450
|
-
|
|
451
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
452
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
456
|
-
// oauth required
|
|
457
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
-
// oauth required
|
|
462
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
const response = await this.request({
|
|
466
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
467
|
-
method: 'GET',
|
|
468
|
-
headers: headerParameters,
|
|
469
|
-
query: queryParameters,
|
|
470
|
-
}, initOverrides);
|
|
471
|
-
|
|
472
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueRelationResponseFromJSON(jsonValue));
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
|
|
477
|
-
* List work item relations
|
|
478
|
-
*/
|
|
479
|
-
async listWorkItemRelations(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueRelationResponse> {
|
|
480
|
-
const response = await this.listWorkItemRelationsRaw(requestParameters, initOverrides);
|
|
481
|
-
return await response.value();
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Retrieve a paginated list of all work items in a project. Supports filtering, ordering, and field selection through query parameters.
|
|
486
|
-
* List work items
|
|
487
|
-
*/
|
|
488
|
-
async listWorkItemsRaw(requestParameters: ListWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedWorkItemResponse>> {
|
|
489
|
-
if (requestParameters['projectId'] == null) {
|
|
490
|
-
throw new runtime.RequiredError(
|
|
491
|
-
'projectId',
|
|
492
|
-
'Required parameter "projectId" was null or undefined when calling listWorkItems().'
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
if (requestParameters['slug'] == null) {
|
|
497
|
-
throw new runtime.RequiredError(
|
|
498
|
-
'slug',
|
|
499
|
-
'Required parameter "slug" was null or undefined when calling listWorkItems().'
|
|
500
|
-
);
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
const queryParameters: any = {};
|
|
504
|
-
|
|
505
|
-
if (requestParameters['cursor'] != null) {
|
|
506
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
if (requestParameters['expand'] != null) {
|
|
510
|
-
queryParameters['expand'] = requestParameters['expand'];
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
if (requestParameters['externalId'] != null) {
|
|
514
|
-
queryParameters['external_id'] = requestParameters['externalId'];
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
if (requestParameters['externalSource'] != null) {
|
|
518
|
-
queryParameters['external_source'] = requestParameters['externalSource'];
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
if (requestParameters['fields'] != null) {
|
|
522
|
-
queryParameters['fields'] = requestParameters['fields'];
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
if (requestParameters['orderBy'] != null) {
|
|
526
|
-
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
if (requestParameters['perPage'] != null) {
|
|
530
|
-
queryParameters['per_page'] = requestParameters['perPage'];
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
534
|
-
|
|
535
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
536
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
540
|
-
// oauth required
|
|
541
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
545
|
-
// oauth required
|
|
546
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
const response = await this.request({
|
|
550
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
551
|
-
method: 'GET',
|
|
552
|
-
headers: headerParameters,
|
|
553
|
-
query: queryParameters,
|
|
554
|
-
}, initOverrides);
|
|
555
|
-
|
|
556
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedWorkItemResponseFromJSON(jsonValue));
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Retrieve a paginated list of all work items in a project. Supports filtering, ordering, and field selection through query parameters.
|
|
561
|
-
* List work items
|
|
562
|
-
*/
|
|
563
|
-
async listWorkItems(requestParameters: ListWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedWorkItemResponse> {
|
|
564
|
-
const response = await this.listWorkItemsRaw(requestParameters, initOverrides);
|
|
565
|
-
return await response.value();
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* Remove a relationship between work items by specifying the related work item ID.
|
|
570
|
-
* Remove work item relation
|
|
571
|
-
*/
|
|
572
|
-
async removeWorkItemRelationRaw(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
573
|
-
if (requestParameters['issueId'] == null) {
|
|
574
|
-
throw new runtime.RequiredError(
|
|
575
|
-
'issueId',
|
|
576
|
-
'Required parameter "issueId" was null or undefined when calling removeWorkItemRelation().'
|
|
577
|
-
);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
if (requestParameters['projectId'] == null) {
|
|
581
|
-
throw new runtime.RequiredError(
|
|
582
|
-
'projectId',
|
|
583
|
-
'Required parameter "projectId" was null or undefined when calling removeWorkItemRelation().'
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
if (requestParameters['slug'] == null) {
|
|
588
|
-
throw new runtime.RequiredError(
|
|
589
|
-
'slug',
|
|
590
|
-
'Required parameter "slug" was null or undefined when calling removeWorkItemRelation().'
|
|
591
|
-
);
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
if (requestParameters['issueRelationRemoveRequest'] == null) {
|
|
595
|
-
throw new runtime.RequiredError(
|
|
596
|
-
'issueRelationRemoveRequest',
|
|
597
|
-
'Required parameter "issueRelationRemoveRequest" was null or undefined when calling removeWorkItemRelation().'
|
|
598
|
-
);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
const queryParameters: any = {};
|
|
602
|
-
|
|
603
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
604
|
-
|
|
605
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
606
|
-
|
|
607
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
608
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
612
|
-
// oauth required
|
|
613
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
617
|
-
// oauth required
|
|
618
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
const response = await this.request({
|
|
622
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/remove/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
623
|
-
method: 'POST',
|
|
624
|
-
headers: headerParameters,
|
|
625
|
-
query: queryParameters,
|
|
626
|
-
body: IssueRelationRemoveRequestToJSON(requestParameters['issueRelationRemoveRequest']),
|
|
627
|
-
}, initOverrides);
|
|
628
|
-
|
|
629
|
-
return new runtime.VoidApiResponse(response);
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* Remove a relationship between work items by specifying the related work item ID.
|
|
634
|
-
* Remove work item relation
|
|
635
|
-
*/
|
|
636
|
-
async removeWorkItemRelation(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
637
|
-
await this.removeWorkItemRelationRaw(requestParameters, initOverrides);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Retrieve details of a specific work item.
|
|
642
|
-
* Retrieve work item
|
|
643
|
-
*/
|
|
644
|
-
async retrieveWorkItemRaw(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueDetail>> {
|
|
645
|
-
if (requestParameters['pk'] == null) {
|
|
646
|
-
throw new runtime.RequiredError(
|
|
647
|
-
'pk',
|
|
648
|
-
'Required parameter "pk" was null or undefined when calling retrieveWorkItem().'
|
|
649
|
-
);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
if (requestParameters['projectId'] == null) {
|
|
653
|
-
throw new runtime.RequiredError(
|
|
654
|
-
'projectId',
|
|
655
|
-
'Required parameter "projectId" was null or undefined when calling retrieveWorkItem().'
|
|
656
|
-
);
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
if (requestParameters['slug'] == null) {
|
|
660
|
-
throw new runtime.RequiredError(
|
|
661
|
-
'slug',
|
|
662
|
-
'Required parameter "slug" was null or undefined when calling retrieveWorkItem().'
|
|
663
|
-
);
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
const queryParameters: any = {};
|
|
667
|
-
|
|
668
|
-
if (requestParameters['expand'] != null) {
|
|
669
|
-
queryParameters['expand'] = requestParameters['expand'];
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
if (requestParameters['externalId'] != null) {
|
|
673
|
-
queryParameters['external_id'] = requestParameters['externalId'];
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
if (requestParameters['externalSource'] != null) {
|
|
677
|
-
queryParameters['external_source'] = requestParameters['externalSource'];
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
if (requestParameters['fields'] != null) {
|
|
681
|
-
queryParameters['fields'] = requestParameters['fields'];
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
if (requestParameters['orderBy'] != null) {
|
|
685
|
-
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
689
|
-
|
|
690
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
691
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
695
|
-
// oauth required
|
|
696
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
700
|
-
// oauth required
|
|
701
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
const response = await this.request({
|
|
705
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
706
|
-
method: 'GET',
|
|
707
|
-
headers: headerParameters,
|
|
708
|
-
query: queryParameters,
|
|
709
|
-
}, initOverrides);
|
|
710
|
-
|
|
711
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueDetailFromJSON(jsonValue));
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* Retrieve details of a specific work item.
|
|
716
|
-
* Retrieve work item
|
|
717
|
-
*/
|
|
718
|
-
async retrieveWorkItem(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueDetail> {
|
|
719
|
-
const response = await this.retrieveWorkItemRaw(requestParameters, initOverrides);
|
|
720
|
-
return await response.value();
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Perform semantic search across issue names, sequence IDs, and project identifiers.
|
|
725
|
-
*/
|
|
726
|
-
async searchWorkItemsRaw(requestParameters: SearchWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueSearch>> {
|
|
727
|
-
if (requestParameters['search'] == null) {
|
|
728
|
-
throw new runtime.RequiredError(
|
|
729
|
-
'search',
|
|
730
|
-
'Required parameter "search" was null or undefined when calling searchWorkItems().'
|
|
731
|
-
);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
if (requestParameters['slug'] == null) {
|
|
735
|
-
throw new runtime.RequiredError(
|
|
736
|
-
'slug',
|
|
737
|
-
'Required parameter "slug" was null or undefined when calling searchWorkItems().'
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
const queryParameters: any = {};
|
|
742
|
-
|
|
743
|
-
if (requestParameters['limit'] != null) {
|
|
744
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
if (requestParameters['projectId'] != null) {
|
|
748
|
-
queryParameters['project_id'] = requestParameters['projectId'];
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
if (requestParameters['search'] != null) {
|
|
752
|
-
queryParameters['search'] = requestParameters['search'];
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
if (requestParameters['workspaceSearch'] != null) {
|
|
756
|
-
queryParameters['workspace_search'] = requestParameters['workspaceSearch'];
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
760
|
-
|
|
761
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
762
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
766
|
-
// oauth required
|
|
767
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
771
|
-
// oauth required
|
|
772
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
const response = await this.request({
|
|
776
|
-
path: `/api/v1/workspaces/{slug}/issues/search/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
777
|
-
method: 'GET',
|
|
778
|
-
headers: headerParameters,
|
|
779
|
-
query: queryParameters,
|
|
780
|
-
}, initOverrides);
|
|
781
|
-
|
|
782
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueSearchFromJSON(jsonValue));
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Perform semantic search across issue names, sequence IDs, and project identifiers.
|
|
787
|
-
*/
|
|
788
|
-
async searchWorkItems(requestParameters: SearchWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueSearch> {
|
|
789
|
-
const response = await this.searchWorkItemsRaw(requestParameters, initOverrides);
|
|
790
|
-
return await response.value();
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Partially update an existing work item with the provided fields. Supports external ID validation to prevent conflicts.
|
|
795
|
-
* Partially update work item
|
|
796
|
-
*/
|
|
797
|
-
async updateWorkItemRaw(requestParameters: UpdateWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Issue>> {
|
|
798
|
-
if (requestParameters['pk'] == null) {
|
|
799
|
-
throw new runtime.RequiredError(
|
|
800
|
-
'pk',
|
|
801
|
-
'Required parameter "pk" was null or undefined when calling updateWorkItem().'
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
if (requestParameters['projectId'] == null) {
|
|
806
|
-
throw new runtime.RequiredError(
|
|
807
|
-
'projectId',
|
|
808
|
-
'Required parameter "projectId" was null or undefined when calling updateWorkItem().'
|
|
809
|
-
);
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
if (requestParameters['slug'] == null) {
|
|
813
|
-
throw new runtime.RequiredError(
|
|
814
|
-
'slug',
|
|
815
|
-
'Required parameter "slug" was null or undefined when calling updateWorkItem().'
|
|
816
|
-
);
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
const queryParameters: any = {};
|
|
820
|
-
|
|
821
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
822
|
-
|
|
823
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
824
|
-
|
|
825
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
826
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
830
|
-
// oauth required
|
|
831
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
835
|
-
// oauth required
|
|
836
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
const response = await this.request({
|
|
840
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
841
|
-
method: 'PATCH',
|
|
842
|
-
headers: headerParameters,
|
|
843
|
-
query: queryParameters,
|
|
844
|
-
body: PatchedIssueRequestToJSON(requestParameters['patchedIssueRequest']),
|
|
845
|
-
}, initOverrides);
|
|
846
|
-
|
|
847
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssueFromJSON(jsonValue));
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Partially update an existing work item with the provided fields. Supports external ID validation to prevent conflicts.
|
|
852
|
-
* Partially update work item
|
|
853
|
-
*/
|
|
854
|
-
async updateWorkItem(requestParameters: UpdateWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Issue> {
|
|
855
|
-
const response = await this.updateWorkItemRaw(requestParameters, initOverrides);
|
|
856
|
-
return await response.value();
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
}
|