@makeplane/plane-node-sdk 0.1.5 → 0.2.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/LICENSE +7 -0
- package/README.md +117 -76
- package/dist/Configuration.d.ts +21 -0
- package/dist/Configuration.d.ts.map +1 -0
- package/dist/Configuration.js +28 -0
- package/dist/Configuration.js.map +1 -0
- package/dist/api/BaseResource.d.ts +55 -0
- package/dist/api/BaseResource.d.ts.map +1 -0
- package/dist/api/BaseResource.js +179 -0
- package/dist/api/BaseResource.js.map +1 -0
- package/dist/api/Customers/Properties.d.ts +44 -0
- package/dist/api/Customers/Properties.d.ts.map +1 -0
- package/dist/api/Customers/Properties.js +65 -0
- package/dist/api/Customers/Properties.js.map +1 -0
- package/dist/api/Customers/Requests.d.ts +32 -0
- package/dist/api/Customers/Requests.d.ts.map +1 -0
- package/dist/api/Customers/Requests.js +45 -0
- package/dist/api/Customers/Requests.js.map +1 -0
- package/dist/api/Customers/index.d.ts +49 -0
- package/dist/api/Customers/index.d.ts.map +1 -0
- package/dist/api/Customers/index.js +71 -0
- package/dist/api/Customers/index.js.map +1 -0
- package/dist/api/Cycles.d.ts +61 -0
- package/dist/api/Cycles.d.ts.map +1 -0
- package/dist/api/Cycles.js +89 -0
- package/dist/api/Cycles.js.map +1 -0
- package/dist/api/Epics.d.ts +20 -0
- package/dist/api/Epics.d.ts.map +1 -0
- package/dist/api/Epics.js +27 -0
- package/dist/api/Epics.js.map +1 -0
- package/dist/api/Intake.d.ts +32 -0
- package/dist/api/Intake.d.ts.map +1 -0
- package/dist/api/Intake.js +45 -0
- package/dist/api/Intake.js.map +1 -0
- package/dist/api/Labels.d.ts +58 -0
- package/dist/api/Labels.d.ts.map +1 -0
- package/dist/api/Labels.js +45 -0
- package/dist/api/Labels.js.map +1 -0
- package/dist/api/Links.d.ts +32 -0
- package/dist/api/Links.d.ts.map +1 -0
- package/dist/api/Links.js +45 -0
- package/dist/api/Links.js.map +1 -0
- package/dist/api/Members.d.ts +56 -0
- package/dist/api/Members.d.ts.map +1 -0
- package/dist/api/Members.js +45 -0
- package/dist/api/Members.js.map +1 -0
- package/dist/api/Modules.d.ts +57 -0
- package/dist/api/Modules.d.ts.map +1 -0
- package/dist/api/Modules.js +83 -0
- package/dist/api/Modules.js.map +1 -0
- package/dist/api/Pages.d.ts +35 -0
- package/dist/api/Pages.d.ts.map +1 -0
- package/dist/api/Pages.js +53 -0
- package/dist/api/Pages.js.map +1 -0
- package/dist/api/Projects.d.ts +41 -0
- package/dist/api/Projects.d.ts.map +1 -0
- package/dist/api/Projects.js +60 -0
- package/dist/api/Projects.js.map +1 -0
- package/dist/api/States.d.ts +32 -0
- package/dist/api/States.d.ts.map +1 -0
- package/dist/api/States.js +45 -0
- package/dist/api/States.js.map +1 -0
- package/dist/api/Users.d.ts +15 -0
- package/dist/api/Users.d.ts.map +1 -0
- package/dist/api/Users.js +21 -0
- package/dist/api/Users.js.map +1 -0
- package/dist/api/WorkItemProperties/Options.d.ts +31 -0
- package/dist/api/WorkItemProperties/Options.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/Options.js +45 -0
- package/dist/api/WorkItemProperties/Options.js.map +1 -0
- package/dist/api/WorkItemProperties/Values.d.ts +23 -0
- package/dist/api/WorkItemProperties/Values.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/Values.js +34 -0
- package/dist/api/WorkItemProperties/Values.js.map +1 -0
- package/dist/api/WorkItemProperties/index.d.ts +35 -0
- package/dist/api/WorkItemProperties/index.d.ts.map +1 -0
- package/dist/api/WorkItemProperties/index.js +49 -0
- package/dist/api/WorkItemProperties/index.js.map +1 -0
- package/dist/api/WorkItemTypes.d.ts +36 -0
- package/dist/api/WorkItemTypes.d.ts.map +1 -0
- package/dist/api/WorkItemTypes.js +45 -0
- package/dist/api/WorkItemTypes.js.map +1 -0
- package/dist/api/WorkItems/Activities.d.ts +20 -0
- package/dist/api/WorkItems/Activities.d.ts.map +1 -0
- package/dist/api/WorkItems/Activities.js +27 -0
- package/dist/api/WorkItems/Activities.js.map +1 -0
- package/dist/api/WorkItems/Attachments.d.ts +31 -0
- package/dist/api/WorkItems/Attachments.d.ts.map +1 -0
- package/dist/api/WorkItems/Attachments.js +45 -0
- package/dist/api/WorkItems/Attachments.js.map +1 -0
- package/dist/api/WorkItems/Comments.d.ts +32 -0
- package/dist/api/WorkItems/Comments.d.ts.map +1 -0
- package/dist/api/WorkItems/Comments.js +45 -0
- package/dist/api/WorkItems/Comments.js.map +1 -0
- package/dist/api/WorkItems/Relations.d.ts +23 -0
- package/dist/api/WorkItems/Relations.d.ts.map +1 -0
- package/dist/api/WorkItems/Relations.js +33 -0
- package/dist/api/WorkItems/Relations.js.map +1 -0
- package/dist/api/WorkItems/WorkLogs.d.ts +27 -0
- package/dist/api/WorkItems/WorkLogs.d.ts.map +1 -0
- package/dist/api/WorkItems/WorkLogs.js +39 -0
- package/dist/api/WorkItems/WorkLogs.js.map +1 -0
- package/dist/api/WorkItems/index.d.ts +48 -0
- package/dist/api/WorkItems/index.d.ts.map +1 -0
- package/dist/api/WorkItems/index.js +75 -0
- package/dist/api/WorkItems/index.js.map +1 -0
- package/dist/api/Workspace.d.ts +15 -0
- package/dist/api/Workspace.d.ts.map +1 -0
- package/dist/api/Workspace.js +21 -0
- package/dist/api/Workspace.js.map +1 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -0
- package/dist/client/index.js.map +1 -0
- package/dist/{oauth/api.d.ts → client/oauth-client.d.ts} +7 -5
- package/dist/client/oauth-client.d.ts.map +1 -0
- package/dist/client/oauth-client.js +129 -0
- package/dist/client/oauth-client.js.map +1 -0
- package/dist/client/plane-client.d.ts +47 -0
- package/dist/client/plane-client.d.ts.map +1 -0
- package/dist/client/plane-client.js +55 -0
- package/dist/client/plane-client.js.map +1 -0
- package/dist/errors/HttpError.d.ts +8 -0
- package/dist/errors/HttpError.d.ts.map +1 -0
- package/dist/errors/HttpError.js +15 -0
- package/dist/errors/HttpError.js.map +1 -0
- package/dist/errors/PlaneError.d.ts +9 -0
- package/dist/errors/PlaneError.d.ts.map +1 -0
- package/dist/errors/PlaneError.js +16 -0
- package/dist/errors/PlaneError.js.map +1 -0
- package/dist/errors/index.d.ts +3 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +8 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +31 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +67 -5
- package/dist/index.js.map +1 -0
- package/dist/models/Attachment.d.ts +46 -0
- package/dist/models/Attachment.d.ts.map +1 -0
- package/dist/models/Attachment.js +7 -0
- package/dist/models/Attachment.js.map +1 -0
- package/dist/models/Comment.d.ts +43 -0
- package/dist/models/Comment.d.ts.map +1 -0
- package/dist/models/Comment.js +3 -0
- package/dist/models/Comment.js.map +1 -0
- package/dist/models/Customer.d.ts +136 -0
- package/dist/models/Customer.d.ts.map +1 -0
- package/dist/models/Customer.js +3 -0
- package/dist/models/Customer.js.map +1 -0
- package/dist/models/Cycle.d.ts +59 -210
- package/dist/models/Cycle.d.ts.map +1 -0
- package/dist/models/Cycle.js +1 -91
- package/dist/models/Cycle.js.map +1 -0
- package/dist/models/Epic.d.ts +28 -200
- package/dist/models/Epic.d.ts.map +1 -0
- package/dist/models/Epic.js +1 -104
- package/dist/models/Epic.js.map +1 -0
- package/dist/models/Intake.d.ts +48 -0
- package/dist/models/Intake.d.ts.map +1 -0
- package/dist/models/Intake.js +3 -0
- package/dist/models/Intake.js.map +1 -0
- package/dist/models/Label.d.ts +13 -113
- package/dist/models/Label.d.ts.map +1 -0
- package/dist/models/Label.js +1 -68
- package/dist/models/Label.js.map +1 -0
- package/dist/models/Link.d.ts +25 -0
- package/dist/models/Link.d.ts.map +1 -0
- package/dist/{oauth/models.js → models/Link.js} +1 -0
- package/dist/models/Link.js.map +1 -0
- package/dist/models/Module.d.ts +55 -193
- package/dist/models/Module.d.ts.map +1 -0
- package/dist/models/Module.js +1 -89
- package/dist/models/Module.js.map +1 -0
- package/dist/{oauth/models.d.ts → models/OAuth.d.ts} +1 -0
- package/dist/models/OAuth.d.ts.map +1 -0
- package/dist/models/OAuth.js +3 -0
- package/dist/models/OAuth.js.map +1 -0
- package/dist/models/Page.d.ts +14 -0
- package/dist/models/Page.d.ts.map +1 -0
- package/dist/models/Page.js +3 -0
- package/dist/models/Page.js.map +1 -0
- package/dist/models/Project.d.ts +42 -290
- package/dist/models/Project.d.ts.map +1 -0
- package/dist/models/Project.js +1 -122
- package/dist/models/Project.js.map +1 -0
- package/dist/models/State.d.ts +34 -124
- package/dist/models/State.d.ts.map +1 -0
- package/dist/models/State.js +2 -73
- package/dist/models/State.js.map +1 -0
- package/dist/models/User.d.ts +10 -0
- package/dist/models/User.d.ts.map +1 -0
- package/dist/models/User.js +3 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/WorkItem.d.ts +111 -0
- package/dist/models/WorkItem.d.ts.map +1 -0
- package/dist/models/WorkItem.js +3 -0
- package/dist/models/WorkItem.js.map +1 -0
- package/dist/models/WorkItemProperty.d.ts +123 -0
- package/dist/models/WorkItemProperty.d.ts.map +1 -0
- package/dist/models/WorkItemProperty.js +3 -0
- package/dist/models/WorkItemProperty.js.map +1 -0
- package/dist/models/WorkItemRelation.d.ts +34 -0
- package/dist/models/WorkItemRelation.d.ts.map +1 -0
- package/dist/models/WorkItemRelation.js +3 -0
- package/dist/models/WorkItemRelation.js.map +1 -0
- package/dist/models/WorkItemType.d.ts +18 -0
- package/dist/models/WorkItemType.d.ts.map +1 -0
- package/dist/models/WorkItemType.js +3 -0
- package/dist/models/WorkItemType.js.map +1 -0
- package/dist/models/WorkLog.d.ts +23 -0
- package/dist/models/WorkLog.d.ts.map +1 -0
- package/dist/models/WorkLog.js +3 -0
- package/dist/models/WorkLog.js.map +1 -0
- package/dist/models/common.d.ts +63 -0
- package/dist/models/common.d.ts.map +1 -0
- package/dist/models/common.js +6 -0
- package/dist/models/common.js.map +1 -0
- package/dist/models/index.d.ts +11 -106
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +9 -105
- package/dist/models/index.js.map +1 -0
- package/package.json +49 -14
- package/.github/workflows/publish-node-sdk.yml +0 -42
- package/.openapi-generator/FILES +0 -138
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/dist/apis/AssetsApi.d.ts +0 -100
- package/dist/apis/AssetsApi.js +0 -522
- package/dist/apis/CyclesApi.d.ts +0 -225
- package/dist/apis/CyclesApi.js +0 -1142
- package/dist/apis/EpicsApi.d.ts +0 -49
- package/dist/apis/EpicsApi.js +0 -243
- package/dist/apis/IntakeApi.d.ts +0 -96
- package/dist/apis/IntakeApi.js +0 -485
- package/dist/apis/LabelsApi.d.ts +0 -97
- package/dist/apis/LabelsApi.js +0 -488
- package/dist/apis/MembersApi.d.ts +0 -44
- package/dist/apis/MembersApi.js +0 -228
- package/dist/apis/ModulesApi.d.ts +0 -198
- package/dist/apis/ModulesApi.js +0 -991
- package/dist/apis/PagesApi.d.ts +0 -75
- package/dist/apis/PagesApi.js +0 -393
- package/dist/apis/ProjectsApi.d.ts +0 -120
- package/dist/apis/ProjectsApi.js +0 -621
- package/dist/apis/StatesApi.d.ts +0 -96
- package/dist/apis/StatesApi.js +0 -485
- package/dist/apis/UsersApi.d.ts +0 -27
- package/dist/apis/UsersApi.js +0 -149
- package/dist/apis/WorkItemActivityApi.d.ts +0 -58
- package/dist/apis/WorkItemActivityApi.js +0 -270
- package/dist/apis/WorkItemAttachmentsApi.d.ts +0 -97
- package/dist/apis/WorkItemAttachmentsApi.js +0 -482
- package/dist/apis/WorkItemCommentsApi.d.ts +0 -102
- package/dist/apis/WorkItemCommentsApi.js +0 -500
- package/dist/apis/WorkItemLinksApi.d.ts +0 -106
- package/dist/apis/WorkItemLinksApi.js +0 -515
- package/dist/apis/WorkItemPropertiesApi.d.ts +0 -226
- package/dist/apis/WorkItemPropertiesApi.js +0 -1148
- package/dist/apis/WorkItemTypesApi.d.ts +0 -92
- package/dist/apis/WorkItemTypesApi.js +0 -473
- package/dist/apis/WorkItemWorklogsApi.d.ts +0 -95
- package/dist/apis/WorkItemWorklogsApi.js +0 -479
- package/dist/apis/WorkItemsApi.d.ts +0 -186
- package/dist/apis/WorkItemsApi.js +0 -934
- package/dist/apis/WorkspacesApi.d.ts +0 -28
- package/dist/apis/WorkspacesApi.js +0 -150
- package/dist/apis/index.d.ts +0 -20
- package/dist/apis/index.js +0 -37
- package/dist/models/AccessBd4Enum.d.ts +0 -25
- package/dist/models/AccessBd4Enum.js +0 -51
- package/dist/models/CycleCreateRequest.d.ts +0 -77
- package/dist/models/CycleCreateRequest.js +0 -67
- package/dist/models/CycleIssue.d.ts +0 -94
- package/dist/models/CycleIssue.js +0 -65
- package/dist/models/CycleIssueRequestRequest.d.ts +0 -34
- package/dist/models/CycleIssueRequestRequest.js +0 -50
- package/dist/models/CycleLite.d.ts +0 -161
- package/dist/models/CycleLite.js +0 -96
- package/dist/models/EntityTypeEnum.d.ts +0 -25
- package/dist/models/EntityTypeEnum.js +0 -51
- package/dist/models/GenericAssetUploadRequest.d.ts +0 -65
- package/dist/models/GenericAssetUploadRequest.js +0 -62
- package/dist/models/GetWorkspaceMembers200ResponseInner.d.ts +0 -73
- package/dist/models/GetWorkspaceMembers200ResponseInner.js +0 -55
- package/dist/models/GroupEnum.d.ts +0 -33
- package/dist/models/GroupEnum.js +0 -59
- package/dist/models/IntakeIssue.d.ts +0 -150
- package/dist/models/IntakeIssue.js +0 -80
- package/dist/models/IntakeIssueCreateRequest.d.ts +0 -72
- package/dist/models/IntakeIssueCreateRequest.js +0 -66
- package/dist/models/IntakeWorkItemStatusEnum.d.ts +0 -31
- package/dist/models/IntakeWorkItemStatusEnum.js +0 -57
- package/dist/models/Issue.d.ts +0 -197
- package/dist/models/Issue.js +0 -98
- package/dist/models/IssueActivity.d.ts +0 -136
- package/dist/models/IssueActivity.js +0 -83
- package/dist/models/IssueAttachment.d.ts +0 -172
- package/dist/models/IssueAttachment.js +0 -89
- package/dist/models/IssueAttachmentUploadRequest.d.ts +0 -58
- package/dist/models/IssueAttachmentUploadRequest.js +0 -60
- package/dist/models/IssueComment.d.ts +0 -137
- package/dist/models/IssueComment.js +0 -74
- package/dist/models/IssueCommentCreateRequest.d.ts +0 -59
- package/dist/models/IssueCommentCreateRequest.js +0 -57
- package/dist/models/IssueDetail.d.ts +0 -211
- package/dist/models/IssueDetail.js +0 -108
- package/dist/models/IssueExpand.d.ts +0 -224
- package/dist/models/IssueExpand.js +0 -103
- package/dist/models/IssueForIntakeRequest.d.ts +0 -53
- package/dist/models/IssueForIntakeRequest.js +0 -57
- package/dist/models/IssueLink.d.ts +0 -100
- package/dist/models/IssueLink.js +0 -64
- package/dist/models/IssueLinkCreateRequest.d.ts +0 -34
- package/dist/models/IssueLinkCreateRequest.js +0 -50
- package/dist/models/IssuePropertyAPI.d.ts +0 -171
- package/dist/models/IssuePropertyAPI.js +0 -88
- package/dist/models/IssuePropertyAPIRelationTypeEnum.d.ts +0 -25
- package/dist/models/IssuePropertyAPIRelationTypeEnum.js +0 -51
- package/dist/models/IssuePropertyAPIRequest.d.ts +0 -99
- package/dist/models/IssuePropertyAPIRequest.js +0 -76
- package/dist/models/IssuePropertyOptionAPI.d.ts +0 -133
- package/dist/models/IssuePropertyOptionAPI.js +0 -73
- package/dist/models/IssuePropertyOptionAPIRequest.d.ts +0 -67
- package/dist/models/IssuePropertyOptionAPIRequest.js +0 -62
- package/dist/models/IssuePropertyValueAPI.d.ts +0 -133
- package/dist/models/IssuePropertyValueAPI.js +0 -78
- package/dist/models/IssuePropertyValueAPIDetail.d.ts +0 -39
- package/dist/models/IssuePropertyValueAPIDetail.js +0 -54
- package/dist/models/IssuePropertyValueAPIRequest.d.ts +0 -85
- package/dist/models/IssuePropertyValueAPIRequest.js +0 -70
- package/dist/models/IssueRelation.d.ts +0 -106
- package/dist/models/IssueRelation.js +0 -58
- package/dist/models/IssueRelationCreateRelationTypeEnum.d.ts +0 -37
- package/dist/models/IssueRelationCreateRelationTypeEnum.js +0 -63
- package/dist/models/IssueRelationCreateRequest.d.ts +0 -50
- package/dist/models/IssueRelationCreateRequest.js +0 -55
- package/dist/models/IssueRelationRemoveRequest.d.ts +0 -34
- package/dist/models/IssueRelationRemoveRequest.js +0 -50
- package/dist/models/IssueRelationResponse.d.ts +0 -75
- package/dist/models/IssueRelationResponse.js +0 -78
- package/dist/models/IssueRequest.d.ts +0 -167
- package/dist/models/IssueRequest.js +0 -95
- package/dist/models/IssueSearch.d.ts +0 -34
- package/dist/models/IssueSearch.js +0 -51
- package/dist/models/IssueSearchItem.d.ts +0 -64
- package/dist/models/IssueSearchItem.js +0 -70
- package/dist/models/IssueTypeAPI.d.ts +0 -127
- package/dist/models/IssueTypeAPI.js +0 -72
- package/dist/models/IssueTypeAPIRequest.d.ts +0 -67
- package/dist/models/IssueTypeAPIRequest.js +0 -62
- package/dist/models/IssueWorkLogAPI.d.ts +0 -85
- package/dist/models/IssueWorkLogAPI.js +0 -60
- package/dist/models/IssueWorkLogAPIRequest.d.ts +0 -49
- package/dist/models/IssueWorkLogAPIRequest.js +0 -54
- package/dist/models/LabelCreateUpdateRequest.d.ts +0 -70
- package/dist/models/LabelCreateUpdateRequest.js +0 -62
- package/dist/models/ModuleCreateRequest.d.ts +0 -83
- package/dist/models/ModuleCreateRequest.js +0 -67
- package/dist/models/ModuleIssue.d.ts +0 -94
- package/dist/models/ModuleIssue.js +0 -63
- package/dist/models/ModuleIssueRequestRequest.d.ts +0 -34
- package/dist/models/ModuleIssueRequestRequest.js +0 -50
- package/dist/models/ModuleLite.d.ts +0 -167
- package/dist/models/ModuleLite.js +0 -97
- package/dist/models/ModuleStatusEnum.d.ts +0 -33
- package/dist/models/ModuleStatusEnum.js +0 -59
- package/dist/models/NetworkEnum.d.ts +0 -25
- package/dist/models/NetworkEnum.js +0 -51
- package/dist/models/PageCreateAPI.d.ts +0 -134
- package/dist/models/PageCreateAPI.js +0 -79
- package/dist/models/PageCreateAPIAccessEnum.d.ts +0 -25
- package/dist/models/PageCreateAPIAccessEnum.js +0 -51
- package/dist/models/PageCreateAPIRequest.d.ts +0 -86
- package/dist/models/PageCreateAPIRequest.js +0 -71
- package/dist/models/PageDetailAPI.d.ts +0 -79
- package/dist/models/PageDetailAPI.js +0 -57
- package/dist/models/PaginatedArchivedCycleResponse.d.ts +0 -98
- package/dist/models/PaginatedArchivedCycleResponse.js +0 -95
- package/dist/models/PaginatedArchivedModuleResponse.d.ts +0 -98
- package/dist/models/PaginatedArchivedModuleResponse.js +0 -95
- package/dist/models/PaginatedCycleIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedCycleIssueResponse.js +0 -95
- package/dist/models/PaginatedCycleResponse.d.ts +0 -98
- package/dist/models/PaginatedCycleResponse.js +0 -95
- package/dist/models/PaginatedEpicResponse.d.ts +0 -98
- package/dist/models/PaginatedEpicResponse.js +0 -95
- package/dist/models/PaginatedIntakeIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedIntakeIssueResponse.js +0 -95
- package/dist/models/PaginatedIssueActivityDetailResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueActivityDetailResponse.js +0 -95
- package/dist/models/PaginatedIssueActivityResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueActivityResponse.js +0 -95
- package/dist/models/PaginatedIssueCommentResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueCommentResponse.js +0 -95
- package/dist/models/PaginatedIssueLinkDetailResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueLinkDetailResponse.js +0 -95
- package/dist/models/PaginatedIssueLinkResponse.d.ts +0 -98
- package/dist/models/PaginatedIssueLinkResponse.js +0 -95
- package/dist/models/PaginatedLabelResponse.d.ts +0 -98
- package/dist/models/PaginatedLabelResponse.js +0 -95
- package/dist/models/PaginatedModuleIssueResponse.d.ts +0 -98
- package/dist/models/PaginatedModuleIssueResponse.js +0 -95
- package/dist/models/PaginatedModuleResponse.d.ts +0 -98
- package/dist/models/PaginatedModuleResponse.js +0 -95
- package/dist/models/PaginatedProjectResponse.d.ts +0 -98
- package/dist/models/PaginatedProjectResponse.js +0 -95
- package/dist/models/PaginatedStateResponse.d.ts +0 -98
- package/dist/models/PaginatedStateResponse.js +0 -95
- package/dist/models/PaginatedWorkItemResponse.d.ts +0 -98
- package/dist/models/PaginatedWorkItemResponse.js +0 -95
- package/dist/models/PatchedAssetUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedAssetUpdateRequest.js +0 -48
- package/dist/models/PatchedCycleUpdateRequest.d.ts +0 -77
- package/dist/models/PatchedCycleUpdateRequest.js +0 -63
- package/dist/models/PatchedGenericAssetUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedGenericAssetUpdateRequest.js +0 -48
- package/dist/models/PatchedIntakeIssueUpdateRequest.d.ts +0 -66
- package/dist/models/PatchedIntakeIssueUpdateRequest.js +0 -60
- package/dist/models/PatchedIssueCommentCreateRequest.d.ts +0 -59
- package/dist/models/PatchedIssueCommentCreateRequest.js +0 -57
- package/dist/models/PatchedIssueLinkUpdateRequest.d.ts +0 -34
- package/dist/models/PatchedIssueLinkUpdateRequest.js +0 -48
- package/dist/models/PatchedIssuePropertyAPIRequest.d.ts +0 -99
- package/dist/models/PatchedIssuePropertyAPIRequest.js +0 -72
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.d.ts +0 -67
- package/dist/models/PatchedIssuePropertyOptionAPIRequest.js +0 -60
- package/dist/models/PatchedIssueRequest.d.ts +0 -167
- package/dist/models/PatchedIssueRequest.js +0 -93
- package/dist/models/PatchedIssueTypeAPIRequest.d.ts +0 -67
- package/dist/models/PatchedIssueTypeAPIRequest.js +0 -60
- package/dist/models/PatchedIssueWorkLogAPIRequest.d.ts +0 -49
- package/dist/models/PatchedIssueWorkLogAPIRequest.js +0 -54
- package/dist/models/PatchedLabelCreateUpdateRequest.d.ts +0 -70
- package/dist/models/PatchedLabelCreateUpdateRequest.js +0 -60
- package/dist/models/PatchedModuleUpdateRequest.d.ts +0 -83
- package/dist/models/PatchedModuleUpdateRequest.js +0 -65
- package/dist/models/PatchedProjectUpdateRequest.d.ts +0 -167
- package/dist/models/PatchedProjectUpdateRequest.js +0 -93
- package/dist/models/PatchedStateRequest.d.ts +0 -83
- package/dist/models/PatchedStateRequest.js +0 -65
- package/dist/models/PriorityEnum.d.ts +0 -31
- package/dist/models/PriorityEnum.js +0 -57
- package/dist/models/ProjectCreateRequest.d.ts +0 -155
- package/dist/models/ProjectCreateRequest.js +0 -93
- package/dist/models/ProjectWorklogSummary.d.ts +0 -37
- package/dist/models/ProjectWorklogSummary.js +0 -54
- package/dist/models/PropertyTypeEnum.d.ts +0 -39
- package/dist/models/PropertyTypeEnum.js +0 -65
- package/dist/models/RetrieveWorkItemAttachment400Response.d.ts +0 -37
- package/dist/models/RetrieveWorkItemAttachment400Response.js +0 -50
- package/dist/models/StateLite.d.ts +0 -53
- package/dist/models/StateLite.js +0 -50
- package/dist/models/StateRequest.d.ts +0 -83
- package/dist/models/StateRequest.js +0 -69
- package/dist/models/TimezoneEnum.d.ts +0 -887
- package/dist/models/TimezoneEnum.js +0 -913
- package/dist/models/TransferCycleIssueRequestRequest.d.ts +0 -34
- package/dist/models/TransferCycleIssueRequestRequest.js +0 -50
- package/dist/models/TransferCycleWorkItems200Response.d.ts +0 -31
- package/dist/models/TransferCycleWorkItems200Response.js +0 -48
- package/dist/models/TransferCycleWorkItems400Response.d.ts +0 -31
- package/dist/models/TransferCycleWorkItems400Response.js +0 -48
- package/dist/models/TypeEnum.d.ts +0 -31
- package/dist/models/TypeEnum.js +0 -57
- package/dist/models/UserAssetUploadRequest.d.ts +0 -64
- package/dist/models/UserAssetUploadRequest.js +0 -62
- package/dist/models/UserLite.d.ts +0 -70
- package/dist/models/UserLite.js +0 -52
- package/dist/oauth/api.js +0 -243
- package/dist/runtime.d.ts +0 -183
- package/dist/runtime.js +0 -563
- package/eslint.config.mjs +0 -11
- package/src/apis/AssetsApi.ts +0 -388
- package/src/apis/CyclesApi.ts +0 -1031
- package/src/apis/EpicsApi.ts +0 -177
- package/src/apis/IntakeApi.ts +0 -401
- package/src/apis/LabelsApi.ts +0 -406
- package/src/apis/MembersApi.ts +0 -146
- package/src/apis/ModulesApi.ts +0 -890
- package/src/apis/PagesApi.ts +0 -301
- package/src/apis/ProjectsApi.ts +0 -486
- package/src/apis/StatesApi.ts +0 -401
- package/src/apis/UsersApi.ts +0 -71
- package/src/apis/WorkItemActivityApi.ts +0 -228
- package/src/apis/WorkItemAttachmentsApi.ts +0 -415
- package/src/apis/WorkItemCommentsApi.ts +0 -439
- package/src/apis/WorkItemLinksApi.ts +0 -469
- package/src/apis/WorkItemPropertiesApi.ts +0 -1061
- package/src/apis/WorkItemTypesApi.ts +0 -378
- package/src/apis/WorkItemWorklogsApi.ts +0 -398
- package/src/apis/WorkItemsApi.ts +0 -859
- package/src/apis/WorkspacesApi.ts +0 -80
- package/src/apis/index.ts +0 -22
- package/src/index.ts +0 -6
- package/src/models/AccessBd4Enum.ts +0 -53
- package/src/models/Cycle.ts +0 -300
- package/src/models/CycleCreateRequest.ts +0 -135
- package/src/models/CycleIssue.ts +0 -142
- package/src/models/CycleIssueRequestRequest.ts +0 -68
- package/src/models/CycleLite.ts +0 -246
- package/src/models/EntityTypeEnum.ts +0 -53
- package/src/models/Epic.ts +0 -302
- package/src/models/GenericAssetUploadRequest.ts +0 -110
- package/src/models/GetWorkspaceMembers200ResponseInner.ts +0 -113
- package/src/models/GroupEnum.ts +0 -61
- package/src/models/IntakeIssue.ts +0 -227
- package/src/models/IntakeIssueCreateRequest.ts +0 -134
- package/src/models/IntakeWorkItemStatusEnum.ts +0 -59
- package/src/models/Issue.ts +0 -287
- package/src/models/IssueActivity.ts +0 -202
- package/src/models/IssueAttachment.ts +0 -245
- package/src/models/IssueAttachmentUploadRequest.ts +0 -101
- package/src/models/IssueComment.ts +0 -204
- package/src/models/IssueCommentCreateRequest.ts +0 -109
- package/src/models/IssueDetail.ts +0 -319
- package/src/models/IssueExpand.ts +0 -334
- package/src/models/IssueForIntakeRequest.ts +0 -102
- package/src/models/IssueLink.ts +0 -148
- package/src/models/IssueLinkCreateRequest.ts +0 -68
- package/src/models/IssuePropertyAPI.ts +0 -255
- package/src/models/IssuePropertyAPIRelationTypeEnum.ts +0 -53
- package/src/models/IssuePropertyAPIRequest.ts +0 -171
- package/src/models/IssuePropertyOptionAPI.ts +0 -190
- package/src/models/IssuePropertyOptionAPIRequest.ts +0 -113
- package/src/models/IssuePropertyValueAPI.ts +0 -194
- package/src/models/IssuePropertyValueAPIDetail.ts +0 -76
- package/src/models/IssuePropertyValueAPIRequest.ts +0 -138
- package/src/models/IssueRelation.ts +0 -150
- package/src/models/IssueRelationCreateRelationTypeEnum.ts +0 -65
- package/src/models/IssueRelationCreateRequest.ts +0 -96
- package/src/models/IssueRelationRemoveRequest.ts +0 -68
- package/src/models/IssueRelationResponse.ts +0 -130
- package/src/models/IssueRequest.ts +0 -254
- package/src/models/IssueSearch.ts +0 -75
- package/src/models/IssueSearchItem.ts +0 -113
- package/src/models/IssueTypeAPI.ts +0 -183
- package/src/models/IssueTypeAPIRequest.ts +0 -113
- package/src/models/IssueWorkLogAPI.ts +0 -130
- package/src/models/IssueWorkLogAPIRequest.ts +0 -88
- package/src/models/Label.ts +0 -172
- package/src/models/LabelCreateUpdateRequest.ts +0 -116
- package/src/models/Module.ts +0 -280
- package/src/models/ModuleCreateRequest.ts +0 -142
- package/src/models/ModuleIssue.ts +0 -140
- package/src/models/ModuleIssueRequestRequest.ts +0 -68
- package/src/models/ModuleLite.ts +0 -253
- package/src/models/ModuleStatusEnum.ts +0 -61
- package/src/models/NetworkEnum.ts +0 -53
- package/src/models/PageCreateAPI.ts +0 -204
- package/src/models/PageCreateAPIAccessEnum.ts +0 -53
- package/src/models/PageCreateAPIRequest.ts +0 -148
- package/src/models/PageDetailAPI.ts +0 -121
- package/src/models/PaginatedArchivedCycleResponse.ts +0 -172
- package/src/models/PaginatedArchivedModuleResponse.ts +0 -172
- package/src/models/PaginatedCycleIssueResponse.ts +0 -172
- package/src/models/PaginatedCycleResponse.ts +0 -172
- package/src/models/PaginatedEpicResponse.ts +0 -172
- package/src/models/PaginatedIntakeIssueResponse.ts +0 -172
- package/src/models/PaginatedIssueActivityDetailResponse.ts +0 -172
- package/src/models/PaginatedIssueActivityResponse.ts +0 -172
- package/src/models/PaginatedIssueCommentResponse.ts +0 -172
- package/src/models/PaginatedIssueLinkDetailResponse.ts +0 -172
- package/src/models/PaginatedIssueLinkResponse.ts +0 -172
- package/src/models/PaginatedLabelResponse.ts +0 -172
- package/src/models/PaginatedModuleIssueResponse.ts +0 -172
- package/src/models/PaginatedModuleResponse.ts +0 -172
- package/src/models/PaginatedProjectResponse.ts +0 -172
- package/src/models/PaginatedStateResponse.ts +0 -172
- package/src/models/PaginatedWorkItemResponse.ts +0 -172
- package/src/models/PatchedAssetUpdateRequest.ts +0 -67
- package/src/models/PatchedCycleUpdateRequest.ts +0 -133
- package/src/models/PatchedGenericAssetUpdateRequest.ts +0 -67
- package/src/models/PatchedIntakeIssueUpdateRequest.ts +0 -124
- package/src/models/PatchedIssueCommentCreateRequest.ts +0 -109
- package/src/models/PatchedIssueLinkUpdateRequest.ts +0 -67
- package/src/models/PatchedIssuePropertyAPIRequest.ts +0 -169
- package/src/models/PatchedIssuePropertyOptionAPIRequest.ts +0 -112
- package/src/models/PatchedIssueRequest.ts +0 -253
- package/src/models/PatchedIssueTypeAPIRequest.ts +0 -112
- package/src/models/PatchedIssueWorkLogAPIRequest.ts +0 -88
- package/src/models/PatchedLabelCreateUpdateRequest.ts +0 -115
- package/src/models/PatchedModuleUpdateRequest.ts +0 -141
- package/src/models/PatchedProjectUpdateRequest.ts +0 -253
- package/src/models/PatchedStateRequest.ts +0 -141
- package/src/models/PriorityEnum.ts +0 -59
- package/src/models/Project.ts +0 -414
- package/src/models/ProjectCreateRequest.ts +0 -239
- package/src/models/ProjectWorklogSummary.ts +0 -74
- package/src/models/PropertyTypeEnum.ts +0 -67
- package/src/models/RetrieveWorkItemAttachment400Response.ts +0 -72
- package/src/models/State.ts +0 -199
- package/src/models/StateLite.ts +0 -97
- package/src/models/StateRequest.ts +0 -143
- package/src/models/TimezoneEnum.ts +0 -915
- package/src/models/TransferCycleIssueRequestRequest.ts +0 -68
- package/src/models/TransferCycleWorkItems200Response.ts +0 -64
- package/src/models/TransferCycleWorkItems400Response.ts +0 -64
- package/src/models/TypeEnum.ts +0 -59
- package/src/models/UserAssetUploadRequest.ts +0 -121
- package/src/models/UserLite.ts +0 -108
- package/src/models/index.ts +0 -108
- package/src/oauth/api.ts +0 -183
- package/src/oauth/models.ts +0 -30
- package/src/runtime.ts +0 -431
- package/tsconfig.json +0 -20
|
@@ -1,1061 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* The Plane REST API
|
|
5
|
-
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
6
|
-
*
|
|
7
|
-
* The version of the API Spec: 0.0.2
|
|
8
|
-
* Contact: support@plane.so
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated.
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
import type {
|
|
17
|
-
IssuePropertyAPI,
|
|
18
|
-
IssuePropertyAPIRequest,
|
|
19
|
-
IssuePropertyOptionAPI,
|
|
20
|
-
IssuePropertyOptionAPIRequest,
|
|
21
|
-
IssuePropertyValueAPI,
|
|
22
|
-
IssuePropertyValueAPIDetail,
|
|
23
|
-
IssuePropertyValueAPIRequest,
|
|
24
|
-
PatchedIssuePropertyAPIRequest,
|
|
25
|
-
PatchedIssuePropertyOptionAPIRequest,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
import {
|
|
28
|
-
IssuePropertyAPIFromJSON,
|
|
29
|
-
IssuePropertyAPIToJSON,
|
|
30
|
-
IssuePropertyAPIRequestFromJSON,
|
|
31
|
-
IssuePropertyAPIRequestToJSON,
|
|
32
|
-
IssuePropertyOptionAPIFromJSON,
|
|
33
|
-
IssuePropertyOptionAPIToJSON,
|
|
34
|
-
IssuePropertyOptionAPIRequestFromJSON,
|
|
35
|
-
IssuePropertyOptionAPIRequestToJSON,
|
|
36
|
-
IssuePropertyValueAPIFromJSON,
|
|
37
|
-
IssuePropertyValueAPIToJSON,
|
|
38
|
-
IssuePropertyValueAPIDetailFromJSON,
|
|
39
|
-
IssuePropertyValueAPIDetailToJSON,
|
|
40
|
-
IssuePropertyValueAPIRequestFromJSON,
|
|
41
|
-
IssuePropertyValueAPIRequestToJSON,
|
|
42
|
-
PatchedIssuePropertyAPIRequestFromJSON,
|
|
43
|
-
PatchedIssuePropertyAPIRequestToJSON,
|
|
44
|
-
PatchedIssuePropertyOptionAPIRequestFromJSON,
|
|
45
|
-
PatchedIssuePropertyOptionAPIRequestToJSON,
|
|
46
|
-
} from '../models/index';
|
|
47
|
-
|
|
48
|
-
export interface CreateIssuePropertyRequest {
|
|
49
|
-
projectId: string;
|
|
50
|
-
slug: string;
|
|
51
|
-
typeId: string;
|
|
52
|
-
issuePropertyAPIRequest: IssuePropertyAPIRequest;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface CreateIssuePropertyOptionRequest {
|
|
56
|
-
projectId: string;
|
|
57
|
-
propertyId: string;
|
|
58
|
-
slug: string;
|
|
59
|
-
issuePropertyOptionAPIRequest: IssuePropertyOptionAPIRequest;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface CreateIssuePropertyValueRequest {
|
|
63
|
-
issueId: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
propertyId: string;
|
|
66
|
-
slug: string;
|
|
67
|
-
issuePropertyValueAPIRequest: IssuePropertyValueAPIRequest;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface DeleteIssuePropertyRequest {
|
|
71
|
-
projectId: string;
|
|
72
|
-
propertyId: string;
|
|
73
|
-
slug: string;
|
|
74
|
-
typeId: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface DeleteIssuePropertyOptionRequest {
|
|
78
|
-
optionId: string;
|
|
79
|
-
projectId: string;
|
|
80
|
-
propertyId: string;
|
|
81
|
-
slug: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface ListIssuePropertiesRequest {
|
|
85
|
-
projectId: string;
|
|
86
|
-
slug: string;
|
|
87
|
-
typeId: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export interface ListIssuePropertyOptionsRequest {
|
|
91
|
-
projectId: string;
|
|
92
|
-
propertyId: string;
|
|
93
|
-
slug: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface ListIssuePropertyValuesRequest {
|
|
97
|
-
issueId: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
propertyId: string;
|
|
100
|
-
slug: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface ListIssuePropertyValuesForAWorkitemRequest {
|
|
104
|
-
issueId: string;
|
|
105
|
-
projectId: string;
|
|
106
|
-
propertyId: string;
|
|
107
|
-
slug: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface RetrieveIssuePropertyRequest {
|
|
111
|
-
projectId: string;
|
|
112
|
-
propertyId: string;
|
|
113
|
-
slug: string;
|
|
114
|
-
typeId: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface RetrieveIssuePropertyOptionRequest {
|
|
118
|
-
optionId: string;
|
|
119
|
-
projectId: string;
|
|
120
|
-
propertyId: string;
|
|
121
|
-
slug: string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface UpdateIssuePropertyRequest {
|
|
125
|
-
projectId: string;
|
|
126
|
-
propertyId: string;
|
|
127
|
-
slug: string;
|
|
128
|
-
typeId: string;
|
|
129
|
-
patchedIssuePropertyAPIRequest?: PatchedIssuePropertyAPIRequest;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface UpdateIssuePropertyOptionRequest {
|
|
133
|
-
optionId: string;
|
|
134
|
-
projectId: string;
|
|
135
|
-
propertyId: string;
|
|
136
|
-
slug: string;
|
|
137
|
-
patchedIssuePropertyOptionAPIRequest?: PatchedIssuePropertyOptionAPIRequest;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
*/
|
|
143
|
-
export class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Create a new issue property
|
|
147
|
-
* Create a new issue property
|
|
148
|
-
*/
|
|
149
|
-
async createIssuePropertyRaw(requestParameters: CreateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
|
|
150
|
-
if (requestParameters['projectId'] == null) {
|
|
151
|
-
throw new runtime.RequiredError(
|
|
152
|
-
'projectId',
|
|
153
|
-
'Required parameter "projectId" was null or undefined when calling createIssueProperty().'
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (requestParameters['slug'] == null) {
|
|
158
|
-
throw new runtime.RequiredError(
|
|
159
|
-
'slug',
|
|
160
|
-
'Required parameter "slug" was null or undefined when calling createIssueProperty().'
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
if (requestParameters['typeId'] == null) {
|
|
165
|
-
throw new runtime.RequiredError(
|
|
166
|
-
'typeId',
|
|
167
|
-
'Required parameter "typeId" was null or undefined when calling createIssueProperty().'
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (requestParameters['issuePropertyAPIRequest'] == null) {
|
|
172
|
-
throw new runtime.RequiredError(
|
|
173
|
-
'issuePropertyAPIRequest',
|
|
174
|
-
'Required parameter "issuePropertyAPIRequest" was null or undefined when calling createIssueProperty().'
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
const queryParameters: any = {};
|
|
179
|
-
|
|
180
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
181
|
-
|
|
182
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
-
|
|
184
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
185
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
-
// oauth required
|
|
190
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
194
|
-
// oauth required
|
|
195
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
const response = await this.request({
|
|
199
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
|
|
200
|
-
method: 'POST',
|
|
201
|
-
headers: headerParameters,
|
|
202
|
-
query: queryParameters,
|
|
203
|
-
body: IssuePropertyAPIRequestToJSON(requestParameters['issuePropertyAPIRequest']),
|
|
204
|
-
}, initOverrides);
|
|
205
|
-
|
|
206
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Create a new issue property
|
|
211
|
-
* Create a new issue property
|
|
212
|
-
*/
|
|
213
|
-
async createIssueProperty(requestParameters: CreateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
|
|
214
|
-
const response = await this.createIssuePropertyRaw(requestParameters, initOverrides);
|
|
215
|
-
return await response.value();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Create a new issue property option
|
|
220
|
-
* Create a new issue property option
|
|
221
|
-
*/
|
|
222
|
-
async createIssuePropertyOptionRaw(requestParameters: CreateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
|
|
223
|
-
if (requestParameters['projectId'] == null) {
|
|
224
|
-
throw new runtime.RequiredError(
|
|
225
|
-
'projectId',
|
|
226
|
-
'Required parameter "projectId" was null or undefined when calling createIssuePropertyOption().'
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (requestParameters['propertyId'] == null) {
|
|
231
|
-
throw new runtime.RequiredError(
|
|
232
|
-
'propertyId',
|
|
233
|
-
'Required parameter "propertyId" was null or undefined when calling createIssuePropertyOption().'
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
if (requestParameters['slug'] == null) {
|
|
238
|
-
throw new runtime.RequiredError(
|
|
239
|
-
'slug',
|
|
240
|
-
'Required parameter "slug" was null or undefined when calling createIssuePropertyOption().'
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
if (requestParameters['issuePropertyOptionAPIRequest'] == null) {
|
|
245
|
-
throw new runtime.RequiredError(
|
|
246
|
-
'issuePropertyOptionAPIRequest',
|
|
247
|
-
'Required parameter "issuePropertyOptionAPIRequest" was null or undefined when calling createIssuePropertyOption().'
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
const queryParameters: any = {};
|
|
252
|
-
|
|
253
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
254
|
-
|
|
255
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
256
|
-
|
|
257
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
258
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
262
|
-
// oauth required
|
|
263
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
267
|
-
// oauth required
|
|
268
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
const response = await this.request({
|
|
272
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
273
|
-
method: 'POST',
|
|
274
|
-
headers: headerParameters,
|
|
275
|
-
query: queryParameters,
|
|
276
|
-
body: IssuePropertyOptionAPIRequestToJSON(requestParameters['issuePropertyOptionAPIRequest']),
|
|
277
|
-
}, initOverrides);
|
|
278
|
-
|
|
279
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Create a new issue property option
|
|
284
|
-
* Create a new issue property option
|
|
285
|
-
*/
|
|
286
|
-
async createIssuePropertyOption(requestParameters: CreateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
|
|
287
|
-
const response = await this.createIssuePropertyOptionRaw(requestParameters, initOverrides);
|
|
288
|
-
return await response.value();
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Create/update an issue property value
|
|
293
|
-
* Create/update an issue property value
|
|
294
|
-
*/
|
|
295
|
-
async createIssuePropertyValueRaw(requestParameters: CreateIssuePropertyValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
|
|
296
|
-
if (requestParameters['issueId'] == null) {
|
|
297
|
-
throw new runtime.RequiredError(
|
|
298
|
-
'issueId',
|
|
299
|
-
'Required parameter "issueId" was null or undefined when calling createIssuePropertyValue().'
|
|
300
|
-
);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
if (requestParameters['projectId'] == null) {
|
|
304
|
-
throw new runtime.RequiredError(
|
|
305
|
-
'projectId',
|
|
306
|
-
'Required parameter "projectId" was null or undefined when calling createIssuePropertyValue().'
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (requestParameters['propertyId'] == null) {
|
|
311
|
-
throw new runtime.RequiredError(
|
|
312
|
-
'propertyId',
|
|
313
|
-
'Required parameter "propertyId" was null or undefined when calling createIssuePropertyValue().'
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
if (requestParameters['slug'] == null) {
|
|
318
|
-
throw new runtime.RequiredError(
|
|
319
|
-
'slug',
|
|
320
|
-
'Required parameter "slug" was null or undefined when calling createIssuePropertyValue().'
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
if (requestParameters['issuePropertyValueAPIRequest'] == null) {
|
|
325
|
-
throw new runtime.RequiredError(
|
|
326
|
-
'issuePropertyValueAPIRequest',
|
|
327
|
-
'Required parameter "issuePropertyValueAPIRequest" was null or undefined when calling createIssuePropertyValue().'
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
const queryParameters: any = {};
|
|
332
|
-
|
|
333
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
334
|
-
|
|
335
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
336
|
-
|
|
337
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
342
|
-
// oauth required
|
|
343
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
347
|
-
// oauth required
|
|
348
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
const response = await this.request({
|
|
352
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/values/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
353
|
-
method: 'POST',
|
|
354
|
-
headers: headerParameters,
|
|
355
|
-
query: queryParameters,
|
|
356
|
-
body: IssuePropertyValueAPIRequestToJSON(requestParameters['issuePropertyValueAPIRequest']),
|
|
357
|
-
}, initOverrides);
|
|
358
|
-
|
|
359
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Create/update an issue property value
|
|
364
|
-
* Create/update an issue property value
|
|
365
|
-
*/
|
|
366
|
-
async createIssuePropertyValue(requestParameters: CreateIssuePropertyValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
|
|
367
|
-
const response = await this.createIssuePropertyValueRaw(requestParameters, initOverrides);
|
|
368
|
-
return await response.value();
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Delete an issue property
|
|
373
|
-
* Delete an issue property
|
|
374
|
-
*/
|
|
375
|
-
async deleteIssuePropertyRaw(requestParameters: DeleteIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
376
|
-
if (requestParameters['projectId'] == null) {
|
|
377
|
-
throw new runtime.RequiredError(
|
|
378
|
-
'projectId',
|
|
379
|
-
'Required parameter "projectId" was null or undefined when calling deleteIssueProperty().'
|
|
380
|
-
);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
if (requestParameters['propertyId'] == null) {
|
|
384
|
-
throw new runtime.RequiredError(
|
|
385
|
-
'propertyId',
|
|
386
|
-
'Required parameter "propertyId" was null or undefined when calling deleteIssueProperty().'
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
if (requestParameters['slug'] == null) {
|
|
391
|
-
throw new runtime.RequiredError(
|
|
392
|
-
'slug',
|
|
393
|
-
'Required parameter "slug" was null or undefined when calling deleteIssueProperty().'
|
|
394
|
-
);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
if (requestParameters['typeId'] == null) {
|
|
398
|
-
throw new runtime.RequiredError(
|
|
399
|
-
'typeId',
|
|
400
|
-
'Required parameter "typeId" was null or undefined when calling deleteIssueProperty().'
|
|
401
|
-
);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
const queryParameters: any = {};
|
|
405
|
-
|
|
406
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
407
|
-
|
|
408
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
409
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
413
|
-
// oauth required
|
|
414
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
418
|
-
// oauth required
|
|
419
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
const response = await this.request({
|
|
423
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
|
|
424
|
-
method: 'DELETE',
|
|
425
|
-
headers: headerParameters,
|
|
426
|
-
query: queryParameters,
|
|
427
|
-
}, initOverrides);
|
|
428
|
-
|
|
429
|
-
return new runtime.VoidApiResponse(response);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* Delete an issue property
|
|
434
|
-
* Delete an issue property
|
|
435
|
-
*/
|
|
436
|
-
async deleteIssueProperty(requestParameters: DeleteIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
437
|
-
await this.deleteIssuePropertyRaw(requestParameters, initOverrides);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Delete an issue property option
|
|
442
|
-
* Delete an issue property option
|
|
443
|
-
*/
|
|
444
|
-
async deleteIssuePropertyOptionRaw(requestParameters: DeleteIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
445
|
-
if (requestParameters['optionId'] == null) {
|
|
446
|
-
throw new runtime.RequiredError(
|
|
447
|
-
'optionId',
|
|
448
|
-
'Required parameter "optionId" was null or undefined when calling deleteIssuePropertyOption().'
|
|
449
|
-
);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
if (requestParameters['projectId'] == null) {
|
|
453
|
-
throw new runtime.RequiredError(
|
|
454
|
-
'projectId',
|
|
455
|
-
'Required parameter "projectId" was null or undefined when calling deleteIssuePropertyOption().'
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
if (requestParameters['propertyId'] == null) {
|
|
460
|
-
throw new runtime.RequiredError(
|
|
461
|
-
'propertyId',
|
|
462
|
-
'Required parameter "propertyId" was null or undefined when calling deleteIssuePropertyOption().'
|
|
463
|
-
);
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
if (requestParameters['slug'] == null) {
|
|
467
|
-
throw new runtime.RequiredError(
|
|
468
|
-
'slug',
|
|
469
|
-
'Required parameter "slug" was null or undefined when calling deleteIssuePropertyOption().'
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
const queryParameters: any = {};
|
|
474
|
-
|
|
475
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
476
|
-
|
|
477
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
478
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
482
|
-
// oauth required
|
|
483
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
487
|
-
// oauth required
|
|
488
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
const response = await this.request({
|
|
492
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
493
|
-
method: 'DELETE',
|
|
494
|
-
headers: headerParameters,
|
|
495
|
-
query: queryParameters,
|
|
496
|
-
}, initOverrides);
|
|
497
|
-
|
|
498
|
-
return new runtime.VoidApiResponse(response);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* Delete an issue property option
|
|
503
|
-
* Delete an issue property option
|
|
504
|
-
*/
|
|
505
|
-
async deleteIssuePropertyOption(requestParameters: DeleteIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
506
|
-
await this.deleteIssuePropertyOptionRaw(requestParameters, initOverrides);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* List issue properties
|
|
511
|
-
* List issue properties
|
|
512
|
-
*/
|
|
513
|
-
async listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyAPI>>> {
|
|
514
|
-
if (requestParameters['projectId'] == null) {
|
|
515
|
-
throw new runtime.RequiredError(
|
|
516
|
-
'projectId',
|
|
517
|
-
'Required parameter "projectId" was null or undefined when calling listIssueProperties().'
|
|
518
|
-
);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
if (requestParameters['slug'] == null) {
|
|
522
|
-
throw new runtime.RequiredError(
|
|
523
|
-
'slug',
|
|
524
|
-
'Required parameter "slug" was null or undefined when calling listIssueProperties().'
|
|
525
|
-
);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
if (requestParameters['typeId'] == null) {
|
|
529
|
-
throw new runtime.RequiredError(
|
|
530
|
-
'typeId',
|
|
531
|
-
'Required parameter "typeId" was null or undefined when calling listIssueProperties().'
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
const queryParameters: any = {};
|
|
536
|
-
|
|
537
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
538
|
-
|
|
539
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
540
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
544
|
-
// oauth required
|
|
545
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
549
|
-
// oauth required
|
|
550
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
const response = await this.request({
|
|
554
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
|
|
555
|
-
method: 'GET',
|
|
556
|
-
headers: headerParameters,
|
|
557
|
-
query: queryParameters,
|
|
558
|
-
}, initOverrides);
|
|
559
|
-
|
|
560
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyAPIFromJSON));
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* List issue properties
|
|
565
|
-
* List issue properties
|
|
566
|
-
*/
|
|
567
|
-
async listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyAPI>> {
|
|
568
|
-
const response = await this.listIssuePropertiesRaw(requestParameters, initOverrides);
|
|
569
|
-
return await response.value();
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* List issue property options
|
|
574
|
-
* List issue property options
|
|
575
|
-
*/
|
|
576
|
-
async listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyOptionAPI>>> {
|
|
577
|
-
if (requestParameters['projectId'] == null) {
|
|
578
|
-
throw new runtime.RequiredError(
|
|
579
|
-
'projectId',
|
|
580
|
-
'Required parameter "projectId" was null or undefined when calling listIssuePropertyOptions().'
|
|
581
|
-
);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
if (requestParameters['propertyId'] == null) {
|
|
585
|
-
throw new runtime.RequiredError(
|
|
586
|
-
'propertyId',
|
|
587
|
-
'Required parameter "propertyId" was null or undefined when calling listIssuePropertyOptions().'
|
|
588
|
-
);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
if (requestParameters['slug'] == null) {
|
|
592
|
-
throw new runtime.RequiredError(
|
|
593
|
-
'slug',
|
|
594
|
-
'Required parameter "slug" was null or undefined when calling listIssuePropertyOptions().'
|
|
595
|
-
);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
const queryParameters: any = {};
|
|
599
|
-
|
|
600
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
601
|
-
|
|
602
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
603
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
607
|
-
// oauth required
|
|
608
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
612
|
-
// oauth required
|
|
613
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
const response = await this.request({
|
|
617
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
618
|
-
method: 'GET',
|
|
619
|
-
headers: headerParameters,
|
|
620
|
-
query: queryParameters,
|
|
621
|
-
}, initOverrides);
|
|
622
|
-
|
|
623
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyOptionAPIFromJSON));
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* List issue property options
|
|
628
|
-
* List issue property options
|
|
629
|
-
*/
|
|
630
|
-
async listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyOptionAPI>> {
|
|
631
|
-
const response = await this.listIssuePropertyOptionsRaw(requestParameters, initOverrides);
|
|
632
|
-
return await response.value();
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* List issue property values
|
|
637
|
-
* List issue property values
|
|
638
|
-
*/
|
|
639
|
-
async listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyValueAPIDetail>>> {
|
|
640
|
-
if (requestParameters['issueId'] == null) {
|
|
641
|
-
throw new runtime.RequiredError(
|
|
642
|
-
'issueId',
|
|
643
|
-
'Required parameter "issueId" was null or undefined when calling listIssuePropertyValues().'
|
|
644
|
-
);
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
if (requestParameters['projectId'] == null) {
|
|
648
|
-
throw new runtime.RequiredError(
|
|
649
|
-
'projectId',
|
|
650
|
-
'Required parameter "projectId" was null or undefined when calling listIssuePropertyValues().'
|
|
651
|
-
);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
if (requestParameters['propertyId'] == null) {
|
|
655
|
-
throw new runtime.RequiredError(
|
|
656
|
-
'propertyId',
|
|
657
|
-
'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValues().'
|
|
658
|
-
);
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
if (requestParameters['slug'] == null) {
|
|
662
|
-
throw new runtime.RequiredError(
|
|
663
|
-
'slug',
|
|
664
|
-
'Required parameter "slug" was null or undefined when calling listIssuePropertyValues().'
|
|
665
|
-
);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
const queryParameters: any = {};
|
|
669
|
-
|
|
670
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
671
|
-
|
|
672
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
673
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
677
|
-
// oauth required
|
|
678
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
682
|
-
// oauth required
|
|
683
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
const response = await this.request({
|
|
687
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/{property_id}/values/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
688
|
-
method: 'GET',
|
|
689
|
-
headers: headerParameters,
|
|
690
|
-
query: queryParameters,
|
|
691
|
-
}, initOverrides);
|
|
692
|
-
|
|
693
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssuePropertyValueAPIDetailFromJSON));
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* List issue property values
|
|
698
|
-
* List issue property values
|
|
699
|
-
*/
|
|
700
|
-
async listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyValueAPIDetail>> {
|
|
701
|
-
const response = await this.listIssuePropertyValuesRaw(requestParameters, initOverrides);
|
|
702
|
-
return await response.value();
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* List issue property values for a workitem
|
|
707
|
-
* List issue property values for a workitem
|
|
708
|
-
*/
|
|
709
|
-
async listIssuePropertyValuesForAWorkitemRaw(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyValueAPI>> {
|
|
710
|
-
if (requestParameters['issueId'] == null) {
|
|
711
|
-
throw new runtime.RequiredError(
|
|
712
|
-
'issueId',
|
|
713
|
-
'Required parameter "issueId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
714
|
-
);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
if (requestParameters['projectId'] == null) {
|
|
718
|
-
throw new runtime.RequiredError(
|
|
719
|
-
'projectId',
|
|
720
|
-
'Required parameter "projectId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
721
|
-
);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
if (requestParameters['propertyId'] == null) {
|
|
725
|
-
throw new runtime.RequiredError(
|
|
726
|
-
'propertyId',
|
|
727
|
-
'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
728
|
-
);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
if (requestParameters['slug'] == null) {
|
|
732
|
-
throw new runtime.RequiredError(
|
|
733
|
-
'slug',
|
|
734
|
-
'Required parameter "slug" was null or undefined when calling listIssuePropertyValuesForAWorkitem().'
|
|
735
|
-
);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
const queryParameters: any = {};
|
|
739
|
-
|
|
740
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
741
|
-
|
|
742
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
743
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
747
|
-
// oauth required
|
|
748
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
752
|
-
// oauth required
|
|
753
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
const response = await this.request({
|
|
757
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-properties/values/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
758
|
-
method: 'GET',
|
|
759
|
-
headers: headerParameters,
|
|
760
|
-
query: queryParameters,
|
|
761
|
-
}, initOverrides);
|
|
762
|
-
|
|
763
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue));
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* List issue property values for a workitem
|
|
768
|
-
* List issue property values for a workitem
|
|
769
|
-
*/
|
|
770
|
-
async listIssuePropertyValuesForAWorkitem(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyValueAPI> {
|
|
771
|
-
const response = await this.listIssuePropertyValuesForAWorkitemRaw(requestParameters, initOverrides);
|
|
772
|
-
return await response.value();
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Get issue property by id
|
|
777
|
-
* Get issue property by id
|
|
778
|
-
*/
|
|
779
|
-
async retrieveIssuePropertyRaw(requestParameters: RetrieveIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
|
|
780
|
-
if (requestParameters['projectId'] == null) {
|
|
781
|
-
throw new runtime.RequiredError(
|
|
782
|
-
'projectId',
|
|
783
|
-
'Required parameter "projectId" was null or undefined when calling retrieveIssueProperty().'
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
if (requestParameters['propertyId'] == null) {
|
|
788
|
-
throw new runtime.RequiredError(
|
|
789
|
-
'propertyId',
|
|
790
|
-
'Required parameter "propertyId" was null or undefined when calling retrieveIssueProperty().'
|
|
791
|
-
);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
if (requestParameters['slug'] == null) {
|
|
795
|
-
throw new runtime.RequiredError(
|
|
796
|
-
'slug',
|
|
797
|
-
'Required parameter "slug" was null or undefined when calling retrieveIssueProperty().'
|
|
798
|
-
);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
if (requestParameters['typeId'] == null) {
|
|
802
|
-
throw new runtime.RequiredError(
|
|
803
|
-
'typeId',
|
|
804
|
-
'Required parameter "typeId" was null or undefined when calling retrieveIssueProperty().'
|
|
805
|
-
);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
const queryParameters: any = {};
|
|
809
|
-
|
|
810
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
811
|
-
|
|
812
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
813
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
817
|
-
// oauth required
|
|
818
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
822
|
-
// oauth required
|
|
823
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
const response = await this.request({
|
|
827
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
|
|
828
|
-
method: 'GET',
|
|
829
|
-
headers: headerParameters,
|
|
830
|
-
query: queryParameters,
|
|
831
|
-
}, initOverrides);
|
|
832
|
-
|
|
833
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* Get issue property by id
|
|
838
|
-
* Get issue property by id
|
|
839
|
-
*/
|
|
840
|
-
async retrieveIssueProperty(requestParameters: RetrieveIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
|
|
841
|
-
const response = await this.retrieveIssuePropertyRaw(requestParameters, initOverrides);
|
|
842
|
-
return await response.value();
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* Get issue property option by id
|
|
847
|
-
* Get issue property option by id
|
|
848
|
-
*/
|
|
849
|
-
async retrieveIssuePropertyOptionRaw(requestParameters: RetrieveIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
|
|
850
|
-
if (requestParameters['optionId'] == null) {
|
|
851
|
-
throw new runtime.RequiredError(
|
|
852
|
-
'optionId',
|
|
853
|
-
'Required parameter "optionId" was null or undefined when calling retrieveIssuePropertyOption().'
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
if (requestParameters['projectId'] == null) {
|
|
858
|
-
throw new runtime.RequiredError(
|
|
859
|
-
'projectId',
|
|
860
|
-
'Required parameter "projectId" was null or undefined when calling retrieveIssuePropertyOption().'
|
|
861
|
-
);
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
if (requestParameters['propertyId'] == null) {
|
|
865
|
-
throw new runtime.RequiredError(
|
|
866
|
-
'propertyId',
|
|
867
|
-
'Required parameter "propertyId" was null or undefined when calling retrieveIssuePropertyOption().'
|
|
868
|
-
);
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
if (requestParameters['slug'] == null) {
|
|
872
|
-
throw new runtime.RequiredError(
|
|
873
|
-
'slug',
|
|
874
|
-
'Required parameter "slug" was null or undefined when calling retrieveIssuePropertyOption().'
|
|
875
|
-
);
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
const queryParameters: any = {};
|
|
879
|
-
|
|
880
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
881
|
-
|
|
882
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
883
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
887
|
-
// oauth required
|
|
888
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
892
|
-
// oauth required
|
|
893
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
const response = await this.request({
|
|
897
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
898
|
-
method: 'GET',
|
|
899
|
-
headers: headerParameters,
|
|
900
|
-
query: queryParameters,
|
|
901
|
-
}, initOverrides);
|
|
902
|
-
|
|
903
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* Get issue property option by id
|
|
908
|
-
* Get issue property option by id
|
|
909
|
-
*/
|
|
910
|
-
async retrieveIssuePropertyOption(requestParameters: RetrieveIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
|
|
911
|
-
const response = await this.retrieveIssuePropertyOptionRaw(requestParameters, initOverrides);
|
|
912
|
-
return await response.value();
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Update an issue property
|
|
917
|
-
* Update an issue property
|
|
918
|
-
*/
|
|
919
|
-
async updateIssuePropertyRaw(requestParameters: UpdateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI>> {
|
|
920
|
-
if (requestParameters['projectId'] == null) {
|
|
921
|
-
throw new runtime.RequiredError(
|
|
922
|
-
'projectId',
|
|
923
|
-
'Required parameter "projectId" was null or undefined when calling updateIssueProperty().'
|
|
924
|
-
);
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
if (requestParameters['propertyId'] == null) {
|
|
928
|
-
throw new runtime.RequiredError(
|
|
929
|
-
'propertyId',
|
|
930
|
-
'Required parameter "propertyId" was null or undefined when calling updateIssueProperty().'
|
|
931
|
-
);
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
if (requestParameters['slug'] == null) {
|
|
935
|
-
throw new runtime.RequiredError(
|
|
936
|
-
'slug',
|
|
937
|
-
'Required parameter "slug" was null or undefined when calling updateIssueProperty().'
|
|
938
|
-
);
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
if (requestParameters['typeId'] == null) {
|
|
942
|
-
throw new runtime.RequiredError(
|
|
943
|
-
'typeId',
|
|
944
|
-
'Required parameter "typeId" was null or undefined when calling updateIssueProperty().'
|
|
945
|
-
);
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
const queryParameters: any = {};
|
|
949
|
-
|
|
950
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
951
|
-
|
|
952
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
953
|
-
|
|
954
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
955
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
959
|
-
// oauth required
|
|
960
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
964
|
-
// oauth required
|
|
965
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
const response = await this.request({
|
|
969
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-types/{type_id}/issue-properties/{property_id}/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"type_id"}}`, encodeURIComponent(String(requestParameters['typeId']))),
|
|
970
|
-
method: 'PATCH',
|
|
971
|
-
headers: headerParameters,
|
|
972
|
-
query: queryParameters,
|
|
973
|
-
body: PatchedIssuePropertyAPIRequestToJSON(requestParameters['patchedIssuePropertyAPIRequest']),
|
|
974
|
-
}, initOverrides);
|
|
975
|
-
|
|
976
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyAPIFromJSON(jsonValue));
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
* Update an issue property
|
|
981
|
-
* Update an issue property
|
|
982
|
-
*/
|
|
983
|
-
async updateIssueProperty(requestParameters: UpdateIssuePropertyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI> {
|
|
984
|
-
const response = await this.updateIssuePropertyRaw(requestParameters, initOverrides);
|
|
985
|
-
return await response.value();
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
/**
|
|
989
|
-
* Update an issue property option
|
|
990
|
-
* Update an issue property option
|
|
991
|
-
*/
|
|
992
|
-
async updateIssuePropertyOptionRaw(requestParameters: UpdateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI>> {
|
|
993
|
-
if (requestParameters['optionId'] == null) {
|
|
994
|
-
throw new runtime.RequiredError(
|
|
995
|
-
'optionId',
|
|
996
|
-
'Required parameter "optionId" was null or undefined when calling updateIssuePropertyOption().'
|
|
997
|
-
);
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
|
-
if (requestParameters['projectId'] == null) {
|
|
1001
|
-
throw new runtime.RequiredError(
|
|
1002
|
-
'projectId',
|
|
1003
|
-
'Required parameter "projectId" was null or undefined when calling updateIssuePropertyOption().'
|
|
1004
|
-
);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
if (requestParameters['propertyId'] == null) {
|
|
1008
|
-
throw new runtime.RequiredError(
|
|
1009
|
-
'propertyId',
|
|
1010
|
-
'Required parameter "propertyId" was null or undefined when calling updateIssuePropertyOption().'
|
|
1011
|
-
);
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
if (requestParameters['slug'] == null) {
|
|
1015
|
-
throw new runtime.RequiredError(
|
|
1016
|
-
'slug',
|
|
1017
|
-
'Required parameter "slug" was null or undefined when calling updateIssuePropertyOption().'
|
|
1018
|
-
);
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
const queryParameters: any = {};
|
|
1022
|
-
|
|
1023
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1024
|
-
|
|
1025
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1026
|
-
|
|
1027
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1028
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1032
|
-
// oauth required
|
|
1033
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1037
|
-
// oauth required
|
|
1038
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
const response = await this.request({
|
|
1042
|
-
path: `/api/v1/workspaces/{slug}/projects/{project_id}/issue-properties/{property_id}/options/{option_id}/`.replace(`{${"option_id"}}`, encodeURIComponent(String(requestParameters['optionId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"property_id"}}`, encodeURIComponent(String(requestParameters['propertyId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
1043
|
-
method: 'PATCH',
|
|
1044
|
-
headers: headerParameters,
|
|
1045
|
-
query: queryParameters,
|
|
1046
|
-
body: PatchedIssuePropertyOptionAPIRequestToJSON(requestParameters['patchedIssuePropertyOptionAPIRequest']),
|
|
1047
|
-
}, initOverrides);
|
|
1048
|
-
|
|
1049
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyOptionAPIFromJSON(jsonValue));
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
* Update an issue property option
|
|
1054
|
-
* Update an issue property option
|
|
1055
|
-
*/
|
|
1056
|
-
async updateIssuePropertyOption(requestParameters: UpdateIssuePropertyOptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI> {
|
|
1057
|
-
const response = await this.updateIssuePropertyOptionRaw(requestParameters, initOverrides);
|
|
1058
|
-
return await response.value();
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
}
|