couchdb-web-node-plugin 1.0.744 → 1.0.745
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 -3
- package/databaseHelper.js +1 -1
- package/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +8 -12
package/databaseHelper.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { AllowedModelRolesMapping, Attachment, BaseModelConfiguration, Document,
|
|
|
4
4
|
* WebNode plugin interface with all provided hooks.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Authorizes given document update against given mapping of allowed roles for
|
|
8
|
+
* writing into corresponding model instances.
|
|
9
9
|
* @param newDocument - Updated document.
|
|
10
10
|
* @param oldDocument - If an existing document should be updated its given
|
|
11
11
|
* here.
|
|
@@ -22,7 +22,7 @@ import { AllowedModelRolesMapping, Attachment, BaseModelConfiguration, Document,
|
|
|
22
22
|
* @returns Throws an exception if authorisation is not accepted and "true"
|
|
23
23
|
* otherwise.
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const authorize: (newDocument: Partial<Document>, oldDocument?: null | Partial<Document>, userContext?: Partial<UserContext>, _securitySettings?: Partial<SecuritySettings>, allowedModelRolesMapping?: AllowedModelRolesMapping, idPropertyName?: string, typePropertyName?: string, designDocumentNamePrefix?: string, read?: boolean) => true;
|
|
26
26
|
/**
|
|
27
27
|
* Represents a design document validation function for given model
|
|
28
28
|
* specification.
|