@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,54 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfProjectWorklogSummary = instanceOfProjectWorklogSummary;
|
|
16
|
+
exports.ProjectWorklogSummaryFromJSON = ProjectWorklogSummaryFromJSON;
|
|
17
|
+
exports.ProjectWorklogSummaryFromJSONTyped = ProjectWorklogSummaryFromJSONTyped;
|
|
18
|
+
exports.ProjectWorklogSummaryToJSON = ProjectWorklogSummaryToJSON;
|
|
19
|
+
exports.ProjectWorklogSummaryToJSONTyped = ProjectWorklogSummaryToJSONTyped;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ProjectWorklogSummary interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfProjectWorklogSummary(value) {
|
|
24
|
+
if (!('issueId' in value) || value['issueId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('duration' in value) || value['duration'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ProjectWorklogSummaryFromJSON(json) {
|
|
31
|
+
return ProjectWorklogSummaryFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ProjectWorklogSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'issueId': json['issue_id'],
|
|
39
|
+
'duration': json['duration'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ProjectWorklogSummaryToJSON(json) {
|
|
43
|
+
return ProjectWorklogSummaryToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ProjectWorklogSummaryToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'issue_id': value['issueId'],
|
|
52
|
+
'duration': value['duration'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/**
|
|
12
|
+
* * `TEXT` - Text
|
|
13
|
+
* * `DATETIME` - Datetime
|
|
14
|
+
* * `DECIMAL` - Decimal
|
|
15
|
+
* * `BOOLEAN` - Boolean
|
|
16
|
+
* * `OPTION` - Option
|
|
17
|
+
* * `RELATION` - Relation
|
|
18
|
+
* * `URL` - URL
|
|
19
|
+
* * `EMAIL` - Email
|
|
20
|
+
* * `FILE` - File
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const PropertyTypeEnum: {
|
|
24
|
+
readonly Text: "TEXT";
|
|
25
|
+
readonly Datetime: "DATETIME";
|
|
26
|
+
readonly Decimal: "DECIMAL";
|
|
27
|
+
readonly Boolean: "BOOLEAN";
|
|
28
|
+
readonly Option: "OPTION";
|
|
29
|
+
readonly Relation: "RELATION";
|
|
30
|
+
readonly Url: "URL";
|
|
31
|
+
readonly Email: "EMAIL";
|
|
32
|
+
readonly File: "FILE";
|
|
33
|
+
};
|
|
34
|
+
export type PropertyTypeEnum = typeof PropertyTypeEnum[keyof typeof PropertyTypeEnum];
|
|
35
|
+
export declare function instanceOfPropertyTypeEnum(value: any): boolean;
|
|
36
|
+
export declare function PropertyTypeEnumFromJSON(json: any): PropertyTypeEnum;
|
|
37
|
+
export declare function PropertyTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyTypeEnum;
|
|
38
|
+
export declare function PropertyTypeEnumToJSON(value?: PropertyTypeEnum | null): any;
|
|
39
|
+
export declare function PropertyTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PropertyTypeEnum;
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PropertyTypeEnum = void 0;
|
|
16
|
+
exports.instanceOfPropertyTypeEnum = instanceOfPropertyTypeEnum;
|
|
17
|
+
exports.PropertyTypeEnumFromJSON = PropertyTypeEnumFromJSON;
|
|
18
|
+
exports.PropertyTypeEnumFromJSONTyped = PropertyTypeEnumFromJSONTyped;
|
|
19
|
+
exports.PropertyTypeEnumToJSON = PropertyTypeEnumToJSON;
|
|
20
|
+
exports.PropertyTypeEnumToJSONTyped = PropertyTypeEnumToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* * `TEXT` - Text
|
|
23
|
+
* * `DATETIME` - Datetime
|
|
24
|
+
* * `DECIMAL` - Decimal
|
|
25
|
+
* * `BOOLEAN` - Boolean
|
|
26
|
+
* * `OPTION` - Option
|
|
27
|
+
* * `RELATION` - Relation
|
|
28
|
+
* * `URL` - URL
|
|
29
|
+
* * `EMAIL` - Email
|
|
30
|
+
* * `FILE` - File
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.PropertyTypeEnum = {
|
|
34
|
+
Text: 'TEXT',
|
|
35
|
+
Datetime: 'DATETIME',
|
|
36
|
+
Decimal: 'DECIMAL',
|
|
37
|
+
Boolean: 'BOOLEAN',
|
|
38
|
+
Option: 'OPTION',
|
|
39
|
+
Relation: 'RELATION',
|
|
40
|
+
Url: 'URL',
|
|
41
|
+
Email: 'EMAIL',
|
|
42
|
+
File: 'FILE'
|
|
43
|
+
};
|
|
44
|
+
function instanceOfPropertyTypeEnum(value) {
|
|
45
|
+
for (var key in exports.PropertyTypeEnum) {
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(exports.PropertyTypeEnum, key)) {
|
|
47
|
+
if (exports.PropertyTypeEnum[key] === value) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
function PropertyTypeEnumFromJSON(json) {
|
|
55
|
+
return PropertyTypeEnumFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function PropertyTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
function PropertyTypeEnumToJSON(value) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
function PropertyTypeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
12
|
+
* * `ISSUE` - Issue
|
|
13
|
+
* * `USER` - User
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const RelationTypeEnum: {
|
|
17
|
+
readonly Issue: "ISSUE";
|
|
18
|
+
readonly User: "USER";
|
|
19
|
+
};
|
|
20
|
+
export type RelationTypeEnum = typeof RelationTypeEnum[keyof typeof RelationTypeEnum];
|
|
21
|
+
export declare function instanceOfRelationTypeEnum(value: any): boolean;
|
|
22
|
+
export declare function RelationTypeEnumFromJSON(json: any): RelationTypeEnum;
|
|
23
|
+
export declare function RelationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelationTypeEnum;
|
|
24
|
+
export declare function RelationTypeEnumToJSON(value?: RelationTypeEnum | null): any;
|
|
25
|
+
export declare function RelationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): RelationTypeEnum;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.RelationTypeEnum = void 0;
|
|
16
|
+
exports.instanceOfRelationTypeEnum = instanceOfRelationTypeEnum;
|
|
17
|
+
exports.RelationTypeEnumFromJSON = RelationTypeEnumFromJSON;
|
|
18
|
+
exports.RelationTypeEnumFromJSONTyped = RelationTypeEnumFromJSONTyped;
|
|
19
|
+
exports.RelationTypeEnumToJSON = RelationTypeEnumToJSON;
|
|
20
|
+
exports.RelationTypeEnumToJSONTyped = RelationTypeEnumToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* * `ISSUE` - Issue
|
|
23
|
+
* * `USER` - User
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RelationTypeEnum = {
|
|
27
|
+
Issue: 'ISSUE',
|
|
28
|
+
User: 'USER'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfRelationTypeEnum(value) {
|
|
31
|
+
for (var key in exports.RelationTypeEnum) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.RelationTypeEnum, key)) {
|
|
33
|
+
if (exports.RelationTypeEnum[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function RelationTypeEnumFromJSON(json) {
|
|
41
|
+
return RelationTypeEnumFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RelationTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function RelationTypeEnumToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function RelationTypeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface RetrieveWorkItemAttachment400Response
|
|
15
|
+
*/
|
|
16
|
+
export interface RetrieveWorkItemAttachment400Response {
|
|
17
|
+
/**
|
|
18
|
+
* Error message
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof RetrieveWorkItemAttachment400Response
|
|
21
|
+
*/
|
|
22
|
+
error?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Request status
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof RetrieveWorkItemAttachment400Response
|
|
27
|
+
*/
|
|
28
|
+
status?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RetrieveWorkItemAttachment400Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export declare function instanceOfRetrieveWorkItemAttachment400Response(value: object): value is RetrieveWorkItemAttachment400Response;
|
|
34
|
+
export declare function RetrieveWorkItemAttachment400ResponseFromJSON(json: any): RetrieveWorkItemAttachment400Response;
|
|
35
|
+
export declare function RetrieveWorkItemAttachment400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveWorkItemAttachment400Response;
|
|
36
|
+
export declare function RetrieveWorkItemAttachment400ResponseToJSON(json: any): RetrieveWorkItemAttachment400Response;
|
|
37
|
+
export declare function RetrieveWorkItemAttachment400ResponseToJSONTyped(value?: RetrieveWorkItemAttachment400Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfRetrieveWorkItemAttachment400Response = instanceOfRetrieveWorkItemAttachment400Response;
|
|
16
|
+
exports.RetrieveWorkItemAttachment400ResponseFromJSON = RetrieveWorkItemAttachment400ResponseFromJSON;
|
|
17
|
+
exports.RetrieveWorkItemAttachment400ResponseFromJSONTyped = RetrieveWorkItemAttachment400ResponseFromJSONTyped;
|
|
18
|
+
exports.RetrieveWorkItemAttachment400ResponseToJSON = RetrieveWorkItemAttachment400ResponseToJSON;
|
|
19
|
+
exports.RetrieveWorkItemAttachment400ResponseToJSONTyped = RetrieveWorkItemAttachment400ResponseToJSONTyped;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RetrieveWorkItemAttachment400Response interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfRetrieveWorkItemAttachment400Response(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function RetrieveWorkItemAttachment400ResponseFromJSON(json) {
|
|
27
|
+
return RetrieveWorkItemAttachment400ResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function RetrieveWorkItemAttachment400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
35
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function RetrieveWorkItemAttachment400ResponseToJSON(json) {
|
|
39
|
+
return RetrieveWorkItemAttachment400ResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RetrieveWorkItemAttachment400ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'error': value['error'],
|
|
48
|
+
'status': value['status'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 type { GroupEnum } from './GroupEnum';
|
|
12
|
+
/**
|
|
13
|
+
* Serializer for work item states with default state management.
|
|
14
|
+
*
|
|
15
|
+
* Handles state creation and updates including default state validation
|
|
16
|
+
* and automatic default state switching for workflow management.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface State
|
|
19
|
+
*/
|
|
20
|
+
export interface State {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof State
|
|
25
|
+
*/
|
|
26
|
+
readonly id?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Date}
|
|
30
|
+
* @memberof State
|
|
31
|
+
*/
|
|
32
|
+
readonly createdAt?: Date;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof State
|
|
37
|
+
*/
|
|
38
|
+
readonly updatedAt?: Date;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Date}
|
|
42
|
+
* @memberof State
|
|
43
|
+
*/
|
|
44
|
+
readonly deletedAt?: Date | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof State
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof State
|
|
55
|
+
*/
|
|
56
|
+
description?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof State
|
|
61
|
+
*/
|
|
62
|
+
color: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof State
|
|
67
|
+
*/
|
|
68
|
+
readonly slug?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof State
|
|
73
|
+
*/
|
|
74
|
+
sequence?: number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {GroupEnum}
|
|
78
|
+
* @memberof State
|
|
79
|
+
*/
|
|
80
|
+
group?: GroupEnum;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof State
|
|
85
|
+
*/
|
|
86
|
+
isTriage?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof State
|
|
91
|
+
*/
|
|
92
|
+
_default?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof State
|
|
97
|
+
*/
|
|
98
|
+
externalSource?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof State
|
|
103
|
+
*/
|
|
104
|
+
externalId?: string | null;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof State
|
|
109
|
+
*/
|
|
110
|
+
readonly createdBy?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof State
|
|
115
|
+
*/
|
|
116
|
+
readonly updatedBy?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof State
|
|
121
|
+
*/
|
|
122
|
+
readonly project?: string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof State
|
|
127
|
+
*/
|
|
128
|
+
readonly workspace?: string;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Check if a given object implements the State interface.
|
|
132
|
+
*/
|
|
133
|
+
export declare function instanceOfState(value: object): value is State;
|
|
134
|
+
export declare function StateFromJSON(json: any): State;
|
|
135
|
+
export declare function StateFromJSONTyped(json: any, ignoreDiscriminator: boolean): State;
|
|
136
|
+
export declare function StateToJSON(json: any): State;
|
|
137
|
+
export declare function StateToJSONTyped(value?: Omit<State, 'id' | 'created_at' | 'updated_at' | 'deleted_at' | 'slug' | 'created_by' | 'updated_by' | 'project' | 'workspace'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfState = instanceOfState;
|
|
16
|
+
exports.StateFromJSON = StateFromJSON;
|
|
17
|
+
exports.StateFromJSONTyped = StateFromJSONTyped;
|
|
18
|
+
exports.StateToJSON = StateToJSON;
|
|
19
|
+
exports.StateToJSONTyped = StateToJSONTyped;
|
|
20
|
+
var GroupEnum_1 = require("./GroupEnum");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the State interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfState(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StateFromJSON(json) {
|
|
32
|
+
return StateFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StateFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
40
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
41
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
42
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
45
|
+
'color': json['color'],
|
|
46
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
47
|
+
'sequence': json['sequence'] == null ? undefined : json['sequence'],
|
|
48
|
+
'group': json['group'] == null ? undefined : (0, GroupEnum_1.GroupEnumFromJSON)(json['group']),
|
|
49
|
+
'isTriage': json['is_triage'] == null ? undefined : json['is_triage'],
|
|
50
|
+
'_default': json['default'] == null ? undefined : json['default'],
|
|
51
|
+
'externalSource': json['external_source'] == null ? undefined : json['external_source'],
|
|
52
|
+
'externalId': json['external_id'] == null ? undefined : json['external_id'],
|
|
53
|
+
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
54
|
+
'updatedBy': json['updated_by'] == null ? undefined : json['updated_by'],
|
|
55
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
56
|
+
'workspace': json['workspace'] == null ? undefined : json['workspace'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function StateToJSON(json) {
|
|
60
|
+
return StateToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function StateToJSONTyped(value, ignoreDiscriminator) {
|
|
63
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'color': value['color'],
|
|
71
|
+
'sequence': value['sequence'],
|
|
72
|
+
'group': (0, GroupEnum_1.GroupEnumToJSON)(value['group']),
|
|
73
|
+
'is_triage': value['isTriage'],
|
|
74
|
+
'default': value['_default'],
|
|
75
|
+
'external_source': value['externalSource'],
|
|
76
|
+
'external_id': value['externalId'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 type { GroupEnum } from './GroupEnum';
|
|
12
|
+
/**
|
|
13
|
+
* Lightweight state serializer for minimal data transfer.
|
|
14
|
+
*
|
|
15
|
+
* Provides essential state information including visual properties
|
|
16
|
+
* and grouping data optimized for UI display and filtering.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface StateLite
|
|
19
|
+
*/
|
|
20
|
+
export interface StateLite {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof StateLite
|
|
25
|
+
*/
|
|
26
|
+
readonly id?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof StateLite
|
|
31
|
+
*/
|
|
32
|
+
readonly name?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof StateLite
|
|
37
|
+
*/
|
|
38
|
+
readonly color?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {GroupEnum}
|
|
42
|
+
* @memberof StateLite
|
|
43
|
+
*/
|
|
44
|
+
readonly group?: GroupEnum;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the StateLite interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfStateLite(value: object): value is StateLite;
|
|
50
|
+
export declare function StateLiteFromJSON(json: any): StateLite;
|
|
51
|
+
export declare function StateLiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateLite;
|
|
52
|
+
export declare function StateLiteToJSON(json: any): StateLite;
|
|
53
|
+
export declare function StateLiteToJSONTyped(value?: Omit<StateLite, 'id' | 'name' | 'color' | 'group'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfStateLite = instanceOfStateLite;
|
|
16
|
+
exports.StateLiteFromJSON = StateLiteFromJSON;
|
|
17
|
+
exports.StateLiteFromJSONTyped = StateLiteFromJSONTyped;
|
|
18
|
+
exports.StateLiteToJSON = StateLiteToJSON;
|
|
19
|
+
exports.StateLiteToJSONTyped = StateLiteToJSONTyped;
|
|
20
|
+
var GroupEnum_1 = require("./GroupEnum");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StateLite interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStateLite(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StateLiteFromJSON(json) {
|
|
28
|
+
return StateLiteFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StateLiteFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
38
|
+
'group': json['group'] == null ? undefined : (0, GroupEnum_1.GroupEnumFromJSON)(json['group']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function StateLiteToJSON(json) {
|
|
42
|
+
return StateLiteToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StateLiteToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {};
|
|
50
|
+
}
|