posprocessing hook for DRF

This commit is contained in:
vabene1111
2024-03-30 11:01:37 +01:00
parent cb98b6723f
commit dfd9f7b066
156 changed files with 11621 additions and 1118 deletions

View File

@@ -24,7 +24,7 @@ export interface BookmarkletImport {
* @type {number}
* @memberof BookmarkletImport
*/
readonly id: number;
id?: number;
/**
*
* @type {string}
@@ -55,7 +55,6 @@ export interface BookmarkletImport {
* Check if a given object implements the BookmarkletImport interface.
*/
export function instanceOfBookmarkletImport(value: object): boolean {
if (!('id' in value)) return false;
if (!('html' in value)) return false;
if (!('createdBy' in value)) return false;
if (!('createdAt' in value)) return false;
@@ -72,7 +71,7 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'url': json['url'] == null ? undefined : json['url'],
'html': json['html'],
'createdBy': json['created_by'],
@@ -86,6 +85,7 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any {
}
return {
'id': value['id'],
'url': value['url'],
'html': value['html'],
};