/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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'; import type { RootType } from './RootType'; import { RootTypeFromJSON, RootTypeFromJSONTyped, RootTypeToJSON, RootTypeToJSONTyped, } from './RootType'; /** * * @export * @interface ListResourceRootsTypesParameterInner */ export interface ListResourceRootsTypesParameterInner { /** * * @type {RootType} * @memberof ListResourceRootsTypesParameterInner */ 'type'?: RootType; /** * * @type {string} * @memberof ListResourceRootsTypesParameterInner */ 'subtype'?: ListResourceRootsTypesParameterInnerSubtypeEnum; } /** * @export */ export const ListResourceRootsTypesParameterInnerSubtypeEnum = { GoogleDrive: 'GOOGLE_DRIVE', Gmail: 'GMAIL', Github: 'GITHUB', IosDevice: 'IOS_DEVICE', AndroidDevice: 'ANDROID_DEVICE', Rss: 'RSS', Notion: 'NOTION', LocalFs: 'LOCAL_FS', Dropbox: 'DROPBOX', Onedrive: 'ONEDRIVE', Mixpanel: 'MIXPANEL', Stripe: 'STRIPE', Inbox: 'inbox', Bin: 'bin', Example: 'example' } as const; export type ListResourceRootsTypesParameterInnerSubtypeEnum = typeof ListResourceRootsTypesParameterInnerSubtypeEnum[keyof typeof ListResourceRootsTypesParameterInnerSubtypeEnum]; /** * Check if a given object implements the ListResourceRootsTypesParameterInner interface. */ export function instanceOfListResourceRootsTypesParameterInner(value: object): value is ListResourceRootsTypesParameterInner { return true; } export function ListResourceRootsTypesParameterInnerFromJSON(json: any): ListResourceRootsTypesParameterInner { return ListResourceRootsTypesParameterInnerFromJSONTyped(json, false); } export function ListResourceRootsTypesParameterInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResourceRootsTypesParameterInner { if (json == null) { return json; } const result = { } as ListResourceRootsTypesParameterInner; if (json['type'] !== undefined) { result['type'] = RootTypeFromJSON(json['type']); } if (json['subtype'] !== undefined) { result['subtype'] = json['subtype']; } return result; } export function ListResourceRootsTypesParameterInnerToJSON(json: any): ListResourceRootsTypesParameterInner { return ListResourceRootsTypesParameterInnerToJSONTyped(json, false); } export function ListResourceRootsTypesParameterInnerToJSONTyped(value?: ListResourceRootsTypesParameterInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'type': RootTypeToJSON(value['type']), 'subtype': value['subtype'], }; }