@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,486 @@
|
|
|
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
|
+
PaginatedProjectResponse,
|
|
18
|
+
PatchedProjectUpdateRequest,
|
|
19
|
+
Project,
|
|
20
|
+
ProjectCreateRequest,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
PaginatedProjectResponseFromJSON,
|
|
24
|
+
PaginatedProjectResponseToJSON,
|
|
25
|
+
PatchedProjectUpdateRequestFromJSON,
|
|
26
|
+
PatchedProjectUpdateRequestToJSON,
|
|
27
|
+
ProjectFromJSON,
|
|
28
|
+
ProjectToJSON,
|
|
29
|
+
ProjectCreateRequestFromJSON,
|
|
30
|
+
ProjectCreateRequestToJSON,
|
|
31
|
+
} from '../models/index';
|
|
32
|
+
|
|
33
|
+
export interface ArchiveProjectRequest {
|
|
34
|
+
projectId: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CreateProjectRequest {
|
|
39
|
+
slug: string;
|
|
40
|
+
projectCreateRequest: ProjectCreateRequest;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface DeleteProjectRequest {
|
|
44
|
+
pk: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ListProjectsRequest {
|
|
49
|
+
slug: string;
|
|
50
|
+
cursor?: string;
|
|
51
|
+
expand?: string;
|
|
52
|
+
fields?: string;
|
|
53
|
+
orderBy?: string;
|
|
54
|
+
perPage?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface RetrieveProjectRequest {
|
|
58
|
+
pk: string;
|
|
59
|
+
slug: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface UnarchiveProjectRequest {
|
|
63
|
+
projectId: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface UpdateProjectRequest {
|
|
68
|
+
pk: string;
|
|
69
|
+
slug: string;
|
|
70
|
+
patchedProjectUpdateRequest?: PatchedProjectUpdateRequest;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export class ProjectsApi extends runtime.BaseAPI {
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Move a project to archived status, hiding it from active project lists.
|
|
80
|
+
* Archive project
|
|
81
|
+
*/
|
|
82
|
+
async archiveProjectRaw(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
83
|
+
if (requestParameters['projectId'] == null) {
|
|
84
|
+
throw new runtime.RequiredError(
|
|
85
|
+
'projectId',
|
|
86
|
+
'Required parameter "projectId" was null or undefined when calling archiveProject().'
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (requestParameters['slug'] == null) {
|
|
91
|
+
throw new runtime.RequiredError(
|
|
92
|
+
'slug',
|
|
93
|
+
'Required parameter "slug" was null or undefined when calling archiveProject().'
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
// oauth required
|
|
107
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
111
|
+
// oauth required
|
|
112
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const response = await this.request({
|
|
116
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/archive/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
117
|
+
method: 'POST',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
|
|
122
|
+
return new runtime.VoidApiResponse(response);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Move a project to archived status, hiding it from active project lists.
|
|
127
|
+
* Archive project
|
|
128
|
+
*/
|
|
129
|
+
async archiveProject(requestParameters: ArchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
130
|
+
await this.archiveProjectRaw(requestParameters, initOverrides);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Create a new project in the workspace with default states and member assignments.
|
|
135
|
+
* Create project
|
|
136
|
+
*/
|
|
137
|
+
async createProjectRaw(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
138
|
+
if (requestParameters['slug'] == null) {
|
|
139
|
+
throw new runtime.RequiredError(
|
|
140
|
+
'slug',
|
|
141
|
+
'Required parameter "slug" was null or undefined when calling createProject().'
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (requestParameters['projectCreateRequest'] == null) {
|
|
146
|
+
throw new runtime.RequiredError(
|
|
147
|
+
'projectCreateRequest',
|
|
148
|
+
'Required parameter "projectCreateRequest" was null or undefined when calling createProject().'
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const queryParameters: any = {};
|
|
153
|
+
|
|
154
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
155
|
+
|
|
156
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
157
|
+
|
|
158
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
// oauth required
|
|
164
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
168
|
+
// oauth required
|
|
169
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
const response = await this.request({
|
|
173
|
+
path: `/api/v1/workspaces/{slug}/projects/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
174
|
+
method: 'POST',
|
|
175
|
+
headers: headerParameters,
|
|
176
|
+
query: queryParameters,
|
|
177
|
+
body: ProjectCreateRequestToJSON(requestParameters['projectCreateRequest']),
|
|
178
|
+
}, initOverrides);
|
|
179
|
+
|
|
180
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Create a new project in the workspace with default states and member assignments.
|
|
185
|
+
* Create project
|
|
186
|
+
*/
|
|
187
|
+
async createProject(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
188
|
+
const response = await this.createProjectRaw(requestParameters, initOverrides);
|
|
189
|
+
return await response.value();
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Permanently remove a project and all its associated data from the workspace.
|
|
194
|
+
* Delete project
|
|
195
|
+
*/
|
|
196
|
+
async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
197
|
+
if (requestParameters['pk'] == null) {
|
|
198
|
+
throw new runtime.RequiredError(
|
|
199
|
+
'pk',
|
|
200
|
+
'Required parameter "pk" was null or undefined when calling deleteProject().'
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (requestParameters['slug'] == null) {
|
|
205
|
+
throw new runtime.RequiredError(
|
|
206
|
+
'slug',
|
|
207
|
+
'Required parameter "slug" was null or undefined when calling deleteProject().'
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const queryParameters: any = {};
|
|
212
|
+
|
|
213
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
214
|
+
|
|
215
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
// oauth required
|
|
221
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
// oauth required
|
|
226
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const response = await this.request({
|
|
230
|
+
path: `/api/v1/workspaces/{slug}/projects/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
231
|
+
method: 'DELETE',
|
|
232
|
+
headers: headerParameters,
|
|
233
|
+
query: queryParameters,
|
|
234
|
+
}, initOverrides);
|
|
235
|
+
|
|
236
|
+
return new runtime.VoidApiResponse(response);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Permanently remove a project and all its associated data from the workspace.
|
|
241
|
+
* Delete project
|
|
242
|
+
*/
|
|
243
|
+
async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
244
|
+
await this.deleteProjectRaw(requestParameters, initOverrides);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Retrieve all projects in a workspace or get details of a specific project.
|
|
249
|
+
* List or retrieve projects
|
|
250
|
+
*/
|
|
251
|
+
async listProjectsRaw(requestParameters: ListProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProjectResponse>> {
|
|
252
|
+
if (requestParameters['slug'] == null) {
|
|
253
|
+
throw new runtime.RequiredError(
|
|
254
|
+
'slug',
|
|
255
|
+
'Required parameter "slug" was null or undefined when calling listProjects().'
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const queryParameters: any = {};
|
|
260
|
+
|
|
261
|
+
if (requestParameters['cursor'] != null) {
|
|
262
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (requestParameters['expand'] != null) {
|
|
266
|
+
queryParameters['expand'] = requestParameters['expand'];
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (requestParameters['fields'] != null) {
|
|
270
|
+
queryParameters['fields'] = requestParameters['fields'];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if (requestParameters['orderBy'] != null) {
|
|
274
|
+
queryParameters['order_by'] = requestParameters['orderBy'];
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (requestParameters['perPage'] != null) {
|
|
278
|
+
queryParameters['per_page'] = requestParameters['perPage'];
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
282
|
+
|
|
283
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
284
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
288
|
+
// oauth required
|
|
289
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
293
|
+
// oauth required
|
|
294
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const response = await this.request({
|
|
298
|
+
path: `/api/v1/workspaces/{slug}/projects/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
299
|
+
method: 'GET',
|
|
300
|
+
headers: headerParameters,
|
|
301
|
+
query: queryParameters,
|
|
302
|
+
}, initOverrides);
|
|
303
|
+
|
|
304
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProjectResponseFromJSON(jsonValue));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Retrieve all projects in a workspace or get details of a specific project.
|
|
309
|
+
* List or retrieve projects
|
|
310
|
+
*/
|
|
311
|
+
async listProjects(requestParameters: ListProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProjectResponse> {
|
|
312
|
+
const response = await this.listProjectsRaw(requestParameters, initOverrides);
|
|
313
|
+
return await response.value();
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Retrieve details of a specific project.
|
|
318
|
+
* Retrieve project
|
|
319
|
+
*/
|
|
320
|
+
async retrieveProjectRaw(requestParameters: RetrieveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
321
|
+
if (requestParameters['pk'] == null) {
|
|
322
|
+
throw new runtime.RequiredError(
|
|
323
|
+
'pk',
|
|
324
|
+
'Required parameter "pk" was null or undefined when calling retrieveProject().'
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (requestParameters['slug'] == null) {
|
|
329
|
+
throw new runtime.RequiredError(
|
|
330
|
+
'slug',
|
|
331
|
+
'Required parameter "slug" was null or undefined when calling retrieveProject().'
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
const queryParameters: any = {};
|
|
336
|
+
|
|
337
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
338
|
+
|
|
339
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
340
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
344
|
+
// oauth required
|
|
345
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
349
|
+
// oauth required
|
|
350
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const response = await this.request({
|
|
354
|
+
path: `/api/v1/workspaces/{slug}/projects/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
355
|
+
method: 'GET',
|
|
356
|
+
headers: headerParameters,
|
|
357
|
+
query: queryParameters,
|
|
358
|
+
}, initOverrides);
|
|
359
|
+
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Retrieve details of a specific project.
|
|
365
|
+
* Retrieve project
|
|
366
|
+
*/
|
|
367
|
+
async retrieveProject(requestParameters: RetrieveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
368
|
+
const response = await this.retrieveProjectRaw(requestParameters, initOverrides);
|
|
369
|
+
return await response.value();
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Restore an archived project to active status, making it available in regular workflows.
|
|
374
|
+
* Unarchive project
|
|
375
|
+
*/
|
|
376
|
+
async unarchiveProjectRaw(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
377
|
+
if (requestParameters['projectId'] == null) {
|
|
378
|
+
throw new runtime.RequiredError(
|
|
379
|
+
'projectId',
|
|
380
|
+
'Required parameter "projectId" was null or undefined when calling unarchiveProject().'
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (requestParameters['slug'] == null) {
|
|
385
|
+
throw new runtime.RequiredError(
|
|
386
|
+
'slug',
|
|
387
|
+
'Required parameter "slug" was null or undefined when calling unarchiveProject().'
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const queryParameters: any = {};
|
|
392
|
+
|
|
393
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
394
|
+
|
|
395
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
396
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
400
|
+
// oauth required
|
|
401
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
405
|
+
// oauth required
|
|
406
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const response = await this.request({
|
|
410
|
+
path: `/api/v1/workspaces/{slug}/projects/{project_id}/archive/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
411
|
+
method: 'DELETE',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
}, initOverrides);
|
|
415
|
+
|
|
416
|
+
return new runtime.VoidApiResponse(response);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Restore an archived project to active status, making it available in regular workflows.
|
|
421
|
+
* Unarchive project
|
|
422
|
+
*/
|
|
423
|
+
async unarchiveProject(requestParameters: UnarchiveProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
424
|
+
await this.unarchiveProjectRaw(requestParameters, initOverrides);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Partially update an existing project\'s properties like name, description, or settings.
|
|
429
|
+
* Update project
|
|
430
|
+
*/
|
|
431
|
+
async updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
|
|
432
|
+
if (requestParameters['pk'] == null) {
|
|
433
|
+
throw new runtime.RequiredError(
|
|
434
|
+
'pk',
|
|
435
|
+
'Required parameter "pk" was null or undefined when calling updateProject().'
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (requestParameters['slug'] == null) {
|
|
440
|
+
throw new runtime.RequiredError(
|
|
441
|
+
'slug',
|
|
442
|
+
'Required parameter "slug" was null or undefined when calling updateProject().'
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const queryParameters: any = {};
|
|
447
|
+
|
|
448
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
449
|
+
|
|
450
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
451
|
+
|
|
452
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
453
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
457
|
+
// oauth required
|
|
458
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
462
|
+
// oauth required
|
|
463
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
const response = await this.request({
|
|
467
|
+
path: `/api/v1/workspaces/{slug}/projects/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
468
|
+
method: 'PATCH',
|
|
469
|
+
headers: headerParameters,
|
|
470
|
+
query: queryParameters,
|
|
471
|
+
body: PatchedProjectUpdateRequestToJSON(requestParameters['patchedProjectUpdateRequest']),
|
|
472
|
+
}, initOverrides);
|
|
473
|
+
|
|
474
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Partially update an existing project\'s properties like name, description, or settings.
|
|
479
|
+
* Update project
|
|
480
|
+
*/
|
|
481
|
+
async updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
|
|
482
|
+
const response = await this.updateProjectRaw(requestParameters, initOverrides);
|
|
483
|
+
return await response.value();
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
}
|