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/databaseHelper.d.ts +5 -4
- package/databaseHelper.js +1 -1
- package/helper.d.ts +3 -3
- package/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/type.d.ts +8 -8
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.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, '
|
|
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
|
|
57
|
+
export type Roles = (Array<string> | string | {
|
|
58
58
|
read?: Array<string> | string;
|
|
59
59
|
write?: Array<string> | string;
|
|
60
60
|
});
|
|
61
|
-
export interface
|
|
61
|
+
export interface NormalizedRoles {
|
|
62
62
|
read: Array<string>;
|
|
63
63
|
write: Array<string>;
|
|
64
64
|
}
|
|
65
|
-
export interface
|
|
66
|
-
attachments?: Mapping<
|
|
67
|
-
properties: Mapping<
|
|
65
|
+
export interface NormalizedModelRoles extends NormalizedRoles {
|
|
66
|
+
attachments?: Mapping<NormalizedRoles>;
|
|
67
|
+
properties: Mapping<NormalizedRoles>;
|
|
68
68
|
}
|
|
69
|
-
export type
|
|
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?:
|
|
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?:
|
|
138
|
+
_allowedRoles?: Roles;
|
|
139
139
|
_attachments?: Mapping<FileSpecification<AttachmentType, AdditionalSpecifications>> | null;
|
|
140
140
|
_constraintExecutions?: Array<Constraint> | Constraint;
|
|
141
141
|
_constraintExpressions?: Array<Constraint> | Constraint;
|