diff --git a/cookbook/helper/drf_spectacular_hooks.py b/cookbook/helper/drf_spectacular_hooks.py index 0804688bc..cc3048f4d 100644 --- a/cookbook/helper/drf_spectacular_hooks.py +++ b/cookbook/helper/drf_spectacular_hooks.py @@ -1,11 +1,39 @@ -from drf_spectacular.types import OpenApiTypes +# custom processing for schema +# reason: DRF writable nested needs ID's to decide if a nested object should be created or updated +# the API schema/client make ID's read only by default and strips them entirely in request objects (with COMPONENT_SPLIT_REQUEST enabled) +# change request objects (schema ends with Request) and response objects (just model name) to the following: +# response objects: id field is required but read only +# request objects: id field is optional but writable/included +# WARNING: COMPONENT_SPLIT_REQUEST must be enabled, if not schemas might be wrong def custom_postprocessing_hook(result, generator, request, public): for c in result['components']['schemas'].keys(): - if 'properties' in result['components']['schemas'][c] and 'id' in result['components']['schemas'][c]['properties']: - print('setting non read only for ', c) - result['components']['schemas'][c]['properties']['id']['readOnly'] = False - if 'required' in result['components']['schemas'][c] and 'id' in result['components']['schemas'][c]['required']: - result['components']['schemas'][c]['required'].remove('id') - return result + # handle schemas used by the client to do requests on the server + if c.strip().endswith('Request'): + # check if request schema has a corresponding response schema to avoid changing request schemas for models that end with the word Request + response_schema = None + if c.strip().replace('Request', '') in result['components']['schemas'].keys(): + response_schema = c.strip().replace('Request', '') + elif c.strip().startswith('Patched') and c.strip().replace('Request', '').replace('Patched', '', 1) in result['components']['schemas'].keys(): + response_schema = c.strip().replace('Request', '').replace('Patched', '', 1) + + # if response schema exist update request schema to include writable, optional id + if response_schema and 'id' in result['components']['schemas'][response_schema]['properties']: + if 'id' not in result['components']['schemas'][c]['properties']: + result['components']['schemas'][c]['properties']['id'] = {'readOnly': False, 'type': 'integer'} + # this is probably never the case but make sure ID is not required anyway + if 'required' in result['components']['schemas'][c] and 'id' in result['components']['schemas'][c]['required']: + result['components']['schemas'][c]['required'].remove('id') + # handle all schemas returned by the server to the client + else: + if 'properties' in result['components']['schemas'][c] and 'id' in result['components']['schemas'][c]['properties']: + # make ID field not read only so it's not stripped from the request on the client + result['components']['schemas'][c]['properties']['id']['readOnly'] = True + # make ID field required because if an object has an id it should also always be returned + if 'required' not in result['components']['schemas'][c]: + result['components']['schemas'][c]['required'] = ['id'] + else: + result['components']['schemas'][c]['required'].append('id') + + return result \ No newline at end of file diff --git a/vue3/src/openapi/apis/ApiApi.ts b/vue3/src/openapi/apis/ApiApi.ts index 100b011a0..7fe8e0bb5 100644 --- a/vue3/src/openapi/apis/ApiApi.ts +++ b/vue3/src/openapi/apis/ApiApi.ts @@ -1535,6 +1535,7 @@ export interface ApiUnitUpdateRequest { export interface ApiUserFileCreateRequest { name: string; file: Blob; + id?: number; } export interface ApiUserFileDestroyRequest { @@ -1552,6 +1553,7 @@ export interface ApiUserFilePartialUpdateRequest { id: number; name?: string; file?: Blob; + id2?: number; } export interface ApiUserFileRetrieveRequest { @@ -1562,6 +1564,7 @@ export interface ApiUserFileUpdateRequest { id: number; name: string; file: Blob; + id2?: number; } export interface ApiUserPartialUpdateRequest { @@ -11254,6 +11257,10 @@ export class ApiApi extends runtime.BaseAPI { formParams.append('file', requestParameters['file'] as any); } + if (requestParameters['id'] != null) { + formParams.append('id', requestParameters['id'] as any); + } + const response = await this.request({ path: `/api/user-file/`, method: 'POST', @@ -11392,6 +11399,10 @@ export class ApiApi extends runtime.BaseAPI { formParams.append('file', requestParameters['file'] as any); } + if (requestParameters['id2'] != null) { + formParams.append('id', requestParameters['id2'] as any); + } + const response = await this.request({ path: `/api/user-file/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PATCH', @@ -11501,6 +11512,10 @@ export class ApiApi extends runtime.BaseAPI { formParams.append('file', requestParameters['file'] as any); } + if (requestParameters['id2'] != null) { + formParams.append('id', requestParameters['id2'] as any); + } + const response = await this.request({ path: `/api/user-file/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', diff --git a/vue3/src/openapi/models/AccessToken.ts b/vue3/src/openapi/models/AccessToken.ts index 6d7729d91..253cbf8be 100644 --- a/vue3/src/openapi/models/AccessToken.ts +++ b/vue3/src/openapi/models/AccessToken.ts @@ -24,7 +24,7 @@ export interface AccessToken { * @type {number} * @memberof AccessToken */ - id?: number; + readonly id: number; /** * * @type {string} @@ -61,6 +61,7 @@ export interface AccessToken { * Check if a given object implements the AccessToken interface. */ export function instanceOfAccessToken(value: object): boolean { + if (!('id' in value)) return false; if (!('token' in value)) return false; if (!('expires' in value)) return false; if (!('created' in value)) return false; @@ -78,7 +79,7 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'token': json['token'], 'expires': (new Date(json['expires'])), 'scope': json['scope'] == null ? undefined : json['scope'], @@ -93,7 +94,6 @@ export function AccessTokenToJSON(value?: AccessToken | null): any { } return { - 'id': value['id'], 'expires': ((value['expires']).toISOString()), 'scope': value['scope'], }; diff --git a/vue3/src/openapi/models/AccessTokenRequest.ts b/vue3/src/openapi/models/AccessTokenRequest.ts index a38f518bc..1d5e2b84d 100644 --- a/vue3/src/openapi/models/AccessTokenRequest.ts +++ b/vue3/src/openapi/models/AccessTokenRequest.ts @@ -31,6 +31,12 @@ export interface AccessTokenRequest { * @memberof AccessTokenRequest */ scope?: string; + /** + * + * @type {number} + * @memberof AccessTokenRequest + */ + id?: number; } /** @@ -53,6 +59,7 @@ export function AccessTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: 'expires': (new Date(json['expires'])), 'scope': json['scope'] == null ? undefined : json['scope'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -64,6 +71,7 @@ export function AccessTokenRequestToJSON(value?: AccessTokenRequest | null): any 'expires': ((value['expires']).toISOString()), 'scope': value['scope'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Automation.ts b/vue3/src/openapi/models/Automation.ts index bf779b250..f2513221f 100644 --- a/vue3/src/openapi/models/Automation.ts +++ b/vue3/src/openapi/models/Automation.ts @@ -31,7 +31,7 @@ export interface Automation { * @type {number} * @memberof Automation */ - id?: number; + readonly id: number; /** * * @type {AutomationTypeEnum} @@ -92,6 +92,7 @@ export interface Automation { * Check if a given object implements the Automation interface. */ export function instanceOfAutomation(value: object): boolean { + if (!('id' in value)) return false; if (!('type' in value)) return false; if (!('createdBy' in value)) return false; return true; @@ -107,7 +108,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'type': AutomationTypeEnumFromJSON(json['type']), 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], @@ -126,7 +127,6 @@ export function AutomationToJSON(value?: Automation | null): any { } return { - 'id': value['id'], 'type': AutomationTypeEnumToJSON(value['type']), 'name': value['name'], 'description': value['description'], diff --git a/vue3/src/openapi/models/AutomationRequest.ts b/vue3/src/openapi/models/AutomationRequest.ts index 304bafe55..f9d12ad92 100644 --- a/vue3/src/openapi/models/AutomationRequest.ts +++ b/vue3/src/openapi/models/AutomationRequest.ts @@ -74,6 +74,12 @@ export interface AutomationRequest { * @memberof AutomationRequest */ disabled?: boolean; + /** + * + * @type {number} + * @memberof AutomationRequest + */ + id?: number; } /** @@ -102,6 +108,7 @@ export function AutomationRequestFromJSONTyped(json: any, ignoreDiscriminator: b 'param3': json['param_3'] == null ? undefined : json['param_3'], 'order': json['order'] == null ? undefined : json['order'], 'disabled': json['disabled'] == null ? undefined : json['disabled'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -119,6 +126,7 @@ export function AutomationRequestToJSON(value?: AutomationRequest | null): any { 'param_3': value['param3'], 'order': value['order'], 'disabled': value['disabled'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/BookmarkletImport.ts b/vue3/src/openapi/models/BookmarkletImport.ts index e4a044752..c0e42fd61 100644 --- a/vue3/src/openapi/models/BookmarkletImport.ts +++ b/vue3/src/openapi/models/BookmarkletImport.ts @@ -24,7 +24,7 @@ export interface BookmarkletImport { * @type {number} * @memberof BookmarkletImport */ - id?: number; + readonly id: number; /** * * @type {string} @@ -55,6 +55,7 @@ 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; @@ -71,7 +72,7 @@ export function BookmarkletImportFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'url': json['url'] == null ? undefined : json['url'], 'html': json['html'], 'createdBy': json['created_by'], @@ -85,7 +86,6 @@ export function BookmarkletImportToJSON(value?: BookmarkletImport | null): any { } return { - 'id': value['id'], 'url': value['url'], 'html': value['html'], }; diff --git a/vue3/src/openapi/models/BookmarkletImportList.ts b/vue3/src/openapi/models/BookmarkletImportList.ts index 3a7310ee0..3fa437510 100644 --- a/vue3/src/openapi/models/BookmarkletImportList.ts +++ b/vue3/src/openapi/models/BookmarkletImportList.ts @@ -24,7 +24,7 @@ export interface BookmarkletImportList { * @type {number} * @memberof BookmarkletImportList */ - id?: number; + readonly id: number; /** * * @type {string} @@ -49,6 +49,7 @@ export interface BookmarkletImportList { * Check if a given object implements the BookmarkletImportList interface. */ export function instanceOfBookmarkletImportList(value: object): boolean { + if (!('id' in value)) return false; if (!('createdBy' in value)) return false; if (!('createdAt' in value)) return false; return true; @@ -64,7 +65,7 @@ export function BookmarkletImportListFromJSONTyped(json: any, ignoreDiscriminato } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'url': json['url'] == null ? undefined : json['url'], 'createdBy': json['created_by'], 'createdAt': (new Date(json['created_at'])), @@ -77,7 +78,6 @@ export function BookmarkletImportListToJSON(value?: BookmarkletImportList | null } return { - 'id': value['id'], 'url': value['url'], }; } diff --git a/vue3/src/openapi/models/BookmarkletImportRequest.ts b/vue3/src/openapi/models/BookmarkletImportRequest.ts index d5d76538d..ce8d87c63 100644 --- a/vue3/src/openapi/models/BookmarkletImportRequest.ts +++ b/vue3/src/openapi/models/BookmarkletImportRequest.ts @@ -31,6 +31,12 @@ export interface BookmarkletImportRequest { * @memberof BookmarkletImportRequest */ html: string; + /** + * + * @type {number} + * @memberof BookmarkletImportRequest + */ + id?: number; } /** @@ -53,6 +59,7 @@ export function BookmarkletImportRequestFromJSONTyped(json: any, ignoreDiscrimin 'url': json['url'] == null ? undefined : json['url'], 'html': json['html'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -64,6 +71,7 @@ export function BookmarkletImportRequestToJSON(value?: BookmarkletImportRequest 'url': value['url'], 'html': value['html'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/ConnectorConfigConfig.ts b/vue3/src/openapi/models/ConnectorConfigConfig.ts index 7bf7541d3..09d7737fa 100644 --- a/vue3/src/openapi/models/ConnectorConfigConfig.ts +++ b/vue3/src/openapi/models/ConnectorConfigConfig.ts @@ -24,7 +24,7 @@ export interface ConnectorConfigConfig { * @type {number} * @memberof ConnectorConfigConfig */ - id?: number; + readonly id: number; /** * * @type {string} @@ -79,6 +79,7 @@ export interface ConnectorConfigConfig { * Check if a given object implements the ConnectorConfigConfig interface. */ export function instanceOfConnectorConfigConfig(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('createdBy' in value)) return false; return true; @@ -94,7 +95,7 @@ export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminato } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'url': json['url'] == null ? undefined : json['url'], 'todoEntity': json['todo_entity'] == null ? undefined : json['todo_entity'], @@ -112,7 +113,6 @@ export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null } return { - 'id': value['id'], 'name': value['name'], 'url': value['url'], 'todo_entity': value['todoEntity'], diff --git a/vue3/src/openapi/models/ConnectorConfigConfigRequest.ts b/vue3/src/openapi/models/ConnectorConfigConfigRequest.ts index be72e25b1..58c06a23d 100644 --- a/vue3/src/openapi/models/ConnectorConfigConfigRequest.ts +++ b/vue3/src/openapi/models/ConnectorConfigConfigRequest.ts @@ -67,6 +67,12 @@ export interface ConnectorConfigConfigRequest { * @memberof ConnectorConfigConfigRequest */ onShoppingListEntryDeletedEnabled?: boolean; + /** + * + * @type {number} + * @memberof ConnectorConfigConfigRequest + */ + id?: number; } /** @@ -95,6 +101,7 @@ export function ConnectorConfigConfigRequestFromJSONTyped(json: any, ignoreDiscr 'onShoppingListEntryCreatedEnabled': json['on_shopping_list_entry_created_enabled'] == null ? undefined : json['on_shopping_list_entry_created_enabled'], 'onShoppingListEntryUpdatedEnabled': json['on_shopping_list_entry_updated_enabled'] == null ? undefined : json['on_shopping_list_entry_updated_enabled'], 'onShoppingListEntryDeletedEnabled': json['on_shopping_list_entry_deleted_enabled'] == null ? undefined : json['on_shopping_list_entry_deleted_enabled'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -112,6 +119,7 @@ export function ConnectorConfigConfigRequestToJSON(value?: ConnectorConfigConfig 'on_shopping_list_entry_created_enabled': value['onShoppingListEntryCreatedEnabled'], 'on_shopping_list_entry_updated_enabled': value['onShoppingListEntryUpdatedEnabled'], 'on_shopping_list_entry_deleted_enabled': value['onShoppingListEntryDeletedEnabled'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/CookLog.ts b/vue3/src/openapi/models/CookLog.ts index e40d9c97c..10297e3db 100644 --- a/vue3/src/openapi/models/CookLog.ts +++ b/vue3/src/openapi/models/CookLog.ts @@ -31,7 +31,7 @@ export interface CookLog { * @type {number} * @memberof CookLog */ - id?: number; + readonly id: number; /** * * @type {number} @@ -80,6 +80,7 @@ export interface CookLog { * Check if a given object implements the CookLog interface. */ export function instanceOfCookLog(value: object): boolean { + if (!('id' in value)) return false; if (!('recipe' in value)) return false; if (!('createdBy' in value)) return false; if (!('updatedAt' in value)) return false; @@ -96,7 +97,7 @@ export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): C } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'recipe': json['recipe'], 'servings': json['servings'] == null ? undefined : json['servings'], 'rating': json['rating'] == null ? undefined : json['rating'], @@ -113,7 +114,6 @@ export function CookLogToJSON(value?: CookLog | null): any { } return { - 'id': value['id'], 'recipe': value['recipe'], 'servings': value['servings'], 'rating': value['rating'], diff --git a/vue3/src/openapi/models/CookLogRequest.ts b/vue3/src/openapi/models/CookLogRequest.ts index 25540853f..247cf072e 100644 --- a/vue3/src/openapi/models/CookLogRequest.ts +++ b/vue3/src/openapi/models/CookLogRequest.ts @@ -49,6 +49,12 @@ export interface CookLogRequest { * @memberof CookLogRequest */ createdAt?: Date; + /** + * + * @type {number} + * @memberof CookLogRequest + */ + id?: number; } /** @@ -74,6 +80,7 @@ export function CookLogRequestFromJSONTyped(json: any, ignoreDiscriminator: bool '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'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -88,6 +95,7 @@ export function CookLogRequestToJSON(value?: CookLogRequest | null): any { 'rating': value['rating'], 'comment': value['comment'], 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/CustomFilter.ts b/vue3/src/openapi/models/CustomFilter.ts index 22073e78d..8e565b6c6 100644 --- a/vue3/src/openapi/models/CustomFilter.ts +++ b/vue3/src/openapi/models/CustomFilter.ts @@ -31,7 +31,7 @@ export interface CustomFilter { * @type {number} * @memberof CustomFilter */ - id?: number; + readonly id: number; /** * * @type {string} @@ -62,6 +62,7 @@ export interface CustomFilter { * Check if a given object implements the CustomFilter interface. */ export function instanceOfCustomFilter(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('search' in value)) return false; if (!('createdBy' in value)) return false; @@ -78,7 +79,7 @@ export function CustomFilterFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'search': json['search'], 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserFromJSON)), @@ -92,7 +93,6 @@ export function CustomFilterToJSON(value?: CustomFilter | null): any { } return { - 'id': value['id'], 'name': value['name'], 'search': value['search'], 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserToJSON)), diff --git a/vue3/src/openapi/models/CustomFilterRequest.ts b/vue3/src/openapi/models/CustomFilterRequest.ts index 0f2e85cf0..cb22523b1 100644 --- a/vue3/src/openapi/models/CustomFilterRequest.ts +++ b/vue3/src/openapi/models/CustomFilterRequest.ts @@ -44,6 +44,12 @@ export interface CustomFilterRequest { * @memberof CustomFilterRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof CustomFilterRequest + */ + id?: number; } /** @@ -68,6 +74,7 @@ export function CustomFilterRequestFromJSONTyped(json: any, ignoreDiscriminator: 'name': json['name'], 'search': json['search'], 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -80,6 +87,7 @@ export function CustomFilterRequestToJSON(value?: CustomFilterRequest | null): a 'name': value['name'], 'search': value['search'], 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/ExportLog.ts b/vue3/src/openapi/models/ExportLog.ts index 672a0ede6..9e7ece359 100644 --- a/vue3/src/openapi/models/ExportLog.ts +++ b/vue3/src/openapi/models/ExportLog.ts @@ -24,7 +24,7 @@ export interface ExportLog { * @type {number} * @memberof ExportLog */ - id?: number; + readonly id: number; /** * * @type {string} @@ -85,6 +85,7 @@ export interface ExportLog { * Check if a given object implements the ExportLog interface. */ export function instanceOfExportLog(value: object): boolean { + if (!('id' in value)) return false; if (!('type' in value)) return false; if (!('createdBy' in value)) return false; if (!('createdAt' in value)) return false; @@ -101,7 +102,7 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'type': json['type'], 'msg': json['msg'] == null ? undefined : json['msg'], 'running': json['running'] == null ? undefined : json['running'], @@ -120,7 +121,6 @@ export function ExportLogToJSON(value?: ExportLog | null): any { } return { - 'id': value['id'], 'type': value['type'], 'msg': value['msg'], 'running': value['running'], diff --git a/vue3/src/openapi/models/ExportLogRequest.ts b/vue3/src/openapi/models/ExportLogRequest.ts index a1cc9a8a9..d2bd09517 100644 --- a/vue3/src/openapi/models/ExportLogRequest.ts +++ b/vue3/src/openapi/models/ExportLogRequest.ts @@ -61,6 +61,12 @@ export interface ExportLogRequest { * @memberof ExportLogRequest */ possiblyNotExpired?: boolean; + /** + * + * @type {number} + * @memberof ExportLogRequest + */ + id?: number; } /** @@ -88,6 +94,7 @@ export function ExportLogRequestFromJSONTyped(json: any, ignoreDiscriminator: bo 'exportedRecipes': json['exported_recipes'] == null ? undefined : json['exported_recipes'], 'cacheDuration': json['cache_duration'] == null ? undefined : json['cache_duration'], 'possiblyNotExpired': json['possibly_not_expired'] == null ? undefined : json['possibly_not_expired'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -104,6 +111,7 @@ export function ExportLogRequestToJSON(value?: ExportLogRequest | null): any { 'exported_recipes': value['exportedRecipes'], 'cache_duration': value['cacheDuration'], 'possibly_not_expired': value['possiblyNotExpired'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Food.ts b/vue3/src/openapi/models/Food.ts index ec9bba0bf..f6404b2e7 100644 --- a/vue3/src/openapi/models/Food.ts +++ b/vue3/src/openapi/models/Food.ts @@ -95,7 +95,7 @@ export interface Food { * @type {number} * @memberof Food */ - id?: number; + readonly id: number; /** * * @type {string} @@ -240,6 +240,7 @@ export interface Food { * Check if a given object implements the Food interface. */ export function instanceOfFood(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('shopping' in value)) return false; if (!('parent' in value)) return false; @@ -259,7 +260,7 @@ export function FoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Food } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'pluralName': json['plural_name'] == null ? undefined : json['plural_name'], 'description': json['description'] == null ? undefined : json['description'], @@ -292,7 +293,6 @@ export function FoodToJSON(value?: Food | null): any { } return { - 'id': value['id'], 'name': value['name'], 'plural_name': value['pluralName'], 'description': value['description'], diff --git a/vue3/src/openapi/models/FoodInheritField.ts b/vue3/src/openapi/models/FoodInheritField.ts index f4fd592fc..fdb876134 100644 --- a/vue3/src/openapi/models/FoodInheritField.ts +++ b/vue3/src/openapi/models/FoodInheritField.ts @@ -58,7 +58,7 @@ export interface FoodInheritField { * @type {number} * @memberof FoodInheritField */ - id?: number; + readonly id: number; /** * * @type {string} @@ -77,6 +77,7 @@ export interface FoodInheritField { * Check if a given object implements the FoodInheritField interface. */ export function instanceOfFoodInheritField(value: object): boolean { + if (!('id' in value)) return false; return true; } @@ -90,7 +91,7 @@ export function FoodInheritFieldFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], 'field': json['field'] == null ? undefined : json['field'], }; @@ -102,7 +103,6 @@ export function FoodInheritFieldToJSON(value?: FoodInheritField | null): any { } return { - 'id': value['id'], 'name': value['name'], 'field': value['field'], }; diff --git a/vue3/src/openapi/models/FoodInheritFieldRequest.ts b/vue3/src/openapi/models/FoodInheritFieldRequest.ts index 85c579c36..7029be831 100644 --- a/vue3/src/openapi/models/FoodInheritFieldRequest.ts +++ b/vue3/src/openapi/models/FoodInheritFieldRequest.ts @@ -65,6 +65,12 @@ export interface FoodInheritFieldRequest { * @memberof FoodInheritFieldRequest */ field?: string; + /** + * + * @type {number} + * @memberof FoodInheritFieldRequest + */ + id?: number; } /** @@ -86,6 +92,7 @@ export function FoodInheritFieldRequestFromJSONTyped(json: any, ignoreDiscrimina 'name': json['name'] == null ? undefined : json['name'], 'field': json['field'] == null ? undefined : json['field'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -97,6 +104,7 @@ export function FoodInheritFieldRequestToJSON(value?: FoodInheritFieldRequest | 'name': value['name'], 'field': value['field'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/FoodRequest.ts b/vue3/src/openapi/models/FoodRequest.ts index d2a19969f..8d411183c 100644 --- a/vue3/src/openapi/models/FoodRequest.ts +++ b/vue3/src/openapi/models/FoodRequest.ts @@ -198,6 +198,12 @@ export interface FoodRequest { * @memberof FoodRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof FoodRequest + */ + id?: number; } /** @@ -236,6 +242,7 @@ export function FoodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean 'substituteChildren': json['substitute_children'] == null ? undefined : json['substitute_children'], 'childInheritFields': json['child_inherit_fields'] == null ? undefined : ((json['child_inherit_fields'] as Array).map(FoodInheritFieldRequestFromJSON)), 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -263,6 +270,7 @@ export function FoodRequestToJSON(value?: FoodRequest | null): any { 'substitute_children': value['substituteChildren'], 'child_inherit_fields': value['childInheritFields'] == null ? undefined : ((value['childInheritFields'] as Array).map(FoodInheritFieldRequestToJSON)), 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/FoodShoppingUpdate.ts b/vue3/src/openapi/models/FoodShoppingUpdate.ts index 39a0522f7..ae6ef063a 100644 --- a/vue3/src/openapi/models/FoodShoppingUpdate.ts +++ b/vue3/src/openapi/models/FoodShoppingUpdate.ts @@ -24,13 +24,14 @@ export interface FoodShoppingUpdate { * @type {number} * @memberof FoodShoppingUpdate */ - id?: number; + readonly id: number; } /** * Check if a given object implements the FoodShoppingUpdate interface. */ export function instanceOfFoodShoppingUpdate(value: object): boolean { + if (!('id' in value)) return false; return true; } @@ -44,7 +45,7 @@ export function FoodShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], }; } @@ -54,7 +55,6 @@ export function FoodShoppingUpdateToJSON(value?: FoodShoppingUpdate | null): any } return { - 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/FoodShoppingUpdateRequest.ts b/vue3/src/openapi/models/FoodShoppingUpdateRequest.ts index de5eb55b0..bfafc991d 100644 --- a/vue3/src/openapi/models/FoodShoppingUpdateRequest.ts +++ b/vue3/src/openapi/models/FoodShoppingUpdateRequest.ts @@ -46,6 +46,12 @@ export interface FoodShoppingUpdateRequest { * @memberof FoodShoppingUpdateRequest */ _delete: DeleteEnum | null; + /** + * + * @type {number} + * @memberof FoodShoppingUpdateRequest + */ + id?: number; } /** @@ -69,6 +75,7 @@ export function FoodShoppingUpdateRequestFromJSONTyped(json: any, ignoreDiscrimi 'amount': json['amount'] == null ? undefined : json['amount'], 'unit': json['unit'] == null ? undefined : json['unit'], '_delete': DeleteEnumFromJSON(json['delete']), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -81,6 +88,7 @@ export function FoodShoppingUpdateRequestToJSON(value?: FoodShoppingUpdateReques 'amount': value['amount'], 'unit': value['unit'], 'delete': DeleteEnumToJSON(value['_delete']), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/FoodSimple.ts b/vue3/src/openapi/models/FoodSimple.ts index 0658dcca8..4829def97 100644 --- a/vue3/src/openapi/models/FoodSimple.ts +++ b/vue3/src/openapi/models/FoodSimple.ts @@ -24,7 +24,7 @@ export interface FoodSimple { * @type {number} * @memberof FoodSimple */ - id?: number; + readonly id: number; /** * * @type {string} @@ -43,6 +43,7 @@ export interface FoodSimple { * Check if a given object implements the FoodSimple interface. */ export function instanceOfFoodSimple(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -57,7 +58,7 @@ export function FoodSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'pluralName': json['plural_name'] == null ? undefined : json['plural_name'], }; @@ -69,7 +70,6 @@ export function FoodSimpleToJSON(value?: FoodSimple | null): any { } return { - 'id': value['id'], 'name': value['name'], 'plural_name': value['pluralName'], }; diff --git a/vue3/src/openapi/models/FoodSimpleRequest.ts b/vue3/src/openapi/models/FoodSimpleRequest.ts index 27774b9e6..26baceb4c 100644 --- a/vue3/src/openapi/models/FoodSimpleRequest.ts +++ b/vue3/src/openapi/models/FoodSimpleRequest.ts @@ -31,6 +31,12 @@ export interface FoodSimpleRequest { * @memberof FoodSimpleRequest */ pluralName?: string; + /** + * + * @type {number} + * @memberof FoodSimpleRequest + */ + id?: number; } /** @@ -53,6 +59,7 @@ export function FoodSimpleRequestFromJSONTyped(json: any, ignoreDiscriminator: b 'name': json['name'], 'pluralName': json['plural_name'] == null ? undefined : json['plural_name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -64,6 +71,7 @@ export function FoodSimpleRequestToJSON(value?: FoodSimpleRequest | null): any { 'name': value['name'], 'plural_name': value['pluralName'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Group.ts b/vue3/src/openapi/models/Group.ts index f5a4ae02f..6a9154a1c 100644 --- a/vue3/src/openapi/models/Group.ts +++ b/vue3/src/openapi/models/Group.ts @@ -58,7 +58,7 @@ export interface Group { * @type {number} * @memberof Group */ - id?: number; + readonly id: number; /** * * @type {string} @@ -71,6 +71,7 @@ export interface Group { * Check if a given object implements the Group interface. */ export function instanceOfGroup(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -85,7 +86,7 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], }; } @@ -96,7 +97,6 @@ export function GroupToJSON(value?: Group | null): any { } return { - 'id': value['id'], 'name': value['name'], }; } diff --git a/vue3/src/openapi/models/GroupRequest.ts b/vue3/src/openapi/models/GroupRequest.ts index f6b538c64..c14fd7857 100644 --- a/vue3/src/openapi/models/GroupRequest.ts +++ b/vue3/src/openapi/models/GroupRequest.ts @@ -59,6 +59,12 @@ export interface GroupRequest { * @memberof GroupRequest */ name: string; + /** + * + * @type {number} + * @memberof GroupRequest + */ + id?: number; } /** @@ -80,6 +86,7 @@ export function GroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolea return { 'name': json['name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -90,6 +97,7 @@ export function GroupRequestToJSON(value?: GroupRequest | null): any { return { 'name': value['name'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/ImportLog.ts b/vue3/src/openapi/models/ImportLog.ts index a8ce45503..6857daf50 100644 --- a/vue3/src/openapi/models/ImportLog.ts +++ b/vue3/src/openapi/models/ImportLog.ts @@ -31,7 +31,7 @@ export interface ImportLog { * @type {number} * @memberof ImportLog */ - id?: number; + readonly id: number; /** * * @type {string} @@ -86,6 +86,7 @@ export interface ImportLog { * Check if a given object implements the ImportLog interface. */ export function instanceOfImportLog(value: object): boolean { + if (!('id' in value)) return false; if (!('type' in value)) return false; if (!('keyword' in value)) return false; if (!('createdBy' in value)) return false; @@ -103,7 +104,7 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'type': json['type'], 'msg': json['msg'] == null ? undefined : json['msg'], 'running': json['running'] == null ? undefined : json['running'], @@ -121,7 +122,6 @@ export function ImportLogToJSON(value?: ImportLog | null): any { } return { - 'id': value['id'], 'type': value['type'], 'msg': value['msg'], 'running': value['running'], diff --git a/vue3/src/openapi/models/ImportLogRequest.ts b/vue3/src/openapi/models/ImportLogRequest.ts index 717b7e0a7..209d2dc4b 100644 --- a/vue3/src/openapi/models/ImportLogRequest.ts +++ b/vue3/src/openapi/models/ImportLogRequest.ts @@ -49,6 +49,12 @@ export interface ImportLogRequest { * @memberof ImportLogRequest */ importedRecipes?: number; + /** + * + * @type {number} + * @memberof ImportLogRequest + */ + id?: number; } /** @@ -74,6 +80,7 @@ export function ImportLogRequestFromJSONTyped(json: any, ignoreDiscriminator: bo 'running': json['running'] == null ? undefined : json['running'], 'totalRecipes': json['total_recipes'] == null ? undefined : json['total_recipes'], 'importedRecipes': json['imported_recipes'] == null ? undefined : json['imported_recipes'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -88,6 +95,7 @@ export function ImportLogRequestToJSON(value?: ImportLogRequest | null): any { 'running': value['running'], 'total_recipes': value['totalRecipes'], 'imported_recipes': value['importedRecipes'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Ingredient.ts b/vue3/src/openapi/models/Ingredient.ts index aaa02d31c..64289f4d4 100644 --- a/vue3/src/openapi/models/Ingredient.ts +++ b/vue3/src/openapi/models/Ingredient.ts @@ -37,7 +37,7 @@ export interface Ingredient { * @type {number} * @memberof Ingredient */ - id?: number; + readonly id: number; /** * * @type {Food} @@ -116,6 +116,7 @@ export interface Ingredient { * Check if a given object implements the Ingredient interface. */ export function instanceOfIngredient(value: object): boolean { + if (!('id' in value)) return false; if (!('food' in value)) return false; if (!('unit' in value)) return false; if (!('amount' in value)) return false; @@ -134,7 +135,7 @@ export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'food': FoodFromJSON(json['food']), 'unit': UnitFromJSON(json['unit']), 'amount': json['amount'], @@ -156,7 +157,6 @@ export function IngredientToJSON(value?: Ingredient | null): any { } return { - 'id': value['id'], 'food': FoodToJSON(value['food']), 'unit': UnitToJSON(value['unit']), 'amount': value['amount'], diff --git a/vue3/src/openapi/models/IngredientRequest.ts b/vue3/src/openapi/models/IngredientRequest.ts index 892f0cec1..151545ae5 100644 --- a/vue3/src/openapi/models/IngredientRequest.ts +++ b/vue3/src/openapi/models/IngredientRequest.ts @@ -92,6 +92,12 @@ export interface IngredientRequest { * @memberof IngredientRequest */ alwaysUsePluralFood?: boolean; + /** + * + * @type {number} + * @memberof IngredientRequest + */ + id?: number; } /** @@ -124,6 +130,7 @@ export function IngredientRequestFromJSONTyped(json: any, ignoreDiscriminator: b 'originalText': json['original_text'] == null ? undefined : json['original_text'], 'alwaysUsePluralUnit': json['always_use_plural_unit'] == null ? undefined : json['always_use_plural_unit'], 'alwaysUsePluralFood': json['always_use_plural_food'] == null ? undefined : json['always_use_plural_food'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -143,6 +150,7 @@ export function IngredientRequestToJSON(value?: IngredientRequest | null): any { 'original_text': value['originalText'], 'always_use_plural_unit': value['alwaysUsePluralUnit'], 'always_use_plural_food': value['alwaysUsePluralFood'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/InviteLink.ts b/vue3/src/openapi/models/InviteLink.ts index 211cdf0fd..7a3fdbb8f 100644 --- a/vue3/src/openapi/models/InviteLink.ts +++ b/vue3/src/openapi/models/InviteLink.ts @@ -31,7 +31,7 @@ export interface InviteLink { * @type {number} * @memberof InviteLink */ - id?: number; + readonly id: number; /** * * @type {string} @@ -92,6 +92,7 @@ export interface InviteLink { * Check if a given object implements the InviteLink interface. */ export function instanceOfInviteLink(value: object): boolean { + if (!('id' in value)) return false; if (!('uuid' in value)) return false; if (!('group' in value)) return false; if (!('createdBy' in value)) return false; @@ -109,7 +110,7 @@ export function InviteLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'uuid': json['uuid'], 'email': json['email'] == null ? undefined : json['email'], 'group': GroupFromJSON(json['group']), @@ -128,7 +129,6 @@ export function InviteLinkToJSON(value?: InviteLink | null): any { } return { - 'id': value['id'], 'email': value['email'], 'group': GroupToJSON(value['group']), 'valid_until': value['validUntil'] == null ? undefined : ((value['validUntil']).toISOString().substring(0,10)), diff --git a/vue3/src/openapi/models/InviteLinkRequest.ts b/vue3/src/openapi/models/InviteLinkRequest.ts index 81ca3ee08..38dc30c84 100644 --- a/vue3/src/openapi/models/InviteLinkRequest.ts +++ b/vue3/src/openapi/models/InviteLinkRequest.ts @@ -62,6 +62,12 @@ export interface InviteLinkRequest { * @memberof InviteLinkRequest */ internalNote?: string; + /** + * + * @type {number} + * @memberof InviteLinkRequest + */ + id?: number; } /** @@ -88,6 +94,7 @@ export function InviteLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: b 'usedBy': json['used_by'] == null ? undefined : json['used_by'], 'reusable': json['reusable'] == null ? undefined : json['reusable'], 'internalNote': json['internal_note'] == null ? undefined : json['internal_note'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -103,6 +110,7 @@ export function InviteLinkRequestToJSON(value?: InviteLinkRequest | null): any { 'used_by': value['usedBy'], 'reusable': value['reusable'], 'internal_note': value['internalNote'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Keyword.ts b/vue3/src/openapi/models/Keyword.ts index 0f73bfc61..502711663 100644 --- a/vue3/src/openapi/models/Keyword.ts +++ b/vue3/src/openapi/models/Keyword.ts @@ -58,7 +58,7 @@ export interface Keyword { * @type {number} * @memberof Keyword */ - id?: number; + readonly id: number; /** * * @type {string} @@ -113,6 +113,7 @@ export interface Keyword { * Check if a given object implements the Keyword interface. */ export function instanceOfKeyword(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('label' in value)) return false; if (!('parent' in value)) return false; @@ -133,7 +134,7 @@ export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): K } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'label': json['label'], 'description': json['description'] == null ? undefined : json['description'], @@ -151,7 +152,6 @@ export function KeywordToJSON(value?: Keyword | null): any { } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], }; diff --git a/vue3/src/openapi/models/KeywordLabel.ts b/vue3/src/openapi/models/KeywordLabel.ts index 4da6a57d7..7b60a6cd9 100644 --- a/vue3/src/openapi/models/KeywordLabel.ts +++ b/vue3/src/openapi/models/KeywordLabel.ts @@ -24,7 +24,7 @@ export interface KeywordLabel { * @type {number} * @memberof KeywordLabel */ - id?: number; + readonly id: number; /** * * @type {string} @@ -37,6 +37,7 @@ export interface KeywordLabel { * Check if a given object implements the KeywordLabel interface. */ export function instanceOfKeywordLabel(value: object): boolean { + if (!('id' in value)) return false; if (!('label' in value)) return false; return true; } @@ -51,7 +52,7 @@ export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'label': json['label'], }; } @@ -62,7 +63,6 @@ export function KeywordLabelToJSON(value?: KeywordLabel | null): any { } return { - 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/KeywordRequest.ts b/vue3/src/openapi/models/KeywordRequest.ts index 8f6b7da1c..e42338630 100644 --- a/vue3/src/openapi/models/KeywordRequest.ts +++ b/vue3/src/openapi/models/KeywordRequest.ts @@ -65,6 +65,12 @@ export interface KeywordRequest { * @memberof KeywordRequest */ description?: string; + /** + * + * @type {number} + * @memberof KeywordRequest + */ + id?: number; } /** @@ -87,6 +93,7 @@ export function KeywordRequestFromJSONTyped(json: any, ignoreDiscriminator: bool 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -98,6 +105,7 @@ export function KeywordRequestToJSON(value?: KeywordRequest | null): any { 'name': value['name'], 'description': value['description'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/MealPlan.ts b/vue3/src/openapi/models/MealPlan.ts index d0ca2c991..0a64d8178 100644 --- a/vue3/src/openapi/models/MealPlan.ts +++ b/vue3/src/openapi/models/MealPlan.ts @@ -43,7 +43,7 @@ export interface MealPlan { * @type {number} * @memberof MealPlan */ - id?: number; + readonly id: number; /** * * @type {string} @@ -128,6 +128,7 @@ export interface MealPlan { * Check if a given object implements the MealPlan interface. */ export function instanceOfMealPlan(value: object): boolean { + if (!('id' in value)) return false; if (!('servings' in value)) return false; if (!('noteMarkdown' in value)) return false; if (!('fromDate' in value)) return false; @@ -149,7 +150,7 @@ export function MealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'title': json['title'] == null ? undefined : json['title'], 'recipe': json['recipe'] == null ? undefined : RecipeOverviewFromJSON(json['recipe']), 'servings': json['servings'], @@ -172,7 +173,6 @@ export function MealPlanToJSON(value?: MealPlan | null): any { } return { - 'id': value['id'], 'title': value['title'], 'recipe': RecipeOverviewToJSON(value['recipe']), 'servings': value['servings'], diff --git a/vue3/src/openapi/models/MealPlanRequest.ts b/vue3/src/openapi/models/MealPlanRequest.ts index 05fd25231..5b6e0511e 100644 --- a/vue3/src/openapi/models/MealPlanRequest.ts +++ b/vue3/src/openapi/models/MealPlanRequest.ts @@ -86,6 +86,12 @@ export interface MealPlanRequest { * @memberof MealPlanRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof MealPlanRequest + */ + id?: number; } /** @@ -116,6 +122,7 @@ export function MealPlanRequestFromJSONTyped(json: any, ignoreDiscriminator: boo 'toDate': json['to_date'] == null ? undefined : (new Date(json['to_date'])), 'mealType': MealTypeRequestFromJSON(json['meal_type']), 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -133,6 +140,7 @@ export function MealPlanRequestToJSON(value?: MealPlanRequest | null): any { 'to_date': value['toDate'] == null ? undefined : ((value['toDate']).toISOString().substring(0,10)), 'meal_type': MealTypeRequestToJSON(value['mealType']), 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/MealType.ts b/vue3/src/openapi/models/MealType.ts index f8580b778..59ed0853a 100644 --- a/vue3/src/openapi/models/MealType.ts +++ b/vue3/src/openapi/models/MealType.ts @@ -24,7 +24,7 @@ export interface MealType { * @type {number} * @memberof MealType */ - id?: number; + readonly id: number; /** * * @type {string} @@ -61,6 +61,7 @@ export interface MealType { * Check if a given object implements the MealType interface. */ export function instanceOfMealType(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('createdBy' in value)) return false; return true; @@ -76,7 +77,7 @@ export function MealTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'order': json['order'] == null ? undefined : json['order'], 'color': json['color'] == null ? undefined : json['color'], @@ -91,7 +92,6 @@ export function MealTypeToJSON(value?: MealType | null): any { } return { - 'id': value['id'], 'name': value['name'], 'order': value['order'], 'color': value['color'], diff --git a/vue3/src/openapi/models/MealTypeRequest.ts b/vue3/src/openapi/models/MealTypeRequest.ts index 7fd596192..f3ea0ea99 100644 --- a/vue3/src/openapi/models/MealTypeRequest.ts +++ b/vue3/src/openapi/models/MealTypeRequest.ts @@ -43,6 +43,12 @@ export interface MealTypeRequest { * @memberof MealTypeRequest */ _default?: boolean; + /** + * + * @type {number} + * @memberof MealTypeRequest + */ + id?: number; } /** @@ -67,6 +73,7 @@ export function MealTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boo 'order': json['order'] == null ? undefined : json['order'], 'color': json['color'] == null ? undefined : json['color'], '_default': json['default'] == null ? undefined : json['default'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -80,6 +87,7 @@ export function MealTypeRequestToJSON(value?: MealTypeRequest | null): any { 'order': value['order'], 'color': value['color'], 'default': value['_default'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/NutritionInformation.ts b/vue3/src/openapi/models/NutritionInformation.ts index d8a36d693..ccd7aecdf 100644 --- a/vue3/src/openapi/models/NutritionInformation.ts +++ b/vue3/src/openapi/models/NutritionInformation.ts @@ -24,7 +24,7 @@ export interface NutritionInformation { * @type {number} * @memberof NutritionInformation */ - id?: number; + readonly id: number; /** * * @type {string} @@ -61,6 +61,7 @@ export interface NutritionInformation { * Check if a given object implements the NutritionInformation interface. */ export function instanceOfNutritionInformation(value: object): boolean { + if (!('id' in value)) return false; if (!('carbohydrates' in value)) return false; if (!('fats' in value)) return false; if (!('proteins' in value)) return false; @@ -78,7 +79,7 @@ export function NutritionInformationFromJSONTyped(json: any, ignoreDiscriminator } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'carbohydrates': json['carbohydrates'], 'fats': json['fats'], 'proteins': json['proteins'], @@ -93,7 +94,6 @@ export function NutritionInformationToJSON(value?: NutritionInformation | null): } return { - 'id': value['id'], 'carbohydrates': value['carbohydrates'], 'fats': value['fats'], 'proteins': value['proteins'], diff --git a/vue3/src/openapi/models/NutritionInformationRequest.ts b/vue3/src/openapi/models/NutritionInformationRequest.ts index e479427f1..acb6e85bc 100644 --- a/vue3/src/openapi/models/NutritionInformationRequest.ts +++ b/vue3/src/openapi/models/NutritionInformationRequest.ts @@ -49,6 +49,12 @@ export interface NutritionInformationRequest { * @memberof NutritionInformationRequest */ source?: string; + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + id?: number; } /** @@ -77,6 +83,7 @@ export function NutritionInformationRequestFromJSONTyped(json: any, ignoreDiscri 'proteins': json['proteins'], 'calories': json['calories'], 'source': json['source'] == null ? undefined : json['source'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -91,6 +98,7 @@ export function NutritionInformationRequestToJSON(value?: NutritionInformationRe 'proteins': value['proteins'], 'calories': value['calories'], 'source': value['source'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataCategory.ts b/vue3/src/openapi/models/OpenDataCategory.ts index 5581f1b4e..a7d895e79 100644 --- a/vue3/src/openapi/models/OpenDataCategory.ts +++ b/vue3/src/openapi/models/OpenDataCategory.ts @@ -65,7 +65,7 @@ export interface OpenDataCategory { * @type {number} * @memberof OpenDataCategory */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -108,6 +108,7 @@ export interface OpenDataCategory { * Check if a given object implements the OpenDataCategory interface. */ export function instanceOfOpenDataCategory(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('name' in value)) return false; @@ -125,7 +126,7 @@ export function OpenDataCategoryFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'name': json['name'], @@ -141,7 +142,6 @@ export function OpenDataCategoryToJSON(value?: OpenDataCategory | null): any { } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'name': value['name'], diff --git a/vue3/src/openapi/models/OpenDataCategoryRequest.ts b/vue3/src/openapi/models/OpenDataCategoryRequest.ts index f9f5d681c..d632ff22c 100644 --- a/vue3/src/openapi/models/OpenDataCategoryRequest.ts +++ b/vue3/src/openapi/models/OpenDataCategoryRequest.ts @@ -90,6 +90,12 @@ export interface OpenDataCategoryRequest { * @memberof OpenDataCategoryRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataCategoryRequest + */ + id?: number; } /** @@ -117,6 +123,7 @@ export function OpenDataCategoryRequestFromJSONTyped(json: any, ignoreDiscrimina 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -131,6 +138,7 @@ export function OpenDataCategoryRequestToJSON(value?: OpenDataCategoryRequest | 'name': value['name'], 'description': value['description'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataConversion.ts b/vue3/src/openapi/models/OpenDataConversion.ts index a23d05513..fd733be1e 100644 --- a/vue3/src/openapi/models/OpenDataConversion.ts +++ b/vue3/src/openapi/models/OpenDataConversion.ts @@ -43,7 +43,7 @@ export interface OpenDataConversion { * @type {number} * @memberof OpenDataConversion */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -110,6 +110,7 @@ export interface OpenDataConversion { * Check if a given object implements the OpenDataConversion interface. */ export function instanceOfOpenDataConversion(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('food' in value)) return false; @@ -132,7 +133,7 @@ export function OpenDataConversionFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'food': OpenDataFoodFromJSON(json['food']), @@ -152,7 +153,6 @@ export function OpenDataConversionToJSON(value?: OpenDataConversion | null): any } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'food': OpenDataFoodToJSON(value['food']), diff --git a/vue3/src/openapi/models/OpenDataConversionRequest.ts b/vue3/src/openapi/models/OpenDataConversionRequest.ts index 8cd652f18..9c4914795 100644 --- a/vue3/src/openapi/models/OpenDataConversionRequest.ts +++ b/vue3/src/openapi/models/OpenDataConversionRequest.ts @@ -92,6 +92,12 @@ export interface OpenDataConversionRequest { * @memberof OpenDataConversionRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataConversionRequest + */ + id?: number; } /** @@ -128,6 +134,7 @@ export function OpenDataConversionRequestFromJSONTyped(json: any, ignoreDiscrimi 'convertedUnit': OpenDataUnitRequestFromJSON(json['converted_unit']), 'source': json['source'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -146,6 +153,7 @@ export function OpenDataConversionRequestToJSON(value?: OpenDataConversionReques 'converted_unit': OpenDataUnitRequestToJSON(value['convertedUnit']), 'source': value['source'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataFood.ts b/vue3/src/openapi/models/OpenDataFood.ts index ee9867559..80839db3e 100644 --- a/vue3/src/openapi/models/OpenDataFood.ts +++ b/vue3/src/openapi/models/OpenDataFood.ts @@ -83,7 +83,7 @@ export interface OpenDataFood { * @type {number} * @memberof OpenDataFood */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -186,6 +186,7 @@ export interface OpenDataFood { * Check if a given object implements the OpenDataFood interface. */ export function instanceOfOpenDataFood(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('name' in value)) return false; @@ -208,7 +209,7 @@ export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'name': json['name'], @@ -234,7 +235,6 @@ export function OpenDataFoodToJSON(value?: OpenDataFood | null): any { } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'name': value['name'], diff --git a/vue3/src/openapi/models/OpenDataFoodProperty.ts b/vue3/src/openapi/models/OpenDataFoodProperty.ts index 0f0fa88b1..17d43321a 100644 --- a/vue3/src/openapi/models/OpenDataFoodProperty.ts +++ b/vue3/src/openapi/models/OpenDataFoodProperty.ts @@ -31,7 +31,7 @@ export interface OpenDataFoodProperty { * @type {number} * @memberof OpenDataFoodProperty */ - id?: number; + readonly id: number; /** * * @type {OpenDataProperty} @@ -50,6 +50,7 @@ export interface OpenDataFoodProperty { * Check if a given object implements the OpenDataFoodProperty interface. */ export function instanceOfOpenDataFoodProperty(value: object): boolean { + if (!('id' in value)) return false; if (!('property' in value)) return false; if (!('propertyAmount' in value)) return false; return true; @@ -65,7 +66,7 @@ export function OpenDataFoodPropertyFromJSONTyped(json: any, ignoreDiscriminator } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'property': OpenDataPropertyFromJSON(json['property']), 'propertyAmount': json['property_amount'], }; @@ -77,7 +78,6 @@ export function OpenDataFoodPropertyToJSON(value?: OpenDataFoodProperty | null): } return { - 'id': value['id'], 'property': OpenDataPropertyToJSON(value['property']), 'property_amount': value['propertyAmount'], }; diff --git a/vue3/src/openapi/models/OpenDataFoodPropertyRequest.ts b/vue3/src/openapi/models/OpenDataFoodPropertyRequest.ts index fa0abd2eb..6b9d3ef68 100644 --- a/vue3/src/openapi/models/OpenDataFoodPropertyRequest.ts +++ b/vue3/src/openapi/models/OpenDataFoodPropertyRequest.ts @@ -38,6 +38,12 @@ export interface OpenDataFoodPropertyRequest { * @memberof OpenDataFoodPropertyRequest */ propertyAmount: string; + /** + * + * @type {number} + * @memberof OpenDataFoodPropertyRequest + */ + id?: number; } /** @@ -61,6 +67,7 @@ export function OpenDataFoodPropertyRequestFromJSONTyped(json: any, ignoreDiscri 'property': OpenDataPropertyRequestFromJSON(json['property']), 'propertyAmount': json['property_amount'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -72,6 +79,7 @@ export function OpenDataFoodPropertyRequestToJSON(value?: OpenDataFoodPropertyRe 'property': OpenDataPropertyRequestToJSON(value['property']), 'property_amount': value['propertyAmount'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataFoodRequest.ts b/vue3/src/openapi/models/OpenDataFoodRequest.ts index 444b0c24d..d79d067e9 100644 --- a/vue3/src/openapi/models/OpenDataFoodRequest.ts +++ b/vue3/src/openapi/models/OpenDataFoodRequest.ts @@ -168,6 +168,12 @@ export interface OpenDataFoodRequest { * @memberof OpenDataFoodRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataFoodRequest + */ + id?: number; } /** @@ -210,6 +216,7 @@ export function OpenDataFoodRequestFromJSONTyped(json: any, ignoreDiscriminator: 'propertiesSource': json['properties_source'] == null ? undefined : json['properties_source'], 'fdcId': json['fdc_id'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -234,6 +241,7 @@ export function OpenDataFoodRequestToJSON(value?: OpenDataFoodRequest | null): a 'properties_source': value['propertiesSource'], 'fdc_id': value['fdcId'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataProperty.ts b/vue3/src/openapi/models/OpenDataProperty.ts index 2ca4c430a..a21b8a48a 100644 --- a/vue3/src/openapi/models/OpenDataProperty.ts +++ b/vue3/src/openapi/models/OpenDataProperty.ts @@ -65,7 +65,7 @@ export interface OpenDataProperty { * @type {number} * @memberof OpenDataProperty */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -114,6 +114,7 @@ export interface OpenDataProperty { * Check if a given object implements the OpenDataProperty interface. */ export function instanceOfOpenDataProperty(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('name' in value)) return false; @@ -131,7 +132,7 @@ export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'name': json['name'], @@ -148,7 +149,6 @@ export function OpenDataPropertyToJSON(value?: OpenDataProperty | null): any { } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'name': value['name'], diff --git a/vue3/src/openapi/models/OpenDataPropertyRequest.ts b/vue3/src/openapi/models/OpenDataPropertyRequest.ts index 222e4c544..e5cbba7e5 100644 --- a/vue3/src/openapi/models/OpenDataPropertyRequest.ts +++ b/vue3/src/openapi/models/OpenDataPropertyRequest.ts @@ -96,6 +96,12 @@ export interface OpenDataPropertyRequest { * @memberof OpenDataPropertyRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataPropertyRequest + */ + id?: number; } /** @@ -124,6 +130,7 @@ export function OpenDataPropertyRequestFromJSONTyped(json: any, ignoreDiscrimina 'unit': json['unit'] == null ? undefined : json['unit'], 'fdcId': json['fdc_id'] == null ? undefined : json['fdc_id'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -139,6 +146,7 @@ export function OpenDataPropertyRequestToJSON(value?: OpenDataPropertyRequest | 'unit': value['unit'], 'fdc_id': value['fdcId'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataStore.ts b/vue3/src/openapi/models/OpenDataStore.ts index 137dde5f5..a6d8012fe 100644 --- a/vue3/src/openapi/models/OpenDataStore.ts +++ b/vue3/src/openapi/models/OpenDataStore.ts @@ -37,7 +37,7 @@ export interface OpenDataStore { * @type {number} * @memberof OpenDataStore */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -80,6 +80,7 @@ export interface OpenDataStore { * Check if a given object implements the OpenDataStore interface. */ export function instanceOfOpenDataStore(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('name' in value)) return false; @@ -98,7 +99,7 @@ export function OpenDataStoreFromJSONTyped(json: any, ignoreDiscriminator: boole } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'name': json['name'], @@ -114,7 +115,6 @@ export function OpenDataStoreToJSON(value?: OpenDataStore | null): any { } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'name': value['name'], diff --git a/vue3/src/openapi/models/OpenDataStoreCategory.ts b/vue3/src/openapi/models/OpenDataStoreCategory.ts index aa0140a35..2c8c2b3a3 100644 --- a/vue3/src/openapi/models/OpenDataStoreCategory.ts +++ b/vue3/src/openapi/models/OpenDataStoreCategory.ts @@ -31,7 +31,7 @@ export interface OpenDataStoreCategory { * @type {number} * @memberof OpenDataStoreCategory */ - id?: number; + readonly id: number; /** * * @type {OpenDataCategory} @@ -56,6 +56,7 @@ export interface OpenDataStoreCategory { * Check if a given object implements the OpenDataStoreCategory interface. */ export function instanceOfOpenDataStoreCategory(value: object): boolean { + if (!('id' in value)) return false; if (!('category' in value)) return false; if (!('store' in value)) return false; return true; @@ -71,7 +72,7 @@ export function OpenDataStoreCategoryFromJSONTyped(json: any, ignoreDiscriminato } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'category': OpenDataCategoryFromJSON(json['category']), 'store': json['store'], 'order': json['order'] == null ? undefined : json['order'], @@ -84,7 +85,6 @@ export function OpenDataStoreCategoryToJSON(value?: OpenDataStoreCategory | null } return { - 'id': value['id'], 'category': OpenDataCategoryToJSON(value['category']), 'store': value['store'], 'order': value['order'], diff --git a/vue3/src/openapi/models/OpenDataStoreCategoryRequest.ts b/vue3/src/openapi/models/OpenDataStoreCategoryRequest.ts index 6f7421471..b218a6e65 100644 --- a/vue3/src/openapi/models/OpenDataStoreCategoryRequest.ts +++ b/vue3/src/openapi/models/OpenDataStoreCategoryRequest.ts @@ -44,6 +44,12 @@ export interface OpenDataStoreCategoryRequest { * @memberof OpenDataStoreCategoryRequest */ order?: number; + /** + * + * @type {number} + * @memberof OpenDataStoreCategoryRequest + */ + id?: number; } /** @@ -68,6 +74,7 @@ export function OpenDataStoreCategoryRequestFromJSONTyped(json: any, ignoreDiscr 'category': OpenDataCategoryRequestFromJSON(json['category']), 'store': json['store'], 'order': json['order'] == null ? undefined : json['order'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -80,6 +87,7 @@ export function OpenDataStoreCategoryRequestToJSON(value?: OpenDataStoreCategory 'category': OpenDataCategoryRequestToJSON(value['category']), 'store': value['store'], 'order': value['order'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataStoreRequest.ts b/vue3/src/openapi/models/OpenDataStoreRequest.ts index b294a0aeb..3a586856f 100644 --- a/vue3/src/openapi/models/OpenDataStoreRequest.ts +++ b/vue3/src/openapi/models/OpenDataStoreRequest.ts @@ -62,6 +62,12 @@ export interface OpenDataStoreRequest { * @memberof OpenDataStoreRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataStoreRequest + */ + id?: number; } /** @@ -90,6 +96,7 @@ export function OpenDataStoreRequestFromJSONTyped(json: any, ignoreDiscriminator 'name': json['name'], 'categoryToStore': (json['category_to_store'] == null ? null : (json['category_to_store'] as Array).map(OpenDataStoreCategoryRequestFromJSON)), 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -104,6 +111,7 @@ export function OpenDataStoreRequestToJSON(value?: OpenDataStoreRequest | null): 'name': value['name'], 'category_to_store': (value['categoryToStore'] == null ? null : (value['categoryToStore'] as Array).map(OpenDataStoreCategoryRequestToJSON)), 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataUnit.ts b/vue3/src/openapi/models/OpenDataUnit.ts index 0dc70379d..b401cddb3 100644 --- a/vue3/src/openapi/models/OpenDataUnit.ts +++ b/vue3/src/openapi/models/OpenDataUnit.ts @@ -77,7 +77,7 @@ export interface OpenDataUnit { * @type {number} * @memberof OpenDataUnit */ - id?: number; + readonly id: number; /** * * @type {OpenDataVersion} @@ -132,6 +132,7 @@ export interface OpenDataUnit { * Check if a given object implements the OpenDataUnit interface. */ export function instanceOfOpenDataUnit(value: object): boolean { + if (!('id' in value)) return false; if (!('version' in value)) return false; if (!('slug' in value)) return false; if (!('name' in value)) return false; @@ -150,7 +151,7 @@ export function OpenDataUnitFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'version': OpenDataVersionFromJSON(json['version']), 'slug': json['slug'], 'name': json['name'], @@ -168,7 +169,6 @@ export function OpenDataUnitToJSON(value?: OpenDataUnit | null): any { } return { - 'id': value['id'], 'version': OpenDataVersionToJSON(value['version']), 'slug': value['slug'], 'name': value['name'], diff --git a/vue3/src/openapi/models/OpenDataUnitRequest.ts b/vue3/src/openapi/models/OpenDataUnitRequest.ts index 77328b057..86a463d20 100644 --- a/vue3/src/openapi/models/OpenDataUnitRequest.ts +++ b/vue3/src/openapi/models/OpenDataUnitRequest.ts @@ -114,6 +114,12 @@ export interface OpenDataUnitRequest { * @memberof OpenDataUnitRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataUnitRequest + */ + id?: number; } /** @@ -144,6 +150,7 @@ export function OpenDataUnitRequestFromJSONTyped(json: any, ignoreDiscriminator: 'baseUnit': json['base_unit'] == null ? undefined : BaseUnitEnumFromJSON(json['base_unit']), 'type': OpenDataUnitTypeEnumFromJSON(json['type']), 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -160,6 +167,7 @@ export function OpenDataUnitRequestToJSON(value?: OpenDataUnitRequest | null): a 'base_unit': BaseUnitEnumToJSON(value['baseUnit']), 'type': OpenDataUnitTypeEnumToJSON(value['type']), 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/OpenDataVersion.ts b/vue3/src/openapi/models/OpenDataVersion.ts index ec56a92bf..86939a6f2 100644 --- a/vue3/src/openapi/models/OpenDataVersion.ts +++ b/vue3/src/openapi/models/OpenDataVersion.ts @@ -58,7 +58,7 @@ export interface OpenDataVersion { * @type {number} * @memberof OpenDataVersion */ - id?: number; + readonly id: number; /** * * @type {string} @@ -83,6 +83,7 @@ export interface OpenDataVersion { * Check if a given object implements the OpenDataVersion interface. */ export function instanceOfOpenDataVersion(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('code' in value)) return false; return true; @@ -98,7 +99,7 @@ export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boo } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'code': json['code'], 'comment': json['comment'] == null ? undefined : json['comment'], @@ -111,7 +112,6 @@ export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any { } return { - 'id': value['id'], 'name': value['name'], 'code': value['code'], 'comment': value['comment'], diff --git a/vue3/src/openapi/models/OpenDataVersionRequest.ts b/vue3/src/openapi/models/OpenDataVersionRequest.ts index afa8ce6b0..fa49569f5 100644 --- a/vue3/src/openapi/models/OpenDataVersionRequest.ts +++ b/vue3/src/openapi/models/OpenDataVersionRequest.ts @@ -71,6 +71,12 @@ export interface OpenDataVersionRequest { * @memberof OpenDataVersionRequest */ comment?: string; + /** + * + * @type {number} + * @memberof OpenDataVersionRequest + */ + id?: number; } /** @@ -95,6 +101,7 @@ export function OpenDataVersionRequestFromJSONTyped(json: any, ignoreDiscriminat 'name': json['name'], 'code': json['code'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -107,6 +114,7 @@ export function OpenDataVersionRequestToJSON(value?: OpenDataVersionRequest | nu 'name': value['name'], 'code': value['code'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedAccessTokenRequest.ts b/vue3/src/openapi/models/PatchedAccessTokenRequest.ts index 6a3e0e7d4..b38546066 100644 --- a/vue3/src/openapi/models/PatchedAccessTokenRequest.ts +++ b/vue3/src/openapi/models/PatchedAccessTokenRequest.ts @@ -31,6 +31,12 @@ export interface PatchedAccessTokenRequest { * @memberof PatchedAccessTokenRequest */ scope?: string; + /** + * + * @type {number} + * @memberof PatchedAccessTokenRequest + */ + id?: number; } /** @@ -52,6 +58,7 @@ export function PatchedAccessTokenRequestFromJSONTyped(json: any, ignoreDiscrimi 'expires': json['expires'] == null ? undefined : (new Date(json['expires'])), 'scope': json['scope'] == null ? undefined : json['scope'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -63,6 +70,7 @@ export function PatchedAccessTokenRequestToJSON(value?: PatchedAccessTokenReques 'expires': value['expires'] == null ? undefined : ((value['expires']).toISOString()), 'scope': value['scope'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedAutomationRequest.ts b/vue3/src/openapi/models/PatchedAutomationRequest.ts index 358bbbb19..cdc30c4b1 100644 --- a/vue3/src/openapi/models/PatchedAutomationRequest.ts +++ b/vue3/src/openapi/models/PatchedAutomationRequest.ts @@ -74,6 +74,12 @@ export interface PatchedAutomationRequest { * @memberof PatchedAutomationRequest */ disabled?: boolean; + /** + * + * @type {number} + * @memberof PatchedAutomationRequest + */ + id?: number; } /** @@ -101,6 +107,7 @@ export function PatchedAutomationRequestFromJSONTyped(json: any, ignoreDiscrimin 'param3': json['param_3'] == null ? undefined : json['param_3'], 'order': json['order'] == null ? undefined : json['order'], 'disabled': json['disabled'] == null ? undefined : json['disabled'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -118,6 +125,7 @@ export function PatchedAutomationRequestToJSON(value?: PatchedAutomationRequest 'param_3': value['param3'], 'order': value['order'], 'disabled': value['disabled'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedBookmarkletImportRequest.ts b/vue3/src/openapi/models/PatchedBookmarkletImportRequest.ts index 3bd7e3f0c..7ec867be8 100644 --- a/vue3/src/openapi/models/PatchedBookmarkletImportRequest.ts +++ b/vue3/src/openapi/models/PatchedBookmarkletImportRequest.ts @@ -31,6 +31,12 @@ export interface PatchedBookmarkletImportRequest { * @memberof PatchedBookmarkletImportRequest */ html?: string; + /** + * + * @type {number} + * @memberof PatchedBookmarkletImportRequest + */ + id?: number; } /** @@ -52,6 +58,7 @@ export function PatchedBookmarkletImportRequestFromJSONTyped(json: any, ignoreDi 'url': json['url'] == null ? undefined : json['url'], 'html': json['html'] == null ? undefined : json['html'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -63,6 +70,7 @@ export function PatchedBookmarkletImportRequestToJSON(value?: PatchedBookmarklet 'url': value['url'], 'html': value['html'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedConnectorConfigConfigRequest.ts b/vue3/src/openapi/models/PatchedConnectorConfigConfigRequest.ts index 637ea168b..ce4651865 100644 --- a/vue3/src/openapi/models/PatchedConnectorConfigConfigRequest.ts +++ b/vue3/src/openapi/models/PatchedConnectorConfigConfigRequest.ts @@ -67,6 +67,12 @@ export interface PatchedConnectorConfigConfigRequest { * @memberof PatchedConnectorConfigConfigRequest */ onShoppingListEntryDeletedEnabled?: boolean; + /** + * + * @type {number} + * @memberof PatchedConnectorConfigConfigRequest + */ + id?: number; } /** @@ -94,6 +100,7 @@ export function PatchedConnectorConfigConfigRequestFromJSONTyped(json: any, igno 'onShoppingListEntryCreatedEnabled': json['on_shopping_list_entry_created_enabled'] == null ? undefined : json['on_shopping_list_entry_created_enabled'], 'onShoppingListEntryUpdatedEnabled': json['on_shopping_list_entry_updated_enabled'] == null ? undefined : json['on_shopping_list_entry_updated_enabled'], 'onShoppingListEntryDeletedEnabled': json['on_shopping_list_entry_deleted_enabled'] == null ? undefined : json['on_shopping_list_entry_deleted_enabled'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -111,6 +118,7 @@ export function PatchedConnectorConfigConfigRequestToJSON(value?: PatchedConnect 'on_shopping_list_entry_created_enabled': value['onShoppingListEntryCreatedEnabled'], 'on_shopping_list_entry_updated_enabled': value['onShoppingListEntryUpdatedEnabled'], 'on_shopping_list_entry_deleted_enabled': value['onShoppingListEntryDeletedEnabled'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedCookLogRequest.ts b/vue3/src/openapi/models/PatchedCookLogRequest.ts index 8e4201e51..3a885a8a7 100644 --- a/vue3/src/openapi/models/PatchedCookLogRequest.ts +++ b/vue3/src/openapi/models/PatchedCookLogRequest.ts @@ -49,6 +49,12 @@ export interface PatchedCookLogRequest { * @memberof PatchedCookLogRequest */ createdAt?: Date; + /** + * + * @type {number} + * @memberof PatchedCookLogRequest + */ + id?: number; } /** @@ -73,6 +79,7 @@ export function PatchedCookLogRequestFromJSONTyped(json: any, ignoreDiscriminato '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'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -87,6 +94,7 @@ export function PatchedCookLogRequestToJSON(value?: PatchedCookLogRequest | null 'rating': value['rating'], 'comment': value['comment'], 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedCustomFilterRequest.ts b/vue3/src/openapi/models/PatchedCustomFilterRequest.ts index e2857d312..adfd05d8c 100644 --- a/vue3/src/openapi/models/PatchedCustomFilterRequest.ts +++ b/vue3/src/openapi/models/PatchedCustomFilterRequest.ts @@ -44,6 +44,12 @@ export interface PatchedCustomFilterRequest { * @memberof PatchedCustomFilterRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof PatchedCustomFilterRequest + */ + id?: number; } /** @@ -66,6 +72,7 @@ export function PatchedCustomFilterRequestFromJSONTyped(json: any, ignoreDiscrim 'name': json['name'] == null ? undefined : json['name'], 'search': json['search'] == null ? undefined : json['search'], 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -78,6 +85,7 @@ export function PatchedCustomFilterRequestToJSON(value?: PatchedCustomFilterRequ 'name': value['name'], 'search': value['search'], 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedExportLogRequest.ts b/vue3/src/openapi/models/PatchedExportLogRequest.ts index 47c254580..ba032f216 100644 --- a/vue3/src/openapi/models/PatchedExportLogRequest.ts +++ b/vue3/src/openapi/models/PatchedExportLogRequest.ts @@ -61,6 +61,12 @@ export interface PatchedExportLogRequest { * @memberof PatchedExportLogRequest */ possiblyNotExpired?: boolean; + /** + * + * @type {number} + * @memberof PatchedExportLogRequest + */ + id?: number; } /** @@ -87,6 +93,7 @@ export function PatchedExportLogRequestFromJSONTyped(json: any, ignoreDiscrimina 'exportedRecipes': json['exported_recipes'] == null ? undefined : json['exported_recipes'], 'cacheDuration': json['cache_duration'] == null ? undefined : json['cache_duration'], 'possiblyNotExpired': json['possibly_not_expired'] == null ? undefined : json['possibly_not_expired'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -103,6 +110,7 @@ export function PatchedExportLogRequestToJSON(value?: PatchedExportLogRequest | 'exported_recipes': value['exportedRecipes'], 'cache_duration': value['cacheDuration'], 'possibly_not_expired': value['possiblyNotExpired'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedFoodRequest.ts b/vue3/src/openapi/models/PatchedFoodRequest.ts index 770f90d19..4b65f8973 100644 --- a/vue3/src/openapi/models/PatchedFoodRequest.ts +++ b/vue3/src/openapi/models/PatchedFoodRequest.ts @@ -198,6 +198,12 @@ export interface PatchedFoodRequest { * @memberof PatchedFoodRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof PatchedFoodRequest + */ + id?: number; } /** @@ -235,6 +241,7 @@ export function PatchedFoodRequestFromJSONTyped(json: any, ignoreDiscriminator: 'substituteChildren': json['substitute_children'] == null ? undefined : json['substitute_children'], 'childInheritFields': json['child_inherit_fields'] == null ? undefined : ((json['child_inherit_fields'] as Array).map(FoodInheritFieldRequestFromJSON)), 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -262,6 +269,7 @@ export function PatchedFoodRequestToJSON(value?: PatchedFoodRequest | null): any 'substitute_children': value['substituteChildren'], 'child_inherit_fields': value['childInheritFields'] == null ? undefined : ((value['childInheritFields'] as Array).map(FoodInheritFieldRequestToJSON)), 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedImportLogRequest.ts b/vue3/src/openapi/models/PatchedImportLogRequest.ts index f6a64aeeb..b855ffcbb 100644 --- a/vue3/src/openapi/models/PatchedImportLogRequest.ts +++ b/vue3/src/openapi/models/PatchedImportLogRequest.ts @@ -49,6 +49,12 @@ export interface PatchedImportLogRequest { * @memberof PatchedImportLogRequest */ importedRecipes?: number; + /** + * + * @type {number} + * @memberof PatchedImportLogRequest + */ + id?: number; } /** @@ -73,6 +79,7 @@ export function PatchedImportLogRequestFromJSONTyped(json: any, ignoreDiscrimina 'running': json['running'] == null ? undefined : json['running'], 'totalRecipes': json['total_recipes'] == null ? undefined : json['total_recipes'], 'importedRecipes': json['imported_recipes'] == null ? undefined : json['imported_recipes'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -87,6 +94,7 @@ export function PatchedImportLogRequestToJSON(value?: PatchedImportLogRequest | 'running': value['running'], 'total_recipes': value['totalRecipes'], 'imported_recipes': value['importedRecipes'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedIngredientRequest.ts b/vue3/src/openapi/models/PatchedIngredientRequest.ts index 762164a3b..116bb0810 100644 --- a/vue3/src/openapi/models/PatchedIngredientRequest.ts +++ b/vue3/src/openapi/models/PatchedIngredientRequest.ts @@ -92,6 +92,12 @@ export interface PatchedIngredientRequest { * @memberof PatchedIngredientRequest */ alwaysUsePluralFood?: boolean; + /** + * + * @type {number} + * @memberof PatchedIngredientRequest + */ + id?: number; } /** @@ -121,6 +127,7 @@ export function PatchedIngredientRequestFromJSONTyped(json: any, ignoreDiscrimin 'originalText': json['original_text'] == null ? undefined : json['original_text'], 'alwaysUsePluralUnit': json['always_use_plural_unit'] == null ? undefined : json['always_use_plural_unit'], 'alwaysUsePluralFood': json['always_use_plural_food'] == null ? undefined : json['always_use_plural_food'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -140,6 +147,7 @@ export function PatchedIngredientRequestToJSON(value?: PatchedIngredientRequest 'original_text': value['originalText'], 'always_use_plural_unit': value['alwaysUsePluralUnit'], 'always_use_plural_food': value['alwaysUsePluralFood'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedInviteLinkRequest.ts b/vue3/src/openapi/models/PatchedInviteLinkRequest.ts index a9514c936..52c4c69ea 100644 --- a/vue3/src/openapi/models/PatchedInviteLinkRequest.ts +++ b/vue3/src/openapi/models/PatchedInviteLinkRequest.ts @@ -62,6 +62,12 @@ export interface PatchedInviteLinkRequest { * @memberof PatchedInviteLinkRequest */ internalNote?: string; + /** + * + * @type {number} + * @memberof PatchedInviteLinkRequest + */ + id?: number; } /** @@ -87,6 +93,7 @@ export function PatchedInviteLinkRequestFromJSONTyped(json: any, ignoreDiscrimin 'usedBy': json['used_by'] == null ? undefined : json['used_by'], 'reusable': json['reusable'] == null ? undefined : json['reusable'], 'internalNote': json['internal_note'] == null ? undefined : json['internal_note'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -102,6 +109,7 @@ export function PatchedInviteLinkRequestToJSON(value?: PatchedInviteLinkRequest 'used_by': value['usedBy'], 'reusable': value['reusable'], 'internal_note': value['internalNote'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedKeywordRequest.ts b/vue3/src/openapi/models/PatchedKeywordRequest.ts index f6f181caf..c51edbd9c 100644 --- a/vue3/src/openapi/models/PatchedKeywordRequest.ts +++ b/vue3/src/openapi/models/PatchedKeywordRequest.ts @@ -65,6 +65,12 @@ export interface PatchedKeywordRequest { * @memberof PatchedKeywordRequest */ description?: string; + /** + * + * @type {number} + * @memberof PatchedKeywordRequest + */ + id?: number; } /** @@ -86,6 +92,7 @@ export function PatchedKeywordRequestFromJSONTyped(json: any, ignoreDiscriminato 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -97,6 +104,7 @@ export function PatchedKeywordRequestToJSON(value?: PatchedKeywordRequest | null 'name': value['name'], 'description': value['description'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedMealPlanRequest.ts b/vue3/src/openapi/models/PatchedMealPlanRequest.ts index dde8c8d28..146e3fb30 100644 --- a/vue3/src/openapi/models/PatchedMealPlanRequest.ts +++ b/vue3/src/openapi/models/PatchedMealPlanRequest.ts @@ -86,6 +86,12 @@ export interface PatchedMealPlanRequest { * @memberof PatchedMealPlanRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof PatchedMealPlanRequest + */ + id?: number; } /** @@ -113,6 +119,7 @@ export function PatchedMealPlanRequestFromJSONTyped(json: any, ignoreDiscriminat 'toDate': json['to_date'] == null ? undefined : (new Date(json['to_date'])), 'mealType': json['meal_type'] == null ? undefined : MealTypeRequestFromJSON(json['meal_type']), 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -130,6 +137,7 @@ export function PatchedMealPlanRequestToJSON(value?: PatchedMealPlanRequest | nu 'to_date': value['toDate'] == null ? undefined : ((value['toDate']).toISOString().substring(0,10)), 'meal_type': MealTypeRequestToJSON(value['mealType']), 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedMealTypeRequest.ts b/vue3/src/openapi/models/PatchedMealTypeRequest.ts index 8d0981534..70624d93b 100644 --- a/vue3/src/openapi/models/PatchedMealTypeRequest.ts +++ b/vue3/src/openapi/models/PatchedMealTypeRequest.ts @@ -43,6 +43,12 @@ export interface PatchedMealTypeRequest { * @memberof PatchedMealTypeRequest */ _default?: boolean; + /** + * + * @type {number} + * @memberof PatchedMealTypeRequest + */ + id?: number; } /** @@ -66,6 +72,7 @@ export function PatchedMealTypeRequestFromJSONTyped(json: any, ignoreDiscriminat 'order': json['order'] == null ? undefined : json['order'], 'color': json['color'] == null ? undefined : json['color'], '_default': json['default'] == null ? undefined : json['default'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -79,6 +86,7 @@ export function PatchedMealTypeRequestToJSON(value?: PatchedMealTypeRequest | nu 'order': value['order'], 'color': value['color'], 'default': value['_default'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataCategoryRequest.ts b/vue3/src/openapi/models/PatchedOpenDataCategoryRequest.ts index 6a09e958d..1d84c5a3d 100644 --- a/vue3/src/openapi/models/PatchedOpenDataCategoryRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataCategoryRequest.ts @@ -90,6 +90,12 @@ export interface PatchedOpenDataCategoryRequest { * @memberof PatchedOpenDataCategoryRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataCategoryRequest + */ + id?: number; } /** @@ -114,6 +120,7 @@ export function PatchedOpenDataCategoryRequestFromJSONTyped(json: any, ignoreDis 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -128,6 +135,7 @@ export function PatchedOpenDataCategoryRequestToJSON(value?: PatchedOpenDataCate 'name': value['name'], 'description': value['description'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataConversionRequest.ts b/vue3/src/openapi/models/PatchedOpenDataConversionRequest.ts index a54a62a21..2cc105ae3 100644 --- a/vue3/src/openapi/models/PatchedOpenDataConversionRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataConversionRequest.ts @@ -92,6 +92,12 @@ export interface PatchedOpenDataConversionRequest { * @memberof PatchedOpenDataConversionRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataConversionRequest + */ + id?: number; } /** @@ -120,6 +126,7 @@ export function PatchedOpenDataConversionRequestFromJSONTyped(json: any, ignoreD 'convertedUnit': json['converted_unit'] == null ? undefined : OpenDataUnitRequestFromJSON(json['converted_unit']), 'source': json['source'] == null ? undefined : json['source'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -138,6 +145,7 @@ export function PatchedOpenDataConversionRequestToJSON(value?: PatchedOpenDataCo 'converted_unit': OpenDataUnitRequestToJSON(value['convertedUnit']), 'source': value['source'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataFoodRequest.ts b/vue3/src/openapi/models/PatchedOpenDataFoodRequest.ts index dade5ba3b..484c82c76 100644 --- a/vue3/src/openapi/models/PatchedOpenDataFoodRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataFoodRequest.ts @@ -168,6 +168,12 @@ export interface PatchedOpenDataFoodRequest { * @memberof PatchedOpenDataFoodRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataFoodRequest + */ + id?: number; } /** @@ -202,6 +208,7 @@ export function PatchedOpenDataFoodRequestFromJSONTyped(json: any, ignoreDiscrim 'propertiesSource': json['properties_source'] == null ? undefined : json['properties_source'], 'fdcId': json['fdc_id'] == null ? undefined : json['fdc_id'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -226,6 +233,7 @@ export function PatchedOpenDataFoodRequestToJSON(value?: PatchedOpenDataFoodRequ 'properties_source': value['propertiesSource'], 'fdc_id': value['fdcId'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataPropertyRequest.ts b/vue3/src/openapi/models/PatchedOpenDataPropertyRequest.ts index a39800540..c806f0a4e 100644 --- a/vue3/src/openapi/models/PatchedOpenDataPropertyRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataPropertyRequest.ts @@ -96,6 +96,12 @@ export interface PatchedOpenDataPropertyRequest { * @memberof PatchedOpenDataPropertyRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataPropertyRequest + */ + id?: number; } /** @@ -121,6 +127,7 @@ export function PatchedOpenDataPropertyRequestFromJSONTyped(json: any, ignoreDis 'unit': json['unit'] == null ? undefined : json['unit'], 'fdcId': json['fdc_id'] == null ? undefined : json['fdc_id'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -136,6 +143,7 @@ export function PatchedOpenDataPropertyRequestToJSON(value?: PatchedOpenDataProp 'unit': value['unit'], 'fdc_id': value['fdcId'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataStoreRequest.ts b/vue3/src/openapi/models/PatchedOpenDataStoreRequest.ts index 2630bedc9..5ede50074 100644 --- a/vue3/src/openapi/models/PatchedOpenDataStoreRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataStoreRequest.ts @@ -62,6 +62,12 @@ export interface PatchedOpenDataStoreRequest { * @memberof PatchedOpenDataStoreRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataStoreRequest + */ + id?: number; } /** @@ -86,6 +92,7 @@ export function PatchedOpenDataStoreRequestFromJSONTyped(json: any, ignoreDiscri 'name': json['name'] == null ? undefined : json['name'], 'categoryToStore': json['category_to_store'] == null ? undefined : ((json['category_to_store'] as Array).map(OpenDataStoreCategoryRequestFromJSON)), 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -100,6 +107,7 @@ export function PatchedOpenDataStoreRequestToJSON(value?: PatchedOpenDataStoreRe 'name': value['name'], 'category_to_store': value['categoryToStore'] == null ? undefined : ((value['categoryToStore'] as Array).map(OpenDataStoreCategoryRequestToJSON)), 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataUnitRequest.ts b/vue3/src/openapi/models/PatchedOpenDataUnitRequest.ts index d001bcd8c..6dce5bdc3 100644 --- a/vue3/src/openapi/models/PatchedOpenDataUnitRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataUnitRequest.ts @@ -114,6 +114,12 @@ export interface PatchedOpenDataUnitRequest { * @memberof PatchedOpenDataUnitRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataUnitRequest + */ + id?: number; } /** @@ -140,6 +146,7 @@ export function PatchedOpenDataUnitRequestFromJSONTyped(json: any, ignoreDiscrim 'baseUnit': json['base_unit'] == null ? undefined : BaseUnitEnumFromJSON(json['base_unit']), 'type': json['type'] == null ? undefined : OpenDataUnitTypeEnumFromJSON(json['type']), 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -156,6 +163,7 @@ export function PatchedOpenDataUnitRequestToJSON(value?: PatchedOpenDataUnitRequ 'base_unit': BaseUnitEnumToJSON(value['baseUnit']), 'type': OpenDataUnitTypeEnumToJSON(value['type']), 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedOpenDataVersionRequest.ts b/vue3/src/openapi/models/PatchedOpenDataVersionRequest.ts index d66cdae37..42fdcb581 100644 --- a/vue3/src/openapi/models/PatchedOpenDataVersionRequest.ts +++ b/vue3/src/openapi/models/PatchedOpenDataVersionRequest.ts @@ -71,6 +71,12 @@ export interface PatchedOpenDataVersionRequest { * @memberof PatchedOpenDataVersionRequest */ comment?: string; + /** + * + * @type {number} + * @memberof PatchedOpenDataVersionRequest + */ + id?: number; } /** @@ -93,6 +99,7 @@ export function PatchedOpenDataVersionRequestFromJSONTyped(json: any, ignoreDisc 'name': json['name'] == null ? undefined : json['name'], 'code': json['code'] == null ? undefined : json['code'], 'comment': json['comment'] == null ? undefined : json['comment'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -105,6 +112,7 @@ export function PatchedOpenDataVersionRequestToJSON(value?: PatchedOpenDataVersi 'name': value['name'], 'code': value['code'], 'comment': value['comment'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedPropertyRequest.ts b/vue3/src/openapi/models/PatchedPropertyRequest.ts index 7fc1da1de..6aefe9e9d 100644 --- a/vue3/src/openapi/models/PatchedPropertyRequest.ts +++ b/vue3/src/openapi/models/PatchedPropertyRequest.ts @@ -72,6 +72,12 @@ export interface PatchedPropertyRequest { * @memberof PatchedPropertyRequest */ propertyType?: PropertyTypeRequest; + /** + * + * @type {number} + * @memberof PatchedPropertyRequest + */ + id?: number; } /** @@ -93,6 +99,7 @@ export function PatchedPropertyRequestFromJSONTyped(json: any, ignoreDiscriminat 'propertyAmount': json['property_amount'] == null ? undefined : json['property_amount'], 'propertyType': json['property_type'] == null ? undefined : PropertyTypeRequestFromJSON(json['property_type']), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -104,6 +111,7 @@ export function PatchedPropertyRequestToJSON(value?: PatchedPropertyRequest | nu 'property_amount': value['propertyAmount'], 'property_type': PropertyTypeRequestToJSON(value['propertyType']), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedRecipeBookEntryRequest.ts b/vue3/src/openapi/models/PatchedRecipeBookEntryRequest.ts index 8ef18a9ce..b8e39c6b7 100644 --- a/vue3/src/openapi/models/PatchedRecipeBookEntryRequest.ts +++ b/vue3/src/openapi/models/PatchedRecipeBookEntryRequest.ts @@ -31,6 +31,12 @@ export interface PatchedRecipeBookEntryRequest { * @memberof PatchedRecipeBookEntryRequest */ recipe?: number; + /** + * + * @type {number} + * @memberof PatchedRecipeBookEntryRequest + */ + id?: number; } /** @@ -52,6 +58,7 @@ export function PatchedRecipeBookEntryRequestFromJSONTyped(json: any, ignoreDisc 'book': json['book'] == null ? undefined : json['book'], 'recipe': json['recipe'] == null ? undefined : json['recipe'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -63,6 +70,7 @@ export function PatchedRecipeBookEntryRequestToJSON(value?: PatchedRecipeBookEnt 'book': value['book'], 'recipe': value['recipe'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedRecipeBookRequest.ts b/vue3/src/openapi/models/PatchedRecipeBookRequest.ts index 5afe354b5..d8bd51c3c 100644 --- a/vue3/src/openapi/models/PatchedRecipeBookRequest.ts +++ b/vue3/src/openapi/models/PatchedRecipeBookRequest.ts @@ -62,6 +62,12 @@ export interface PatchedRecipeBookRequest { * @memberof PatchedRecipeBookRequest */ order?: number; + /** + * + * @type {number} + * @memberof PatchedRecipeBookRequest + */ + id?: number; } /** @@ -86,6 +92,7 @@ export function PatchedRecipeBookRequestFromJSONTyped(json: any, ignoreDiscrimin 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), 'filter': json['filter'] == null ? undefined : CustomFilterRequestFromJSON(json['filter']), 'order': json['order'] == null ? undefined : json['order'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -100,6 +107,7 @@ export function PatchedRecipeBookRequestToJSON(value?: PatchedRecipeBookRequest 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), 'filter': CustomFilterRequestToJSON(value['filter']), 'order': value['order'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedRecipeRequest.ts b/vue3/src/openapi/models/PatchedRecipeRequest.ts index 8262a632b..98db0a94c 100644 --- a/vue3/src/openapi/models/PatchedRecipeRequest.ts +++ b/vue3/src/openapi/models/PatchedRecipeRequest.ts @@ -146,6 +146,12 @@ export interface PatchedRecipeRequest { * @memberof PatchedRecipeRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof PatchedRecipeRequest + */ + id?: number; } /** @@ -181,6 +187,7 @@ export function PatchedRecipeRequestFromJSONTyped(json: any, ignoreDiscriminator 'servingsText': json['servings_text'] == null ? undefined : json['servings_text'], '_private': json['private'] == null ? undefined : json['private'], 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -206,6 +213,7 @@ export function PatchedRecipeRequestToJSON(value?: PatchedRecipeRequest | null): 'servings_text': value['servingsText'], 'private': value['_private'], 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts b/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts index 7b18f8009..d212e4941 100644 --- a/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts +++ b/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts @@ -80,6 +80,12 @@ export interface PatchedShoppingListEntryRequest { * @memberof PatchedShoppingListEntryRequest */ delayUntil?: Date; + /** + * + * @type {number} + * @memberof PatchedShoppingListEntryRequest + */ + id?: number; } /** @@ -107,6 +113,7 @@ export function PatchedShoppingListEntryRequestFromJSONTyped(json: any, ignoreDi 'checked': json['checked'] == null ? undefined : json['checked'], 'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])), 'delayUntil': json['delay_until'] == null ? undefined : (new Date(json['delay_until'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -124,6 +131,7 @@ export function PatchedShoppingListEntryRequestToJSON(value?: PatchedShoppingLis 'checked': value['checked'], 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt'] as any).toISOString()), 'delay_until': value['delayUntil'] == null ? undefined : ((value['delayUntil'] as any).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts b/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts index 1add765c5..e8386b9ef 100644 --- a/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts +++ b/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts @@ -37,6 +37,12 @@ export interface PatchedShoppingListRecipeRequest { * @memberof PatchedShoppingListRecipeRequest */ servings?: string; + /** + * + * @type {number} + * @memberof PatchedShoppingListRecipeRequest + */ + id?: number; } /** @@ -59,6 +65,7 @@ export function PatchedShoppingListRecipeRequestFromJSONTyped(json: any, ignoreD 'recipe': json['recipe'] == null ? undefined : json['recipe'], 'mealplan': json['mealplan'] == null ? undefined : json['mealplan'], 'servings': json['servings'] == null ? undefined : json['servings'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -71,6 +78,7 @@ export function PatchedShoppingListRecipeRequestToJSON(value?: PatchedShoppingLi 'recipe': value['recipe'], 'mealplan': value['mealplan'], 'servings': value['servings'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedSpaceRequest.ts b/vue3/src/openapi/models/PatchedSpaceRequest.ts index d8f4935c3..fd6410905 100644 --- a/vue3/src/openapi/models/PatchedSpaceRequest.ts +++ b/vue3/src/openapi/models/PatchedSpaceRequest.ts @@ -140,6 +140,12 @@ export interface PatchedSpaceRequest { * @memberof PatchedSpaceRequest */ logoColorSvg?: UserFileViewRequest; + /** + * + * @type {number} + * @memberof PatchedSpaceRequest + */ + id?: number; } /** @@ -175,6 +181,7 @@ export function PatchedSpaceRequestFromJSONTyped(json: any, ignoreDiscriminator: 'logoColor192': json['logo_color_192'] == null ? undefined : UserFileViewRequestFromJSON(json['logo_color_192']), 'logoColor512': json['logo_color_512'] == null ? undefined : UserFileViewRequestFromJSON(json['logo_color_512']), 'logoColorSvg': json['logo_color_svg'] == null ? undefined : UserFileViewRequestFromJSON(json['logo_color_svg']), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -200,6 +207,7 @@ export function PatchedSpaceRequestToJSON(value?: PatchedSpaceRequest | null): a 'logo_color_192': UserFileViewRequestToJSON(value['logoColor192']), 'logo_color_512': UserFileViewRequestToJSON(value['logoColor512']), 'logo_color_svg': UserFileViewRequestToJSON(value['logoColorSvg']), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedStepRequest.ts b/vue3/src/openapi/models/PatchedStepRequest.ts index be4134d5e..9af5fd3f1 100644 --- a/vue3/src/openapi/models/PatchedStepRequest.ts +++ b/vue3/src/openapi/models/PatchedStepRequest.ts @@ -86,6 +86,12 @@ export interface PatchedStepRequest { * @memberof PatchedStepRequest */ showIngredientsTable?: boolean; + /** + * + * @type {number} + * @memberof PatchedStepRequest + */ + id?: number; } /** @@ -114,6 +120,7 @@ export function PatchedStepRequestFromJSONTyped(json: any, ignoreDiscriminator: 'file': json['file'] == null ? undefined : UserFileViewRequestFromJSON(json['file']), 'stepRecipe': json['step_recipe'] == null ? undefined : json['step_recipe'], 'showIngredientsTable': json['show_ingredients_table'] == null ? undefined : json['show_ingredients_table'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -132,6 +139,7 @@ export function PatchedStepRequestToJSON(value?: PatchedStepRequest | null): any 'file': UserFileViewRequestToJSON(value['file']), 'step_recipe': value['stepRecipe'], 'show_ingredients_table': value['showIngredientsTable'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedStorageRequest.ts b/vue3/src/openapi/models/PatchedStorageRequest.ts index 5c8cbf38a..bd9d55947 100644 --- a/vue3/src/openapi/models/PatchedStorageRequest.ts +++ b/vue3/src/openapi/models/PatchedStorageRequest.ts @@ -56,6 +56,12 @@ export interface PatchedStorageRequest { * @memberof PatchedStorageRequest */ token?: string; + /** + * + * @type {number} + * @memberof PatchedStorageRequest + */ + id?: number; } /** @@ -80,6 +86,7 @@ export function PatchedStorageRequestFromJSONTyped(json: any, ignoreDiscriminato 'username': json['username'] == null ? undefined : json['username'], 'password': json['password'] == null ? undefined : json['password'], 'token': json['token'] == null ? undefined : json['token'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -94,6 +101,7 @@ export function PatchedStorageRequestToJSON(value?: PatchedStorageRequest | null 'username': value['username'], 'password': value['password'], 'token': value['token'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedSupermarketCategoryRelationRequest.ts b/vue3/src/openapi/models/PatchedSupermarketCategoryRelationRequest.ts index 58875e139..a0fb4e6c9 100644 --- a/vue3/src/openapi/models/PatchedSupermarketCategoryRelationRequest.ts +++ b/vue3/src/openapi/models/PatchedSupermarketCategoryRelationRequest.ts @@ -44,6 +44,12 @@ export interface PatchedSupermarketCategoryRelationRequest { * @memberof PatchedSupermarketCategoryRelationRequest */ order?: number; + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRelationRequest + */ + id?: number; } /** @@ -66,6 +72,7 @@ export function PatchedSupermarketCategoryRelationRequestFromJSONTyped(json: any 'category': json['category'] == null ? undefined : SupermarketCategoryRequestFromJSON(json['category']), 'supermarket': json['supermarket'] == null ? undefined : json['supermarket'], 'order': json['order'] == null ? undefined : json['order'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -78,6 +85,7 @@ export function PatchedSupermarketCategoryRelationRequestToJSON(value?: PatchedS 'category': SupermarketCategoryRequestToJSON(value['category']), 'supermarket': value['supermarket'], 'order': value['order'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedSupermarketCategoryRequest.ts b/vue3/src/openapi/models/PatchedSupermarketCategoryRequest.ts index e86747150..ff02abfea 100644 --- a/vue3/src/openapi/models/PatchedSupermarketCategoryRequest.ts +++ b/vue3/src/openapi/models/PatchedSupermarketCategoryRequest.ts @@ -65,6 +65,12 @@ export interface PatchedSupermarketCategoryRequest { * @memberof PatchedSupermarketCategoryRequest */ description?: string; + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRequest + */ + id?: number; } /** @@ -86,6 +92,7 @@ export function PatchedSupermarketCategoryRequestFromJSONTyped(json: any, ignore 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -97,6 +104,7 @@ export function PatchedSupermarketCategoryRequestToJSON(value?: PatchedSupermark 'name': value['name'], 'description': value['description'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedSupermarketRequest.ts b/vue3/src/openapi/models/PatchedSupermarketRequest.ts index 0981c7496..fc3f0eaef 100644 --- a/vue3/src/openapi/models/PatchedSupermarketRequest.ts +++ b/vue3/src/openapi/models/PatchedSupermarketRequest.ts @@ -71,6 +71,12 @@ export interface PatchedSupermarketRequest { * @memberof PatchedSupermarketRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof PatchedSupermarketRequest + */ + id?: number; } /** @@ -93,6 +99,7 @@ export function PatchedSupermarketRequestFromJSONTyped(json: any, ignoreDiscrimi 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -105,6 +112,7 @@ export function PatchedSupermarketRequestToJSON(value?: PatchedSupermarketReques 'name': value['name'], 'description': value['description'], 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedSyncRequest.ts b/vue3/src/openapi/models/PatchedSyncRequest.ts index e2f1abfc4..06d972eec 100644 --- a/vue3/src/openapi/models/PatchedSyncRequest.ts +++ b/vue3/src/openapi/models/PatchedSyncRequest.ts @@ -43,6 +43,12 @@ export interface PatchedSyncRequest { * @memberof PatchedSyncRequest */ lastChecked?: Date; + /** + * + * @type {number} + * @memberof PatchedSyncRequest + */ + id?: number; } /** @@ -66,6 +72,7 @@ export function PatchedSyncRequestFromJSONTyped(json: any, ignoreDiscriminator: 'path': json['path'] == null ? undefined : json['path'], 'active': json['active'] == null ? undefined : json['active'], 'lastChecked': json['last_checked'] == null ? undefined : (new Date(json['last_checked'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -79,6 +86,7 @@ export function PatchedSyncRequestToJSON(value?: PatchedSyncRequest | null): any 'path': value['path'], 'active': value['active'], 'last_checked': value['lastChecked'] == null ? undefined : ((value['lastChecked'] as any).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedUnitConversionRequest.ts b/vue3/src/openapi/models/PatchedUnitConversionRequest.ts index 0929c86f0..bc4168c2e 100644 --- a/vue3/src/openapi/models/PatchedUnitConversionRequest.ts +++ b/vue3/src/openapi/models/PatchedUnitConversionRequest.ts @@ -68,6 +68,12 @@ export interface PatchedUnitConversionRequest { * @memberof PatchedUnitConversionRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof PatchedUnitConversionRequest + */ + id?: number; } /** @@ -93,6 +99,7 @@ export function PatchedUnitConversionRequestFromJSONTyped(json: any, ignoreDiscr 'convertedUnit': json['converted_unit'] == null ? undefined : UnitRequestFromJSON(json['converted_unit']), 'food': json['food'] == null ? undefined : FoodRequestFromJSON(json['food']), 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -108,6 +115,7 @@ export function PatchedUnitConversionRequestToJSON(value?: PatchedUnitConversion 'converted_unit': UnitRequestToJSON(value['convertedUnit']), 'food': FoodRequestToJSON(value['food']), 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedUnitRequest.ts b/vue3/src/openapi/models/PatchedUnitRequest.ts index 5ed3a7b73..850758e57 100644 --- a/vue3/src/openapi/models/PatchedUnitRequest.ts +++ b/vue3/src/openapi/models/PatchedUnitRequest.ts @@ -83,6 +83,12 @@ export interface PatchedUnitRequest { * @memberof PatchedUnitRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof PatchedUnitRequest + */ + id?: number; } /** @@ -107,6 +113,7 @@ export function PatchedUnitRequestFromJSONTyped(json: any, ignoreDiscriminator: 'description': json['description'] == null ? undefined : json['description'], 'baseUnit': json['base_unit'] == null ? undefined : json['base_unit'], 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -121,6 +128,7 @@ export function PatchedUnitRequestToJSON(value?: PatchedUnitRequest | null): any 'description': value['description'], 'base_unit': value['baseUnit'], 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedUserRequest.ts b/vue3/src/openapi/models/PatchedUserRequest.ts index 1b79bca10..56d1dd9f9 100644 --- a/vue3/src/openapi/models/PatchedUserRequest.ts +++ b/vue3/src/openapi/models/PatchedUserRequest.ts @@ -31,6 +31,12 @@ export interface PatchedUserRequest { * @memberof PatchedUserRequest */ lastName?: string; + /** + * + * @type {number} + * @memberof PatchedUserRequest + */ + id?: number; } /** @@ -52,6 +58,7 @@ export function PatchedUserRequestFromJSONTyped(json: any, ignoreDiscriminator: 'firstName': json['first_name'] == null ? undefined : json['first_name'], 'lastName': json['last_name'] == null ? undefined : json['last_name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -63,6 +70,7 @@ export function PatchedUserRequestToJSON(value?: PatchedUserRequest | null): any 'first_name': value['firstName'], 'last_name': value['lastName'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedUserSpaceRequest.ts b/vue3/src/openapi/models/PatchedUserSpaceRequest.ts index eec982502..5dc8f1d70 100644 --- a/vue3/src/openapi/models/PatchedUserSpaceRequest.ts +++ b/vue3/src/openapi/models/PatchedUserSpaceRequest.ts @@ -44,6 +44,12 @@ export interface PatchedUserSpaceRequest { * @memberof PatchedUserSpaceRequest */ internalNote?: string; + /** + * + * @type {number} + * @memberof PatchedUserSpaceRequest + */ + id?: number; } /** @@ -66,6 +72,7 @@ export function PatchedUserSpaceRequestFromJSONTyped(json: any, ignoreDiscrimina 'groups': json['groups'] == null ? undefined : ((json['groups'] as Array).map(GroupRequestFromJSON)), 'active': json['active'] == null ? undefined : json['active'], 'internalNote': json['internal_note'] == null ? undefined : json['internal_note'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -78,6 +85,7 @@ export function PatchedUserSpaceRequestToJSON(value?: PatchedUserSpaceRequest | 'groups': value['groups'] == null ? undefined : ((value['groups'] as Array).map(GroupRequestToJSON)), 'active': value['active'], 'internal_note': value['internalNote'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PatchedViewLogRequest.ts b/vue3/src/openapi/models/PatchedViewLogRequest.ts index 263b034ab..8af87424d 100644 --- a/vue3/src/openapi/models/PatchedViewLogRequest.ts +++ b/vue3/src/openapi/models/PatchedViewLogRequest.ts @@ -25,6 +25,12 @@ export interface PatchedViewLogRequest { * @memberof PatchedViewLogRequest */ recipe?: number; + /** + * + * @type {number} + * @memberof PatchedViewLogRequest + */ + id?: number; } /** @@ -45,6 +51,7 @@ export function PatchedViewLogRequestFromJSONTyped(json: any, ignoreDiscriminato return { 'recipe': json['recipe'] == null ? undefined : json['recipe'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -55,6 +62,7 @@ export function PatchedViewLogRequestToJSON(value?: PatchedViewLogRequest | null return { 'recipe': value['recipe'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Property.ts b/vue3/src/openapi/models/Property.ts index 9a99bb592..2dd050128 100644 --- a/vue3/src/openapi/models/Property.ts +++ b/vue3/src/openapi/models/Property.ts @@ -65,7 +65,7 @@ export interface Property { * @type {number} * @memberof Property */ - id?: number; + readonly id: number; /** * * @type {string} @@ -84,6 +84,7 @@ export interface Property { * Check if a given object implements the Property interface. */ export function instanceOfProperty(value: object): boolean { + if (!('id' in value)) return false; if (!('propertyAmount' in value)) return false; if (!('propertyType' in value)) return false; return true; @@ -99,7 +100,7 @@ export function PropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'propertyAmount': json['property_amount'], 'propertyType': PropertyTypeFromJSON(json['property_type']), }; @@ -111,7 +112,6 @@ export function PropertyToJSON(value?: Property | null): any { } return { - 'id': value['id'], 'property_amount': value['propertyAmount'], 'property_type': PropertyTypeToJSON(value['propertyType']), }; diff --git a/vue3/src/openapi/models/PropertyRequest.ts b/vue3/src/openapi/models/PropertyRequest.ts index 7ac5373b9..9f8655fa5 100644 --- a/vue3/src/openapi/models/PropertyRequest.ts +++ b/vue3/src/openapi/models/PropertyRequest.ts @@ -72,6 +72,12 @@ export interface PropertyRequest { * @memberof PropertyRequest */ propertyType: PropertyTypeRequest; + /** + * + * @type {number} + * @memberof PropertyRequest + */ + id?: number; } /** @@ -95,6 +101,7 @@ export function PropertyRequestFromJSONTyped(json: any, ignoreDiscriminator: boo 'propertyAmount': json['property_amount'], 'propertyType': PropertyTypeRequestFromJSON(json['property_type']), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -106,6 +113,7 @@ export function PropertyRequestToJSON(value?: PropertyRequest | null): any { 'property_amount': value['propertyAmount'], 'property_type': PropertyTypeRequestToJSON(value['propertyType']), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/PropertyType.ts b/vue3/src/openapi/models/PropertyType.ts index ee414c072..e9420f918 100644 --- a/vue3/src/openapi/models/PropertyType.ts +++ b/vue3/src/openapi/models/PropertyType.ts @@ -24,7 +24,7 @@ export interface PropertyType { * @type {number} * @memberof PropertyType */ - id?: number; + readonly id: number; /** * * @type {string} @@ -67,6 +67,7 @@ export interface PropertyType { * Check if a given object implements the PropertyType interface. */ export function instanceOfPropertyType(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -81,7 +82,7 @@ export function PropertyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'unit': json['unit'] == null ? undefined : json['unit'], 'description': json['description'] == null ? undefined : json['description'], @@ -97,7 +98,6 @@ export function PropertyTypeToJSON(value?: PropertyType | null): any { } return { - 'id': value['id'], 'name': value['name'], 'unit': value['unit'], 'description': value['description'], diff --git a/vue3/src/openapi/models/Recipe.ts b/vue3/src/openapi/models/Recipe.ts index f6d22ecea..208b60654 100644 --- a/vue3/src/openapi/models/Recipe.ts +++ b/vue3/src/openapi/models/Recipe.ts @@ -55,7 +55,7 @@ export interface Recipe { * @type {number} * @memberof Recipe */ - id?: number; + readonly id: number; /** * * @type {string} @@ -200,6 +200,7 @@ export interface Recipe { * Check if a given object implements the Recipe interface. */ export function instanceOfRecipe(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('image' in value)) return false; if (!('steps' in value)) return false; @@ -222,7 +223,7 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'image': json['image'], @@ -255,7 +256,6 @@ export function RecipeToJSON(value?: Recipe | null): any { } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], 'keywords': value['keywords'] == null ? undefined : ((value['keywords'] as Array).map(KeywordToJSON)), diff --git a/vue3/src/openapi/models/RecipeBook.ts b/vue3/src/openapi/models/RecipeBook.ts index 5475b1df5..ce33f841a 100644 --- a/vue3/src/openapi/models/RecipeBook.ts +++ b/vue3/src/openapi/models/RecipeBook.ts @@ -37,7 +37,7 @@ export interface RecipeBook { * @type {number} * @memberof RecipeBook */ - id?: number; + readonly id: number; /** * * @type {string} @@ -80,6 +80,7 @@ export interface RecipeBook { * Check if a given object implements the RecipeBook interface. */ export function instanceOfRecipeBook(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('shared' in value)) return false; if (!('createdBy' in value)) return false; @@ -96,7 +97,7 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'shared': ((json['shared'] as Array).map(UserFromJSON)), @@ -112,7 +113,6 @@ export function RecipeBookToJSON(value?: RecipeBook | null): any { } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], 'shared': ((value['shared'] as Array).map(UserToJSON)), diff --git a/vue3/src/openapi/models/RecipeBookEntry.ts b/vue3/src/openapi/models/RecipeBookEntry.ts index c028395fa..adfe16150 100644 --- a/vue3/src/openapi/models/RecipeBookEntry.ts +++ b/vue3/src/openapi/models/RecipeBookEntry.ts @@ -24,7 +24,7 @@ export interface RecipeBookEntry { * @type {number} * @memberof RecipeBookEntry */ - id?: number; + readonly id: number; /** * * @type {number} @@ -55,6 +55,7 @@ export interface RecipeBookEntry { * Check if a given object implements the RecipeBookEntry interface. */ export function instanceOfRecipeBookEntry(value: object): boolean { + if (!('id' in value)) return false; if (!('book' in value)) return false; if (!('bookContent' in value)) return false; if (!('recipe' in value)) return false; @@ -72,7 +73,7 @@ export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boo } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'book': json['book'], 'bookContent': json['book_content'], 'recipe': json['recipe'], @@ -86,7 +87,6 @@ export function RecipeBookEntryToJSON(value?: RecipeBookEntry | null): any { } return { - 'id': value['id'], 'book': value['book'], 'recipe': value['recipe'], }; diff --git a/vue3/src/openapi/models/RecipeBookEntryRequest.ts b/vue3/src/openapi/models/RecipeBookEntryRequest.ts index 966b31b25..6bc5f09dd 100644 --- a/vue3/src/openapi/models/RecipeBookEntryRequest.ts +++ b/vue3/src/openapi/models/RecipeBookEntryRequest.ts @@ -31,6 +31,12 @@ export interface RecipeBookEntryRequest { * @memberof RecipeBookEntryRequest */ recipe: number; + /** + * + * @type {number} + * @memberof RecipeBookEntryRequest + */ + id?: number; } /** @@ -54,6 +60,7 @@ export function RecipeBookEntryRequestFromJSONTyped(json: any, ignoreDiscriminat 'book': json['book'], 'recipe': json['recipe'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -65,6 +72,7 @@ export function RecipeBookEntryRequestToJSON(value?: RecipeBookEntryRequest | nu 'book': value['book'], 'recipe': value['recipe'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeBookRequest.ts b/vue3/src/openapi/models/RecipeBookRequest.ts index a01ced54f..afff2ff7a 100644 --- a/vue3/src/openapi/models/RecipeBookRequest.ts +++ b/vue3/src/openapi/models/RecipeBookRequest.ts @@ -62,6 +62,12 @@ export interface RecipeBookRequest { * @memberof RecipeBookRequest */ order?: number; + /** + * + * @type {number} + * @memberof RecipeBookRequest + */ + id?: number; } /** @@ -88,6 +94,7 @@ export function RecipeBookRequestFromJSONTyped(json: any, ignoreDiscriminator: b 'shared': ((json['shared'] as Array).map(UserRequestFromJSON)), 'filter': json['filter'] == null ? undefined : CustomFilterRequestFromJSON(json['filter']), 'order': json['order'] == null ? undefined : json['order'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -102,6 +109,7 @@ export function RecipeBookRequestToJSON(value?: RecipeBookRequest | null): any { 'shared': ((value['shared'] as Array).map(UserRequestToJSON)), 'filter': CustomFilterRequestToJSON(value['filter']), 'order': value['order'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeFlat.ts b/vue3/src/openapi/models/RecipeFlat.ts index a83b816b7..1350a473a 100644 --- a/vue3/src/openapi/models/RecipeFlat.ts +++ b/vue3/src/openapi/models/RecipeFlat.ts @@ -24,7 +24,7 @@ export interface RecipeFlat { * @type {number} * @memberof RecipeFlat */ - id?: number; + readonly id: number; /** * * @type {string} @@ -43,6 +43,7 @@ export interface RecipeFlat { * Check if a given object implements the RecipeFlat interface. */ export function instanceOfRecipeFlat(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -57,7 +58,7 @@ export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'image': json['image'] == null ? undefined : json['image'], }; @@ -69,7 +70,6 @@ export function RecipeFlatToJSON(value?: RecipeFlat | null): any { } return { - 'id': value['id'], 'name': value['name'], 'image': value['image'], }; diff --git a/vue3/src/openapi/models/RecipeOverview.ts b/vue3/src/openapi/models/RecipeOverview.ts index dba4cf9d9..c41c09ba9 100644 --- a/vue3/src/openapi/models/RecipeOverview.ts +++ b/vue3/src/openapi/models/RecipeOverview.ts @@ -31,7 +31,7 @@ export interface RecipeOverview { * @type {number} * @memberof RecipeOverview */ - id?: number; + readonly id: number; /** * * @type {string} @@ -134,6 +134,7 @@ export interface RecipeOverview { * Check if a given object implements the RecipeOverview interface. */ export function instanceOfRecipeOverview(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('image' in value)) return false; if (!('keywords' in value)) return false; @@ -162,7 +163,7 @@ export function RecipeOverviewFromJSONTyped(json: any, ignoreDiscriminator: bool } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'image': json['image'], @@ -188,7 +189,6 @@ export function RecipeOverviewToJSON(value?: RecipeOverview | null): any { } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], }; diff --git a/vue3/src/openapi/models/RecipeOverviewRequest.ts b/vue3/src/openapi/models/RecipeOverviewRequest.ts index 60f5bea77..a2889b921 100644 --- a/vue3/src/openapi/models/RecipeOverviewRequest.ts +++ b/vue3/src/openapi/models/RecipeOverviewRequest.ts @@ -31,6 +31,12 @@ export interface RecipeOverviewRequest { * @memberof RecipeOverviewRequest */ description?: string; + /** + * + * @type {number} + * @memberof RecipeOverviewRequest + */ + id?: number; } /** @@ -53,6 +59,7 @@ export function RecipeOverviewRequestFromJSONTyped(json: any, ignoreDiscriminato 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -64,6 +71,7 @@ export function RecipeOverviewRequestToJSON(value?: RecipeOverviewRequest | null 'name': value['name'], 'description': value['description'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeRequest.ts b/vue3/src/openapi/models/RecipeRequest.ts index dc6536936..c72a01e38 100644 --- a/vue3/src/openapi/models/RecipeRequest.ts +++ b/vue3/src/openapi/models/RecipeRequest.ts @@ -146,6 +146,12 @@ export interface RecipeRequest { * @memberof RecipeRequest */ shared?: Array; + /** + * + * @type {number} + * @memberof RecipeRequest + */ + id?: number; } /** @@ -183,6 +189,7 @@ export function RecipeRequestFromJSONTyped(json: any, ignoreDiscriminator: boole 'servingsText': json['servings_text'] == null ? undefined : json['servings_text'], '_private': json['private'] == null ? undefined : json['private'], 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -208,6 +215,7 @@ export function RecipeRequestToJSON(value?: RecipeRequest | null): any { 'servings_text': value['servingsText'], 'private': value['_private'], 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeShoppingUpdate.ts b/vue3/src/openapi/models/RecipeShoppingUpdate.ts index 73eb83d86..504070d7a 100644 --- a/vue3/src/openapi/models/RecipeShoppingUpdate.ts +++ b/vue3/src/openapi/models/RecipeShoppingUpdate.ts @@ -24,13 +24,14 @@ export interface RecipeShoppingUpdate { * @type {number} * @memberof RecipeShoppingUpdate */ - id?: number; + readonly id: number; } /** * Check if a given object implements the RecipeShoppingUpdate interface. */ export function instanceOfRecipeShoppingUpdate(value: object): boolean { + if (!('id' in value)) return false; return true; } @@ -44,7 +45,7 @@ export function RecipeShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], }; } @@ -54,7 +55,6 @@ export function RecipeShoppingUpdateToJSON(value?: RecipeShoppingUpdate | null): } return { - 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeShoppingUpdateRequest.ts b/vue3/src/openapi/models/RecipeShoppingUpdateRequest.ts index d8192e54c..2433ba8fc 100644 --- a/vue3/src/openapi/models/RecipeShoppingUpdateRequest.ts +++ b/vue3/src/openapi/models/RecipeShoppingUpdateRequest.ts @@ -37,6 +37,12 @@ export interface RecipeShoppingUpdateRequest { * @memberof RecipeShoppingUpdateRequest */ servings?: number; + /** + * + * @type {number} + * @memberof RecipeShoppingUpdateRequest + */ + id?: number; } /** @@ -59,6 +65,7 @@ export function RecipeShoppingUpdateRequestFromJSONTyped(json: any, ignoreDiscri 'listRecipe': json['list_recipe'] == null ? undefined : json['list_recipe'], 'ingredients': json['ingredients'] == null ? undefined : json['ingredients'], 'servings': json['servings'] == null ? undefined : json['servings'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -71,6 +78,7 @@ export function RecipeShoppingUpdateRequestToJSON(value?: RecipeShoppingUpdateRe 'list_recipe': value['listRecipe'], 'ingredients': value['ingredients'], 'servings': value['servings'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/RecipeSimple.ts b/vue3/src/openapi/models/RecipeSimple.ts index 85751ab94..df04ddf21 100644 --- a/vue3/src/openapi/models/RecipeSimple.ts +++ b/vue3/src/openapi/models/RecipeSimple.ts @@ -24,7 +24,7 @@ export interface RecipeSimple { * @type {number} * @memberof RecipeSimple */ - id?: number; + readonly id: number; /** * * @type {string} @@ -43,6 +43,7 @@ export interface RecipeSimple { * Check if a given object implements the RecipeSimple interface. */ export function instanceOfRecipeSimple(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('url' in value)) return false; return true; @@ -58,7 +59,7 @@ export function RecipeSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'url': json['url'], }; @@ -70,7 +71,6 @@ export function RecipeSimpleToJSON(value?: RecipeSimple | null): any { } return { - 'id': value['id'], 'name': value['name'], }; } diff --git a/vue3/src/openapi/models/RecipeSimpleRequest.ts b/vue3/src/openapi/models/RecipeSimpleRequest.ts index 85c8ae0b5..d6c6a2877 100644 --- a/vue3/src/openapi/models/RecipeSimpleRequest.ts +++ b/vue3/src/openapi/models/RecipeSimpleRequest.ts @@ -25,6 +25,12 @@ export interface RecipeSimpleRequest { * @memberof RecipeSimpleRequest */ name: string; + /** + * + * @type {number} + * @memberof RecipeSimpleRequest + */ + id?: number; } /** @@ -46,6 +52,7 @@ export function RecipeSimpleRequestFromJSONTyped(json: any, ignoreDiscriminator: return { 'name': json['name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -56,6 +63,7 @@ export function RecipeSimpleRequestToJSON(value?: RecipeSimpleRequest | null): a return { 'name': value['name'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/ShoppingListEntry.ts b/vue3/src/openapi/models/ShoppingListEntry.ts index 79f4612eb..30fd69eca 100644 --- a/vue3/src/openapi/models/ShoppingListEntry.ts +++ b/vue3/src/openapi/models/ShoppingListEntry.ts @@ -49,7 +49,7 @@ export interface ShoppingListEntry { * @type {number} * @memberof ShoppingListEntry */ - id?: number; + readonly id: number; /** * * @type {number} @@ -128,6 +128,7 @@ export interface ShoppingListEntry { * Check if a given object implements the ShoppingListEntry interface. */ export function instanceOfShoppingListEntry(value: object): boolean { + if (!('id' in value)) return false; if (!('food' in value)) return false; if (!('amount' in value)) return false; if (!('recipeMealplan' in value)) return false; @@ -147,7 +148,7 @@ export function ShoppingListEntryFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'listRecipe': json['list_recipe'] == null ? undefined : json['list_recipe'], 'food': FoodFromJSON(json['food']), 'unit': json['unit'] == null ? undefined : UnitFromJSON(json['unit']), @@ -169,7 +170,6 @@ export function ShoppingListEntryToJSON(value?: ShoppingListEntry | null): any { } return { - 'id': value['id'], 'list_recipe': value['listRecipe'], 'food': FoodToJSON(value['food']), 'unit': UnitToJSON(value['unit']), diff --git a/vue3/src/openapi/models/ShoppingListEntryRequest.ts b/vue3/src/openapi/models/ShoppingListEntryRequest.ts index c43412a1c..ee2989e45 100644 --- a/vue3/src/openapi/models/ShoppingListEntryRequest.ts +++ b/vue3/src/openapi/models/ShoppingListEntryRequest.ts @@ -80,6 +80,12 @@ export interface ShoppingListEntryRequest { * @memberof ShoppingListEntryRequest */ delayUntil?: Date; + /** + * + * @type {number} + * @memberof ShoppingListEntryRequest + */ + id?: number; } /** @@ -109,6 +115,7 @@ export function ShoppingListEntryRequestFromJSONTyped(json: any, ignoreDiscrimin 'checked': json['checked'] == null ? undefined : json['checked'], 'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])), 'delayUntil': json['delay_until'] == null ? undefined : (new Date(json['delay_until'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -126,6 +133,7 @@ export function ShoppingListEntryRequestToJSON(value?: ShoppingListEntryRequest 'checked': value['checked'], 'completed_at': value['completedAt'] == null ? undefined : ((value['completedAt'] as any).toISOString()), 'delay_until': value['delayUntil'] == null ? undefined : ((value['delayUntil'] as any).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/ShoppingListRecipe.ts b/vue3/src/openapi/models/ShoppingListRecipe.ts index 200724f0c..b183421c2 100644 --- a/vue3/src/openapi/models/ShoppingListRecipe.ts +++ b/vue3/src/openapi/models/ShoppingListRecipe.ts @@ -24,7 +24,7 @@ export interface ShoppingListRecipe { * @type {number} * @memberof ShoppingListRecipe */ - id?: number; + readonly id: number; /** * * @type {string} @@ -79,6 +79,7 @@ export interface ShoppingListRecipe { * Check if a given object implements the ShoppingListRecipe interface. */ export function instanceOfShoppingListRecipe(value: object): boolean { + if (!('id' in value)) return false; if (!('recipeName' in value)) return false; if (!('name' in value)) return false; if (!('servings' in value)) return false; @@ -98,7 +99,7 @@ export function ShoppingListRecipeFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'recipeName': json['recipe_name'], 'name': json['name'], 'recipe': json['recipe'] == null ? undefined : json['recipe'], @@ -116,7 +117,6 @@ export function ShoppingListRecipeToJSON(value?: ShoppingListRecipe | null): any } return { - 'id': value['id'], 'recipe': value['recipe'], 'mealplan': value['mealplan'], 'servings': value['servings'], diff --git a/vue3/src/openapi/models/ShoppingListRecipeRequest.ts b/vue3/src/openapi/models/ShoppingListRecipeRequest.ts index 884af9fe6..72e774d6d 100644 --- a/vue3/src/openapi/models/ShoppingListRecipeRequest.ts +++ b/vue3/src/openapi/models/ShoppingListRecipeRequest.ts @@ -37,6 +37,12 @@ export interface ShoppingListRecipeRequest { * @memberof ShoppingListRecipeRequest */ servings: string; + /** + * + * @type {number} + * @memberof ShoppingListRecipeRequest + */ + id?: number; } /** @@ -60,6 +66,7 @@ export function ShoppingListRecipeRequestFromJSONTyped(json: any, ignoreDiscrimi 'recipe': json['recipe'] == null ? undefined : json['recipe'], 'mealplan': json['mealplan'] == null ? undefined : json['mealplan'], 'servings': json['servings'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -72,6 +79,7 @@ export function ShoppingListRecipeRequestToJSON(value?: ShoppingListRecipeReques 'recipe': value['recipe'], 'mealplan': value['mealplan'], 'servings': value['servings'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Space.ts b/vue3/src/openapi/models/Space.ts index 4da0b8482..3e3a52934 100644 --- a/vue3/src/openapi/models/Space.ts +++ b/vue3/src/openapi/models/Space.ts @@ -49,7 +49,7 @@ export interface Space { * @type {number} * @memberof Space */ - id?: number; + readonly id: number; /** * * @type {string} @@ -212,6 +212,7 @@ export interface Space { * Check if a given object implements the Space interface. */ export function instanceOfSpace(value: object): boolean { + if (!('id' in value)) return false; if (!('createdBy' in value)) return false; if (!('createdAt' in value)) return false; if (!('maxRecipes' in value)) return false; @@ -236,7 +237,7 @@ export function SpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Spa } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], 'createdBy': json['created_by'], 'createdAt': (new Date(json['created_at'])), @@ -272,7 +273,6 @@ export function SpaceToJSON(value?: Space | null): any { } return { - 'id': value['id'], 'name': value['name'], 'message': value['message'], 'food_inherit': ((value['foodInherit'] as Array).map(FoodInheritFieldToJSON)), diff --git a/vue3/src/openapi/models/Step.ts b/vue3/src/openapi/models/Step.ts index dcc9867b8..dc220d91b 100644 --- a/vue3/src/openapi/models/Step.ts +++ b/vue3/src/openapi/models/Step.ts @@ -37,7 +37,7 @@ export interface Step { * @type {number} * @memberof Step */ - id?: number; + readonly id: number; /** * * @type {string} @@ -116,6 +116,7 @@ export interface Step { * Check if a given object implements the Step interface. */ export function instanceOfStep(value: object): boolean { + if (!('id' in value)) return false; if (!('ingredients' in value)) return false; if (!('instructionsMarkdown' in value)) return false; if (!('stepRecipeData' in value)) return false; @@ -133,7 +134,7 @@ export function StepFromJSONTyped(json: any, ignoreDiscriminator: boolean): Step } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'] == null ? undefined : json['name'], 'instruction': json['instruction'] == null ? undefined : json['instruction'], 'ingredients': ((json['ingredients'] as Array).map(IngredientFromJSON)), @@ -155,7 +156,6 @@ export function StepToJSON(value?: Step | null): any { } return { - 'id': value['id'], 'name': value['name'], 'instruction': value['instruction'], 'ingredients': ((value['ingredients'] as Array).map(IngredientToJSON)), diff --git a/vue3/src/openapi/models/StepRequest.ts b/vue3/src/openapi/models/StepRequest.ts index 57412a356..182b333d0 100644 --- a/vue3/src/openapi/models/StepRequest.ts +++ b/vue3/src/openapi/models/StepRequest.ts @@ -86,6 +86,12 @@ export interface StepRequest { * @memberof StepRequest */ showIngredientsTable?: boolean; + /** + * + * @type {number} + * @memberof StepRequest + */ + id?: number; } /** @@ -115,6 +121,7 @@ export function StepRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean 'file': json['file'] == null ? undefined : UserFileViewRequestFromJSON(json['file']), 'stepRecipe': json['step_recipe'] == null ? undefined : json['step_recipe'], 'showIngredientsTable': json['show_ingredients_table'] == null ? undefined : json['show_ingredients_table'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -133,6 +140,7 @@ export function StepRequestToJSON(value?: StepRequest | null): any { 'file': UserFileViewRequestToJSON(value['file']), 'step_recipe': value['stepRecipe'], 'show_ingredients_table': value['showIngredientsTable'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Storage.ts b/vue3/src/openapi/models/Storage.ts index f3b66e09b..6b2b53cfb 100644 --- a/vue3/src/openapi/models/Storage.ts +++ b/vue3/src/openapi/models/Storage.ts @@ -31,7 +31,7 @@ export interface Storage { * @type {number} * @memberof Storage */ - id?: number; + readonly id: number; /** * * @type {string} @@ -62,6 +62,7 @@ export interface Storage { * Check if a given object implements the Storage interface. */ export function instanceOfStorage(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('createdBy' in value)) return false; return true; @@ -77,7 +78,7 @@ export function StorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): S } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'method': json['method'] == null ? undefined : MethodEnumFromJSON(json['method']), 'username': json['username'] == null ? undefined : json['username'], @@ -91,7 +92,6 @@ export function StorageToJSON(value?: Storage | null): any { } return { - 'id': value['id'], 'name': value['name'], 'method': MethodEnumToJSON(value['method']), 'username': value['username'], diff --git a/vue3/src/openapi/models/StorageRequest.ts b/vue3/src/openapi/models/StorageRequest.ts index c2dbd236d..f08142f88 100644 --- a/vue3/src/openapi/models/StorageRequest.ts +++ b/vue3/src/openapi/models/StorageRequest.ts @@ -56,6 +56,12 @@ export interface StorageRequest { * @memberof StorageRequest */ token?: string; + /** + * + * @type {number} + * @memberof StorageRequest + */ + id?: number; } /** @@ -81,6 +87,7 @@ export function StorageRequestFromJSONTyped(json: any, ignoreDiscriminator: bool 'username': json['username'] == null ? undefined : json['username'], 'password': json['password'] == null ? undefined : json['password'], 'token': json['token'] == null ? undefined : json['token'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -95,6 +102,7 @@ export function StorageRequestToJSON(value?: StorageRequest | null): any { 'username': value['username'], 'password': value['password'], 'token': value['token'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Supermarket.ts b/vue3/src/openapi/models/Supermarket.ts index 37a979828..ffd645b35 100644 --- a/vue3/src/openapi/models/Supermarket.ts +++ b/vue3/src/openapi/models/Supermarket.ts @@ -65,7 +65,7 @@ export interface Supermarket { * @type {number} * @memberof Supermarket */ - id?: number; + readonly id: number; /** * * @type {string} @@ -96,6 +96,7 @@ export interface Supermarket { * Check if a given object implements the Supermarket interface. */ export function instanceOfSupermarket(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('categoryToSupermarket' in value)) return false; return true; @@ -111,7 +112,7 @@ export function SupermarketFromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'categoryToSupermarket': ((json['category_to_supermarket'] as Array).map(SupermarketCategoryRelationFromJSON)), @@ -125,7 +126,6 @@ export function SupermarketToJSON(value?: Supermarket | null): any { } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], 'open_data_slug': value['openDataSlug'], diff --git a/vue3/src/openapi/models/SupermarketCategory.ts b/vue3/src/openapi/models/SupermarketCategory.ts index 6593f0e3b..4f52afcf4 100644 --- a/vue3/src/openapi/models/SupermarketCategory.ts +++ b/vue3/src/openapi/models/SupermarketCategory.ts @@ -58,7 +58,7 @@ export interface SupermarketCategory { * @type {number} * @memberof SupermarketCategory */ - id?: number; + readonly id: number; /** * * @type {string} @@ -77,6 +77,7 @@ export interface SupermarketCategory { * Check if a given object implements the SupermarketCategory interface. */ export function instanceOfSupermarketCategory(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -91,7 +92,7 @@ export function SupermarketCategoryFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], }; @@ -103,7 +104,6 @@ export function SupermarketCategoryToJSON(value?: SupermarketCategory | null): a } return { - 'id': value['id'], 'name': value['name'], 'description': value['description'], }; diff --git a/vue3/src/openapi/models/SupermarketCategoryRelation.ts b/vue3/src/openapi/models/SupermarketCategoryRelation.ts index 1a9c23d9b..5d6fa22d3 100644 --- a/vue3/src/openapi/models/SupermarketCategoryRelation.ts +++ b/vue3/src/openapi/models/SupermarketCategoryRelation.ts @@ -31,7 +31,7 @@ export interface SupermarketCategoryRelation { * @type {number} * @memberof SupermarketCategoryRelation */ - id?: number; + readonly id: number; /** * * @type {SupermarketCategory} @@ -56,6 +56,7 @@ export interface SupermarketCategoryRelation { * Check if a given object implements the SupermarketCategoryRelation interface. */ export function instanceOfSupermarketCategoryRelation(value: object): boolean { + if (!('id' in value)) return false; if (!('category' in value)) return false; if (!('supermarket' in value)) return false; return true; @@ -71,7 +72,7 @@ export function SupermarketCategoryRelationFromJSONTyped(json: any, ignoreDiscri } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'category': SupermarketCategoryFromJSON(json['category']), 'supermarket': json['supermarket'], 'order': json['order'] == null ? undefined : json['order'], @@ -84,7 +85,6 @@ export function SupermarketCategoryRelationToJSON(value?: SupermarketCategoryRel } return { - 'id': value['id'], 'category': SupermarketCategoryToJSON(value['category']), 'supermarket': value['supermarket'], 'order': value['order'], diff --git a/vue3/src/openapi/models/SupermarketCategoryRelationRequest.ts b/vue3/src/openapi/models/SupermarketCategoryRelationRequest.ts index 5cfb0275c..f47f4a30b 100644 --- a/vue3/src/openapi/models/SupermarketCategoryRelationRequest.ts +++ b/vue3/src/openapi/models/SupermarketCategoryRelationRequest.ts @@ -44,6 +44,12 @@ export interface SupermarketCategoryRelationRequest { * @memberof SupermarketCategoryRelationRequest */ order?: number; + /** + * + * @type {number} + * @memberof SupermarketCategoryRelationRequest + */ + id?: number; } /** @@ -68,6 +74,7 @@ export function SupermarketCategoryRelationRequestFromJSONTyped(json: any, ignor 'category': SupermarketCategoryRequestFromJSON(json['category']), 'supermarket': json['supermarket'], 'order': json['order'] == null ? undefined : json['order'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -80,6 +87,7 @@ export function SupermarketCategoryRelationRequestToJSON(value?: SupermarketCate 'category': SupermarketCategoryRequestToJSON(value['category']), 'supermarket': value['supermarket'], 'order': value['order'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/SupermarketCategoryRequest.ts b/vue3/src/openapi/models/SupermarketCategoryRequest.ts index 26f4be76a..0e82e6dbc 100644 --- a/vue3/src/openapi/models/SupermarketCategoryRequest.ts +++ b/vue3/src/openapi/models/SupermarketCategoryRequest.ts @@ -65,6 +65,12 @@ export interface SupermarketCategoryRequest { * @memberof SupermarketCategoryRequest */ description?: string; + /** + * + * @type {number} + * @memberof SupermarketCategoryRequest + */ + id?: number; } /** @@ -87,6 +93,7 @@ export function SupermarketCategoryRequestFromJSONTyped(json: any, ignoreDiscrim 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -98,6 +105,7 @@ export function SupermarketCategoryRequestToJSON(value?: SupermarketCategoryRequ 'name': value['name'], 'description': value['description'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/SupermarketRequest.ts b/vue3/src/openapi/models/SupermarketRequest.ts index ea768374e..db3b08b2a 100644 --- a/vue3/src/openapi/models/SupermarketRequest.ts +++ b/vue3/src/openapi/models/SupermarketRequest.ts @@ -71,6 +71,12 @@ export interface SupermarketRequest { * @memberof SupermarketRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof SupermarketRequest + */ + id?: number; } /** @@ -94,6 +100,7 @@ export function SupermarketRequestFromJSONTyped(json: any, ignoreDiscriminator: 'name': json['name'], 'description': json['description'] == null ? undefined : json['description'], 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -106,6 +113,7 @@ export function SupermarketRequestToJSON(value?: SupermarketRequest | null): any 'name': value['name'], 'description': value['description'], 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Sync.ts b/vue3/src/openapi/models/Sync.ts index d6041b827..cca9506b1 100644 --- a/vue3/src/openapi/models/Sync.ts +++ b/vue3/src/openapi/models/Sync.ts @@ -24,7 +24,7 @@ export interface Sync { * @type {number} * @memberof Sync */ - id?: number; + readonly id: number; /** * * @type {number} @@ -67,6 +67,7 @@ export interface Sync { * Check if a given object implements the Sync interface. */ export function instanceOfSync(value: object): boolean { + if (!('id' in value)) return false; if (!('storage' in value)) return false; if (!('createdAt' in value)) return false; if (!('updatedAt' in value)) return false; @@ -83,7 +84,7 @@ export function SyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sync } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'storage': json['storage'], 'path': json['path'] == null ? undefined : json['path'], 'active': json['active'] == null ? undefined : json['active'], @@ -99,7 +100,6 @@ export function SyncToJSON(value?: Sync | null): any { } return { - 'id': value['id'], 'storage': value['storage'], 'path': value['path'], 'active': value['active'], diff --git a/vue3/src/openapi/models/SyncLog.ts b/vue3/src/openapi/models/SyncLog.ts index 69e31ee5e..b31a3d5f7 100644 --- a/vue3/src/openapi/models/SyncLog.ts +++ b/vue3/src/openapi/models/SyncLog.ts @@ -24,7 +24,7 @@ export interface SyncLog { * @type {number} * @memberof SyncLog */ - id?: number; + readonly id: number; /** * * @type {number} @@ -55,6 +55,7 @@ export interface SyncLog { * Check if a given object implements the SyncLog interface. */ export function instanceOfSyncLog(value: object): boolean { + if (!('id' in value)) return false; if (!('sync' in value)) return false; if (!('status' in value)) return false; if (!('createdAt' in value)) return false; @@ -71,7 +72,7 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'sync': json['sync'], 'status': json['status'], 'msg': json['msg'] == null ? undefined : json['msg'], @@ -85,7 +86,6 @@ export function SyncLogToJSON(value?: SyncLog | null): any { } return { - 'id': value['id'], 'sync': value['sync'], 'status': value['status'], 'msg': value['msg'], diff --git a/vue3/src/openapi/models/SyncRequest.ts b/vue3/src/openapi/models/SyncRequest.ts index 18d5b73a9..15607c282 100644 --- a/vue3/src/openapi/models/SyncRequest.ts +++ b/vue3/src/openapi/models/SyncRequest.ts @@ -43,6 +43,12 @@ export interface SyncRequest { * @memberof SyncRequest */ lastChecked?: Date; + /** + * + * @type {number} + * @memberof SyncRequest + */ + id?: number; } /** @@ -67,6 +73,7 @@ export function SyncRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean 'path': json['path'] == null ? undefined : json['path'], 'active': json['active'] == null ? undefined : json['active'], 'lastChecked': json['last_checked'] == null ? undefined : (new Date(json['last_checked'])), + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -80,6 +87,7 @@ export function SyncRequestToJSON(value?: SyncRequest | null): any { 'path': value['path'], 'active': value['active'], 'last_checked': value['lastChecked'] == null ? undefined : ((value['lastChecked'] as any).toISOString()), + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/Unit.ts b/vue3/src/openapi/models/Unit.ts index 62d800036..b402af9df 100644 --- a/vue3/src/openapi/models/Unit.ts +++ b/vue3/src/openapi/models/Unit.ts @@ -58,7 +58,7 @@ export interface Unit { * @type {number} * @memberof Unit */ - id?: number; + readonly id: number; /** * * @type {string} @@ -95,6 +95,7 @@ export interface Unit { * Check if a given object implements the Unit interface. */ export function instanceOfUnit(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; return true; } @@ -109,7 +110,7 @@ export function UnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): Unit } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'pluralName': json['plural_name'] == null ? undefined : json['plural_name'], 'description': json['description'] == null ? undefined : json['description'], @@ -124,7 +125,6 @@ export function UnitToJSON(value?: Unit | null): any { } return { - 'id': value['id'], 'name': value['name'], 'plural_name': value['pluralName'], 'description': value['description'], diff --git a/vue3/src/openapi/models/UnitConversion.ts b/vue3/src/openapi/models/UnitConversion.ts index 54c7ae1c8..c2e369462 100644 --- a/vue3/src/openapi/models/UnitConversion.ts +++ b/vue3/src/openapi/models/UnitConversion.ts @@ -37,7 +37,7 @@ export interface UnitConversion { * @type {number} * @memberof UnitConversion */ - id?: number; + readonly id: number; /** * * @type {string} @@ -86,6 +86,7 @@ export interface UnitConversion { * Check if a given object implements the UnitConversion interface. */ export function instanceOfUnitConversion(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('baseAmount' in value)) return false; if (!('baseUnit' in value)) return false; @@ -104,7 +105,7 @@ export function UnitConversionFromJSONTyped(json: any, ignoreDiscriminator: bool } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'baseAmount': json['base_amount'], 'baseUnit': UnitFromJSON(json['base_unit']), @@ -121,7 +122,6 @@ export function UnitConversionToJSON(value?: UnitConversion | null): any { } return { - 'id': value['id'], 'base_amount': value['baseAmount'], 'base_unit': UnitToJSON(value['baseUnit']), 'converted_amount': value['convertedAmount'], diff --git a/vue3/src/openapi/models/UnitConversionRequest.ts b/vue3/src/openapi/models/UnitConversionRequest.ts index 6d5b12833..2238a04a2 100644 --- a/vue3/src/openapi/models/UnitConversionRequest.ts +++ b/vue3/src/openapi/models/UnitConversionRequest.ts @@ -68,6 +68,12 @@ export interface UnitConversionRequest { * @memberof UnitConversionRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof UnitConversionRequest + */ + id?: number; } /** @@ -97,6 +103,7 @@ export function UnitConversionRequestFromJSONTyped(json: any, ignoreDiscriminato 'convertedUnit': UnitRequestFromJSON(json['converted_unit']), 'food': json['food'] == null ? undefined : FoodRequestFromJSON(json['food']), 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -112,6 +119,7 @@ export function UnitConversionRequestToJSON(value?: UnitConversionRequest | null 'converted_unit': UnitRequestToJSON(value['convertedUnit']), 'food': FoodRequestToJSON(value['food']), 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/UnitRequest.ts b/vue3/src/openapi/models/UnitRequest.ts index f48c0106d..63cb57bcf 100644 --- a/vue3/src/openapi/models/UnitRequest.ts +++ b/vue3/src/openapi/models/UnitRequest.ts @@ -83,6 +83,12 @@ export interface UnitRequest { * @memberof UnitRequest */ openDataSlug?: string; + /** + * + * @type {number} + * @memberof UnitRequest + */ + id?: number; } /** @@ -108,6 +114,7 @@ export function UnitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean 'description': json['description'] == null ? undefined : json['description'], 'baseUnit': json['base_unit'] == null ? undefined : json['base_unit'], 'openDataSlug': json['open_data_slug'] == null ? undefined : json['open_data_slug'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -122,6 +129,7 @@ export function UnitRequestToJSON(value?: UnitRequest | null): any { 'description': value['description'], 'base_unit': value['baseUnit'], 'open_data_slug': value['openDataSlug'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/User.ts b/vue3/src/openapi/models/User.ts index d1a2dfd7c..1929b4e64 100644 --- a/vue3/src/openapi/models/User.ts +++ b/vue3/src/openapi/models/User.ts @@ -24,7 +24,7 @@ export interface User { * @type {number} * @memberof User */ - id?: number; + readonly id: number; /** * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. * @type {string} @@ -55,6 +55,7 @@ export interface User { * Check if a given object implements the User interface. */ export function instanceOfUser(value: object): boolean { + if (!('id' in value)) return false; if (!('username' in value)) return false; if (!('displayName' in value)) return false; return true; @@ -70,7 +71,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'username': json['username'], 'firstName': json['first_name'] == null ? undefined : json['first_name'], 'lastName': json['last_name'] == null ? undefined : json['last_name'], @@ -84,7 +85,6 @@ export function UserToJSON(value?: User | null): any { } return { - 'id': value['id'], 'first_name': value['firstName'], 'last_name': value['lastName'], }; diff --git a/vue3/src/openapi/models/UserFile.ts b/vue3/src/openapi/models/UserFile.ts index 60489549c..410518575 100644 --- a/vue3/src/openapi/models/UserFile.ts +++ b/vue3/src/openapi/models/UserFile.ts @@ -24,7 +24,7 @@ export interface UserFile { * @type {number} * @memberof UserFile */ - id?: number; + readonly id: number; /** * * @type {string} @@ -55,6 +55,7 @@ export interface UserFile { * Check if a given object implements the UserFile interface. */ export function instanceOfUserFile(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('fileDownload' in value)) return false; if (!('preview' in value)) return false; @@ -72,7 +73,7 @@ export function UserFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'fileDownload': json['file_download'], 'preview': json['preview'], @@ -86,7 +87,6 @@ export function UserFileToJSON(value?: UserFile | null): any { } return { - 'id': value['id'], 'name': value['name'], }; } diff --git a/vue3/src/openapi/models/UserFileView.ts b/vue3/src/openapi/models/UserFileView.ts index 620dc4a2c..530a8e763 100644 --- a/vue3/src/openapi/models/UserFileView.ts +++ b/vue3/src/openapi/models/UserFileView.ts @@ -24,7 +24,7 @@ export interface UserFileView { * @type {number} * @memberof UserFileView */ - id?: number; + readonly id: number; /** * * @type {string} @@ -49,6 +49,7 @@ export interface UserFileView { * Check if a given object implements the UserFileView interface. */ export function instanceOfUserFileView(value: object): boolean { + if (!('id' in value)) return false; if (!('name' in value)) return false; if (!('fileDownload' in value)) return false; if (!('preview' in value)) return false; @@ -65,7 +66,7 @@ export function UserFileViewFromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'name': json['name'], 'fileDownload': json['file_download'], 'preview': json['preview'], @@ -78,7 +79,6 @@ export function UserFileViewToJSON(value?: UserFileView | null): any { } return { - 'id': value['id'], 'name': value['name'], }; } diff --git a/vue3/src/openapi/models/UserFileViewRequest.ts b/vue3/src/openapi/models/UserFileViewRequest.ts index 375cb966e..5456814c5 100644 --- a/vue3/src/openapi/models/UserFileViewRequest.ts +++ b/vue3/src/openapi/models/UserFileViewRequest.ts @@ -25,6 +25,12 @@ export interface UserFileViewRequest { * @memberof UserFileViewRequest */ name: string; + /** + * + * @type {number} + * @memberof UserFileViewRequest + */ + id?: number; } /** @@ -46,6 +52,7 @@ export function UserFileViewRequestFromJSONTyped(json: any, ignoreDiscriminator: return { 'name': json['name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -56,6 +63,7 @@ export function UserFileViewRequestToJSON(value?: UserFileViewRequest | null): a return { 'name': value['name'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/UserRequest.ts b/vue3/src/openapi/models/UserRequest.ts index 96f8fadbc..11d98d519 100644 --- a/vue3/src/openapi/models/UserRequest.ts +++ b/vue3/src/openapi/models/UserRequest.ts @@ -31,6 +31,12 @@ export interface UserRequest { * @memberof UserRequest */ lastName?: string; + /** + * + * @type {number} + * @memberof UserRequest + */ + id?: number; } /** @@ -52,6 +58,7 @@ export function UserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean 'firstName': json['first_name'] == null ? undefined : json['first_name'], 'lastName': json['last_name'] == null ? undefined : json['last_name'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -63,6 +70,7 @@ export function UserRequestToJSON(value?: UserRequest | null): any { 'first_name': value['firstName'], 'last_name': value['lastName'], + 'id': value['id'], }; } diff --git a/vue3/src/openapi/models/UserSpace.ts b/vue3/src/openapi/models/UserSpace.ts index d2e75b570..b6c627c8d 100644 --- a/vue3/src/openapi/models/UserSpace.ts +++ b/vue3/src/openapi/models/UserSpace.ts @@ -37,7 +37,7 @@ export interface UserSpace { * @type {number} * @memberof UserSpace */ - id?: number; + readonly id: number; /** * * @type {User} @@ -92,6 +92,7 @@ export interface UserSpace { * Check if a given object implements the UserSpace interface. */ export function instanceOfUserSpace(value: object): boolean { + if (!('id' in value)) return false; if (!('user' in value)) return false; if (!('space' in value)) return false; if (!('groups' in value)) return false; @@ -111,7 +112,7 @@ export function UserSpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'user': UserFromJSON(json['user']), 'space': json['space'], 'groups': ((json['groups'] as Array).map(GroupFromJSON)), @@ -129,7 +130,6 @@ export function UserSpaceToJSON(value?: UserSpace | null): any { } return { - 'id': value['id'], 'groups': ((value['groups'] as Array).map(GroupToJSON)), 'active': value['active'], 'internal_note': value['internalNote'], diff --git a/vue3/src/openapi/models/ViewLog.ts b/vue3/src/openapi/models/ViewLog.ts index 8f168353c..480063bda 100644 --- a/vue3/src/openapi/models/ViewLog.ts +++ b/vue3/src/openapi/models/ViewLog.ts @@ -24,7 +24,7 @@ export interface ViewLog { * @type {number} * @memberof ViewLog */ - id?: number; + readonly id: number; /** * * @type {number} @@ -49,6 +49,7 @@ export interface ViewLog { * Check if a given object implements the ViewLog interface. */ export function instanceOfViewLog(value: object): boolean { + if (!('id' in value)) return false; if (!('recipe' in value)) return false; if (!('createdBy' in value)) return false; if (!('createdAt' in value)) return false; @@ -65,7 +66,7 @@ export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): V } return { - 'id': json['id'] == null ? undefined : json['id'], + 'id': json['id'], 'recipe': json['recipe'], 'createdBy': json['created_by'], 'createdAt': (new Date(json['created_at'])), @@ -78,7 +79,6 @@ export function ViewLogToJSON(value?: ViewLog | null): any { } return { - 'id': value['id'], 'recipe': value['recipe'], }; } diff --git a/vue3/src/openapi/models/ViewLogRequest.ts b/vue3/src/openapi/models/ViewLogRequest.ts index 6b423d03b..3f5ba3cef 100644 --- a/vue3/src/openapi/models/ViewLogRequest.ts +++ b/vue3/src/openapi/models/ViewLogRequest.ts @@ -25,6 +25,12 @@ export interface ViewLogRequest { * @memberof ViewLogRequest */ recipe: number; + /** + * + * @type {number} + * @memberof ViewLogRequest + */ + id?: number; } /** @@ -46,6 +52,7 @@ export function ViewLogRequestFromJSONTyped(json: any, ignoreDiscriminator: bool return { 'recipe': json['recipe'], + 'id': json['id'] == null ? undefined : json['id'], }; } @@ -56,6 +63,7 @@ export function ViewLogRequestToJSON(value?: ViewLogRequest | null): any { return { 'recipe': value['recipe'], + 'id': value['id'], }; }