couchdb-web-node-plugin 1.0.805 → 1.0.806
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 +2 -1
- package/databaseHelper.js +1 -1
- package/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
package/databaseHelper.d.ts
CHANGED
|
@@ -17,12 +17,13 @@ export declare const log: Logger;
|
|
|
17
17
|
* authorized or not.
|
|
18
18
|
* @param specialNames - Special names configuration.
|
|
19
19
|
* @param contextPath - Path of properties leading to current document.
|
|
20
|
+
* @param parentRoles - Roles of parent object when called recursively.
|
|
20
21
|
* @param toJSON - JSON stringifier.
|
|
21
22
|
* @param fromJSON - JSON parser.
|
|
22
23
|
* @returns Throws an exception if authorization is not accepted and "true"
|
|
23
24
|
* otherwise.
|
|
24
25
|
*/
|
|
25
|
-
export declare const authorize: (newDocument: Partial<Document>, oldDocument?: null | Partial<Document>, userContext?: Partial<UserContext>, securitySettings?: Partial<SecuritySettings>, modelRolesMapping?: ModelRolesMapping, read?: boolean, specialNames?: SpecialPropertyNames, contextPath?: Array<string>, toJSON?: (value: unknown) => string, fromJSON?: (value: string) => unknown) => true;
|
|
26
|
+
export declare const authorize: (newDocument: Partial<Document>, oldDocument?: null | Partial<Document>, userContext?: Partial<UserContext>, securitySettings?: Partial<SecuritySettings>, modelRolesMapping?: ModelRolesMapping, read?: boolean, specialNames?: SpecialPropertyNames, contextPath?: Array<string>, parentRoles?: Array<string>, toJSON?: (value: unknown) => string, fromJSON?: (value: string) => unknown) => true;
|
|
26
27
|
/**
|
|
27
28
|
* Represents a design document validation function for given model
|
|
28
29
|
* specification.
|