bruce-models 7.1.79 → 7.1.81
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/dist/bruce-models.es5.js +189 -11
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +183 -10
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/api.js +1 -0
- package/dist/lib/api/api.js.map +1 -1
- package/dist/lib/bruce-models.js +2 -1
- package/dist/lib/bruce-models.js.map +1 -1
- package/dist/lib/client-file/client-file.js +20 -9
- package/dist/lib/client-file/client-file.js.map +1 -1
- package/dist/lib/entity/entity-type-relation.js +180 -0
- package/dist/lib/entity/entity-type-relation.js.map +1 -0
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/dist/types/api/api.d.ts +1 -0
- package/dist/types/bruce-models.d.ts +2 -1
- package/dist/types/client-file/client-file.d.ts +4 -0
- package/dist/types/entity/entity-type-relation.d.ts +68 -0
- package/dist/types/entity/entity-type.d.ts +31 -5
- package/package.json +1 -1
|
@@ -151,7 +151,7 @@ export declare namespace EntityType {
|
|
|
151
151
|
};
|
|
152
152
|
Result?: any;
|
|
153
153
|
ExportResult?: any;
|
|
154
|
-
EntityTypeOntology?:
|
|
154
|
+
EntityTypeOntology?: IEntityTypeOntology;
|
|
155
155
|
Warnings?: string[];
|
|
156
156
|
Errors?: string[];
|
|
157
157
|
[key: string]: any;
|
|
@@ -165,7 +165,7 @@ export declare namespace EntityType {
|
|
|
165
165
|
tempFileUrl?: string;
|
|
166
166
|
clientFileId?: string;
|
|
167
167
|
clientFileUrl?: string;
|
|
168
|
-
entityTypeOntology?:
|
|
168
|
+
entityTypeOntology?: IEntityTypeOntology;
|
|
169
169
|
warnings?: string[];
|
|
170
170
|
errors?: string[];
|
|
171
171
|
raw: IExportOntologyRawRes | null;
|
|
@@ -212,6 +212,33 @@ export declare namespace EntityType {
|
|
|
212
212
|
Notes?: string;
|
|
213
213
|
[key: string]: any;
|
|
214
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Describes an Entity Type Relation record.
|
|
217
|
+
*/
|
|
218
|
+
interface IEntityTypeRelation {
|
|
219
|
+
ID?: number;
|
|
220
|
+
"A.EntityType.ID"?: string;
|
|
221
|
+
"B.EntityType.ID"?: string;
|
|
222
|
+
"EntityRelationType.ID"?: string;
|
|
223
|
+
"A.ForeignKey.AttributePath"?: string;
|
|
224
|
+
"B.ForeignKey.AttributePath"?: string;
|
|
225
|
+
"A.Cardinality.Min"?: number;
|
|
226
|
+
"A.Cardinality.Max"?: number;
|
|
227
|
+
"B.Cardinality.Min"?: number;
|
|
228
|
+
"B.Cardinality.Max"?: number;
|
|
229
|
+
EntityRelationType?: any;
|
|
230
|
+
EntityTypeA?: IType;
|
|
231
|
+
EntityTypeB?: IType;
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Entity Type ontology payload.
|
|
236
|
+
*/
|
|
237
|
+
interface IEntityTypeOntology {
|
|
238
|
+
EntityType?: IType[];
|
|
239
|
+
EntityTypeRelation?: IEntityTypeRelation[];
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
}
|
|
215
242
|
/**
|
|
216
243
|
* Entity Type-level mapping returned by the AI optimisation endpoint.
|
|
217
244
|
*/
|
|
@@ -231,7 +258,7 @@ export declare namespace EntityType {
|
|
|
231
258
|
*/
|
|
232
259
|
interface IAISuggestOntologyOptimisationSuggestedOntology {
|
|
233
260
|
EntityType?: IAISuggestOntologyOptimisationSuggestedEntityType[];
|
|
234
|
-
EntityTypeRelation?:
|
|
261
|
+
EntityTypeRelation?: IEntityTypeRelation[];
|
|
235
262
|
[key: string]: any;
|
|
236
263
|
}
|
|
237
264
|
/**
|
|
@@ -296,8 +323,7 @@ export declare namespace EntityType {
|
|
|
296
323
|
* Suggested relation item returned in the pending-action result.
|
|
297
324
|
* This endpoint may evolve, so unknown fields are preserved.
|
|
298
325
|
*/
|
|
299
|
-
interface ISuggestedRelation {
|
|
300
|
-
[key: string]: any;
|
|
326
|
+
interface ISuggestedRelation extends IEntityTypeRelation {
|
|
301
327
|
}
|
|
302
328
|
/**
|
|
303
329
|
* Normalized pending-action result payload produced by FindSuggestedRelations.
|