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

@@ -0,0 +1,92 @@
/* tslint:disable */
/* eslint-disable */
/**
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
*
* @export
* @interface PatchedCookLogRequest
*/
export interface PatchedCookLogRequest {
/**
*
* @type {number}
* @memberof PatchedCookLogRequest
*/
recipe?: number;
/**
*
* @type {number}
* @memberof PatchedCookLogRequest
*/
servings?: number;
/**
*
* @type {number}
* @memberof PatchedCookLogRequest
*/
rating?: number;
/**
*
* @type {string}
* @memberof PatchedCookLogRequest
*/
comment?: string;
/**
*
* @type {Date}
* @memberof PatchedCookLogRequest
*/
createdAt?: Date;
}
/**
* Check if a given object implements the PatchedCookLogRequest interface.
*/
export function instanceOfPatchedCookLogRequest(value: object): boolean {
return true;
}
export function PatchedCookLogRequestFromJSON(json: any): PatchedCookLogRequest {
return PatchedCookLogRequestFromJSONTyped(json, false);
}
export function PatchedCookLogRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedCookLogRequest {
if (json == null) {
return json;
}
return {
'recipe': json['recipe'] == null ? undefined : json['recipe'],
'servings': json['servings'] == null ? undefined : json['servings'],
'rating': json['rating'] == null ? undefined : json['rating'],
'comment': json['comment'] == null ? undefined : json['comment'],
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
};
}
export function PatchedCookLogRequestToJSON(value?: PatchedCookLogRequest | null): any {
if (value == null) {
return value;
}
return {
'recipe': value['recipe'],
'servings': value['servings'],
'rating': value['rating'],
'comment': value['comment'],
'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
};
}