couchdb-web-node-plugin 1.0.799 → 1.0.800
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 +3 -7
- package/databaseHelper.js +1 -1
- package/helper.d.ts +49 -10
- package/helper.js +1 -1
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/loadExpress.d.ts +24 -0
- package/loadExpress.js +1 -0
- package/package.json +80 -49
- package/type.d.ts +20 -5
package/databaseHelper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Logger, Mapping } from 'clientnode';
|
|
2
|
-
import { AllowedModelRolesMapping, Attachment, BaseModelConfiguration, Document, Models, PartialFullDocument, SecuritySettings, UserContext } from './type';
|
|
2
|
+
import { AllowedModelRolesMapping, Attachment, BaseModelConfiguration, Document, Models, PartialFullDocument, SecuritySettings, SpecialPropertyNames, UserContext } from './type';
|
|
3
3
|
/**
|
|
4
4
|
* WebNode plugin interface with all provided hooks.
|
|
5
5
|
*/
|
|
@@ -13,18 +13,14 @@ export declare const log: Logger;
|
|
|
13
13
|
* @param userContext - Contains meta information about currently acting user.
|
|
14
14
|
* @param securitySettings - Database security settings.
|
|
15
15
|
* @param allowedModelRolesMapping - Allowed roles for given models.
|
|
16
|
-
* @param idPropertyName - Property name indicating the id field name.
|
|
17
|
-
* @param typePropertyName - Property name indicating to which model a document
|
|
18
|
-
* belongs to.
|
|
19
|
-
* @param designDocumentNamePrefix - Document name prefix indicating a design
|
|
20
|
-
* document.
|
|
21
16
|
* @param read - Indicates whether a read or write of given document should be
|
|
22
17
|
* authorized or not.
|
|
18
|
+
* @param specialNames - Special names configuration.
|
|
23
19
|
* @param contextPath - Path of properties leading to current document.
|
|
24
20
|
* @returns Throws an exception if authorisation is not accepted and "true"
|
|
25
21
|
* otherwise.
|
|
26
22
|
*/
|
|
27
|
-
export declare const authorize: (newDocument: Partial<Document>, oldDocument?: null | Partial<Document>, userContext?: Partial<UserContext>, securitySettings?: Partial<SecuritySettings>, allowedModelRolesMapping?: AllowedModelRolesMapping,
|
|
23
|
+
export declare const authorize: (newDocument: Partial<Document>, oldDocument?: null | Partial<Document>, userContext?: Partial<UserContext>, securitySettings?: Partial<SecuritySettings>, allowedModelRolesMapping?: AllowedModelRolesMapping, read?: boolean, specialNames?: SpecialPropertyNames, contextPath?: Array<string>) => true;
|
|
28
24
|
/**
|
|
29
25
|
* Represents a design document validation function for given model
|
|
30
26
|
* specification.
|