@epilot/kanban-client 1.0.1 → 1.2.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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +21 -0
- package/dist/openapi.d.ts +105 -3
- package/dist/openapi.json +133 -4
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={390:function(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":{"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":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"responses":{}}},"/v1/kanban/query/flows:autocomplete":{"get":{"operationId":"flowsAutocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"size","in":"query"}],"responses":{}}},"/v1/kanban/query/flows:execute":{"post":{"operationId":"executeFlowsQuery","requestBody":{"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}(390),t=exports;for(var n in a)t[n]=a[n];a.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={390:function(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":{"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":{"content":{"application/json":{}}},"responses":{}},"patch":{"operationId":"patchKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"requestBody":{"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":{"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}(390),t=exports;for(var n in a)t[n]=a[n];a.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
|
@@ -85,6 +85,23 @@
|
|
|
85
85
|
"responses": {}
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
+
"/v1/kanban/org/default-board": {
|
|
89
|
+
"put": {
|
|
90
|
+
"operationId": "setDefaultKanbanBoard",
|
|
91
|
+
"parameters": [
|
|
92
|
+
{
|
|
93
|
+
"name": "boardId",
|
|
94
|
+
"in": "query",
|
|
95
|
+
"required": true
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"responses": {}
|
|
99
|
+
},
|
|
100
|
+
"delete": {
|
|
101
|
+
"operationId": "clearDefaultKanbanBoard",
|
|
102
|
+
"responses": {}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
88
105
|
"/v1/kanban/query/flows:autocomplete": {
|
|
89
106
|
"get": {
|
|
90
107
|
"operationId": "flowsAutocomplete",
|
|
@@ -101,6 +118,10 @@
|
|
|
101
118
|
{
|
|
102
119
|
"name": "size",
|
|
103
120
|
"in": "query"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "from",
|
|
124
|
+
"in": "query"
|
|
104
125
|
}
|
|
105
126
|
],
|
|
106
127
|
"responses": {}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ declare namespace Components {
|
|
|
29
29
|
updated_by?: string;
|
|
30
30
|
shared_with?: string[];
|
|
31
31
|
shared_with_org?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Array of user IDs who have full ownership rights for this board (view, edit, delete)
|
|
34
|
+
*/
|
|
35
|
+
owners?: string[];
|
|
32
36
|
config: {
|
|
33
37
|
/**
|
|
34
38
|
* example:
|
|
@@ -75,6 +79,10 @@ declare namespace Components {
|
|
|
75
79
|
updated_by?: string;
|
|
76
80
|
shared_with?: string[];
|
|
77
81
|
shared_with_org?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Array of user IDs who have full ownership rights for this board (view, edit, delete)
|
|
84
|
+
*/
|
|
85
|
+
owners?: string[];
|
|
78
86
|
}
|
|
79
87
|
/**
|
|
80
88
|
* Dynamic date keywords that resolve to actual dates at runtime
|
|
@@ -165,6 +173,20 @@ declare namespace Components {
|
|
|
165
173
|
}
|
|
166
174
|
}
|
|
167
175
|
declare namespace Paths {
|
|
176
|
+
namespace ClearDefaultKanbanBoard {
|
|
177
|
+
namespace Responses {
|
|
178
|
+
export interface $200 {
|
|
179
|
+
message?: string;
|
|
180
|
+
default_board_id?: string | null;
|
|
181
|
+
}
|
|
182
|
+
export interface $401 {
|
|
183
|
+
}
|
|
184
|
+
export interface $403 {
|
|
185
|
+
}
|
|
186
|
+
export interface $500 {
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
168
190
|
namespace CreateKanbanBoard {
|
|
169
191
|
export type RequestBody = Components.Schemas.Board;
|
|
170
192
|
namespace Responses {
|
|
@@ -212,6 +234,7 @@ declare namespace Paths {
|
|
|
212
234
|
* name
|
|
213
235
|
*/
|
|
214
236
|
export type Attribute = string;
|
|
237
|
+
export type From = number;
|
|
215
238
|
export type Input = string;
|
|
216
239
|
export type Size = number;
|
|
217
240
|
}
|
|
@@ -223,6 +246,7 @@ declare namespace Paths {
|
|
|
223
246
|
*/
|
|
224
247
|
Parameters.Attribute;
|
|
225
248
|
size?: Parameters.Size;
|
|
249
|
+
from?: Parameters.From;
|
|
226
250
|
}
|
|
227
251
|
namespace Responses {
|
|
228
252
|
export interface $200 {
|
|
@@ -232,9 +256,15 @@ declare namespace Paths {
|
|
|
232
256
|
* "value"
|
|
233
257
|
* ]
|
|
234
258
|
*/
|
|
235
|
-
results
|
|
259
|
+
results: (string | boolean | {
|
|
236
260
|
[name: string]: any;
|
|
237
261
|
})[];
|
|
262
|
+
/**
|
|
263
|
+
* Total number of matching items available
|
|
264
|
+
* example:
|
|
265
|
+
* 42
|
|
266
|
+
*/
|
|
267
|
+
hits: number;
|
|
238
268
|
}
|
|
239
269
|
}
|
|
240
270
|
}
|
|
@@ -294,6 +324,10 @@ declare namespace Paths {
|
|
|
294
324
|
description?: string;
|
|
295
325
|
shared_with?: string[];
|
|
296
326
|
shared_with_org?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Array of user IDs who have full ownership rights for this board (view, edit, delete)
|
|
329
|
+
*/
|
|
330
|
+
owners?: string[];
|
|
297
331
|
}
|
|
298
332
|
namespace Responses {
|
|
299
333
|
export type $200 = Components.Schemas.Board;
|
|
@@ -309,6 +343,30 @@ declare namespace Paths {
|
|
|
309
343
|
}
|
|
310
344
|
}
|
|
311
345
|
}
|
|
346
|
+
namespace SetDefaultKanbanBoard {
|
|
347
|
+
namespace Parameters {
|
|
348
|
+
export type BoardId = string;
|
|
349
|
+
}
|
|
350
|
+
export interface QueryParameters {
|
|
351
|
+
boardId: Parameters.BoardId;
|
|
352
|
+
}
|
|
353
|
+
namespace Responses {
|
|
354
|
+
export interface $200 {
|
|
355
|
+
message?: string;
|
|
356
|
+
default_board_id?: string;
|
|
357
|
+
}
|
|
358
|
+
export interface $400 {
|
|
359
|
+
}
|
|
360
|
+
export interface $401 {
|
|
361
|
+
}
|
|
362
|
+
export interface $403 {
|
|
363
|
+
}
|
|
364
|
+
export interface $404 {
|
|
365
|
+
}
|
|
366
|
+
export interface $500 {
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
312
370
|
namespace UpdateKanbanBoard {
|
|
313
371
|
namespace Parameters {
|
|
314
372
|
export type BoardId = string;
|
|
@@ -358,7 +416,8 @@ export interface OperationMethods {
|
|
|
358
416
|
/**
|
|
359
417
|
* getKanbanBoard - Get a Kanban board
|
|
360
418
|
*
|
|
361
|
-
* Get a Kanban board
|
|
419
|
+
* Get a Kanban board by ID. Use "default" as the boardId to get the organization's default board.
|
|
420
|
+
*
|
|
362
421
|
*/
|
|
363
422
|
'getKanbanBoard'(
|
|
364
423
|
parameters?: Parameters<Paths.GetKanbanBoard.PathParameters> | null,
|
|
@@ -395,6 +454,26 @@ export interface OperationMethods {
|
|
|
395
454
|
data?: any,
|
|
396
455
|
config?: AxiosRequestConfig
|
|
397
456
|
): OperationResponse<Paths.DeleteKanbanBoard.Responses.$200>
|
|
457
|
+
/**
|
|
458
|
+
* setDefaultKanbanBoard - Set default board for organization
|
|
459
|
+
*
|
|
460
|
+
* Set a board as the default board for the organization
|
|
461
|
+
*/
|
|
462
|
+
'setDefaultKanbanBoard'(
|
|
463
|
+
parameters?: Parameters<Paths.SetDefaultKanbanBoard.QueryParameters> | null,
|
|
464
|
+
data?: any,
|
|
465
|
+
config?: AxiosRequestConfig
|
|
466
|
+
): OperationResponse<Paths.SetDefaultKanbanBoard.Responses.$200>
|
|
467
|
+
/**
|
|
468
|
+
* clearDefaultKanbanBoard - Clear default board for organization
|
|
469
|
+
*
|
|
470
|
+
* Remove the default board setting for the organization
|
|
471
|
+
*/
|
|
472
|
+
'clearDefaultKanbanBoard'(
|
|
473
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
474
|
+
data?: any,
|
|
475
|
+
config?: AxiosRequestConfig
|
|
476
|
+
): OperationResponse<Paths.ClearDefaultKanbanBoard.Responses.$200>
|
|
398
477
|
/**
|
|
399
478
|
* flowsAutocomplete - flowsAutocomplete
|
|
400
479
|
*
|
|
@@ -447,7 +526,8 @@ export interface PathsDictionary {
|
|
|
447
526
|
/**
|
|
448
527
|
* getKanbanBoard - Get a Kanban board
|
|
449
528
|
*
|
|
450
|
-
* Get a Kanban board
|
|
529
|
+
* Get a Kanban board by ID. Use "default" as the boardId to get the organization's default board.
|
|
530
|
+
*
|
|
451
531
|
*/
|
|
452
532
|
'get'(
|
|
453
533
|
parameters?: Parameters<Paths.GetKanbanBoard.PathParameters> | null,
|
|
@@ -485,6 +565,28 @@ export interface PathsDictionary {
|
|
|
485
565
|
config?: AxiosRequestConfig
|
|
486
566
|
): OperationResponse<Paths.DeleteKanbanBoard.Responses.$200>
|
|
487
567
|
}
|
|
568
|
+
['/v1/kanban/org/default-board']: {
|
|
569
|
+
/**
|
|
570
|
+
* setDefaultKanbanBoard - Set default board for organization
|
|
571
|
+
*
|
|
572
|
+
* Set a board as the default board for the organization
|
|
573
|
+
*/
|
|
574
|
+
'put'(
|
|
575
|
+
parameters?: Parameters<Paths.SetDefaultKanbanBoard.QueryParameters> | null,
|
|
576
|
+
data?: any,
|
|
577
|
+
config?: AxiosRequestConfig
|
|
578
|
+
): OperationResponse<Paths.SetDefaultKanbanBoard.Responses.$200>
|
|
579
|
+
/**
|
|
580
|
+
* clearDefaultKanbanBoard - Clear default board for organization
|
|
581
|
+
*
|
|
582
|
+
* Remove the default board setting for the organization
|
|
583
|
+
*/
|
|
584
|
+
'delete'(
|
|
585
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
586
|
+
data?: any,
|
|
587
|
+
config?: AxiosRequestConfig
|
|
588
|
+
): OperationResponse<Paths.ClearDefaultKanbanBoard.Responses.$200>
|
|
589
|
+
}
|
|
488
590
|
['/v1/kanban/query/flows:autocomplete']: {
|
|
489
591
|
/**
|
|
490
592
|
* flowsAutocomplete - flowsAutocomplete
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Kanban API",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.3"
|
|
6
6
|
},
|
|
7
7
|
"tags": [
|
|
8
8
|
{
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"get": {
|
|
116
116
|
"operationId": "getKanbanBoard",
|
|
117
117
|
"summary": "Get a Kanban board",
|
|
118
|
-
"description": "Get a Kanban board",
|
|
118
|
+
"description": "Get a Kanban board by ID. Use \"default\" as the boardId to get the organization's default board.\n",
|
|
119
119
|
"tags": [
|
|
120
120
|
"Kanban"
|
|
121
121
|
],
|
|
@@ -126,7 +126,9 @@
|
|
|
126
126
|
"required": true,
|
|
127
127
|
"schema": {
|
|
128
128
|
"type": "string"
|
|
129
|
-
}
|
|
129
|
+
},
|
|
130
|
+
"description": "The board ID, or \"default\" to get the organization's default board.\n",
|
|
131
|
+
"example": "board-123"
|
|
130
132
|
}
|
|
131
133
|
],
|
|
132
134
|
"responses": {
|
|
@@ -247,6 +249,13 @@
|
|
|
247
249
|
},
|
|
248
250
|
"shared_with_org": {
|
|
249
251
|
"type": "boolean"
|
|
252
|
+
},
|
|
253
|
+
"owners": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"description": "Array of user IDs who have full ownership rights for this board (view, edit, delete)"
|
|
250
259
|
}
|
|
251
260
|
}
|
|
252
261
|
}
|
|
@@ -317,6 +326,100 @@
|
|
|
317
326
|
}
|
|
318
327
|
}
|
|
319
328
|
},
|
|
329
|
+
"/v1/kanban/org/default-board": {
|
|
330
|
+
"put": {
|
|
331
|
+
"operationId": "setDefaultKanbanBoard",
|
|
332
|
+
"summary": "Set default board for organization",
|
|
333
|
+
"description": "Set a board as the default board for the organization",
|
|
334
|
+
"tags": [
|
|
335
|
+
"Kanban"
|
|
336
|
+
],
|
|
337
|
+
"parameters": [
|
|
338
|
+
{
|
|
339
|
+
"name": "boardId",
|
|
340
|
+
"in": "query",
|
|
341
|
+
"required": true,
|
|
342
|
+
"schema": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
},
|
|
345
|
+
"description": "The ID of the board to set as default"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"responses": {
|
|
349
|
+
"200": {
|
|
350
|
+
"description": "Successfully set default board",
|
|
351
|
+
"content": {
|
|
352
|
+
"application/json": {
|
|
353
|
+
"schema": {
|
|
354
|
+
"type": "object",
|
|
355
|
+
"properties": {
|
|
356
|
+
"message": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"default_board_id": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"400": {
|
|
368
|
+
"description": "Bad request - Invalid input data or boardId missing"
|
|
369
|
+
},
|
|
370
|
+
"401": {
|
|
371
|
+
"description": "Unauthorized - Authentication required"
|
|
372
|
+
},
|
|
373
|
+
"403": {
|
|
374
|
+
"description": "Forbidden - Insufficient permissions"
|
|
375
|
+
},
|
|
376
|
+
"404": {
|
|
377
|
+
"description": "Board not found"
|
|
378
|
+
},
|
|
379
|
+
"500": {
|
|
380
|
+
"description": "Internal server error"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"delete": {
|
|
385
|
+
"operationId": "clearDefaultKanbanBoard",
|
|
386
|
+
"summary": "Clear default board for organization",
|
|
387
|
+
"description": "Remove the default board setting for the organization",
|
|
388
|
+
"tags": [
|
|
389
|
+
"Kanban"
|
|
390
|
+
],
|
|
391
|
+
"responses": {
|
|
392
|
+
"200": {
|
|
393
|
+
"description": "Successfully cleared default board",
|
|
394
|
+
"content": {
|
|
395
|
+
"application/json": {
|
|
396
|
+
"schema": {
|
|
397
|
+
"type": "object",
|
|
398
|
+
"properties": {
|
|
399
|
+
"message": {
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
"default_board_id": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"nullable": true
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"401": {
|
|
412
|
+
"description": "Unauthorized - Authentication required"
|
|
413
|
+
},
|
|
414
|
+
"403": {
|
|
415
|
+
"description": "Forbidden - Insufficient permissions"
|
|
416
|
+
},
|
|
417
|
+
"500": {
|
|
418
|
+
"description": "Internal server error"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
320
423
|
"/v1/kanban/query/flows:autocomplete": {
|
|
321
424
|
"get": {
|
|
322
425
|
"operationId": "flowsAutocomplete",
|
|
@@ -354,6 +457,16 @@
|
|
|
354
457
|
"minimum": 1,
|
|
355
458
|
"maximum": 250
|
|
356
459
|
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "from",
|
|
463
|
+
"in": "query",
|
|
464
|
+
"description": "Starting offset for pagination",
|
|
465
|
+
"schema": {
|
|
466
|
+
"type": "integer",
|
|
467
|
+
"default": 0,
|
|
468
|
+
"minimum": 0
|
|
469
|
+
}
|
|
357
470
|
}
|
|
358
471
|
],
|
|
359
472
|
"responses": {
|
|
@@ -383,8 +496,17 @@
|
|
|
383
496
|
"example": [
|
|
384
497
|
"value"
|
|
385
498
|
]
|
|
499
|
+
},
|
|
500
|
+
"hits": {
|
|
501
|
+
"type": "number",
|
|
502
|
+
"description": "Total number of matching items available",
|
|
503
|
+
"example": 42
|
|
386
504
|
}
|
|
387
|
-
}
|
|
505
|
+
},
|
|
506
|
+
"required": [
|
|
507
|
+
"results",
|
|
508
|
+
"hits"
|
|
509
|
+
]
|
|
388
510
|
}
|
|
389
511
|
}
|
|
390
512
|
}
|
|
@@ -479,6 +601,13 @@
|
|
|
479
601
|
},
|
|
480
602
|
"shared_with_org": {
|
|
481
603
|
"type": "boolean"
|
|
604
|
+
},
|
|
605
|
+
"owners": {
|
|
606
|
+
"type": "array",
|
|
607
|
+
"items": {
|
|
608
|
+
"type": "string"
|
|
609
|
+
},
|
|
610
|
+
"description": "Array of user IDs who have full ownership rights for this board (view, edit, delete)"
|
|
482
611
|
}
|
|
483
612
|
}
|
|
484
613
|
},
|