couchdb-web-node-plugin 1.0.549 → 1.0.551

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.549",
3
+ "version": "1.0.551",
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
@@ -53,8 +53,10 @@ export interface Constraint {
53
53
  description?: null | string;
54
54
  evaluation: string;
55
55
  }
56
- export type Type = string | 'any' | 'boolean' | 'integer' | 'number' | 'string' | 'DateTime';
56
+ export type PrimitiveType = 'boolean' | 'integer' | 'number' | 'string' | 'DateTime';
57
+ export type Type = 'any' | PrimitiveType | string;
57
58
  export type TypeSpecification = Array<Type> | Type;
59
+ export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
58
60
  export type ConstraintKey = 'arrayConstraintExecution' | 'arrayConstraintExpression' | 'conflictingConstraintExecution' | 'conflictingConstraintExpression' | 'constraintExecution' | 'constraintExpression';
59
61
  export interface SelectionMapping {
60
62
  label: string;
@@ -120,7 +122,6 @@ export interface BaseModel {
120
122
  }
121
123
  export type Model = BaseModel & Mapping<PropertySpecification>;
122
124
  export type Models = Mapping<Model>;
123
- export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
124
125
  export type UpdateStrategy = '' | 'fillUp' | 'incremental' | 'migrate';
125
126
  export type DocumentContent = Array<DocumentContent> | PlainObject<Primitive> | Primitive;
126
127
  export type DocumentStrategyMeta = {