@unito/integration-api 0.43.3 → 0.43.5
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/src/index.cjs
CHANGED
|
@@ -47,6 +47,7 @@ exports.Semantic = void 0;
|
|
|
47
47
|
exports.RelationSemantic = void 0;
|
|
48
48
|
(function (RelationSemantic) {
|
|
49
49
|
RelationSemantic["COMMENTS"] = "comments";
|
|
50
|
+
RelationSemantic["USERS"] = "users";
|
|
50
51
|
})(exports.RelationSemantic || (exports.RelationSemantic = {}));
|
|
51
52
|
/**
|
|
52
53
|
* An OperatorType represents an operator used in a filter.
|
package/dist/src/types.d.ts
CHANGED
|
@@ -202,7 +202,8 @@ export declare enum Semantic {
|
|
|
202
202
|
* the consumers of the spec for specific usage.
|
|
203
203
|
*/
|
|
204
204
|
export declare enum RelationSemantic {
|
|
205
|
-
COMMENTS = "comments"
|
|
205
|
+
COMMENTS = "comments",
|
|
206
|
+
USERS = "users"
|
|
206
207
|
}
|
|
207
208
|
/**
|
|
208
209
|
* An OperatorType represents an operator used in a filter.
|
|
@@ -280,6 +281,10 @@ export interface Relation {
|
|
|
280
281
|
* Whether the relation is searchable.
|
|
281
282
|
*/
|
|
282
283
|
searchable?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* The semantic of the relation.
|
|
286
|
+
*/
|
|
287
|
+
semantic?: RelationSemantic;
|
|
283
288
|
/**
|
|
284
289
|
* The shape of the relation.
|
|
285
290
|
*/
|
|
@@ -288,7 +293,7 @@ export interface Relation {
|
|
|
288
293
|
/**
|
|
289
294
|
* A summary of a relation.
|
|
290
295
|
*/
|
|
291
|
-
export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema'>;
|
|
296
|
+
export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema' | 'semantic'>;
|
|
292
297
|
/**
|
|
293
298
|
* A Relation Schema describes the shape of an item in a relation.
|
|
294
299
|
*/
|
package/dist/src/types.js
CHANGED
|
@@ -45,6 +45,7 @@ export var Semantic;
|
|
|
45
45
|
export var RelationSemantic;
|
|
46
46
|
(function (RelationSemantic) {
|
|
47
47
|
RelationSemantic["COMMENTS"] = "comments";
|
|
48
|
+
RelationSemantic["USERS"] = "users";
|
|
48
49
|
})(RelationSemantic || (RelationSemantic = {}));
|
|
49
50
|
/**
|
|
50
51
|
* An OperatorType represents an operator used in a filter.
|