@aiozstream/nodejs-client
Version:
AIOZ stream nodejs API client
44 lines (43 loc) • 1.41 kB
TypeScript
/**
* @aiozstream/nodejs-client
* Aioz Stream Service
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated.
* Do not edit the class manually.
*/
export declare const COLLECTION_FORMATS: {
csv: string;
ssv: string;
tsv: string;
pipes: string;
};
export default class ObjectSerializer {
static findCorrectType(data: any, expectedType: string): string;
static serialize(data: any, type: string, format: string, defaultValue?: any): any;
static deserialize(data: any, type: string, format: string): any;
/**
* Normalize media type
*
* We currently do not handle any media types attributes, i.e. anything
* after a semicolon. All content is assumed to be UTF-8 compatible.
*/
static normalizeMediaType(mediaType: string | undefined): string | undefined;
/**
* From a list of possible media types, choose the one we can handle best.
*
* The order of the given media types does not have any impact on the choice
* made.
*/
static getPreferredMediaType(mediaTypes: Array<string>): string;
/**
* Convert data to a string according the given media type
*/
static stringify(data: any, mediaType: string): string;
/**
* Parse data from a string according to the given media type
*/
static parse(rawData: string, mediaType: string | undefined): any;
}