hide-a-bed 7.1.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/dist/cjs/index.cjs +424 -356
- package/dist/esm/index.mjs +419 -357
- package/impl/bindConfig.mts +3 -0
- package/impl/find.mts +59 -0
- package/impl/utils/errors.mts +1 -0
- package/impl/utils/fetch.mts +1 -0
- package/impl/utils/logger.mts +1 -4
- package/index.mts +19 -0
- package/package.json +1 -1
- package/schema/config.mts +28 -9
- package/schema/couch/mango.schema.ts +61 -0
- package/types/output/impl/bindConfig.d.mts +2 -0
- package/types/output/impl/bindConfig.d.mts.map +1 -1
- package/types/output/impl/find.d.mts +8 -0
- package/types/output/impl/find.d.mts.map +1 -0
- package/types/output/impl/find.test.d.mts +2 -0
- package/types/output/impl/find.test.d.mts.map +1 -0
- package/types/output/impl/utils/errors.d.mts +1 -1
- package/types/output/impl/utils/errors.d.mts.map +1 -1
- package/types/output/impl/utils/fetch.d.mts +1 -1
- package/types/output/impl/utils/fetch.d.mts.map +1 -1
- package/types/output/impl/utils/logger.d.mts.map +1 -1
- package/types/output/index.d.mts +5 -1
- package/types/output/index.d.mts.map +1 -1
- package/types/output/schema/config.d.mts +6 -6
- package/types/output/schema/config.d.mts.map +1 -1
- package/types/output/schema/couch/mango.schema.d.ts +58 -0
- package/types/output/schema/couch/mango.schema.d.ts.map +1 -0
- package/types/output/schema/couch/mango.schema.test.d.mts +2 -0
- package/types/output/schema/couch/mango.schema.test.d.mts.map +1 -0
package/impl/bindConfig.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { find, type FindBound } from './find.mts'
|
|
1
2
|
// oxlint-disable typescript/no-explicit-any
|
|
2
3
|
import type z from 'zod'
|
|
3
4
|
import { CouchConfig, type CouchConfigInput } from '../schema/config.mts'
|
|
@@ -33,6 +34,7 @@ type BoundMethods = {
|
|
|
33
34
|
bulkGetDictionary: BulkGetDictionaryBound
|
|
34
35
|
get: GetBound
|
|
35
36
|
getAtRev: GetAtRevBound
|
|
37
|
+
find: FindBound
|
|
36
38
|
query: QueryBound
|
|
37
39
|
bulkRemove: BoundConfigMethod<typeof bulkRemove>
|
|
38
40
|
bulkRemoveMap: BoundConfigMethod<typeof bulkRemoveMap>
|
|
@@ -125,6 +127,7 @@ function doBind(config: CouchConfig): BoundMethods {
|
|
|
125
127
|
bulkGetDictionary: getBoundWithRetry<BulkGetDictionaryBound>(bulkGetDictionary, config),
|
|
126
128
|
get: getBoundWithRetry<GetBound>(get, config),
|
|
127
129
|
getAtRev: getBoundWithRetry<GetAtRevBound>(getAtRev, config),
|
|
130
|
+
find: getBoundWithRetry<FindBound>(find, config),
|
|
128
131
|
query: getBoundWithRetry<QueryBound>(query, config),
|
|
129
132
|
|
|
130
133
|
/**
|
package/impl/find.mts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { CouchConfig, type CouchConfigInput } from '../schema/config.mts'
|
|
3
|
+
import { fetchCouchJson } from './utils/fetch.mts'
|
|
4
|
+
import { createCouchPathUrl } from './utils/url.mts'
|
|
5
|
+
import { RetryableError, createResponseError, OperationError } from './utils/errors.mts'
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
MangoQuerySchema,
|
|
9
|
+
createMangoResponseSchema,
|
|
10
|
+
type MangoQuery,
|
|
11
|
+
type MangoResponse
|
|
12
|
+
} from '../schema/couch/mango.schema.ts'
|
|
13
|
+
|
|
14
|
+
const MangoResponseSchema = createMangoResponseSchema(z.record(z.string(), z.unknown()))
|
|
15
|
+
|
|
16
|
+
// Retain the original names for consumers of the initial find API.
|
|
17
|
+
export type FindOptions = MangoQuery
|
|
18
|
+
export type FindResponse<Doc = Record<string, unknown>> = MangoResponse<Doc>
|
|
19
|
+
|
|
20
|
+
/** Query a Mango JSON index. Request controls come from config, as with query(). */
|
|
21
|
+
export async function find<Doc = Record<string, unknown>>(
|
|
22
|
+
configInput: CouchConfigInput,
|
|
23
|
+
options: MangoQuery
|
|
24
|
+
): Promise<MangoResponse<Doc>> {
|
|
25
|
+
const config = CouchConfig.parse(configInput)
|
|
26
|
+
const body = MangoQuerySchema.parse(options)
|
|
27
|
+
let response
|
|
28
|
+
try {
|
|
29
|
+
response = await fetchCouchJson<MangoResponse<Doc> & { error?: string }>({
|
|
30
|
+
auth: config.auth,
|
|
31
|
+
request: config.request,
|
|
32
|
+
method: 'POST',
|
|
33
|
+
operation: 'find',
|
|
34
|
+
url: createCouchPathUrl('_find', config.couch),
|
|
35
|
+
body
|
|
36
|
+
})
|
|
37
|
+
} catch (error) {
|
|
38
|
+
RetryableError.handleNetworkError(error, 'find')
|
|
39
|
+
}
|
|
40
|
+
if (response.statusCode !== 200 || response.body?.error) {
|
|
41
|
+
throw createResponseError({
|
|
42
|
+
body: response.body,
|
|
43
|
+
defaultMessage: 'Mango query failed',
|
|
44
|
+
operation: 'find',
|
|
45
|
+
statusCode: response.statusCode
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
const parsed = MangoResponseSchema.safeParse(response.body)
|
|
49
|
+
if (!parsed.success) {
|
|
50
|
+
throw new OperationError('Invalid Mango response', { operation: 'find' })
|
|
51
|
+
}
|
|
52
|
+
// The generic supplies compile-time document typing; use the exported response
|
|
53
|
+
// factory with a document schema when runtime document validation is needed.
|
|
54
|
+
return parsed.data as MangoResponse<Doc>
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type FindBound = <Doc = Record<string, unknown>>(
|
|
58
|
+
options: MangoQuery
|
|
59
|
+
) => Promise<MangoResponse<Doc>>
|
package/impl/utils/errors.mts
CHANGED
package/impl/utils/fetch.mts
CHANGED
package/impl/utils/logger.mts
CHANGED
|
@@ -27,10 +27,7 @@ const createNoopLogger = (): Logger => ({
|
|
|
27
27
|
debug: noop
|
|
28
28
|
})
|
|
29
29
|
|
|
30
|
-
const bindLoggerMethod = (
|
|
31
|
-
logger: Partial<Logger>,
|
|
32
|
-
level: keyof Logger
|
|
33
|
-
): LoggerMethod => {
|
|
30
|
+
const bindLoggerMethod = (logger: Partial<Logger>, level: keyof Logger): LoggerMethod => {
|
|
34
31
|
const method = logger[level]
|
|
35
32
|
return typeof method === 'function' ? method.bind(logger) : noop
|
|
36
33
|
}
|
package/index.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { find } from './impl/find.mts'
|
|
1
2
|
import { createQuery } from './impl/utils/queryBuilder.mts'
|
|
2
3
|
import { QueryBuilder } from './impl/utils/queryBuilder.mts'
|
|
3
4
|
import { bindConfig } from './impl/bindConfig.mts'
|
|
@@ -24,6 +25,7 @@ export {
|
|
|
24
25
|
bulkGet,
|
|
25
26
|
bulkSave,
|
|
26
27
|
query,
|
|
28
|
+
find,
|
|
27
29
|
queryStream,
|
|
28
30
|
getDBInfo,
|
|
29
31
|
headDB,
|
|
@@ -99,3 +101,20 @@ export type {
|
|
|
99
101
|
} from './schema/sugar/watch.mts'
|
|
100
102
|
export type { BoundInstance } from './impl/bindConfig.mts'
|
|
101
103
|
export type { StandardSchemaV1 } from './types/standard-schema.ts'
|
|
104
|
+
|
|
105
|
+
export type { FindOptions, FindResponse, FindBound } from './impl/find.mts'
|
|
106
|
+
|
|
107
|
+
export {
|
|
108
|
+
MangoSelectorSchema,
|
|
109
|
+
MangoSortSchema,
|
|
110
|
+
MangoQuerySchema,
|
|
111
|
+
MangoExecutionStatsSchema,
|
|
112
|
+
createMangoResponseSchema
|
|
113
|
+
} from './schema/couch/mango.schema.ts'
|
|
114
|
+
export type {
|
|
115
|
+
MangoSelector,
|
|
116
|
+
MangoSort,
|
|
117
|
+
MangoQuery,
|
|
118
|
+
MangoExecutionStats,
|
|
119
|
+
MangoResponse
|
|
120
|
+
} from './schema/couch/mango.schema.ts'
|
package/package.json
CHANGED
package/schema/config.mts
CHANGED
|
@@ -2,16 +2,35 @@ import { z } from 'zod'
|
|
|
2
2
|
import type { StandardSchemaV1 } from '../types/standard-schema.ts'
|
|
3
3
|
import { RequestOptions } from './request.mts'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type LoggerMethod = (...args: unknown[]) => void
|
|
6
|
+
type ObjectLogger = Partial<Record<'error' | 'warn' | 'info' | 'debug', LoggerMethod>>
|
|
7
|
+
type FunctionLogger = (level: keyof ObjectLogger, ...args: unknown[]) => void
|
|
8
|
+
type ConfigLogger = ObjectLogger | FunctionLogger
|
|
6
9
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
const loggerLevels = ['error', 'warn', 'info', 'debug'] as const
|
|
11
|
+
|
|
12
|
+
const isLoggerMethod = (value: unknown): value is LoggerMethod => typeof value === 'function'
|
|
13
|
+
|
|
14
|
+
const LoggerSchema = z.custom<ConfigLogger>(
|
|
15
|
+
value => {
|
|
16
|
+
if (isLoggerMethod(value)) {
|
|
17
|
+
return true
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (value === null || typeof value !== 'object') {
|
|
21
|
+
return false
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return loggerLevels.every(level => {
|
|
25
|
+
const method = (value as Record<string, unknown>)[level]
|
|
26
|
+
return method === undefined || isLoggerMethod(method)
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
message:
|
|
31
|
+
'logger must be a function or object with optional error, warn, info, and debug methods'
|
|
32
|
+
}
|
|
33
|
+
)
|
|
15
34
|
|
|
16
35
|
export const CouchAuth = z.strictObject({
|
|
17
36
|
username: z.string().describe('basic auth username for CouchDB requests'),
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
/** Selector operators are interpreted by CouchDB, including nested selectors. */
|
|
4
|
+
export const MangoSelectorSchema = z.record(z.string(), z.unknown())
|
|
5
|
+
|
|
6
|
+
export const MangoSortSchema = z.array(
|
|
7
|
+
z.union([z.string(), z.record(z.string(), z.enum(['asc', 'desc']))])
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
/** Native CouchDB _find options; supported fields depend on the server version. */
|
|
11
|
+
export const MangoQuerySchema = z
|
|
12
|
+
.object({
|
|
13
|
+
selector: MangoSelectorSchema,
|
|
14
|
+
limit: z.number().int().positive().optional(),
|
|
15
|
+
skip: z.number().int().nonnegative().optional(),
|
|
16
|
+
sort: MangoSortSchema.optional(),
|
|
17
|
+
fields: z.array(z.string()).optional(),
|
|
18
|
+
use_index: z.union([z.string(), z.tuple([z.string(), z.string()])]).optional(),
|
|
19
|
+
conflicts: z.boolean().optional(),
|
|
20
|
+
r: z.number().int().positive().optional(),
|
|
21
|
+
bookmark: z.string().optional(),
|
|
22
|
+
update: z.boolean().optional(),
|
|
23
|
+
stable: z.boolean().optional(),
|
|
24
|
+
stale: z
|
|
25
|
+
.union([z.literal('ok'), z.literal(false)])
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('Deprecated CouchDB option; prefer stable and update'),
|
|
28
|
+
execution_stats: z.boolean().optional(),
|
|
29
|
+
allow_fallback: z.boolean().optional()
|
|
30
|
+
})
|
|
31
|
+
.strict()
|
|
32
|
+
|
|
33
|
+
export const MangoExecutionStatsSchema = z.looseObject({
|
|
34
|
+
total_keys_examined: z.number(),
|
|
35
|
+
total_docs_examined: z.number(),
|
|
36
|
+
total_quorum_docs_examined: z.number(),
|
|
37
|
+
results_returned: z.number(),
|
|
38
|
+
execution_time_ms: z.number()
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
/** Opt into document validation by supplying the schema for your projection. */
|
|
42
|
+
export const createMangoResponseSchema = <DocSchema extends z.ZodType>(docSchema: DocSchema) =>
|
|
43
|
+
z.looseObject({
|
|
44
|
+
docs: z.array(docSchema),
|
|
45
|
+
bookmark: z.string().optional(),
|
|
46
|
+
warning: z.string().optional(),
|
|
47
|
+
execution_stats: MangoExecutionStatsSchema.optional()
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
export type MangoSelector = z.infer<typeof MangoSelectorSchema>
|
|
51
|
+
export type MangoSort = z.infer<typeof MangoSortSchema>
|
|
52
|
+
export type MangoQuery = z.infer<typeof MangoQuerySchema>
|
|
53
|
+
export type MangoExecutionStats = z.infer<typeof MangoExecutionStatsSchema>
|
|
54
|
+
|
|
55
|
+
// Projections may omit _id/_rev, so neither is imposed on the caller's document type.
|
|
56
|
+
export type MangoResponse<Doc = Record<string, unknown>> = {
|
|
57
|
+
docs: Doc[]
|
|
58
|
+
bookmark?: string
|
|
59
|
+
warning?: string
|
|
60
|
+
execution_stats?: MangoExecutionStats
|
|
61
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type FindBound } from './find.mts';
|
|
1
2
|
import type z from 'zod';
|
|
2
3
|
import { CouchConfig, type CouchConfigInput } from '../schema/config.mts';
|
|
3
4
|
import { type BulkGetBound, type BulkGetDictionaryBound } from './bulkGet.mts';
|
|
@@ -19,6 +20,7 @@ type BoundMethods = {
|
|
|
19
20
|
bulkGetDictionary: BulkGetDictionaryBound;
|
|
20
21
|
get: GetBound;
|
|
21
22
|
getAtRev: GetAtRevBound;
|
|
23
|
+
find: FindBound;
|
|
22
24
|
query: QueryBound;
|
|
23
25
|
bulkRemove: BoundConfigMethod<typeof bulkRemove>;
|
|
24
26
|
bulkRemoveMap: BoundConfigMethod<typeof bulkRemoveMap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindConfig.d.mts","sourceRoot":"","sources":["../../../impl/bindConfig.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bindConfig.d.mts","sourceRoot":"","sources":["../../../impl/bindConfig.mts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAEjD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,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AE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EAC3D,MAAM,EAAE,WAAW,UAYpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CouchConfigInput } from '../schema/config.mts';
|
|
2
|
+
import { type MangoQuery, type MangoResponse } from '../schema/couch/mango.schema.ts';
|
|
3
|
+
export type FindOptions = MangoQuery;
|
|
4
|
+
export type FindResponse<Doc = Record<string, unknown>> = MangoResponse<Doc>;
|
|
5
|
+
/** Query a Mango JSON index. Request controls come from config, as with query(). */
|
|
6
|
+
export declare function find<Doc = Record<string, unknown>>(configInput: CouchConfigInput, options: MangoQuery): Promise<MangoResponse<Doc>>;
|
|
7
|
+
export type FindBound = <Doc = Record<string, unknown>>(options: MangoQuery) => Promise<MangoResponse<Doc>>;
|
|
8
|
+
//# sourceMappingURL=find.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.mts","sourceRoot":"","sources":["../../../impl/find.mts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAKzE,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,iCAAiC,CAAA;AAKxC,MAAM,MAAM,WAAW,GAAG,UAAU,CAAA;AACpC,MAAM,MAAM,YAAY,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,CAAA;AAE5E,oFAAoF;AACpF,wBAAsB,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtD,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CA+B7B;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpD,OAAO,EAAE,UAAU,KAChB,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.test.d.mts","sourceRoot":"","sources":["../../../impl/find.test.mts"],"names":[],"mappings":""}
|
|
@@ -15,7 +15,7 @@ export interface NetworkError {
|
|
|
15
15
|
message?: string;
|
|
16
16
|
}
|
|
17
17
|
export type ErrorCategory = 'conflict' | 'network' | 'not_found' | 'operation' | 'retryable' | 'validation' | 'transaction';
|
|
18
|
-
export type ErrorOperation = 'get' | 'getAtRev' | 'getDBInfo' | 'headDB' | 'patch' | 'patchDangerously' | 'put' | 'query' | 'queryStream' | 'remove' | 'request' | 'watchDocs';
|
|
18
|
+
export type ErrorOperation = 'get' | 'getAtRev' | 'getDBInfo' | 'headDB' | 'patch' | 'patchDangerously' | 'put' | 'find' | 'query' | 'queryStream' | 'remove' | 'request' | 'watchDocs';
|
|
19
19
|
export declare const hasStatusCode: (error: unknown) => error is {
|
|
20
20
|
statusCode: number;
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../../../../impl/utils/errors.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAGtE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAMD,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,aAAa,CAAA;AAEjB,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,UAAU,GACV,WAAW,GACX,QAAQ,GACR,OAAO,GACP,kBAAkB,GAClB,KAAK,GACL,OAAO,GACP,aAAa,GACb,QAAQ,GACR,SAAS,GACT,WAA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AAO,CAAA;IACd,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,cAAc,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAYD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,cAAc,EACd,KAAK,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACX,EAAE,oBAAoB,GAAG,aAAa,CAwCtC;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAKrD"}
|
|
@@ -16,7 +16,7 @@ export type FetchRequestOptions = {
|
|
|
16
16
|
body?: FetchBody;
|
|
17
17
|
headers?: Record<string, string>;
|
|
18
18
|
method: HttpMethod;
|
|
19
|
-
operation?: 'get' | 'getAtRev' | 'getDBInfo' | 'headDB' | 'patch' | 'patchDangerously' | 'put' | 'query' | 'queryStream' | 'remove' | 'request' | 'watchDocs';
|
|
19
|
+
operation?: 'get' | 'getAtRev' | 'getDBInfo' | 'headDB' | 'patch' | 'patchDangerously' | 'put' | 'find' | 'query' | 'queryStream' | 'remove' | 'request' | 'watchDocs';
|
|
20
20
|
request?: RequestOptions;
|
|
21
21
|
signal?: AbortSignal;
|
|
22
22
|
url: string | URL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.mts","sourceRoot":"","sources":["../../../../impl/utils/fetch.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAA;AAEnE,KAAK,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;AAE1C,MAAM,MAAM,SAAS,GACjB,eAAe,GACf,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,KAAK,CAAC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CAAC,CAkCzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.mts","sourceRoot":"","sources":["../../../../impl/utils/logger.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE/D,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;IAClB,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;
|
|
1
|
+
{"version":3,"file":"logger.d.mts","sourceRoot":"","sources":["../../../../impl/utils/logger.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE/D,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;IAClB,IAAI,EAAE,YAAY,CAAA;IAClB,KAAK,EAAE,YAAY,CAAA;CACpB,CAAA;AAyBD,wBAAgB,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAgC7D"}
|
package/types/output/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { find } from './impl/find.mts';
|
|
1
2
|
import { createQuery } from './impl/utils/queryBuilder.mts';
|
|
2
3
|
import { QueryBuilder } from './impl/utils/queryBuilder.mts';
|
|
3
4
|
import { bindConfig } from './impl/bindConfig.mts';
|
|
@@ -15,7 +16,7 @@ import { headDB } from './impl/headDB.mts';
|
|
|
15
16
|
import { bulkRemove, bulkRemoveMap } from './impl/bulkRemove.mts';
|
|
16
17
|
import { createLock, removeLock } from './impl/sugar/lock.mts';
|
|
17
18
|
import { watchDocs } from './impl/sugar/watch.mts';
|
|
18
|
-
export { get, getAtRev, put, remove, bulkGet, bulkSave, query, queryStream, getDBInfo, headDB, patch, patchDangerously, bulkRemove, bulkRemoveMap, bulkGetDictionary, bulkSaveTransaction, watchDocs, bindConfig, withRetry, QueryBuilder, createQuery, createLock, removeLock };
|
|
19
|
+
export { get, getAtRev, put, remove, bulkGet, bulkSave, query, find, queryStream, getDBInfo, headDB, patch, patchDangerously, bulkRemove, bulkRemoveMap, bulkGetDictionary, bulkSaveTransaction, watchDocs, bindConfig, withRetry, QueryBuilder, createQuery, createLock, removeLock };
|
|
19
20
|
export { ConflictError, HideABedError, NotFoundError, OperationError, RetryableError, ValidationError } from './impl/utils/errors.mts';
|
|
20
21
|
export type { BulkGetBound, BulkGetDictionaryBound, BulkGetDictionaryOptions, BulkGetDictionaryResult, BulkGetOptions, BulkGetResponse } from './impl/bulkGet.mts';
|
|
21
22
|
export type { OnInvalidDocAction } from './impl/utils/parseRows.mts';
|
|
@@ -33,4 +34,7 @@ export type { WatchHandle, WatchListener } from './impl/sugar/watch.mts';
|
|
|
33
34
|
export type { WatchOptions as WatchOptionsSchema, WatchOptionsInput } from './schema/sugar/watch.mts';
|
|
34
35
|
export type { BoundInstance } from './impl/bindConfig.mts';
|
|
35
36
|
export type { StandardSchemaV1 } from './types/standard-schema.ts';
|
|
37
|
+
export type { FindOptions, FindResponse, FindBound } from './impl/find.mts';
|
|
38
|
+
export { MangoSelectorSchema, MangoSortSchema, MangoQuerySchema, MangoExecutionStatsSchema, createMangoResponseSchema } from './schema/couch/mango.schema.ts';
|
|
39
|
+
export type { MangoSelector, MangoSort, MangoQuery, MangoExecutionStats, MangoResponse } from './schema/couch/mango.schema.ts';
|
|
36
40
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE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ACrF,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACxE,YAAY,EACV,YAAY,IAAI,kBAAkB,EAClC,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAElE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3E,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAA;AACvC,YAAY,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,aAAa,EACd,MAAM,gCAAgC,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { StandardSchemaV1 } from '../types/standard-schema.ts';
|
|
3
3
|
import { RequestOptions } from './request.mts';
|
|
4
|
+
type LoggerMethod = (...args: unknown[]) => void;
|
|
5
|
+
type ObjectLogger = Partial<Record<'error' | 'warn' | 'info' | 'debug', LoggerMethod>>;
|
|
6
|
+
type FunctionLogger = (level: keyof ObjectLogger, ...args: unknown[]) => void;
|
|
7
|
+
type ConfigLogger = ObjectLogger | FunctionLogger;
|
|
4
8
|
export declare const CouchAuth: z.ZodObject<{
|
|
5
9
|
username: z.ZodString;
|
|
6
10
|
password: z.ZodString;
|
|
@@ -14,12 +18,7 @@ export declare const CouchConfig: z.ZodObject<{
|
|
|
14
18
|
bindWithRetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
19
|
couch: z.ZodCustom<string | URL, string | URL>;
|
|
16
20
|
initialDelay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
-
logger: z.ZodOptional<z.
|
|
18
|
-
error: z.ZodOptional<z.ZodFunction<z.ZodArray<z.ZodAny>, z.ZodVoid>>;
|
|
19
|
-
warn: z.ZodOptional<z.ZodFunction<z.ZodArray<z.ZodAny>, z.ZodVoid>>;
|
|
20
|
-
info: z.ZodOptional<z.ZodFunction<z.ZodArray<z.ZodAny>, z.ZodVoid>>;
|
|
21
|
-
debug: z.ZodOptional<z.ZodFunction<z.ZodArray<z.ZodAny>, z.ZodVoid>>;
|
|
22
|
-
}, z.core.$strip>, z.ZodFunction<z.ZodArray<z.ZodAny>, z.ZodVoid>]>>;
|
|
21
|
+
logger: z.ZodOptional<z.ZodCustom<ConfigLogger, ConfigLogger>>;
|
|
23
22
|
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
24
23
|
request: z.ZodOptional<z.ZodType<RequestOptions, RequestOptions, z.core.$ZodTypeInternals<RequestOptions, RequestOptions>>>;
|
|
25
24
|
throwOnGetNotFound: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -31,4 +30,5 @@ export type CouchAuth = StandardSchemaV1.InferOutput<typeof CouchAuth>;
|
|
|
31
30
|
export type CouchAuthInput = StandardSchemaV1.InferInput<typeof CouchAuth>;
|
|
32
31
|
export type CouchConfig = StandardSchemaV1.InferOutput<typeof CouchConfig>;
|
|
33
32
|
export type CouchConfigInput = StandardSchemaV1.InferInput<typeof CouchConfig>;
|
|
33
|
+
export {};
|
|
34
34
|
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../../../schema/config.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.mts","sourceRoot":"","sources":["../../../schema/config.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;AAChD,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,YAAY,CAAC,CAAC,CAAA;AACtF,KAAK,cAAc,GAAG,CAAC,KAAK,EAAE,MAAM,YAAY,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;AAC7E,KAAK,YAAY,GAAG,YAAY,GAAG,cAAc,CAAA;AA2BjD,eAAO,MAAM,SAAS;;;kBAGpB,CAAA;AAWF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;kBA6BY,CAAA;AAEpC,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAA;AACtE,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAC1E,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Selector operators are interpreted by CouchDB, including nested selectors. */
|
|
3
|
+
export declare const MangoSelectorSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4
|
+
export declare const MangoSortSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
5
|
+
asc: "asc";
|
|
6
|
+
desc: "desc";
|
|
7
|
+
}>>]>>;
|
|
8
|
+
/** Native CouchDB _find options; supported fields depend on the server version. */
|
|
9
|
+
export declare const MangoQuerySchema: z.ZodObject<{
|
|
10
|
+
selector: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
skip: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
14
|
+
asc: "asc";
|
|
15
|
+
desc: "desc";
|
|
16
|
+
}>>]>>>;
|
|
17
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
+
use_index: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>;
|
|
19
|
+
conflicts: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
r: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
bookmark: z.ZodOptional<z.ZodString>;
|
|
22
|
+
update: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
stable: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
stale: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ok">, z.ZodLiteral<false>]>>;
|
|
25
|
+
execution_stats: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
allow_fallback: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export declare const MangoExecutionStatsSchema: z.ZodObject<{
|
|
29
|
+
total_keys_examined: z.ZodNumber;
|
|
30
|
+
total_docs_examined: z.ZodNumber;
|
|
31
|
+
total_quorum_docs_examined: z.ZodNumber;
|
|
32
|
+
results_returned: z.ZodNumber;
|
|
33
|
+
execution_time_ms: z.ZodNumber;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
/** Opt into document validation by supplying the schema for your projection. */
|
|
36
|
+
export declare const createMangoResponseSchema: <DocSchema extends z.ZodType>(docSchema: DocSchema) => z.ZodObject<{
|
|
37
|
+
docs: z.ZodArray<DocSchema>;
|
|
38
|
+
bookmark: z.ZodOptional<z.ZodString>;
|
|
39
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
40
|
+
execution_stats: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
total_keys_examined: z.ZodNumber;
|
|
42
|
+
total_docs_examined: z.ZodNumber;
|
|
43
|
+
total_quorum_docs_examined: z.ZodNumber;
|
|
44
|
+
results_returned: z.ZodNumber;
|
|
45
|
+
execution_time_ms: z.ZodNumber;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
export type MangoSelector = z.infer<typeof MangoSelectorSchema>;
|
|
49
|
+
export type MangoSort = z.infer<typeof MangoSortSchema>;
|
|
50
|
+
export type MangoQuery = z.infer<typeof MangoQuerySchema>;
|
|
51
|
+
export type MangoExecutionStats = z.infer<typeof MangoExecutionStatsSchema>;
|
|
52
|
+
export type MangoResponse<Doc = Record<string, unknown>> = {
|
|
53
|
+
docs: Doc[];
|
|
54
|
+
bookmark?: string;
|
|
55
|
+
warning?: string;
|
|
56
|
+
execution_stats?: MangoExecutionStats;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=mango.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mango.schema.d.ts","sourceRoot":"","sources":["../../../../schema/couch/mango.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,wCAAoC,CAAA;AAEpE,eAAO,MAAM,eAAe;;;MAE3B,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;kBAoBlB,CAAA;AAEX,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAA;AAEF,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,GAAI,SAAS,SAAS,CAAC,CAAC,OAAO,EAAE,WAAW,SAAS;;;;;;;;;;;iBAMvF,CAAA;AAEJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC/D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAG3E,MAAM,MAAM,aAAa,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACzD,IAAI,EAAE,GAAG,EAAE,CAAA;IACX,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,mBAAmB,CAAA;CACtC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mango.schema.test.d.mts","sourceRoot":"","sources":["../../../../schema/couch/mango.schema.test.mts"],"names":[],"mappings":""}
|