/* tslint:disable */ /* eslint-disable */ /** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * 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'; import type { InviteStatusAccepted } from './InviteStatusAccepted'; import { InviteStatusAcceptedFromJSON, InviteStatusAcceptedFromJSONTyped, InviteStatusAcceptedToJSON, } from './InviteStatusAccepted'; import type { InviteStatusPending } from './InviteStatusPending'; import { InviteStatusPendingFromJSON, InviteStatusPendingFromJSONTyped, InviteStatusPendingToJSON, } from './InviteStatusPending'; import type { InviteStatusRejected } from './InviteStatusRejected'; import { InviteStatusRejectedFromJSON, InviteStatusRejectedFromJSONTyped, InviteStatusRejectedToJSON, } from './InviteStatusRejected'; import type { InviteStatusRescinded } from './InviteStatusRescinded'; import { InviteStatusRescindedFromJSON, InviteStatusRescindedFromJSONTyped, InviteStatusRescindedToJSON, } from './InviteStatusRescinded'; /** * * @export * @interface OrganizationInviteStatus */ export interface OrganizationInviteStatus { /** * * @type {string} * @memberof OrganizationInviteStatus */ type: OrganizationInviteStatusTypeEnum; /** * System generated unique identifier for a user. Not guaranteed to have a specific format. * @type {string} * @memberof OrganizationInviteStatus */ userId: string; /** * System generated unique identifier for a user. Not guaranteed to have a specific format. * @type {string} * @memberof OrganizationInviteStatus */ rescindedBy: string; } /** * @export */ export const OrganizationInviteStatusTypeEnum = { Rescinded: 'rescinded' } as const; export type OrganizationInviteStatusTypeEnum = typeof OrganizationInviteStatusTypeEnum[keyof typeof OrganizationInviteStatusTypeEnum]; /** * Check if a given object implements the OrganizationInviteStatus interface. */ export function instanceOfOrganizationInviteStatus(value: object): boolean { let isInstance = true; isInstance = isInstance && "type" in value; isInstance = isInstance && "userId" in value; isInstance = isInstance && "rescindedBy" in value; return isInstance; } export function OrganizationInviteStatusFromJSON(json: any): OrganizationInviteStatus { return OrganizationInviteStatusFromJSONTyped(json, false); } export function OrganizationInviteStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationInviteStatus { if ((json === undefined) || (json === null)) { return json; } return { 'type': json['type'], 'userId': json['userId'], 'rescindedBy': json['rescindedBy'], }; } export function OrganizationInviteStatusToJSON(value?: OrganizationInviteStatus | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': value.type, 'userId': value.userId, 'rescindedBy': value.rescindedBy, }; }