2022-08-26 09:56:58 +12:00
|
|
|
export interface RowValue {
|
|
|
|
rev: string
|
|
|
|
deleted: boolean
|
|
|
|
}
|
|
|
|
|
2022-08-26 06:41:47 +12:00
|
|
|
export interface RowResponse<T> {
|
|
|
|
id: string
|
|
|
|
key: string
|
2022-08-26 09:56:58 +12:00
|
|
|
error: string
|
|
|
|
value: RowValue
|
2022-11-12 00:57:50 +13:00
|
|
|
doc?: T | any
|
2022-08-26 06:41:47 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AllDocsResponse<T> {
|
|
|
|
offset: number
|
|
|
|
total_rows: number
|
|
|
|
rows: RowResponse<T>[]
|
|
|
|
}
|
|
|
|
|
|
|
|
export type BulkDocsResponse = BulkDocResponse[]
|
|
|
|
|
|
|
|
interface BulkDocResponse {
|
|
|
|
ok: boolean
|
|
|
|
id: string
|
|
|
|
rev: string
|
|
|
|
}
|
2022-11-16 03:28:02 +13:00
|
|
|
|
|
|
|
export interface PutResponse {
|
|
|
|
ok: boolean
|
|
|
|
id: string
|
|
|
|
rev: string
|
|
|
|
}
|