@unito/integration-api 0.43.8 → 0.43.10

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
+ "subtasks",
45
46
  "users",
46
47
  null
47
48
  ]
@@ -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
  }
@@ -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["SUBTASKS"] = "subtasks";
50
51
  RelationSemantic["USERS"] = "users";
51
52
  })(exports.RelationSemantic || (exports.RelationSemantic = {}));
52
53
  /**
@@ -207,6 +207,7 @@ export declare enum Semantic {
207
207
  */
208
208
  export declare enum RelationSemantic {
209
209
  COMMENTS = "comments",
210
+ SUBTASKS = "subtasks",
210
211
  USERS = "users"
211
212
  }
212
213
  /**
@@ -297,7 +298,24 @@ export interface Relation {
297
298
  /**
298
299
  * A summary of a relation.
299
300
  */
300
- export type RelationSummary = Pick<Relation, 'name' | 'label' | 'schema' | 'semantic'>;
301
+ export type RelationSummary = {
302
+ /**
303
+ * The main identifier of the relation.
304
+ */
305
+ name: string;
306
+ /**
307
+ * The publicly visible label of the relation.
308
+ */
309
+ label: string;
310
+ /**
311
+ * The semantic of the relation.
312
+ */
313
+ semantic?: RelationSemantic;
314
+ /**
315
+ * The shape of the relation.
316
+ */
317
+ schema: RelationSchema | '__self';
318
+ };
301
319
  /**
302
320
  * A Relation Schema describes the shape of an item in a relation.
303
321
  */
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["SUBTASKS"] = "subtasks";
48
49
  RelationSemantic["USERS"] = "users";
49
50
  })(RelationSemantic || (RelationSemantic = {}));
50
51
  /**
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.10",
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",