couchdb-web-node-plugin 1.0.814 → 1.0.815
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.js +1 -1
- package/helper.d.ts +11 -6
- package/helper.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/type.d.ts +3 -3
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.815",
|
|
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",
|
package/type.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export interface Constraint {
|
|
|
73
73
|
}
|
|
74
74
|
export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
|
|
75
75
|
export type PrimitiveType = typeof PrimitiveTypes[number];
|
|
76
|
-
export type Type = boolean | number | string;
|
|
76
|
+
export type Type = boolean | number | string | Model;
|
|
77
77
|
export type TypeSpecification = Array<Type> | Array<Array<Type>> | Type;
|
|
78
78
|
export type ConstraintKey = 'arrayConstraintExecution' | 'arrayConstraintExpression' | 'conflictingConstraintExecution' | 'conflictingConstraintExpression' | 'constraintExecution' | 'constraintExpression';
|
|
79
79
|
export interface SelectionOption {
|
|
@@ -149,8 +149,8 @@ export interface BaseModel<AttachmentType extends Attachment = Attachment, Addit
|
|
|
149
149
|
_type?: Array<string> | string;
|
|
150
150
|
_updateExecution?: string;
|
|
151
151
|
_updateExpression?: string;
|
|
152
|
-
_id
|
|
153
|
-
_rev
|
|
152
|
+
_id?: PropertySpecification<string, AdditionalSpecifications>;
|
|
153
|
+
_rev?: PropertySpecification<string, AdditionalSpecifications>;
|
|
154
154
|
_updateStrategy?: UpdateStrategy;
|
|
155
155
|
}
|
|
156
156
|
export type Model<Type extends object | undefined = object, AttachmentType extends Attachment = Attachment, AdditionalSpecifications extends object = object, AdditionalPropertiesType = unknown> = BaseModel<AttachmentType, AdditionalSpecifications, AdditionalPropertiesType> & {
|