@epilot/kanban-client 1.2.1-0 → 1.4.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.
- package/LICENSE +21 -0
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +17 -2
- package/dist/openapi.json +25 -1
- package/package.json +13 -14
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 epilot GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={330(e,r,a){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=t(a(466));r.default=n.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/kanban/board":{"post":{"operationId":"createKanbanBoard","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/kanban/boards":{"get":{"operationId":"getKanbanBoards","parameters":[{"name":"filter","in":"query","required":false}],"responses":{}}},"/v1/kanban/board/{boardId}":{"get":{"operationId":"getKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"responses":{}}},"/v1/kanban/org/default-board":{"put":{"operationId":"setDefaultKanbanBoard","parameters":[{"name":"boardId","in":"query","required":true}],"responses":{}},"delete":{"operationId":"clearDefaultKanbanBoard","responses":{}}},"/v1/kanban/query/flows:autocomplete":{"get":{"operationId":"flowsAutocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"size","in":"query"},{"name":"from","in":"query"}],"responses":{}}},"/v1/kanban/query/flows:execute":{"post":{"operationId":"executeFlowsQuery","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{},"servers":[{"url":"https://kanban.sls.epilot.io"}]}')}},r={},a=function a(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,a),o.exports}(330),t=exports;for(var n in a)t[n]=a[n];a.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ declare namespace Components {
|
|
|
46
46
|
};
|
|
47
47
|
board_filter?: /* A filter group containing one or more filter items or nested filter groups. Items are combined using the specified logical operator (AND/OR). */ BoardFilter;
|
|
48
48
|
sorting?: /* Defines how query results should be sorted. Specify a field name and sort direction. */ Sorting;
|
|
49
|
+
group_by?: /* Defines how tasks should be grouped within each swimlane. Tasks with the same group value are returned adjacently in the result set. */ GroupBy;
|
|
49
50
|
/**
|
|
50
51
|
* example:
|
|
51
52
|
* task 1
|
|
@@ -148,7 +149,7 @@ declare namespace Components {
|
|
|
148
149
|
*/
|
|
149
150
|
export type FilterOperator = "EQUALS" | "NOT_EQUALS" | "EMPTY" | "NOT_EMPTY" | "CONTAINS" | "NOT_CONTAINS" | "IS_ONE_OF" | "IS_NONE_OF" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
150
151
|
/**
|
|
151
|
-
* Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, and offset-based pagination.
|
|
152
|
+
* Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, grouping, and offset-based pagination.
|
|
152
153
|
*/
|
|
153
154
|
export interface FlowsQueryRequest {
|
|
154
155
|
/**
|
|
@@ -159,6 +160,10 @@ declare namespace Components {
|
|
|
159
160
|
* Sort the results by a specific field and direction.
|
|
160
161
|
*/
|
|
161
162
|
sorting?: /* Defines how query results should be sorted. Specify a field name and sort direction. */ Sorting;
|
|
163
|
+
/**
|
|
164
|
+
* Group tasks by a shared property within each swimlane. Grouped tasks are returned adjacently in the result set.
|
|
165
|
+
*/
|
|
166
|
+
group_by?: /* Defines how tasks should be grouped within each swimlane. Tasks with the same group value are returned adjacently in the result set. */ GroupBy;
|
|
162
167
|
/**
|
|
163
168
|
* Zero-based offset for pagination. Use with `size` to paginate through results.
|
|
164
169
|
* example:
|
|
@@ -208,6 +213,15 @@ declare namespace Components {
|
|
|
208
213
|
*/
|
|
209
214
|
total_pages?: number;
|
|
210
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Defines how tasks should be grouped within each swimlane. Tasks with the same group value are returned adjacently in the result set.
|
|
218
|
+
*/
|
|
219
|
+
export interface GroupBy {
|
|
220
|
+
/**
|
|
221
|
+
* Property to group tasks by within each swimlane
|
|
222
|
+
*/
|
|
223
|
+
field: "context_entity" | "phase";
|
|
224
|
+
}
|
|
211
225
|
/**
|
|
212
226
|
* Defines how query results should be sorted. Specify a field name and sort direction.
|
|
213
227
|
*/
|
|
@@ -286,7 +300,7 @@ declare namespace Paths {
|
|
|
286
300
|
}
|
|
287
301
|
}
|
|
288
302
|
namespace ExecuteFlowsQuery {
|
|
289
|
-
export type RequestBody = /* Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, and offset-based pagination. */ Components.Schemas.FlowsQueryRequest;
|
|
303
|
+
export type RequestBody = /* Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, grouping, and offset-based pagination. */ Components.Schemas.FlowsQueryRequest;
|
|
290
304
|
namespace Responses {
|
|
291
305
|
export type $200 = /* Paginated result set returned from a Flows query. Each item in `results` is a workflow task record with dynamic fields depending on the dataset configuration. */ Components.Schemas.FlowsQueryResult;
|
|
292
306
|
export type $400 = /* Standard error response */ Components.Schemas.Error;
|
|
@@ -741,6 +755,7 @@ export type FilterItem = Components.Schemas.FilterItem;
|
|
|
741
755
|
export type FilterOperator = Components.Schemas.FilterOperator;
|
|
742
756
|
export type FlowsQueryRequest = Components.Schemas.FlowsQueryRequest;
|
|
743
757
|
export type FlowsQueryResult = Components.Schemas.FlowsQueryResult;
|
|
758
|
+
export type GroupBy = Components.Schemas.GroupBy;
|
|
744
759
|
export type Sorting = Components.Schemas.Sorting;
|
|
745
760
|
export type Swimlane = Components.Schemas.Swimlane;
|
|
746
761
|
export type ValueType = Components.Schemas.ValueType;
|
package/dist/openapi.json
CHANGED
|
@@ -1184,6 +1184,9 @@
|
|
|
1184
1184
|
"sorting": {
|
|
1185
1185
|
"$ref": "#/components/schemas/Sorting"
|
|
1186
1186
|
},
|
|
1187
|
+
"group_by": {
|
|
1188
|
+
"$ref": "#/components/schemas/GroupBy"
|
|
1189
|
+
},
|
|
1187
1190
|
"search_query": {
|
|
1188
1191
|
"type": "string",
|
|
1189
1192
|
"example": "task 1"
|
|
@@ -1243,6 +1246,23 @@
|
|
|
1243
1246
|
"field"
|
|
1244
1247
|
]
|
|
1245
1248
|
},
|
|
1249
|
+
"GroupBy": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"description": "Defines how tasks should be grouped within each swimlane. Tasks with the same group value are returned adjacently in the result set.",
|
|
1252
|
+
"required": [
|
|
1253
|
+
"field"
|
|
1254
|
+
],
|
|
1255
|
+
"properties": {
|
|
1256
|
+
"field": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"enum": [
|
|
1259
|
+
"context_entity",
|
|
1260
|
+
"phase"
|
|
1261
|
+
],
|
|
1262
|
+
"description": "Property to group tasks by within each swimlane"
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1246
1266
|
"BoardFilter": {
|
|
1247
1267
|
"type": "object",
|
|
1248
1268
|
"description": "A filter group containing one or more filter items or nested filter groups. Items are combined using the specified logical operator (AND/OR).",
|
|
@@ -1381,7 +1401,7 @@
|
|
|
1381
1401
|
},
|
|
1382
1402
|
"FlowsQueryRequest": {
|
|
1383
1403
|
"type": "object",
|
|
1384
|
-
"description": "Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, and offset-based pagination.",
|
|
1404
|
+
"description": "Request payload for executing a query against the Flows dataset. Supports filter conditions, sorting, grouping, and offset-based pagination.",
|
|
1385
1405
|
"properties": {
|
|
1386
1406
|
"filters": {
|
|
1387
1407
|
"$ref": "#/components/schemas/BoardFilter",
|
|
@@ -1391,6 +1411,10 @@
|
|
|
1391
1411
|
"$ref": "#/components/schemas/Sorting",
|
|
1392
1412
|
"description": "Sort the results by a specific field and direction."
|
|
1393
1413
|
},
|
|
1414
|
+
"group_by": {
|
|
1415
|
+
"$ref": "#/components/schemas/GroupBy",
|
|
1416
|
+
"description": "Group tasks by a shared property within each swimlane. Grouped tasks are returned adjacently in the result set."
|
|
1417
|
+
},
|
|
1394
1418
|
"from": {
|
|
1395
1419
|
"type": "number",
|
|
1396
1420
|
"default": 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/kanban-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Client library for epilot Kanban API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,18 +21,6 @@
|
|
|
21
21
|
"sdk",
|
|
22
22
|
"kanban"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"test": "vitest",
|
|
26
|
-
"typescript": "tsc",
|
|
27
|
-
"bundle-definition": "webpack",
|
|
28
|
-
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/kanban.yaml",
|
|
29
|
-
"typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
|
|
30
|
-
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
|
-
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
32
|
-
"build:watch": "npm run build && tsc -w",
|
|
33
|
-
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
-
"lint": "biome check src"
|
|
35
|
-
},
|
|
36
24
|
"files": [
|
|
37
25
|
"*.js",
|
|
38
26
|
"*.d.ts",
|
|
@@ -68,5 +56,16 @@
|
|
|
68
56
|
"typescript": "^4.1.3",
|
|
69
57
|
"webpack": "^5.18.0",
|
|
70
58
|
"webpack-cli": "^4.4.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"test": "vitest",
|
|
62
|
+
"typescript": "tsc",
|
|
63
|
+
"bundle-definition": "webpack",
|
|
64
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/kanban.yaml",
|
|
65
|
+
"typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
|
|
66
|
+
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
67
|
+
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
68
|
+
"build:watch": "npm run build && tsc -w",
|
|
69
|
+
"lint": "biome check src"
|
|
71
70
|
}
|
|
72
|
-
}
|
|
71
|
+
}
|