couchdb-web-node-plugin 1.0.752 → 1.0.754

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.752",
3
+ "version": "1.0.754",
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",
@@ -230,7 +230,7 @@
230
230
  "since": "now",
231
231
  "timeout": false
232
232
  },
233
- "updateViewsChangesStream": {
233
+ "updateMaterializedViewsChangesStream": {
234
234
  "include_docs": true,
235
235
  "live": true,
236
236
  "return_docs": false,
@@ -347,6 +347,9 @@
347
347
  ]
348
348
  }
349
349
  },
350
+ "_materializedView": {
351
+ "_allowedRoles": []
352
+ },
350
353
  "_stringMapping": {
351
354
  "_additional": {
352
355
  "declaration": "Templatedata",
@@ -382,9 +385,6 @@
382
385
  "__evaluate__": "`userContext.name || '${self.couchdb.admin.name}'`"
383
386
  }
384
387
  }
385
- },
386
- "_view": {
387
- "_allowedRoles": []
388
388
  }
389
389
  },
390
390
  "property": {
@@ -490,7 +490,7 @@
490
490
  "password": "admin"
491
491
  },
492
492
  "users": {},
493
- "views": {}
493
+ "materializedViews": {}
494
494
  }
495
495
  },
496
496
  "webOptimizer": {
package/type.d.ts CHANGED
@@ -271,7 +271,7 @@ export interface CoreConfiguration<Type extends object = Mapping<unknown>, Attac
271
271
  maximumRetryWaitingTimeInSeconds: number;
272
272
  };
273
273
  numberOfParallelChangesRunner: number;
274
- updateViewsChangesStream: ChangesStreamOptions;
274
+ updateMaterializedViewsChangesStream: ChangesStreamOptions;
275
275
  connector: ConnectorConfiguration;
276
276
  security: {
277
277
  _default: SecuritySettings;
@@ -314,8 +314,8 @@ export type Configuration<ConfigurationType = Mapping<unknown>> = BaseConfigurat
314
314
  export interface CouchDB<Type extends object = Mapping<unknown>> {
315
315
  changesStream: ChangesStream;
316
316
  lastChangesSequenceIdentifier?: number | string;
317
- updateViewsChangesStream?: ChangesStream;
318
- lastUpdateViewsChangesSequenceIdentifier?: number | string;
317
+ updateMaterializedViewsChangesStream?: ChangesStream;
318
+ lastUpdateMaterializedViewsChangesSequenceIdentifier?: number | string;
319
319
  connection: Connection<Type>;
320
320
  connector: Connector;
321
321
  server: {
@@ -373,7 +373,6 @@ export interface PluginHandler extends BasePluginHandler {
373
373
  body: FindRequest<PlainObject>;
374
374
  };
375
375
  response: HTTP1ServerResponse;
376
- result: FindResponse<object>;
377
376
  }>): Promise<FindResponse<object> | undefined>;
378
377
  /**
379
378
  * Hook before registering pouchdb routes into the express server
@@ -472,7 +471,7 @@ export type User = BaseDocument & {
472
471
  password: string;
473
472
  roles: Array<string>;
474
473
  };
475
- export type ViewDocument = BaseDocument & Record<string, unknown>;
474
+ export type MaterializedViewDocument = BaseDocument & Record<string, unknown>;
476
475
  export interface Interval {
477
476
  end: number | string;
478
477
  start: number | string;