@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,1066 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Plane REST API
|
|
6
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
|
+
*
|
|
8
|
+
* The version of the API Spec: 0.0.1
|
|
9
|
+
* Contact: support@plane.so
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = function (d, b) {
|
|
16
|
+
extendStatics = Object.setPrototypeOf ||
|
|
17
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
|
+
return extendStatics(d, b);
|
|
20
|
+
};
|
|
21
|
+
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
24
|
+
extendStatics(d, b);
|
|
25
|
+
function __() { this.constructor = d; }
|
|
26
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
39
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
40
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
41
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
42
|
+
function step(op) {
|
|
43
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
44
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
45
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
46
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
47
|
+
switch (op[0]) {
|
|
48
|
+
case 0: case 1: t = op; break;
|
|
49
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
50
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
51
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
52
|
+
default:
|
|
53
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
54
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
55
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
56
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
57
|
+
if (t[2]) _.ops.pop();
|
|
58
|
+
_.trys.pop(); continue;
|
|
59
|
+
}
|
|
60
|
+
op = body.call(thisArg, _);
|
|
61
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
62
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
exports.WorkItemPropertiesApi = void 0;
|
|
67
|
+
var runtime = require("../runtime");
|
|
68
|
+
var index_1 = require("../models/index");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var WorkItemPropertiesApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(WorkItemPropertiesApi, _super);
|
|
74
|
+
function WorkItemPropertiesApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create a new issue property
|
|
79
|
+
* Create a new issue property
|
|
80
|
+
*/
|
|
81
|
+
WorkItemPropertiesApi.prototype.createIssuePropertyRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
84
|
+
return __generator(this, function (_g) {
|
|
85
|
+
switch (_g.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['projectId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createIssueProperty().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['slug'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling createIssueProperty().');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters['typeId'] == null) {
|
|
94
|
+
throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling createIssueProperty().');
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['issuePropertyAPIRequest'] == null) {
|
|
97
|
+
throw new runtime.RequiredError('issuePropertyAPIRequest', 'Required parameter "issuePropertyAPIRequest" was null or undefined when calling createIssueProperty().');
|
|
98
|
+
}
|
|
99
|
+
queryParameters = {};
|
|
100
|
+
headerParameters = {};
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
103
|
+
_a = headerParameters;
|
|
104
|
+
_b = "X-API-Key";
|
|
105
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
106
|
+
case 1:
|
|
107
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
108
|
+
_g.label = 2;
|
|
109
|
+
case 2:
|
|
110
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
111
|
+
// oauth required
|
|
112
|
+
_c = headerParameters;
|
|
113
|
+
_d = "Authorization";
|
|
114
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
115
|
+
case 3:
|
|
116
|
+
// oauth required
|
|
117
|
+
_c[_d] = _g.sent();
|
|
118
|
+
_g.label = 4;
|
|
119
|
+
case 4:
|
|
120
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
121
|
+
// oauth required
|
|
122
|
+
_e = headerParameters;
|
|
123
|
+
_f = "Authorization";
|
|
124
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
125
|
+
case 5:
|
|
126
|
+
// oauth required
|
|
127
|
+
_e[_f] = _g.sent();
|
|
128
|
+
_g.label = 6;
|
|
129
|
+
case 6: return [4 /*yield*/, this.request({
|
|
130
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))).replace("{".concat("type_id", "}"), encodeURIComponent(String(requestParameters['typeId']))),
|
|
131
|
+
method: 'POST',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
body: (0, index_1.IssuePropertyAPIRequestToJSON)(requestParameters['issuePropertyAPIRequest']),
|
|
135
|
+
}, initOverrides)];
|
|
136
|
+
case 7:
|
|
137
|
+
response = _g.sent();
|
|
138
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyAPIFromJSON)(jsonValue); })];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Create a new issue property
|
|
145
|
+
* Create a new issue property
|
|
146
|
+
*/
|
|
147
|
+
WorkItemPropertiesApi.prototype.createIssueProperty = function (requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
149
|
+
var response;
|
|
150
|
+
return __generator(this, function (_a) {
|
|
151
|
+
switch (_a.label) {
|
|
152
|
+
case 0: return [4 /*yield*/, this.createIssuePropertyRaw(requestParameters, initOverrides)];
|
|
153
|
+
case 1:
|
|
154
|
+
response = _a.sent();
|
|
155
|
+
return [4 /*yield*/, response.value()];
|
|
156
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Create a new issue property option
|
|
163
|
+
* Create a new issue property option
|
|
164
|
+
*/
|
|
165
|
+
WorkItemPropertiesApi.prototype.createIssuePropertyOptionRaw = function (requestParameters, initOverrides) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
167
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
168
|
+
return __generator(this, function (_g) {
|
|
169
|
+
switch (_g.label) {
|
|
170
|
+
case 0:
|
|
171
|
+
if (requestParameters['projectId'] == null) {
|
|
172
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createIssuePropertyOption().');
|
|
173
|
+
}
|
|
174
|
+
if (requestParameters['propertyId'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling createIssuePropertyOption().');
|
|
176
|
+
}
|
|
177
|
+
if (requestParameters['slug'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling createIssuePropertyOption().');
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['issuePropertyOptionAPIRequest'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('issuePropertyOptionAPIRequest', 'Required parameter "issuePropertyOptionAPIRequest" was null or undefined when calling createIssuePropertyOption().');
|
|
182
|
+
}
|
|
183
|
+
queryParameters = {};
|
|
184
|
+
headerParameters = {};
|
|
185
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
187
|
+
_a = headerParameters;
|
|
188
|
+
_b = "X-API-Key";
|
|
189
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
190
|
+
case 1:
|
|
191
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
192
|
+
_g.label = 2;
|
|
193
|
+
case 2:
|
|
194
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
195
|
+
// oauth required
|
|
196
|
+
_c = headerParameters;
|
|
197
|
+
_d = "Authorization";
|
|
198
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
199
|
+
case 3:
|
|
200
|
+
// oauth required
|
|
201
|
+
_c[_d] = _g.sent();
|
|
202
|
+
_g.label = 4;
|
|
203
|
+
case 4:
|
|
204
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
205
|
+
// oauth required
|
|
206
|
+
_e = headerParameters;
|
|
207
|
+
_f = "Authorization";
|
|
208
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
209
|
+
case 5:
|
|
210
|
+
// oauth required
|
|
211
|
+
_e[_f] = _g.sent();
|
|
212
|
+
_g.label = 6;
|
|
213
|
+
case 6: return [4 /*yield*/, this.request({
|
|
214
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
215
|
+
method: 'POST',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
body: (0, index_1.IssuePropertyOptionAPIRequestToJSON)(requestParameters['issuePropertyOptionAPIRequest']),
|
|
219
|
+
}, initOverrides)];
|
|
220
|
+
case 7:
|
|
221
|
+
response = _g.sent();
|
|
222
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyOptionAPIFromJSON)(jsonValue); })];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Create a new issue property option
|
|
229
|
+
* Create a new issue property option
|
|
230
|
+
*/
|
|
231
|
+
WorkItemPropertiesApi.prototype.createIssuePropertyOption = function (requestParameters, initOverrides) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
233
|
+
var response;
|
|
234
|
+
return __generator(this, function (_a) {
|
|
235
|
+
switch (_a.label) {
|
|
236
|
+
case 0: return [4 /*yield*/, this.createIssuePropertyOptionRaw(requestParameters, initOverrides)];
|
|
237
|
+
case 1:
|
|
238
|
+
response = _a.sent();
|
|
239
|
+
return [4 /*yield*/, response.value()];
|
|
240
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Create/update an issue property value
|
|
247
|
+
* Create/update an issue property value
|
|
248
|
+
*/
|
|
249
|
+
WorkItemPropertiesApi.prototype.createIssuePropertyValueRaw = function (requestParameters, initOverrides) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
251
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
252
|
+
return __generator(this, function (_g) {
|
|
253
|
+
switch (_g.label) {
|
|
254
|
+
case 0:
|
|
255
|
+
if (requestParameters['issueId'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('issueId', 'Required parameter "issueId" was null or undefined when calling createIssuePropertyValue().');
|
|
257
|
+
}
|
|
258
|
+
if (requestParameters['projectId'] == null) {
|
|
259
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createIssuePropertyValue().');
|
|
260
|
+
}
|
|
261
|
+
if (requestParameters['propertyId'] == null) {
|
|
262
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling createIssuePropertyValue().');
|
|
263
|
+
}
|
|
264
|
+
if (requestParameters['slug'] == null) {
|
|
265
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling createIssuePropertyValue().');
|
|
266
|
+
}
|
|
267
|
+
if (requestParameters['issuePropertyValueAPIRequest'] == null) {
|
|
268
|
+
throw new runtime.RequiredError('issuePropertyValueAPIRequest', 'Required parameter "issuePropertyValueAPIRequest" was null or undefined when calling createIssuePropertyValue().');
|
|
269
|
+
}
|
|
270
|
+
queryParameters = {};
|
|
271
|
+
headerParameters = {};
|
|
272
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
274
|
+
_a = headerParameters;
|
|
275
|
+
_b = "X-API-Key";
|
|
276
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
277
|
+
case 1:
|
|
278
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
279
|
+
_g.label = 2;
|
|
280
|
+
case 2:
|
|
281
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
282
|
+
// oauth required
|
|
283
|
+
_c = headerParameters;
|
|
284
|
+
_d = "Authorization";
|
|
285
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
286
|
+
case 3:
|
|
287
|
+
// oauth required
|
|
288
|
+
_c[_d] = _g.sent();
|
|
289
|
+
_g.label = 4;
|
|
290
|
+
case 4:
|
|
291
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
292
|
+
// oauth required
|
|
293
|
+
_e = headerParameters;
|
|
294
|
+
_f = "Authorization";
|
|
295
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
296
|
+
case 5:
|
|
297
|
+
// oauth required
|
|
298
|
+
_e[_f] = _g.sent();
|
|
299
|
+
_g.label = 6;
|
|
300
|
+
case 6: return [4 /*yield*/, this.request({
|
|
301
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/values/".replace("{".concat("issue_id", "}"), encodeURIComponent(String(requestParameters['issueId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
302
|
+
method: 'POST',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
body: (0, index_1.IssuePropertyValueAPIRequestToJSON)(requestParameters['issuePropertyValueAPIRequest']),
|
|
306
|
+
}, initOverrides)];
|
|
307
|
+
case 7:
|
|
308
|
+
response = _g.sent();
|
|
309
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyValueAPIFromJSON)(jsonValue); })];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Create/update an issue property value
|
|
316
|
+
* Create/update an issue property value
|
|
317
|
+
*/
|
|
318
|
+
WorkItemPropertiesApi.prototype.createIssuePropertyValue = function (requestParameters, initOverrides) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
320
|
+
var response;
|
|
321
|
+
return __generator(this, function (_a) {
|
|
322
|
+
switch (_a.label) {
|
|
323
|
+
case 0: return [4 /*yield*/, this.createIssuePropertyValueRaw(requestParameters, initOverrides)];
|
|
324
|
+
case 1:
|
|
325
|
+
response = _a.sent();
|
|
326
|
+
return [4 /*yield*/, response.value()];
|
|
327
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* Delete an issue property
|
|
334
|
+
* Delete an issue property
|
|
335
|
+
*/
|
|
336
|
+
WorkItemPropertiesApi.prototype.deleteIssuePropertyRaw = function (requestParameters, initOverrides) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
338
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
339
|
+
return __generator(this, function (_g) {
|
|
340
|
+
switch (_g.label) {
|
|
341
|
+
case 0:
|
|
342
|
+
if (requestParameters['projectId'] == null) {
|
|
343
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteIssueProperty().');
|
|
344
|
+
}
|
|
345
|
+
if (requestParameters['propertyId'] == null) {
|
|
346
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling deleteIssueProperty().');
|
|
347
|
+
}
|
|
348
|
+
if (requestParameters['slug'] == null) {
|
|
349
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling deleteIssueProperty().');
|
|
350
|
+
}
|
|
351
|
+
if (requestParameters['typeId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling deleteIssueProperty().');
|
|
353
|
+
}
|
|
354
|
+
queryParameters = {};
|
|
355
|
+
headerParameters = {};
|
|
356
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
357
|
+
_a = headerParameters;
|
|
358
|
+
_b = "X-API-Key";
|
|
359
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
360
|
+
case 1:
|
|
361
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
362
|
+
_g.label = 2;
|
|
363
|
+
case 2:
|
|
364
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
365
|
+
// oauth required
|
|
366
|
+
_c = headerParameters;
|
|
367
|
+
_d = "Authorization";
|
|
368
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
369
|
+
case 3:
|
|
370
|
+
// oauth required
|
|
371
|
+
_c[_d] = _g.sent();
|
|
372
|
+
_g.label = 4;
|
|
373
|
+
case 4:
|
|
374
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
375
|
+
// oauth required
|
|
376
|
+
_e = headerParameters;
|
|
377
|
+
_f = "Authorization";
|
|
378
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
379
|
+
case 5:
|
|
380
|
+
// oauth required
|
|
381
|
+
_e[_f] = _g.sent();
|
|
382
|
+
_g.label = 6;
|
|
383
|
+
case 6: return [4 /*yield*/, this.request({
|
|
384
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))).replace("{".concat("type_id", "}"), encodeURIComponent(String(requestParameters['typeId']))),
|
|
385
|
+
method: 'DELETE',
|
|
386
|
+
headers: headerParameters,
|
|
387
|
+
query: queryParameters,
|
|
388
|
+
}, initOverrides)];
|
|
389
|
+
case 7:
|
|
390
|
+
response = _g.sent();
|
|
391
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Delete an issue property
|
|
398
|
+
* Delete an issue property
|
|
399
|
+
*/
|
|
400
|
+
WorkItemPropertiesApi.prototype.deleteIssueProperty = function (requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
402
|
+
return __generator(this, function (_a) {
|
|
403
|
+
switch (_a.label) {
|
|
404
|
+
case 0: return [4 /*yield*/, this.deleteIssuePropertyRaw(requestParameters, initOverrides)];
|
|
405
|
+
case 1:
|
|
406
|
+
_a.sent();
|
|
407
|
+
return [2 /*return*/];
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Delete an issue property option
|
|
414
|
+
* Delete an issue property option
|
|
415
|
+
*/
|
|
416
|
+
WorkItemPropertiesApi.prototype.deleteIssuePropertyOptionRaw = function (requestParameters, initOverrides) {
|
|
417
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
418
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
419
|
+
return __generator(this, function (_g) {
|
|
420
|
+
switch (_g.label) {
|
|
421
|
+
case 0:
|
|
422
|
+
if (requestParameters['optionId'] == null) {
|
|
423
|
+
throw new runtime.RequiredError('optionId', 'Required parameter "optionId" was null or undefined when calling deleteIssuePropertyOption().');
|
|
424
|
+
}
|
|
425
|
+
if (requestParameters['projectId'] == null) {
|
|
426
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteIssuePropertyOption().');
|
|
427
|
+
}
|
|
428
|
+
if (requestParameters['propertyId'] == null) {
|
|
429
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling deleteIssuePropertyOption().');
|
|
430
|
+
}
|
|
431
|
+
if (requestParameters['slug'] == null) {
|
|
432
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling deleteIssuePropertyOption().');
|
|
433
|
+
}
|
|
434
|
+
queryParameters = {};
|
|
435
|
+
headerParameters = {};
|
|
436
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
437
|
+
_a = headerParameters;
|
|
438
|
+
_b = "X-API-Key";
|
|
439
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
440
|
+
case 1:
|
|
441
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
442
|
+
_g.label = 2;
|
|
443
|
+
case 2:
|
|
444
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
445
|
+
// oauth required
|
|
446
|
+
_c = headerParameters;
|
|
447
|
+
_d = "Authorization";
|
|
448
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
449
|
+
case 3:
|
|
450
|
+
// oauth required
|
|
451
|
+
_c[_d] = _g.sent();
|
|
452
|
+
_g.label = 4;
|
|
453
|
+
case 4:
|
|
454
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
455
|
+
// oauth required
|
|
456
|
+
_e = headerParameters;
|
|
457
|
+
_f = "Authorization";
|
|
458
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
459
|
+
case 5:
|
|
460
|
+
// oauth required
|
|
461
|
+
_e[_f] = _g.sent();
|
|
462
|
+
_g.label = 6;
|
|
463
|
+
case 6: return [4 /*yield*/, this.request({
|
|
464
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/".replace("{".concat("option_id", "}"), encodeURIComponent(String(requestParameters['optionId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
465
|
+
method: 'DELETE',
|
|
466
|
+
headers: headerParameters,
|
|
467
|
+
query: queryParameters,
|
|
468
|
+
}, initOverrides)];
|
|
469
|
+
case 7:
|
|
470
|
+
response = _g.sent();
|
|
471
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* Delete an issue property option
|
|
478
|
+
* Delete an issue property option
|
|
479
|
+
*/
|
|
480
|
+
WorkItemPropertiesApi.prototype.deleteIssuePropertyOption = function (requestParameters, initOverrides) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
+
return __generator(this, function (_a) {
|
|
483
|
+
switch (_a.label) {
|
|
484
|
+
case 0: return [4 /*yield*/, this.deleteIssuePropertyOptionRaw(requestParameters, initOverrides)];
|
|
485
|
+
case 1:
|
|
486
|
+
_a.sent();
|
|
487
|
+
return [2 /*return*/];
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* List issue properties
|
|
494
|
+
* List issue properties
|
|
495
|
+
*/
|
|
496
|
+
WorkItemPropertiesApi.prototype.listIssuePropertiesRaw = function (requestParameters, initOverrides) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
499
|
+
return __generator(this, function (_g) {
|
|
500
|
+
switch (_g.label) {
|
|
501
|
+
case 0:
|
|
502
|
+
if (requestParameters['projectId'] == null) {
|
|
503
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listIssueProperties().');
|
|
504
|
+
}
|
|
505
|
+
if (requestParameters['slug'] == null) {
|
|
506
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling listIssueProperties().');
|
|
507
|
+
}
|
|
508
|
+
if (requestParameters['typeId'] == null) {
|
|
509
|
+
throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling listIssueProperties().');
|
|
510
|
+
}
|
|
511
|
+
queryParameters = {};
|
|
512
|
+
headerParameters = {};
|
|
513
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
514
|
+
_a = headerParameters;
|
|
515
|
+
_b = "X-API-Key";
|
|
516
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
517
|
+
case 1:
|
|
518
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
519
|
+
_g.label = 2;
|
|
520
|
+
case 2:
|
|
521
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
522
|
+
// oauth required
|
|
523
|
+
_c = headerParameters;
|
|
524
|
+
_d = "Authorization";
|
|
525
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
526
|
+
case 3:
|
|
527
|
+
// oauth required
|
|
528
|
+
_c[_d] = _g.sent();
|
|
529
|
+
_g.label = 4;
|
|
530
|
+
case 4:
|
|
531
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
532
|
+
// oauth required
|
|
533
|
+
_e = headerParameters;
|
|
534
|
+
_f = "Authorization";
|
|
535
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
536
|
+
case 5:
|
|
537
|
+
// oauth required
|
|
538
|
+
_e[_f] = _g.sent();
|
|
539
|
+
_g.label = 6;
|
|
540
|
+
case 6: return [4 /*yield*/, this.request({
|
|
541
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))).replace("{".concat("type_id", "}"), encodeURIComponent(String(requestParameters['typeId']))),
|
|
542
|
+
method: 'GET',
|
|
543
|
+
headers: headerParameters,
|
|
544
|
+
query: queryParameters,
|
|
545
|
+
}, initOverrides)];
|
|
546
|
+
case 7:
|
|
547
|
+
response = _g.sent();
|
|
548
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyAPIFromJSON)(jsonValue); })];
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* List issue properties
|
|
555
|
+
* List issue properties
|
|
556
|
+
*/
|
|
557
|
+
WorkItemPropertiesApi.prototype.listIssueProperties = function (requestParameters, initOverrides) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
559
|
+
var response;
|
|
560
|
+
return __generator(this, function (_a) {
|
|
561
|
+
switch (_a.label) {
|
|
562
|
+
case 0: return [4 /*yield*/, this.listIssuePropertiesRaw(requestParameters, initOverrides)];
|
|
563
|
+
case 1:
|
|
564
|
+
response = _a.sent();
|
|
565
|
+
return [4 /*yield*/, response.value()];
|
|
566
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
});
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* List issue property options
|
|
573
|
+
* List issue property options
|
|
574
|
+
*/
|
|
575
|
+
WorkItemPropertiesApi.prototype.listIssuePropertyOptionsRaw = function (requestParameters, initOverrides) {
|
|
576
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
577
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
578
|
+
return __generator(this, function (_g) {
|
|
579
|
+
switch (_g.label) {
|
|
580
|
+
case 0:
|
|
581
|
+
if (requestParameters['projectId'] == null) {
|
|
582
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listIssuePropertyOptions().');
|
|
583
|
+
}
|
|
584
|
+
if (requestParameters['propertyId'] == null) {
|
|
585
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyOptions().');
|
|
586
|
+
}
|
|
587
|
+
if (requestParameters['slug'] == null) {
|
|
588
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling listIssuePropertyOptions().');
|
|
589
|
+
}
|
|
590
|
+
queryParameters = {};
|
|
591
|
+
headerParameters = {};
|
|
592
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
593
|
+
_a = headerParameters;
|
|
594
|
+
_b = "X-API-Key";
|
|
595
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
596
|
+
case 1:
|
|
597
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
598
|
+
_g.label = 2;
|
|
599
|
+
case 2:
|
|
600
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
601
|
+
// oauth required
|
|
602
|
+
_c = headerParameters;
|
|
603
|
+
_d = "Authorization";
|
|
604
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
605
|
+
case 3:
|
|
606
|
+
// oauth required
|
|
607
|
+
_c[_d] = _g.sent();
|
|
608
|
+
_g.label = 4;
|
|
609
|
+
case 4:
|
|
610
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
611
|
+
// oauth required
|
|
612
|
+
_e = headerParameters;
|
|
613
|
+
_f = "Authorization";
|
|
614
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
615
|
+
case 5:
|
|
616
|
+
// oauth required
|
|
617
|
+
_e[_f] = _g.sent();
|
|
618
|
+
_g.label = 6;
|
|
619
|
+
case 6: return [4 /*yield*/, this.request({
|
|
620
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
621
|
+
method: 'GET',
|
|
622
|
+
headers: headerParameters,
|
|
623
|
+
query: queryParameters,
|
|
624
|
+
}, initOverrides)];
|
|
625
|
+
case 7:
|
|
626
|
+
response = _g.sent();
|
|
627
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyOptionAPIFromJSON)(jsonValue); })];
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* List issue property options
|
|
634
|
+
* List issue property options
|
|
635
|
+
*/
|
|
636
|
+
WorkItemPropertiesApi.prototype.listIssuePropertyOptions = function (requestParameters, initOverrides) {
|
|
637
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
638
|
+
var response;
|
|
639
|
+
return __generator(this, function (_a) {
|
|
640
|
+
switch (_a.label) {
|
|
641
|
+
case 0: return [4 /*yield*/, this.listIssuePropertyOptionsRaw(requestParameters, initOverrides)];
|
|
642
|
+
case 1:
|
|
643
|
+
response = _a.sent();
|
|
644
|
+
return [4 /*yield*/, response.value()];
|
|
645
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
646
|
+
}
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* List issue property values
|
|
652
|
+
* List issue property values
|
|
653
|
+
*/
|
|
654
|
+
WorkItemPropertiesApi.prototype.listIssuePropertyValuesRaw = function (requestParameters, initOverrides) {
|
|
655
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
656
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
657
|
+
return __generator(this, function (_g) {
|
|
658
|
+
switch (_g.label) {
|
|
659
|
+
case 0:
|
|
660
|
+
if (requestParameters['issueId'] == null) {
|
|
661
|
+
throw new runtime.RequiredError('issueId', 'Required parameter "issueId" was null or undefined when calling listIssuePropertyValues().');
|
|
662
|
+
}
|
|
663
|
+
if (requestParameters['projectId'] == null) {
|
|
664
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listIssuePropertyValues().');
|
|
665
|
+
}
|
|
666
|
+
if (requestParameters['propertyId'] == null) {
|
|
667
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValues().');
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters['slug'] == null) {
|
|
670
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling listIssuePropertyValues().');
|
|
671
|
+
}
|
|
672
|
+
queryParameters = {};
|
|
673
|
+
headerParameters = {};
|
|
674
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
675
|
+
_a = headerParameters;
|
|
676
|
+
_b = "X-API-Key";
|
|
677
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
678
|
+
case 1:
|
|
679
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
680
|
+
_g.label = 2;
|
|
681
|
+
case 2:
|
|
682
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
683
|
+
// oauth required
|
|
684
|
+
_c = headerParameters;
|
|
685
|
+
_d = "Authorization";
|
|
686
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
687
|
+
case 3:
|
|
688
|
+
// oauth required
|
|
689
|
+
_c[_d] = _g.sent();
|
|
690
|
+
_g.label = 4;
|
|
691
|
+
case 4:
|
|
692
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
693
|
+
// oauth required
|
|
694
|
+
_e = headerParameters;
|
|
695
|
+
_f = "Authorization";
|
|
696
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
697
|
+
case 5:
|
|
698
|
+
// oauth required
|
|
699
|
+
_e[_f] = _g.sent();
|
|
700
|
+
_g.label = 6;
|
|
701
|
+
case 6: return [4 /*yield*/, this.request({
|
|
702
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/values/".replace("{".concat("issue_id", "}"), encodeURIComponent(String(requestParameters['issueId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
703
|
+
method: 'GET',
|
|
704
|
+
headers: headerParameters,
|
|
705
|
+
query: queryParameters,
|
|
706
|
+
}, initOverrides)];
|
|
707
|
+
case 7:
|
|
708
|
+
response = _g.sent();
|
|
709
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyValueAPIFromJSON)(jsonValue); })];
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
});
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* List issue property values
|
|
716
|
+
* List issue property values
|
|
717
|
+
*/
|
|
718
|
+
WorkItemPropertiesApi.prototype.listIssuePropertyValues = function (requestParameters, initOverrides) {
|
|
719
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
720
|
+
var response;
|
|
721
|
+
return __generator(this, function (_a) {
|
|
722
|
+
switch (_a.label) {
|
|
723
|
+
case 0: return [4 /*yield*/, this.listIssuePropertyValuesRaw(requestParameters, initOverrides)];
|
|
724
|
+
case 1:
|
|
725
|
+
response = _a.sent();
|
|
726
|
+
return [4 /*yield*/, response.value()];
|
|
727
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
};
|
|
732
|
+
/**
|
|
733
|
+
* Get issue property by id
|
|
734
|
+
* Get issue property by id
|
|
735
|
+
*/
|
|
736
|
+
WorkItemPropertiesApi.prototype.retrieveIssuePropertyRaw = function (requestParameters, initOverrides) {
|
|
737
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
738
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
739
|
+
return __generator(this, function (_g) {
|
|
740
|
+
switch (_g.label) {
|
|
741
|
+
case 0:
|
|
742
|
+
if (requestParameters['projectId'] == null) {
|
|
743
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling retrieveIssueProperty().');
|
|
744
|
+
}
|
|
745
|
+
if (requestParameters['propertyId'] == null) {
|
|
746
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling retrieveIssueProperty().');
|
|
747
|
+
}
|
|
748
|
+
if (requestParameters['slug'] == null) {
|
|
749
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling retrieveIssueProperty().');
|
|
750
|
+
}
|
|
751
|
+
if (requestParameters['typeId'] == null) {
|
|
752
|
+
throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling retrieveIssueProperty().');
|
|
753
|
+
}
|
|
754
|
+
queryParameters = {};
|
|
755
|
+
headerParameters = {};
|
|
756
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
757
|
+
_a = headerParameters;
|
|
758
|
+
_b = "X-API-Key";
|
|
759
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
760
|
+
case 1:
|
|
761
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
762
|
+
_g.label = 2;
|
|
763
|
+
case 2:
|
|
764
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
765
|
+
// oauth required
|
|
766
|
+
_c = headerParameters;
|
|
767
|
+
_d = "Authorization";
|
|
768
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
769
|
+
case 3:
|
|
770
|
+
// oauth required
|
|
771
|
+
_c[_d] = _g.sent();
|
|
772
|
+
_g.label = 4;
|
|
773
|
+
case 4:
|
|
774
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
775
|
+
// oauth required
|
|
776
|
+
_e = headerParameters;
|
|
777
|
+
_f = "Authorization";
|
|
778
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
779
|
+
case 5:
|
|
780
|
+
// oauth required
|
|
781
|
+
_e[_f] = _g.sent();
|
|
782
|
+
_g.label = 6;
|
|
783
|
+
case 6: return [4 /*yield*/, this.request({
|
|
784
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))).replace("{".concat("type_id", "}"), encodeURIComponent(String(requestParameters['typeId']))),
|
|
785
|
+
method: 'GET',
|
|
786
|
+
headers: headerParameters,
|
|
787
|
+
query: queryParameters,
|
|
788
|
+
}, initOverrides)];
|
|
789
|
+
case 7:
|
|
790
|
+
response = _g.sent();
|
|
791
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyAPIFromJSON)(jsonValue); })];
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
});
|
|
795
|
+
};
|
|
796
|
+
/**
|
|
797
|
+
* Get issue property by id
|
|
798
|
+
* Get issue property by id
|
|
799
|
+
*/
|
|
800
|
+
WorkItemPropertiesApi.prototype.retrieveIssueProperty = function (requestParameters, initOverrides) {
|
|
801
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
802
|
+
var response;
|
|
803
|
+
return __generator(this, function (_a) {
|
|
804
|
+
switch (_a.label) {
|
|
805
|
+
case 0: return [4 /*yield*/, this.retrieveIssuePropertyRaw(requestParameters, initOverrides)];
|
|
806
|
+
case 1:
|
|
807
|
+
response = _a.sent();
|
|
808
|
+
return [4 /*yield*/, response.value()];
|
|
809
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
});
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Get issue property option by id
|
|
816
|
+
* Get issue property option by id
|
|
817
|
+
*/
|
|
818
|
+
WorkItemPropertiesApi.prototype.retrieveIssuePropertyOptionRaw = function (requestParameters, initOverrides) {
|
|
819
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
820
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
821
|
+
return __generator(this, function (_g) {
|
|
822
|
+
switch (_g.label) {
|
|
823
|
+
case 0:
|
|
824
|
+
if (requestParameters['optionId'] == null) {
|
|
825
|
+
throw new runtime.RequiredError('optionId', 'Required parameter "optionId" was null or undefined when calling retrieveIssuePropertyOption().');
|
|
826
|
+
}
|
|
827
|
+
if (requestParameters['projectId'] == null) {
|
|
828
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling retrieveIssuePropertyOption().');
|
|
829
|
+
}
|
|
830
|
+
if (requestParameters['propertyId'] == null) {
|
|
831
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling retrieveIssuePropertyOption().');
|
|
832
|
+
}
|
|
833
|
+
if (requestParameters['slug'] == null) {
|
|
834
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling retrieveIssuePropertyOption().');
|
|
835
|
+
}
|
|
836
|
+
queryParameters = {};
|
|
837
|
+
headerParameters = {};
|
|
838
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
839
|
+
_a = headerParameters;
|
|
840
|
+
_b = "X-API-Key";
|
|
841
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
842
|
+
case 1:
|
|
843
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
844
|
+
_g.label = 2;
|
|
845
|
+
case 2:
|
|
846
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
847
|
+
// oauth required
|
|
848
|
+
_c = headerParameters;
|
|
849
|
+
_d = "Authorization";
|
|
850
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
851
|
+
case 3:
|
|
852
|
+
// oauth required
|
|
853
|
+
_c[_d] = _g.sent();
|
|
854
|
+
_g.label = 4;
|
|
855
|
+
case 4:
|
|
856
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
857
|
+
// oauth required
|
|
858
|
+
_e = headerParameters;
|
|
859
|
+
_f = "Authorization";
|
|
860
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
861
|
+
case 5:
|
|
862
|
+
// oauth required
|
|
863
|
+
_e[_f] = _g.sent();
|
|
864
|
+
_g.label = 6;
|
|
865
|
+
case 6: return [4 /*yield*/, this.request({
|
|
866
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/".replace("{".concat("option_id", "}"), encodeURIComponent(String(requestParameters['optionId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
867
|
+
method: 'GET',
|
|
868
|
+
headers: headerParameters,
|
|
869
|
+
query: queryParameters,
|
|
870
|
+
}, initOverrides)];
|
|
871
|
+
case 7:
|
|
872
|
+
response = _g.sent();
|
|
873
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyOptionAPIFromJSON)(jsonValue); })];
|
|
874
|
+
}
|
|
875
|
+
});
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* Get issue property option by id
|
|
880
|
+
* Get issue property option by id
|
|
881
|
+
*/
|
|
882
|
+
WorkItemPropertiesApi.prototype.retrieveIssuePropertyOption = function (requestParameters, initOverrides) {
|
|
883
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
884
|
+
var response;
|
|
885
|
+
return __generator(this, function (_a) {
|
|
886
|
+
switch (_a.label) {
|
|
887
|
+
case 0: return [4 /*yield*/, this.retrieveIssuePropertyOptionRaw(requestParameters, initOverrides)];
|
|
888
|
+
case 1:
|
|
889
|
+
response = _a.sent();
|
|
890
|
+
return [4 /*yield*/, response.value()];
|
|
891
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Update an issue property
|
|
898
|
+
* Update an issue property
|
|
899
|
+
*/
|
|
900
|
+
WorkItemPropertiesApi.prototype.updateIssuePropertyRaw = function (requestParameters, initOverrides) {
|
|
901
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
902
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
903
|
+
return __generator(this, function (_g) {
|
|
904
|
+
switch (_g.label) {
|
|
905
|
+
case 0:
|
|
906
|
+
if (requestParameters['projectId'] == null) {
|
|
907
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateIssueProperty().');
|
|
908
|
+
}
|
|
909
|
+
if (requestParameters['propertyId'] == null) {
|
|
910
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling updateIssueProperty().');
|
|
911
|
+
}
|
|
912
|
+
if (requestParameters['slug'] == null) {
|
|
913
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling updateIssueProperty().');
|
|
914
|
+
}
|
|
915
|
+
if (requestParameters['typeId'] == null) {
|
|
916
|
+
throw new runtime.RequiredError('typeId', 'Required parameter "typeId" was null or undefined when calling updateIssueProperty().');
|
|
917
|
+
}
|
|
918
|
+
queryParameters = {};
|
|
919
|
+
headerParameters = {};
|
|
920
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
921
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
922
|
+
_a = headerParameters;
|
|
923
|
+
_b = "X-API-Key";
|
|
924
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
925
|
+
case 1:
|
|
926
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
927
|
+
_g.label = 2;
|
|
928
|
+
case 2:
|
|
929
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
930
|
+
// oauth required
|
|
931
|
+
_c = headerParameters;
|
|
932
|
+
_d = "Authorization";
|
|
933
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
934
|
+
case 3:
|
|
935
|
+
// oauth required
|
|
936
|
+
_c[_d] = _g.sent();
|
|
937
|
+
_g.label = 4;
|
|
938
|
+
case 4:
|
|
939
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
940
|
+
// oauth required
|
|
941
|
+
_e = headerParameters;
|
|
942
|
+
_f = "Authorization";
|
|
943
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
944
|
+
case 5:
|
|
945
|
+
// oauth required
|
|
946
|
+
_e[_f] = _g.sent();
|
|
947
|
+
_g.label = 6;
|
|
948
|
+
case 6: return [4 /*yield*/, this.request({
|
|
949
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/".replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))).replace("{".concat("type_id", "}"), encodeURIComponent(String(requestParameters['typeId']))),
|
|
950
|
+
method: 'PATCH',
|
|
951
|
+
headers: headerParameters,
|
|
952
|
+
query: queryParameters,
|
|
953
|
+
body: (0, index_1.PatchedIssuePropertyAPIRequestToJSON)(requestParameters['patchedIssuePropertyAPIRequest']),
|
|
954
|
+
}, initOverrides)];
|
|
955
|
+
case 7:
|
|
956
|
+
response = _g.sent();
|
|
957
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyAPIFromJSON)(jsonValue); })];
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Update an issue property
|
|
964
|
+
* Update an issue property
|
|
965
|
+
*/
|
|
966
|
+
WorkItemPropertiesApi.prototype.updateIssueProperty = function (requestParameters, initOverrides) {
|
|
967
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
968
|
+
var response;
|
|
969
|
+
return __generator(this, function (_a) {
|
|
970
|
+
switch (_a.label) {
|
|
971
|
+
case 0: return [4 /*yield*/, this.updateIssuePropertyRaw(requestParameters, initOverrides)];
|
|
972
|
+
case 1:
|
|
973
|
+
response = _a.sent();
|
|
974
|
+
return [4 /*yield*/, response.value()];
|
|
975
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
});
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
* Update an issue property option
|
|
982
|
+
* Update an issue property option
|
|
983
|
+
*/
|
|
984
|
+
WorkItemPropertiesApi.prototype.updateIssuePropertyOptionRaw = function (requestParameters, initOverrides) {
|
|
985
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
986
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, response;
|
|
987
|
+
return __generator(this, function (_g) {
|
|
988
|
+
switch (_g.label) {
|
|
989
|
+
case 0:
|
|
990
|
+
if (requestParameters['optionId'] == null) {
|
|
991
|
+
throw new runtime.RequiredError('optionId', 'Required parameter "optionId" was null or undefined when calling updateIssuePropertyOption().');
|
|
992
|
+
}
|
|
993
|
+
if (requestParameters['projectId'] == null) {
|
|
994
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateIssuePropertyOption().');
|
|
995
|
+
}
|
|
996
|
+
if (requestParameters['propertyId'] == null) {
|
|
997
|
+
throw new runtime.RequiredError('propertyId', 'Required parameter "propertyId" was null or undefined when calling updateIssuePropertyOption().');
|
|
998
|
+
}
|
|
999
|
+
if (requestParameters['slug'] == null) {
|
|
1000
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling updateIssuePropertyOption().');
|
|
1001
|
+
}
|
|
1002
|
+
queryParameters = {};
|
|
1003
|
+
headerParameters = {};
|
|
1004
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1005
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1006
|
+
_a = headerParameters;
|
|
1007
|
+
_b = "X-API-Key";
|
|
1008
|
+
return [4 /*yield*/, this.configuration.apiKey("X-API-Key")];
|
|
1009
|
+
case 1:
|
|
1010
|
+
_a[_b] = _g.sent(); // ApiKeyAuthentication authentication
|
|
1011
|
+
_g.label = 2;
|
|
1012
|
+
case 2:
|
|
1013
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
1014
|
+
// oauth required
|
|
1015
|
+
_c = headerParameters;
|
|
1016
|
+
_d = "Authorization";
|
|
1017
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
1018
|
+
case 3:
|
|
1019
|
+
// oauth required
|
|
1020
|
+
_c[_d] = _g.sent();
|
|
1021
|
+
_g.label = 4;
|
|
1022
|
+
case 4:
|
|
1023
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 6];
|
|
1024
|
+
// oauth required
|
|
1025
|
+
_e = headerParameters;
|
|
1026
|
+
_f = "Authorization";
|
|
1027
|
+
return [4 /*yield*/, this.configuration.accessToken("OAuth2Authentication", [])];
|
|
1028
|
+
case 5:
|
|
1029
|
+
// oauth required
|
|
1030
|
+
_e[_f] = _g.sent();
|
|
1031
|
+
_g.label = 6;
|
|
1032
|
+
case 6: return [4 /*yield*/, this.request({
|
|
1033
|
+
path: "/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/".replace("{".concat("option_id", "}"), encodeURIComponent(String(requestParameters['optionId']))).replace("{".concat("project_id", "}"), encodeURIComponent(String(requestParameters['projectId']))).replace("{".concat("property_id", "}"), encodeURIComponent(String(requestParameters['propertyId']))).replace("{".concat("slug", "}"), encodeURIComponent(String(requestParameters['slug']))),
|
|
1034
|
+
method: 'PATCH',
|
|
1035
|
+
headers: headerParameters,
|
|
1036
|
+
query: queryParameters,
|
|
1037
|
+
body: (0, index_1.PatchedIssuePropertyOptionAPIRequestToJSON)(requestParameters['patchedIssuePropertyOptionAPIRequest']),
|
|
1038
|
+
}, initOverrides)];
|
|
1039
|
+
case 7:
|
|
1040
|
+
response = _g.sent();
|
|
1041
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssuePropertyOptionAPIFromJSON)(jsonValue); })];
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* Update an issue property option
|
|
1048
|
+
* Update an issue property option
|
|
1049
|
+
*/
|
|
1050
|
+
WorkItemPropertiesApi.prototype.updateIssuePropertyOption = function (requestParameters, initOverrides) {
|
|
1051
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1052
|
+
var response;
|
|
1053
|
+
return __generator(this, function (_a) {
|
|
1054
|
+
switch (_a.label) {
|
|
1055
|
+
case 0: return [4 /*yield*/, this.updateIssuePropertyOptionRaw(requestParameters, initOverrides)];
|
|
1056
|
+
case 1:
|
|
1057
|
+
response = _a.sent();
|
|
1058
|
+
return [4 /*yield*/, response.value()];
|
|
1059
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
return WorkItemPropertiesApi;
|
|
1065
|
+
}(runtime.BaseAPI));
|
|
1066
|
+
exports.WorkItemPropertiesApi = WorkItemPropertiesApi;
|