@makeplane/plane-node-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish-node-sdk.yml +24 -0
- package/.openapi-generator/FILES +119 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +95 -0
- package/dist/apis/AssetsApi.d.ts +100 -0
- package/dist/apis/AssetsApi.js +522 -0
- package/dist/apis/CyclesApi.d.ts +225 -0
- package/dist/apis/CyclesApi.js +1142 -0
- package/dist/apis/IntakeApi.d.ts +96 -0
- package/dist/apis/IntakeApi.js +485 -0
- package/dist/apis/LabelsApi.d.ts +97 -0
- package/dist/apis/LabelsApi.js +488 -0
- package/dist/apis/MembersApi.d.ts +44 -0
- package/dist/apis/MembersApi.js +228 -0
- package/dist/apis/ModulesApi.d.ts +198 -0
- package/dist/apis/ModulesApi.js +991 -0
- package/dist/apis/ProjectsApi.d.ts +120 -0
- package/dist/apis/ProjectsApi.js +621 -0
- package/dist/apis/StatesApi.d.ts +96 -0
- package/dist/apis/StatesApi.js +485 -0
- package/dist/apis/UsersApi.d.ts +27 -0
- package/dist/apis/UsersApi.js +149 -0
- package/dist/apis/WorkItemActivityApi.d.ts +58 -0
- package/dist/apis/WorkItemActivityApi.js +270 -0
- package/dist/apis/WorkItemAttachmentsApi.d.ts +80 -0
- package/dist/apis/WorkItemAttachmentsApi.js +400 -0
- package/dist/apis/WorkItemCommentsApi.d.ts +102 -0
- package/dist/apis/WorkItemCommentsApi.js +500 -0
- package/dist/apis/WorkItemLinksApi.d.ts +106 -0
- package/dist/apis/WorkItemLinksApi.js +515 -0
- package/dist/apis/WorkItemPropertiesApi.d.ts +210 -0
- package/dist/apis/WorkItemPropertiesApi.js +1066 -0
- package/dist/apis/WorkItemTypesApi.d.ts +92 -0
- package/dist/apis/WorkItemTypesApi.js +473 -0
- package/dist/apis/WorkItemWorklogsApi.d.ts +95 -0
- package/dist/apis/WorkItemWorklogsApi.js +479 -0
- package/dist/apis/WorkItemsApi.d.ts +134 -0
- package/dist/apis/WorkItemsApi.js +674 -0
- package/dist/apis/index.d.ts +17 -0
- package/dist/apis/index.js +34 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/models/AccessEnum.d.ts +25 -0
- package/dist/models/AccessEnum.js +51 -0
- package/dist/models/Cycle.d.ts +215 -0
- package/dist/models/Cycle.js +93 -0
- package/dist/models/CycleCreateRequest.d.ts +77 -0
- package/dist/models/CycleCreateRequest.js +67 -0
- package/dist/models/CycleIssue.d.ts +94 -0
- package/dist/models/CycleIssue.js +65 -0
- package/dist/models/CycleIssueRequestRequest.d.ts +34 -0
- package/dist/models/CycleIssueRequestRequest.js +50 -0
- package/dist/models/CycleLite.d.ts +161 -0
- package/dist/models/CycleLite.js +96 -0
- package/dist/models/EntityTypeEnum.d.ts +25 -0
- package/dist/models/EntityTypeEnum.js +51 -0
- package/dist/models/GenericAssetUploadRequest.d.ts +65 -0
- package/dist/models/GenericAssetUploadRequest.js +62 -0
- package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +73 -0
- package/dist/models/GetWorkspaceMembers200ResponseInner.js +55 -0
- package/dist/models/GroupEnum.d.ts +33 -0
- package/dist/models/GroupEnum.js +59 -0
- package/dist/models/IntakeIssue.d.ts +150 -0
- package/dist/models/IntakeIssue.js +80 -0
- package/dist/models/IntakeIssueCreateRequest.d.ts +72 -0
- package/dist/models/IntakeIssueCreateRequest.js +66 -0
- package/dist/models/IntakeWorkItemStatusEnum.d.ts +31 -0
- package/dist/models/IntakeWorkItemStatusEnum.js +57 -0
- package/dist/models/Issue.d.ts +197 -0
- package/dist/models/Issue.js +98 -0
- package/dist/models/IssueActivity.d.ts +136 -0
- package/dist/models/IssueActivity.js +83 -0
- package/dist/models/IssueAttachment.d.ts +172 -0
- package/dist/models/IssueAttachment.js +89 -0
- package/dist/models/IssueAttachmentUploadRequest.d.ts +58 -0
- package/dist/models/IssueAttachmentUploadRequest.js +60 -0
- package/dist/models/IssueComment.d.ts +137 -0
- package/dist/models/IssueComment.js +74 -0
- package/dist/models/IssueCommentCreateRequest.d.ts +59 -0
- package/dist/models/IssueCommentCreateRequest.js +57 -0
- package/dist/models/IssueExpand.d.ts +226 -0
- package/dist/models/IssueExpand.js +105 -0
- package/dist/models/IssueForIntakeRequest.d.ts +53 -0
- package/dist/models/IssueForIntakeRequest.js +57 -0
- package/dist/models/IssueLink.d.ts +100 -0
- package/dist/models/IssueLink.js +64 -0
- package/dist/models/IssueLinkCreateRequest.d.ts +34 -0
- package/dist/models/IssueLinkCreateRequest.js +50 -0
- package/dist/models/IssuePropertyAPI.d.ts +171 -0
- package/dist/models/IssuePropertyAPI.js +88 -0
- package/dist/models/IssuePropertyAPIRequest.d.ts +99 -0
- package/dist/models/IssuePropertyAPIRequest.js +76 -0
- package/dist/models/IssuePropertyOptionAPI.d.ts +133 -0
- package/dist/models/IssuePropertyOptionAPI.js +73 -0
- package/dist/models/IssuePropertyOptionAPIRequest.d.ts +67 -0
- package/dist/models/IssuePropertyOptionAPIRequest.js +62 -0
- package/dist/models/IssuePropertyValueAPI.d.ts +133 -0
- package/dist/models/IssuePropertyValueAPI.js +78 -0
- package/dist/models/IssuePropertyValueAPIRequest.d.ts +85 -0
- package/dist/models/IssuePropertyValueAPIRequest.js +70 -0
- package/dist/models/IssueRequest.d.ts +167 -0
- package/dist/models/IssueRequest.js +95 -0
- package/dist/models/IssueSearch.d.ts +64 -0
- package/dist/models/IssueSearch.js +70 -0
- package/dist/models/IssueTypeAPI.d.ts +127 -0
- package/dist/models/IssueTypeAPI.js +72 -0
- package/dist/models/IssueTypeAPIRequest.d.ts +67 -0
- package/dist/models/IssueTypeAPIRequest.js +62 -0
- package/dist/models/IssueWorkLogAPI.d.ts +85 -0
- package/dist/models/IssueWorkLogAPI.js +60 -0
- package/dist/models/IssueWorkLogAPIRequest.d.ts +49 -0
- package/dist/models/IssueWorkLogAPIRequest.js +54 -0
- package/dist/models/Label.d.ts +118 -0
- package/dist/models/Label.js +70 -0
- package/dist/models/LabelCreateUpdateRequest.d.ts +70 -0
- package/dist/models/LabelCreateUpdateRequest.js +62 -0
- package/dist/models/LabelLite.d.ts +46 -0
- package/dist/models/LabelLite.js +53 -0
- package/dist/models/Module.d.ts +197 -0
- package/dist/models/Module.js +91 -0
- package/dist/models/ModuleCreateRequest.d.ts +83 -0
- package/dist/models/ModuleCreateRequest.js +67 -0
- package/dist/models/ModuleIssue.d.ts +94 -0
- package/dist/models/ModuleIssue.js +63 -0
- package/dist/models/ModuleIssueRequestRequest.d.ts +34 -0
- package/dist/models/ModuleIssueRequestRequest.js +50 -0
- package/dist/models/ModuleLite.d.ts +167 -0
- package/dist/models/ModuleLite.js +97 -0
- package/dist/models/ModuleStatusEnum.d.ts +33 -0
- package/dist/models/ModuleStatusEnum.js +59 -0
- package/dist/models/NetworkEnum.d.ts +25 -0
- package/dist/models/NetworkEnum.js +51 -0
- package/dist/models/PaginatedArchivedCycleResponse.d.ts +98 -0
- package/dist/models/PaginatedArchivedCycleResponse.js +95 -0
- package/dist/models/PaginatedArchivedModuleResponse.d.ts +98 -0
- package/dist/models/PaginatedArchivedModuleResponse.js +95 -0
- package/dist/models/PaginatedCycleIssueResponse.d.ts +98 -0
- package/dist/models/PaginatedCycleIssueResponse.js +95 -0
- package/dist/models/PaginatedCycleResponse.d.ts +98 -0
- package/dist/models/PaginatedCycleResponse.js +95 -0
- package/dist/models/PaginatedIntakeIssueResponse.d.ts +98 -0
- package/dist/models/PaginatedIntakeIssueResponse.js +95 -0
- package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +98 -0
- package/dist/models/PaginatedIssueActivityDetailResponse.js +95 -0
- package/dist/models/PaginatedIssueActivityResponse.d.ts +98 -0
- package/dist/models/PaginatedIssueActivityResponse.js +95 -0
- package/dist/models/PaginatedIssueCommentResponse.d.ts +98 -0
- package/dist/models/PaginatedIssueCommentResponse.js +95 -0
- package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +98 -0
- package/dist/models/PaginatedIssueLinkDetailResponse.js +95 -0
- package/dist/models/PaginatedIssueLinkResponse.d.ts +98 -0
- package/dist/models/PaginatedIssueLinkResponse.js +95 -0
- package/dist/models/PaginatedLabelResponse.d.ts +98 -0
- package/dist/models/PaginatedLabelResponse.js +95 -0
- package/dist/models/PaginatedModuleIssueResponse.d.ts +98 -0
- package/dist/models/PaginatedModuleIssueResponse.js +95 -0
- package/dist/models/PaginatedModuleResponse.d.ts +98 -0
- package/dist/models/PaginatedModuleResponse.js +95 -0
- package/dist/models/PaginatedProjectResponse.d.ts +98 -0
- package/dist/models/PaginatedProjectResponse.js +95 -0
- package/dist/models/PaginatedStateResponse.d.ts +98 -0
- package/dist/models/PaginatedStateResponse.js +95 -0
- package/dist/models/PaginatedWorkItemResponse.d.ts +98 -0
- package/dist/models/PaginatedWorkItemResponse.js +95 -0
- package/dist/models/PatchedAssetUpdateRequest.d.ts +34 -0
- package/dist/models/PatchedAssetUpdateRequest.js +48 -0
- package/dist/models/PatchedCycleUpdateRequest.d.ts +77 -0
- package/dist/models/PatchedCycleUpdateRequest.js +63 -0
- package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +34 -0
- package/dist/models/PatchedGenericAssetUpdateRequest.js +48 -0
- package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +66 -0
- package/dist/models/PatchedIntakeIssueUpdateRequest.js +60 -0
- package/dist/models/PatchedIssueCommentCreateRequest.d.ts +59 -0
- package/dist/models/PatchedIssueCommentCreateRequest.js +57 -0
- package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +34 -0
- package/dist/models/PatchedIssueLinkUpdateRequest.js +48 -0
- package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +99 -0
- package/dist/models/PatchedIssuePropertyAPIRequest.js +72 -0
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +67 -0
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +60 -0
- package/dist/models/PatchedIssueRequest.d.ts +167 -0
- package/dist/models/PatchedIssueRequest.js +93 -0
- package/dist/models/PatchedIssueTypeAPIRequest.d.ts +67 -0
- package/dist/models/PatchedIssueTypeAPIRequest.js +60 -0
- package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +49 -0
- package/dist/models/PatchedIssueWorkLogAPIRequest.js +54 -0
- package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +70 -0
- package/dist/models/PatchedLabelCreateUpdateRequest.js +60 -0
- package/dist/models/PatchedModuleUpdateRequest.d.ts +83 -0
- package/dist/models/PatchedModuleUpdateRequest.js +65 -0
- package/dist/models/PatchedProjectUpdateRequest.d.ts +143 -0
- package/dist/models/PatchedProjectUpdateRequest.js +85 -0
- package/dist/models/PatchedStateRequest.d.ts +83 -0
- package/dist/models/PatchedStateRequest.js +65 -0
- package/dist/models/PriorityEnum.d.ts +31 -0
- package/dist/models/PriorityEnum.js +57 -0
- package/dist/models/Project.d.ts +294 -0
- package/dist/models/Project.js +124 -0
- package/dist/models/ProjectCreateRequest.d.ts +131 -0
- package/dist/models/ProjectCreateRequest.js +85 -0
- package/dist/models/ProjectWorklogSummary.d.ts +37 -0
- package/dist/models/ProjectWorklogSummary.js +54 -0
- package/dist/models/PropertyTypeEnum.d.ts +39 -0
- package/dist/models/PropertyTypeEnum.js +65 -0
- package/dist/models/RelationTypeEnum.d.ts +25 -0
- package/dist/models/RelationTypeEnum.js +51 -0
- package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +37 -0
- package/dist/models/RetrieveWorkItemAttachment400Response.js +50 -0
- package/dist/models/State.d.ts +137 -0
- package/dist/models/State.js +78 -0
- package/dist/models/StateLite.d.ts +53 -0
- package/dist/models/StateLite.js +50 -0
- package/dist/models/StateRequest.d.ts +83 -0
- package/dist/models/StateRequest.js +69 -0
- package/dist/models/TimezoneEnum.d.ts +887 -0
- package/dist/models/TimezoneEnum.js +913 -0
- package/dist/models/TransferCycleIssueRequestRequest.d.ts +34 -0
- package/dist/models/TransferCycleIssueRequestRequest.js +50 -0
- package/dist/models/TransferCycleWorkItems200Response.d.ts +31 -0
- package/dist/models/TransferCycleWorkItems200Response.js +48 -0
- package/dist/models/TransferCycleWorkItems400Response.d.ts +31 -0
- package/dist/models/TransferCycleWorkItems400Response.js +48 -0
- package/dist/models/TypeEnum.d.ts +31 -0
- package/dist/models/TypeEnum.js +57 -0
- package/dist/models/UserAssetUploadRequest.d.ts +64 -0
- package/dist/models/UserAssetUploadRequest.js +62 -0
- package/dist/models/UserLite.d.ts +70 -0
- package/dist/models/UserLite.js +52 -0
- package/dist/models/index.d.ts +93 -0
- package/dist/models/index.js +110 -0
- package/dist/runtime.d.ts +183 -0
- package/dist/runtime.js +563 -0
- package/eslint.config.mjs +11 -0
- package/package.json +23 -0
- package/src/apis/AssetsApi.ts +388 -0
- package/src/apis/CyclesApi.ts +1031 -0
- package/src/apis/IntakeApi.ts +401 -0
- package/src/apis/LabelsApi.ts +406 -0
- package/src/apis/MembersApi.ts +146 -0
- package/src/apis/ModulesApi.ts +890 -0
- package/src/apis/ProjectsApi.ts +486 -0
- package/src/apis/StatesApi.ts +401 -0
- package/src/apis/UsersApi.ts +71 -0
- package/src/apis/WorkItemActivityApi.ts +228 -0
- package/src/apis/WorkItemAttachmentsApi.ts +335 -0
- package/src/apis/WorkItemCommentsApi.ts +439 -0
- package/src/apis/WorkItemLinksApi.ts +469 -0
- package/src/apis/WorkItemPropertiesApi.ts +981 -0
- package/src/apis/WorkItemTypesApi.ts +378 -0
- package/src/apis/WorkItemWorklogsApi.ts +398 -0
- package/src/apis/WorkItemsApi.ts +591 -0
- package/src/apis/index.ts +19 -0
- package/src/index.ts +5 -0
- package/src/models/AccessEnum.ts +53 -0
- package/src/models/Cycle.ts +300 -0
- package/src/models/CycleCreateRequest.ts +135 -0
- package/src/models/CycleIssue.ts +142 -0
- package/src/models/CycleIssueRequestRequest.ts +68 -0
- package/src/models/CycleLite.ts +246 -0
- package/src/models/EntityTypeEnum.ts +53 -0
- package/src/models/GenericAssetUploadRequest.ts +110 -0
- package/src/models/GetWorkspaceMembers200ResponseInner.ts +113 -0
- package/src/models/GroupEnum.ts +61 -0
- package/src/models/IntakeIssue.ts +227 -0
- package/src/models/IntakeIssueCreateRequest.ts +134 -0
- package/src/models/IntakeWorkItemStatusEnum.ts +59 -0
- package/src/models/Issue.ts +287 -0
- package/src/models/IssueActivity.ts +202 -0
- package/src/models/IssueAttachment.ts +245 -0
- package/src/models/IssueAttachmentUploadRequest.ts +101 -0
- package/src/models/IssueComment.ts +204 -0
- package/src/models/IssueCommentCreateRequest.ts +109 -0
- package/src/models/IssueExpand.ts +348 -0
- package/src/models/IssueForIntakeRequest.ts +102 -0
- package/src/models/IssueLink.ts +148 -0
- package/src/models/IssueLinkCreateRequest.ts +68 -0
- package/src/models/IssuePropertyAPI.ts +255 -0
- package/src/models/IssuePropertyAPIRequest.ts +171 -0
- package/src/models/IssuePropertyOptionAPI.ts +190 -0
- package/src/models/IssuePropertyOptionAPIRequest.ts +113 -0
- package/src/models/IssuePropertyValueAPI.ts +194 -0
- package/src/models/IssuePropertyValueAPIRequest.ts +138 -0
- package/src/models/IssueRequest.ts +254 -0
- package/src/models/IssueSearch.ts +113 -0
- package/src/models/IssueTypeAPI.ts +183 -0
- package/src/models/IssueTypeAPIRequest.ts +113 -0
- package/src/models/IssueWorkLogAPI.ts +130 -0
- package/src/models/IssueWorkLogAPIRequest.ts +88 -0
- package/src/models/Label.ts +172 -0
- package/src/models/LabelCreateUpdateRequest.ts +116 -0
- package/src/models/LabelLite.ts +83 -0
- package/src/models/Module.ts +280 -0
- package/src/models/ModuleCreateRequest.ts +142 -0
- package/src/models/ModuleIssue.ts +140 -0
- package/src/models/ModuleIssueRequestRequest.ts +68 -0
- package/src/models/ModuleLite.ts +253 -0
- package/src/models/ModuleStatusEnum.ts +61 -0
- package/src/models/NetworkEnum.ts +53 -0
- package/src/models/PaginatedArchivedCycleResponse.ts +172 -0
- package/src/models/PaginatedArchivedModuleResponse.ts +172 -0
- package/src/models/PaginatedCycleIssueResponse.ts +172 -0
- package/src/models/PaginatedCycleResponse.ts +172 -0
- package/src/models/PaginatedIntakeIssueResponse.ts +172 -0
- package/src/models/PaginatedIssueActivityDetailResponse.ts +172 -0
- package/src/models/PaginatedIssueActivityResponse.ts +172 -0
- package/src/models/PaginatedIssueCommentResponse.ts +172 -0
- package/src/models/PaginatedIssueLinkDetailResponse.ts +172 -0
- package/src/models/PaginatedIssueLinkResponse.ts +172 -0
- package/src/models/PaginatedLabelResponse.ts +172 -0
- package/src/models/PaginatedModuleIssueResponse.ts +172 -0
- package/src/models/PaginatedModuleResponse.ts +172 -0
- package/src/models/PaginatedProjectResponse.ts +172 -0
- package/src/models/PaginatedStateResponse.ts +172 -0
- package/src/models/PaginatedWorkItemResponse.ts +172 -0
- package/src/models/PatchedAssetUpdateRequest.ts +67 -0
- package/src/models/PatchedCycleUpdateRequest.ts +133 -0
- package/src/models/PatchedGenericAssetUpdateRequest.ts +67 -0
- package/src/models/PatchedIntakeIssueUpdateRequest.ts +124 -0
- package/src/models/PatchedIssueCommentCreateRequest.ts +109 -0
- package/src/models/PatchedIssueLinkUpdateRequest.ts +67 -0
- package/src/models/PatchedIssuePropertyAPIRequest.ts +169 -0
- package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +112 -0
- package/src/models/PatchedIssueRequest.ts +253 -0
- package/src/models/PatchedIssueTypeAPIRequest.ts +112 -0
- package/src/models/PatchedIssueWorkLogAPIRequest.ts +88 -0
- package/src/models/PatchedLabelCreateUpdateRequest.ts +115 -0
- package/src/models/PatchedModuleUpdateRequest.ts +141 -0
- package/src/models/PatchedProjectUpdateRequest.ts +221 -0
- package/src/models/PatchedStateRequest.ts +141 -0
- package/src/models/PriorityEnum.ts +59 -0
- package/src/models/Project.ts +414 -0
- package/src/models/ProjectCreateRequest.ts +207 -0
- package/src/models/ProjectWorklogSummary.ts +74 -0
- package/src/models/PropertyTypeEnum.ts +67 -0
- package/src/models/RelationTypeEnum.ts +53 -0
- package/src/models/RetrieveWorkItemAttachment400Response.ts +72 -0
- package/src/models/State.ts +206 -0
- package/src/models/StateLite.ts +97 -0
- package/src/models/StateRequest.ts +143 -0
- package/src/models/TimezoneEnum.ts +915 -0
- package/src/models/TransferCycleIssueRequestRequest.ts +68 -0
- package/src/models/TransferCycleWorkItems200Response.ts +64 -0
- package/src/models/TransferCycleWorkItems400Response.ts +64 -0
- package/src/models/TypeEnum.ts +59 -0
- package/src/models/UserAssetUploadRequest.ts +121 -0
- package/src/models/UserLite.ts +108 -0
- package/src/models/index.ts +95 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,149 @@
|
|
|
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.1
|
|
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.UsersApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var UsersApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(UsersApi, _super);
|
|
74
|
+
function UsersApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve the authenticated user\'s profile information including basic details.
|
|
79
|
+
* Get current user
|
|
80
|
+
*/
|
|
81
|
+
UsersApi.prototype.getCurrentUserRaw = function (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
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
90
|
+
_a = headerParameters;
|
|
91
|
+
_b = "X-API-Key";
|
|
92
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
93
|
+
case 1:
|
|
94
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
95
|
+
_g.label = 2;
|
|
96
|
+
case 2:
|
|
97
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
98
|
+
// oauth required
|
|
99
|
+
_c = headerParameters;
|
|
100
|
+
_d = "Authorization";
|
|
101
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
102
|
+
case 3:
|
|
103
|
+
// oauth required
|
|
104
|
+
_c[_d] = _g.sent();
|
|
105
|
+
_g.label = 4;
|
|
106
|
+
case 4:
|
|
107
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
108
|
+
// oauth required
|
|
109
|
+
_e = headerParameters;
|
|
110
|
+
_f = "Authorization";
|
|
111
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
112
|
+
case 5:
|
|
113
|
+
// oauth required
|
|
114
|
+
_e[_f] = _g.sent();
|
|
115
|
+
_g.label = 6;
|
|
116
|
+
case 6: return [4 /*yield*/, this.request({
|
|
117
|
+
path: "/api/v1/users/me/",
|
|
118
|
+
method: 'GET',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
}, initOverrides)];
|
|
122
|
+
case 7:
|
|
123
|
+
response = _g.sent();
|
|
124
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserLiteFromJSON)(jsonValue); })];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Retrieve the authenticated user\'s profile information including basic details.
|
|
131
|
+
* Get current user
|
|
132
|
+
*/
|
|
133
|
+
UsersApi.prototype.getCurrentUser = function (initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
135
|
+
var response;
|
|
136
|
+
return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0: return [4 /*yield*/, this.getCurrentUserRaw(initOverrides)];
|
|
139
|
+
case 1:
|
|
140
|
+
response = _a.sent();
|
|
141
|
+
return [4 /*yield*/, response.value()];
|
|
142
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
return UsersApi;
|
|
148
|
+
}(runtime.BaseAPI));
|
|
149
|
+
exports.UsersApi = UsersApi;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Plane REST API
|
|
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
|
+
*
|
|
5
|
+
* The version of the API Spec: 0.0.1
|
|
6
|
+
* Contact: support@plane.so
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { PaginatedIssueActivityDetailResponse, PaginatedIssueActivityResponse } from '../models/index';
|
|
13
|
+
export interface ListWorkItemActivitiesRequest {
|
|
14
|
+
issueId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
cursor?: string;
|
|
18
|
+
expand?: string;
|
|
19
|
+
fields?: string;
|
|
20
|
+
orderBy?: string;
|
|
21
|
+
perPage?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface RetrieveWorkItemActivityRequest {
|
|
24
|
+
issueId: string;
|
|
25
|
+
pk: string;
|
|
26
|
+
projectId: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
cursor?: string;
|
|
29
|
+
expand?: string;
|
|
30
|
+
fields?: string;
|
|
31
|
+
orderBy?: string;
|
|
32
|
+
perPage?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare class WorkItemActivityApi extends runtime.BaseAPI {
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve all activities for a work item. Supports filtering by activity type and date range.
|
|
40
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
41
|
+
*/
|
|
42
|
+
listWorkItemActivitiesRaw(requestParameters: ListWorkItemActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIssueActivityResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve all activities for a work item. Supports filtering by activity type and date range.
|
|
45
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
46
|
+
*/
|
|
47
|
+
listWorkItemActivities(requestParameters: ListWorkItemActivitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIssueActivityResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Retrieve details of a specific activity.
|
|
50
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
51
|
+
*/
|
|
52
|
+
retrieveWorkItemActivityRaw(requestParameters: RetrieveWorkItemActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIssueActivityDetailResponse>>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve details of a specific activity.
|
|
55
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
56
|
+
*/
|
|
57
|
+
retrieveWorkItemActivity(requestParameters: RetrieveWorkItemActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIssueActivityDetailResponse>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
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.1
|
|
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.WorkItemActivityApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var WorkItemActivityApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(WorkItemActivityApi, _super);
|
|
74
|
+
function WorkItemActivityApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve all activities for a work item. Supports filtering by activity type and date range.
|
|
79
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
80
|
+
*/
|
|
81
|
+
WorkItemActivityApi.prototype.listWorkItemActivitiesRaw = 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['issueId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('issueId', 'Required parameter "issueId" was null or undefined when calling listWorkItemActivities().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['projectId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWorkItemActivities().');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters['slug'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling listWorkItemActivities().');
|
|
95
|
+
}
|
|
96
|
+
queryParameters = {};
|
|
97
|
+
if (requestParameters['cursor'] != null) {
|
|
98
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['expand'] != null) {
|
|
101
|
+
queryParameters['expand'] = requestParameters['expand'];
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters['fields'] != null) {
|
|
104
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters['orderBy'] != null) {
|
|
107
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters['perPage'] != null) {
|
|
110
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
111
|
+
}
|
|
112
|
+
headerParameters = {};
|
|
113
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
114
|
+
_a = headerParameters;
|
|
115
|
+
_b = "X-API-Key";
|
|
116
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
117
|
+
case 1:
|
|
118
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
119
|
+
_g.label = 2;
|
|
120
|
+
case 2:
|
|
121
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
122
|
+
// oauth required
|
|
123
|
+
_c = headerParameters;
|
|
124
|
+
_d = "Authorization";
|
|
125
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
126
|
+
case 3:
|
|
127
|
+
// oauth required
|
|
128
|
+
_c[_d] = _g.sent();
|
|
129
|
+
_g.label = 4;
|
|
130
|
+
case 4:
|
|
131
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
132
|
+
// oauth required
|
|
133
|
+
_e = headerParameters;
|
|
134
|
+
_f = "Authorization";
|
|
135
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
136
|
+
case 5:
|
|
137
|
+
// oauth required
|
|
138
|
+
_e[_f] = _g.sent();
|
|
139
|
+
_g.label = 6;
|
|
140
|
+
case 6: return [4 /*yield*/, this.request({
|
|
141
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/activities/".replace("{".concat("issue_id", "}"), encodeURIComponent(String(requestParameters['issueId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
142
|
+
method: 'GET',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 7:
|
|
147
|
+
response = _g.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIssueActivityResponseFromJSON)(jsonValue); })];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Retrieve all activities for a work item. Supports filtering by activity type and date range.
|
|
155
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
156
|
+
*/
|
|
157
|
+
WorkItemActivityApi.prototype.listWorkItemActivities = function (requestParameters, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
159
|
+
var response;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0: return [4 /*yield*/, this.listWorkItemActivitiesRaw(requestParameters, initOverrides)];
|
|
163
|
+
case 1:
|
|
164
|
+
response = _a.sent();
|
|
165
|
+
return [4 /*yield*/, response.value()];
|
|
166
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Retrieve details of a specific activity.
|
|
173
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
174
|
+
*/
|
|
175
|
+
WorkItemActivityApi.prototype.retrieveWorkItemActivityRaw = function (requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
178
|
+
return __generator(this, function (_g) {
|
|
179
|
+
switch (_g.label) {
|
|
180
|
+
case 0:
|
|
181
|
+
if (requestParameters['issueId'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('issueId', 'Required parameter "issueId" was null or undefined when calling retrieveWorkItemActivity().');
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['pk'] == null) {
|
|
185
|
+
throw new runtime.RequiredError('pk', 'Required parameter "pk" was null or undefined when calling retrieveWorkItemActivity().');
|
|
186
|
+
}
|
|
187
|
+
if (requestParameters['projectId'] == null) {
|
|
188
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling retrieveWorkItemActivity().');
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters['slug'] == null) {
|
|
191
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling retrieveWorkItemActivity().');
|
|
192
|
+
}
|
|
193
|
+
queryParameters = {};
|
|
194
|
+
if (requestParameters['cursor'] != null) {
|
|
195
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters['expand'] != null) {
|
|
198
|
+
queryParameters['expand'] = requestParameters['expand'];
|
|
199
|
+
}
|
|
200
|
+
if (requestParameters['fields'] != null) {
|
|
201
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
202
|
+
}
|
|
203
|
+
if (requestParameters['orderBy'] != null) {
|
|
204
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
205
|
+
}
|
|
206
|
+
if (requestParameters['perPage'] != null) {
|
|
207
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
208
|
+
}
|
|
209
|
+
headerParameters = {};
|
|
210
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
211
|
+
_a = headerParameters;
|
|
212
|
+
_b = "X-API-Key";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
214
|
+
case 1:
|
|
215
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
216
|
+
_g.label = 2;
|
|
217
|
+
case 2:
|
|
218
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
219
|
+
// oauth required
|
|
220
|
+
_c = headerParameters;
|
|
221
|
+
_d = "Authorization";
|
|
222
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
223
|
+
case 3:
|
|
224
|
+
// oauth required
|
|
225
|
+
_c[_d] = _g.sent();
|
|
226
|
+
_g.label = 4;
|
|
227
|
+
case 4:
|
|
228
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
229
|
+
// oauth required
|
|
230
|
+
_e = headerParameters;
|
|
231
|
+
_f = "Authorization";
|
|
232
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
233
|
+
case 5:
|
|
234
|
+
// oauth required
|
|
235
|
+
_e[_f] = _g.sent();
|
|
236
|
+
_g.label = 6;
|
|
237
|
+
case 6: return [4 /*yield*/, this.request({
|
|
238
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/activities/{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']))),
|
|
239
|
+
method: 'GET',
|
|
240
|
+
headers: headerParameters,
|
|
241
|
+
query: queryParameters,
|
|
242
|
+
}, initOverrides)];
|
|
243
|
+
case 7:
|
|
244
|
+
response = _g.sent();
|
|
245
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIssueActivityDetailResponseFromJSON)(jsonValue); })];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Retrieve details of a specific activity.
|
|
252
|
+
* Endpoints for issue activity/search and fetch issue activity details
|
|
253
|
+
*/
|
|
254
|
+
WorkItemActivityApi.prototype.retrieveWorkItemActivity = function (requestParameters, initOverrides) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
256
|
+
var response;
|
|
257
|
+
return __generator(this, function (_a) {
|
|
258
|
+
switch (_a.label) {
|
|
259
|
+
case 0: return [4 /*yield*/, this.retrieveWorkItemActivityRaw(requestParameters, initOverrides)];
|
|
260
|
+
case 1:
|
|
261
|
+
response = _a.sent();
|
|
262
|
+
return [4 /*yield*/, response.value()];
|
|
263
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
};
|
|
268
|
+
return WorkItemActivityApi;
|
|
269
|
+
}(runtime.BaseAPI));
|
|
270
|
+
exports.WorkItemActivityApi = WorkItemActivityApi;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Plane REST API
|
|
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
|
+
*
|
|
5
|
+
* The version of the API Spec: 0.0.1
|
|
6
|
+
* Contact: support@plane.so
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from '../runtime';
|
|
12
|
+
import type { IssueAttachment, IssueAttachmentUploadRequest } from '../models/index';
|
|
13
|
+
export interface CreateWorkItemAttachmentRequest {
|
|
14
|
+
issueId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
issueAttachmentUploadRequest: IssueAttachmentUploadRequest;
|
|
18
|
+
}
|
|
19
|
+
export interface DeleteWorkItemAttachmentRequest {
|
|
20
|
+
issueId: string;
|
|
21
|
+
pk: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ListWorkItemAttachmentsRequest {
|
|
26
|
+
issueId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
slug: string;
|
|
29
|
+
}
|
|
30
|
+
export interface RetrieveWorkItemAttachmentRequest {
|
|
31
|
+
issueId: string;
|
|
32
|
+
pk: string;
|
|
33
|
+
projectId: string;
|
|
34
|
+
slug: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare class WorkItemAttachmentsApi extends runtime.BaseAPI {
|
|
40
|
+
/**
|
|
41
|
+
* Generate presigned URL for uploading file attachments to a work item.
|
|
42
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
43
|
+
*/
|
|
44
|
+
createWorkItemAttachmentRaw(requestParameters: CreateWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
45
|
+
/**
|
|
46
|
+
* Generate presigned URL for uploading file attachments to a work item.
|
|
47
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
48
|
+
*/
|
|
49
|
+
createWorkItemAttachment(requestParameters: CreateWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Permanently remove an attachment from a work item. Records deletion activity for audit purposes.
|
|
52
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
53
|
+
*/
|
|
54
|
+
deleteWorkItemAttachmentRaw(requestParameters: DeleteWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Permanently remove an attachment from a work item. Records deletion activity for audit purposes.
|
|
57
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
58
|
+
*/
|
|
59
|
+
deleteWorkItemAttachment(requestParameters: DeleteWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Retrieve all attachments for a work item.
|
|
62
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
63
|
+
*/
|
|
64
|
+
listWorkItemAttachmentsRaw(requestParameters: ListWorkItemAttachmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueAttachment>>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieve all attachments for a work item.
|
|
67
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
68
|
+
*/
|
|
69
|
+
listWorkItemAttachments(requestParameters: ListWorkItemAttachmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueAttachment>;
|
|
70
|
+
/**
|
|
71
|
+
* Download attachment file. Returns a redirect to the presigned download URL.
|
|
72
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
73
|
+
*/
|
|
74
|
+
retrieveWorkItemAttachmentRaw(requestParameters: RetrieveWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
75
|
+
/**
|
|
76
|
+
* Download attachment file. Returns a redirect to the presigned download URL.
|
|
77
|
+
* Endpoints for issue attachment create/update/delete and fetch issue attachment details
|
|
78
|
+
*/
|
|
79
|
+
retrieveWorkItemAttachment(requestParameters: RetrieveWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
80
|
+
}
|