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",
|
||||
"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",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -6338,6 +6338,8 @@ export interface components {
|
|||
creation_date: string;
|
||||
is_local: boolean;
|
||||
readonly duration: number;
|
||||
tracks: components["schemas"]["Track"][] | null;
|
||||
description?: components["schemas"]["Content"] | null;
|
||||
};
|
||||
AlbumCreate: {
|
||||
title: string;
|
||||
|
@ -6371,6 +6373,8 @@ export interface components {
|
|||
/** Format: date-time */
|
||||
creation_date: string;
|
||||
is_local: boolean;
|
||||
tracks: components["schemas"]["TrackRequest"][] | null;
|
||||
description?: components["schemas"]["ContentRequest"] | null;
|
||||
};
|
||||
AllFavorite: {
|
||||
results: components["schemas"]["SimpleFavorite"][];
|
||||
|
@ -6398,18 +6402,55 @@ export interface components {
|
|||
name?: 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: {
|
||||
artist: components["schemas"]["SimpleArtist"];
|
||||
artist: components["schemas"]["Artist"];
|
||||
credit?: string | null;
|
||||
joinphrase?: string | null;
|
||||
index?: number | null;
|
||||
};
|
||||
ArtistCreditRequest: {
|
||||
artist: components["schemas"]["SimpleArtistRequest"];
|
||||
artist: components["schemas"]["ArtistRequest"];
|
||||
credit?: string | null;
|
||||
joinphrase?: string | 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: {
|
||||
readonly albums: string;
|
||||
readonly tags: string[];
|
||||
|
@ -6459,7 +6500,10 @@ export interface components {
|
|||
/** Format: date-time */
|
||||
readonly creation_date: string;
|
||||
readonly urls: {
|
||||
[key: string]: unknown;
|
||||
original?: string;
|
||||
small_square_crop?: string;
|
||||
medium_square_crop?: string;
|
||||
large_square_crop?: string;
|
||||
};
|
||||
};
|
||||
AttachmentRequest: {
|
||||
|
@ -6561,7 +6605,10 @@ export interface components {
|
|||
/** Format: date-time */
|
||||
readonly creation_date: string;
|
||||
readonly urls: {
|
||||
[key: string]: unknown;
|
||||
original?: string;
|
||||
small_square_crop?: string;
|
||||
medium_square_crop?: string;
|
||||
large_square_crop?: string;
|
||||
};
|
||||
};
|
||||
CoverFieldRequest: {
|
||||
|
@ -8559,42 +8606,6 @@ export interface components {
|
|||
/** @default [] */
|
||||
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: {
|
||||
id: number;
|
||||
/** Format: uri */
|
||||
|
@ -8706,6 +8717,7 @@ export interface components {
|
|||
readonly listen_url: string;
|
||||
readonly tags: string[];
|
||||
attributed_to: components["schemas"]["APIActor"] | null;
|
||||
description?: components["schemas"]["Content"] | null;
|
||||
id: number;
|
||||
/** Format: uri */
|
||||
fid: string;
|
||||
|
@ -8769,6 +8781,7 @@ export interface components {
|
|||
TrackRequest: {
|
||||
artist_credit: components["schemas"]["ArtistCreditRequest"][];
|
||||
attributed_to: components["schemas"]["APIActorRequest"] | null;
|
||||
description?: components["schemas"]["ContentRequest"] | null;
|
||||
id: number;
|
||||
/** Format: uri */
|
||||
fid: string;
|
||||
|
|
Loading…
Reference in New Issue