couchdb-web-node-plugin 1.0.583 → 1.0.585
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/package.json +1 -1
- package/type.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchdb-web-node-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.585",
|
|
4
4
|
"description": "A couchdb server, model instance conflict handler, rest api, authentication, session management, schema validator and model relation guarantee for webNode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
package/type.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type ChangesMeta = PouchDB.Core.ChangesMeta;
|
|
|
18
18
|
export type ChangesResponseChange<Type extends Mapping<unknown> = Mapping<unknown>> = PouchDB.Core.ChangesResponseChange<Type>;
|
|
19
19
|
export type ChangesStream<Type extends Mapping<unknown> = Mapping<unknown>> = PouchDB.Core.Changes<Type>;
|
|
20
20
|
export type ChangesStreamOptions = PouchDB.Core.ChangesOptions;
|
|
21
|
-
export type Connection = PouchDB.Database
|
|
21
|
+
export type Connection<Type extends Mapping<unknown> = Mapping<unknown>> = PouchDB.Database<Type>;
|
|
22
22
|
export type Connector = PouchDB.Static;
|
|
23
23
|
export type DatabaseConnectorConfiguration = PouchDB.Configuration.RemoteDatabaseConfiguration;
|
|
24
24
|
export type DatabaseError = PouchDB.Core.Error;
|
|
@@ -129,8 +129,8 @@ export type DocumentTypeMeta = {
|
|
|
129
129
|
'-type': string;
|
|
130
130
|
};
|
|
131
131
|
export type BaseDocument = ChangesMeta & DocumentGetMeta & DocumentIDMeta & DocumentRevisionIDMeta & DocumentStrategyMeta & DocumentTypeMeta;
|
|
132
|
-
export type FullDocument = BaseDocument &
|
|
133
|
-
export type PartialFullDocument = Partial<BaseDocument> &
|
|
132
|
+
export type FullDocument<Type extends Mapping<unknown> = Mapping<unknown>> = BaseDocument & Document<Type>;
|
|
133
|
+
export type PartialFullDocument<Type extends Mapping<unknown> = Mapping<unknown>> = Partial<BaseDocument> & Partial<Document<Type>>;
|
|
134
134
|
export interface SpecialPropertyNames {
|
|
135
135
|
additional: '_additional';
|
|
136
136
|
allowedRole: '_allowedRoles';
|
|
@@ -253,18 +253,18 @@ export type Configuration<ConfigurationType = Mapping<unknown>> = BaseConfigurat
|
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
255
|
}> & ConfigurationType;
|
|
256
|
-
export interface CouchDB {
|
|
256
|
+
export interface CouchDB<Type extends Mapping<unknown> = Mapping<unknown>> {
|
|
257
257
|
changesStream: ChangesStream;
|
|
258
|
-
connection: Connection
|
|
258
|
+
connection: Connection<Type>;
|
|
259
259
|
connector: Connector;
|
|
260
260
|
server: {
|
|
261
261
|
process: ChildProcess;
|
|
262
262
|
reject: (value: ProcessCloseReason) => void;
|
|
263
263
|
resolve: (reason: ProcessCloseReason) => void;
|
|
264
264
|
restart: (state: State) => Promise<void>;
|
|
265
|
-
runner: Runner;
|
|
266
265
|
start: (services: Services, configuration: Configuration) => Promise<void>;
|
|
267
266
|
stop: (services: Services, configuration: Configuration) => Promise<void>;
|
|
267
|
+
runner: Runner;
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
export type ServicePromises<Type = Mapping<unknown>> = BaseServicePromises<{
|