forked from github/plane
chore: product update interface
This commit is contained in:
parent
3480b450f2
commit
3fae0f39c0
@ -11,6 +11,7 @@ import {
|
||||
IWorkspaceMemberInvitation,
|
||||
ILastActiveWorkspaceDetails,
|
||||
IWorkspaceSearchResults,
|
||||
IProductUpdateResponse,
|
||||
} from "types";
|
||||
|
||||
const trackEvent =
|
||||
@ -206,7 +207,7 @@ class WorkspaceService extends APIService {
|
||||
throw error?.response?.data;
|
||||
});
|
||||
}
|
||||
async getProductUpdates(): Promise<any> {
|
||||
async getProductUpdates(): Promise<IProductUpdateResponse[]> {
|
||||
return this.get("/api/release-notes/")
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
|
52
apps/app/types/workspace.d.ts
vendored
52
apps/app/types/workspace.d.ts
vendored
@ -82,3 +82,55 @@ export interface IWorkspaceSearchResults {
|
||||
page: IWorkspaceDefaultSearchResult[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface IProductUpdateResponse {
|
||||
url: string;
|
||||
assets_url: string;
|
||||
upload_url: string;
|
||||
html_url: string;
|
||||
id: number;
|
||||
author: {
|
||||
login: string;
|
||||
id: string;
|
||||
node_id: string;
|
||||
avatar_url: string;
|
||||
gravatar_id: "";
|
||||
url: string;
|
||||
html_url: string;
|
||||
followers_url: string;
|
||||
following_url: string;
|
||||
gists_url: string;
|
||||
starred_url: string;
|
||||
subscriptions_url: string;
|
||||
organizations_url: string;
|
||||
repos_url: string;
|
||||
events_url: string;
|
||||
received_events_url: string;
|
||||
type: string;
|
||||
site_admin: false;
|
||||
};
|
||||
node_id: string;
|
||||
tag_name: string;
|
||||
target_commitish: string;
|
||||
name: string;
|
||||
draft: boolean;
|
||||
prerelease: true;
|
||||
created_at: string;
|
||||
published_at: string;
|
||||
assets: [];
|
||||
tarball_url: string;
|
||||
zipball_url: string;
|
||||
body: string;
|
||||
reactions: {
|
||||
url: string;
|
||||
total_count: number;
|
||||
"+1": number;
|
||||
"-1": number;
|
||||
laugh: number;
|
||||
hooray: number;
|
||||
confused: number;
|
||||
heart: number;
|
||||
rocket: number;
|
||||
eyes: number;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user