couchdb-web-node-plugin 1.0.548 → 1.0.550

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 +22 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "couchdb-web-node-plugin",
3
- "version": "1.0.548",
3
+ "version": "1.0.550",
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;
@@ -68,35 +70,38 @@ export interface PropertySpecification {
68
70
  conflictingConstraintExpression?: Constraint | null;
69
71
  constraintExecution?: Constraint | null;
70
72
  constraintExpression?: Constraint | null;
73
+ onCreateExecution?: null | string;
74
+ onCreateExpression?: null | string;
75
+ onUpdateExecution?: null | string;
76
+ onUpdateExpression?: null | string;
77
+ regularExpressionPattern?: null | string;
78
+ invertedRegularExpressionPattern?: null | string;
71
79
  contentTypeRegularExpressionPattern?: null | string;
72
- default?: unknown;
73
- emptyEqualsToNull?: boolean | null;
74
- index?: boolean | null;
75
80
  invertedContentTypeRegularExpressionPattern?: null | string;
76
- invertedRegularExpressionPattern?: null | string;
77
81
  maximum?: null | number;
78
- maximumAggregatedSize?: null | number;
79
- maximumLength?: null | number;
80
- maximumNumber?: null | number;
81
- maximumSize?: null | number;
82
82
  minimum?: null | number;
83
+ maximumAggregatedSize?: null | number;
83
84
  minimumAggregatedSize?: null | number;
85
+ maximumLength?: null | number;
84
86
  minimumLength?: null | number;
87
+ maximumNumber?: null | number;
85
88
  minimumNumber?: null | number;
89
+ maximumSize?: null | number;
86
90
  minimumSize?: null | number;
87
91
  mutable?: boolean | null;
88
92
  nullable?: boolean | null;
89
- onCreateExecution?: null | string;
90
- onCreateExpression?: null | string;
91
- oldName?: Array<string> | null | string;
92
- onUpdateExecution?: null | string;
93
- onUpdateExpression?: null | string;
94
- regularExpressionPattern?: null | string;
93
+ writable?: boolean | null;
95
94
  selection?: Array<unknown> | Array<SelectionMapping> | Mapping<unknown> | null;
96
- trim?: boolean | null;
97
95
  type?: TypeSpecification | null;
96
+ default?: unknown;
97
+ emptyEqualsToNull?: boolean | null;
98
+ trim?: boolean | null;
99
+ name?: string;
100
+ declaration?: string;
101
+ description?: string;
102
+ index?: boolean | null;
103
+ oldName?: Array<string> | null | string;
98
104
  value?: unknown;
99
- writable?: boolean | null;
100
105
  }
101
106
  export interface FileSpecification extends PropertySpecification {
102
107
  fileName?: PropertySpecification;
@@ -117,7 +122,6 @@ export interface BaseModel {
117
122
  }
118
123
  export type Model = BaseModel & Mapping<PropertySpecification>;
119
124
  export type Models = Mapping<Model>;
120
- export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
121
125
  export type UpdateStrategy = '' | 'fillUp' | 'incremental' | 'migrate';
122
126
  export type DocumentContent = Array<DocumentContent> | PlainObject<Primitive> | Primitive;
123
127
  export type DocumentStrategyMeta = {