@makeplane/plane-node-sdk 0.1.3 → 0.1.5
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/.github/workflows/publish-node-sdk.yml +23 -5
- package/.openapi-generator/FILES +18 -3
- package/README.md +2 -2
- package/dist/apis/AssetsApi.d.ts +1 -1
- package/dist/apis/AssetsApi.js +1 -1
- package/dist/apis/CyclesApi.d.ts +3 -3
- package/dist/apis/CyclesApi.js +2 -2
- package/dist/apis/EpicsApi.d.ts +49 -0
- package/dist/apis/EpicsApi.js +243 -0
- package/dist/apis/IntakeApi.d.ts +1 -1
- package/dist/apis/IntakeApi.js +1 -1
- package/dist/apis/LabelsApi.d.ts +1 -1
- package/dist/apis/LabelsApi.js +1 -1
- package/dist/apis/MembersApi.d.ts +1 -1
- package/dist/apis/MembersApi.js +1 -1
- package/dist/apis/ModulesApi.d.ts +3 -3
- package/dist/apis/ModulesApi.js +2 -2
- package/dist/apis/PagesApi.d.ts +75 -0
- package/dist/apis/PagesApi.js +393 -0
- package/dist/apis/ProjectsApi.d.ts +1 -1
- package/dist/apis/ProjectsApi.js +1 -1
- package/dist/apis/StatesApi.d.ts +1 -1
- package/dist/apis/StatesApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/WorkItemActivityApi.d.ts +1 -1
- package/dist/apis/WorkItemActivityApi.js +1 -1
- package/dist/apis/WorkItemAttachmentsApi.d.ts +18 -1
- package/dist/apis/WorkItemAttachmentsApi.js +83 -1
- package/dist/apis/WorkItemCommentsApi.d.ts +1 -1
- package/dist/apis/WorkItemCommentsApi.js +1 -1
- package/dist/apis/WorkItemLinksApi.d.ts +1 -1
- package/dist/apis/WorkItemLinksApi.js +1 -1
- package/dist/apis/WorkItemPropertiesApi.d.ts +24 -8
- package/dist/apis/WorkItemPropertiesApi.js +86 -4
- package/dist/apis/WorkItemTypesApi.d.ts +1 -1
- package/dist/apis/WorkItemTypesApi.js +1 -1
- package/dist/apis/WorkItemWorklogsApi.d.ts +1 -1
- package/dist/apis/WorkItemWorklogsApi.js +1 -1
- package/dist/apis/WorkItemsApi.d.ts +56 -4
- package/dist/apis/WorkItemsApi.js +262 -2
- package/dist/apis/WorkspacesApi.d.ts +28 -0
- package/dist/apis/WorkspacesApi.js +150 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/models/AccessBd4Enum.d.ts +25 -0
- package/dist/models/AccessBd4Enum.js +51 -0
- package/dist/models/Cycle.d.ts +1 -1
- package/dist/models/Cycle.js +1 -1
- package/dist/models/CycleCreateRequest.d.ts +1 -1
- package/dist/models/CycleCreateRequest.js +1 -1
- package/dist/models/CycleIssue.d.ts +1 -1
- package/dist/models/CycleIssue.js +1 -1
- package/dist/models/CycleIssueRequestRequest.d.ts +1 -1
- package/dist/models/CycleIssueRequestRequest.js +1 -1
- package/dist/models/CycleLite.d.ts +1 -1
- package/dist/models/CycleLite.js +1 -1
- package/dist/models/EntityTypeEnum.d.ts +1 -1
- package/dist/models/EntityTypeEnum.js +1 -1
- package/dist/models/Epic.d.ts +206 -0
- package/dist/models/Epic.js +106 -0
- package/dist/models/GenericAssetUploadRequest.d.ts +1 -1
- package/dist/models/GenericAssetUploadRequest.js +1 -1
- package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +1 -1
- package/dist/models/GetWorkspaceMembers200ResponseInner.js +1 -1
- package/dist/models/GroupEnum.d.ts +1 -1
- package/dist/models/GroupEnum.js +1 -1
- package/dist/models/IntakeIssue.d.ts +1 -1
- package/dist/models/IntakeIssue.js +1 -1
- package/dist/models/IntakeIssueCreateRequest.d.ts +1 -1
- package/dist/models/IntakeIssueCreateRequest.js +1 -1
- package/dist/models/IntakeWorkItemStatusEnum.d.ts +1 -1
- package/dist/models/IntakeWorkItemStatusEnum.js +1 -1
- package/dist/models/Issue.d.ts +1 -1
- package/dist/models/Issue.js +1 -1
- package/dist/models/IssueActivity.d.ts +1 -1
- package/dist/models/IssueActivity.js +1 -1
- package/dist/models/IssueAttachment.d.ts +1 -1
- package/dist/models/IssueAttachment.js +1 -1
- package/dist/models/IssueAttachmentUploadRequest.d.ts +1 -1
- package/dist/models/IssueAttachmentUploadRequest.js +1 -1
- package/dist/models/IssueComment.d.ts +4 -4
- package/dist/models/IssueComment.js +4 -4
- package/dist/models/IssueCommentCreateRequest.d.ts +4 -4
- package/dist/models/IssueCommentCreateRequest.js +4 -4
- package/dist/models/IssueDetail.d.ts +211 -0
- package/dist/models/IssueDetail.js +108 -0
- package/dist/models/IssueExpand.d.ts +5 -7
- package/dist/models/IssueExpand.js +3 -5
- package/dist/models/IssueForIntakeRequest.d.ts +1 -1
- package/dist/models/IssueForIntakeRequest.js +1 -1
- package/dist/models/IssueLink.d.ts +1 -1
- package/dist/models/IssueLink.js +1 -1
- package/dist/models/IssueLinkCreateRequest.d.ts +1 -1
- package/dist/models/IssueLinkCreateRequest.js +1 -1
- package/dist/models/IssuePropertyAPI.d.ts +4 -4
- package/dist/models/IssuePropertyAPI.js +4 -4
- package/dist/models/IssuePropertyAPIRelationTypeEnum.d.ts +25 -0
- package/dist/models/IssuePropertyAPIRelationTypeEnum.js +51 -0
- package/dist/models/IssuePropertyAPIRequest.d.ts +4 -4
- package/dist/models/IssuePropertyAPIRequest.js +4 -4
- package/dist/models/IssuePropertyOptionAPI.d.ts +1 -1
- package/dist/models/IssuePropertyOptionAPI.js +1 -1
- package/dist/models/IssuePropertyOptionAPIRequest.d.ts +1 -1
- package/dist/models/IssuePropertyOptionAPIRequest.js +1 -1
- package/dist/models/IssuePropertyValueAPI.d.ts +1 -1
- package/dist/models/IssuePropertyValueAPI.js +1 -1
- package/dist/models/IssuePropertyValueAPIDetail.d.ts +39 -0
- package/dist/models/IssuePropertyValueAPIDetail.js +54 -0
- package/dist/models/IssuePropertyValueAPIRequest.d.ts +1 -1
- package/dist/models/IssuePropertyValueAPIRequest.js +1 -1
- package/dist/models/IssueRelation.d.ts +106 -0
- package/dist/models/IssueRelation.js +58 -0
- package/dist/models/IssueRelationCreateRelationTypeEnum.d.ts +37 -0
- package/dist/models/IssueRelationCreateRelationTypeEnum.js +63 -0
- package/dist/models/IssueRelationCreateRequest.d.ts +50 -0
- package/dist/models/IssueRelationCreateRequest.js +55 -0
- package/dist/models/IssueRelationRemoveRequest.d.ts +34 -0
- package/dist/models/IssueRelationRemoveRequest.js +50 -0
- package/dist/models/IssueRelationResponse.d.ts +75 -0
- package/dist/models/IssueRelationResponse.js +78 -0
- package/dist/models/IssueRequest.d.ts +1 -1
- package/dist/models/IssueRequest.js +1 -1
- package/dist/models/IssueSearch.d.ts +4 -5
- package/dist/models/IssueSearch.js +1 -1
- package/dist/models/IssueSearchItem.d.ts +1 -1
- package/dist/models/IssueSearchItem.js +1 -1
- package/dist/models/IssueTypeAPI.d.ts +1 -1
- package/dist/models/IssueTypeAPI.js +1 -1
- package/dist/models/IssueTypeAPIRequest.d.ts +1 -1
- package/dist/models/IssueTypeAPIRequest.js +1 -1
- package/dist/models/IssueWorkLogAPI.d.ts +1 -1
- package/dist/models/IssueWorkLogAPI.js +1 -1
- package/dist/models/IssueWorkLogAPIRequest.d.ts +1 -1
- package/dist/models/IssueWorkLogAPIRequest.js +1 -1
- package/dist/models/Label.d.ts +1 -1
- package/dist/models/Label.js +1 -1
- package/dist/models/LabelCreateUpdateRequest.d.ts +1 -1
- package/dist/models/LabelCreateUpdateRequest.js +1 -1
- package/dist/models/Module.d.ts +1 -1
- package/dist/models/Module.js +1 -1
- package/dist/models/ModuleCreateRequest.d.ts +1 -1
- package/dist/models/ModuleCreateRequest.js +1 -1
- package/dist/models/ModuleIssue.d.ts +1 -1
- package/dist/models/ModuleIssue.js +1 -1
- package/dist/models/ModuleIssueRequestRequest.d.ts +1 -1
- package/dist/models/ModuleIssueRequestRequest.js +1 -1
- package/dist/models/ModuleLite.d.ts +1 -1
- package/dist/models/ModuleLite.js +1 -1
- package/dist/models/ModuleStatusEnum.d.ts +1 -1
- package/dist/models/ModuleStatusEnum.js +1 -1
- package/dist/models/NetworkEnum.d.ts +1 -1
- package/dist/models/NetworkEnum.js +1 -1
- package/dist/models/PageCreateAPI.d.ts +134 -0
- package/dist/models/PageCreateAPI.js +79 -0
- package/dist/models/PageCreateAPIAccessEnum.d.ts +25 -0
- package/dist/models/PageCreateAPIAccessEnum.js +51 -0
- package/dist/models/PageCreateAPIRequest.d.ts +86 -0
- package/dist/models/PageCreateAPIRequest.js +71 -0
- package/dist/models/PageDetailAPI.d.ts +79 -0
- package/dist/models/PageDetailAPI.js +57 -0
- package/dist/models/PaginatedArchivedCycleResponse.d.ts +1 -1
- package/dist/models/PaginatedArchivedCycleResponse.js +1 -1
- package/dist/models/PaginatedArchivedModuleResponse.d.ts +1 -1
- package/dist/models/PaginatedArchivedModuleResponse.js +1 -1
- package/dist/models/PaginatedCycleIssueResponse.d.ts +1 -1
- package/dist/models/PaginatedCycleIssueResponse.js +1 -1
- package/dist/models/PaginatedCycleResponse.d.ts +1 -1
- package/dist/models/PaginatedCycleResponse.js +1 -1
- package/dist/models/PaginatedEpicResponse.d.ts +98 -0
- package/dist/models/PaginatedEpicResponse.js +95 -0
- package/dist/models/PaginatedIntakeIssueResponse.d.ts +1 -1
- package/dist/models/PaginatedIntakeIssueResponse.js +1 -1
- package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +1 -1
- package/dist/models/PaginatedIssueActivityDetailResponse.js +1 -1
- package/dist/models/PaginatedIssueActivityResponse.d.ts +1 -1
- package/dist/models/PaginatedIssueActivityResponse.js +1 -1
- package/dist/models/PaginatedIssueCommentResponse.d.ts +1 -1
- package/dist/models/PaginatedIssueCommentResponse.js +1 -1
- package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +1 -1
- package/dist/models/PaginatedIssueLinkDetailResponse.js +1 -1
- package/dist/models/PaginatedIssueLinkResponse.d.ts +1 -1
- package/dist/models/PaginatedIssueLinkResponse.js +1 -1
- package/dist/models/PaginatedLabelResponse.d.ts +1 -1
- package/dist/models/PaginatedLabelResponse.js +1 -1
- package/dist/models/PaginatedModuleIssueResponse.d.ts +1 -1
- package/dist/models/PaginatedModuleIssueResponse.js +1 -1
- package/dist/models/PaginatedModuleResponse.d.ts +1 -1
- package/dist/models/PaginatedModuleResponse.js +1 -1
- package/dist/models/PaginatedProjectResponse.d.ts +1 -1
- package/dist/models/PaginatedProjectResponse.js +1 -1
- package/dist/models/PaginatedStateResponse.d.ts +1 -1
- package/dist/models/PaginatedStateResponse.js +1 -1
- package/dist/models/PaginatedWorkItemResponse.d.ts +1 -1
- package/dist/models/PaginatedWorkItemResponse.js +1 -1
- package/dist/models/PatchedAssetUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedAssetUpdateRequest.js +1 -1
- package/dist/models/PatchedCycleUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedCycleUpdateRequest.js +1 -1
- package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedGenericAssetUpdateRequest.js +1 -1
- package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedIntakeIssueUpdateRequest.js +1 -1
- package/dist/models/PatchedIssueCommentCreateRequest.d.ts +4 -4
- package/dist/models/PatchedIssueCommentCreateRequest.js +4 -4
- package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedIssueLinkUpdateRequest.js +1 -1
- package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +4 -4
- package/dist/models/PatchedIssuePropertyAPIRequest.js +4 -4
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +1 -1
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +1 -1
- package/dist/models/PatchedIssueRequest.d.ts +1 -1
- package/dist/models/PatchedIssueRequest.js +1 -1
- package/dist/models/PatchedIssueTypeAPIRequest.d.ts +1 -1
- package/dist/models/PatchedIssueTypeAPIRequest.js +1 -1
- package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +1 -1
- package/dist/models/PatchedIssueWorkLogAPIRequest.js +1 -1
- package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedLabelCreateUpdateRequest.js +1 -1
- package/dist/models/PatchedModuleUpdateRequest.d.ts +1 -1
- package/dist/models/PatchedModuleUpdateRequest.js +1 -1
- package/dist/models/PatchedProjectUpdateRequest.d.ts +25 -1
- package/dist/models/PatchedProjectUpdateRequest.js +9 -1
- package/dist/models/PatchedStateRequest.d.ts +1 -1
- package/dist/models/PatchedStateRequest.js +1 -1
- package/dist/models/PriorityEnum.d.ts +1 -1
- package/dist/models/PriorityEnum.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectCreateRequest.d.ts +25 -1
- package/dist/models/ProjectCreateRequest.js +9 -1
- package/dist/models/ProjectWorklogSummary.d.ts +1 -1
- package/dist/models/ProjectWorklogSummary.js +1 -1
- package/dist/models/PropertyTypeEnum.d.ts +1 -1
- package/dist/models/PropertyTypeEnum.js +1 -1
- package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +1 -1
- package/dist/models/RetrieveWorkItemAttachment400Response.js +1 -1
- package/dist/models/State.d.ts +1 -1
- package/dist/models/State.js +1 -1
- package/dist/models/StateLite.d.ts +1 -1
- package/dist/models/StateLite.js +1 -1
- package/dist/models/StateRequest.d.ts +1 -1
- package/dist/models/StateRequest.js +1 -1
- package/dist/models/TimezoneEnum.d.ts +1 -1
- package/dist/models/TimezoneEnum.js +1 -1
- package/dist/models/TransferCycleIssueRequestRequest.d.ts +1 -1
- package/dist/models/TransferCycleIssueRequestRequest.js +1 -1
- package/dist/models/TransferCycleWorkItems200Response.d.ts +1 -1
- package/dist/models/TransferCycleWorkItems200Response.js +1 -1
- package/dist/models/TransferCycleWorkItems400Response.d.ts +1 -1
- package/dist/models/TransferCycleWorkItems400Response.js +1 -1
- package/dist/models/TypeEnum.d.ts +1 -1
- package/dist/models/TypeEnum.js +1 -1
- package/dist/models/UserAssetUploadRequest.d.ts +1 -1
- package/dist/models/UserAssetUploadRequest.js +1 -1
- package/dist/models/UserLite.d.ts +1 -1
- package/dist/models/UserLite.js +1 -1
- package/dist/models/index.d.ts +15 -3
- package/dist/models/index.js +15 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/AssetsApi.ts +1 -1
- package/src/apis/CyclesApi.ts +4 -4
- package/src/apis/EpicsApi.ts +177 -0
- package/src/apis/IntakeApi.ts +1 -1
- package/src/apis/LabelsApi.ts +1 -1
- package/src/apis/MembersApi.ts +1 -1
- package/src/apis/ModulesApi.ts +4 -4
- package/src/apis/PagesApi.ts +301 -0
- package/src/apis/ProjectsApi.ts +1 -1
- package/src/apis/StatesApi.ts +1 -1
- package/src/apis/UsersApi.ts +1 -1
- package/src/apis/WorkItemActivityApi.ts +1 -1
- package/src/apis/WorkItemAttachmentsApi.ts +81 -1
- package/src/apis/WorkItemCommentsApi.ts +1 -1
- package/src/apis/WorkItemLinksApi.ts +1 -1
- package/src/apis/WorkItemPropertiesApi.ts +90 -10
- package/src/apis/WorkItemTypesApi.ts +1 -1
- package/src/apis/WorkItemWorklogsApi.ts +1 -1
- package/src/apis/WorkItemsApi.ts +272 -4
- package/src/apis/WorkspacesApi.ts +80 -0
- package/src/apis/index.ts +3 -0
- package/src/models/AccessBd4Enum.ts +53 -0
- package/src/models/Cycle.ts +1 -1
- package/src/models/CycleCreateRequest.ts +1 -1
- package/src/models/CycleIssue.ts +1 -1
- package/src/models/CycleIssueRequestRequest.ts +1 -1
- package/src/models/CycleLite.ts +1 -1
- package/src/models/EntityTypeEnum.ts +1 -1
- package/src/models/Epic.ts +302 -0
- package/src/models/GenericAssetUploadRequest.ts +1 -1
- package/src/models/GetWorkspaceMembers200ResponseInner.ts +1 -1
- package/src/models/GroupEnum.ts +1 -1
- package/src/models/IntakeIssue.ts +1 -1
- package/src/models/IntakeIssueCreateRequest.ts +1 -1
- package/src/models/IntakeWorkItemStatusEnum.ts +1 -1
- package/src/models/Issue.ts +1 -1
- package/src/models/IssueActivity.ts +1 -1
- package/src/models/IssueAttachment.ts +1 -1
- package/src/models/IssueAttachmentUploadRequest.ts +1 -1
- package/src/models/IssueComment.ts +11 -11
- package/src/models/IssueCommentCreateRequest.ts +11 -11
- package/src/models/IssueDetail.ts +319 -0
- package/src/models/IssueExpand.ts +7 -21
- package/src/models/IssueForIntakeRequest.ts +1 -1
- package/src/models/IssueLink.ts +1 -1
- package/src/models/IssueLinkCreateRequest.ts +1 -1
- package/src/models/IssuePropertyAPI.ts +11 -11
- package/src/models/IssuePropertyAPIRelationTypeEnum.ts +53 -0
- package/src/models/IssuePropertyAPIRequest.ts +11 -11
- package/src/models/IssuePropertyOptionAPI.ts +1 -1
- package/src/models/IssuePropertyOptionAPIRequest.ts +1 -1
- package/src/models/IssuePropertyValueAPI.ts +1 -1
- package/src/models/IssuePropertyValueAPIDetail.ts +76 -0
- package/src/models/IssuePropertyValueAPIRequest.ts +1 -1
- package/src/models/IssueRelation.ts +150 -0
- package/src/models/IssueRelationCreateRelationTypeEnum.ts +65 -0
- package/src/models/IssueRelationCreateRequest.ts +96 -0
- package/src/models/IssueRelationRemoveRequest.ts +68 -0
- package/src/models/IssueRelationResponse.ts +130 -0
- package/src/models/IssueRequest.ts +1 -1
- package/src/models/IssueSearch.ts +4 -5
- package/src/models/IssueSearchItem.ts +1 -1
- package/src/models/IssueTypeAPI.ts +1 -1
- package/src/models/IssueTypeAPIRequest.ts +1 -1
- package/src/models/IssueWorkLogAPI.ts +1 -1
- package/src/models/IssueWorkLogAPIRequest.ts +1 -1
- package/src/models/Label.ts +1 -1
- package/src/models/LabelCreateUpdateRequest.ts +1 -1
- package/src/models/Module.ts +1 -1
- package/src/models/ModuleCreateRequest.ts +1 -1
- package/src/models/ModuleIssue.ts +1 -1
- package/src/models/ModuleIssueRequestRequest.ts +1 -1
- package/src/models/ModuleLite.ts +1 -1
- package/src/models/ModuleStatusEnum.ts +1 -1
- package/src/models/NetworkEnum.ts +1 -1
- package/src/models/PageCreateAPI.ts +204 -0
- package/src/models/PageCreateAPIAccessEnum.ts +53 -0
- package/src/models/PageCreateAPIRequest.ts +148 -0
- package/src/models/PageDetailAPI.ts +121 -0
- package/src/models/PaginatedArchivedCycleResponse.ts +1 -1
- package/src/models/PaginatedArchivedModuleResponse.ts +1 -1
- package/src/models/PaginatedCycleIssueResponse.ts +1 -1
- package/src/models/PaginatedCycleResponse.ts +1 -1
- package/src/models/PaginatedEpicResponse.ts +172 -0
- package/src/models/PaginatedIntakeIssueResponse.ts +1 -1
- package/src/models/PaginatedIssueActivityDetailResponse.ts +1 -1
- package/src/models/PaginatedIssueActivityResponse.ts +1 -1
- package/src/models/PaginatedIssueCommentResponse.ts +1 -1
- package/src/models/PaginatedIssueLinkDetailResponse.ts +1 -1
- package/src/models/PaginatedIssueLinkResponse.ts +1 -1
- package/src/models/PaginatedLabelResponse.ts +1 -1
- package/src/models/PaginatedModuleIssueResponse.ts +1 -1
- package/src/models/PaginatedModuleResponse.ts +1 -1
- package/src/models/PaginatedProjectResponse.ts +1 -1
- package/src/models/PaginatedStateResponse.ts +1 -1
- package/src/models/PaginatedWorkItemResponse.ts +1 -1
- package/src/models/PatchedAssetUpdateRequest.ts +1 -1
- package/src/models/PatchedCycleUpdateRequest.ts +1 -1
- package/src/models/PatchedGenericAssetUpdateRequest.ts +1 -1
- package/src/models/PatchedIntakeIssueUpdateRequest.ts +1 -1
- package/src/models/PatchedIssueCommentCreateRequest.ts +11 -11
- package/src/models/PatchedIssueLinkUpdateRequest.ts +1 -1
- package/src/models/PatchedIssuePropertyAPIRequest.ts +11 -11
- package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +1 -1
- package/src/models/PatchedIssueRequest.ts +1 -1
- package/src/models/PatchedIssueTypeAPIRequest.ts +1 -1
- package/src/models/PatchedIssueWorkLogAPIRequest.ts +1 -1
- package/src/models/PatchedLabelCreateUpdateRequest.ts +1 -1
- package/src/models/PatchedModuleUpdateRequest.ts +1 -1
- package/src/models/PatchedProjectUpdateRequest.ts +33 -1
- package/src/models/PatchedStateRequest.ts +1 -1
- package/src/models/PriorityEnum.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectCreateRequest.ts +33 -1
- package/src/models/ProjectWorklogSummary.ts +1 -1
- package/src/models/PropertyTypeEnum.ts +1 -1
- package/src/models/RetrieveWorkItemAttachment400Response.ts +1 -1
- package/src/models/State.ts +1 -1
- package/src/models/StateLite.ts +1 -1
- package/src/models/StateRequest.ts +1 -1
- package/src/models/TimezoneEnum.ts +1 -1
- package/src/models/TransferCycleIssueRequestRequest.ts +1 -1
- package/src/models/TransferCycleWorkItems200Response.ts +1 -1
- package/src/models/TransferCycleWorkItems400Response.ts +1 -1
- package/src/models/TypeEnum.ts +1 -1
- package/src/models/UserAssetUploadRequest.ts +1 -1
- package/src/models/UserLite.ts +1 -1
- package/src/models/index.ts +15 -3
- package/src/runtime.ts +1 -1
- package/dist/models/AccessEnum.d.ts +0 -25
- package/dist/models/AccessEnum.js +0 -51
- package/dist/models/LabelLite.d.ts +0 -46
- package/dist/models/LabelLite.js +0 -53
- package/dist/models/RelationTypeEnum.d.ts +0 -25
- package/dist/models/RelationTypeEnum.js +0 -51
- package/src/models/AccessEnum.ts +0 -53
- package/src/models/LabelLite.ts +0 -83
- package/src/models/RelationTypeEnum.ts +0 -53
|
@@ -0,0 +1,301 @@
|
|
|
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
|
+
PageCreateAPI,
|
|
18
|
+
PageCreateAPIRequest,
|
|
19
|
+
PageDetailAPI,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
PageCreateAPIFromJSON,
|
|
23
|
+
PageCreateAPIToJSON,
|
|
24
|
+
PageCreateAPIRequestFromJSON,
|
|
25
|
+
PageCreateAPIRequestToJSON,
|
|
26
|
+
PageDetailAPIFromJSON,
|
|
27
|
+
PageDetailAPIToJSON,
|
|
28
|
+
} from '../models/index';
|
|
29
|
+
|
|
30
|
+
export interface CreateProjectPageRequest {
|
|
31
|
+
projectId: string;
|
|
32
|
+
slug: string;
|
|
33
|
+
pageCreateAPIRequest: PageCreateAPIRequest;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface CreateWorkspacePageRequest {
|
|
37
|
+
slug: string;
|
|
38
|
+
pageCreateAPIRequest: PageCreateAPIRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface GetProjectPageDetailRequest {
|
|
42
|
+
pk: string;
|
|
43
|
+
projectId: string;
|
|
44
|
+
slug: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface GetWorkspacePageDetailRequest {
|
|
48
|
+
pk: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export class PagesApi extends runtime.BaseAPI {
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Create a project page
|
|
59
|
+
* Create a project page
|
|
60
|
+
*/
|
|
61
|
+
async createProjectPageRaw(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageCreateAPI>> {
|
|
62
|
+
if (requestParameters['projectId'] == null) {
|
|
63
|
+
throw new runtime.RequiredError(
|
|
64
|
+
'projectId',
|
|
65
|
+
'Required parameter "projectId" was null or undefined when calling createProjectPage().'
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (requestParameters['slug'] == null) {
|
|
70
|
+
throw new runtime.RequiredError(
|
|
71
|
+
'slug',
|
|
72
|
+
'Required parameter "slug" was null or undefined when calling createProjectPage().'
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (requestParameters['pageCreateAPIRequest'] == null) {
|
|
77
|
+
throw new runtime.RequiredError(
|
|
78
|
+
'pageCreateAPIRequest',
|
|
79
|
+
'Required parameter "pageCreateAPIRequest" was null or undefined when calling createProjectPage().'
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const queryParameters: any = {};
|
|
84
|
+
|
|
85
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
|
+
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
|
|
89
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
90
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
94
|
+
// oauth required
|
|
95
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
99
|
+
// oauth required
|
|
100
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']),
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Create a project page
|
|
116
|
+
* Create a project page
|
|
117
|
+
*/
|
|
118
|
+
async createProjectPage(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageCreateAPI> {
|
|
119
|
+
const response = await this.createProjectPageRaw(requestParameters, initOverrides);
|
|
120
|
+
return await response.value();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Create a workspace page
|
|
125
|
+
* Create a workspace page
|
|
126
|
+
*/
|
|
127
|
+
async createWorkspacePageRaw(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageCreateAPI>> {
|
|
128
|
+
if (requestParameters['slug'] == null) {
|
|
129
|
+
throw new runtime.RequiredError(
|
|
130
|
+
'slug',
|
|
131
|
+
'Required parameter "slug" was null or undefined when calling createWorkspacePage().'
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (requestParameters['pageCreateAPIRequest'] == null) {
|
|
136
|
+
throw new runtime.RequiredError(
|
|
137
|
+
'pageCreateAPIRequest',
|
|
138
|
+
'Required parameter "pageCreateAPIRequest" was null or undefined when calling createWorkspacePage().'
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const queryParameters: any = {};
|
|
143
|
+
|
|
144
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
145
|
+
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
|
|
148
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
149
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
// oauth required
|
|
154
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
158
|
+
// oauth required
|
|
159
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
const response = await this.request({
|
|
163
|
+
path: `/api/v1/workspaces/{slug}/pages/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
164
|
+
method: 'POST',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Create a workspace page
|
|
175
|
+
* Create a workspace page
|
|
176
|
+
*/
|
|
177
|
+
async createWorkspacePage(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageCreateAPI> {
|
|
178
|
+
const response = await this.createWorkspacePageRaw(requestParameters, initOverrides);
|
|
179
|
+
return await response.value();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Get a project page by ID
|
|
184
|
+
* Get a project page by ID
|
|
185
|
+
*/
|
|
186
|
+
async getProjectPageDetailRaw(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageDetailAPI>> {
|
|
187
|
+
if (requestParameters['pk'] == null) {
|
|
188
|
+
throw new runtime.RequiredError(
|
|
189
|
+
'pk',
|
|
190
|
+
'Required parameter "pk" was null or undefined when calling getProjectPageDetail().'
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (requestParameters['projectId'] == null) {
|
|
195
|
+
throw new runtime.RequiredError(
|
|
196
|
+
'projectId',
|
|
197
|
+
'Required parameter "projectId" was null or undefined when calling getProjectPageDetail().'
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (requestParameters['slug'] == null) {
|
|
202
|
+
throw new runtime.RequiredError(
|
|
203
|
+
'slug',
|
|
204
|
+
'Required parameter "slug" was null or undefined when calling getProjectPageDetail().'
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const queryParameters: any = {};
|
|
209
|
+
|
|
210
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
211
|
+
|
|
212
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
213
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
217
|
+
// oauth required
|
|
218
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
222
|
+
// oauth required
|
|
223
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const response = await this.request({
|
|
227
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
228
|
+
method: 'GET',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
}, initOverrides);
|
|
232
|
+
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Get a project page by ID
|
|
238
|
+
* Get a project page by ID
|
|
239
|
+
*/
|
|
240
|
+
async getProjectPageDetail(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageDetailAPI> {
|
|
241
|
+
const response = await this.getProjectPageDetailRaw(requestParameters, initOverrides);
|
|
242
|
+
return await response.value();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Get a workspace page by ID
|
|
247
|
+
* Get a workspace page by ID
|
|
248
|
+
*/
|
|
249
|
+
async getWorkspacePageDetailRaw(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageDetailAPI>> {
|
|
250
|
+
if (requestParameters['pk'] == null) {
|
|
251
|
+
throw new runtime.RequiredError(
|
|
252
|
+
'pk',
|
|
253
|
+
'Required parameter "pk" was null or undefined when calling getWorkspacePageDetail().'
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (requestParameters['slug'] == null) {
|
|
258
|
+
throw new runtime.RequiredError(
|
|
259
|
+
'slug',
|
|
260
|
+
'Required parameter "slug" was null or undefined when calling getWorkspacePageDetail().'
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const queryParameters: any = {};
|
|
265
|
+
|
|
266
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
267
|
+
|
|
268
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
269
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
273
|
+
// oauth required
|
|
274
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
278
|
+
// oauth required
|
|
279
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const response = await this.request({
|
|
283
|
+
path: `/api/v1/workspaces/{slug}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
|
|
289
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Get a workspace page by ID
|
|
294
|
+
* Get a workspace page by ID
|
|
295
|
+
*/
|
|
296
|
+
async getWorkspacePageDetail(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageDetailAPI> {
|
|
297
|
+
const response = await this.getWorkspacePageDetailRaw(requestParameters, initOverrides);
|
|
298
|
+
return await response.value();
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
}
|
package/src/apis/ProjectsApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
package/src/apis/StatesApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -54,6 +54,14 @@ export interface RetrieveWorkItemAttachmentRequest {
|
|
|
54
54
|
slug: string;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export interface UploadWorkItemAttachmentRequest {
|
|
58
|
+
issueId: string;
|
|
59
|
+
pk: string;
|
|
60
|
+
projectId: string;
|
|
61
|
+
slug: string;
|
|
62
|
+
body?: any | null;
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
/**
|
|
58
66
|
*
|
|
59
67
|
*/
|
|
@@ -332,4 +340,76 @@ export class WorkItemAttachmentsApi extends runtime.BaseAPI {
|
|
|
332
340
|
await this.retrieveWorkItemAttachmentRaw(requestParameters, initOverrides);
|
|
333
341
|
}
|
|
334
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
345
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
346
|
+
*/
|
|
347
|
+
async uploadWorkItemAttachmentRaw(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
348
|
+
if (requestParameters['issueId'] == null) {
|
|
349
|
+
throw new runtime.RequiredError(
|
|
350
|
+
'issueId',
|
|
351
|
+
'Required parameter "issueId" was null or undefined when calling uploadWorkItemAttachment().'
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (requestParameters['pk'] == null) {
|
|
356
|
+
throw new runtime.RequiredError(
|
|
357
|
+
'pk',
|
|
358
|
+
'Required parameter "pk" was null or undefined when calling uploadWorkItemAttachment().'
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (requestParameters['projectId'] == null) {
|
|
363
|
+
throw new runtime.RequiredError(
|
|
364
|
+
'projectId',
|
|
365
|
+
'Required parameter "projectId" was null or undefined when calling uploadWorkItemAttachment().'
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (requestParameters['slug'] == null) {
|
|
370
|
+
throw new runtime.RequiredError(
|
|
371
|
+
'slug',
|
|
372
|
+
'Required parameter "slug" was null or undefined when calling uploadWorkItemAttachment().'
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
const queryParameters: any = {};
|
|
377
|
+
|
|
378
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
379
|
+
|
|
380
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
381
|
+
|
|
382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
387
|
+
// oauth required
|
|
388
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
392
|
+
// oauth required
|
|
393
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
const response = await this.request({
|
|
397
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-attachments/{pk}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
398
|
+
method: 'PATCH',
|
|
399
|
+
headers: headerParameters,
|
|
400
|
+
query: queryParameters,
|
|
401
|
+
body: requestParameters['body'] as any,
|
|
402
|
+
}, initOverrides);
|
|
403
|
+
|
|
404
|
+
return new runtime.VoidApiResponse(response);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
409
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
410
|
+
*/
|
|
411
|
+
async uploadWorkItemAttachment(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
412
|
+
await this.uploadWorkItemAttachmentRaw(requestParameters, initOverrides);
|
|
413
|
+
}
|
|
414
|
+
|
|
335
415
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
IssuePropertyOptionAPI,
|
|
20
20
|
IssuePropertyOptionAPIRequest,
|
|
21
21
|
IssuePropertyValueAPI,
|
|
22
|
+
IssuePropertyValueAPIDetail,
|
|
22
23
|
IssuePropertyValueAPIRequest,
|
|
23
24
|
PatchedIssuePropertyAPIRequest,
|
|
24
25
|
PatchedIssuePropertyOptionAPIRequest,
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
IssuePropertyOptionAPIRequestToJSON,
|
|
35
36
|
IssuePropertyValueAPIFromJSON,
|
|
36
37
|
IssuePropertyValueAPIToJSON,
|
|
38
|
+
IssuePropertyValueAPIDetailFromJSON,
|
|
39
|
+
IssuePropertyValueAPIDetailToJSON,
|
|
37
40
|
IssuePropertyValueAPIRequestFromJSON,
|
|
38
41
|
IssuePropertyValueAPIRequestToJSON,
|
|
39
42
|
PatchedIssuePropertyAPIRequestFromJSON,
|
|
@@ -97,6 +100,13 @@ export interface ListIssuePropertyValuesRequest {
|
|
|
97
100
|
slug: string;
|
|
98
101
|
}
|
|
99
102
|
|
|
103
|
+
export interface ListIssuePropertyValuesForAWorkitemRequest {
|
|
104
|
+
issueId: string;
|
|
105
|
+
projectId: string;
|
|
106
|
+
propertyId: string;
|
|
107
|
+
slug: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
100
110
|
export interface RetrieveIssuePropertyRequest {
|
|
101
111
|
projectId: string;
|
|
102
112
|
propertyId: string;
|
|
@@ -500,7 +510,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
500
510
|
* List issue properties
|
|
501
511
|
* List issue properties
|
|
502
512
|
*/
|
|
503
|
-
async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI
|
|
513
|
+
async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyAPI>>> {
|
|
504
514
|
if (requestParameters['projectId'] == null) {
|
|
505
515
|
throw new runtime.RequiredError(
|
|
506
516
|
'projectId',
|
|
@@ -547,14 +557,14 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
547
557
|
query: queryParameters,
|
|
548
558
|
}, initOverrides);
|
|
549
559
|
|
|
550
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON
|
|
560
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyAPIFromJSON));
|
|
551
561
|
}
|
|
552
562
|
|
|
553
563
|
/**
|
|
554
564
|
* List issue properties
|
|
555
565
|
* List issue properties
|
|
556
566
|
*/
|
|
557
|
-
async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI
|
|
567
|
+
async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyAPI>> {
|
|
558
568
|
const response = await this.listIssuePropertiesRaw(requestParameters, initOverrides);
|
|
559
569
|
return await response.value();
|
|
560
570
|
}
|
|
@@ -563,7 +573,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
563
573
|
* List issue property options
|
|
564
574
|
* List issue property options
|
|
565
575
|
*/
|
|
566
|
-
async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI
|
|
576
|
+
async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyOptionAPI>>> {
|
|
567
577
|
if (requestParameters['projectId'] == null) {
|
|
568
578
|
throw new runtime.RequiredError(
|
|
569
579
|
'projectId',
|
|
@@ -610,14 +620,14 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
610
620
|
query: queryParameters,
|
|
611
621
|
}, initOverrides);
|
|
612
622
|
|
|
613
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON
|
|
623
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyOptionAPIFromJSON));
|
|
614
624
|
}
|
|
615
625
|
|
|
616
626
|
/**
|
|
617
627
|
* List issue property options
|
|
618
628
|
* List issue property options
|
|
619
629
|
*/
|
|
620
|
-
async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI
|
|
630
|
+
async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyOptionAPI>> {
|
|
621
631
|
const response = await this.listIssuePropertyOptionsRaw(requestParameters, initOverrides);
|
|
622
632
|
return await response.value();
|
|
623
633
|
}
|
|
@@ -626,7 +636,7 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
626
636
|
* List issue property values
|
|
627
637
|
* List issue property values
|
|
628
638
|
*/
|
|
629
|
-
async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
639
|
+
async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyValueAPIDetail>>> {
|
|
630
640
|
if (requestParameters['issueId'] == null) {
|
|
631
641
|
throw new runtime.RequiredError(
|
|
632
642
|
'issueId',
|
|
@@ -680,18 +690,88 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
680
690
|
query: queryParameters,
|
|
681
691
|
}, initOverrides);
|
|
682
692
|
|
|
683
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
693
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyValueAPIDetailFromJSON));
|
|
684
694
|
}
|
|
685
695
|
|
|
686
696
|
/**
|
|
687
697
|
* List issue property values
|
|
688
698
|
* List issue property values
|
|
689
699
|
*/
|
|
690
|
-
async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
700
|
+
async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyValueAPIDetail>> {
|
|
691
701
|
const response = await this.listIssuePropertyValuesRaw(requestParameters, initOverrides);
|
|
692
702
|
return await response.value();
|
|
693
703
|
}
|
|
694
704
|
|
|
705
|
+
/**
|
|
706
|
+
* List issue property values for a workitem
|
|
707
|
+
* List issue property values for a workitem
|
|
708
|
+
*/
|
|
709
|
+
async listIssuePropertyValuesForAWorkitemRaw(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
|
|
710
|
+
if (requestParameters['issueId'] == null) {
|
|
711
|
+
throw new runtime.RequiredError(
|
|
712
|
+
'issueId',
|
|
713
|
+
'Required parameter "issueId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
714
|
+
);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
if (requestParameters['projectId'] == null) {
|
|
718
|
+
throw new runtime.RequiredError(
|
|
719
|
+
'projectId',
|
|
720
|
+
'Required parameter "projectId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
if (requestParameters['propertyId'] == null) {
|
|
725
|
+
throw new runtime.RequiredError(
|
|
726
|
+
'propertyId',
|
|
727
|
+
'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
if (requestParameters['slug'] == null) {
|
|
732
|
+
throw new runtime.RequiredError(
|
|
733
|
+
'slug',
|
|
734
|
+
'Required parameter "slug" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
735
|
+
);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const queryParameters: any = {};
|
|
739
|
+
|
|
740
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
741
|
+
|
|
742
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
743
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
747
|
+
// oauth required
|
|
748
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
752
|
+
// oauth required
|
|
753
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
const response = await this.request({
|
|
757
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/values/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
758
|
+
method: 'GET',
|
|
759
|
+
headers: headerParameters,
|
|
760
|
+
query: queryParameters,
|
|
761
|
+
}, initOverrides);
|
|
762
|
+
|
|
763
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* List issue property values for a workitem
|
|
768
|
+
* List issue property values for a workitem
|
|
769
|
+
*/
|
|
770
|
+
async listIssuePropertyValuesForAWorkitem(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
|
|
771
|
+
const response = await this.listIssuePropertyValuesForAWorkitemRaw(requestParameters, initOverrides);
|
|
772
|
+
return await response.value();
|
|
773
|
+
}
|
|
774
|
+
|
|
695
775
|
/**
|
|
696
776
|
* Get issue property by id
|
|
697
777
|
* Get issue property by id
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The Plane REST API
|
|
5
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
6
|
*
|
|
7
|
-
* The version of the API Spec: 0.0.
|
|
7
|
+
* The version of the API Spec: 0.0.2
|
|
8
8
|
* Contact: support@plane.so
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated.
|