couchdb-web-node-plugin 1.0.813 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.813",
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",
@@ -96,7 +96,7 @@
96
96
  "rimraf": "^6.1.3",
97
97
  "typescript-eslint": "^8.56.1",
98
98
  "web-node": "^1.0.571",
99
- "weboptimizer": "^2.0.1649"
99
+ "weboptimizer": "^2.0.1650"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@babel/runtime": "*",
@@ -391,14 +391,10 @@
391
391
  },
392
392
  "_timeTrackable": {
393
393
  "creationDateTime": {
394
- "default": {
395
- "#": "NOTE: A default value next to create expression makes sense when migrating to time trackable entities. This way the creation date time will be set for existing documents as well.",
396
- "__evaluate__": "nowUTCTimestamp"
397
- },
394
+ "createExpression": "nowUTCTimestamp",
398
395
  "minimum": 1,
399
396
  "mutable": false,
400
397
  "nullable": false,
401
- "createExpression": "nowUTCTimestamp",
402
398
  "preventVersionCreation": true,
403
399
  "type": "DateTime"
404
400
  },
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: PropertySpecification<string, AdditionalSpecifications>;
153
- _rev: PropertySpecification<string, AdditionalSpecifications>;
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> & {