Methods
deleteEntry
- deleteEntry<ID, T, R>(stream: ID, entry: string | number, config?: RequestConfig<any>): Promise<Response<R, any>>
Type parameters
ID: string | number
T = any
R = boolean
Parameters
stream: ID
entry: string | number
Returns Promise<Response<R, any>>
deleteStream
Parameters
Returns Promise<Response<boolean, any>>
getEntries
Type parameters
ID: string | number
R = ApiDataResponse<T[], "entries", "list", Partial<Record<"stream" | "self" | "first_page" | "next_page" | "previous_page", string>>, any, ApiMeta<"list", any>>
Parameters
stream: ID
params: any = {}
Returns Promise<Response<R, any>>
getEntry
- getEntry<ID, T, R>(stream: ID, entry: string | number, config?: RequestConfig<any>): Promise<Response<R, any>>
Type parameters
ID: string | number
R = ApiDataResponse<T, "entries", "get", Partial<Record<"stream" | "entries" | "self", string>>, any, ApiMeta<"get", any>>
Parameters
stream: ID
entry: string | number
Returns Promise<Response<R, any>>
getStream
Type parameters
ID: string | number
R = ApiDataResponse<IStream<ID>, "streams", "get", Partial<Record<"stream" | "entries" | "self", string>>, any, ApiMeta<"get", any>>
Parameters
stream: ID
params: any = {}
Returns Promise<Response<R, any>>
getStreams
Type parameters
R = ApiDataResponse<T, "streams", "list", Partial<Record<"stream" | "self" | "first_page" | "next_page" | "previous_page", string>>, any, ApiMeta<"list", any>>
Parameters
Returns Promise<Response<R, any>>
patchEntry
- patchEntry<ID, T, R>(stream: ID, entry: string | number, data?: any, config?: RequestConfig<any>): Promise<Response<R, any>>
Type parameters
ID: string | number
R = ApiDataResponse<T, "entries", "patch", Partial<Record<"stream" | "entries" | "self" | "streams", string>>, any, ApiMeta<"patch", any>>
Parameters
stream: ID
entry: string | number
data: any = {}
Returns Promise<Response<R, any>>
patchStream
Type parameters
ID: string | number
R = ApiDataResponse<IStream<ID>, "streams", "patch", Partial<Record<"stream" | "entries" | "self" | "streams", string>>, any, ApiMeta<"patch", any>>
Parameters
Returns Promise<Response<R, any>>
postEntry
Type parameters
ID: string | number
R = ApiDataResponse<T, "entries", "post", Partial<Record<"stream" | "entries" | "self" | "location", string>>, any, ApiMeta<"post", any>>
Parameters
Returns Promise<Response<R, any>>
postStream
Type parameters
T
R = ApiDataResponse<IStreamPost<T, string | number>, "streams", "post", Partial<Record<"stream" | "entries" | "self" | "location", string>>, any, ApiMeta<"post", any>>
Parameters
Returns Promise<Response<R, any>>
putEntry
- putEntry<ID, T, R>(stream: ID, entry: string | number, data?: any, config?: RequestConfig<any>): Promise<Response<R, any>>
Type parameters
ID: string | number
R = ApiDataResponse<T, "entries", "put", Partial<Record<"stream" | "entries" | "self", string>>, any, ApiMeta<"put", any>>
Parameters
stream: ID
entry: string | number
data: any = {}
Returns Promise<Response<R, any>>
putStream
Type parameters
ID: string | number
R = ApiDataResponse<IStream<ID>, "streams", "put", Partial<Record<"stream" | "entries" | "self", string>>, any, ApiMeta<"put", any>>
Parameters
Returns Promise<Response<R, any>>
Protected request
Type parameters
Parameters
method: Method
url: string
Returns Promise<Response<T, D>>
Type parameters
Parameters
method: Method
url: string
data: D
Returns Promise<Response<T, D>>