// tslint:disable /** * 3Di API * 3Di simulation API (latest stable version: v3) Framework release: 3.0.1 3Di core release: 2.3.0.dev0 deployed on: 10:42AM (UTC) on October 04, 2022 * * The version of the OpenAPI document: v3 * Contact: info@nelen-schuurmans.nl * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface Commit */ export interface Commit { /** * * @type {string} * @memberof Commit */ commitMessage?: string | null; /** * * @type {string} * @memberof Commit */ forceAs?: CommitForceAsEnum; /** * * @type {string} * @memberof Commit */ schematisationName?: string; /** * The datetime of the commit (only superusers can modify) * @type {Date} * @memberof Commit */ commitDate?: Date | null; /** * The username of a user * @type {string} * @memberof Commit */ commitUser?: string; /** * User that committed the revision on models.lizard.net (only superusers can modify) * @type {string} * @memberof Commit */ user?: string | null; } export function CommitFromJSON(json: any): Commit { return { 'commitMessage': !exists(json, 'commit_message') ? undefined : json['commit_message'], 'forceAs': !exists(json, 'force_as') ? undefined : json['force_as'], 'schematisationName': !exists(json, 'schematisation_name') ? undefined : json['schematisation_name'], 'commitDate': !exists(json, 'commit_date') ? undefined : new Date(json['commit_date']), 'commitUser': !exists(json, 'commit_user') ? undefined : json['commit_user'], 'user': !exists(json, 'user') ? undefined : json['user'], }; } export function CommitToJSON(value?: Commit): any { if (value === undefined) { return undefined; } return { 'commit_message': value.commitMessage, 'force_as': value.forceAs, 'schematisation_name': value.schematisationName, 'commit_date': value.commitDate === undefined ? undefined : value.commitDate.toISOString(), 'commit_user': value.commitUser, 'user': value.user, }; } /** * @export * @enum {string} */ export enum CommitForceAsEnum { Default = 'default', NewRevision = 'new_revision', NewSchematisation = 'new_schematisation' }