UNPKG

@cardscan.ai/cardscan-client

Version:

Typescript client for the CardScan API

70 lines (69 loc) 1.68 kB
/** * CardScan API * The official documentation for the CardScan API Clients. * * 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 { CardState } from './card-state'; import { WebsocketError } from './websocket-error'; import { KeysToCamelCase, KeysToSnakeCase } from "./"; /** * * @export * @interface CardWebsocketEvent */ export interface CardWebsocketEventOriginal { /** * * @type {string} * @memberof CardWebsocketEvent */ 'event_id': string; /** * * @type {string} * @memberof CardWebsocketEvent */ 'type': CardWebsocketEventTypeEnum; /** * * @type {string} * @memberof CardWebsocketEvent */ 'card_id': string; /** * * @type {CardState} * @memberof CardWebsocketEvent */ 'state': CardState; /** * * @type {string} * @memberof CardWebsocketEvent */ 'created_at': string; /** * * @type {string} * @memberof CardWebsocketEvent */ 'session_id'?: string; /** * * @type {WebsocketError} * @memberof CardWebsocketEvent */ 'error'?: WebsocketError; } export declare const CardWebsocketEventTypeEnum: { readonly Card: "card"; }; export type CardWebsocketEventTypeEnum = typeof CardWebsocketEventTypeEnum[keyof typeof CardWebsocketEventTypeEnum]; export type CardWebsocketEvent = KeysToCamelCase<CardWebsocketEventOriginal>; export type CardWebsocketEventSnake = KeysToSnakeCase<CardWebsocketEventOriginal>;