[DEV] update the API generation and video button
This commit is contained in:
parent
96bc7ec052
commit
5fee3a1390
@ -10,7 +10,7 @@ import java.util.UUID;
|
|||||||
|
|
||||||
import org.kar.archidata.api.DataResource;
|
import org.kar.archidata.api.DataResource;
|
||||||
import org.kar.archidata.dataAccess.DataAccess;
|
import org.kar.archidata.dataAccess.DataAccess;
|
||||||
import org.kar.archidata.dataAccess.addOn.model.LinkTable;
|
import org.kar.archidata.dataAccess.addOn.model.LinkTableLongLong;
|
||||||
import org.kar.archidata.dataAccess.options.AccessDeletedItems;
|
import org.kar.archidata.dataAccess.options.AccessDeletedItems;
|
||||||
import org.kar.archidata.dataAccess.options.OverrideTableName;
|
import org.kar.archidata.dataAccess.options.OverrideTableName;
|
||||||
import org.kar.archidata.migration.MigrationSqlStep;
|
import org.kar.archidata.migration.MigrationSqlStep;
|
||||||
@ -58,11 +58,11 @@ public class Migration20240226 extends MigrationSqlStep {
|
|||||||
addAction(() -> {
|
addAction(() -> {
|
||||||
final List<UUIDConversion> datas = DataAccess.gets(UUIDConversion.class, new AccessDeletedItems(), new OverrideTableName("data"));
|
final List<UUIDConversion> datas = DataAccess.gets(UUIDConversion.class, new AccessDeletedItems(), new OverrideTableName("data"));
|
||||||
final List<CoverConversion> medias = DataAccess.gets(CoverConversion.class, new AccessDeletedItems(), new OverrideTableName(tableName));
|
final List<CoverConversion> medias = DataAccess.gets(CoverConversion.class, new AccessDeletedItems(), new OverrideTableName(tableName));
|
||||||
final List<LinkTable> links = DataAccess.gets(LinkTable.class, new OverrideTableName(tableName + "_link_cover"));
|
final List<LinkTableLongLong> links = DataAccess.gets(LinkTableLongLong.class, new OverrideTableName(tableName + "_link_cover"));
|
||||||
LOGGER.info("Get somes data: {} {} {}", datas.size(), medias.size(), links.size());
|
LOGGER.info("Get somes data: {} {} {}", datas.size(), medias.size(), links.size());
|
||||||
for (final CoverConversion media: medias) {
|
for (final CoverConversion media: medias) {
|
||||||
final List<UUID> values = new ArrayList<>();
|
final List<UUID> values = new ArrayList<>();
|
||||||
for (final LinkTable link: links) {
|
for (final LinkTableLongLong link: links) {
|
||||||
if (link.object1Id.equals(media.id)) {
|
if (link.object1Id.equals(media.id)) {
|
||||||
for (final UUIDConversion data: datas) {
|
for (final UUIDConversion data: datas) {
|
||||||
if (data.id.equals(link.object2Id)) {
|
if (data.id.equals(link.object2Id)) {
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
"@angular/router": "^17.3.5",
|
"@angular/router": "^17.3.5",
|
||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"zone.js": "^0.14.4",
|
"zone.js": "^0.14.4",
|
||||||
"zod": "3.22.4",
|
"zod": "3.23.0",
|
||||||
"@kangaroo-and-rabbit/kar-cw": "^0.2.1"
|
"@kangaroo-and-rabbit/kar-cw": "^0.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -42,8 +42,8 @@ dependencies:
|
|||||||
specifier: ^7.8.1
|
specifier: ^7.8.1
|
||||||
version: 7.8.1
|
version: 7.8.1
|
||||||
zod:
|
zod:
|
||||||
specifier: 3.22.4
|
specifier: 3.23.0
|
||||||
version: 3.22.4
|
version: 3.23.0
|
||||||
zone.js:
|
zone.js:
|
||||||
specifier: ^0.14.4
|
specifier: ^0.14.4
|
||||||
version: 0.14.4
|
version: 0.14.4
|
||||||
@ -9806,8 +9806,8 @@ packages:
|
|||||||
engines: {node: '>=12.20'}
|
engines: {node: '>=12.20'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/zod@3.22.4:
|
/zod@3.23.0:
|
||||||
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
|
resolution: {integrity: sha512-OFLT+LTocvabn6q76BTwVB0hExEBS0IduTr3cqZyMqEDbOnYmcU+y0tUAYbND4uwclpBGi4I4UUBGzylWpjLGA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/zone.js@0.14.4:
|
/zone.js@0.14.4:
|
||||||
|
@ -1,14 +1,28 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {UUID, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
UUID,
|
||||||
|
} from "./model"
|
||||||
export namespace DataResource {
|
export namespace DataResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Insert a new data in the data environment
|
* Insert a new data in the data environment
|
||||||
*/
|
*/
|
||||||
export function uploadFile({ restConfig, data, }: {
|
export function uploadFile({
|
||||||
|
restConfig,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
data: {
|
data: {
|
||||||
file: File,
|
file: File,
|
||||||
@ -29,10 +43,15 @@ export namespace DataResource {
|
|||||||
* Get back some data from the data environment
|
* Get back some data from the data environment
|
||||||
*/
|
*/
|
||||||
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
||||||
export function retrieveDataId({ restConfig, queries, params, data, }: {
|
export function retrieveDataId({
|
||||||
|
restConfig,
|
||||||
|
queries,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
queries: {
|
queries: {
|
||||||
Authorization: string,
|
Authorization?: string,
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
id: UUID,
|
id: UUID,
|
||||||
@ -54,10 +73,15 @@ export namespace DataResource {
|
|||||||
* Get a thumbnail of from the data environment (if resize is possible)
|
* Get a thumbnail of from the data environment (if resize is possible)
|
||||||
*/
|
*/
|
||||||
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
||||||
export function retrieveDataThumbnailId({ restConfig, queries, params, data, }: {
|
export function retrieveDataThumbnailId({
|
||||||
|
restConfig,
|
||||||
|
queries,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
queries: {
|
queries: {
|
||||||
Authorization: string,
|
Authorization?: string,
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
id: UUID,
|
id: UUID,
|
||||||
@ -79,10 +103,15 @@ export namespace DataResource {
|
|||||||
* Get back some data from the data environment (with a beautiful name (permit download with basic name)
|
* Get back some data from the data environment (with a beautiful name (permit download with basic name)
|
||||||
*/
|
*/
|
||||||
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
// TODO: unmanaged "Response" type: please specify @AsyncType or considered as 'void'.
|
||||||
export function retrieveDataFull({ restConfig, queries, params, data, }: {
|
export function retrieveDataFull({
|
||||||
|
restConfig,
|
||||||
|
queries,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
queries: {
|
queries: {
|
||||||
Authorization: string,
|
Authorization?: string,
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
name: string,
|
name: string,
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {} from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
} from "./model"
|
||||||
export namespace Front {
|
export namespace Front {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,28 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {HealthResult, isHealthResult, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
HealthResult,
|
||||||
|
isHealthResult,
|
||||||
|
} from "./model"
|
||||||
export namespace HealthCheck {
|
export namespace HealthCheck {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the server state (health)
|
* Get the server state (health)
|
||||||
*/
|
*/
|
||||||
export function getHealth({ restConfig, }: {
|
export function getHealth({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<HealthResult> {
|
}): Promise<HealthResult> {
|
||||||
return RESTRequestJson({
|
return RESTRequestJson({
|
||||||
|
@ -1,14 +1,31 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {UUID, Long, Media, isMedia, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
Media,
|
||||||
|
Long,
|
||||||
|
UUID,
|
||||||
|
isMedia,
|
||||||
|
} from "./model"
|
||||||
export namespace MediaResource {
|
export namespace MediaResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a specific Media
|
* Remove a specific Media
|
||||||
*/
|
*/
|
||||||
export function remove({ restConfig, params, }: {
|
export function remove({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -28,7 +45,10 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Get a specific Media with his ID
|
* Get a specific Media with his ID
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -47,7 +67,11 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Modify a specific Media
|
* Modify a specific Media
|
||||||
*/
|
*/
|
||||||
export function patch({ restConfig, params, data, }: {
|
export function patch({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -69,7 +93,9 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Get all Media
|
* Get all Media
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<Media[]> {
|
}): Promise<Media[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
@ -84,7 +110,12 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Upload a new season cover media
|
* Upload a new season cover media
|
||||||
*/
|
*/
|
||||||
export function uploadCover({ restConfig, params, data, callback, }: {
|
export function uploadCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
callback,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -111,7 +142,10 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Remove a specific cover of a media
|
* Remove a specific cover of a media
|
||||||
*/
|
*/
|
||||||
export function removeCover({ restConfig, params, }: {
|
export function removeCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
coverId: UUID,
|
coverId: UUID,
|
||||||
@ -132,7 +166,11 @@ export namespace MediaResource {
|
|||||||
/**
|
/**
|
||||||
* Create a new Media
|
* Create a new Media
|
||||||
*/
|
*/
|
||||||
export function uploadFile({ restConfig, data, callback, }: {
|
export function uploadFile({
|
||||||
|
restConfig,
|
||||||
|
data,
|
||||||
|
callback,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
data: {
|
data: {
|
||||||
fileName: string,
|
fileName: string,
|
||||||
|
@ -1,14 +1,31 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {UUID, Long, Season, isSeason, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
Long,
|
||||||
|
UUID,
|
||||||
|
Season,
|
||||||
|
isSeason,
|
||||||
|
} from "./model"
|
||||||
export namespace SeasonResource {
|
export namespace SeasonResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a specific season
|
* Remove a specific season
|
||||||
*/
|
*/
|
||||||
export function remove({ restConfig, params, }: {
|
export function remove({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -28,7 +45,10 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Get all season
|
* Get all season
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -48,7 +68,11 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Modify a specific season
|
* Modify a specific season
|
||||||
*/
|
*/
|
||||||
export function patch({ restConfig, params, data, }: {
|
export function patch({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -70,7 +94,10 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Create a new season
|
* Create a new season
|
||||||
*/
|
*/
|
||||||
export function post({ restConfig, data, }: {
|
export function post({
|
||||||
|
restConfig,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
data: Season,
|
data: Season,
|
||||||
}): Promise<Season> {
|
}): Promise<Season> {
|
||||||
@ -88,7 +115,9 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Get a specific Season with his ID
|
* Get a specific Season with his ID
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<Season[]> {
|
}): Promise<Season[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
@ -103,7 +132,12 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Upload a new season cover season
|
* Upload a new season cover season
|
||||||
*/
|
*/
|
||||||
export function uploadCover({ restConfig, params, data, callback, }: {
|
export function uploadCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
callback,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -130,7 +164,10 @@ export namespace SeasonResource {
|
|||||||
/**
|
/**
|
||||||
* Remove a specific cover of a season
|
* Remove a specific cover of a season
|
||||||
*/
|
*/
|
||||||
export function removeCover({ restConfig, params, }: {
|
export function removeCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
coverId: UUID,
|
coverId: UUID,
|
||||||
|
@ -1,14 +1,31 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {UUID, Long, Series, isSeries, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
Long,
|
||||||
|
UUID,
|
||||||
|
Series,
|
||||||
|
isSeries,
|
||||||
|
} from "./model"
|
||||||
export namespace SeriesResource {
|
export namespace SeriesResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a specific Series
|
* Remove a specific Series
|
||||||
*/
|
*/
|
||||||
export function remove({ restConfig, params, }: {
|
export function remove({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -28,7 +45,10 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Get a specific Series with his ID
|
* Get a specific Series with his ID
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -48,7 +68,11 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Modify a specific Series
|
* Modify a specific Series
|
||||||
*/
|
*/
|
||||||
export function patch({ restConfig, params, data, }: {
|
export function patch({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -70,7 +94,10 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Create a new Series
|
* Create a new Series
|
||||||
*/
|
*/
|
||||||
export function post({ restConfig, data, }: {
|
export function post({
|
||||||
|
restConfig,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
data: Series,
|
data: Series,
|
||||||
}): Promise<Series> {
|
}): Promise<Series> {
|
||||||
@ -88,7 +115,9 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Get all Series
|
* Get all Series
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<Series[]> {
|
}): Promise<Series[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
@ -103,7 +132,12 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Upload a new season cover Series
|
* Upload a new season cover Series
|
||||||
*/
|
*/
|
||||||
export function uploadCover({ restConfig, params, data, callback, }: {
|
export function uploadCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
callback,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -130,7 +164,10 @@ export namespace SeriesResource {
|
|||||||
/**
|
/**
|
||||||
* Remove a specific Series of a season
|
* Remove a specific Series of a season
|
||||||
*/
|
*/
|
||||||
export function removeCover({ restConfig, params, }: {
|
export function removeCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
coverId: UUID,
|
coverId: UUID,
|
||||||
|
@ -1,14 +1,31 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {UUID, Long, Type, isType, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
Type,
|
||||||
|
Long,
|
||||||
|
UUID,
|
||||||
|
isType,
|
||||||
|
} from "./model"
|
||||||
export namespace TypeResource {
|
export namespace TypeResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a specific Type
|
* Remove a specific Type
|
||||||
*/
|
*/
|
||||||
export function remove({ restConfig, params, }: {
|
export function remove({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -28,7 +45,10 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Get a specific Type with his ID
|
* Get a specific Type with his ID
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -48,7 +68,11 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Modify a specific Type
|
* Modify a specific Type
|
||||||
*/
|
*/
|
||||||
export function patch({ restConfig, params, data, }: {
|
export function patch({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -70,7 +94,10 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Create a new Type
|
* Create a new Type
|
||||||
*/
|
*/
|
||||||
export function post({ restConfig, data, }: {
|
export function post({
|
||||||
|
restConfig,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
data: Type,
|
data: Type,
|
||||||
}): Promise<Type> {
|
}): Promise<Type> {
|
||||||
@ -88,7 +115,9 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Get all Type
|
* Get all Type
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<Type[]> {
|
}): Promise<Type[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
@ -103,7 +132,12 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Upload a new season cover Type
|
* Upload a new season cover Type
|
||||||
*/
|
*/
|
||||||
export function uploadCover({ restConfig, params, data, callback, }: {
|
export function uploadCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
callback,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -130,7 +164,10 @@ export namespace TypeResource {
|
|||||||
/**
|
/**
|
||||||
* Remove a specific cover of a type
|
* Remove a specific cover of a type
|
||||||
*/
|
*/
|
||||||
export function removeCover({ restConfig, params, }: {
|
export function removeCover({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
coverId: UUID,
|
coverId: UUID,
|
||||||
|
@ -1,14 +1,31 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {Long, UserMediaAdvancement, MediaInformationsDelta, isUserMediaAdvancement, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
MediaInformationsDelta,
|
||||||
|
Long,
|
||||||
|
UserMediaAdvancement,
|
||||||
|
isUserMediaAdvancement,
|
||||||
|
} from "./model"
|
||||||
export namespace UserMediaAdvancementResource {
|
export namespace UserMediaAdvancementResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a specific user advancement
|
* Remove a specific user advancement
|
||||||
*/
|
*/
|
||||||
export function remove({ restConfig, params, }: {
|
export function remove({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -28,7 +45,10 @@ export namespace UserMediaAdvancementResource {
|
|||||||
/**
|
/**
|
||||||
* Get a specific user advancement with his ID
|
* Get a specific user advancement with his ID
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -47,7 +67,11 @@ export namespace UserMediaAdvancementResource {
|
|||||||
/**
|
/**
|
||||||
* Modify a user advancement
|
* Modify a user advancement
|
||||||
*/
|
*/
|
||||||
export function patch({ restConfig, params, data, }: {
|
export function patch({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
data,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -69,7 +93,9 @@ export namespace UserMediaAdvancementResource {
|
|||||||
/**
|
/**
|
||||||
* Get all user advancement
|
* Get all user advancement
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<UserMediaAdvancement[]> {
|
}): Promise<UserMediaAdvancement[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
|
@ -1,14 +1,32 @@
|
|||||||
/**
|
/**
|
||||||
* API of the server (auto-generated code)
|
* API of the server (auto-generated code)
|
||||||
*/
|
*/
|
||||||
import { HTTPMimeType, HTTPRequestModel, ModelResponseHttp, RESTConfig, RESTCallbacks, RESTRequestJson, RESTRequestJsonArray, RESTRequestVoid } from "./rest-tools"
|
import {
|
||||||
import {Long, UserKarideo, UserOut, isUserKarideo, isUserOut, } from "./model"
|
HTTPMimeType,
|
||||||
|
HTTPRequestModel,
|
||||||
|
ModelResponseHttp,
|
||||||
|
RESTCallbacks,
|
||||||
|
RESTConfig,
|
||||||
|
RESTRequestJson,
|
||||||
|
RESTRequestJsonArray,
|
||||||
|
RESTRequestVoid
|
||||||
|
} from "./rest-tools"
|
||||||
|
import {
|
||||||
|
UserKarideo,
|
||||||
|
Long,
|
||||||
|
UserOut,
|
||||||
|
isUserKarideo,
|
||||||
|
isUserOut,
|
||||||
|
} from "./model"
|
||||||
export namespace UserResource {
|
export namespace UserResource {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a specific user data
|
* Get a specific user data
|
||||||
*/
|
*/
|
||||||
export function get({ restConfig, params, }: {
|
export function get({
|
||||||
|
restConfig,
|
||||||
|
params,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
params: {
|
params: {
|
||||||
id: Long,
|
id: Long,
|
||||||
@ -27,7 +45,9 @@ export namespace UserResource {
|
|||||||
/**
|
/**
|
||||||
* Get all the users
|
* Get all the users
|
||||||
*/
|
*/
|
||||||
export function gets({ restConfig, }: {
|
export function gets({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<UserKarideo[]> {
|
}): Promise<UserKarideo[]> {
|
||||||
return RESTRequestJsonArray({
|
return RESTRequestJsonArray({
|
||||||
@ -42,7 +62,9 @@ export namespace UserResource {
|
|||||||
/**
|
/**
|
||||||
* Get the user personal data
|
* Get the user personal data
|
||||||
*/
|
*/
|
||||||
export function getMe({ restConfig, }: {
|
export function getMe({
|
||||||
|
restConfig,
|
||||||
|
}: {
|
||||||
restConfig: RESTConfig,
|
restConfig: RESTConfig,
|
||||||
}): Promise<UserOut> {
|
}): Promise<UserOut> {
|
||||||
return RESTRequestJson({
|
return RESTRequestJson({
|
||||||
|
@ -126,11 +126,21 @@
|
|||||||
}
|
}
|
||||||
<!--<button (click)="onTakeScreenShoot()"><i class="material-icons">add_a_photo</i></button>-->
|
<!--<button (click)="onTakeScreenShoot()"><i class="material-icons">add_a_photo</i></button>-->
|
||||||
<button (click)="onVolumeMenu()"><i class="material-icons">volume_up</i></button>
|
<button (click)="onVolumeMenu()"><i class="material-icons">volume_up</i></button>
|
||||||
@if(!isPlaying) {
|
<button class="bigPause" (click)="onPauseToggle()">
|
||||||
<button class="bigPause" (click)="onPauseToggle()"><i class="material-icons">play_circle_outline</i></button>
|
@if(!isPlaying) {
|
||||||
<button class="bigRewind" (click)="onRewind()"><i class="material-icons">fast_rewind</i></button>
|
<i class="material-icons">play_circle_outline</i>
|
||||||
<button class="bigForward" (click)="onForward()"><i class="material-icons">fast_forward</i></button>
|
}
|
||||||
}
|
</button>
|
||||||
|
<button class="bigRewind" (click)="onRewind()">
|
||||||
|
@if(!isPlaying) {
|
||||||
|
<i class="material-icons">fast_rewind</i>
|
||||||
|
}
|
||||||
|
</button>
|
||||||
|
<button class="bigForward" (click)="onForward()">
|
||||||
|
@if(!isPlaying) {
|
||||||
|
<i class="material-icons">fast_forward</i>
|
||||||
|
}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@if(!isFullScreen || !isPlaying) {
|
@if(!isFullScreen || !isPlaying) {
|
||||||
|
@ -37,6 +37,7 @@ const environment_local: Environment = {
|
|||||||
ssoSignUp: `${serverSSOAddress}/karso/signup/karideo-dev/`,
|
ssoSignUp: `${serverSSOAddress}/karso/signup/karideo-dev/`,
|
||||||
ssoSignOut: `${serverSSOAddress}/karso/signout/karideo-dev/`,
|
ssoSignOut: `${serverSSOAddress}/karso/signout/karideo-dev/`,
|
||||||
tokenStoredInPermanentStorage: false,
|
tokenStoredInPermanentStorage: false,
|
||||||
|
replaceDataToRealServer: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const environment_hybrid: Environment = {
|
const environment_hybrid: Environment = {
|
||||||
|
Loading…
Reference in New Issue
Block a user