@unito/integration-api 0.43.8 → 0.43.9

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.
@@ -21,7 +21,14 @@
21
21
  "$ref": "https://unito.io/integration_api/definitions.schema.json#/$defs/relationSemantic"
22
22
  },
23
23
  "schema": {
24
- "$ref": "https://unito.io/integration_api/relationSchema.schema.json"
24
+ "anyOf": [
25
+ {
26
+ "$ref": "https://unito.io/integration_api/relationSchema.schema.json"
27
+ },
28
+ {
29
+ "const": "__self"
30
+ }
31
+ ]
25
32
  }
26
33
  }
27
34
  }
@@ -297,7 +297,24 @@ export interface Relation {
297
297
  /**
298
298
  * A summary of a relation.
299
299
  */
300
- export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema' | 'semantic'>;
300
+ export type RelationSummary = {
301
+ /**
302
+ * The main identifier of the relation.
303
+ */
304
+ name: string;
305
+ /**
306
+ * The publicly visible label of the relation.
307
+ */
308
+ label: string;
309
+ /**
310
+ * The semantic of the relation.
311
+ */
312
+ semantic?: RelationSemantic;
313
+ /**
314
+ * The shape of the relation.
315
+ */
316
+ schema: RelationSchema | '__self';
317
+ };
301
318
  /**
302
319
  * A Relation Schema describes the shape of an item in a relation.
303
320
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "0.43.8",
3
+ "version": "0.43.9",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",
@@ -22,15 +22,14 @@
22
22
  "scripts": {
23
23
  "prepublishOnly": "npm run lint && npm run test",
24
24
  "prepare": "npm run compile",
25
- "lint": "eslint --fix src test --ext .ts && prettier --write src test && npx markdownlint-cli --fix README.md",
25
+ "lint": "eslint --fix src test --ext .ts && prettier --write src test",
26
26
  "compile:esm": "tsc",
27
27
  "compile:cjs": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs",
28
28
  "compile:schemas": "mkdir -p dist/schemas && cp schemas/*.json dist/schemas/",
29
29
  "compile": "rm -rf dist && npm run compile:esm && npm run compile:cjs && npm run compile:schemas",
30
30
  "test": "NODE_ENV=test node --loader ts-node/esm --test ./test/*.test.ts",
31
31
  "test:debug": "NODE_ENV=test node --loader ts-node/esm --inspect-brk --test ./test/*.test.ts",
32
- "ci:test": "c8 npm run test",
33
- "ci:lint": "npx markdownlint-cli README.md"
32
+ "ci:test": "c8 npm run test"
34
33
  },
35
34
  "author": {
36
35
  "name": "Unito",
@@ -52,7 +51,6 @@
52
51
  "@typescript-eslint/parser": "6.x",
53
52
  "c8": "9.x",
54
53
  "eslint": "8.x",
55
- "markdownlint-cli": "0.x",
56
54
  "prettier": "3.x",
57
55
  "rollup": "4.x",
58
56
  "ts-node": "10.x",