@kana-ai/edgar-ext-linear 0.0.0-stage → 0.1.0

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.
Files changed (65) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +198 -2
  3. package/dist/src/api/client.d.ts +21 -0
  4. package/dist/src/api/client.js +53 -0
  5. package/dist/src/api/failures.d.ts +11 -0
  6. package/dist/src/api/failures.js +37 -0
  7. package/dist/src/index.d.ts +3 -0
  8. package/dist/src/index.js +19 -0
  9. package/dist/src/schemas/config.d.ts +25 -0
  10. package/dist/src/schemas/config.js +37 -0
  11. package/dist/src/schemas/linear.d.ts +116 -0
  12. package/dist/src/schemas/linear.js +57 -0
  13. package/dist/src/schemas/tools.d.ts +169 -0
  14. package/dist/src/schemas/tools.js +147 -0
  15. package/dist/src/tracker/assignee.d.ts +15 -0
  16. package/dist/src/tracker/assignee.js +58 -0
  17. package/dist/src/tracker/cards.d.ts +33 -0
  18. package/dist/src/tracker/cards.js +372 -0
  19. package/dist/src/tracker/comments.d.ts +11 -0
  20. package/dist/src/tracker/comments.js +62 -0
  21. package/dist/src/tracker/description.d.ts +19 -0
  22. package/dist/src/tracker/description.js +55 -0
  23. package/dist/src/tracker/hand-back.d.ts +8 -0
  24. package/dist/src/tracker/hand-back.js +94 -0
  25. package/dist/src/tracker/port.d.ts +2 -0
  26. package/dist/src/tracker/port.js +46 -0
  27. package/dist/src/tracker/states.d.ts +21 -0
  28. package/dist/src/tracker/states.js +82 -0
  29. package/dist/src/tracker/tools.d.ts +142 -0
  30. package/dist/src/tracker/tools.js +130 -0
  31. package/dist/src/tracker/transitions.d.ts +13 -0
  32. package/dist/src/tracker/transitions.js +94 -0
  33. package/edgar-extension.json +208 -0
  34. package/package.json +41 -3
  35. package/schemas/assign.in.json +15 -0
  36. package/schemas/assign.out.json +14 -0
  37. package/schemas/batch_cards.in.json +27 -0
  38. package/schemas/batch_cards.out.json +37 -0
  39. package/schemas/close.in.json +14 -0
  40. package/schemas/close.out.json +10 -0
  41. package/schemas/comment.in.json +19 -0
  42. package/schemas/comment.out.json +10 -0
  43. package/schemas/config.json +94 -0
  44. package/schemas/count_sighting.in.json +17 -0
  45. package/schemas/count_sighting.out.json +10 -0
  46. package/schemas/create_card.in.json +108 -0
  47. package/schemas/create_card.out.json +13 -0
  48. package/schemas/find_assignee.in.json +15 -0
  49. package/schemas/find_assignee.out.json +10 -0
  50. package/schemas/find_cards.in.json +18 -0
  51. package/schemas/find_cards.out.json +33 -0
  52. package/schemas/find_description.in.json +15 -0
  53. package/schemas/find_description.out.json +10 -0
  54. package/schemas/hand_back.in.json +11 -0
  55. package/schemas/hand_back.out.json +18 -0
  56. package/schemas/move.in.json +15 -0
  57. package/schemas/move.out.json +10 -0
  58. package/schemas/release_follow_ups.in.json +15 -0
  59. package/schemas/release_follow_ups.out.json +13 -0
  60. package/schemas/restore_assignee.in.json +20 -0
  61. package/schemas/restore_assignee.out.json +10 -0
  62. package/schemas/restore_description.in.json +20 -0
  63. package/schemas/restore_description.out.json +10 -0
  64. package/schemas/update_description.in.json +15 -0
  65. package/schemas/update_description.out.json +14 -0
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 1024,
9
+ "description": "words of the fault, such as the error message, the endpoint or the service"
10
+ },
11
+ "except": {
12
+ "description": "the card you work on; it and each card made after it are left out",
13
+ "type": "string",
14
+ "minLength": 1
15
+ }
16
+ },
17
+ "required": ["text"]
18
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "cards": {
6
+ "maxItems": 10,
7
+ "type": "array",
8
+ "items": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string"
16
+ },
17
+ "url": {
18
+ "type": "string"
19
+ },
20
+ "state": {
21
+ "type": "string",
22
+ "description": "the engine state of the card, or its column name"
23
+ },
24
+ "created_at": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": ["id", "title", "url", "state", "created_at"]
29
+ }
30
+ }
31
+ },
32
+ "required": ["cards"]
33
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "description": {
10
+ "type": "string",
11
+ "description": "the new description; the card's edgar:v0 block is kept"
12
+ }
13
+ },
14
+ "required": ["card", "description"]
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ }
9
+ },
10
+ "required": ["card"]
11
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ },
8
+ "to": {
9
+ "type": "string",
10
+ "description": "the display name of the person the card is now assigned to"
11
+ },
12
+ "previous": {
13
+ "type": "string",
14
+ "description": "the id of the user the card was assigned to before, or an empty text for nobody"
15
+ }
16
+ },
17
+ "required": ["id", "to", "previous"]
18
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "column": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ }
13
+ },
14
+ "required": ["card", "column"]
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "column": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["column"]
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "pull_request": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ }
13
+ },
14
+ "required": ["card", "pull_request"]
15
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "released": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string"
9
+ }
10
+ }
11
+ },
12
+ "required": ["released"]
13
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "stage_output": {
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "previous": {
13
+ "type": "string"
14
+ }
15
+ },
16
+ "required": ["id"]
17
+ }
18
+ },
19
+ "required": ["stage_output"]
20
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "stage_output": {
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "minLength": 1
11
+ },
12
+ "previous": {
13
+ "type": "string"
14
+ }
15
+ },
16
+ "required": ["id"]
17
+ }
18
+ },
19
+ "required": ["stage_output"]
20
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ }
8
+ },
9
+ "required": ["id"]
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "card": {
6
+ "type": "string",
7
+ "minLength": 1
8
+ },
9
+ "description": {
10
+ "type": "string",
11
+ "description": "the new description; the card's edgar:v0 block is kept"
12
+ }
13
+ },
14
+ "required": ["card", "description"]
15
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string"
7
+ },
8
+ "previous": {
9
+ "description": "the description before the write, which restore_description puts back; none when the card already read so",
10
+ "type": "string"
11
+ }
12
+ },
13
+ "required": ["id"]
14
+ }