/* tslint:disable */ /* eslint-disable */ /** * authentik Blueprint Registry * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface BlueprintVersion */ export interface BlueprintVersion { /** * * @type {number} * @memberof BlueprintVersion */ readonly id: number; /** * * @type {number} * @memberof BlueprintVersion */ blueprint: number; /** * * @type {number} * @memberof BlueprintVersion */ version: number; /** * * @type {string} * @memberof BlueprintVersion */ description?: string; /** * * @type {string} * @memberof BlueprintVersion */ changelog?: string; /** * * @type {string} * @memberof BlueprintVersion */ definition: string; /** * * @type {Date} * @memberof BlueprintVersion */ readonly createdAt: Date; /** * * @type {Array} * @memberof BlueprintVersion */ compatibleAuthentikVersions?: Array; } /** * Check if a given object implements the BlueprintVersion interface. */ export function instanceOfBlueprintVersion(value: object): value is BlueprintVersion { if (!('id' in value) || value['id'] === undefined) return false; if (!('blueprint' in value) || value['blueprint'] === undefined) return false; if (!('version' in value) || value['version'] === undefined) return false; if (!('definition' in value) || value['definition'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; return true; } export function BlueprintVersionFromJSON(json: any): BlueprintVersion { return BlueprintVersionFromJSONTyped(json, false); } export function BlueprintVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintVersion { if (json == null) { return json; } return { 'id': json['id'], 'blueprint': json['blueprint'], 'version': json['version'], 'description': json['description'] == null ? undefined : json['description'], 'changelog': json['changelog'] == null ? undefined : json['changelog'], 'definition': json['definition'], 'createdAt': (new Date(json['created_at'])), 'compatibleAuthentikVersions': json['compatible_authentik_versions'] == null ? undefined : json['compatible_authentik_versions'], }; } export function BlueprintVersionToJSON(json: any): BlueprintVersion { return BlueprintVersionToJSONTyped(json, false); } export function BlueprintVersionToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'blueprint': value['blueprint'], 'version': value['version'], 'description': value['description'], 'changelog': value['changelog'], 'definition': value['definition'], 'compatible_authentik_versions': value['compatibleAuthentikVersions'], }; }