hide-a-bed 4.0.0 → 4.0.1
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/index.mjs +2 -1
- package/package.json +1 -1
- package/impl/bulk.d.mts +0 -7
- package/impl/bulk.d.mts.map +0 -1
- package/impl/crud.d.mts +0 -5
- package/impl/crud.d.mts.map +0 -1
- package/impl/errors.d.mts +0 -35
- package/impl/errors.d.mts.map +0 -1
- package/impl/logger.d.mts +0 -32
- package/impl/logger.d.mts.map +0 -1
- package/impl/patch.d.mts +0 -4
- package/impl/patch.d.mts.map +0 -1
- package/impl/query.d.mts +0 -170
- package/impl/query.d.mts.map +0 -1
- package/impl/retry.d.mts +0 -2
- package/impl/retry.d.mts.map +0 -1
- package/impl/stream.d.mts +0 -3
- package/impl/stream.d.mts.map +0 -1
- package/index.d.mts +0 -39
- package/index.d.mts.map +0 -1
- package/schema/bind.d.mts +0 -470
- package/schema/bind.d.mts.map +0 -1
- package/schema/bulk.d.mts +0 -358
- package/schema/bulk.d.mts.map +0 -1
- package/schema/config.d.mts +0 -76
- package/schema/config.d.mts.map +0 -1
- package/schema/crud.d.mts +0 -260
- package/schema/crud.d.mts.map +0 -1
- package/schema/patch.d.mts +0 -116
- package/schema/patch.d.mts.map +0 -1
- package/schema/query.d.mts +0 -362
- package/schema/query.d.mts.map +0 -1
- package/schema/stream.d.mts +0 -193
- package/schema/stream.d.mts.map +0 -1
package/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { patch } from './impl/patch.mjs'
|
|
|
5
5
|
import { query } from './impl/query.mjs'
|
|
6
6
|
import { queryStream } from './impl/stream.mjs'
|
|
7
7
|
import { withRetry } from './impl/retry.mjs'
|
|
8
|
-
import { BulkSave, BulkGet } from './schema/bulk.mjs'
|
|
8
|
+
import { BulkSave, BulkGet, BulkRemove } from './schema/bulk.mjs'
|
|
9
9
|
import { CouchConfig } from './schema/config.mjs'
|
|
10
10
|
import { SimpleViewQuery, SimpleViewQueryResponse } from './schema/query.mjs'
|
|
11
11
|
import { SimpleViewQueryStream, OnRow } from './schema/stream.mjs'
|
|
@@ -21,6 +21,7 @@ const schema = {
|
|
|
21
21
|
OnRow,
|
|
22
22
|
BulkSave,
|
|
23
23
|
BulkGet,
|
|
24
|
+
BulkRemove,
|
|
24
25
|
CouchGet,
|
|
25
26
|
CouchPut,
|
|
26
27
|
CouchDoc,
|
package/package.json
CHANGED
package/impl/bulk.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** @type { import('../schema/bulk.mjs').BulkSaveSchema } */
|
|
2
|
-
export const bulkSave: import("../schema/bulk.mjs").BulkSaveSchema;
|
|
3
|
-
/** @type { import('../schema/bulk.mjs').BulkGetSchema } */
|
|
4
|
-
export const bulkGet: import("../schema/bulk.mjs").BulkGetSchema;
|
|
5
|
-
/** @type { import('../schema/bulk.mjs').BulkRemoveSchema } */
|
|
6
|
-
export const bulkRemove: import("../schema/bulk.mjs").BulkRemoveSchema;
|
|
7
|
-
//# sourceMappingURL=bulk.d.mts.map
|
package/impl/bulk.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulk.d.mts","sourceRoot":"","sources":["bulk.mjs"],"names":[],"mappings":"AAaA,4DAA4D;AAC5D,uBADY,OAAO,oBAAoB,EAAE,cAAc,CAsCrD;AAEF,2DAA2D;AAC3D,sBADY,OAAO,oBAAoB,EAAE,aAAa,CA0CpD;AAEF,8DAA8D;AAC9D,yBADY,OAAO,oBAAoB,EAAE,gBAAgB,CAOvD"}
|
package/impl/crud.d.mts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** @type { import('../schema/crud.mjs').CouchGetSchema } */
|
|
2
|
-
export const get: import("../schema/crud.mjs").CouchGetSchema;
|
|
3
|
-
/** @type { import('../schema/crud.mjs').CouchPutSchema } */
|
|
4
|
-
export const put: import("../schema/crud.mjs").CouchPutSchema;
|
|
5
|
-
//# sourceMappingURL=crud.d.mts.map
|
package/impl/crud.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crud.d.mts","sourceRoot":"","sources":["crud.mjs"],"names":[],"mappings":"AAaA,4DAA4D;AAC5D,kBADY,OAAO,oBAAoB,EAAE,cAAc,CAwCrD;AAEF,4DAA4D;AAC5D,kBADY,OAAO,oBAAoB,EAAE,cAAc,CAqCrD"}
|
package/impl/errors.d.mts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {Object} NetworkError
|
|
3
|
-
* @property {string} code - The error code
|
|
4
|
-
* @property {string} [message] - Optional error message
|
|
5
|
-
*/
|
|
6
|
-
export class RetryableError extends Error {
|
|
7
|
-
/**
|
|
8
|
-
* @param {number|undefined} statusCode - The HTTP status code to check
|
|
9
|
-
* @returns {boolean} Whether the status code is retryable
|
|
10
|
-
*/
|
|
11
|
-
static isRetryableStatusCode(statusCode: number | undefined): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* @param {NetworkError | unknown} err - The network error to handle
|
|
14
|
-
* @throws {RetryableError} If the error is retryable
|
|
15
|
-
* @throws {Error} If the error is not retryable
|
|
16
|
-
*/
|
|
17
|
-
static handleNetworkError(err: NetworkError | unknown): void;
|
|
18
|
-
/**
|
|
19
|
-
* @param {string} message - The error message
|
|
20
|
-
* @param {number|undefined} statusCode - The HTTP status code
|
|
21
|
-
*/
|
|
22
|
-
constructor(message: string, statusCode: number | undefined);
|
|
23
|
-
statusCode: number | undefined;
|
|
24
|
-
}
|
|
25
|
-
export type NetworkError = {
|
|
26
|
-
/**
|
|
27
|
-
* - The error code
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
* - Optional error message
|
|
32
|
-
*/
|
|
33
|
-
message?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=errors.d.mts.map
|
package/impl/errors.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["errors.mjs"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;IAWE;;;OAGG;IACH,yCAHW,MAAM,GAAC,SAAS,GACd,OAAO,CAKnB;IAED;;;;OAIG;IACH,+BAJW,YAAY,GAAG,OAAO,QAsBhC;IA1CD;;;OAGG;IACH,qBAHW,MAAM,cACN,MAAM,GAAC,SAAS,EAM1B;IADC,+BAA4B;CAoC/B;;;;;UAhDa,MAAM"}
|
package/impl/logger.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {Object} Logger
|
|
3
|
-
* @property {(...args: any[]) => void} error - Log error messages
|
|
4
|
-
* @property {(...args: any[]) => void} warn - Log warning messages
|
|
5
|
-
* @property {(...args: any[]) => void} info - Log info messages
|
|
6
|
-
* @property {(...args: any[]) => void} debug - Log debug messages
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Creates a unified logger interface that works with both function and object-style loggers
|
|
10
|
-
* @param {import('../schema/config.mjs').CouchConfigSchema} config
|
|
11
|
-
* @returns {Logger} Normalized logger interface
|
|
12
|
-
*/
|
|
13
|
-
export function createLogger(config: import("../schema/config.mjs").CouchConfigSchema): Logger;
|
|
14
|
-
export type Logger = {
|
|
15
|
-
/**
|
|
16
|
-
* - Log error messages
|
|
17
|
-
*/
|
|
18
|
-
error: (...args: any[]) => void;
|
|
19
|
-
/**
|
|
20
|
-
* - Log warning messages
|
|
21
|
-
*/
|
|
22
|
-
warn: (...args: any[]) => void;
|
|
23
|
-
/**
|
|
24
|
-
* - Log info messages
|
|
25
|
-
*/
|
|
26
|
-
info: (...args: any[]) => void;
|
|
27
|
-
/**
|
|
28
|
-
* - Log debug messages
|
|
29
|
-
*/
|
|
30
|
-
debug: (...args: any[]) => void;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=logger.d.mts.map
|
package/impl/logger.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.mts","sourceRoot":"","sources":["logger.mjs"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,qCAHW,OAAO,sBAAsB,EAAE,iBAAiB,GAC9C,MAAM,CAsClB;;;;;WA/Ca,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;;;;UACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;;;;UACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI;;;;WACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI"}
|
package/impl/patch.d.mts
DELETED
package/impl/patch.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patch.d.mts","sourceRoot":"","sources":["patch.mjs"],"names":[],"mappings":"AAGO,6CAAmE;AAE1E,0DAA0D;AAC1D,oBADY,OAAO,qBAAqB,EAAE,WAAW,CAmCnD"}
|
package/impl/query.d.mts
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {{ [key: string]: any }} options - The options object containing query parameters.
|
|
3
|
-
* @param {string[]} params - The list of parameter names to include in the query string.
|
|
4
|
-
*/
|
|
5
|
-
export function queryString(options: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}, params: string[]): string;
|
|
8
|
-
/** @type { z.infer<SimpleViewQuery> } query */
|
|
9
|
-
export const query: z.infer<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
10
|
-
throwOnGetNotFound: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
-
couch: z.ZodString;
|
|
12
|
-
bindWithRetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
-
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
14
|
-
initialDelay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
-
backoffFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
16
|
-
logger: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
17
|
-
error: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
18
|
-
warn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
19
|
-
info: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
20
|
-
debug: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
23
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
24
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
25
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
28
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
29
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
30
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
31
|
-
}>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
|
32
|
-
_normalizedLogger: z.ZodOptional<z.ZodAny>;
|
|
33
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
34
|
-
throwOnGetNotFound: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
-
couch: z.ZodString;
|
|
36
|
-
bindWithRetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
37
|
-
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
-
initialDelay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
-
backoffFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
-
logger: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
41
|
-
error: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
42
|
-
warn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
43
|
-
info: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
44
|
-
debug: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
47
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
48
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
49
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
52
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
53
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
54
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
55
|
-
}>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
|
56
|
-
_normalizedLogger: z.ZodOptional<z.ZodAny>;
|
|
57
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
58
|
-
throwOnGetNotFound: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
-
couch: z.ZodString;
|
|
60
|
-
bindWithRetry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
61
|
-
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
62
|
-
initialDelay: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
63
|
-
backoffFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
-
logger: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
65
|
-
error: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
66
|
-
warn: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
67
|
-
info: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
68
|
-
debug: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodVoid>>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
71
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
72
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
73
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
error?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
76
|
-
warn?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
77
|
-
info?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
78
|
-
debug?: ((args_0: any, ...args: unknown[]) => void) | undefined;
|
|
79
|
-
}>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny], z.ZodUnknown>, z.ZodVoid>]>>;
|
|
80
|
-
_normalizedLogger: z.ZodOptional<z.ZodAny>;
|
|
81
|
-
}, z.ZodTypeAny, "passthrough">>, z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
82
|
-
startkey: z.ZodOptional<z.ZodAny>;
|
|
83
|
-
endkey: z.ZodOptional<z.ZodAny>;
|
|
84
|
-
descending: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
skip: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
key: z.ZodOptional<z.ZodAny>;
|
|
88
|
-
include_docs: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
reduce: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
group: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
group_level: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
startkey?: any;
|
|
94
|
-
endkey?: any;
|
|
95
|
-
descending?: boolean | undefined;
|
|
96
|
-
skip?: number | undefined;
|
|
97
|
-
limit?: number | undefined;
|
|
98
|
-
key?: any;
|
|
99
|
-
include_docs?: boolean | undefined;
|
|
100
|
-
reduce?: boolean | undefined;
|
|
101
|
-
group?: boolean | undefined;
|
|
102
|
-
group_level?: number | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
startkey?: any;
|
|
105
|
-
endkey?: any;
|
|
106
|
-
descending?: boolean | undefined;
|
|
107
|
-
skip?: number | undefined;
|
|
108
|
-
limit?: number | undefined;
|
|
109
|
-
key?: any;
|
|
110
|
-
include_docs?: boolean | undefined;
|
|
111
|
-
reduce?: boolean | undefined;
|
|
112
|
-
group?: boolean | undefined;
|
|
113
|
-
group_level?: number | undefined;
|
|
114
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodObject<{
|
|
115
|
-
error: z.ZodOptional<z.ZodString>;
|
|
116
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
117
|
-
id: z.ZodOptional<z.ZodString>;
|
|
118
|
-
key: z.ZodNullable<z.ZodAny>;
|
|
119
|
-
value: z.ZodNullable<z.ZodAny>;
|
|
120
|
-
doc: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
id?: string | undefined;
|
|
123
|
-
key?: any;
|
|
124
|
-
value?: any;
|
|
125
|
-
doc?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
id?: string | undefined;
|
|
128
|
-
key?: any;
|
|
129
|
-
value?: any;
|
|
130
|
-
doc?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
131
|
-
}>, "many">;
|
|
132
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
133
|
-
error: z.ZodOptional<z.ZodString>;
|
|
134
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
135
|
-
id: z.ZodOptional<z.ZodString>;
|
|
136
|
-
key: z.ZodNullable<z.ZodAny>;
|
|
137
|
-
value: z.ZodNullable<z.ZodAny>;
|
|
138
|
-
doc: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
id?: string | undefined;
|
|
141
|
-
key?: any;
|
|
142
|
-
value?: any;
|
|
143
|
-
doc?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
id?: string | undefined;
|
|
146
|
-
key?: any;
|
|
147
|
-
value?: any;
|
|
148
|
-
doc?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
149
|
-
}>, "many">;
|
|
150
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
151
|
-
error: z.ZodOptional<z.ZodString>;
|
|
152
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
153
|
-
id: z.ZodOptional<z.ZodString>;
|
|
154
|
-
key: z.ZodNullable<z.ZodAny>;
|
|
155
|
-
value: z.ZodNullable<z.ZodAny>;
|
|
156
|
-
doc: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
157
|
-
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
id?: string | undefined;
|
|
159
|
-
key?: any;
|
|
160
|
-
value?: any;
|
|
161
|
-
doc?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
id?: string | undefined;
|
|
164
|
-
key?: any;
|
|
165
|
-
value?: any;
|
|
166
|
-
doc?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
167
|
-
}>, "many">;
|
|
168
|
-
}, z.ZodTypeAny, "passthrough">>>>>;
|
|
169
|
-
import { z } from 'zod';
|
|
170
|
-
//# sourceMappingURL=query.d.mts.map
|
package/impl/query.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.mts","sourceRoot":"","sources":["query.mjs"],"names":[],"mappings":"AAuCA;;;GAGG;AACH,qCAHW;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,UACtB,MAAM,EAAE,UAoBlB;AAnDD,+CAA+C;AAC/C,oBADY,CAAC,CAAC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAiB,CA2BlC;kBAnCgB,KAAK"}
|
package/impl/retry.d.mts
DELETED
package/impl/retry.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.mts","sourceRoot":"","sources":["retry.mjs"],"names":[],"mappings":"AAGA,mFAmCC"}
|
package/impl/stream.d.mts
DELETED
package/impl/stream.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.mts","sourceRoot":"","sources":["stream.mjs"],"names":[],"mappings":"AAOA,2EAA2E;AAC3E,0BADY,OAAO,sBAAsB,EAAE,2BAA2B,CAoDpE"}
|
package/index.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { get } from './impl/crud.mjs';
|
|
2
|
-
import { put } from './impl/crud.mjs';
|
|
3
|
-
import { patch } from './impl/patch.mjs';
|
|
4
|
-
import { bulkGet } from './impl/bulk.mjs';
|
|
5
|
-
import { bulkSave } from './impl/bulk.mjs';
|
|
6
|
-
import { bulkRemove } from './impl/bulk.mjs';
|
|
7
|
-
import { query } from './impl/query.mjs';
|
|
8
|
-
import { queryStream } from './impl/stream.mjs';
|
|
9
|
-
export namespace schema {
|
|
10
|
-
export { CouchConfig };
|
|
11
|
-
export { SimpleViewQuery };
|
|
12
|
-
export { SimpleViewQueryResponse };
|
|
13
|
-
export { SimpleViewQueryStream };
|
|
14
|
-
export { OnRow };
|
|
15
|
-
export { BulkSave };
|
|
16
|
-
export { BulkGet };
|
|
17
|
-
export { CouchGet };
|
|
18
|
-
export { CouchPut };
|
|
19
|
-
export { CouchDoc };
|
|
20
|
-
export { CouchDocResponse };
|
|
21
|
-
export { Patch };
|
|
22
|
-
}
|
|
23
|
-
/** @type { import('./schema/bind.mjs').BindSchema } */
|
|
24
|
-
export const bindConfig: import("./schema/bind.mjs").BindSchema;
|
|
25
|
-
import { withRetry } from './impl/retry.mjs';
|
|
26
|
-
import { CouchConfig } from './schema/config.mjs';
|
|
27
|
-
import { SimpleViewQuery } from './schema/query.mjs';
|
|
28
|
-
import { SimpleViewQueryResponse } from './schema/query.mjs';
|
|
29
|
-
import { SimpleViewQueryStream } from './schema/stream.mjs';
|
|
30
|
-
import { OnRow } from './schema/stream.mjs';
|
|
31
|
-
import { BulkSave } from './schema/bulk.mjs';
|
|
32
|
-
import { BulkGet } from './schema/bulk.mjs';
|
|
33
|
-
import { CouchGet } from './schema/crud.mjs';
|
|
34
|
-
import { CouchPut } from './schema/crud.mjs';
|
|
35
|
-
import { CouchDoc } from './schema/crud.mjs';
|
|
36
|
-
import { CouchDocResponse } from './schema/crud.mjs';
|
|
37
|
-
import { Patch } from './schema/patch.mjs';
|
|
38
|
-
export { get, put, patch, bulkGet, bulkSave, bulkRemove, query, queryStream, withRetry };
|
|
39
|
-
//# sourceMappingURL=index.d.mts.map
|
package/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["index.mjs"],"names":[],"mappings":"oBAEyB,iBAAiB;oBAAjB,iBAAiB;sBACpB,kBAAkB;wBAFM,iBAAiB;yBAAjB,iBAAiB;2BAAjB,iBAAiB;sBAGzC,kBAAkB;4BACZ,mBAAmB;;;;;;;;;;;;;;;AAyB/C,uDAAuD;AACvD,yBADY,OAAO,mBAAmB,EAAE,UAAU,CAsBhD;0BA9CwB,kBAAkB;4BAEhB,qBAAqB;gCACQ,oBAAoB;wCAApB,oBAAoB;sCAChC,qBAAqB;sBAArB,qBAAqB;yBAHhC,mBAAmB;wBAAnB,mBAAmB;yBAKU,mBAAmB;yBAAnB,mBAAmB;yBAAnB,mBAAmB;iCAAnB,mBAAmB;sBAD5D,oBAAoB"}
|