@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,406 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Plane REST API
|
|
5
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
6
|
+
*
|
|
7
|
+
* The version of the API Spec: 0.0.1
|
|
8
|
+
* Contact: support@plane.so
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import type {
|
|
17
|
+
Label,
|
|
18
|
+
LabelCreateUpdateRequest,
|
|
19
|
+
PaginatedLabelResponse,
|
|
20
|
+
PatchedLabelCreateUpdateRequest,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
LabelFromJSON,
|
|
24
|
+
LabelToJSON,
|
|
25
|
+
LabelCreateUpdateRequestFromJSON,
|
|
26
|
+
LabelCreateUpdateRequestToJSON,
|
|
27
|
+
PaginatedLabelResponseFromJSON,
|
|
28
|
+
PaginatedLabelResponseToJSON,
|
|
29
|
+
PatchedLabelCreateUpdateRequestFromJSON,
|
|
30
|
+
PatchedLabelCreateUpdateRequestToJSON,
|
|
31
|
+
} from '../models/index';
|
|
32
|
+
|
|
33
|
+
export interface CreateLabelRequest {
|
|
34
|
+
projectId: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
labelCreateUpdateRequest: LabelCreateUpdateRequest;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface DeleteLabelRequest {
|
|
40
|
+
pk: string;
|
|
41
|
+
projectId: string;
|
|
42
|
+
slug: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface GetLabelsRequest {
|
|
46
|
+
pk: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
slug: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ListLabelsRequest {
|
|
52
|
+
projectId: string;
|
|
53
|
+
slug: string;
|
|
54
|
+
cursor?: string;
|
|
55
|
+
expand?: string;
|
|
56
|
+
fields?: string;
|
|
57
|
+
orderBy?: string;
|
|
58
|
+
perPage?: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface UpdateLabelRequest {
|
|
62
|
+
pk: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
patchedLabelCreateUpdateRequest?: PatchedLabelCreateUpdateRequest;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export class LabelsApi extends runtime.BaseAPI {
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Create a new label in the specified project with name, color, and description.
|
|
75
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
76
|
+
*/
|
|
77
|
+
async createLabelRaw(requestParameters: CreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Label>> {
|
|
78
|
+
if (requestParameters['projectId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError(
|
|
80
|
+
'projectId',
|
|
81
|
+
'Required parameter "projectId" was null or undefined when calling createLabel().'
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (requestParameters['slug'] == null) {
|
|
86
|
+
throw new runtime.RequiredError(
|
|
87
|
+
'slug',
|
|
88
|
+
'Required parameter "slug" was null or undefined when calling createLabel().'
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (requestParameters['labelCreateUpdateRequest'] == null) {
|
|
93
|
+
throw new runtime.RequiredError(
|
|
94
|
+
'labelCreateUpdateRequest',
|
|
95
|
+
'Required parameter "labelCreateUpdateRequest" was null or undefined when calling createLabel().'
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const queryParameters: any = {};
|
|
100
|
+
|
|
101
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
102
|
+
|
|
103
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
// oauth required
|
|
111
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
// oauth required
|
|
116
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/labels/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
121
|
+
method: 'POST',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
body: LabelCreateUpdateRequestToJSON(requestParameters['labelCreateUpdateRequest']),
|
|
125
|
+
}, initOverrides);
|
|
126
|
+
|
|
127
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelFromJSON(jsonValue));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Create a new label in the specified project with name, color, and description.
|
|
132
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
133
|
+
*/
|
|
134
|
+
async createLabel(requestParameters: CreateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Label> {
|
|
135
|
+
const response = await this.createLabelRaw(requestParameters, initOverrides);
|
|
136
|
+
return await response.value();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Permanently remove a label from the project. This action cannot be undone.
|
|
141
|
+
* Delete a label
|
|
142
|
+
*/
|
|
143
|
+
async deleteLabelRaw(requestParameters: DeleteLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
144
|
+
if (requestParameters['pk'] == null) {
|
|
145
|
+
throw new runtime.RequiredError(
|
|
146
|
+
'pk',
|
|
147
|
+
'Required parameter "pk" was null or undefined when calling deleteLabel().'
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (requestParameters['projectId'] == null) {
|
|
152
|
+
throw new runtime.RequiredError(
|
|
153
|
+
'projectId',
|
|
154
|
+
'Required parameter "projectId" was null or undefined when calling deleteLabel().'
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (requestParameters['slug'] == null) {
|
|
159
|
+
throw new runtime.RequiredError(
|
|
160
|
+
'slug',
|
|
161
|
+
'Required parameter "slug" was null or undefined when calling deleteLabel().'
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const queryParameters: any = {};
|
|
166
|
+
|
|
167
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
+
|
|
169
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
// oauth required
|
|
175
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
179
|
+
// oauth required
|
|
180
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const response = await this.request({
|
|
184
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/labels/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
185
|
+
method: 'DELETE',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
}, initOverrides);
|
|
189
|
+
|
|
190
|
+
return new runtime.VoidApiResponse(response);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Permanently remove a label from the project. This action cannot be undone.
|
|
195
|
+
* Delete a label
|
|
196
|
+
*/
|
|
197
|
+
async deleteLabel(requestParameters: DeleteLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
198
|
+
await this.deleteLabelRaw(requestParameters, initOverrides);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Retrieve details of a specific label.
|
|
203
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
204
|
+
*/
|
|
205
|
+
async getLabelsRaw(requestParameters: GetLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Label>> {
|
|
206
|
+
if (requestParameters['pk'] == null) {
|
|
207
|
+
throw new runtime.RequiredError(
|
|
208
|
+
'pk',
|
|
209
|
+
'Required parameter "pk" was null or undefined when calling getLabels().'
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (requestParameters['projectId'] == null) {
|
|
214
|
+
throw new runtime.RequiredError(
|
|
215
|
+
'projectId',
|
|
216
|
+
'Required parameter "projectId" was null or undefined when calling getLabels().'
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (requestParameters['slug'] == null) {
|
|
221
|
+
throw new runtime.RequiredError(
|
|
222
|
+
'slug',
|
|
223
|
+
'Required parameter "slug" was null or undefined when calling getLabels().'
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const queryParameters: any = {};
|
|
228
|
+
|
|
229
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
230
|
+
|
|
231
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
232
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
236
|
+
// oauth required
|
|
237
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
241
|
+
// oauth required
|
|
242
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const response = await this.request({
|
|
246
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/labels/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
247
|
+
method: 'GET',
|
|
248
|
+
headers: headerParameters,
|
|
249
|
+
query: queryParameters,
|
|
250
|
+
}, initOverrides);
|
|
251
|
+
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelFromJSON(jsonValue));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Retrieve details of a specific label.
|
|
257
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
258
|
+
*/
|
|
259
|
+
async getLabels(requestParameters: GetLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Label> {
|
|
260
|
+
const response = await this.getLabelsRaw(requestParameters, initOverrides);
|
|
261
|
+
return await response.value();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Retrieve all labels in a project. Supports filtering by name and color.
|
|
266
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
267
|
+
*/
|
|
268
|
+
async listLabelsRaw(requestParameters: ListLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLabelResponse>> {
|
|
269
|
+
if (requestParameters['projectId'] == null) {
|
|
270
|
+
throw new runtime.RequiredError(
|
|
271
|
+
'projectId',
|
|
272
|
+
'Required parameter "projectId" was null or undefined when calling listLabels().'
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (requestParameters['slug'] == null) {
|
|
277
|
+
throw new runtime.RequiredError(
|
|
278
|
+
'slug',
|
|
279
|
+
'Required parameter "slug" was null or undefined when calling listLabels().'
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const queryParameters: any = {};
|
|
284
|
+
|
|
285
|
+
if (requestParameters['cursor'] != null) {
|
|
286
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
if (requestParameters['expand'] != null) {
|
|
290
|
+
queryParameters['expand'] = requestParameters['expand'];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (requestParameters['fields'] != null) {
|
|
294
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (requestParameters['orderBy'] != null) {
|
|
298
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (requestParameters['perPage'] != null) {
|
|
302
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
|
+
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
312
|
+
// oauth required
|
|
313
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
317
|
+
// oauth required
|
|
318
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const response = await this.request({
|
|
322
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/labels/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
323
|
+
method: 'GET',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
}, initOverrides);
|
|
327
|
+
|
|
328
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLabelResponseFromJSON(jsonValue));
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Retrieve all labels in a project. Supports filtering by name and color.
|
|
333
|
+
* Endpoints for label create/update/delete and fetch label details
|
|
334
|
+
*/
|
|
335
|
+
async listLabels(requestParameters: ListLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLabelResponse> {
|
|
336
|
+
const response = await this.listLabelsRaw(requestParameters, initOverrides);
|
|
337
|
+
return await response.value();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Partially update an existing label\'s properties like name, color, or description.
|
|
342
|
+
* Update a label
|
|
343
|
+
*/
|
|
344
|
+
async updateLabelRaw(requestParameters: UpdateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Label>> {
|
|
345
|
+
if (requestParameters['pk'] == null) {
|
|
346
|
+
throw new runtime.RequiredError(
|
|
347
|
+
'pk',
|
|
348
|
+
'Required parameter "pk" was null or undefined when calling updateLabel().'
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (requestParameters['projectId'] == null) {
|
|
353
|
+
throw new runtime.RequiredError(
|
|
354
|
+
'projectId',
|
|
355
|
+
'Required parameter "projectId" was null or undefined when calling updateLabel().'
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (requestParameters['slug'] == null) {
|
|
360
|
+
throw new runtime.RequiredError(
|
|
361
|
+
'slug',
|
|
362
|
+
'Required parameter "slug" was null or undefined when calling updateLabel().'
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const queryParameters: any = {};
|
|
367
|
+
|
|
368
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
369
|
+
|
|
370
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
371
|
+
|
|
372
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
373
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
377
|
+
// oauth required
|
|
378
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
382
|
+
// oauth required
|
|
383
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
const response = await this.request({
|
|
387
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/labels/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
388
|
+
method: 'PATCH',
|
|
389
|
+
headers: headerParameters,
|
|
390
|
+
query: queryParameters,
|
|
391
|
+
body: PatchedLabelCreateUpdateRequestToJSON(requestParameters['patchedLabelCreateUpdateRequest']),
|
|
392
|
+
}, initOverrides);
|
|
393
|
+
|
|
394
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LabelFromJSON(jsonValue));
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Partially update an existing label\'s properties like name, color, or description.
|
|
399
|
+
* Update a label
|
|
400
|
+
*/
|
|
401
|
+
async updateLabel(requestParameters: UpdateLabelRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Label> {
|
|
402
|
+
const response = await this.updateLabelRaw(requestParameters, initOverrides);
|
|
403
|
+
return await response.value();
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Plane REST API
|
|
5
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
6
|
+
*
|
|
7
|
+
* The version of the API Spec: 0.0.1
|
|
8
|
+
* Contact: support@plane.so
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated.
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import type {
|
|
17
|
+
GetWorkspaceMembers200ResponseInner,
|
|
18
|
+
UserLite,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
GetWorkspaceMembers200ResponseInnerFromJSON,
|
|
22
|
+
GetWorkspaceMembers200ResponseInnerToJSON,
|
|
23
|
+
UserLiteFromJSON,
|
|
24
|
+
UserLiteToJSON,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
|
|
27
|
+
export interface GetProjectMembersRequest {
|
|
28
|
+
projectId: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface GetWorkspaceMembersRequest {
|
|
33
|
+
slug: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export class MembersApi extends runtime.BaseAPI {
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve all users who are members of the specified project.
|
|
43
|
+
* List project members
|
|
44
|
+
*/
|
|
45
|
+
async getProjectMembersRaw(requestParameters: GetProjectMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLite>> {
|
|
46
|
+
if (requestParameters['projectId'] == null) {
|
|
47
|
+
throw new runtime.RequiredError(
|
|
48
|
+
'projectId',
|
|
49
|
+
'Required parameter "projectId" was null or undefined when calling getProjectMembers().'
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (requestParameters['slug'] == null) {
|
|
54
|
+
throw new runtime.RequiredError(
|
|
55
|
+
'slug',
|
|
56
|
+
'Required parameter "slug" was null or undefined when calling getProjectMembers().'
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const queryParameters: any = {};
|
|
61
|
+
|
|
62
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
63
|
+
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
69
|
+
// oauth required
|
|
70
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
// oauth required
|
|
75
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/members/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
80
|
+
method: 'GET',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLiteFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Retrieve all users who are members of the specified project.
|
|
90
|
+
* List project members
|
|
91
|
+
*/
|
|
92
|
+
async getProjectMembers(requestParameters: GetProjectMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLite> {
|
|
93
|
+
const response = await this.getProjectMembersRaw(requestParameters, initOverrides);
|
|
94
|
+
return await response.value();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Retrieve all users who are members of the specified workspace.
|
|
99
|
+
* List workspace members
|
|
100
|
+
*/
|
|
101
|
+
async getWorkspaceMembersRaw(requestParameters: GetWorkspaceMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GetWorkspaceMembers200ResponseInner>>> {
|
|
102
|
+
if (requestParameters['slug'] == null) {
|
|
103
|
+
throw new runtime.RequiredError(
|
|
104
|
+
'slug',
|
|
105
|
+
'Required parameter "slug" was null or undefined when calling getWorkspaceMembers().'
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const queryParameters: any = {};
|
|
110
|
+
|
|
111
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
112
|
+
|
|
113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
118
|
+
// oauth required
|
|
119
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
// oauth required
|
|
124
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const response = await this.request({
|
|
128
|
+
path: `/api/v1/workspaces/{slug}/members/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
129
|
+
method: 'GET',
|
|
130
|
+
headers: headerParameters,
|
|
131
|
+
query: queryParameters,
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetWorkspaceMembers200ResponseInnerFromJSON));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Retrieve all users who are members of the specified workspace.
|
|
139
|
+
* List workspace members
|
|
140
|
+
*/
|
|
141
|
+
async getWorkspaceMembers(requestParameters: GetWorkspaceMembersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GetWorkspaceMembers200ResponseInner>> {
|
|
142
|
+
const response = await this.getWorkspaceMembersRaw(requestParameters, initOverrides);
|
|
143
|
+
return await response.value();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
}
|