@epilot/kanban-client 0.1.3 → 0.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 +22 -1
- package/dist/openapi.d.ts +63 -1
- package/dist/openapi.json +95 -3
- package/package.json +4 -4
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
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 o=t(a(466));r.default=o.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","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 o=r[t];if(void 0!==o)return o.exports;var n=r[t]={exports:{}};return e[t].call(n.exports,n,n.exports,a),n.exports}(390),t=exports;for(var o in a)t[o]=a[o];a.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
|
@@ -50,6 +50,22 @@
|
|
|
50
50
|
},
|
|
51
51
|
"responses": {}
|
|
52
52
|
},
|
|
53
|
+
"patch": {
|
|
54
|
+
"operationId": "patchKanbanBoard",
|
|
55
|
+
"parameters": [
|
|
56
|
+
{
|
|
57
|
+
"name": "boardId",
|
|
58
|
+
"in": "path",
|
|
59
|
+
"required": true
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"requestBody": {
|
|
63
|
+
"content": {
|
|
64
|
+
"application/json": {}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"responses": {}
|
|
68
|
+
},
|
|
53
69
|
"delete": {
|
|
54
70
|
"operationId": "deleteKanbanBoard",
|
|
55
71
|
"parameters": [
|
|
@@ -95,5 +111,10 @@
|
|
|
95
111
|
}
|
|
96
112
|
}
|
|
97
113
|
},
|
|
98
|
-
"components": {}
|
|
114
|
+
"components": {},
|
|
115
|
+
"servers": [
|
|
116
|
+
{
|
|
117
|
+
"url": "https://kanban.sls.epilot.io"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
99
120
|
}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -25,8 +25,10 @@ declare namespace Components {
|
|
|
25
25
|
created_at?: string; // date-time
|
|
26
26
|
updated_at?: string; // date-time
|
|
27
27
|
created_by?: string;
|
|
28
|
+
org_id?: string;
|
|
28
29
|
updated_by?: string;
|
|
29
30
|
shared_with?: string[];
|
|
31
|
+
shared_with_org?: boolean;
|
|
30
32
|
config: {
|
|
31
33
|
/**
|
|
32
34
|
* example:
|
|
@@ -69,8 +71,10 @@ declare namespace Components {
|
|
|
69
71
|
created_at?: string; // date-time
|
|
70
72
|
updated_at?: string; // date-time
|
|
71
73
|
created_by?: string;
|
|
74
|
+
org_id?: string;
|
|
72
75
|
updated_by?: string;
|
|
73
76
|
shared_with?: string[];
|
|
77
|
+
shared_with_org?: boolean;
|
|
74
78
|
}
|
|
75
79
|
export interface FilterGroup {
|
|
76
80
|
items: FilterItem[];
|
|
@@ -93,7 +97,7 @@ declare namespace Components {
|
|
|
93
97
|
* EQUALS
|
|
94
98
|
*/
|
|
95
99
|
FilterOperator;
|
|
96
|
-
value
|
|
100
|
+
value?: /* The value to compare against - can be a single value (string, number, boolean) or an array of values */ ValueType;
|
|
97
101
|
/**
|
|
98
102
|
* The data type of the field
|
|
99
103
|
* example:
|
|
@@ -119,6 +123,9 @@ declare namespace Components {
|
|
|
119
123
|
[name: string]: any;
|
|
120
124
|
}[];
|
|
121
125
|
hits?: number;
|
|
126
|
+
page_number?: number;
|
|
127
|
+
page_size?: number;
|
|
128
|
+
total_pages?: number;
|
|
122
129
|
}
|
|
123
130
|
export interface Sorting {
|
|
124
131
|
/**
|
|
@@ -257,6 +264,41 @@ declare namespace Paths {
|
|
|
257
264
|
}
|
|
258
265
|
}
|
|
259
266
|
}
|
|
267
|
+
namespace PatchKanbanBoard {
|
|
268
|
+
namespace Parameters {
|
|
269
|
+
export type BoardId = string;
|
|
270
|
+
}
|
|
271
|
+
export interface PathParameters {
|
|
272
|
+
boardId: Parameters.BoardId;
|
|
273
|
+
}
|
|
274
|
+
export interface RequestBody {
|
|
275
|
+
/**
|
|
276
|
+
* example:
|
|
277
|
+
* Board 1
|
|
278
|
+
*/
|
|
279
|
+
title?: string;
|
|
280
|
+
/**
|
|
281
|
+
* example:
|
|
282
|
+
* Board description
|
|
283
|
+
*/
|
|
284
|
+
description?: string;
|
|
285
|
+
shared_with?: string[];
|
|
286
|
+
shared_with_org?: boolean;
|
|
287
|
+
}
|
|
288
|
+
namespace Responses {
|
|
289
|
+
export type $200 = Components.Schemas.Board;
|
|
290
|
+
export interface $400 {
|
|
291
|
+
}
|
|
292
|
+
export interface $401 {
|
|
293
|
+
}
|
|
294
|
+
export interface $403 {
|
|
295
|
+
}
|
|
296
|
+
export interface $404 {
|
|
297
|
+
}
|
|
298
|
+
export interface $500 {
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
260
302
|
namespace UpdateKanbanBoard {
|
|
261
303
|
namespace Parameters {
|
|
262
304
|
export type BoardId = string;
|
|
@@ -323,6 +365,16 @@ export interface OperationMethods {
|
|
|
323
365
|
data?: Paths.UpdateKanbanBoard.RequestBody,
|
|
324
366
|
config?: AxiosRequestConfig
|
|
325
367
|
): OperationResponse<Paths.UpdateKanbanBoard.Responses.$200>
|
|
368
|
+
/**
|
|
369
|
+
* patchKanbanBoard - Patch a Kanban board
|
|
370
|
+
*
|
|
371
|
+
* Patch a Kanban board
|
|
372
|
+
*/
|
|
373
|
+
'patchKanbanBoard'(
|
|
374
|
+
parameters?: Parameters<Paths.PatchKanbanBoard.PathParameters> | null,
|
|
375
|
+
data?: Paths.PatchKanbanBoard.RequestBody,
|
|
376
|
+
config?: AxiosRequestConfig
|
|
377
|
+
): OperationResponse<Paths.PatchKanbanBoard.Responses.$200>
|
|
326
378
|
/**
|
|
327
379
|
* deleteKanbanBoard - Delete a Kanban board
|
|
328
380
|
*
|
|
@@ -402,6 +454,16 @@ export interface PathsDictionary {
|
|
|
402
454
|
data?: Paths.UpdateKanbanBoard.RequestBody,
|
|
403
455
|
config?: AxiosRequestConfig
|
|
404
456
|
): OperationResponse<Paths.UpdateKanbanBoard.Responses.$200>
|
|
457
|
+
/**
|
|
458
|
+
* patchKanbanBoard - Patch a Kanban board
|
|
459
|
+
*
|
|
460
|
+
* Patch a Kanban board
|
|
461
|
+
*/
|
|
462
|
+
'patch'(
|
|
463
|
+
parameters?: Parameters<Paths.PatchKanbanBoard.PathParameters> | null,
|
|
464
|
+
data?: Paths.PatchKanbanBoard.RequestBody,
|
|
465
|
+
config?: AxiosRequestConfig
|
|
466
|
+
): OperationResponse<Paths.PatchKanbanBoard.Responses.$200>
|
|
405
467
|
/**
|
|
406
468
|
* deleteKanbanBoard - Delete a Kanban board
|
|
407
469
|
*
|
package/dist/openapi.json
CHANGED
|
@@ -190,6 +190,79 @@
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
+
"patch": {
|
|
194
|
+
"operationId": "patchKanbanBoard",
|
|
195
|
+
"summary": "Patch a Kanban board",
|
|
196
|
+
"description": "Patch a Kanban board",
|
|
197
|
+
"tags": [
|
|
198
|
+
"Kanban"
|
|
199
|
+
],
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "boardId",
|
|
203
|
+
"in": "path",
|
|
204
|
+
"required": true,
|
|
205
|
+
"schema": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"requestBody": {
|
|
211
|
+
"content": {
|
|
212
|
+
"application/json": {
|
|
213
|
+
"schema": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"properties": {
|
|
216
|
+
"title": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"example": "Board 1"
|
|
219
|
+
},
|
|
220
|
+
"description": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"example": "Board description"
|
|
223
|
+
},
|
|
224
|
+
"shared_with": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"items": {
|
|
227
|
+
"type": "string"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"shared_with_org": {
|
|
231
|
+
"type": "boolean"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"responses": {
|
|
239
|
+
"200": {
|
|
240
|
+
"description": "Successfully patched board",
|
|
241
|
+
"content": {
|
|
242
|
+
"application/json": {
|
|
243
|
+
"schema": {
|
|
244
|
+
"$ref": "#/components/schemas/Board"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"400": {
|
|
250
|
+
"description": "Bad request - Invalid input data"
|
|
251
|
+
},
|
|
252
|
+
"401": {
|
|
253
|
+
"description": "Unauthorized - Authentication required"
|
|
254
|
+
},
|
|
255
|
+
"403": {
|
|
256
|
+
"description": "Forbidden - Insufficient permissions"
|
|
257
|
+
},
|
|
258
|
+
"404": {
|
|
259
|
+
"description": "Board not found"
|
|
260
|
+
},
|
|
261
|
+
"500": {
|
|
262
|
+
"description": "Internal server error"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
193
266
|
"delete": {
|
|
194
267
|
"operationId": "deleteKanbanBoard",
|
|
195
268
|
"summary": "Delete a Kanban board",
|
|
@@ -368,6 +441,9 @@
|
|
|
368
441
|
"created_by": {
|
|
369
442
|
"type": "string"
|
|
370
443
|
},
|
|
444
|
+
"org_id": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
},
|
|
371
447
|
"updated_by": {
|
|
372
448
|
"type": "string"
|
|
373
449
|
},
|
|
@@ -376,6 +452,9 @@
|
|
|
376
452
|
"items": {
|
|
377
453
|
"type": "string"
|
|
378
454
|
}
|
|
455
|
+
},
|
|
456
|
+
"shared_with_org": {
|
|
457
|
+
"type": "boolean"
|
|
379
458
|
}
|
|
380
459
|
}
|
|
381
460
|
},
|
|
@@ -617,6 +696,15 @@
|
|
|
617
696
|
},
|
|
618
697
|
"hits": {
|
|
619
698
|
"type": "number"
|
|
699
|
+
},
|
|
700
|
+
"page_number": {
|
|
701
|
+
"type": "number"
|
|
702
|
+
},
|
|
703
|
+
"page_size": {
|
|
704
|
+
"type": "number"
|
|
705
|
+
},
|
|
706
|
+
"total_pages": {
|
|
707
|
+
"type": "number"
|
|
620
708
|
}
|
|
621
709
|
},
|
|
622
710
|
"additionalProperties": true
|
|
@@ -649,10 +737,14 @@
|
|
|
649
737
|
},
|
|
650
738
|
"required": [
|
|
651
739
|
"key",
|
|
652
|
-
"operator"
|
|
653
|
-
"value"
|
|
740
|
+
"operator"
|
|
654
741
|
]
|
|
655
742
|
}
|
|
656
743
|
}
|
|
657
|
-
}
|
|
744
|
+
},
|
|
745
|
+
"servers": [
|
|
746
|
+
{
|
|
747
|
+
"url": "https://kanban.sls.epilot.io"
|
|
748
|
+
}
|
|
749
|
+
]
|
|
658
750
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/kanban-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Client library for epilot Kanban API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "jest",
|
|
26
26
|
"typescript": "tsc",
|
|
27
27
|
"bundle-definition": "webpack",
|
|
28
|
-
"openapi": "node ../../scripts/update-openapi.js /
|
|
28
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/kanban.yaml",
|
|
29
29
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
30
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"!*.config.js"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"axios": "^1.
|
|
50
|
+
"axios": "^1.0.0 || >=0.25.0 <1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/jest": "^26.0.20",
|
|
63
|
-
"axios": "^1.
|
|
63
|
+
"axios": "^1.11.0",
|
|
64
64
|
"copy-webpack-plugin": "^7.0.0",
|
|
65
65
|
"jest": "^26.6.3",
|
|
66
66
|
"json-loader": "^0.5.7",
|