diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 57e8bda..43a28cd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,10 +5,12 @@ eslint.config.mjs package.json src/apis/AssetsApi.ts src/apis/CyclesApi.ts +src/apis/EpicsApi.ts src/apis/IntakeApi.ts src/apis/LabelsApi.ts src/apis/MembersApi.ts src/apis/ModulesApi.ts +src/apis/PagesApi.ts src/apis/ProjectsApi.ts src/apis/StatesApi.ts src/apis/UsersApi.ts @@ -20,15 +22,17 @@ src/apis/WorkItemPropertiesApi.ts src/apis/WorkItemTypesApi.ts src/apis/WorkItemWorklogsApi.ts src/apis/WorkItemsApi.ts +src/apis/WorkspacesApi.ts src/apis/index.ts src/index.ts -src/models/AccessEnum.ts +src/models/AccessBd4Enum.ts src/models/Cycle.ts src/models/CycleCreateRequest.ts src/models/CycleIssue.ts src/models/CycleIssueRequestRequest.ts src/models/CycleLite.ts src/models/EntityTypeEnum.ts +src/models/Epic.ts src/models/GenericAssetUploadRequest.ts src/models/GetWorkspaceMembers200ResponseInner.ts src/models/GroupEnum.ts @@ -47,12 +51,18 @@ src/models/IssueForIntakeRequest.ts src/models/IssueLink.ts src/models/IssueLinkCreateRequest.ts src/models/IssuePropertyAPI.ts +src/models/IssuePropertyAPIRelationTypeEnum.ts src/models/IssuePropertyAPIRequest.ts src/models/IssuePropertyOptionAPI.ts src/models/IssuePropertyOptionAPIRequest.ts src/models/IssuePropertyValueAPI.ts src/models/IssuePropertyValueAPIDetail.ts src/models/IssuePropertyValueAPIRequest.ts +src/models/IssueRelation.ts +src/models/IssueRelationCreateRelationTypeEnum.ts +src/models/IssueRelationCreateRequest.ts +src/models/IssueRelationRemoveRequest.ts +src/models/IssueRelationResponse.ts src/models/IssueRequest.ts src/models/IssueSearch.ts src/models/IssueSearchItem.ts @@ -69,10 +79,15 @@ src/models/ModuleIssueRequestRequest.ts src/models/ModuleLite.ts src/models/ModuleStatusEnum.ts src/models/NetworkEnum.ts +src/models/PageCreateAPI.ts +src/models/PageCreateAPIAccessEnum.ts +src/models/PageCreateAPIRequest.ts +src/models/PageDetailAPI.ts src/models/PaginatedArchivedCycleResponse.ts src/models/PaginatedArchivedModuleResponse.ts src/models/PaginatedCycleIssueResponse.ts src/models/PaginatedCycleResponse.ts +src/models/PaginatedEpicResponse.ts src/models/PaginatedIntakeIssueResponse.ts src/models/PaginatedIssueActivityDetailResponse.ts src/models/PaginatedIssueActivityResponse.ts @@ -105,7 +120,6 @@ src/models/Project.ts src/models/ProjectCreateRequest.ts src/models/ProjectWorklogSummary.ts src/models/PropertyTypeEnum.ts -src/models/RelationTypeEnum.ts src/models/RetrieveWorkItemAttachment400Response.ts src/models/State.ts src/models/StateLite.ts diff --git a/README.md b/README.md index 5aed06f..5985a64 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## @makeplane/plane-node-sdk@0.1.4 +## @makeplane/plane-node-sdk@0.1.5 This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @makeplane/plane-node-sdk@0.1.4 --save +npm install @makeplane/plane-node-sdk@0.1.5 --save ``` _unPublished (not recommended):_ diff --git a/package-lock.json b/package-lock.json index 57dcff8..bdd676f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@makeplane/plane-node-sdk", - "version": "0.1.4", + "version": "0.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@makeplane/plane-node-sdk", - "version": "0.1.4", + "version": "0.1.5", "devDependencies": { "@eslint/js": "^9.29.0", "eslint": "^9.29.0", diff --git a/package.json b/package.json index 47a54d8..b2d6505 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@makeplane/plane-node-sdk", - "version": "0.1.4", + "version": "0.1.5", "description": "Node SDK for Plane", "author": "Plane ", "repository": { diff --git a/src/apis/AssetsApi.ts b/src/apis/AssetsApi.ts index c129ec9..47c9db9 100644 --- a/src/apis/AssetsApi.ts +++ b/src/apis/AssetsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/CyclesApi.ts b/src/apis/CyclesApi.ts index 80da79e..7cdf4bd 100644 --- a/src/apis/CyclesApi.ts +++ b/src/apis/CyclesApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -151,7 +151,7 @@ export class CyclesApi extends runtime.BaseAPI { * Assign multiple work items to a cycle. Automatically handles bulk creation and updates with activity tracking. * Add Work Items to Cycle */ - async addCycleWorkItemsRaw(requestParameters: AddCycleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async addCycleWorkItemsRaw(requestParameters: AddCycleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['cycleId'] == null) { throw new runtime.RequiredError( 'cycleId', @@ -208,14 +208,14 @@ export class CyclesApi extends runtime.BaseAPI { body: CycleIssueRequestRequestToJSON(requestParameters['cycleIssueRequestRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => CycleIssueFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CycleIssueFromJSON)); } /** * Assign multiple work items to a cycle. Automatically handles bulk creation and updates with activity tracking. * Add Work Items to Cycle */ - async addCycleWorkItems(requestParameters: AddCycleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async addCycleWorkItems(requestParameters: AddCycleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.addCycleWorkItemsRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/apis/EpicsApi.ts b/src/apis/EpicsApi.ts new file mode 100644 index 0000000..38190c0 --- /dev/null +++ b/src/apis/EpicsApi.ts @@ -0,0 +1,177 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + Epic, + PaginatedEpicResponse, +} from '../models/index'; +import { + EpicFromJSON, + EpicToJSON, + PaginatedEpicResponseFromJSON, + PaginatedEpicResponseToJSON, +} from '../models/index'; + +export interface ListEpicsRequest { + projectId: string; + slug: string; + cursor?: string; + perPage?: number; +} + +export interface RetrieveEpicRequest { + pk: string; + projectId: string; + slug: string; + fields?: string; +} + +/** + * + */ +export class EpicsApi extends runtime.BaseAPI { + + /** + * List epics + * List epics + */ + async listEpicsRaw(requestParameters: ListEpicsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling listEpics().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling listEpics().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + + if (requestParameters['perPage'] != null) { + queryParameters['per_page'] = requestParameters['perPage']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/epics/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEpicResponseFromJSON(jsonValue)); + } + + /** + * List epics + * List epics + */ + async listEpics(requestParameters: ListEpicsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listEpicsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Retrieve an epic by id + * Retrieve an epic + */ + async retrieveEpicRaw(requestParameters: RetrieveEpicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['pk'] == null) { + throw new runtime.RequiredError( + 'pk', + 'Required parameter "pk" was null or undefined when calling retrieveEpic().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling retrieveEpic().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling retrieveEpic().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['fields'] != null) { + queryParameters['fields'] = requestParameters['fields']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/epics/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => EpicFromJSON(jsonValue)); + } + + /** + * Retrieve an epic by id + * Retrieve an epic + */ + async retrieveEpic(requestParameters: RetrieveEpicRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.retrieveEpicRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/IntakeApi.ts b/src/apis/IntakeApi.ts index 2df5209..9010c05 100644 --- a/src/apis/IntakeApi.ts +++ b/src/apis/IntakeApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/LabelsApi.ts b/src/apis/LabelsApi.ts index ce6ddf3..ee2a433 100644 --- a/src/apis/LabelsApi.ts +++ b/src/apis/LabelsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/MembersApi.ts b/src/apis/MembersApi.ts index 8976a38..bc03b98 100644 --- a/src/apis/MembersApi.ts +++ b/src/apis/MembersApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/ModulesApi.ts b/src/apis/ModulesApi.ts index e86bff5..871e482 100644 --- a/src/apis/ModulesApi.ts +++ b/src/apis/ModulesApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -133,7 +133,7 @@ export class ModulesApi extends runtime.BaseAPI { * Assign multiple work items to a module or move them from another module. Automatically handles bulk creation and updates with activity tracking. * Add Work Items to Module */ - async addModuleWorkItemsRaw(requestParameters: AddModuleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async addModuleWorkItemsRaw(requestParameters: AddModuleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['moduleId'] == null) { throw new runtime.RequiredError( 'moduleId', @@ -190,14 +190,14 @@ export class ModulesApi extends runtime.BaseAPI { body: ModuleIssueRequestRequestToJSON(requestParameters['moduleIssueRequestRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => ModuleIssueFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ModuleIssueFromJSON)); } /** * Assign multiple work items to a module or move them from another module. Automatically handles bulk creation and updates with activity tracking. * Add Work Items to Module */ - async addModuleWorkItems(requestParameters: AddModuleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async addModuleWorkItems(requestParameters: AddModuleWorkItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.addModuleWorkItemsRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/apis/PagesApi.ts b/src/apis/PagesApi.ts new file mode 100644 index 0000000..0554c74 --- /dev/null +++ b/src/apis/PagesApi.ts @@ -0,0 +1,301 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; +import type { + PageCreateAPI, + PageCreateAPIRequest, + PageDetailAPI, +} from '../models/index'; +import { + PageCreateAPIFromJSON, + PageCreateAPIToJSON, + PageCreateAPIRequestFromJSON, + PageCreateAPIRequestToJSON, + PageDetailAPIFromJSON, + PageDetailAPIToJSON, +} from '../models/index'; + +export interface CreateProjectPageRequest { + projectId: string; + slug: string; + pageCreateAPIRequest: PageCreateAPIRequest; +} + +export interface CreateWorkspacePageRequest { + slug: string; + pageCreateAPIRequest: PageCreateAPIRequest; +} + +export interface GetProjectPageDetailRequest { + pk: string; + projectId: string; + slug: string; +} + +export interface GetWorkspacePageDetailRequest { + pk: string; + slug: string; +} + +/** + * + */ +export class PagesApi extends runtime.BaseAPI { + + /** + * Create a project page + * Create a project page + */ + async createProjectPageRaw(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling createProjectPage().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling createProjectPage().' + ); + } + + if (requestParameters['pageCreateAPIRequest'] == null) { + throw new runtime.RequiredError( + 'pageCreateAPIRequest', + 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createProjectPage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue)); + } + + /** + * Create a project page + * Create a project page + */ + async createProjectPage(requestParameters: CreateProjectPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createProjectPageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a workspace page + * Create a workspace page + */ + async createWorkspacePageRaw(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling createWorkspacePage().' + ); + } + + if (requestParameters['pageCreateAPIRequest'] == null) { + throw new runtime.RequiredError( + 'pageCreateAPIRequest', + 'Required parameter "pageCreateAPIRequest" was null or undefined when calling createWorkspacePage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/pages/`.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PageCreateAPIRequestToJSON(requestParameters['pageCreateAPIRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PageCreateAPIFromJSON(jsonValue)); + } + + /** + * Create a workspace page + * Create a workspace page + */ + async createWorkspacePage(requestParameters: CreateWorkspacePageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createWorkspacePageRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get a project page by ID + * Get a project page by ID + */ + async getProjectPageDetailRaw(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['pk'] == null) { + throw new runtime.RequiredError( + 'pk', + 'Required parameter "pk" was null or undefined when calling getProjectPageDetail().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling getProjectPageDetail().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling getProjectPageDetail().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue)); + } + + /** + * Get a project page by ID + * Get a project page by ID + */ + async getProjectPageDetail(requestParameters: GetProjectPageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getProjectPageDetailRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get a workspace page by ID + * Get a workspace page by ID + */ + async getWorkspacePageDetailRaw(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['pk'] == null) { + throw new runtime.RequiredError( + 'pk', + 'Required parameter "pk" was null or undefined when calling getWorkspacePageDetail().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling getWorkspacePageDetail().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/pages/{pk}/`.replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => PageDetailAPIFromJSON(jsonValue)); + } + + /** + * Get a workspace page by ID + * Get a workspace page by ID + */ + async getWorkspacePageDetail(requestParameters: GetWorkspacePageDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getWorkspacePageDetailRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/apis/ProjectsApi.ts b/src/apis/ProjectsApi.ts index c0c5e92..6c387a9 100644 --- a/src/apis/ProjectsApi.ts +++ b/src/apis/ProjectsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/StatesApi.ts b/src/apis/StatesApi.ts index 419adfd..82d7d0f 100644 --- a/src/apis/StatesApi.ts +++ b/src/apis/StatesApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/UsersApi.ts b/src/apis/UsersApi.ts index 78786eb..06f0f82 100644 --- a/src/apis/UsersApi.ts +++ b/src/apis/UsersApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemActivityApi.ts b/src/apis/WorkItemActivityApi.ts index f5d819f..b9a8174 100644 --- a/src/apis/WorkItemActivityApi.ts +++ b/src/apis/WorkItemActivityApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemAttachmentsApi.ts b/src/apis/WorkItemAttachmentsApi.ts index 658ee07..a04cfa8 100644 --- a/src/apis/WorkItemAttachmentsApi.ts +++ b/src/apis/WorkItemAttachmentsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -54,6 +54,14 @@ export interface RetrieveWorkItemAttachmentRequest { slug: string; } +export interface UploadWorkItemAttachmentRequest { + issueId: string; + pk: string; + projectId: string; + slug: string; + body?: any | null; +} + /** * */ @@ -332,4 +340,76 @@ export class WorkItemAttachmentsApi extends runtime.BaseAPI { await this.retrieveWorkItemAttachmentRaw(requestParameters, initOverrides); } + /** + * Mark an attachment as uploaded after successful file transfer to storage. + * Endpoints for issue attachment create/update/delete and fetch issue attachment details + */ + async uploadWorkItemAttachmentRaw(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['issueId'] == null) { + throw new runtime.RequiredError( + 'issueId', + 'Required parameter "issueId" was null or undefined when calling uploadWorkItemAttachment().' + ); + } + + if (requestParameters['pk'] == null) { + throw new runtime.RequiredError( + 'pk', + 'Required parameter "pk" was null or undefined when calling uploadWorkItemAttachment().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling uploadWorkItemAttachment().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling uploadWorkItemAttachment().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/issue-attachments/{pk}/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"pk"}}`, encodeURIComponent(String(requestParameters['pk']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: requestParameters['body'] as any, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Mark an attachment as uploaded after successful file transfer to storage. + * Endpoints for issue attachment create/update/delete and fetch issue attachment details + */ + async uploadWorkItemAttachment(requestParameters: UploadWorkItemAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.uploadWorkItemAttachmentRaw(requestParameters, initOverrides); + } + } diff --git a/src/apis/WorkItemCommentsApi.ts b/src/apis/WorkItemCommentsApi.ts index 0ee070d..172d9c5 100644 --- a/src/apis/WorkItemCommentsApi.ts +++ b/src/apis/WorkItemCommentsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemLinksApi.ts b/src/apis/WorkItemLinksApi.ts index f2d9973..9464832 100644 --- a/src/apis/WorkItemLinksApi.ts +++ b/src/apis/WorkItemLinksApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemPropertiesApi.ts b/src/apis/WorkItemPropertiesApi.ts index 92212cd..6d40e8c 100644 --- a/src/apis/WorkItemPropertiesApi.ts +++ b/src/apis/WorkItemPropertiesApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -100,6 +100,13 @@ export interface ListIssuePropertyValuesRequest { slug: string; } +export interface ListIssuePropertyValuesForAWorkitemRequest { + issueId: string; + projectId: string; + propertyId: string; + slug: string; +} + export interface RetrieveIssuePropertyRequest { projectId: string; propertyId: string; @@ -695,6 +702,76 @@ export class WorkItemPropertiesApi extends runtime.BaseAPI { return await response.value(); } + /** + * List issue property values for a workitem + * List issue property values for a workitem + */ + async listIssuePropertyValuesForAWorkitemRaw(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['issueId'] == null) { + throw new runtime.RequiredError( + 'issueId', + 'Required parameter "issueId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().' + ); + } + + if (requestParameters['propertyId'] == null) { + throw new runtime.RequiredError( + 'propertyId', + 'Required parameter "propertyId" was null or undefined when calling listIssuePropertyValuesForAWorkitem().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling listIssuePropertyValuesForAWorkitem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + 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']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IssuePropertyValueAPIFromJSON(jsonValue)); + } + + /** + * List issue property values for a workitem + * List issue property values for a workitem + */ + async listIssuePropertyValuesForAWorkitem(requestParameters: ListIssuePropertyValuesForAWorkitemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listIssuePropertyValuesForAWorkitemRaw(requestParameters, initOverrides); + return await response.value(); + } + /** * Get issue property by id * Get issue property by id diff --git a/src/apis/WorkItemTypesApi.ts b/src/apis/WorkItemTypesApi.ts index c96f6e3..1907594 100644 --- a/src/apis/WorkItemTypesApi.ts +++ b/src/apis/WorkItemTypesApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemWorklogsApi.ts b/src/apis/WorkItemWorklogsApi.ts index 23f107f..2397238 100644 --- a/src/apis/WorkItemWorklogsApi.ts +++ b/src/apis/WorkItemWorklogsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/apis/WorkItemsApi.ts b/src/apis/WorkItemsApi.ts index d79cc98..bcb6fc3 100644 --- a/src/apis/WorkItemsApi.ts +++ b/src/apis/WorkItemsApi.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -16,6 +16,10 @@ import * as runtime from '../runtime'; import type { Issue, IssueDetail, + IssueRelation, + IssueRelationCreateRequest, + IssueRelationRemoveRequest, + IssueRelationResponse, IssueRequest, IssueSearch, PaginatedWorkItemResponse, @@ -26,6 +30,14 @@ import { IssueToJSON, IssueDetailFromJSON, IssueDetailToJSON, + IssueRelationFromJSON, + IssueRelationToJSON, + IssueRelationCreateRequestFromJSON, + IssueRelationCreateRequestToJSON, + IssueRelationRemoveRequestFromJSON, + IssueRelationRemoveRequestToJSON, + IssueRelationResponseFromJSON, + IssueRelationResponseToJSON, IssueRequestFromJSON, IssueRequestToJSON, IssueSearchFromJSON, @@ -42,6 +54,13 @@ export interface CreateWorkItemRequest { issueRequest: IssueRequest; } +export interface CreateWorkItemRelationRequest { + issueId: string; + projectId: string; + slug: string; + issueRelationCreateRequest: IssueRelationCreateRequest; +} + export interface DeleteWorkItemRequest { pk: string; projectId: string; @@ -54,6 +73,17 @@ export interface GetWorkspaceWorkItemRequest { slug: string; } +export interface ListWorkItemRelationsRequest { + issueId: string; + projectId: string; + slug: string; + cursor?: string; + expand?: string; + fields?: string; + orderBy?: string; + perPage?: number; +} + export interface ListWorkItemsRequest { projectId: string; slug: string; @@ -66,6 +96,13 @@ export interface ListWorkItemsRequest { perPage?: number; } +export interface RemoveWorkItemRelationRequest { + issueId: string; + projectId: string; + slug: string; + issueRelationRemoveRequest: IssueRelationRemoveRequest; +} + export interface RetrieveWorkItemRequest { pk: string; projectId: string; @@ -163,6 +200,79 @@ export class WorkItemsApi extends runtime.BaseAPI { return await response.value(); } + /** + * Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after. + * Create work item relation + */ + async createWorkItemRelationRaw(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['issueId'] == null) { + throw new runtime.RequiredError( + 'issueId', + 'Required parameter "issueId" was null or undefined when calling createWorkItemRelation().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling createWorkItemRelation().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling createWorkItemRelation().' + ); + } + + if (requestParameters['issueRelationCreateRequest'] == null) { + throw new runtime.RequiredError( + 'issueRelationCreateRequest', + 'Required parameter "issueRelationCreateRequest" was null or undefined when calling createWorkItemRelation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IssueRelationCreateRequestToJSON(requestParameters['issueRelationCreateRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(IssueRelationFromJSON)); + } + + /** + * Create relationships between work items. Supports various relation types including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after. + * Create work item relation + */ + async createWorkItemRelation(requestParameters: CreateWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.createWorkItemRelationRaw(requestParameters, initOverrides); + return await response.value(); + } + /** * Permanently delete an existing work item from the project. Only admins or the item creator can perform this action. * Delete work item @@ -288,6 +398,89 @@ export class WorkItemsApi extends runtime.BaseAPI { return await response.value(); } + /** + * Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations. + * List work item relations + */ + async listWorkItemRelationsRaw(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['issueId'] == null) { + throw new runtime.RequiredError( + 'issueId', + 'Required parameter "issueId" was null or undefined when calling listWorkItemRelations().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling listWorkItemRelations().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling listWorkItemRelations().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + + if (requestParameters['expand'] != null) { + queryParameters['expand'] = requestParameters['expand']; + } + + if (requestParameters['fields'] != null) { + queryParameters['fields'] = requestParameters['fields']; + } + + if (requestParameters['orderBy'] != null) { + queryParameters['order_by'] = requestParameters['orderBy']; + } + + if (requestParameters['perPage'] != null) { + queryParameters['per_page'] = requestParameters['perPage']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IssueRelationResponseFromJSON(jsonValue)); + } + + /** + * Retrieve all relationships for a work item including blocking, blocked_by, duplicate, relates_to, start_before, start_after, finish_before, and finish_after relations. + * List work item relations + */ + async listWorkItemRelations(requestParameters: ListWorkItemRelationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listWorkItemRelationsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** * Retrieve a paginated list of all work items in a project. Supports filtering, ordering, and field selection through query parameters. * List work items @@ -372,6 +565,78 @@ export class WorkItemsApi extends runtime.BaseAPI { return await response.value(); } + /** + * Remove a relationship between work items by specifying the related work item ID. + * Remove work item relation + */ + async removeWorkItemRelationRaw(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['issueId'] == null) { + throw new runtime.RequiredError( + 'issueId', + 'Required parameter "issueId" was null or undefined when calling removeWorkItemRelation().' + ); + } + + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling removeWorkItemRelation().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling removeWorkItemRelation().' + ); + } + + if (requestParameters['issueRelationRemoveRequest'] == null) { + throw new runtime.RequiredError( + 'issueRelationRemoveRequest', + 'Required parameter "issueRelationRemoveRequest" was null or undefined when calling removeWorkItemRelation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/issues/{issue_id}/relations/remove/`.replace(`{${"issue_id"}}`, encodeURIComponent(String(requestParameters['issueId']))).replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IssueRelationRemoveRequestToJSON(requestParameters['issueRelationRemoveRequest']), + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove a relationship between work items by specifying the related work item ID. + * Remove work item relation + */ + async removeWorkItemRelation(requestParameters: RemoveWorkItemRelationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.removeWorkItemRelationRaw(requestParameters, initOverrides); + } + /** * Retrieve details of a specific work item. * Retrieve work item diff --git a/src/apis/WorkspacesApi.ts b/src/apis/WorkspacesApi.ts new file mode 100644 index 0000000..2c45110 --- /dev/null +++ b/src/apis/WorkspacesApi.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +import * as runtime from '../runtime'; + +export interface WorkspacesProjectsMembersCreateRequest { + projectId: string; + slug: string; +} + +/** + * + */ +export class WorkspacesApi extends runtime.BaseAPI { + + /** + * This enables timezone conversion according to the user set timezone + */ + async workspacesProjectsMembersCreateRaw(requestParameters: WorkspacesProjectsMembersCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['projectId'] == null) { + throw new runtime.RequiredError( + 'projectId', + 'Required parameter "projectId" was null or undefined when calling workspacesProjectsMembersCreate().' + ); + } + + if (requestParameters['slug'] == null) { + throw new runtime.RequiredError( + 'slug', + 'Required parameter "slug" was null or undefined when calling workspacesProjectsMembersCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuthentication authentication + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + if (this.configuration && this.configuration.accessToken) { + // oauth required + headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2Authentication", []); + } + + const response = await this.request({ + path: `/api/v1/workspaces/{slug}/projects/{project_id}/members/`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters['projectId']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * This enables timezone conversion according to the user set timezone + */ + async workspacesProjectsMembersCreate(requestParameters: WorkspacesProjectsMembersCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.workspacesProjectsMembersCreateRaw(requestParameters, initOverrides); + } + +} diff --git a/src/apis/index.ts b/src/apis/index.ts index 1e85e04..6c18235 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -2,10 +2,12 @@ export * from './AssetsApi'; export * from './CyclesApi'; +export * from './EpicsApi'; export * from './IntakeApi'; export * from './LabelsApi'; export * from './MembersApi'; export * from './ModulesApi'; +export * from './PagesApi'; export * from './ProjectsApi'; export * from './StatesApi'; export * from './UsersApi'; @@ -17,3 +19,4 @@ export * from './WorkItemPropertiesApi'; export * from './WorkItemTypesApi'; export * from './WorkItemWorklogsApi'; export * from './WorkItemsApi'; +export * from './WorkspacesApi'; diff --git a/src/models/AccessBd4Enum.ts b/src/models/AccessBd4Enum.ts new file mode 100644 index 0000000..db579e3 --- /dev/null +++ b/src/models/AccessBd4Enum.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +/** + * * `INTERNAL` - INTERNAL + * * `EXTERNAL` - EXTERNAL + * @export + */ +export const AccessBd4Enum = { + Internal: 'INTERNAL', + External: 'EXTERNAL' +} as const; +export type AccessBd4Enum = typeof AccessBd4Enum[keyof typeof AccessBd4Enum]; + + +export function instanceOfAccessBd4Enum(value: any): boolean { + for (const key in AccessBd4Enum) { + if (Object.prototype.hasOwnProperty.call(AccessBd4Enum, key)) { + if (AccessBd4Enum[key as keyof typeof AccessBd4Enum] === value) { + return true; + } + } + } + return false; +} + +export function AccessBd4EnumFromJSON(json: any): AccessBd4Enum { + return AccessBd4EnumFromJSONTyped(json, false); +} + +export function AccessBd4EnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessBd4Enum { + return json as AccessBd4Enum; +} + +export function AccessBd4EnumToJSON(value?: AccessBd4Enum | null): any { + return value as any; +} + +export function AccessBd4EnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AccessBd4Enum { + return value as AccessBd4Enum; +} + diff --git a/src/models/AccessEnum.ts b/src/models/AccessEnum.ts deleted file mode 100644 index 18a3c0d..0000000 --- a/src/models/AccessEnum.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * The Plane REST API - * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). - * - * The version of the API Spec: 0.0.1 - * Contact: support@plane.so - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - - -/** - * * `INTERNAL` - INTERNAL - * * `EXTERNAL` - EXTERNAL - * @export - */ -export const AccessEnum = { - Internal: 'INTERNAL', - External: 'EXTERNAL' -} as const; -export type AccessEnum = typeof AccessEnum[keyof typeof AccessEnum]; - - -export function instanceOfAccessEnum(value: any): boolean { - for (const key in AccessEnum) { - if (Object.prototype.hasOwnProperty.call(AccessEnum, key)) { - if (AccessEnum[key as keyof typeof AccessEnum] === value) { - return true; - } - } - } - return false; -} - -export function AccessEnumFromJSON(json: any): AccessEnum { - return AccessEnumFromJSONTyped(json, false); -} - -export function AccessEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessEnum { - return json as AccessEnum; -} - -export function AccessEnumToJSON(value?: AccessEnum | null): any { - return value as any; -} - -export function AccessEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AccessEnum { - return value as AccessEnum; -} - diff --git a/src/models/Cycle.ts b/src/models/Cycle.ts index 07b27d3..c6afb73 100644 --- a/src/models/Cycle.ts +++ b/src/models/Cycle.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/CycleCreateRequest.ts b/src/models/CycleCreateRequest.ts index c5e3e4a..97d50b2 100644 --- a/src/models/CycleCreateRequest.ts +++ b/src/models/CycleCreateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/CycleIssue.ts b/src/models/CycleIssue.ts index a65a2ac..a23f312 100644 --- a/src/models/CycleIssue.ts +++ b/src/models/CycleIssue.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/CycleIssueRequestRequest.ts b/src/models/CycleIssueRequestRequest.ts index e6e5f98..e02186a 100644 --- a/src/models/CycleIssueRequestRequest.ts +++ b/src/models/CycleIssueRequestRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/CycleLite.ts b/src/models/CycleLite.ts index 898a72c..6cc4818 100644 --- a/src/models/CycleLite.ts +++ b/src/models/CycleLite.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/EntityTypeEnum.ts b/src/models/EntityTypeEnum.ts index 258756e..6565701 100644 --- a/src/models/EntityTypeEnum.ts +++ b/src/models/EntityTypeEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/Epic.ts b/src/models/Epic.ts new file mode 100644 index 0000000..6eafbf6 --- /dev/null +++ b/src/models/Epic.ts @@ -0,0 +1,302 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PriorityEnum } from './PriorityEnum'; +import { + PriorityEnumFromJSON, + PriorityEnumFromJSONTyped, + PriorityEnumToJSON, + PriorityEnumToJSONTyped, +} from './PriorityEnum'; + +/** + * + * @export + * @interface Epic + */ +export interface Epic { + /** + * + * @type {string} + * @memberof Epic + */ + readonly id?: string; + /** + * + * @type {Date} + * @memberof Epic + */ + readonly deletedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Epic + */ + readonly createdAt?: Date; + /** + * + * @type {Date} + * @memberof Epic + */ + readonly updatedAt?: Date; + /** + * + * @type {number} + * @memberof Epic + */ + point?: number | null; + /** + * + * @type {string} + * @memberof Epic + */ + name: string; + /** + * + * @type {any} + * @memberof Epic + */ + description?: any | null; + /** + * + * @type {string} + * @memberof Epic + */ + descriptionHtml?: string; + /** + * + * @type {string} + * @memberof Epic + */ + descriptionStripped?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + readonly descriptionBinary?: string | null; + /** + * + * @type {PriorityEnum} + * @memberof Epic + */ + priority?: PriorityEnum; + /** + * + * @type {Date} + * @memberof Epic + */ + startDate?: Date | null; + /** + * + * @type {Date} + * @memberof Epic + */ + targetDate?: Date | null; + /** + * + * @type {number} + * @memberof Epic + */ + sequenceId?: number; + /** + * + * @type {number} + * @memberof Epic + */ + sortOrder?: number; + /** + * + * @type {Date} + * @memberof Epic + */ + completedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Epic + */ + archivedAt?: Date | null; + /** + * + * @type {boolean} + * @memberof Epic + */ + isDraft?: boolean; + /** + * + * @type {string} + * @memberof Epic + */ + externalSource?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + externalId?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + createdBy?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + updatedBy?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + project: string; + /** + * + * @type {string} + * @memberof Epic + */ + workspace: string; + /** + * + * @type {string} + * @memberof Epic + */ + parent?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + state?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + estimatePoint?: string | null; + /** + * + * @type {string} + * @memberof Epic + */ + type?: string | null; + /** + * + * @type {Array} + * @memberof Epic + */ + readonly assignees?: Array; + /** + * + * @type {Array} + * @memberof Epic + */ + readonly labels?: Array; +} + + + +/** + * Check if a given object implements the Epic interface. + */ +export function instanceOfEpic(value: object): value is Epic { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('project' in value) || value['project'] === undefined) return false; + if (!('workspace' in value) || value['workspace'] === undefined) return false; + return true; +} + +export function EpicFromJSON(json: any): Epic { + return EpicFromJSONTyped(json, false); +} + +export function EpicFromJSONTyped(json: any, ignoreDiscriminator: boolean): Epic { + if (json == null) { + return json; + } + return { + + 'id': json['id'] == null ? undefined : json['id'], + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'point': json['point'] == null ? undefined : json['point'], + 'name': json['name'], + 'description': json['description'] == null ? undefined : json['description'], + 'descriptionHtml': json['description_html'] == null ? undefined : json['description_html'], + 'descriptionStripped': json['description_stripped'] == null ? undefined : json['description_stripped'], + 'descriptionBinary': json['description_binary'] == null ? undefined : json['description_binary'], + 'priority': json['priority'] == null ? undefined : PriorityEnumFromJSON(json['priority']), + 'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])), + 'targetDate': json['target_date'] == null ? undefined : (new Date(json['target_date'])), + 'sequenceId': json['sequence_id'] == null ? undefined : json['sequence_id'], + 'sortOrder': json['sort_order'] == null ? undefined : json['sort_order'], + 'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])), + 'archivedAt': json['archived_at'] == null ? undefined : (new Date(json['archived_at'])), + 'isDraft': json['is_draft'] == null ? undefined : json['is_draft'], + 'externalSource': json['external_source'] == null ? undefined : json['external_source'], + 'externalId': json['external_id'] == null ? undefined : json['external_id'], + 'createdBy': json['created_by'] == null ? undefined : json['created_by'], + 'updatedBy': json['updated_by'] == null ? undefined : json['updated_by'], + 'project': json['project'], + 'workspace': json['workspace'], + 'parent': json['parent'] == null ? undefined : json['parent'], + 'state': json['state'] == null ? undefined : json['state'], + 'estimatePoint': json['estimate_point'] == null ? undefined : json['estimate_point'], + 'type': json['type'] == null ? undefined : json['type'], + 'assignees': json['assignees'] == null ? undefined : json['assignees'], + 'labels': json['labels'] == null ? undefined : json['labels'], + }; +} + +export function EpicToJSON(json: any): Epic { + return EpicToJSONTyped(json, false); +} + +export function EpicToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'point': value['point'], + 'name': value['name'], + 'description': value['description'], + 'description_html': value['descriptionHtml'], + 'description_stripped': value['descriptionStripped'], + 'priority': PriorityEnumToJSON(value['priority']), + 'start_date': value['startDate'] == null ? undefined : ((value['startDate'] as any).toISOString().substring(0,10)), + 'target_date': value['targetDate'] == null ? undefined : ((value['targetDate'] as any).toISOString().substring(0,10)), + 'sequence_id': value['sequenceId'], + 'sort_order': value['sortOrder'], + 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt'] as any).toISOString()), + 'archived_at': value['archivedAt'] == null ? undefined : ((value['archivedAt'] as any).toISOString().substring(0,10)), + 'is_draft': value['isDraft'], + 'external_source': value['externalSource'], + 'external_id': value['externalId'], + 'created_by': value['createdBy'], + 'updated_by': value['updatedBy'], + 'project': value['project'], + 'workspace': value['workspace'], + 'parent': value['parent'], + 'state': value['state'], + 'estimate_point': value['estimatePoint'], + 'type': value['type'], + }; +} + diff --git a/src/models/GenericAssetUploadRequest.ts b/src/models/GenericAssetUploadRequest.ts index f81db45..52d0191 100644 --- a/src/models/GenericAssetUploadRequest.ts +++ b/src/models/GenericAssetUploadRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/GetWorkspaceMembers200ResponseInner.ts b/src/models/GetWorkspaceMembers200ResponseInner.ts index 7ceb278..3638058 100644 --- a/src/models/GetWorkspaceMembers200ResponseInner.ts +++ b/src/models/GetWorkspaceMembers200ResponseInner.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/GroupEnum.ts b/src/models/GroupEnum.ts index 2924b5b..d37bc0c 100644 --- a/src/models/GroupEnum.ts +++ b/src/models/GroupEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IntakeIssue.ts b/src/models/IntakeIssue.ts index fb17201..1aa440c 100644 --- a/src/models/IntakeIssue.ts +++ b/src/models/IntakeIssue.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IntakeIssueCreateRequest.ts b/src/models/IntakeIssueCreateRequest.ts index 742ceb2..37a6d62 100644 --- a/src/models/IntakeIssueCreateRequest.ts +++ b/src/models/IntakeIssueCreateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IntakeWorkItemStatusEnum.ts b/src/models/IntakeWorkItemStatusEnum.ts index eff9ac5..c8ee4a6 100644 --- a/src/models/IntakeWorkItemStatusEnum.ts +++ b/src/models/IntakeWorkItemStatusEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/Issue.ts b/src/models/Issue.ts index 5071202..1593a0d 100644 --- a/src/models/Issue.ts +++ b/src/models/Issue.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueActivity.ts b/src/models/IssueActivity.ts index 8226c17..ede40cd 100644 --- a/src/models/IssueActivity.ts +++ b/src/models/IssueActivity.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueAttachment.ts b/src/models/IssueAttachment.ts index 0f8c3c1..f21d189 100644 --- a/src/models/IssueAttachment.ts +++ b/src/models/IssueAttachment.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueAttachmentUploadRequest.ts b/src/models/IssueAttachmentUploadRequest.ts index ef39964..ceaf4b0 100644 --- a/src/models/IssueAttachmentUploadRequest.ts +++ b/src/models/IssueAttachmentUploadRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueComment.ts b/src/models/IssueComment.ts index 8b6fb61..7bc1882 100644 --- a/src/models/IssueComment.ts +++ b/src/models/IssueComment.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -12,13 +12,13 @@ */ import { mapValues } from '../runtime'; -import type { AccessEnum } from './AccessEnum'; +import type { AccessBd4Enum } from './AccessBd4Enum'; import { - AccessEnumFromJSON, - AccessEnumFromJSONTyped, - AccessEnumToJSON, - AccessEnumToJSONTyped, -} from './AccessEnum'; + AccessBd4EnumFromJSON, + AccessBd4EnumFromJSONTyped, + AccessBd4EnumToJSON, + AccessBd4EnumToJSONTyped, +} from './AccessBd4Enum'; /** * Full serializer for work item comments with membership context. @@ -79,10 +79,10 @@ export interface IssueComment { attachments?: Array; /** * - * @type {AccessEnum} + * @type {AccessBd4Enum} * @memberof IssueComment */ - access?: AccessEnum; + access?: AccessBd4Enum; /** * * @type {string} @@ -166,7 +166,7 @@ export function IssueCommentFromJSONTyped(json: any, ignoreDiscriminator: boolea 'commentStripped': json['comment_stripped'] == null ? undefined : json['comment_stripped'], 'commentHtml': json['comment_html'] == null ? undefined : json['comment_html'], 'attachments': json['attachments'] == null ? undefined : json['attachments'], - 'access': json['access'] == null ? undefined : AccessEnumFromJSON(json['access']), + 'access': json['access'] == null ? undefined : AccessBd4EnumFromJSON(json['access']), 'externalSource': json['external_source'] == null ? undefined : json['external_source'], 'externalId': json['external_id'] == null ? undefined : json['external_id'], 'editedAt': json['edited_at'] == null ? undefined : (new Date(json['edited_at'])), @@ -194,7 +194,7 @@ export function IssueCommentToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + }; +} + diff --git a/src/models/IssueRelationCreateRelationTypeEnum.ts b/src/models/IssueRelationCreateRelationTypeEnum.ts new file mode 100644 index 0000000..5835adb --- /dev/null +++ b/src/models/IssueRelationCreateRelationTypeEnum.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +/** + * * `blocking` - Blocking + * * `blocked_by` - Blocked By + * * `duplicate` - Duplicate + * * `relates_to` - Relates To + * * `start_before` - Start Before + * * `start_after` - Start After + * * `finish_before` - Finish Before + * * `finish_after` - Finish After + * @export + */ +export const IssueRelationCreateRelationTypeEnum = { + Blocking: 'blocking', + BlockedBy: 'blocked_by', + Duplicate: 'duplicate', + RelatesTo: 'relates_to', + StartBefore: 'start_before', + StartAfter: 'start_after', + FinishBefore: 'finish_before', + FinishAfter: 'finish_after' +} as const; +export type IssueRelationCreateRelationTypeEnum = typeof IssueRelationCreateRelationTypeEnum[keyof typeof IssueRelationCreateRelationTypeEnum]; + + +export function instanceOfIssueRelationCreateRelationTypeEnum(value: any): boolean { + for (const key in IssueRelationCreateRelationTypeEnum) { + if (Object.prototype.hasOwnProperty.call(IssueRelationCreateRelationTypeEnum, key)) { + if (IssueRelationCreateRelationTypeEnum[key as keyof typeof IssueRelationCreateRelationTypeEnum] === value) { + return true; + } + } + } + return false; +} + +export function IssueRelationCreateRelationTypeEnumFromJSON(json: any): IssueRelationCreateRelationTypeEnum { + return IssueRelationCreateRelationTypeEnumFromJSONTyped(json, false); +} + +export function IssueRelationCreateRelationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueRelationCreateRelationTypeEnum { + return json as IssueRelationCreateRelationTypeEnum; +} + +export function IssueRelationCreateRelationTypeEnumToJSON(value?: IssueRelationCreateRelationTypeEnum | null): any { + return value as any; +} + +export function IssueRelationCreateRelationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): IssueRelationCreateRelationTypeEnum { + return value as IssueRelationCreateRelationTypeEnum; +} + diff --git a/src/models/IssueRelationCreateRequest.ts b/src/models/IssueRelationCreateRequest.ts new file mode 100644 index 0000000..a8f8d75 --- /dev/null +++ b/src/models/IssueRelationCreateRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IssueRelationCreateRelationTypeEnum } from './IssueRelationCreateRelationTypeEnum'; +import { + IssueRelationCreateRelationTypeEnumFromJSON, + IssueRelationCreateRelationTypeEnumFromJSONTyped, + IssueRelationCreateRelationTypeEnumToJSON, + IssueRelationCreateRelationTypeEnumToJSONTyped, +} from './IssueRelationCreateRelationTypeEnum'; + +/** + * Serializer for creating issue relations. + * + * Creates issue relations with the specified relation type and issues. + * Validates relation types and ensures proper issue ID format. + * @export + * @interface IssueRelationCreateRequest + */ +export interface IssueRelationCreateRequest { + /** + * Type of relationship between work items + * + * * `blocking` - Blocking + * * `blocked_by` - Blocked By + * * `duplicate` - Duplicate + * * `relates_to` - Relates To + * * `start_before` - Start Before + * * `start_after` - Start After + * * `finish_before` - Finish Before + * * `finish_after` - Finish After + * @type {IssueRelationCreateRelationTypeEnum} + * @memberof IssueRelationCreateRequest + */ + relationType: IssueRelationCreateRelationTypeEnum; + /** + * Array of work item IDs to create relations with + * @type {Array} + * @memberof IssueRelationCreateRequest + */ + issues: Array; +} + + + +/** + * Check if a given object implements the IssueRelationCreateRequest interface. + */ +export function instanceOfIssueRelationCreateRequest(value: object): value is IssueRelationCreateRequest { + if (!('relationType' in value) || value['relationType'] === undefined) return false; + if (!('issues' in value) || value['issues'] === undefined) return false; + return true; +} + +export function IssueRelationCreateRequestFromJSON(json: any): IssueRelationCreateRequest { + return IssueRelationCreateRequestFromJSONTyped(json, false); +} + +export function IssueRelationCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueRelationCreateRequest { + if (json == null) { + return json; + } + return { + + 'relationType': IssueRelationCreateRelationTypeEnumFromJSON(json['relation_type']), + 'issues': json['issues'], + }; +} + +export function IssueRelationCreateRequestToJSON(json: any): IssueRelationCreateRequest { + return IssueRelationCreateRequestToJSONTyped(json, false); +} + +export function IssueRelationCreateRequestToJSONTyped(value?: IssueRelationCreateRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'relation_type': IssueRelationCreateRelationTypeEnumToJSON(value['relationType']), + 'issues': value['issues'], + }; +} + diff --git a/src/models/IssueRelationRemoveRequest.ts b/src/models/IssueRelationRemoveRequest.ts new file mode 100644 index 0000000..4ee02cc --- /dev/null +++ b/src/models/IssueRelationRemoveRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Serializer for removing issue relations. + * + * Removes existing relationships between work items by specifying + * the related issue ID. + * @export + * @interface IssueRelationRemoveRequest + */ +export interface IssueRelationRemoveRequest { + /** + * ID of the related work item to remove relation with + * @type {string} + * @memberof IssueRelationRemoveRequest + */ + relatedIssue: string; +} + +/** + * Check if a given object implements the IssueRelationRemoveRequest interface. + */ +export function instanceOfIssueRelationRemoveRequest(value: object): value is IssueRelationRemoveRequest { + if (!('relatedIssue' in value) || value['relatedIssue'] === undefined) return false; + return true; +} + +export function IssueRelationRemoveRequestFromJSON(json: any): IssueRelationRemoveRequest { + return IssueRelationRemoveRequestFromJSONTyped(json, false); +} + +export function IssueRelationRemoveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueRelationRemoveRequest { + if (json == null) { + return json; + } + return { + + 'relatedIssue': json['related_issue'], + }; +} + +export function IssueRelationRemoveRequestToJSON(json: any): IssueRelationRemoveRequest { + return IssueRelationRemoveRequestToJSONTyped(json, false); +} + +export function IssueRelationRemoveRequestToJSONTyped(value?: IssueRelationRemoveRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'related_issue': value['relatedIssue'], + }; +} + diff --git a/src/models/IssueRelationResponse.ts b/src/models/IssueRelationResponse.ts new file mode 100644 index 0000000..8a97398 --- /dev/null +++ b/src/models/IssueRelationResponse.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Serializer for issue relations response showing grouped relation types. + * + * Returns issue IDs organized by relation type for efficient client-side processing. + * @export + * @interface IssueRelationResponse + */ +export interface IssueRelationResponse { + /** + * List of issue IDs that are blocking this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + blocking: Array; + /** + * List of issue IDs that this issue is blocked by + * @type {Array} + * @memberof IssueRelationResponse + */ + blockedBy: Array; + /** + * List of issue IDs that are duplicates of this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + duplicate: Array; + /** + * List of issue IDs that relate to this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + relatesTo: Array; + /** + * List of issue IDs that start after this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + startAfter: Array; + /** + * List of issue IDs that start before this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + startBefore: Array; + /** + * List of issue IDs that finish after this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + finishAfter: Array; + /** + * List of issue IDs that finish before this issue + * @type {Array} + * @memberof IssueRelationResponse + */ + finishBefore: Array; +} + +/** + * Check if a given object implements the IssueRelationResponse interface. + */ +export function instanceOfIssueRelationResponse(value: object): value is IssueRelationResponse { + if (!('blocking' in value) || value['blocking'] === undefined) return false; + if (!('blockedBy' in value) || value['blockedBy'] === undefined) return false; + if (!('duplicate' in value) || value['duplicate'] === undefined) return false; + if (!('relatesTo' in value) || value['relatesTo'] === undefined) return false; + if (!('startAfter' in value) || value['startAfter'] === undefined) return false; + if (!('startBefore' in value) || value['startBefore'] === undefined) return false; + if (!('finishAfter' in value) || value['finishAfter'] === undefined) return false; + if (!('finishBefore' in value) || value['finishBefore'] === undefined) return false; + return true; +} + +export function IssueRelationResponseFromJSON(json: any): IssueRelationResponse { + return IssueRelationResponseFromJSONTyped(json, false); +} + +export function IssueRelationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueRelationResponse { + if (json == null) { + return json; + } + return { + + 'blocking': json['blocking'], + 'blockedBy': json['blocked_by'], + 'duplicate': json['duplicate'], + 'relatesTo': json['relates_to'], + 'startAfter': json['start_after'], + 'startBefore': json['start_before'], + 'finishAfter': json['finish_after'], + 'finishBefore': json['finish_before'], + }; +} + +export function IssueRelationResponseToJSON(json: any): IssueRelationResponse { + return IssueRelationResponseToJSONTyped(json, false); +} + +export function IssueRelationResponseToJSONTyped(value?: IssueRelationResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'blocking': value['blocking'], + 'blocked_by': value['blockedBy'], + 'duplicate': value['duplicate'], + 'relates_to': value['relatesTo'], + 'start_after': value['startAfter'], + 'start_before': value['startBefore'], + 'finish_after': value['finishAfter'], + 'finish_before': value['finishBefore'], + }; +} + diff --git a/src/models/IssueRequest.ts b/src/models/IssueRequest.ts index 43d525f..9e9e42d 100644 --- a/src/models/IssueRequest.ts +++ b/src/models/IssueRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueSearch.ts b/src/models/IssueSearch.ts index b3e9070..d775ee0 100644 --- a/src/models/IssueSearch.ts +++ b/src/models/IssueSearch.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueSearchItem.ts b/src/models/IssueSearchItem.ts index 4ffe8d5..1a6b976 100644 --- a/src/models/IssueSearchItem.ts +++ b/src/models/IssueSearchItem.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueTypeAPI.ts b/src/models/IssueTypeAPI.ts index 0e1ddc6..2d6b314 100644 --- a/src/models/IssueTypeAPI.ts +++ b/src/models/IssueTypeAPI.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueTypeAPIRequest.ts b/src/models/IssueTypeAPIRequest.ts index 492ed72..f2a56c6 100644 --- a/src/models/IssueTypeAPIRequest.ts +++ b/src/models/IssueTypeAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueWorkLogAPI.ts b/src/models/IssueWorkLogAPI.ts index 7221a50..24c31a2 100644 --- a/src/models/IssueWorkLogAPI.ts +++ b/src/models/IssueWorkLogAPI.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/IssueWorkLogAPIRequest.ts b/src/models/IssueWorkLogAPIRequest.ts index 3174837..043bd4f 100644 --- a/src/models/IssueWorkLogAPIRequest.ts +++ b/src/models/IssueWorkLogAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/Label.ts b/src/models/Label.ts index f25bd4c..fe0e4e0 100644 --- a/src/models/Label.ts +++ b/src/models/Label.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/LabelCreateUpdateRequest.ts b/src/models/LabelCreateUpdateRequest.ts index f56c697..84cd3f3 100644 --- a/src/models/LabelCreateUpdateRequest.ts +++ b/src/models/LabelCreateUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/Module.ts b/src/models/Module.ts index 15da6d6..851c4d8 100644 --- a/src/models/Module.ts +++ b/src/models/Module.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ModuleCreateRequest.ts b/src/models/ModuleCreateRequest.ts index b18bf9e..5827d59 100644 --- a/src/models/ModuleCreateRequest.ts +++ b/src/models/ModuleCreateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ModuleIssue.ts b/src/models/ModuleIssue.ts index fe1cd1b..44ec09c 100644 --- a/src/models/ModuleIssue.ts +++ b/src/models/ModuleIssue.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ModuleIssueRequestRequest.ts b/src/models/ModuleIssueRequestRequest.ts index be52bf2..176c9a1 100644 --- a/src/models/ModuleIssueRequestRequest.ts +++ b/src/models/ModuleIssueRequestRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ModuleLite.ts b/src/models/ModuleLite.ts index 02d63e6..b86035f 100644 --- a/src/models/ModuleLite.ts +++ b/src/models/ModuleLite.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ModuleStatusEnum.ts b/src/models/ModuleStatusEnum.ts index 127af7f..16acfbc 100644 --- a/src/models/ModuleStatusEnum.ts +++ b/src/models/ModuleStatusEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/NetworkEnum.ts b/src/models/NetworkEnum.ts index dc8b86a..3a81505 100644 --- a/src/models/NetworkEnum.ts +++ b/src/models/NetworkEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PageCreateAPI.ts b/src/models/PageCreateAPI.ts new file mode 100644 index 0000000..ee933d6 --- /dev/null +++ b/src/models/PageCreateAPI.ts @@ -0,0 +1,204 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PageCreateAPIAccessEnum } from './PageCreateAPIAccessEnum'; +import { + PageCreateAPIAccessEnumFromJSON, + PageCreateAPIAccessEnumFromJSONTyped, + PageCreateAPIAccessEnumToJSON, + PageCreateAPIAccessEnumToJSONTyped, +} from './PageCreateAPIAccessEnum'; + +/** + * + * @export + * @interface PageCreateAPI + */ +export interface PageCreateAPI { + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly id?: string; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + name: string; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly ownedBy?: string; + /** + * + * @type {PageCreateAPIAccessEnum} + * @memberof PageCreateAPI + */ + access?: PageCreateAPIAccessEnum; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + color?: string; + /** + * + * @type {boolean} + * @memberof PageCreateAPI + */ + isLocked?: boolean; + /** + * + * @type {Date} + * @memberof PageCreateAPI + */ + archivedAt?: Date | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly workspace?: string; + /** + * + * @type {Date} + * @memberof PageCreateAPI + */ + readonly createdAt?: Date; + /** + * + * @type {Date} + * @memberof PageCreateAPI + */ + readonly updatedAt?: Date; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly createdBy?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly updatedBy?: string | null; + /** + * + * @type {any} + * @memberof PageCreateAPI + */ + viewProps?: any | null; + /** + * + * @type {any} + * @memberof PageCreateAPI + */ + logoProps?: any | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + externalId?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + externalSource?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + readonly parentId?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPI + */ + descriptionHtml: string; +} + + + +/** + * Check if a given object implements the PageCreateAPI interface. + */ +export function instanceOfPageCreateAPI(value: object): value is PageCreateAPI { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('descriptionHtml' in value) || value['descriptionHtml'] === undefined) return false; + return true; +} + +export function PageCreateAPIFromJSON(json: any): PageCreateAPI { + return PageCreateAPIFromJSONTyped(json, false); +} + +export function PageCreateAPIFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageCreateAPI { + if (json == null) { + return json; + } + return { + + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'], + 'ownedBy': json['owned_by'] == null ? undefined : json['owned_by'], + 'access': json['access'] == null ? undefined : PageCreateAPIAccessEnumFromJSON(json['access']), + 'color': json['color'] == null ? undefined : json['color'], + 'isLocked': json['is_locked'] == null ? undefined : json['is_locked'], + 'archivedAt': json['archived_at'] == null ? undefined : (new Date(json['archived_at'])), + 'workspace': json['workspace'] == null ? undefined : json['workspace'], + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'createdBy': json['created_by'] == null ? undefined : json['created_by'], + 'updatedBy': json['updated_by'] == null ? undefined : json['updated_by'], + 'viewProps': json['view_props'] == null ? undefined : json['view_props'], + 'logoProps': json['logo_props'] == null ? undefined : json['logo_props'], + 'externalId': json['external_id'] == null ? undefined : json['external_id'], + 'externalSource': json['external_source'] == null ? undefined : json['external_source'], + 'parentId': json['parent_id'] == null ? undefined : json['parent_id'], + 'descriptionHtml': json['description_html'], + }; +} + +export function PageCreateAPIToJSON(json: any): PageCreateAPI { + return PageCreateAPIToJSONTyped(json, false); +} + +export function PageCreateAPIToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'access': PageCreateAPIAccessEnumToJSON(value['access']), + 'color': value['color'], + 'is_locked': value['isLocked'], + 'archived_at': value['archivedAt'] == null ? undefined : ((value['archivedAt'] as any).toISOString().substring(0,10)), + 'view_props': value['viewProps'], + 'logo_props': value['logoProps'], + 'external_id': value['externalId'], + 'external_source': value['externalSource'], + 'description_html': value['descriptionHtml'], + }; +} + diff --git a/src/models/PageCreateAPIAccessEnum.ts b/src/models/PageCreateAPIAccessEnum.ts new file mode 100644 index 0000000..60cdc6e --- /dev/null +++ b/src/models/PageCreateAPIAccessEnum.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + + +/** + * * `0` - Public + * * `1` - Private + * @export + */ +export const PageCreateAPIAccessEnum = { + NUMBER_0: 0, + NUMBER_1: 1 +} as const; +export type PageCreateAPIAccessEnum = typeof PageCreateAPIAccessEnum[keyof typeof PageCreateAPIAccessEnum]; + + +export function instanceOfPageCreateAPIAccessEnum(value: any): boolean { + for (const key in PageCreateAPIAccessEnum) { + if (Object.prototype.hasOwnProperty.call(PageCreateAPIAccessEnum, key)) { + if (PageCreateAPIAccessEnum[key as keyof typeof PageCreateAPIAccessEnum] === value) { + return true; + } + } + } + return false; +} + +export function PageCreateAPIAccessEnumFromJSON(json: any): PageCreateAPIAccessEnum { + return PageCreateAPIAccessEnumFromJSONTyped(json, false); +} + +export function PageCreateAPIAccessEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageCreateAPIAccessEnum { + return json as PageCreateAPIAccessEnum; +} + +export function PageCreateAPIAccessEnumToJSON(value?: PageCreateAPIAccessEnum | null): any { + return value as any; +} + +export function PageCreateAPIAccessEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): PageCreateAPIAccessEnum { + return value as PageCreateAPIAccessEnum; +} + diff --git a/src/models/PageCreateAPIRequest.ts b/src/models/PageCreateAPIRequest.ts new file mode 100644 index 0000000..fb3a642 --- /dev/null +++ b/src/models/PageCreateAPIRequest.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PageCreateAPIAccessEnum } from './PageCreateAPIAccessEnum'; +import { + PageCreateAPIAccessEnumFromJSON, + PageCreateAPIAccessEnumFromJSONTyped, + PageCreateAPIAccessEnumToJSON, + PageCreateAPIAccessEnumToJSONTyped, +} from './PageCreateAPIAccessEnum'; + +/** + * + * @export + * @interface PageCreateAPIRequest + */ +export interface PageCreateAPIRequest { + /** + * + * @type {string} + * @memberof PageCreateAPIRequest + */ + name: string; + /** + * + * @type {PageCreateAPIAccessEnum} + * @memberof PageCreateAPIRequest + */ + access?: PageCreateAPIAccessEnum; + /** + * + * @type {string} + * @memberof PageCreateAPIRequest + */ + color?: string; + /** + * + * @type {boolean} + * @memberof PageCreateAPIRequest + */ + isLocked?: boolean; + /** + * + * @type {Date} + * @memberof PageCreateAPIRequest + */ + archivedAt?: Date | null; + /** + * + * @type {any} + * @memberof PageCreateAPIRequest + */ + viewProps?: any | null; + /** + * + * @type {any} + * @memberof PageCreateAPIRequest + */ + logoProps?: any | null; + /** + * + * @type {string} + * @memberof PageCreateAPIRequest + */ + externalId?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPIRequest + */ + externalSource?: string | null; + /** + * + * @type {string} + * @memberof PageCreateAPIRequest + */ + descriptionHtml: string; +} + + + +/** + * Check if a given object implements the PageCreateAPIRequest interface. + */ +export function instanceOfPageCreateAPIRequest(value: object): value is PageCreateAPIRequest { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('descriptionHtml' in value) || value['descriptionHtml'] === undefined) return false; + return true; +} + +export function PageCreateAPIRequestFromJSON(json: any): PageCreateAPIRequest { + return PageCreateAPIRequestFromJSONTyped(json, false); +} + +export function PageCreateAPIRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageCreateAPIRequest { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'access': json['access'] == null ? undefined : PageCreateAPIAccessEnumFromJSON(json['access']), + 'color': json['color'] == null ? undefined : json['color'], + 'isLocked': json['is_locked'] == null ? undefined : json['is_locked'], + 'archivedAt': json['archived_at'] == null ? undefined : (new Date(json['archived_at'])), + 'viewProps': json['view_props'] == null ? undefined : json['view_props'], + 'logoProps': json['logo_props'] == null ? undefined : json['logo_props'], + 'externalId': json['external_id'] == null ? undefined : json['external_id'], + 'externalSource': json['external_source'] == null ? undefined : json['external_source'], + 'descriptionHtml': json['description_html'], + }; +} + +export function PageCreateAPIRequestToJSON(json: any): PageCreateAPIRequest { + return PageCreateAPIRequestToJSONTyped(json, false); +} + +export function PageCreateAPIRequestToJSONTyped(value?: PageCreateAPIRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'access': PageCreateAPIAccessEnumToJSON(value['access']), + 'color': value['color'], + 'is_locked': value['isLocked'], + 'archived_at': value['archivedAt'] == null ? undefined : ((value['archivedAt'] as any).toISOString().substring(0,10)), + 'view_props': value['viewProps'], + 'logo_props': value['logoProps'], + 'external_id': value['externalId'], + 'external_source': value['externalSource'], + 'description_html': value['descriptionHtml'], + }; +} + diff --git a/src/models/PageDetailAPI.ts b/src/models/PageDetailAPI.ts new file mode 100644 index 0000000..58b9e17 --- /dev/null +++ b/src/models/PageDetailAPI.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PageDetailAPI + */ +export interface PageDetailAPI { + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + readonly id?: string; + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + name?: string; + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + descriptionStripped?: string | null; + /** + * + * @type {Date} + * @memberof PageDetailAPI + */ + readonly createdAt?: Date; + /** + * + * @type {Date} + * @memberof PageDetailAPI + */ + readonly updatedAt?: Date; + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + readonly ownedBy?: string; + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + readonly anchor?: string; + /** + * + * @type {string} + * @memberof PageDetailAPI + */ + readonly workspace?: string; + /** + * + * @type {Array} + * @memberof PageDetailAPI + */ + readonly projects?: Array; +} + +/** + * Check if a given object implements the PageDetailAPI interface. + */ +export function instanceOfPageDetailAPI(value: object): value is PageDetailAPI { + return true; +} + +export function PageDetailAPIFromJSON(json: any): PageDetailAPI { + return PageDetailAPIFromJSONTyped(json, false); +} + +export function PageDetailAPIFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageDetailAPI { + if (json == null) { + return json; + } + return { + + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'] == null ? undefined : json['name'], + 'descriptionStripped': json['description_stripped'] == null ? undefined : json['description_stripped'], + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'ownedBy': json['owned_by'] == null ? undefined : json['owned_by'], + 'anchor': json['anchor'] == null ? undefined : json['anchor'], + 'workspace': json['workspace'] == null ? undefined : json['workspace'], + 'projects': json['projects'] == null ? undefined : json['projects'], + }; +} + +export function PageDetailAPIToJSON(json: any): PageDetailAPI { + return PageDetailAPIToJSONTyped(json, false); +} + +export function PageDetailAPIToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'description_stripped': value['descriptionStripped'], + }; +} + diff --git a/src/models/PaginatedArchivedCycleResponse.ts b/src/models/PaginatedArchivedCycleResponse.ts index a6d6d17..a79047f 100644 --- a/src/models/PaginatedArchivedCycleResponse.ts +++ b/src/models/PaginatedArchivedCycleResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedArchivedModuleResponse.ts b/src/models/PaginatedArchivedModuleResponse.ts index 0d5c4ac..881d8b5 100644 --- a/src/models/PaginatedArchivedModuleResponse.ts +++ b/src/models/PaginatedArchivedModuleResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedCycleIssueResponse.ts b/src/models/PaginatedCycleIssueResponse.ts index b84bb9c..3a77039 100644 --- a/src/models/PaginatedCycleIssueResponse.ts +++ b/src/models/PaginatedCycleIssueResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedCycleResponse.ts b/src/models/PaginatedCycleResponse.ts index 88f60f3..3c003e9 100644 --- a/src/models/PaginatedCycleResponse.ts +++ b/src/models/PaginatedCycleResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedEpicResponse.ts b/src/models/PaginatedEpicResponse.ts new file mode 100644 index 0000000..50989ee --- /dev/null +++ b/src/models/PaginatedEpicResponse.ts @@ -0,0 +1,172 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * The Plane REST API + * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). + * + * The version of the API Spec: 0.0.2 + * Contact: support@plane.so + * + * NOTE: This class is auto generated. + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { Epic } from './Epic'; +import { + EpicFromJSON, + EpicFromJSONTyped, + EpicToJSON, + EpicToJSONTyped, +} from './Epic'; + +/** + * + * @export + * @interface PaginatedEpicResponse + */ +export interface PaginatedEpicResponse { + /** + * + * @type {string} + * @memberof PaginatedEpicResponse + */ + groupedBy: string | null; + /** + * + * @type {string} + * @memberof PaginatedEpicResponse + */ + subGroupedBy: string | null; + /** + * + * @type {number} + * @memberof PaginatedEpicResponse + */ + totalCount: number; + /** + * + * @type {string} + * @memberof PaginatedEpicResponse + */ + nextCursor: string; + /** + * + * @type {string} + * @memberof PaginatedEpicResponse + */ + prevCursor: string; + /** + * + * @type {boolean} + * @memberof PaginatedEpicResponse + */ + nextPageResults: boolean; + /** + * + * @type {boolean} + * @memberof PaginatedEpicResponse + */ + prevPageResults: boolean; + /** + * + * @type {number} + * @memberof PaginatedEpicResponse + */ + count: number; + /** + * + * @type {number} + * @memberof PaginatedEpicResponse + */ + totalPages: number; + /** + * + * @type {number} + * @memberof PaginatedEpicResponse + */ + totalResults: number; + /** + * + * @type {string} + * @memberof PaginatedEpicResponse + */ + extraStats: string | null; + /** + * + * @type {Array} + * @memberof PaginatedEpicResponse + */ + results: Array; +} + +/** + * Check if a given object implements the PaginatedEpicResponse interface. + */ +export function instanceOfPaginatedEpicResponse(value: object): value is PaginatedEpicResponse { + if (!('groupedBy' in value) || value['groupedBy'] === undefined) return false; + if (!('subGroupedBy' in value) || value['subGroupedBy'] === undefined) return false; + if (!('totalCount' in value) || value['totalCount'] === undefined) return false; + if (!('nextCursor' in value) || value['nextCursor'] === undefined) return false; + if (!('prevCursor' in value) || value['prevCursor'] === undefined) return false; + if (!('nextPageResults' in value) || value['nextPageResults'] === undefined) return false; + if (!('prevPageResults' in value) || value['prevPageResults'] === undefined) return false; + if (!('count' in value) || value['count'] === undefined) return false; + if (!('totalPages' in value) || value['totalPages'] === undefined) return false; + if (!('totalResults' in value) || value['totalResults'] === undefined) return false; + if (!('extraStats' in value) || value['extraStats'] === undefined) return false; + if (!('results' in value) || value['results'] === undefined) return false; + return true; +} + +export function PaginatedEpicResponseFromJSON(json: any): PaginatedEpicResponse { + return PaginatedEpicResponseFromJSONTyped(json, false); +} + +export function PaginatedEpicResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEpicResponse { + if (json == null) { + return json; + } + return { + + 'groupedBy': json['grouped_by'], + 'subGroupedBy': json['sub_grouped_by'], + 'totalCount': json['total_count'], + 'nextCursor': json['next_cursor'], + 'prevCursor': json['prev_cursor'], + 'nextPageResults': json['next_page_results'], + 'prevPageResults': json['prev_page_results'], + 'count': json['count'], + 'totalPages': json['total_pages'], + 'totalResults': json['total_results'], + 'extraStats': json['extra_stats'], + 'results': ((json['results'] as Array).map(EpicFromJSON)), + }; +} + +export function PaginatedEpicResponseToJSON(json: any): PaginatedEpicResponse { + return PaginatedEpicResponseToJSONTyped(json, false); +} + +export function PaginatedEpicResponseToJSONTyped(value?: PaginatedEpicResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'grouped_by': value['groupedBy'], + 'sub_grouped_by': value['subGroupedBy'], + 'total_count': value['totalCount'], + 'next_cursor': value['nextCursor'], + 'prev_cursor': value['prevCursor'], + 'next_page_results': value['nextPageResults'], + 'prev_page_results': value['prevPageResults'], + 'count': value['count'], + 'total_pages': value['totalPages'], + 'total_results': value['totalResults'], + 'extra_stats': value['extraStats'], + 'results': ((value['results'] as Array).map(EpicToJSON)), + }; +} + diff --git a/src/models/PaginatedIntakeIssueResponse.ts b/src/models/PaginatedIntakeIssueResponse.ts index 5926956..5fd1793 100644 --- a/src/models/PaginatedIntakeIssueResponse.ts +++ b/src/models/PaginatedIntakeIssueResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedIssueActivityDetailResponse.ts b/src/models/PaginatedIssueActivityDetailResponse.ts index 9742405..1bc77c5 100644 --- a/src/models/PaginatedIssueActivityDetailResponse.ts +++ b/src/models/PaginatedIssueActivityDetailResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedIssueActivityResponse.ts b/src/models/PaginatedIssueActivityResponse.ts index d4795c8..15f1e99 100644 --- a/src/models/PaginatedIssueActivityResponse.ts +++ b/src/models/PaginatedIssueActivityResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedIssueCommentResponse.ts b/src/models/PaginatedIssueCommentResponse.ts index 9bb6ff1..aeed95c 100644 --- a/src/models/PaginatedIssueCommentResponse.ts +++ b/src/models/PaginatedIssueCommentResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedIssueLinkDetailResponse.ts b/src/models/PaginatedIssueLinkDetailResponse.ts index 7d46e36..911edbb 100644 --- a/src/models/PaginatedIssueLinkDetailResponse.ts +++ b/src/models/PaginatedIssueLinkDetailResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedIssueLinkResponse.ts b/src/models/PaginatedIssueLinkResponse.ts index 645e13c..b3aabea 100644 --- a/src/models/PaginatedIssueLinkResponse.ts +++ b/src/models/PaginatedIssueLinkResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedLabelResponse.ts b/src/models/PaginatedLabelResponse.ts index ea44699..5352e8a 100644 --- a/src/models/PaginatedLabelResponse.ts +++ b/src/models/PaginatedLabelResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedModuleIssueResponse.ts b/src/models/PaginatedModuleIssueResponse.ts index 885f486..4b77620 100644 --- a/src/models/PaginatedModuleIssueResponse.ts +++ b/src/models/PaginatedModuleIssueResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedModuleResponse.ts b/src/models/PaginatedModuleResponse.ts index 9930ade..e382fb0 100644 --- a/src/models/PaginatedModuleResponse.ts +++ b/src/models/PaginatedModuleResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedProjectResponse.ts b/src/models/PaginatedProjectResponse.ts index c215c95..3f6397b 100644 --- a/src/models/PaginatedProjectResponse.ts +++ b/src/models/PaginatedProjectResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedStateResponse.ts b/src/models/PaginatedStateResponse.ts index 662317f..13eb645 100644 --- a/src/models/PaginatedStateResponse.ts +++ b/src/models/PaginatedStateResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PaginatedWorkItemResponse.ts b/src/models/PaginatedWorkItemResponse.ts index dbf6290..8d233a0 100644 --- a/src/models/PaginatedWorkItemResponse.ts +++ b/src/models/PaginatedWorkItemResponse.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedAssetUpdateRequest.ts b/src/models/PatchedAssetUpdateRequest.ts index 8b9c864..0ed3885 100644 --- a/src/models/PatchedAssetUpdateRequest.ts +++ b/src/models/PatchedAssetUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedCycleUpdateRequest.ts b/src/models/PatchedCycleUpdateRequest.ts index 2f57856..a312c79 100644 --- a/src/models/PatchedCycleUpdateRequest.ts +++ b/src/models/PatchedCycleUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedGenericAssetUpdateRequest.ts b/src/models/PatchedGenericAssetUpdateRequest.ts index 8c20d84..913d1c0 100644 --- a/src/models/PatchedGenericAssetUpdateRequest.ts +++ b/src/models/PatchedGenericAssetUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIntakeIssueUpdateRequest.ts b/src/models/PatchedIntakeIssueUpdateRequest.ts index af0175e..013e1a5 100644 --- a/src/models/PatchedIntakeIssueUpdateRequest.ts +++ b/src/models/PatchedIntakeIssueUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIssueCommentCreateRequest.ts b/src/models/PatchedIssueCommentCreateRequest.ts index e8f08ef..c47dc5d 100644 --- a/src/models/PatchedIssueCommentCreateRequest.ts +++ b/src/models/PatchedIssueCommentCreateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -12,13 +12,13 @@ */ import { mapValues } from '../runtime'; -import type { AccessEnum } from './AccessEnum'; +import type { AccessBd4Enum } from './AccessBd4Enum'; import { - AccessEnumFromJSON, - AccessEnumFromJSONTyped, - AccessEnumToJSON, - AccessEnumToJSONTyped, -} from './AccessEnum'; + AccessBd4EnumFromJSON, + AccessBd4EnumFromJSONTyped, + AccessBd4EnumToJSON, + AccessBd4EnumToJSONTyped, +} from './AccessBd4Enum'; /** * Serializer for creating work item comments. @@ -43,10 +43,10 @@ export interface PatchedIssueCommentCreateRequest { commentHtml?: string; /** * - * @type {AccessEnum} + * @type {AccessBd4Enum} * @memberof PatchedIssueCommentCreateRequest */ - access?: AccessEnum; + access?: AccessBd4Enum; /** * * @type {string} @@ -82,7 +82,7 @@ export function PatchedIssueCommentCreateRequestFromJSONTyped(json: any, ignoreD 'commentJson': json['comment_json'] == null ? undefined : json['comment_json'], 'commentHtml': json['comment_html'] == null ? undefined : json['comment_html'], - 'access': json['access'] == null ? undefined : AccessEnumFromJSON(json['access']), + 'access': json['access'] == null ? undefined : AccessBd4EnumFromJSON(json['access']), 'externalSource': json['external_source'] == null ? undefined : json['external_source'], 'externalId': json['external_id'] == null ? undefined : json['external_id'], }; @@ -101,7 +101,7 @@ export function PatchedIssueCommentCreateRequestToJSONTyped(value?: PatchedIssue 'comment_json': value['commentJson'], 'comment_html': value['commentHtml'], - 'access': AccessEnumToJSON(value['access']), + 'access': AccessBd4EnumToJSON(value['access']), 'external_source': value['externalSource'], 'external_id': value['externalId'], }; diff --git a/src/models/PatchedIssueLinkUpdateRequest.ts b/src/models/PatchedIssueLinkUpdateRequest.ts index 8bc90cf..e80456a 100644 --- a/src/models/PatchedIssueLinkUpdateRequest.ts +++ b/src/models/PatchedIssueLinkUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIssuePropertyAPIRequest.ts b/src/models/PatchedIssuePropertyAPIRequest.ts index 014507b..244c0d8 100644 --- a/src/models/PatchedIssuePropertyAPIRequest.ts +++ b/src/models/PatchedIssuePropertyAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -12,13 +12,13 @@ */ import { mapValues } from '../runtime'; -import type { RelationTypeEnum } from './RelationTypeEnum'; +import type { IssuePropertyAPIRelationTypeEnum } from './IssuePropertyAPIRelationTypeEnum'; import { - RelationTypeEnumFromJSON, - RelationTypeEnumFromJSONTyped, - RelationTypeEnumToJSON, - RelationTypeEnumToJSONTyped, -} from './RelationTypeEnum'; + IssuePropertyAPIRelationTypeEnumFromJSON, + IssuePropertyAPIRelationTypeEnumFromJSONTyped, + IssuePropertyAPIRelationTypeEnumToJSON, + IssuePropertyAPIRelationTypeEnumToJSONTyped, +} from './IssuePropertyAPIRelationTypeEnum'; import type { PropertyTypeEnum } from './PropertyTypeEnum'; import { PropertyTypeEnumFromJSON, @@ -35,10 +35,10 @@ import { export interface PatchedIssuePropertyAPIRequest { /** * - * @type {RelationTypeEnum} + * @type {IssuePropertyAPIRelationTypeEnum} * @memberof PatchedIssuePropertyAPIRequest */ - relationType?: RelationTypeEnum; + relationType?: IssuePropertyAPIRelationTypeEnum | null; /** * * @type {string} @@ -126,7 +126,7 @@ export function PatchedIssuePropertyAPIRequestFromJSONTyped(json: any, ignoreDis } return { - 'relationType': json['relation_type'] == null ? undefined : RelationTypeEnumFromJSON(json['relation_type']), + 'relationType': json['relation_type'] == null ? undefined : IssuePropertyAPIRelationTypeEnumFromJSON(json['relation_type']), 'displayName': json['display_name'] == null ? undefined : json['display_name'], 'description': json['description'] == null ? undefined : json['description'], 'propertyType': json['property_type'] == null ? undefined : PropertyTypeEnumFromJSON(json['property_type']), @@ -152,7 +152,7 @@ export function PatchedIssuePropertyAPIRequestToJSONTyped(value?: PatchedIssuePr return { - 'relation_type': RelationTypeEnumToJSON(value['relationType']), + 'relation_type': IssuePropertyAPIRelationTypeEnumToJSON(value['relationType']), 'display_name': value['displayName'], 'description': value['description'], 'property_type': PropertyTypeEnumToJSON(value['propertyType']), diff --git a/src/models/PatchedIssuePropertyOptionAPIRequest.ts b/src/models/PatchedIssuePropertyOptionAPIRequest.ts index a38edaa..4aabb05 100644 --- a/src/models/PatchedIssuePropertyOptionAPIRequest.ts +++ b/src/models/PatchedIssuePropertyOptionAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIssueRequest.ts b/src/models/PatchedIssueRequest.ts index 49b73bb..d9a1e2a 100644 --- a/src/models/PatchedIssueRequest.ts +++ b/src/models/PatchedIssueRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIssueTypeAPIRequest.ts b/src/models/PatchedIssueTypeAPIRequest.ts index a23041e..73d8fbe 100644 --- a/src/models/PatchedIssueTypeAPIRequest.ts +++ b/src/models/PatchedIssueTypeAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedIssueWorkLogAPIRequest.ts b/src/models/PatchedIssueWorkLogAPIRequest.ts index 8822238..961aef3 100644 --- a/src/models/PatchedIssueWorkLogAPIRequest.ts +++ b/src/models/PatchedIssueWorkLogAPIRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedLabelCreateUpdateRequest.ts b/src/models/PatchedLabelCreateUpdateRequest.ts index 031c419..9928e5e 100644 --- a/src/models/PatchedLabelCreateUpdateRequest.ts +++ b/src/models/PatchedLabelCreateUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedModuleUpdateRequest.ts b/src/models/PatchedModuleUpdateRequest.ts index 4e1d683..5a3f712 100644 --- a/src/models/PatchedModuleUpdateRequest.ts +++ b/src/models/PatchedModuleUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PatchedProjectUpdateRequest.ts b/src/models/PatchedProjectUpdateRequest.ts index 17a6ab2..0790f8d 100644 --- a/src/models/PatchedProjectUpdateRequest.ts +++ b/src/models/PatchedProjectUpdateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -131,6 +131,30 @@ export interface PatchedProjectUpdateRequest { * @memberof PatchedProjectUpdateRequest */ timezone?: TimezoneEnum; + /** + * + * @type {any} + * @memberof PatchedProjectUpdateRequest + */ + logoProps?: any | null; + /** + * + * @type {string} + * @memberof PatchedProjectUpdateRequest + */ + externalSource?: string | null; + /** + * + * @type {string} + * @memberof PatchedProjectUpdateRequest + */ + externalId?: string | null; + /** + * + * @type {boolean} + * @memberof PatchedProjectUpdateRequest + */ + isIssueTypeEnabled?: boolean; /** * * @type {string} @@ -181,6 +205,10 @@ export function PatchedProjectUpdateRequestFromJSONTyped(json: any, ignoreDiscri 'archiveIn': json['archive_in'] == null ? undefined : json['archive_in'], 'closeIn': json['close_in'] == null ? undefined : json['close_in'], 'timezone': json['timezone'] == null ? undefined : TimezoneEnumFromJSON(json['timezone']), + 'logoProps': json['logo_props'] == null ? undefined : json['logo_props'], + 'externalSource': json['external_source'] == null ? undefined : json['external_source'], + 'externalId': json['external_id'] == null ? undefined : json['external_id'], + 'isIssueTypeEnabled': json['is_issue_type_enabled'] == null ? undefined : json['is_issue_type_enabled'], 'defaultState': json['default_state'] == null ? undefined : json['default_state'], 'estimate': json['estimate'] == null ? undefined : json['estimate'], }; @@ -214,6 +242,10 @@ export function PatchedProjectUpdateRequestToJSONTyped(value?: PatchedProjectUpd 'archive_in': value['archiveIn'], 'close_in': value['closeIn'], 'timezone': TimezoneEnumToJSON(value['timezone']), + 'logo_props': value['logoProps'], + 'external_source': value['externalSource'], + 'external_id': value['externalId'], + 'is_issue_type_enabled': value['isIssueTypeEnabled'], 'default_state': value['defaultState'], 'estimate': value['estimate'], }; diff --git a/src/models/PatchedStateRequest.ts b/src/models/PatchedStateRequest.ts index 440c04a..4cb9b45 100644 --- a/src/models/PatchedStateRequest.ts +++ b/src/models/PatchedStateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PriorityEnum.ts b/src/models/PriorityEnum.ts index e38c00c..e4b395a 100644 --- a/src/models/PriorityEnum.ts +++ b/src/models/PriorityEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/Project.ts b/src/models/Project.ts index 879e154..7597a43 100644 --- a/src/models/Project.ts +++ b/src/models/Project.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/ProjectCreateRequest.ts b/src/models/ProjectCreateRequest.ts index 957a208..8aafd1f 100644 --- a/src/models/ProjectCreateRequest.ts +++ b/src/models/ProjectCreateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. @@ -131,6 +131,30 @@ export interface ProjectCreateRequest { * @memberof ProjectCreateRequest */ timezone?: TimezoneEnum; + /** + * + * @type {any} + * @memberof ProjectCreateRequest + */ + logoProps?: any | null; + /** + * + * @type {string} + * @memberof ProjectCreateRequest + */ + externalSource?: string | null; + /** + * + * @type {string} + * @memberof ProjectCreateRequest + */ + externalId?: string | null; + /** + * + * @type {boolean} + * @memberof ProjectCreateRequest + */ + isIssueTypeEnabled?: boolean; } @@ -171,6 +195,10 @@ export function ProjectCreateRequestFromJSONTyped(json: any, ignoreDiscriminator 'archiveIn': json['archive_in'] == null ? undefined : json['archive_in'], 'closeIn': json['close_in'] == null ? undefined : json['close_in'], 'timezone': json['timezone'] == null ? undefined : TimezoneEnumFromJSON(json['timezone']), + 'logoProps': json['logo_props'] == null ? undefined : json['logo_props'], + 'externalSource': json['external_source'] == null ? undefined : json['external_source'], + 'externalId': json['external_id'] == null ? undefined : json['external_id'], + 'isIssueTypeEnabled': json['is_issue_type_enabled'] == null ? undefined : json['is_issue_type_enabled'], }; } @@ -202,6 +230,10 @@ export function ProjectCreateRequestToJSONTyped(value?: ProjectCreateRequest | n 'archive_in': value['archiveIn'], 'close_in': value['closeIn'], 'timezone': TimezoneEnumToJSON(value['timezone']), + 'logo_props': value['logoProps'], + 'external_source': value['externalSource'], + 'external_id': value['externalId'], + 'is_issue_type_enabled': value['isIssueTypeEnabled'], }; } diff --git a/src/models/ProjectWorklogSummary.ts b/src/models/ProjectWorklogSummary.ts index 9fa2179..80f55e0 100644 --- a/src/models/ProjectWorklogSummary.ts +++ b/src/models/ProjectWorklogSummary.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/PropertyTypeEnum.ts b/src/models/PropertyTypeEnum.ts index d796c08..f21f93e 100644 --- a/src/models/PropertyTypeEnum.ts +++ b/src/models/PropertyTypeEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/RelationTypeEnum.ts b/src/models/RelationTypeEnum.ts deleted file mode 100644 index 0a7e6c1..0000000 --- a/src/models/RelationTypeEnum.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * The Plane REST API - * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). - * - * The version of the API Spec: 0.0.1 - * Contact: support@plane.so - * - * NOTE: This class is auto generated. - * Do not edit the class manually. - */ - - -/** - * * `ISSUE` - Issue - * * `USER` - User - * @export - */ -export const RelationTypeEnum = { - Issue: 'ISSUE', - User: 'USER' -} as const; -export type RelationTypeEnum = typeof RelationTypeEnum[keyof typeof RelationTypeEnum]; - - -export function instanceOfRelationTypeEnum(value: any): boolean { - for (const key in RelationTypeEnum) { - if (Object.prototype.hasOwnProperty.call(RelationTypeEnum, key)) { - if (RelationTypeEnum[key as keyof typeof RelationTypeEnum] === value) { - return true; - } - } - } - return false; -} - -export function RelationTypeEnumFromJSON(json: any): RelationTypeEnum { - return RelationTypeEnumFromJSONTyped(json, false); -} - -export function RelationTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RelationTypeEnum { - return json as RelationTypeEnum; -} - -export function RelationTypeEnumToJSON(value?: RelationTypeEnum | null): any { - return value as any; -} - -export function RelationTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): RelationTypeEnum { - return value as RelationTypeEnum; -} - diff --git a/src/models/RetrieveWorkItemAttachment400Response.ts b/src/models/RetrieveWorkItemAttachment400Response.ts index 2b32f7a..ac55f6b 100644 --- a/src/models/RetrieveWorkItemAttachment400Response.ts +++ b/src/models/RetrieveWorkItemAttachment400Response.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/State.ts b/src/models/State.ts index cfa1cdc..3d54e20 100644 --- a/src/models/State.ts +++ b/src/models/State.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/StateLite.ts b/src/models/StateLite.ts index 5b4e5c5..3270dd7 100644 --- a/src/models/StateLite.ts +++ b/src/models/StateLite.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/StateRequest.ts b/src/models/StateRequest.ts index 3d6ee91..7e0080b 100644 --- a/src/models/StateRequest.ts +++ b/src/models/StateRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/TimezoneEnum.ts b/src/models/TimezoneEnum.ts index 6e6801e..d404155 100644 --- a/src/models/TimezoneEnum.ts +++ b/src/models/TimezoneEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/TransferCycleIssueRequestRequest.ts b/src/models/TransferCycleIssueRequestRequest.ts index c116748..7176c5a 100644 --- a/src/models/TransferCycleIssueRequestRequest.ts +++ b/src/models/TransferCycleIssueRequestRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/TransferCycleWorkItems200Response.ts b/src/models/TransferCycleWorkItems200Response.ts index 37c8303..0d62655 100644 --- a/src/models/TransferCycleWorkItems200Response.ts +++ b/src/models/TransferCycleWorkItems200Response.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/TransferCycleWorkItems400Response.ts b/src/models/TransferCycleWorkItems400Response.ts index 3b07f05..e867183 100644 --- a/src/models/TransferCycleWorkItems400Response.ts +++ b/src/models/TransferCycleWorkItems400Response.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/TypeEnum.ts b/src/models/TypeEnum.ts index 7b9ad45..8496c04 100644 --- a/src/models/TypeEnum.ts +++ b/src/models/TypeEnum.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/UserAssetUploadRequest.ts b/src/models/UserAssetUploadRequest.ts index 436729c..ae6d339 100644 --- a/src/models/UserAssetUploadRequest.ts +++ b/src/models/UserAssetUploadRequest.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/UserLite.ts b/src/models/UserLite.ts index 5660a3d..393b706 100644 --- a/src/models/UserLite.ts +++ b/src/models/UserLite.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated. diff --git a/src/models/index.ts b/src/models/index.ts index 62a5891..19542ec 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,12 +1,13 @@ /* tslint:disable */ -export * from './AccessEnum'; +export * from './AccessBd4Enum'; export * from './Cycle'; export * from './CycleCreateRequest'; export * from './CycleIssue'; export * from './CycleIssueRequestRequest'; export * from './CycleLite'; export * from './EntityTypeEnum'; +export * from './Epic'; export * from './GenericAssetUploadRequest'; export * from './GetWorkspaceMembers200ResponseInner'; export * from './GroupEnum'; @@ -25,12 +26,18 @@ export * from './IssueForIntakeRequest'; export * from './IssueLink'; export * from './IssueLinkCreateRequest'; export * from './IssuePropertyAPI'; +export * from './IssuePropertyAPIRelationTypeEnum'; export * from './IssuePropertyAPIRequest'; export * from './IssuePropertyOptionAPI'; export * from './IssuePropertyOptionAPIRequest'; export * from './IssuePropertyValueAPI'; export * from './IssuePropertyValueAPIDetail'; export * from './IssuePropertyValueAPIRequest'; +export * from './IssueRelation'; +export * from './IssueRelationCreateRelationTypeEnum'; +export * from './IssueRelationCreateRequest'; +export * from './IssueRelationRemoveRequest'; +export * from './IssueRelationResponse'; export * from './IssueRequest'; export * from './IssueSearch'; export * from './IssueSearchItem'; @@ -47,10 +54,15 @@ export * from './ModuleIssueRequestRequest'; export * from './ModuleLite'; export * from './ModuleStatusEnum'; export * from './NetworkEnum'; +export * from './PageCreateAPI'; +export * from './PageCreateAPIAccessEnum'; +export * from './PageCreateAPIRequest'; +export * from './PageDetailAPI'; export * from './PaginatedArchivedCycleResponse'; export * from './PaginatedArchivedModuleResponse'; export * from './PaginatedCycleIssueResponse'; export * from './PaginatedCycleResponse'; +export * from './PaginatedEpicResponse'; export * from './PaginatedIntakeIssueResponse'; export * from './PaginatedIssueActivityDetailResponse'; export * from './PaginatedIssueActivityResponse'; @@ -83,7 +95,6 @@ export * from './Project'; export * from './ProjectCreateRequest'; export * from './ProjectWorklogSummary'; export * from './PropertyTypeEnum'; -export * from './RelationTypeEnum'; export * from './RetrieveWorkItemAttachment400Response'; export * from './State'; export * from './StateLite'; diff --git a/src/runtime.ts b/src/runtime.ts index 142f23b..974e7e9 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -4,7 +4,7 @@ * The Plane REST API * The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction). * - * The version of the API Spec: 0.0.1 + * The version of the API Spec: 0.0.2 * Contact: support@plane.so * * NOTE: This class is auto generated.