rapida-partner 1.6.0 → 1.7.0

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.
@@ -41,11 +41,6 @@ export interface IForm {
41
41
  }
42
42
  }
43
43
 
44
- // interface IFormContractGeneral {
45
- // name: string;
46
- // dataType: EFormContractDataType;
47
- // }
48
-
49
44
  interface IContractRequest {
50
45
  entity: string,
51
46
  relatedEntity?: {
@@ -67,14 +62,16 @@ interface IContractRequest {
67
62
  interface IContractRequestField {
68
63
  name: string;
69
64
  dataType: EDataType;
65
+ requiredOneOf: string[];
70
66
  isRequired?: boolean;
71
67
  foreignKey?: IContractRequestFieldForeignKey;
72
68
  isPrimaryKey?: boolean;
73
69
  minSize?: number;
74
70
  maxSize?: number;
75
- enum?: string[];
71
+ enum?: (string | number)[];
76
72
  isUnique?: boolean;
77
73
  uniqueComposedFields?: string[];
74
+ defaultValue?: string | number | boolean;
78
75
  actionsExceptions?: ("create" | "getOne" | "getAll" | "update" | "delete" | "clone")[];
79
76
  }
80
77
 
@@ -85,16 +82,6 @@ interface IContractRequestFieldForeignKey {
85
82
  fields?: IContractRequestField[];
86
83
  }
87
84
 
88
- // interface IFormContractArray {
89
- // name: string;
90
- // dataType: "array";
91
- // elements: (IFormContractGeneral | IFormContractArray)[];
92
- // }
93
-
94
- // export interface IApiRequest {
95
- // body?: (IFormContractGeneral | IFormContractArray)[];
96
- // }
97
-
98
85
  export type IFormElement =
99
86
  | IFormInput
100
87
  | IFormSelect
@@ -69,6 +69,12 @@
69
69
  "isRequired": {
70
70
  "type": "boolean"
71
71
  },
72
+ "requiredOneOf": {
73
+ "type": "array",
74
+ "items": {
75
+ "type": "string"
76
+ }
77
+ },
72
78
  "foreignKey": {
73
79
  "type": "object",
74
80
  "properties": {
@@ -116,7 +122,14 @@
116
122
  "enum": {
117
123
  "type": "array",
118
124
  "items": {
119
- "type": "string"
125
+ "oneOf": [
126
+ {
127
+ "type": "string"
128
+ },
129
+ {
130
+ "type": "number"
131
+ }
132
+ ]
120
133
  }
121
134
  },
122
135
  "isUnique": {
@@ -184,7 +197,7 @@
184
197
  "items": {
185
198
  "type": "object",
186
199
  "properties": {
187
- "identificator": {
200
+ "name": {
188
201
  "type": "string"
189
202
  },
190
203
  "fields": {