@makeplane/plane-node-sdk 0.1.4 → 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 +34 -0
- package/dist/models/Epic.d.ts.map +1 -0
- package/dist/{oauth/models.js → models/Epic.js} +1 -0
- 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/models/Link.js +3 -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 -95
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +9 -94
- package/dist/models/index.js.map +1 -0
- package/package.json +49 -14
- package/.github/workflows/publish-node-sdk.yml +0 -43
- package/.openapi-generator/FILES +0 -124
- 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/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/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 -80
- package/dist/apis/WorkItemAttachmentsApi.js +0 -400
- 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 -210
- package/dist/apis/WorkItemPropertiesApi.js +0 -1066
- 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 -134
- package/dist/apis/WorkItemsApi.js +0 -674
- package/dist/apis/index.d.ts +0 -17
- package/dist/apis/index.js +0 -34
- package/dist/models/AccessEnum.d.ts +0 -25
- package/dist/models/AccessEnum.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/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/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/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/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 -143
- package/dist/models/PatchedProjectUpdateRequest.js +0 -85
- 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 -131
- package/dist/models/ProjectCreateRequest.js +0 -85
- 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/RelationTypeEnum.d.ts +0 -25
- package/dist/models/RelationTypeEnum.js +0 -51
- 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/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/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 -335
- package/src/apis/WorkItemCommentsApi.ts +0 -439
- package/src/apis/WorkItemLinksApi.ts +0 -469
- package/src/apis/WorkItemPropertiesApi.ts +0 -984
- package/src/apis/WorkItemTypesApi.ts +0 -378
- package/src/apis/WorkItemWorklogsApi.ts +0 -398
- package/src/apis/WorkItemsApi.ts +0 -594
- package/src/apis/index.ts +0 -19
- package/src/index.ts +0 -6
- package/src/models/AccessEnum.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/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/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/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/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/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 -221
- 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 -207
- package/src/models/ProjectWorklogSummary.ts +0 -74
- package/src/models/PropertyTypeEnum.ts +0 -67
- package/src/models/RelationTypeEnum.ts +0 -53
- 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 -97
- 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
package/dist/runtime.js
DELETED
|
@@ -1,563 +0,0 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
30
|
-
__assign = Object.assign || function(t) {
|
|
31
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
-
s = arguments[i];
|
|
33
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
-
t[p] = s[p];
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
};
|
|
38
|
-
return __assign.apply(this, arguments);
|
|
39
|
-
};
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
-
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);
|
|
51
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
-
function step(op) {
|
|
54
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
56
|
-
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;
|
|
57
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
-
switch (op[0]) {
|
|
59
|
-
case 0: case 1: t = op; break;
|
|
60
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
-
default:
|
|
64
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
-
if (t[2]) _.ops.pop();
|
|
69
|
-
_.trys.pop(); continue;
|
|
70
|
-
}
|
|
71
|
-
op = body.call(thisArg, _);
|
|
72
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
78
|
-
exports.querystring = querystring;
|
|
79
|
-
exports.exists = exists;
|
|
80
|
-
exports.mapValues = mapValues;
|
|
81
|
-
exports.canConsumeForm = canConsumeForm;
|
|
82
|
-
exports.BASE_PATH = "https://api.plane.so".replace(/\/+$/, "");
|
|
83
|
-
var Configuration = /** @class */ (function () {
|
|
84
|
-
function Configuration(configuration) {
|
|
85
|
-
if (configuration === void 0) { configuration = {}; }
|
|
86
|
-
this.configuration = configuration;
|
|
87
|
-
}
|
|
88
|
-
Object.defineProperty(Configuration.prototype, "config", {
|
|
89
|
-
set: function (configuration) {
|
|
90
|
-
this.configuration = configuration;
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(Configuration.prototype, "basePath", {
|
|
96
|
-
get: function () {
|
|
97
|
-
return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
|
|
98
|
-
},
|
|
99
|
-
enumerable: false,
|
|
100
|
-
configurable: true
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(Configuration.prototype, "fetchApi", {
|
|
103
|
-
get: function () {
|
|
104
|
-
return this.configuration.fetchApi;
|
|
105
|
-
},
|
|
106
|
-
enumerable: false,
|
|
107
|
-
configurable: true
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(Configuration.prototype, "middleware", {
|
|
110
|
-
get: function () {
|
|
111
|
-
return this.configuration.middleware || [];
|
|
112
|
-
},
|
|
113
|
-
enumerable: false,
|
|
114
|
-
configurable: true
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(Configuration.prototype, "queryParamsStringify", {
|
|
117
|
-
get: function () {
|
|
118
|
-
return this.configuration.queryParamsStringify || querystring;
|
|
119
|
-
},
|
|
120
|
-
enumerable: false,
|
|
121
|
-
configurable: true
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(Configuration.prototype, "username", {
|
|
124
|
-
get: function () {
|
|
125
|
-
return this.configuration.username;
|
|
126
|
-
},
|
|
127
|
-
enumerable: false,
|
|
128
|
-
configurable: true
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(Configuration.prototype, "password", {
|
|
131
|
-
get: function () {
|
|
132
|
-
return this.configuration.password;
|
|
133
|
-
},
|
|
134
|
-
enumerable: false,
|
|
135
|
-
configurable: true
|
|
136
|
-
});
|
|
137
|
-
Object.defineProperty(Configuration.prototype, "apiKey", {
|
|
138
|
-
get: function () {
|
|
139
|
-
var apiKey = this.configuration.apiKey;
|
|
140
|
-
if (apiKey) {
|
|
141
|
-
return typeof apiKey === 'function' ? apiKey : function () { return apiKey; };
|
|
142
|
-
}
|
|
143
|
-
return undefined;
|
|
144
|
-
},
|
|
145
|
-
enumerable: false,
|
|
146
|
-
configurable: true
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(Configuration.prototype, "accessToken", {
|
|
149
|
-
get: function () {
|
|
150
|
-
var _this = this;
|
|
151
|
-
var accessToken = "Bearer ".concat(this.configuration.accessToken);
|
|
152
|
-
if (accessToken) {
|
|
153
|
-
return typeof accessToken === 'function' ? accessToken : function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
154
|
-
return [2 /*return*/, accessToken];
|
|
155
|
-
}); }); };
|
|
156
|
-
}
|
|
157
|
-
return undefined;
|
|
158
|
-
},
|
|
159
|
-
enumerable: false,
|
|
160
|
-
configurable: true
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(Configuration.prototype, "headers", {
|
|
163
|
-
get: function () {
|
|
164
|
-
return this.configuration.headers;
|
|
165
|
-
},
|
|
166
|
-
enumerable: false,
|
|
167
|
-
configurable: true
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(Configuration.prototype, "credentials", {
|
|
170
|
-
get: function () {
|
|
171
|
-
return this.configuration.credentials;
|
|
172
|
-
},
|
|
173
|
-
enumerable: false,
|
|
174
|
-
configurable: true
|
|
175
|
-
});
|
|
176
|
-
return Configuration;
|
|
177
|
-
}());
|
|
178
|
-
exports.Configuration = Configuration;
|
|
179
|
-
exports.DefaultConfig = new Configuration();
|
|
180
|
-
/**
|
|
181
|
-
* This is the base class for all generated API classes.
|
|
182
|
-
*/
|
|
183
|
-
var BaseAPI = /** @class */ (function () {
|
|
184
|
-
function BaseAPI(configuration) {
|
|
185
|
-
if (configuration === void 0) { configuration = exports.DefaultConfig; }
|
|
186
|
-
var _this = this;
|
|
187
|
-
this.configuration = configuration;
|
|
188
|
-
this.fetchApi = function (url, init) { return __awaiter(_this, void 0, void 0, function () {
|
|
189
|
-
var fetchParams, _i, _a, middleware, response, e_1, _b, _c, middleware, _d, _e, middleware;
|
|
190
|
-
return __generator(this, function (_f) {
|
|
191
|
-
switch (_f.label) {
|
|
192
|
-
case 0:
|
|
193
|
-
fetchParams = { url: url, init: init };
|
|
194
|
-
_i = 0, _a = this.middleware;
|
|
195
|
-
_f.label = 1;
|
|
196
|
-
case 1:
|
|
197
|
-
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
198
|
-
middleware = _a[_i];
|
|
199
|
-
if (!middleware.pre) return [3 /*break*/, 3];
|
|
200
|
-
return [4 /*yield*/, middleware.pre(__assign({ fetch: this.fetchApi }, fetchParams))];
|
|
201
|
-
case 2:
|
|
202
|
-
fetchParams = (_f.sent()) || fetchParams;
|
|
203
|
-
_f.label = 3;
|
|
204
|
-
case 3:
|
|
205
|
-
_i++;
|
|
206
|
-
return [3 /*break*/, 1];
|
|
207
|
-
case 4:
|
|
208
|
-
response = undefined;
|
|
209
|
-
_f.label = 5;
|
|
210
|
-
case 5:
|
|
211
|
-
_f.trys.push([5, 7, , 12]);
|
|
212
|
-
return [4 /*yield*/, (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init)];
|
|
213
|
-
case 6:
|
|
214
|
-
response = _f.sent();
|
|
215
|
-
return [3 /*break*/, 12];
|
|
216
|
-
case 7:
|
|
217
|
-
e_1 = _f.sent();
|
|
218
|
-
_b = 0, _c = this.middleware;
|
|
219
|
-
_f.label = 8;
|
|
220
|
-
case 8:
|
|
221
|
-
if (!(_b < _c.length)) return [3 /*break*/, 11];
|
|
222
|
-
middleware = _c[_b];
|
|
223
|
-
if (!middleware.onError) return [3 /*break*/, 10];
|
|
224
|
-
return [4 /*yield*/, middleware.onError({
|
|
225
|
-
fetch: this.fetchApi,
|
|
226
|
-
url: fetchParams.url,
|
|
227
|
-
init: fetchParams.init,
|
|
228
|
-
error: e_1,
|
|
229
|
-
response: response ? response.clone() : undefined,
|
|
230
|
-
})];
|
|
231
|
-
case 9:
|
|
232
|
-
response = (_f.sent()) || response;
|
|
233
|
-
_f.label = 10;
|
|
234
|
-
case 10:
|
|
235
|
-
_b++;
|
|
236
|
-
return [3 /*break*/, 8];
|
|
237
|
-
case 11:
|
|
238
|
-
if (response === undefined) {
|
|
239
|
-
if (e_1 instanceof Error) {
|
|
240
|
-
throw new FetchError(e_1, 'The request failed and the interceptors did not return an alternative response');
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
throw e_1;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return [3 /*break*/, 12];
|
|
247
|
-
case 12:
|
|
248
|
-
_d = 0, _e = this.middleware;
|
|
249
|
-
_f.label = 13;
|
|
250
|
-
case 13:
|
|
251
|
-
if (!(_d < _e.length)) return [3 /*break*/, 16];
|
|
252
|
-
middleware = _e[_d];
|
|
253
|
-
if (!middleware.post) return [3 /*break*/, 15];
|
|
254
|
-
return [4 /*yield*/, middleware.post({
|
|
255
|
-
fetch: this.fetchApi,
|
|
256
|
-
url: fetchParams.url,
|
|
257
|
-
init: fetchParams.init,
|
|
258
|
-
response: response.clone(),
|
|
259
|
-
})];
|
|
260
|
-
case 14:
|
|
261
|
-
response = (_f.sent()) || response;
|
|
262
|
-
_f.label = 15;
|
|
263
|
-
case 15:
|
|
264
|
-
_d++;
|
|
265
|
-
return [3 /*break*/, 13];
|
|
266
|
-
case 16: return [2 /*return*/, response];
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
}); };
|
|
270
|
-
this.middleware = configuration.middleware;
|
|
271
|
-
}
|
|
272
|
-
BaseAPI.prototype.withMiddleware = function () {
|
|
273
|
-
var _a;
|
|
274
|
-
var middlewares = [];
|
|
275
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
276
|
-
middlewares[_i] = arguments[_i];
|
|
277
|
-
}
|
|
278
|
-
var next = this.clone();
|
|
279
|
-
next.middleware = (_a = next.middleware).concat.apply(_a, middlewares);
|
|
280
|
-
return next;
|
|
281
|
-
};
|
|
282
|
-
BaseAPI.prototype.withPreMiddleware = function () {
|
|
283
|
-
var preMiddlewares = [];
|
|
284
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
285
|
-
preMiddlewares[_i] = arguments[_i];
|
|
286
|
-
}
|
|
287
|
-
var middlewares = preMiddlewares.map(function (pre) { return ({ pre: pre }); });
|
|
288
|
-
return this.withMiddleware.apply(this, middlewares);
|
|
289
|
-
};
|
|
290
|
-
BaseAPI.prototype.withPostMiddleware = function () {
|
|
291
|
-
var postMiddlewares = [];
|
|
292
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
293
|
-
postMiddlewares[_i] = arguments[_i];
|
|
294
|
-
}
|
|
295
|
-
var middlewares = postMiddlewares.map(function (post) { return ({ post: post }); });
|
|
296
|
-
return this.withMiddleware.apply(this, middlewares);
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Check if the given MIME is a JSON MIME.
|
|
300
|
-
* JSON MIME examples:
|
|
301
|
-
* application/json
|
|
302
|
-
* application/json; charset=UTF8
|
|
303
|
-
* APPLICATION/JSON
|
|
304
|
-
* application/vnd.company+json
|
|
305
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
306
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
307
|
-
*/
|
|
308
|
-
BaseAPI.prototype.isJsonMime = function (mime) {
|
|
309
|
-
if (!mime) {
|
|
310
|
-
return false;
|
|
311
|
-
}
|
|
312
|
-
return BaseAPI.jsonRegex.test(mime);
|
|
313
|
-
};
|
|
314
|
-
BaseAPI.prototype.request = function (context, initOverrides) {
|
|
315
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
-
var _a, url, init, response;
|
|
317
|
-
return __generator(this, function (_b) {
|
|
318
|
-
switch (_b.label) {
|
|
319
|
-
case 0: return [4 /*yield*/, this.createFetchParams(context, initOverrides)];
|
|
320
|
-
case 1:
|
|
321
|
-
_a = _b.sent(), url = _a.url, init = _a.init;
|
|
322
|
-
return [4 /*yield*/, this.fetchApi(url, init)];
|
|
323
|
-
case 2:
|
|
324
|
-
response = _b.sent();
|
|
325
|
-
if (response && (response.status >= 200 && response.status < 300)) {
|
|
326
|
-
return [2 /*return*/, response];
|
|
327
|
-
}
|
|
328
|
-
throw new ResponseError(response, 'Response returned an error code');
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
};
|
|
333
|
-
BaseAPI.prototype.createFetchParams = function (context, initOverrides) {
|
|
334
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
335
|
-
var url, headers, initOverrideFn, initParams, overriddenInit, _a, body, init;
|
|
336
|
-
var _this = this;
|
|
337
|
-
return __generator(this, function (_b) {
|
|
338
|
-
switch (_b.label) {
|
|
339
|
-
case 0:
|
|
340
|
-
url = this.configuration.basePath + context.path;
|
|
341
|
-
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
342
|
-
// only add the querystring to the URL if there are query parameters.
|
|
343
|
-
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
344
|
-
// do not handle correctly sometimes.
|
|
345
|
-
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
346
|
-
}
|
|
347
|
-
headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
348
|
-
Object.keys(headers).forEach(function (key) { return headers[key] === undefined ? delete headers[key] : {}; });
|
|
349
|
-
initOverrideFn = typeof initOverrides === "function"
|
|
350
|
-
? initOverrides
|
|
351
|
-
: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
352
|
-
return [2 /*return*/, initOverrides];
|
|
353
|
-
}); }); };
|
|
354
|
-
initParams = {
|
|
355
|
-
method: context.method,
|
|
356
|
-
headers: headers,
|
|
357
|
-
body: context.body,
|
|
358
|
-
credentials: this.configuration.credentials,
|
|
359
|
-
};
|
|
360
|
-
_a = [__assign({}, initParams)];
|
|
361
|
-
return [4 /*yield*/, initOverrideFn({
|
|
362
|
-
init: initParams,
|
|
363
|
-
context: context,
|
|
364
|
-
})];
|
|
365
|
-
case 1:
|
|
366
|
-
overriddenInit = __assign.apply(void 0, _a.concat([(_b.sent())]));
|
|
367
|
-
if (isFormData(overriddenInit.body)
|
|
368
|
-
|| (overriddenInit.body instanceof URLSearchParams)
|
|
369
|
-
|| isBlob(overriddenInit.body)) {
|
|
370
|
-
body = overriddenInit.body;
|
|
371
|
-
}
|
|
372
|
-
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
373
|
-
body = JSON.stringify(overriddenInit.body);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
body = overriddenInit.body;
|
|
377
|
-
}
|
|
378
|
-
init = __assign(__assign({}, overriddenInit), { body: body });
|
|
379
|
-
return [2 /*return*/, { url: url, init: init }];
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
};
|
|
384
|
-
/**
|
|
385
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
386
|
-
* and then shallow cloning data members.
|
|
387
|
-
*/
|
|
388
|
-
BaseAPI.prototype.clone = function () {
|
|
389
|
-
var constructor = this.constructor;
|
|
390
|
-
var next = new constructor(this.configuration);
|
|
391
|
-
next.middleware = this.middleware.slice();
|
|
392
|
-
return next;
|
|
393
|
-
};
|
|
394
|
-
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
395
|
-
return BaseAPI;
|
|
396
|
-
}());
|
|
397
|
-
exports.BaseAPI = BaseAPI;
|
|
398
|
-
;
|
|
399
|
-
function isBlob(value) {
|
|
400
|
-
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
401
|
-
}
|
|
402
|
-
function isFormData(value) {
|
|
403
|
-
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
404
|
-
}
|
|
405
|
-
var ResponseError = /** @class */ (function (_super) {
|
|
406
|
-
__extends(ResponseError, _super);
|
|
407
|
-
function ResponseError(response, msg) {
|
|
408
|
-
var _this = _super.call(this, msg) || this;
|
|
409
|
-
_this.response = response;
|
|
410
|
-
_this.name = "ResponseError";
|
|
411
|
-
return _this;
|
|
412
|
-
}
|
|
413
|
-
return ResponseError;
|
|
414
|
-
}(Error));
|
|
415
|
-
exports.ResponseError = ResponseError;
|
|
416
|
-
var FetchError = /** @class */ (function (_super) {
|
|
417
|
-
__extends(FetchError, _super);
|
|
418
|
-
function FetchError(cause, msg) {
|
|
419
|
-
var _this = _super.call(this, msg) || this;
|
|
420
|
-
_this.cause = cause;
|
|
421
|
-
_this.name = "FetchError";
|
|
422
|
-
return _this;
|
|
423
|
-
}
|
|
424
|
-
return FetchError;
|
|
425
|
-
}(Error));
|
|
426
|
-
exports.FetchError = FetchError;
|
|
427
|
-
var RequiredError = /** @class */ (function (_super) {
|
|
428
|
-
__extends(RequiredError, _super);
|
|
429
|
-
function RequiredError(field, msg) {
|
|
430
|
-
var _this = _super.call(this, msg) || this;
|
|
431
|
-
_this.field = field;
|
|
432
|
-
_this.name = "RequiredError";
|
|
433
|
-
return _this;
|
|
434
|
-
}
|
|
435
|
-
return RequiredError;
|
|
436
|
-
}(Error));
|
|
437
|
-
exports.RequiredError = RequiredError;
|
|
438
|
-
exports.COLLECTION_FORMATS = {
|
|
439
|
-
csv: ",",
|
|
440
|
-
ssv: " ",
|
|
441
|
-
tsv: "\t",
|
|
442
|
-
pipes: "|",
|
|
443
|
-
};
|
|
444
|
-
function querystring(params, prefix) {
|
|
445
|
-
if (prefix === void 0) { prefix = ''; }
|
|
446
|
-
return Object.keys(params)
|
|
447
|
-
.map(function (key) { return querystringSingleKey(key, params[key], prefix); })
|
|
448
|
-
.filter(function (part) { return part.length > 0; })
|
|
449
|
-
.join('&');
|
|
450
|
-
}
|
|
451
|
-
function querystringSingleKey(key, value, keyPrefix) {
|
|
452
|
-
if (keyPrefix === void 0) { keyPrefix = ''; }
|
|
453
|
-
var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
|
|
454
|
-
if (value instanceof Array) {
|
|
455
|
-
var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
|
|
456
|
-
.join("&".concat(encodeURIComponent(fullKey), "="));
|
|
457
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
|
|
458
|
-
}
|
|
459
|
-
if (value instanceof Set) {
|
|
460
|
-
var valueAsArray = Array.from(value);
|
|
461
|
-
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
462
|
-
}
|
|
463
|
-
if (value instanceof Date) {
|
|
464
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(encodeURIComponent(value.toISOString()));
|
|
465
|
-
}
|
|
466
|
-
if (value instanceof Object) {
|
|
467
|
-
return querystring(value, fullKey);
|
|
468
|
-
}
|
|
469
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(encodeURIComponent(String(value)));
|
|
470
|
-
}
|
|
471
|
-
function exists(json, key) {
|
|
472
|
-
var value = json[key];
|
|
473
|
-
return value !== null && value !== undefined;
|
|
474
|
-
}
|
|
475
|
-
function mapValues(data, fn) {
|
|
476
|
-
var result = {};
|
|
477
|
-
for (var _i = 0, _a = Object.keys(data); _i < _a.length; _i++) {
|
|
478
|
-
var key = _a[_i];
|
|
479
|
-
result[key] = fn(data[key]);
|
|
480
|
-
}
|
|
481
|
-
return result;
|
|
482
|
-
}
|
|
483
|
-
function canConsumeForm(consumes) {
|
|
484
|
-
for (var _i = 0, consumes_1 = consumes; _i < consumes_1.length; _i++) {
|
|
485
|
-
var consume = consumes_1[_i];
|
|
486
|
-
if ('multipart/form-data' === consume.contentType) {
|
|
487
|
-
return true;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return false;
|
|
491
|
-
}
|
|
492
|
-
var JSONApiResponse = /** @class */ (function () {
|
|
493
|
-
function JSONApiResponse(raw, transformer) {
|
|
494
|
-
if (transformer === void 0) { transformer = function (jsonValue) { return jsonValue; }; }
|
|
495
|
-
this.raw = raw;
|
|
496
|
-
this.transformer = transformer;
|
|
497
|
-
}
|
|
498
|
-
JSONApiResponse.prototype.value = function () {
|
|
499
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
500
|
-
var _a;
|
|
501
|
-
return __generator(this, function (_b) {
|
|
502
|
-
switch (_b.label) {
|
|
503
|
-
case 0:
|
|
504
|
-
_a = this.transformer;
|
|
505
|
-
return [4 /*yield*/, this.raw.json()];
|
|
506
|
-
case 1: return [2 /*return*/, _a.apply(this, [_b.sent()])];
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
return JSONApiResponse;
|
|
512
|
-
}());
|
|
513
|
-
exports.JSONApiResponse = JSONApiResponse;
|
|
514
|
-
var VoidApiResponse = /** @class */ (function () {
|
|
515
|
-
function VoidApiResponse(raw) {
|
|
516
|
-
this.raw = raw;
|
|
517
|
-
}
|
|
518
|
-
VoidApiResponse.prototype.value = function () {
|
|
519
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
520
|
-
return __generator(this, function (_a) {
|
|
521
|
-
return [2 /*return*/, undefined];
|
|
522
|
-
});
|
|
523
|
-
});
|
|
524
|
-
};
|
|
525
|
-
return VoidApiResponse;
|
|
526
|
-
}());
|
|
527
|
-
exports.VoidApiResponse = VoidApiResponse;
|
|
528
|
-
var BlobApiResponse = /** @class */ (function () {
|
|
529
|
-
function BlobApiResponse(raw) {
|
|
530
|
-
this.raw = raw;
|
|
531
|
-
}
|
|
532
|
-
BlobApiResponse.prototype.value = function () {
|
|
533
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
-
return __generator(this, function (_a) {
|
|
535
|
-
switch (_a.label) {
|
|
536
|
-
case 0: return [4 /*yield*/, this.raw.blob()];
|
|
537
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
});
|
|
541
|
-
};
|
|
542
|
-
;
|
|
543
|
-
return BlobApiResponse;
|
|
544
|
-
}());
|
|
545
|
-
exports.BlobApiResponse = BlobApiResponse;
|
|
546
|
-
var TextApiResponse = /** @class */ (function () {
|
|
547
|
-
function TextApiResponse(raw) {
|
|
548
|
-
this.raw = raw;
|
|
549
|
-
}
|
|
550
|
-
TextApiResponse.prototype.value = function () {
|
|
551
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
552
|
-
return __generator(this, function (_a) {
|
|
553
|
-
switch (_a.label) {
|
|
554
|
-
case 0: return [4 /*yield*/, this.raw.text()];
|
|
555
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
};
|
|
560
|
-
;
|
|
561
|
-
return TextApiResponse;
|
|
562
|
-
}());
|
|
563
|
-
exports.TextApiResponse = TextApiResponse;
|
package/eslint.config.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import js from "@eslint/js";
|
|
2
|
-
import globals from "globals";
|
|
3
|
-
import tseslint from "typescript-eslint";
|
|
4
|
-
import { defineConfig } from "eslint/config";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default defineConfig([
|
|
8
|
-
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"] },
|
|
9
|
-
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], languageOptions: { globals: globals.browser } },
|
|
10
|
-
tseslint.configs.recommended,
|
|
11
|
-
]);
|