/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface SelectedRepository */ export interface SelectedRepository { /** * GitHub repository id. * @type {number} * @memberof SelectedRepository */ id?: number; /** * Internal repository id used when selecting repositories. * @type {string} * @memberof SelectedRepository */ databaseId?: string; /** * * @type {string} * @memberof SelectedRepository */ name?: string; /** * * @type {string} * @memberof SelectedRepository */ fullName?: string; /** * * @type {boolean} * @memberof SelectedRepository */ _private?: boolean; /** * * @type {string} * @memberof SelectedRepository */ permissions?: string; /** * * @type {Date} * @memberof SelectedRepository */ pushedAt?: Date; /** * * @type {string} * @memberof SelectedRepository */ baseBranch?: string; /** * * @type {string} * @memberof SelectedRepository */ setupRoutineId?: string | null; /** * * @type {string} * @memberof SelectedRepository */ setupScript?: string; /** * * @type {boolean} * @memberof SelectedRepository */ setupBlocking?: boolean; } /** * Check if a given object implements the SelectedRepository interface. */ export function instanceOfSelectedRepository(value: object): value is SelectedRepository { return true; } export function SelectedRepositoryFromJSON(json: any): SelectedRepository { return SelectedRepositoryFromJSONTyped(json, false); } export function SelectedRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectedRepository { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'databaseId': json['databaseId'] == null ? undefined : json['databaseId'], 'name': json['name'] == null ? undefined : json['name'], 'fullName': json['fullName'] == null ? undefined : json['fullName'], '_private': json['private'] == null ? undefined : json['private'], 'permissions': json['permissions'] == null ? undefined : json['permissions'], 'pushedAt': json['pushedAt'] == null ? undefined : (new Date(json['pushedAt'])), 'baseBranch': json['baseBranch'] == null ? undefined : json['baseBranch'], 'setupRoutineId': json['setupRoutineId'] == null ? undefined : json['setupRoutineId'], 'setupScript': json['setupScript'] == null ? undefined : json['setupScript'], 'setupBlocking': json['setupBlocking'] == null ? undefined : json['setupBlocking'], }; } export function SelectedRepositoryToJSON(json: any): SelectedRepository { return SelectedRepositoryToJSONTyped(json, false); } export function SelectedRepositoryToJSONTyped(value?: SelectedRepository | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'databaseId': value['databaseId'], 'name': value['name'], 'fullName': value['fullName'], 'private': value['_private'], 'permissions': value['permissions'], 'pushedAt': value['pushedAt'] == null ? value['pushedAt'] : value['pushedAt'].toISOString(), 'baseBranch': value['baseBranch'], 'setupRoutineId': value['setupRoutineId'], 'setupScript': value['setupScript'], 'setupBlocking': value['setupBlocking'], }; }