@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.
@@ -42,6 +42,7 @@
42
42
  "type": ["string", "null"],
43
43
  "enum": [
44
44
  "comments",
45
+ "users",
45
46
  null
46
47
  ]
47
48
  },
@@ -28,7 +28,7 @@
28
28
  "searchable": {
29
29
  "type": "boolean"
30
30
  },
31
- "relationSemantic": {
31
+ "semantic": {
32
32
  "$ref": "https://unito.io/integration_api/definitions.schema.json#/$defs/relationSemantic"
33
33
  },
34
34
  "schema": {
@@ -17,7 +17,7 @@
17
17
  "minLength": 1,
18
18
  "maxLength": 100
19
19
  },
20
- "relationSemantic": {
20
+ "semantic": {
21
21
  "$ref": "https://unito.io/integration_api/definitions.schema.json#/$defs/relationSemantic"
22
22
  },
23
23
  "schema": {
@@ -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.
@@ -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "0.43.3",
3
+ "version": "0.43.5",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",