mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -05:00
working search with flat endpoint
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
@@ -13,15 +13,15 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { InviteLinkGroup } from './InviteLinkGroup';
|
||||
import type { Group } from './Group';
|
||||
import {
|
||||
InviteLinkGroupFromJSON,
|
||||
InviteLinkGroupFromJSONTyped,
|
||||
InviteLinkGroupToJSON,
|
||||
} from './InviteLinkGroup';
|
||||
GroupFromJSON,
|
||||
GroupFromJSONTyped,
|
||||
GroupToJSON,
|
||||
} from './Group';
|
||||
|
||||
/**
|
||||
*
|
||||
* Adds nested create feature
|
||||
* @export
|
||||
* @interface InviteLink
|
||||
*/
|
||||
@@ -31,13 +31,13 @@ export interface InviteLink {
|
||||
* @type {number}
|
||||
* @memberof InviteLink
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof InviteLink
|
||||
*/
|
||||
readonly uuid?: string;
|
||||
readonly uuid: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -46,10 +46,10 @@ export interface InviteLink {
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {InviteLinkGroup}
|
||||
* @type {Group}
|
||||
* @memberof InviteLink
|
||||
*/
|
||||
group: InviteLinkGroup;
|
||||
group: Group;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
@@ -76,16 +76,16 @@ export interface InviteLink {
|
||||
internalNote?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof InviteLink
|
||||
*/
|
||||
readonly createdBy?: string;
|
||||
readonly createdBy: number;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof InviteLink
|
||||
*/
|
||||
readonly createdAt?: Date;
|
||||
readonly createdAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -93,7 +93,11 @@ export interface InviteLink {
|
||||
*/
|
||||
export function instanceOfInviteLink(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "uuid" in value;
|
||||
isInstance = isInstance && "group" in value;
|
||||
isInstance = isInstance && "createdBy" in value;
|
||||
isInstance = isInstance && "createdAt" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -108,16 +112,16 @@ export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
|
||||
'id': json['id'],
|
||||
'uuid': json['uuid'],
|
||||
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||
'group': InviteLinkGroupFromJSON(json['group']),
|
||||
'group': GroupFromJSON(json['group']),
|
||||
'validUntil': !exists(json, 'valid_until') ? undefined : (new Date(json['valid_until'])),
|
||||
'usedBy': !exists(json, 'used_by') ? undefined : json['used_by'],
|
||||
'reusable': !exists(json, 'reusable') ? undefined : json['reusable'],
|
||||
'internalNote': !exists(json, 'internal_note') ? undefined : json['internal_note'],
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'createdBy': json['created_by'],
|
||||
'createdAt': (new Date(json['created_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -131,7 +135,7 @@ export function InviteLinkToJSON(value?: InviteLink | null): any {
|
||||
return {
|
||||
|
||||
'email': value.email,
|
||||
'group': InviteLinkGroupToJSON(value.group),
|
||||
'group': GroupToJSON(value.group),
|
||||
'valid_until': value.validUntil === undefined ? undefined : (value.validUntil.toISOString().substring(0,10)),
|
||||
'used_by': value.usedBy,
|
||||
'reusable': value.reusable,
|
||||
|
||||
Reference in New Issue
Block a user