@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
package/src/apis/WorkItemsApi.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.
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
import * as runtime from '../runtime';
|
|
16
16
|
import type {
|
|
17
17
|
Issue,
|
|
18
|
+
IssueDetail,
|
|
19
|
+
IssueRelation,
|
|
20
|
+
IssueRelationCreateRequest,
|
|
21
|
+
IssueRelationRemoveRequest,
|
|
22
|
+
IssueRelationResponse,
|
|
18
23
|
IssueRequest,
|
|
19
24
|
IssueSearch,
|
|
20
25
|
PaginatedWorkItemResponse,
|
|
@@ -23,6 +28,16 @@ import type {
|
|
|
23
28
|
import {
|
|
24
29
|
IssueFromJSON,
|
|
25
30
|
IssueToJSON,
|
|
31
|
+
IssueDetailFromJSON,
|
|
32
|
+
IssueDetailToJSON,
|
|
33
|
+
IssueRelationFromJSON,
|
|
34
|
+
IssueRelationToJSON,
|
|
35
|
+
IssueRelationCreateRequestFromJSON,
|
|
36
|
+
IssueRelationCreateRequestToJSON,
|
|
37
|
+
IssueRelationRemoveRequestFromJSON,
|
|
38
|
+
IssueRelationRemoveRequestToJSON,
|
|
39
|
+
IssueRelationResponseFromJSON,
|
|
40
|
+
IssueRelationResponseToJSON,
|
|
26
41
|
IssueRequestFromJSON,
|
|
27
42
|
IssueRequestToJSON,
|
|
28
43
|
IssueSearchFromJSON,
|
|
@@ -39,6 +54,13 @@ export interface CreateWorkItemRequest {
|
|
|
39
54
|
issueRequest: IssueRequest;
|
|
40
55
|
}
|
|
41
56
|
|
|
57
|
+
export interface CreateWorkItemRelationRequest {
|
|
58
|
+
issueId: string;
|
|
59
|
+
projectId: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
issueRelationCreateRequest: IssueRelationCreateRequest;
|
|
62
|
+
}
|
|
63
|
+
|
|
42
64
|
export interface DeleteWorkItemRequest {
|
|
43
65
|
pk: string;
|
|
44
66
|
projectId: string;
|
|
@@ -51,6 +73,17 @@ export interface GetWorkspaceWorkItemRequest {
|
|
|
51
73
|
slug: string;
|
|
52
74
|
}
|
|
53
75
|
|
|
76
|
+
export interface ListWorkItemRelationsRequest {
|
|
77
|
+
issueId: string;
|
|
78
|
+
projectId: string;
|
|
79
|
+
slug: string;
|
|
80
|
+
cursor?: string;
|
|
81
|
+
expand?: string;
|
|
82
|
+
fields?: string;
|
|
83
|
+
orderBy?: string;
|
|
84
|
+
perPage?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
54
87
|
export interface ListWorkItemsRequest {
|
|
55
88
|
projectId: string;
|
|
56
89
|
slug: string;
|
|
@@ -63,6 +96,13 @@ export interface ListWorkItemsRequest {
|
|
|
63
96
|
perPage?: number;
|
|
64
97
|
}
|
|
65
98
|
|
|
99
|
+
export interface RemoveWorkItemRelationRequest {
|
|
100
|
+
issueId: string;
|
|
101
|
+
projectId: string;
|
|
102
|
+
slug: string;
|
|
103
|
+
issueRelationRemoveRequest: IssueRelationRemoveRequest;
|
|
104
|
+
}
|
|
105
|
+
|
|
66
106
|
export interface RetrieveWorkItemRequest {
|
|
67
107
|
pk: string;
|
|
68
108
|
projectId: string;
|
|
@@ -160,6 +200,79 @@ export class WorkItemsApi extends runtime.BaseAPI {
|
|
|
160
200
|
return await response.value();
|
|
161
201
|
}
|
|
162
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
|
|
205
|
+
* Create work item relation
|
|
206
|
+
*/
|
|
207
|
+
async createWorkItemRelationRaw(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssueRelation>>> {
|
|
208
|
+
if (requestParameters['issueId'] == null) {
|
|
209
|
+
throw new runtime.RequiredError(
|
|
210
|
+
'issueId',
|
|
211
|
+
'Required parameter "issueId" was null or undefined when calling createWorkItemRelation().'
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (requestParameters['projectId'] == null) {
|
|
216
|
+
throw new runtime.RequiredError(
|
|
217
|
+
'projectId',
|
|
218
|
+
'Required parameter "projectId" was null or undefined when calling createWorkItemRelation().'
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (requestParameters['slug'] == null) {
|
|
223
|
+
throw new runtime.RequiredError(
|
|
224
|
+
'slug',
|
|
225
|
+
'Required parameter "slug" was null or undefined when calling createWorkItemRelation().'
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (requestParameters['issueRelationCreateRequest'] == null) {
|
|
230
|
+
throw new runtime.RequiredError(
|
|
231
|
+
'issueRelationCreateRequest',
|
|
232
|
+
'Required parameter "issueRelationCreateRequest" was null or undefined when calling createWorkItemRelation().'
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const queryParameters: any = {};
|
|
237
|
+
|
|
238
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
239
|
+
|
|
240
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
241
|
+
|
|
242
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
243
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
247
|
+
// oauth required
|
|
248
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
252
|
+
// oauth required
|
|
253
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const response = await this.request({
|
|
257
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
258
|
+
method: 'POST',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
body: IssueRelationCreateRequestToJSON(requestParameters['issueRelationCreateRequest']),
|
|
262
|
+
}, initOverrides);
|
|
263
|
+
|
|
264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssueRelationFromJSON));
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after.
|
|
269
|
+
* Create work item relation
|
|
270
|
+
*/
|
|
271
|
+
async createWorkItemRelation(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssueRelation>> {
|
|
272
|
+
const response = await this.createWorkItemRelationRaw(requestParameters, initOverrides);
|
|
273
|
+
return await response.value();
|
|
274
|
+
}
|
|
275
|
+
|
|
163
276
|
/**
|
|
164
277
|
* Permanently delete an existing work item from the project. Only admins or the item creator can perform this action.
|
|
165
278
|
* Delete work item
|
|
@@ -285,6 +398,89 @@ export class WorkItemsApi extends runtime.BaseAPI {
|
|
|
285
398
|
return await response.value();
|
|
286
399
|
}
|
|
287
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
|
|
403
|
+
* List work item relations
|
|
404
|
+
*/
|
|
405
|
+
async listWorkItemRelationsRaw(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueRelationResponse>> {
|
|
406
|
+
if (requestParameters['issueId'] == null) {
|
|
407
|
+
throw new runtime.RequiredError(
|
|
408
|
+
'issueId',
|
|
409
|
+
'Required parameter "issueId" was null or undefined when calling listWorkItemRelations().'
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (requestParameters['projectId'] == null) {
|
|
414
|
+
throw new runtime.RequiredError(
|
|
415
|
+
'projectId',
|
|
416
|
+
'Required parameter "projectId" was null or undefined when calling listWorkItemRelations().'
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (requestParameters['slug'] == null) {
|
|
421
|
+
throw new runtime.RequiredError(
|
|
422
|
+
'slug',
|
|
423
|
+
'Required parameter "slug" was null or undefined when calling listWorkItemRelations().'
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const queryParameters: any = {};
|
|
428
|
+
|
|
429
|
+
if (requestParameters['cursor'] != null) {
|
|
430
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (requestParameters['expand'] != null) {
|
|
434
|
+
queryParameters['expand'] = requestParameters['expand'];
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
if (requestParameters['fields'] != null) {
|
|
438
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (requestParameters['orderBy'] != null) {
|
|
442
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
if (requestParameters['perPage'] != null) {
|
|
446
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
450
|
+
|
|
451
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
452
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
456
|
+
// oauth required
|
|
457
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
+
// oauth required
|
|
462
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
const response = await this.request({
|
|
466
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
467
|
+
method: 'GET',
|
|
468
|
+
headers: headerParameters,
|
|
469
|
+
query: queryParameters,
|
|
470
|
+
}, initOverrides);
|
|
471
|
+
|
|
472
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IssueRelationResponseFromJSON(jsonValue));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations.
|
|
477
|
+
* List work item relations
|
|
478
|
+
*/
|
|
479
|
+
async listWorkItemRelations(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueRelationResponse> {
|
|
480
|
+
const response = await this.listWorkItemRelationsRaw(requestParameters, initOverrides);
|
|
481
|
+
return await response.value();
|
|
482
|
+
}
|
|
483
|
+
|
|
288
484
|
/**
|
|
289
485
|
* Retrieve a paginated list of all work items in a project. Supports filtering, ordering, and field selection through query parameters.
|
|
290
486
|
* List work items
|
|
@@ -369,11 +565,83 @@ export class WorkItemsApi extends runtime.BaseAPI {
|
|
|
369
565
|
return await response.value();
|
|
370
566
|
}
|
|
371
567
|
|
|
568
|
+
/**
|
|
569
|
+
* Remove a relationship between work items by specifying the related work item ID.
|
|
570
|
+
* Remove work item relation
|
|
571
|
+
*/
|
|
572
|
+
async removeWorkItemRelationRaw(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
573
|
+
if (requestParameters['issueId'] == null) {
|
|
574
|
+
throw new runtime.RequiredError(
|
|
575
|
+
'issueId',
|
|
576
|
+
'Required parameter "issueId" was null or undefined when calling removeWorkItemRelation().'
|
|
577
|
+
);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
if (requestParameters['projectId'] == null) {
|
|
581
|
+
throw new runtime.RequiredError(
|
|
582
|
+
'projectId',
|
|
583
|
+
'Required parameter "projectId" was null or undefined when calling removeWorkItemRelation().'
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
if (requestParameters['slug'] == null) {
|
|
588
|
+
throw new runtime.RequiredError(
|
|
589
|
+
'slug',
|
|
590
|
+
'Required parameter "slug" was null or undefined when calling removeWorkItemRelation().'
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
if (requestParameters['issueRelationRemoveRequest'] == null) {
|
|
595
|
+
throw new runtime.RequiredError(
|
|
596
|
+
'issueRelationRemoveRequest',
|
|
597
|
+
'Required parameter "issueRelationRemoveRequest" was null or undefined when calling removeWorkItemRelation().'
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
const queryParameters: any = {};
|
|
602
|
+
|
|
603
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
604
|
+
|
|
605
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
606
|
+
|
|
607
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
608
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
612
|
+
// oauth required
|
|
613
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
617
|
+
// oauth required
|
|
618
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
const response = await this.request({
|
|
622
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/remove/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
623
|
+
method: 'POST',
|
|
624
|
+
headers: headerParameters,
|
|
625
|
+
query: queryParameters,
|
|
626
|
+
body: IssueRelationRemoveRequestToJSON(requestParameters['issueRelationRemoveRequest']),
|
|
627
|
+
}, initOverrides);
|
|
628
|
+
|
|
629
|
+
return new runtime.VoidApiResponse(response);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Remove a relationship between work items by specifying the related work item ID.
|
|
634
|
+
* Remove work item relation
|
|
635
|
+
*/
|
|
636
|
+
async removeWorkItemRelation(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
637
|
+
await this.removeWorkItemRelationRaw(requestParameters, initOverrides);
|
|
638
|
+
}
|
|
639
|
+
|
|
372
640
|
/**
|
|
373
641
|
* Retrieve details of a specific work item.
|
|
374
642
|
* Retrieve work item
|
|
375
643
|
*/
|
|
376
|
-
async retrieveWorkItemRaw(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
644
|
+
async retrieveWorkItemRaw(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueDetail>> {
|
|
377
645
|
if (requestParameters['pk'] == null) {
|
|
378
646
|
throw new runtime.RequiredError(
|
|
379
647
|
'pk',
|
|
@@ -440,14 +708,14 @@ export class WorkItemsApi extends runtime.BaseAPI {
|
|
|
440
708
|
query: queryParameters,
|
|
441
709
|
}, initOverrides);
|
|
442
710
|
|
|
443
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
711
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IssueDetailFromJSON(jsonValue));
|
|
444
712
|
}
|
|
445
713
|
|
|
446
714
|
/**
|
|
447
715
|
* Retrieve details of a specific work item.
|
|
448
716
|
* Retrieve work item
|
|
449
717
|
*/
|
|
450
|
-
async retrieveWorkItem(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
718
|
+
async retrieveWorkItem(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueDetail> {
|
|
451
719
|
const response = await this.retrieveWorkItemRaw(requestParameters, initOverrides);
|
|
452
720
|
return await response.value();
|
|
453
721
|
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
|
|
17
|
+
export interface WorkspacesProjectsMembersCreateRequest {
|
|
18
|
+
projectId: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export class WorkspacesApi extends runtime.BaseAPI {
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* This enables timezone conversion according to the user set timezone
|
|
29
|
+
*/
|
|
30
|
+
async workspacesProjectsMembersCreateRaw(requestParameters: WorkspacesProjectsMembersCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
31
|
+
if (requestParameters['projectId'] == null) {
|
|
32
|
+
throw new runtime.RequiredError(
|
|
33
|
+
'projectId',
|
|
34
|
+
'Required parameter "projectId" was null or undefined when calling workspacesProjectsMembersCreate().'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (requestParameters['slug'] == null) {
|
|
39
|
+
throw new runtime.RequiredError(
|
|
40
|
+
'slug',
|
|
41
|
+
'Required parameter "slug" was null or undefined when calling workspacesProjectsMembersCreate().'
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const queryParameters: any = {};
|
|
46
|
+
|
|
47
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
48
|
+
|
|
49
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
50
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
54
|
+
// oauth required
|
|
55
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
// oauth required
|
|
60
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const response = await this.request({
|
|
64
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/members/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
}, initOverrides);
|
|
69
|
+
|
|
70
|
+
return new runtime.VoidApiResponse(response);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* This enables timezone conversion according to the user set timezone
|
|
75
|
+
*/
|
|
76
|
+
async workspacesProjectsMembersCreate(requestParameters: WorkspacesProjectsMembersCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
77
|
+
await this.workspacesProjectsMembersCreateRaw(requestParameters, initOverrides);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
export * from './AssetsApi';
|
|
4
4
|
export * from './CyclesApi';
|
|
5
|
+
export * from './EpicsApi';
|
|
5
6
|
export * from './IntakeApi';
|
|
6
7
|
export * from './LabelsApi';
|
|
7
8
|
export * from './MembersApi';
|
|
8
9
|
export * from './ModulesApi';
|
|
10
|
+
export * from './PagesApi';
|
|
9
11
|
export * from './ProjectsApi';
|
|
10
12
|
export * from './StatesApi';
|
|
11
13
|
export * from './UsersApi';
|
|
@@ -17,3 +19,4 @@ export * from './WorkItemPropertiesApi';
|
|
|
17
19
|
export * from './WorkItemTypesApi';
|
|
18
20
|
export * from './WorkItemWorklogsApi';
|
|
19
21
|
export * from './WorkItemsApi';
|
|
22
|
+
export * from './WorkspacesApi';
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* * `INTERNAL` - INTERNAL
|
|
17
|
+
* * `EXTERNAL` - EXTERNAL
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AccessBd4Enum = {
|
|
21
|
+
Internal: 'INTERNAL',
|
|
22
|
+
External: 'EXTERNAL'
|
|
23
|
+
} as const;
|
|
24
|
+
export type AccessBd4Enum = typeof AccessBd4Enum[keyof typeof AccessBd4Enum];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfAccessBd4Enum(value: any): boolean {
|
|
28
|
+
for (const key in AccessBd4Enum) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(AccessBd4Enum, key)) {
|
|
30
|
+
if (AccessBd4Enum[key as keyof typeof AccessBd4Enum] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AccessBd4EnumFromJSON(json: any): AccessBd4Enum {
|
|
39
|
+
return AccessBd4EnumFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AccessBd4EnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessBd4Enum {
|
|
43
|
+
return json as AccessBd4Enum;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AccessBd4EnumToJSON(value?: AccessBd4Enum | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AccessBd4EnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AccessBd4Enum {
|
|
51
|
+
return value as AccessBd4Enum;
|
|
52
|
+
}
|
|
53
|
+
|
package/src/models/Cycle.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.
|
package/src/models/CycleIssue.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.
|
package/src/models/CycleLite.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.
|