couchdb-web-node-plugin 1.0.582 → 1.0.584

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.582",
3
+ "version": "1.0.584",
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
@@ -31,6 +31,7 @@ export type DocumentGetMeta = PouchDB.Core.GetMeta;
31
31
  export type DocumentIDMeta = PouchDB.Core.IdMeta;
32
32
  export type DocumentRevisionIDMeta = PouchDB.Core.RevisionIdMeta;
33
33
  export type FindRequest<Type extends Mapping<unknown>> = PouchDB.Find.FindRequest<Type>;
34
+ export type GetOptions = PouchDB.Core.GetOptions;
34
35
  export type Index = PouchDB.Find.Index;
35
36
  export type DatabasePlugin = AnyFunction;
36
37
  export type AllowedRoles = (Array<string> | string | {
@@ -128,8 +129,8 @@ export type DocumentTypeMeta = {
128
129
  '-type': string;
129
130
  };
130
131
  export type BaseDocument = ChangesMeta & DocumentGetMeta & DocumentIDMeta & DocumentRevisionIDMeta & DocumentStrategyMeta & DocumentTypeMeta;
131
- export type FullDocument = BaseDocument & PlainObject;
132
- export type PartialFullDocument = Partial<BaseDocument> & PlainObject;
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>>;
133
134
  export interface SpecialPropertyNames {
134
135
  additional: '_additional';
135
136
  allowedRole: '_allowedRoles';