@makeplane/plane-node-sdk 0.1.4 → 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 +1 -2
- package/.openapi-generator/FILES +16 -2
- 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 +17 -1
- package/dist/apis/WorkItemPropertiesApi.js +83 -1
- 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 +54 -2
- package/dist/apis/WorkItemsApi.js +261 -1
- 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 +1 -1
- package/dist/models/IssueDetail.js +1 -1
- package/dist/models/IssueExpand.d.ts +1 -1
- package/dist/models/IssueExpand.js +1 -1
- 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 +1 -1
- package/dist/models/IssuePropertyValueAPIDetail.js +1 -1
- 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 +1 -1
- 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 +13 -2
- package/dist/models/index.js +13 -2
- 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 +78 -1
- package/src/apis/WorkItemTypesApi.ts +1 -1
- package/src/apis/WorkItemWorklogsApi.ts +1 -1
- package/src/apis/WorkItemsApi.ts +266 -1
- 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 +1 -1
- package/src/models/IssueExpand.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +13 -2
- package/src/runtime.ts +1 -1
- package/dist/models/AccessEnum.d.ts +0 -25
- package/dist/models/AccessEnum.js +0 -51
- 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/RelationTypeEnum.ts +0 -53
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Plane REST API
|
|
6
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
|
+
*
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
|
+
* Contact: support@plane.so
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.PagesApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var PagesApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(PagesApi, _super);
|
|
74
|
+
function PagesApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a project page
|
|
79
|
+
* Create a project page
|
|
80
|
+
*/
|
|
81
|
+
PagesApi.prototype.createProjectPageRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
84
|
+
return __generator(this, function (_g) {
|
|
85
|
+
switch (_g.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['projectId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createProjectPage().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['slug'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling createProjectPage().');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters['pageCreateAPIRequest'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('pageCreateAPIRequest', 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createProjectPage().');
|
|
95
|
+
}
|
|
96
|
+
queryParameters = {};
|
|
97
|
+
headerParameters = {};
|
|
98
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
99
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
100
|
+
_a = headerParameters;
|
|
101
|
+
_b = "X-API-Key";
|
|
102
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
103
|
+
case 1:
|
|
104
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
105
|
+
_g.label = 2;
|
|
106
|
+
case 2:
|
|
107
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
108
|
+
// oauth required
|
|
109
|
+
_c = headerParameters;
|
|
110
|
+
_d = "Authorization";
|
|
111
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
112
|
+
case 3:
|
|
113
|
+
// oauth required
|
|
114
|
+
_c[_d] = _g.sent();
|
|
115
|
+
_g.label = 4;
|
|
116
|
+
case 4:
|
|
117
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
118
|
+
// oauth required
|
|
119
|
+
_e = headerParameters;
|
|
120
|
+
_f = "Authorization";
|
|
121
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
122
|
+
case 5:
|
|
123
|
+
// oauth required
|
|
124
|
+
_e[_f] = _g.sent();
|
|
125
|
+
_g.label = 6;
|
|
126
|
+
case 6: return [4 /*yield*/, this.request({
|
|
127
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/pages/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
128
|
+
method: 'POST',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
body: (0, index_1.PageCreateAPIRequestToJSON)(requestParameters['pageCreateAPIRequest']),
|
|
132
|
+
}, initOverrides)];
|
|
133
|
+
case 7:
|
|
134
|
+
response = _g.sent();
|
|
135
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageCreateAPIFromJSON)(jsonValue); })];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Create a project page
|
|
142
|
+
* Create a project page
|
|
143
|
+
*/
|
|
144
|
+
PagesApi.prototype.createProjectPage = function (requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var response;
|
|
147
|
+
return __generator(this, function (_a) {
|
|
148
|
+
switch (_a.label) {
|
|
149
|
+
case 0: return [4 /*yield*/, this.createProjectPageRaw(requestParameters, initOverrides)];
|
|
150
|
+
case 1:
|
|
151
|
+
response = _a.sent();
|
|
152
|
+
return [4 /*yield*/, response.value()];
|
|
153
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Create a workspace page
|
|
160
|
+
* Create a workspace page
|
|
161
|
+
*/
|
|
162
|
+
PagesApi.prototype.createWorkspacePageRaw = function (requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
165
|
+
return __generator(this, function (_g) {
|
|
166
|
+
switch (_g.label) {
|
|
167
|
+
case 0:
|
|
168
|
+
if (requestParameters['slug'] == null) {
|
|
169
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling createWorkspacePage().');
|
|
170
|
+
}
|
|
171
|
+
if (requestParameters['pageCreateAPIRequest'] == null) {
|
|
172
|
+
throw new runtime.RequiredError('pageCreateAPIRequest', 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createWorkspacePage().');
|
|
173
|
+
}
|
|
174
|
+
queryParameters = {};
|
|
175
|
+
headerParameters = {};
|
|
176
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
177
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
178
|
+
_a = headerParameters;
|
|
179
|
+
_b = "X-API-Key";
|
|
180
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
181
|
+
case 1:
|
|
182
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
183
|
+
_g.label = 2;
|
|
184
|
+
case 2:
|
|
185
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
186
|
+
// oauth required
|
|
187
|
+
_c = headerParameters;
|
|
188
|
+
_d = "Authorization";
|
|
189
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
190
|
+
case 3:
|
|
191
|
+
// oauth required
|
|
192
|
+
_c[_d] = _g.sent();
|
|
193
|
+
_g.label = 4;
|
|
194
|
+
case 4:
|
|
195
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
196
|
+
// oauth required
|
|
197
|
+
_e = headerParameters;
|
|
198
|
+
_f = "Authorization";
|
|
199
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
200
|
+
case 5:
|
|
201
|
+
// oauth required
|
|
202
|
+
_e[_f] = _g.sent();
|
|
203
|
+
_g.label = 6;
|
|
204
|
+
case 6: return [4 /*yield*/, this.request({
|
|
205
|
+
path: "/api/v1/workspaces/{slug}/pages/".replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
206
|
+
method: 'POST',
|
|
207
|
+
headers: headerParameters,
|
|
208
|
+
query: queryParameters,
|
|
209
|
+
body: (0, index_1.PageCreateAPIRequestToJSON)(requestParameters['pageCreateAPIRequest']),
|
|
210
|
+
}, initOverrides)];
|
|
211
|
+
case 7:
|
|
212
|
+
response = _g.sent();
|
|
213
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageCreateAPIFromJSON)(jsonValue); })];
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Create a workspace page
|
|
220
|
+
* Create a workspace page
|
|
221
|
+
*/
|
|
222
|
+
PagesApi.prototype.createWorkspacePage = function (requestParameters, initOverrides) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
+
var response;
|
|
225
|
+
return __generator(this, function (_a) {
|
|
226
|
+
switch (_a.label) {
|
|
227
|
+
case 0: return [4 /*yield*/, this.createWorkspacePageRaw(requestParameters, initOverrides)];
|
|
228
|
+
case 1:
|
|
229
|
+
response = _a.sent();
|
|
230
|
+
return [4 /*yield*/, response.value()];
|
|
231
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Get a project page by ID
|
|
238
|
+
* Get a project page by ID
|
|
239
|
+
*/
|
|
240
|
+
PagesApi.prototype.getProjectPageDetailRaw = function (requestParameters, initOverrides) {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
243
|
+
return __generator(this, function (_g) {
|
|
244
|
+
switch (_g.label) {
|
|
245
|
+
case 0:
|
|
246
|
+
if (requestParameters['pk'] == null) {
|
|
247
|
+
throw new runtime.RequiredError('pk', 'Required parameter "pk" was null or undefined when calling getProjectPageDetail().');
|
|
248
|
+
}
|
|
249
|
+
if (requestParameters['projectId'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getProjectPageDetail().');
|
|
251
|
+
}
|
|
252
|
+
if (requestParameters['slug'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getProjectPageDetail().');
|
|
254
|
+
}
|
|
255
|
+
queryParameters = {};
|
|
256
|
+
headerParameters = {};
|
|
257
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
258
|
+
_a = headerParameters;
|
|
259
|
+
_b = "X-API-Key";
|
|
260
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
261
|
+
case 1:
|
|
262
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
263
|
+
_g.label = 2;
|
|
264
|
+
case 2:
|
|
265
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
266
|
+
// oauth required
|
|
267
|
+
_c = headerParameters;
|
|
268
|
+
_d = "Authorization";
|
|
269
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
270
|
+
case 3:
|
|
271
|
+
// oauth required
|
|
272
|
+
_c[_d] = _g.sent();
|
|
273
|
+
_g.label = 4;
|
|
274
|
+
case 4:
|
|
275
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
276
|
+
// oauth required
|
|
277
|
+
_e = headerParameters;
|
|
278
|
+
_f = "Authorization";
|
|
279
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
280
|
+
case 5:
|
|
281
|
+
// oauth required
|
|
282
|
+
_e[_f] = _g.sent();
|
|
283
|
+
_g.label = 6;
|
|
284
|
+
case 6: return [4 /*yield*/, this.request({
|
|
285
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/pages/{pk}/".replace("{".concat("pk", "}"), encodeURIComponent(String(requestParameters['pk']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
286
|
+
method: 'GET',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
}, initOverrides)];
|
|
290
|
+
case 7:
|
|
291
|
+
response = _g.sent();
|
|
292
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageDetailAPIFromJSON)(jsonValue); })];
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Get a project page by ID
|
|
299
|
+
* Get a project page by ID
|
|
300
|
+
*/
|
|
301
|
+
PagesApi.prototype.getProjectPageDetail = function (requestParameters, initOverrides) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
303
|
+
var response;
|
|
304
|
+
return __generator(this, function (_a) {
|
|
305
|
+
switch (_a.label) {
|
|
306
|
+
case 0: return [4 /*yield*/, this.getProjectPageDetailRaw(requestParameters, initOverrides)];
|
|
307
|
+
case 1:
|
|
308
|
+
response = _a.sent();
|
|
309
|
+
return [4 /*yield*/, response.value()];
|
|
310
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* Get a workspace page by ID
|
|
317
|
+
* Get a workspace page by ID
|
|
318
|
+
*/
|
|
319
|
+
PagesApi.prototype.getWorkspacePageDetailRaw = function (requestParameters, initOverrides) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
322
|
+
return __generator(this, function (_g) {
|
|
323
|
+
switch (_g.label) {
|
|
324
|
+
case 0:
|
|
325
|
+
if (requestParameters['pk'] == null) {
|
|
326
|
+
throw new runtime.RequiredError('pk', 'Required parameter "pk" was null or undefined when calling getWorkspacePageDetail().');
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['slug'] == null) {
|
|
329
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getWorkspacePageDetail().');
|
|
330
|
+
}
|
|
331
|
+
queryParameters = {};
|
|
332
|
+
headerParameters = {};
|
|
333
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
334
|
+
_a = headerParameters;
|
|
335
|
+
_b = "X-API-Key";
|
|
336
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
337
|
+
case 1:
|
|
338
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
339
|
+
_g.label = 2;
|
|
340
|
+
case 2:
|
|
341
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
342
|
+
// oauth required
|
|
343
|
+
_c = headerParameters;
|
|
344
|
+
_d = "Authorization";
|
|
345
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
346
|
+
case 3:
|
|
347
|
+
// oauth required
|
|
348
|
+
_c[_d] = _g.sent();
|
|
349
|
+
_g.label = 4;
|
|
350
|
+
case 4:
|
|
351
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
352
|
+
// oauth required
|
|
353
|
+
_e = headerParameters;
|
|
354
|
+
_f = "Authorization";
|
|
355
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
356
|
+
case 5:
|
|
357
|
+
// oauth required
|
|
358
|
+
_e[_f] = _g.sent();
|
|
359
|
+
_g.label = 6;
|
|
360
|
+
case 6: return [4 /*yield*/, this.request({
|
|
361
|
+
path: "/api/v1/workspaces/{slug}/pages/{pk}/".replace("{".concat("pk", "}"), encodeURIComponent(String(requestParameters['pk']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
362
|
+
method: 'GET',
|
|
363
|
+
headers: headerParameters,
|
|
364
|
+
query: queryParameters,
|
|
365
|
+
}, initOverrides)];
|
|
366
|
+
case 7:
|
|
367
|
+
response = _g.sent();
|
|
368
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PageDetailAPIFromJSON)(jsonValue); })];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Get a workspace page by ID
|
|
375
|
+
* Get a workspace page by ID
|
|
376
|
+
*/
|
|
377
|
+
PagesApi.prototype.getWorkspacePageDetail = function (requestParameters, initOverrides) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
+
var response;
|
|
380
|
+
return __generator(this, function (_a) {
|
|
381
|
+
switch (_a.label) {
|
|
382
|
+
case 0: return [4 /*yield*/, this.getWorkspacePageDetailRaw(requestParameters, initOverrides)];
|
|
383
|
+
case 1:
|
|
384
|
+
response = _a.sent();
|
|
385
|
+
return [4 /*yield*/, response.value()];
|
|
386
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
return PagesApi;
|
|
392
|
+
}(runtime.BaseAPI));
|
|
393
|
+
exports.PagesApi = PagesApi;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
package/dist/apis/StatesApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
package/dist/apis/StatesApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
|
@@ -33,6 +33,13 @@ export interface RetrieveWorkItemAttachmentRequest {
|
|
|
33
33
|
projectId: string;
|
|
34
34
|
slug: string;
|
|
35
35
|
}
|
|
36
|
+
export interface UploadWorkItemAttachmentRequest {
|
|
37
|
+
issueId: string;
|
|
38
|
+
pk: string;
|
|
39
|
+
projectId: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
body?: any | null;
|
|
42
|
+
}
|
|
36
43
|
/**
|
|
37
44
|
*
|
|
38
45
|
*/
|
|
@@ -77,4 +84,14 @@ export declare class WorkItemAttachmentsApi extends runtime.BaseAPI {
|
|
|
77
84
|
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
78
85
|
*/
|
|
79
86
|
retrieveWorkItemAttachment(requestParameters: RetrieveWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
89
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
90
|
+
*/
|
|
91
|
+
uploadWorkItemAttachmentRaw(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
92
|
+
/**
|
|
93
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
94
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
95
|
+
*/
|
|
96
|
+
uploadWorkItemAttachment(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
80
97
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
|
@@ -395,6 +395,88 @@ var WorkItemAttachmentsApi = /** @class */ (function (_super) {
|
|
|
395
395
|
});
|
|
396
396
|
});
|
|
397
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
400
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
401
|
+
*/
|
|
402
|
+
WorkItemAttachmentsApi.prototype.uploadWorkItemAttachmentRaw = function (requestParameters, initOverrides) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
405
|
+
return __generator(this, function (_g) {
|
|
406
|
+
switch (_g.label) {
|
|
407
|
+
case 0:
|
|
408
|
+
if (requestParameters['issueId'] == null) {
|
|
409
|
+
throw new runtime.RequiredError('issueId', 'Required parameter "issueId" was null or undefined when calling uploadWorkItemAttachment().');
|
|
410
|
+
}
|
|
411
|
+
if (requestParameters['pk'] == null) {
|
|
412
|
+
throw new runtime.RequiredError('pk', 'Required parameter "pk" was null or undefined when calling uploadWorkItemAttachment().');
|
|
413
|
+
}
|
|
414
|
+
if (requestParameters['projectId'] == null) {
|
|
415
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling uploadWorkItemAttachment().');
|
|
416
|
+
}
|
|
417
|
+
if (requestParameters['slug'] == null) {
|
|
418
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling uploadWorkItemAttachment().');
|
|
419
|
+
}
|
|
420
|
+
queryParameters = {};
|
|
421
|
+
headerParameters = {};
|
|
422
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
423
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
424
|
+
_a = headerParameters;
|
|
425
|
+
_b = "X-API-Key";
|
|
426
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
427
|
+
case 1:
|
|
428
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
429
|
+
_g.label = 2;
|
|
430
|
+
case 2:
|
|
431
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
432
|
+
// oauth required
|
|
433
|
+
_c = headerParameters;
|
|
434
|
+
_d = "Authorization";
|
|
435
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
436
|
+
case 3:
|
|
437
|
+
// oauth required
|
|
438
|
+
_c[_d] = _g.sent();
|
|
439
|
+
_g.label = 4;
|
|
440
|
+
case 4:
|
|
441
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
442
|
+
// oauth required
|
|
443
|
+
_e = headerParameters;
|
|
444
|
+
_f = "Authorization";
|
|
445
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
446
|
+
case 5:
|
|
447
|
+
// oauth required
|
|
448
|
+
_e[_f] = _g.sent();
|
|
449
|
+
_g.label = 6;
|
|
450
|
+
case 6: return [4 /*yield*/, this.request({
|
|
451
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-attachments/{pk}/".replace("{".concat("issue_id", "}"), encodeURIComponent(String(requestParameters['issueId']))).replace("{".concat("pk", "}"), encodeURIComponent(String(requestParameters['pk']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
452
|
+
method: 'PATCH',
|
|
453
|
+
headers: headerParameters,
|
|
454
|
+
query: queryParameters,
|
|
455
|
+
body: requestParameters['body'],
|
|
456
|
+
}, initOverrides)];
|
|
457
|
+
case 7:
|
|
458
|
+
response = _g.sent();
|
|
459
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Mark an attachment as uploaded after successful file transfer to storage.
|
|
466
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
467
|
+
*/
|
|
468
|
+
WorkItemAttachmentsApi.prototype.uploadWorkItemAttachment = function (requestParameters, initOverrides) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
470
|
+
return __generator(this, function (_a) {
|
|
471
|
+
switch (_a.label) {
|
|
472
|
+
case 0: return [4 /*yield*/, this.uploadWorkItemAttachmentRaw(requestParameters, initOverrides)];
|
|
473
|
+
case 1:
|
|
474
|
+
_a.sent();
|
|
475
|
+
return [2 /*return*/];
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
};
|
|
398
480
|
return WorkItemAttachmentsApi;
|
|
399
481
|
}(runtime.BaseAPI));
|
|
400
482
|
exports.WorkItemAttachmentsApi = WorkItemAttachmentsApi;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The Plane REST API
|
|
3
3
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
4
|
*
|
|
5
|
-
* The version of the API Spec: 0.0.
|
|
5
|
+
* The version of the API Spec: 0.0.2
|
|
6
6
|
* Contact: support@plane.so
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The Plane REST API
|
|
6
6
|
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
7
|
*
|
|
8
|
-
* The version of the API Spec: 0.0.
|
|
8
|
+
* The version of the API Spec: 0.0.2
|
|
9
9
|
* Contact: support@plane.so
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated.
|