couchdb-web-node-plugin 1.0.804 → 1.0.805

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.804",
3
+ "version": "1.0.805",
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",
@@ -234,7 +234,7 @@
234
234
  "adminUserConfigurationPath": "_config/admins",
235
235
  "configuration": {
236
236
  "configPath": {
237
- "__evaluate__": "path.resolve(self.couchdb.path, 'database.json')"
237
+ "__evaluate__": "path.resolve(self.couchdb.path, 'configuration.json')"
238
238
  },
239
239
  "logPath": "/dev/stdout",
240
240
  "prefix": {
package/type.d.ts CHANGED
@@ -54,19 +54,19 @@ export type PutDocument<Type extends object> = Omit<PouchDB.Core.PutDocument<Typ
54
54
  };
55
55
  export type Index = PouchDB.Find.Index;
56
56
  export type DatabasePlugin = AnyFunction;
57
- export type AllowedRoles = (Array<string> | string | {
57
+ export type Roles = (Array<string> | string | {
58
58
  read?: Array<string> | string;
59
59
  write?: Array<string> | string;
60
60
  });
61
- export interface NormalizedAllowedRoles {
61
+ export interface NormalizedRoles {
62
62
  read: Array<string>;
63
63
  write: Array<string>;
64
64
  }
65
- export interface NormalizedAllowedModelRoles extends NormalizedAllowedRoles {
66
- attachments?: Mapping<NormalizedAllowedRoles>;
67
- properties: Mapping<NormalizedAllowedRoles>;
65
+ export interface NormalizedModelRoles extends NormalizedRoles {
66
+ attachments?: Mapping<NormalizedRoles>;
67
+ properties: Mapping<NormalizedRoles>;
68
68
  }
69
- export type AllowedModelRolesMapping = Mapping<NormalizedAllowedModelRoles>;
69
+ export type ModelRolesMapping = Mapping<NormalizedModelRoles>;
70
70
  export interface Constraint {
71
71
  description?: string;
72
72
  evaluation: string;
@@ -84,7 +84,7 @@ export type NormalizedSelection = Array<SelectionOption>;
84
84
  export type Selection = Array<SelectionOption> | Array<Primitive> | Mapping;
85
85
  export type Pattern = Array<RegExp | string> | RegExp | string;
86
86
  export interface BasePropertySpecification<Type, AdditionalSpecifications extends object> {
87
- allowedRoles?: AllowedRoles;
87
+ allowedRoles?: Roles;
88
88
  updateStrategy?: UpdateStrategy;
89
89
  arrayConstraintExecution?: Constraint;
90
90
  arrayConstraintExpression?: Constraint;
@@ -135,7 +135,7 @@ export interface FileSpecification<Type extends Attachment = Attachment, Additio
135
135
  }
136
136
  export interface BaseModel<AttachmentType extends Attachment = Attachment, AdditionalSpecifications extends object = object, AdditionalPropertiesType = unknown> {
137
137
  _additional?: PropertySpecification<AdditionalPropertiesType, AdditionalSpecifications>;
138
- _allowedRoles?: AllowedRoles;
138
+ _allowedRoles?: Roles;
139
139
  _attachments?: Mapping<FileSpecification<AttachmentType, AdditionalSpecifications>> | null;
140
140
  _constraintExecutions?: Array<Constraint> | Constraint;
141
141
  _constraintExpressions?: Array<Constraint> | Constraint;