@unito/integration-api 0.43.2 → 0.43.4
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
|
@@ -39,6 +39,15 @@ exports.Semantic = void 0;
|
|
|
39
39
|
Semantic["UPDATED_AT"] = "updatedAt";
|
|
40
40
|
Semantic["USER"] = "user";
|
|
41
41
|
})(exports.Semantic || (exports.Semantic = {}));
|
|
42
|
+
/**
|
|
43
|
+
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
44
|
+
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
45
|
+
* the consumers of the spec for specific usage.
|
|
46
|
+
*/
|
|
47
|
+
exports.RelationSemantic = void 0;
|
|
48
|
+
(function (RelationSemantic) {
|
|
49
|
+
RelationSemantic["COMMENTS"] = "comments";
|
|
50
|
+
})(exports.RelationSemantic || (exports.RelationSemantic = {}));
|
|
42
51
|
/**
|
|
43
52
|
* An OperatorType represents an operator used in a filter.
|
|
44
53
|
*/
|
package/dist/src/types.d.ts
CHANGED
|
@@ -196,6 +196,14 @@ export declare enum Semantic {
|
|
|
196
196
|
UPDATED_AT = "updatedAt",
|
|
197
197
|
USER = "user"
|
|
198
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
201
|
+
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
202
|
+
* the consumers of the spec for specific usage.
|
|
203
|
+
*/
|
|
204
|
+
export declare enum RelationSemantic {
|
|
205
|
+
COMMENTS = "comments"
|
|
206
|
+
}
|
|
199
207
|
/**
|
|
200
208
|
* An OperatorType represents an operator used in a filter.
|
|
201
209
|
*/
|
|
@@ -272,6 +280,10 @@ export interface Relation {
|
|
|
272
280
|
* Whether the relation is searchable.
|
|
273
281
|
*/
|
|
274
282
|
searchable?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* The semantic of the relation.
|
|
285
|
+
*/
|
|
286
|
+
semantic?: RelationSemantic;
|
|
275
287
|
/**
|
|
276
288
|
* The shape of the relation.
|
|
277
289
|
*/
|
|
@@ -280,7 +292,7 @@ export interface Relation {
|
|
|
280
292
|
/**
|
|
281
293
|
* A summary of a relation.
|
|
282
294
|
*/
|
|
283
|
-
export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema'>;
|
|
295
|
+
export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema' | 'semantic'>;
|
|
284
296
|
/**
|
|
285
297
|
* A Relation Schema describes the shape of an item in a relation.
|
|
286
298
|
*/
|
package/dist/src/types.js
CHANGED
|
@@ -37,6 +37,15 @@ export var Semantic;
|
|
|
37
37
|
Semantic["UPDATED_AT"] = "updatedAt";
|
|
38
38
|
Semantic["USER"] = "user";
|
|
39
39
|
})(Semantic || (Semantic = {}));
|
|
40
|
+
/**
|
|
41
|
+
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
42
|
+
* specified semantic is expected to hold a certain type of item that can later be used by
|
|
43
|
+
* the consumers of the spec for specific usage.
|
|
44
|
+
*/
|
|
45
|
+
export var RelationSemantic;
|
|
46
|
+
(function (RelationSemantic) {
|
|
47
|
+
RelationSemantic["COMMENTS"] = "comments";
|
|
48
|
+
})(RelationSemantic || (RelationSemantic = {}));
|
|
40
49
|
/**
|
|
41
50
|
* An OperatorType represents an operator used in a filter.
|
|
42
51
|
*/
|