couchdb-web-node-plugin 1.0.812 → 1.0.814

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.812",
3
+ "version": "1.0.814",
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,10 +391,10 @@
391
391
  },
392
392
  "_timeTrackable": {
393
393
  "creationDateTime": {
394
+ "createExpression": "nowUTCTimestamp",
394
395
  "minimum": 1,
395
396
  "mutable": false,
396
397
  "nullable": false,
397
- "onCreateExpression": "nowUTCTimestamp",
398
398
  "preventVersionCreation": true,
399
399
  "type": "DateTime"
400
400
  },
@@ -402,7 +402,7 @@
402
402
  "type": "DateTime",
403
403
  "minimum": 0,
404
404
  "nullable": false,
405
- "onUpdateExpression": {
405
+ "updateExpression": {
406
406
  "__evaluate__": "`userContext.name === '${self.couchdb.admin.name}' && oldDocument ? oldDocument[name] : nowUTCTimestamp`"
407
407
  },
408
408
  "preventVersionCreation": true,
@@ -417,7 +417,7 @@
417
417
  "_userTrackable": {
418
418
  "lastUser": {
419
419
  "nullable": false,
420
- "onUpdateExpression": {
420
+ "updateExpression": {
421
421
  "__evaluate__": "`userContext.name === '${self.couchdb.admin.name}' && oldDocument ? oldDocument[name] : (userContext.name || 'unknown')`"
422
422
  },
423
423
  "preventVersionCreation": true,
@@ -470,8 +470,8 @@
470
470
  "updateStrategy": "_updateStrategy",
471
471
  "type": "-type",
472
472
  "update": {
473
- "execution": "_onUpdateExecution",
474
- "expression": "_onUpdateExpression"
473
+ "execution": "_updateExecution",
474
+ "expression": "_updateExpression"
475
475
  }
476
476
  },
477
477
  "typePattern": {
package/type.d.ts CHANGED
@@ -93,10 +93,10 @@ export interface BasePropertySpecification<Type, AdditionalSpecifications extend
93
93
  conflictingConstraintExpression?: Constraint;
94
94
  constraintExecution?: Constraint;
95
95
  constraintExpression?: Constraint;
96
- onCreateExecution?: string;
97
- onCreateExpression?: string;
98
- onUpdateExecution?: string;
99
- onUpdateExpression?: string;
96
+ createExecution?: string;
97
+ createExpression?: string;
98
+ updateExecution?: string;
99
+ updateExpression?: string;
100
100
  runUpdateHookAlways?: boolean;
101
101
  pattern?: Pattern;
102
102
  invertedPattern?: Pattern;
@@ -147,8 +147,8 @@ export interface BaseModel<AttachmentType extends Attachment = Attachment, Addit
147
147
  _minimumAggregatedSize?: number;
148
148
  _oldType?: Array<string> | string;
149
149
  _type?: Array<string> | string;
150
- _onUpdateExecution?: string;
151
- _onUpdateExpression?: string;
150
+ _updateExecution?: string;
151
+ _updateExpression?: string;
152
152
  _id: PropertySpecification<string, AdditionalSpecifications>;
153
153
  _rev: PropertySpecification<string, AdditionalSpecifications>;
154
154
  _updateStrategy?: UpdateStrategy;
@@ -198,8 +198,8 @@ export interface SpecialPropertyNames {
198
198
  minimumAggregatedSize: '_minimumAggregatedSize';
199
199
  oldType: '_oldType';
200
200
  update: {
201
- execution: '_onUpdateExecution';
202
- expression: '_onUpdateExpression';
201
+ execution: '_updateExecution';
202
+ expression: '_updateExpression';
203
203
  };
204
204
  }
205
205
  export interface PropertyNameConfiguration {