fix(front): updated schema and generated types (from schema.yml)
This commit is contained in:
parent
87d0cb668c
commit
824b485416
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,7 @@
|
||||||
"test:generate-mock-server": "msw-auto-mock ../docs/schema.yml -o test/msw-server.ts --node",
|
"test:generate-mock-server": "msw-auto-mock ../docs/schema.yml -o test/msw-server.ts --node",
|
||||||
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test cypress public/embed.html",
|
"lint": "eslint --cache --cache-strategy content --ext .ts,.js,.vue,.json,.html src test cypress public/embed.html",
|
||||||
"lint:tsc": "vue-tsc --noEmit --incremental && tsc --noEmit --incremental -p cypress",
|
"lint:tsc": "vue-tsc --noEmit --incremental && tsc --noEmit --incremental -p cypress",
|
||||||
"generate-local-schema": "yarn run openapi-typescript ../api/schema.yml -o src/generated/types.ts",
|
"generate-local-schema": "yarn run openapi-typescript ../api/funkwhale_api/schema.yml -o src/generated/types.ts",
|
||||||
"generate-remote-schema": "yarn run openapi-typescript https://docs.funkwhale.audio/develop/swagger/schema.yml -o src/generated/types.ts"
|
"generate-remote-schema": "yarn run openapi-typescript https://docs.funkwhale.audio/develop/swagger/schema.yml -o src/generated/types.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -6338,6 +6338,8 @@ export interface components {
|
||||||
creation_date: string;
|
creation_date: string;
|
||||||
is_local: boolean;
|
is_local: boolean;
|
||||||
readonly duration: number;
|
readonly duration: number;
|
||||||
|
tracks: components["schemas"]["Track"][] | null;
|
||||||
|
description?: components["schemas"]["Content"] | null;
|
||||||
};
|
};
|
||||||
AlbumCreate: {
|
AlbumCreate: {
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -6371,6 +6373,8 @@ export interface components {
|
||||||
/** Format: date-time */
|
/** Format: date-time */
|
||||||
creation_date: string;
|
creation_date: string;
|
||||||
is_local: boolean;
|
is_local: boolean;
|
||||||
|
tracks: components["schemas"]["TrackRequest"][] | null;
|
||||||
|
description?: components["schemas"]["ContentRequest"] | null;
|
||||||
};
|
};
|
||||||
AllFavorite: {
|
AllFavorite: {
|
||||||
results: components["schemas"]["SimpleFavorite"][];
|
results: components["schemas"]["SimpleFavorite"][];
|
||||||
|
@ -6398,18 +6402,55 @@ export interface components {
|
||||||
name?: string;
|
name?: string;
|
||||||
scopes: string;
|
scopes: string;
|
||||||
};
|
};
|
||||||
|
Artist: {
|
||||||
|
readonly id: number;
|
||||||
|
/** Format: uri */
|
||||||
|
fid?: string | null;
|
||||||
|
/** Format: uuid */
|
||||||
|
mbid?: string | null;
|
||||||
|
name: string;
|
||||||
|
/** Format: date-time */
|
||||||
|
creation_date?: string;
|
||||||
|
/** Format: date-time */
|
||||||
|
modification_date?: string;
|
||||||
|
readonly is_local: boolean;
|
||||||
|
content_category?: components["schemas"]["ContentCategoryEnum"];
|
||||||
|
description?: components["schemas"]["Content"] | null;
|
||||||
|
cover?: components["schemas"]["CoverField"] | null;
|
||||||
|
/** Format: uuid */
|
||||||
|
channel?: string | null;
|
||||||
|
attributed_to?: number | null;
|
||||||
|
readonly tags: string[];
|
||||||
|
};
|
||||||
ArtistCredit: {
|
ArtistCredit: {
|
||||||
artist: components["schemas"]["SimpleArtist"];
|
artist: components["schemas"]["Artist"];
|
||||||
credit?: string | null;
|
credit?: string | null;
|
||||||
joinphrase?: string | null;
|
joinphrase?: string | null;
|
||||||
index?: number | null;
|
index?: number | null;
|
||||||
};
|
};
|
||||||
ArtistCreditRequest: {
|
ArtistCreditRequest: {
|
||||||
artist: components["schemas"]["SimpleArtistRequest"];
|
artist: components["schemas"]["ArtistRequest"];
|
||||||
credit?: string | null;
|
credit?: string | null;
|
||||||
joinphrase?: string | null;
|
joinphrase?: string | null;
|
||||||
index?: number | null;
|
index?: number | null;
|
||||||
};
|
};
|
||||||
|
ArtistRequest: {
|
||||||
|
/** Format: uri */
|
||||||
|
fid?: string | null;
|
||||||
|
/** Format: uuid */
|
||||||
|
mbid?: string | null;
|
||||||
|
name: string;
|
||||||
|
/** Format: date-time */
|
||||||
|
creation_date?: string;
|
||||||
|
/** Format: date-time */
|
||||||
|
modification_date?: string;
|
||||||
|
content_category?: components["schemas"]["ContentCategoryEnum"];
|
||||||
|
description?: components["schemas"]["ContentRequest"] | null;
|
||||||
|
cover?: components["schemas"]["CoverFieldRequest"] | null;
|
||||||
|
/** Format: uuid */
|
||||||
|
channel?: string | null;
|
||||||
|
attributed_to?: number | null;
|
||||||
|
};
|
||||||
ArtistWithAlbums: {
|
ArtistWithAlbums: {
|
||||||
readonly albums: string;
|
readonly albums: string;
|
||||||
readonly tags: string[];
|
readonly tags: string[];
|
||||||
|
@ -6459,7 +6500,10 @@ export interface components {
|
||||||
/** Format: date-time */
|
/** Format: date-time */
|
||||||
readonly creation_date: string;
|
readonly creation_date: string;
|
||||||
readonly urls: {
|
readonly urls: {
|
||||||
[key: string]: unknown;
|
original?: string;
|
||||||
|
small_square_crop?: string;
|
||||||
|
medium_square_crop?: string;
|
||||||
|
large_square_crop?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
AttachmentRequest: {
|
AttachmentRequest: {
|
||||||
|
@ -6561,7 +6605,10 @@ export interface components {
|
||||||
/** Format: date-time */
|
/** Format: date-time */
|
||||||
readonly creation_date: string;
|
readonly creation_date: string;
|
||||||
readonly urls: {
|
readonly urls: {
|
||||||
[key: string]: unknown;
|
original?: string;
|
||||||
|
small_square_crop?: string;
|
||||||
|
medium_square_crop?: string;
|
||||||
|
large_square_crop?: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
CoverFieldRequest: {
|
CoverFieldRequest: {
|
||||||
|
@ -8559,42 +8606,6 @@ export interface components {
|
||||||
/** @default [] */
|
/** @default [] */
|
||||||
outbound: string[];
|
outbound: string[];
|
||||||
};
|
};
|
||||||
SimpleArtist: {
|
|
||||||
readonly id: number;
|
|
||||||
/** Format: uri */
|
|
||||||
fid?: string | null;
|
|
||||||
/** Format: uuid */
|
|
||||||
mbid?: string | null;
|
|
||||||
name: string;
|
|
||||||
/** Format: date-time */
|
|
||||||
creation_date?: string;
|
|
||||||
/** Format: date-time */
|
|
||||||
modification_date?: string;
|
|
||||||
readonly is_local: boolean;
|
|
||||||
content_category?: components["schemas"]["ContentCategoryEnum"];
|
|
||||||
description?: components["schemas"]["Content"] | null;
|
|
||||||
attachment_cover?: components["schemas"]["CoverField"] | null;
|
|
||||||
/** Format: uuid */
|
|
||||||
channel?: string | null;
|
|
||||||
attributed_to?: number | null;
|
|
||||||
};
|
|
||||||
SimpleArtistRequest: {
|
|
||||||
/** Format: uri */
|
|
||||||
fid?: string | null;
|
|
||||||
/** Format: uuid */
|
|
||||||
mbid?: string | null;
|
|
||||||
name: string;
|
|
||||||
/** Format: date-time */
|
|
||||||
creation_date?: string;
|
|
||||||
/** Format: date-time */
|
|
||||||
modification_date?: string;
|
|
||||||
content_category?: components["schemas"]["ContentCategoryEnum"];
|
|
||||||
description?: components["schemas"]["ContentRequest"] | null;
|
|
||||||
attachment_cover?: components["schemas"]["CoverFieldRequest"] | null;
|
|
||||||
/** Format: uuid */
|
|
||||||
channel?: string | null;
|
|
||||||
attributed_to?: number | null;
|
|
||||||
};
|
|
||||||
SimpleChannelArtist: {
|
SimpleChannelArtist: {
|
||||||
id: number;
|
id: number;
|
||||||
/** Format: uri */
|
/** Format: uri */
|
||||||
|
@ -8706,6 +8717,7 @@ export interface components {
|
||||||
readonly listen_url: string;
|
readonly listen_url: string;
|
||||||
readonly tags: string[];
|
readonly tags: string[];
|
||||||
attributed_to: components["schemas"]["APIActor"] | null;
|
attributed_to: components["schemas"]["APIActor"] | null;
|
||||||
|
description?: components["schemas"]["Content"] | null;
|
||||||
id: number;
|
id: number;
|
||||||
/** Format: uri */
|
/** Format: uri */
|
||||||
fid: string;
|
fid: string;
|
||||||
|
@ -8769,6 +8781,7 @@ export interface components {
|
||||||
TrackRequest: {
|
TrackRequest: {
|
||||||
artist_credit: components["schemas"]["ArtistCreditRequest"][];
|
artist_credit: components["schemas"]["ArtistCreditRequest"][];
|
||||||
attributed_to: components["schemas"]["APIActorRequest"] | null;
|
attributed_to: components["schemas"]["APIActorRequest"] | null;
|
||||||
|
description?: components["schemas"]["ContentRequest"] | null;
|
||||||
id: number;
|
id: number;
|
||||||
/** Format: uri */
|
/** Format: uri */
|
||||||
fid: string;
|
fid: string;
|
||||||
|
|
Loading…
Reference in New Issue