@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/EpicsApi.ts
DELETED
|
@@ -1,177 +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
|
-
Epic,
|
|
18
|
-
PaginatedEpicResponse,
|
|
19
|
-
} from '../models/index';
|
|
20
|
-
import {
|
|
21
|
-
EpicFromJSON,
|
|
22
|
-
EpicToJSON,
|
|
23
|
-
PaginatedEpicResponseFromJSON,
|
|
24
|
-
PaginatedEpicResponseToJSON,
|
|
25
|
-
} from '../models/index';
|
|
26
|
-
|
|
27
|
-
export interface ListEpicsRequest {
|
|
28
|
-
projectId: string;
|
|
29
|
-
slug: string;
|
|
30
|
-
cursor?: string;
|
|
31
|
-
perPage?: number;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface RetrieveEpicRequest {
|
|
35
|
-
pk: string;
|
|
36
|
-
projectId: string;
|
|
37
|
-
slug: string;
|
|
38
|
-
fields?: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class EpicsApi extends runtime.BaseAPI {
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* List epics
|
|
48
|
-
* List epics
|
|
49
|
-
*/
|
|
50
|
-
async listEpicsRaw(requestParameters: ListEpicsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedEpicResponse>> {
|
|
51
|
-
if (requestParameters['projectId'] == null) {
|
|
52
|
-
throw new runtime.RequiredError(
|
|
53
|
-
'projectId',
|
|
54
|
-
'Required parameter "projectId" was null or undefined when calling listEpics().'
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (requestParameters['slug'] == null) {
|
|
59
|
-
throw new runtime.RequiredError(
|
|
60
|
-
'slug',
|
|
61
|
-
'Required parameter "slug" was null or undefined when calling listEpics().'
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const queryParameters: any = {};
|
|
66
|
-
|
|
67
|
-
if (requestParameters['cursor'] != null) {
|
|
68
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (requestParameters['perPage'] != null) {
|
|
72
|
-
queryParameters['per_page'] = requestParameters['perPage'];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
76
|
-
|
|
77
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
78
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
-
// oauth required
|
|
83
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
-
// oauth required
|
|
88
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
const response = await this.request({
|
|
92
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/epics/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
93
|
-
method: 'GET',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
}, initOverrides);
|
|
97
|
-
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEpicResponseFromJSON(jsonValue));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* List epics
|
|
103
|
-
* List epics
|
|
104
|
-
*/
|
|
105
|
-
async listEpics(requestParameters: ListEpicsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedEpicResponse> {
|
|
106
|
-
const response = await this.listEpicsRaw(requestParameters, initOverrides);
|
|
107
|
-
return await response.value();
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Retrieve an epic by id
|
|
112
|
-
* Retrieve an epic
|
|
113
|
-
*/
|
|
114
|
-
async retrieveEpicRaw(requestParameters: RetrieveEpicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Epic>> {
|
|
115
|
-
if (requestParameters['pk'] == null) {
|
|
116
|
-
throw new runtime.RequiredError(
|
|
117
|
-
'pk',
|
|
118
|
-
'Required parameter "pk" was null or undefined when calling retrieveEpic().'
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (requestParameters['projectId'] == null) {
|
|
123
|
-
throw new runtime.RequiredError(
|
|
124
|
-
'projectId',
|
|
125
|
-
'Required parameter "projectId" was null or undefined when calling retrieveEpic().'
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (requestParameters['slug'] == null) {
|
|
130
|
-
throw new runtime.RequiredError(
|
|
131
|
-
'slug',
|
|
132
|
-
'Required parameter "slug" was null or undefined when calling retrieveEpic().'
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const queryParameters: any = {};
|
|
137
|
-
|
|
138
|
-
if (requestParameters['fields'] != null) {
|
|
139
|
-
queryParameters['fields'] = requestParameters['fields'];
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
143
|
-
|
|
144
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
-
// oauth required
|
|
150
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
154
|
-
// oauth required
|
|
155
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const response = await this.request({
|
|
159
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/epics/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
160
|
-
method: 'GET',
|
|
161
|
-
headers: headerParameters,
|
|
162
|
-
query: queryParameters,
|
|
163
|
-
}, initOverrides);
|
|
164
|
-
|
|
165
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => EpicFromJSON(jsonValue));
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Retrieve an epic by id
|
|
170
|
-
* Retrieve an epic
|
|
171
|
-
*/
|
|
172
|
-
async retrieveEpic(requestParameters: RetrieveEpicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Epic> {
|
|
173
|
-
const response = await this.retrieveEpicRaw(requestParameters, initOverrides);
|
|
174
|
-
return await response.value();
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
}
|
package/src/apis/IntakeApi.ts
DELETED
|
@@ -1,401 +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
|
-
IntakeIssue,
|
|
18
|
-
IntakeIssueCreateRequest,
|
|
19
|
-
PaginatedIntakeIssueResponse,
|
|
20
|
-
PatchedIntakeIssueUpdateRequest,
|
|
21
|
-
} from '../models/index';
|
|
22
|
-
import {
|
|
23
|
-
IntakeIssueFromJSON,
|
|
24
|
-
IntakeIssueToJSON,
|
|
25
|
-
IntakeIssueCreateRequestFromJSON,
|
|
26
|
-
IntakeIssueCreateRequestToJSON,
|
|
27
|
-
PaginatedIntakeIssueResponseFromJSON,
|
|
28
|
-
PaginatedIntakeIssueResponseToJSON,
|
|
29
|
-
PatchedIntakeIssueUpdateRequestFromJSON,
|
|
30
|
-
PatchedIntakeIssueUpdateRequestToJSON,
|
|
31
|
-
} from '../models/index';
|
|
32
|
-
|
|
33
|
-
export interface CreateIntakeWorkItemRequest {
|
|
34
|
-
projectId: string;
|
|
35
|
-
slug: string;
|
|
36
|
-
intakeIssueCreateRequest: IntakeIssueCreateRequest;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface DeleteIntakeWorkItemRequest {
|
|
40
|
-
issueId: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
slug: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface GetIntakeWorkItemsListRequest {
|
|
46
|
-
projectId: string;
|
|
47
|
-
slug: string;
|
|
48
|
-
cursor?: string;
|
|
49
|
-
expand?: string;
|
|
50
|
-
fields?: string;
|
|
51
|
-
perPage?: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface RetrieveIntakeWorkItemRequest {
|
|
55
|
-
issueId: string;
|
|
56
|
-
projectId: string;
|
|
57
|
-
slug: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface UpdateIntakeWorkItemRequest {
|
|
61
|
-
issueId: string;
|
|
62
|
-
projectId: string;
|
|
63
|
-
slug: string;
|
|
64
|
-
patchedIntakeIssueUpdateRequest?: PatchedIntakeIssueUpdateRequest;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export class IntakeApi extends runtime.BaseAPI {
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Submit a new work item to the project\'s intake queue for review and triage. Automatically creates the work item with default triage state and tracks activity.
|
|
74
|
-
* Create intake work item
|
|
75
|
-
*/
|
|
76
|
-
async createIntakeWorkItemRaw(requestParameters: CreateIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntakeIssue>> {
|
|
77
|
-
if (requestParameters['projectId'] == null) {
|
|
78
|
-
throw new runtime.RequiredError(
|
|
79
|
-
'projectId',
|
|
80
|
-
'Required parameter "projectId" was null or undefined when calling createIntakeWorkItem().'
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (requestParameters['slug'] == null) {
|
|
85
|
-
throw new runtime.RequiredError(
|
|
86
|
-
'slug',
|
|
87
|
-
'Required parameter "slug" was null or undefined when calling createIntakeWorkItem().'
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (requestParameters['intakeIssueCreateRequest'] == null) {
|
|
92
|
-
throw new runtime.RequiredError(
|
|
93
|
-
'intakeIssueCreateRequest',
|
|
94
|
-
'Required parameter "intakeIssueCreateRequest" was null or undefined when calling createIntakeWorkItem().'
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const queryParameters: any = {};
|
|
99
|
-
|
|
100
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
101
|
-
|
|
102
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
103
|
-
|
|
104
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
-
// oauth required
|
|
110
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
114
|
-
// oauth required
|
|
115
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const response = await this.request({
|
|
119
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/intake-issues/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
120
|
-
method: 'POST',
|
|
121
|
-
headers: headerParameters,
|
|
122
|
-
query: queryParameters,
|
|
123
|
-
body: IntakeIssueCreateRequestToJSON(requestParameters['intakeIssueCreateRequest']),
|
|
124
|
-
}, initOverrides);
|
|
125
|
-
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntakeIssueFromJSON(jsonValue));
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Submit a new work item to the project\'s intake queue for review and triage. Automatically creates the work item with default triage state and tracks activity.
|
|
131
|
-
* Create intake work item
|
|
132
|
-
*/
|
|
133
|
-
async createIntakeWorkItem(requestParameters: CreateIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntakeIssue> {
|
|
134
|
-
const response = await this.createIntakeWorkItemRaw(requestParameters, initOverrides);
|
|
135
|
-
return await response.value();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Permanently remove an intake work item from the triage queue. Also deletes the underlying work item if it hasn\'t been accepted yet.
|
|
140
|
-
* Delete intake work item
|
|
141
|
-
*/
|
|
142
|
-
async deleteIntakeWorkItemRaw(requestParameters: DeleteIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
143
|
-
if (requestParameters['issueId'] == null) {
|
|
144
|
-
throw new runtime.RequiredError(
|
|
145
|
-
'issueId',
|
|
146
|
-
'Required parameter "issueId" was null or undefined when calling deleteIntakeWorkItem().'
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (requestParameters['projectId'] == null) {
|
|
151
|
-
throw new runtime.RequiredError(
|
|
152
|
-
'projectId',
|
|
153
|
-
'Required parameter "projectId" was null or undefined when calling deleteIntakeWorkItem().'
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (requestParameters['slug'] == null) {
|
|
158
|
-
throw new runtime.RequiredError(
|
|
159
|
-
'slug',
|
|
160
|
-
'Required parameter "slug" was null or undefined when calling deleteIntakeWorkItem().'
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const queryParameters: any = {};
|
|
165
|
-
|
|
166
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
167
|
-
|
|
168
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
169
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
173
|
-
// oauth required
|
|
174
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
178
|
-
// oauth required
|
|
179
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
const response = await this.request({
|
|
183
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/intake-issues/{issue_id}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
184
|
-
method: 'DELETE',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
}, initOverrides);
|
|
188
|
-
|
|
189
|
-
return new runtime.VoidApiResponse(response);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Permanently remove an intake work item from the triage queue. Also deletes the underlying work item if it hasn\'t been accepted yet.
|
|
194
|
-
* Delete intake work item
|
|
195
|
-
*/
|
|
196
|
-
async deleteIntakeWorkItem(requestParameters: DeleteIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
197
|
-
await this.deleteIntakeWorkItemRaw(requestParameters, initOverrides);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Retrieve all work items in the project\'s intake queue. Returns paginated results when listing all intake work items.
|
|
202
|
-
* List intake work items
|
|
203
|
-
*/
|
|
204
|
-
async getIntakeWorkItemsListRaw(requestParameters: GetIntakeWorkItemsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIntakeIssueResponse>> {
|
|
205
|
-
if (requestParameters['projectId'] == null) {
|
|
206
|
-
throw new runtime.RequiredError(
|
|
207
|
-
'projectId',
|
|
208
|
-
'Required parameter "projectId" was null or undefined when calling getIntakeWorkItemsList().'
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (requestParameters['slug'] == null) {
|
|
213
|
-
throw new runtime.RequiredError(
|
|
214
|
-
'slug',
|
|
215
|
-
'Required parameter "slug" was null or undefined when calling getIntakeWorkItemsList().'
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
const queryParameters: any = {};
|
|
220
|
-
|
|
221
|
-
if (requestParameters['cursor'] != null) {
|
|
222
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
if (requestParameters['expand'] != null) {
|
|
226
|
-
queryParameters['expand'] = requestParameters['expand'];
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (requestParameters['fields'] != null) {
|
|
230
|
-
queryParameters['fields'] = requestParameters['fields'];
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
if (requestParameters['perPage'] != null) {
|
|
234
|
-
queryParameters['per_page'] = requestParameters['perPage'];
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
238
|
-
|
|
239
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
240
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
244
|
-
// oauth required
|
|
245
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
249
|
-
// oauth required
|
|
250
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
const response = await this.request({
|
|
254
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/intake-issues/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
255
|
-
method: 'GET',
|
|
256
|
-
headers: headerParameters,
|
|
257
|
-
query: queryParameters,
|
|
258
|
-
}, initOverrides);
|
|
259
|
-
|
|
260
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIntakeIssueResponseFromJSON(jsonValue));
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Retrieve all work items in the project\'s intake queue. Returns paginated results when listing all intake work items.
|
|
265
|
-
* List intake work items
|
|
266
|
-
*/
|
|
267
|
-
async getIntakeWorkItemsList(requestParameters: GetIntakeWorkItemsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIntakeIssueResponse> {
|
|
268
|
-
const response = await this.getIntakeWorkItemsListRaw(requestParameters, initOverrides);
|
|
269
|
-
return await response.value();
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Retrieve details of a specific intake work item.
|
|
274
|
-
* Retrieve intake work item
|
|
275
|
-
*/
|
|
276
|
-
async retrieveIntakeWorkItemRaw(requestParameters: RetrieveIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntakeIssue>> {
|
|
277
|
-
if (requestParameters['issueId'] == null) {
|
|
278
|
-
throw new runtime.RequiredError(
|
|
279
|
-
'issueId',
|
|
280
|
-
'Required parameter "issueId" was null or undefined when calling retrieveIntakeWorkItem().'
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
if (requestParameters['projectId'] == null) {
|
|
285
|
-
throw new runtime.RequiredError(
|
|
286
|
-
'projectId',
|
|
287
|
-
'Required parameter "projectId" was null or undefined when calling retrieveIntakeWorkItem().'
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (requestParameters['slug'] == null) {
|
|
292
|
-
throw new runtime.RequiredError(
|
|
293
|
-
'slug',
|
|
294
|
-
'Required parameter "slug" was null or undefined when calling retrieveIntakeWorkItem().'
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
const queryParameters: any = {};
|
|
299
|
-
|
|
300
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
301
|
-
|
|
302
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
303
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
-
// oauth required
|
|
308
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
312
|
-
// oauth required
|
|
313
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
const response = await this.request({
|
|
317
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/intake-issues/{issue_id}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
318
|
-
method: 'GET',
|
|
319
|
-
headers: headerParameters,
|
|
320
|
-
query: queryParameters,
|
|
321
|
-
}, initOverrides);
|
|
322
|
-
|
|
323
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntakeIssueFromJSON(jsonValue));
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Retrieve details of a specific intake work item.
|
|
328
|
-
* Retrieve intake work item
|
|
329
|
-
*/
|
|
330
|
-
async retrieveIntakeWorkItem(requestParameters: RetrieveIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntakeIssue> {
|
|
331
|
-
const response = await this.retrieveIntakeWorkItemRaw(requestParameters, initOverrides);
|
|
332
|
-
return await response.value();
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Modify an existing intake work item\'s properties or status for triage processing. Supports status changes like accept, reject, or mark as duplicate.
|
|
337
|
-
* Update intake work item
|
|
338
|
-
*/
|
|
339
|
-
async updateIntakeWorkItemRaw(requestParameters: UpdateIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntakeIssue>> {
|
|
340
|
-
if (requestParameters['issueId'] == null) {
|
|
341
|
-
throw new runtime.RequiredError(
|
|
342
|
-
'issueId',
|
|
343
|
-
'Required parameter "issueId" was null or undefined when calling updateIntakeWorkItem().'
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
if (requestParameters['projectId'] == null) {
|
|
348
|
-
throw new runtime.RequiredError(
|
|
349
|
-
'projectId',
|
|
350
|
-
'Required parameter "projectId" was null or undefined when calling updateIntakeWorkItem().'
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
if (requestParameters['slug'] == null) {
|
|
355
|
-
throw new runtime.RequiredError(
|
|
356
|
-
'slug',
|
|
357
|
-
'Required parameter "slug" was null or undefined when calling updateIntakeWorkItem().'
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
const queryParameters: any = {};
|
|
362
|
-
|
|
363
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
364
|
-
|
|
365
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
366
|
-
|
|
367
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
372
|
-
// oauth required
|
|
373
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
377
|
-
// oauth required
|
|
378
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
const response = await this.request({
|
|
382
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/intake-issues/{issue_id}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
383
|
-
method: 'PATCH',
|
|
384
|
-
headers: headerParameters,
|
|
385
|
-
query: queryParameters,
|
|
386
|
-
body: PatchedIntakeIssueUpdateRequestToJSON(requestParameters['patchedIntakeIssueUpdateRequest']),
|
|
387
|
-
}, initOverrides);
|
|
388
|
-
|
|
389
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntakeIssueFromJSON(jsonValue));
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Modify an existing intake work item\'s properties or status for triage processing. Supports status changes like accept, reject, or mark as duplicate.
|
|
394
|
-
* Update intake work item
|
|
395
|
-
*/
|
|
396
|
-
async updateIntakeWorkItem(requestParameters: UpdateIntakeWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntakeIssue> {
|
|
397
|
-
const response = await this.updateIntakeWorkItemRaw(requestParameters, initOverrides);
|
|
398
|
-
return await response.value();
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
}
|