rapida-partner 1.6.0 → 1.6.2

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": "rapida-partner",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "index.ts",
6
6
  "files": [
@@ -72,9 +72,10 @@ interface IContractRequestField {
72
72
  isPrimaryKey?: boolean;
73
73
  minSize?: number;
74
74
  maxSize?: number;
75
- enum?: string[];
75
+ enum?: (string | number)[];
76
76
  isUnique?: boolean;
77
77
  uniqueComposedFields?: string[];
78
+ defaultValue?: string | number | boolean;
78
79
  actionsExceptions?: ("create" | "getOne" | "getAll" | "update" | "delete" | "clone")[];
79
80
  }
80
81
 
@@ -116,7 +116,14 @@
116
116
  "enum": {
117
117
  "type": "array",
118
118
  "items": {
119
- "type": "string"
119
+ "oneOf": [
120
+ {
121
+ "type": "string"
122
+ },
123
+ {
124
+ "type": "number"
125
+ }
126
+ ]
120
127
  }
121
128
  },
122
129
  "isUnique": {
@@ -184,7 +191,7 @@
184
191
  "items": {
185
192
  "type": "object",
186
193
  "properties": {
187
- "identificator": {
194
+ "name": {
188
195
  "type": "string"
189
196
  },
190
197
  "fields": {