@epilot/kanban-client 0.1.1 → 0.1.3
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 +33 -6
- package/dist/openapi.d.ts +163 -20
- package/dist/openapi.json +301 -56
- package/package.json +5 -5
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914: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(240));r.default=o.default},240: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":{}},"delete":{"operationId":"deleteKanbanBoard","parameters":[{"name":"boardId","in":"path","required":true}],"responses":{}}}
|
|
1
|
+
(()=>{"use strict";var e={914: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(240));r.default=o.default},240: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":{}},"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":{}}')}},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}(914),t=exports;for(var o in a)t[o]=a[o];a.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
|
@@ -61,12 +61,39 @@
|
|
|
61
61
|
],
|
|
62
62
|
"responses": {}
|
|
63
63
|
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/kanban/query/flows:autocomplete": {
|
|
66
|
+
"get": {
|
|
67
|
+
"operationId": "flowsAutocomplete",
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "input",
|
|
71
|
+
"in": "query"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "attribute",
|
|
75
|
+
"in": "query",
|
|
76
|
+
"required": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "size",
|
|
80
|
+
"in": "query"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"responses": {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"/v1/kanban/query/flows:execute": {
|
|
87
|
+
"post": {
|
|
88
|
+
"operationId": "executeFlowsQuery",
|
|
89
|
+
"requestBody": {
|
|
90
|
+
"content": {
|
|
91
|
+
"application/json": {}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"responses": {}
|
|
95
|
+
}
|
|
64
96
|
}
|
|
65
97
|
},
|
|
66
|
-
"components": {}
|
|
67
|
-
"servers": [
|
|
68
|
-
{
|
|
69
|
-
"url": "https://kanban.sls.epilot.io"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
98
|
+
"components": {}
|
|
72
99
|
}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
declare namespace Components {
|
|
12
12
|
namespace Schemas {
|
|
13
13
|
export interface Board {
|
|
14
|
-
id?: string;
|
|
14
|
+
id?: string;
|
|
15
15
|
/**
|
|
16
16
|
* example:
|
|
17
17
|
* Board 1
|
|
@@ -37,20 +37,25 @@ declare namespace Components {
|
|
|
37
37
|
card_config?: {
|
|
38
38
|
fields?: string[];
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
board_filter?: BoardFilter;
|
|
41
41
|
sorting?: Sorting;
|
|
42
|
+
/**
|
|
43
|
+
* example:
|
|
44
|
+
* task 1
|
|
45
|
+
*/
|
|
46
|
+
search_query?: string;
|
|
42
47
|
};
|
|
43
48
|
}
|
|
44
49
|
export interface BoardFilter {
|
|
50
|
+
items: (FilterItem | FilterGroup)[];
|
|
45
51
|
/**
|
|
46
52
|
* example:
|
|
47
|
-
*
|
|
53
|
+
* OR
|
|
48
54
|
*/
|
|
49
|
-
|
|
50
|
-
filter_values: string[];
|
|
55
|
+
combination: "AND" | "OR";
|
|
51
56
|
}
|
|
52
57
|
export interface BoardSummary {
|
|
53
|
-
id?: string;
|
|
58
|
+
id?: string;
|
|
54
59
|
/**
|
|
55
60
|
* example:
|
|
56
61
|
* Board 1
|
|
@@ -67,22 +72,64 @@ declare namespace Components {
|
|
|
67
72
|
updated_by?: string;
|
|
68
73
|
shared_with?: string[];
|
|
69
74
|
}
|
|
75
|
+
export interface FilterGroup {
|
|
76
|
+
items: FilterItem[];
|
|
77
|
+
/**
|
|
78
|
+
* example:
|
|
79
|
+
* AND
|
|
80
|
+
*/
|
|
81
|
+
combination: "AND" | "OR";
|
|
82
|
+
}
|
|
83
|
+
export interface FilterItem {
|
|
84
|
+
/**
|
|
85
|
+
* The field key to filter on
|
|
86
|
+
* example:
|
|
87
|
+
* assignee
|
|
88
|
+
*/
|
|
89
|
+
key: string;
|
|
90
|
+
operator: /**
|
|
91
|
+
* The comparison operator for filtering
|
|
92
|
+
* example:
|
|
93
|
+
* EQUALS
|
|
94
|
+
*/
|
|
95
|
+
FilterOperator;
|
|
96
|
+
value: /* The value to compare against - can be a single value (string, number, boolean) or an array of values */ ValueType;
|
|
97
|
+
/**
|
|
98
|
+
* The data type of the field
|
|
99
|
+
* example:
|
|
100
|
+
* string
|
|
101
|
+
*/
|
|
102
|
+
data_type?: "string" | "number" | "boolean" | "date";
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* The comparison operator for filtering
|
|
106
|
+
* example:
|
|
107
|
+
* EQUALS
|
|
108
|
+
*/
|
|
109
|
+
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";
|
|
110
|
+
export interface FlowsQueryRequest {
|
|
111
|
+
filters?: BoardFilter;
|
|
112
|
+
sorting?: Sorting;
|
|
113
|
+
from?: number;
|
|
114
|
+
size?: number;
|
|
115
|
+
}
|
|
116
|
+
export interface FlowsQueryResult {
|
|
117
|
+
[name: string]: any;
|
|
118
|
+
results?: {
|
|
119
|
+
[name: string]: any;
|
|
120
|
+
}[];
|
|
121
|
+
hits?: number;
|
|
122
|
+
}
|
|
70
123
|
export interface Sorting {
|
|
71
124
|
/**
|
|
72
125
|
* example:
|
|
73
|
-
*
|
|
126
|
+
* created_at
|
|
74
127
|
*/
|
|
75
128
|
field: string;
|
|
76
129
|
direction?: "asc" | "desc";
|
|
77
130
|
}
|
|
78
131
|
export interface Swimlane {
|
|
79
|
-
|
|
80
|
-
* example:
|
|
81
|
-
* status
|
|
82
|
-
*/
|
|
83
|
-
filter_field: string;
|
|
84
|
-
filter_values: string[];
|
|
85
|
-
id?: string; // uuid
|
|
132
|
+
id?: string;
|
|
86
133
|
/**
|
|
87
134
|
* example:
|
|
88
135
|
* Swimlane 1
|
|
@@ -93,12 +140,17 @@ declare namespace Components {
|
|
|
93
140
|
* 1
|
|
94
141
|
*/
|
|
95
142
|
position?: number;
|
|
143
|
+
filter?: BoardFilter;
|
|
96
144
|
/**
|
|
97
145
|
* example:
|
|
98
146
|
* success
|
|
99
147
|
*/
|
|
100
148
|
title_chip_variant?: string;
|
|
101
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* The value to compare against - can be a single value (string, number, boolean) or an array of values
|
|
152
|
+
*/
|
|
153
|
+
export type ValueType = /* The value to compare against - can be a single value (string, number, boolean) or an array of values */ string | number | boolean | (string | number | boolean)[];
|
|
102
154
|
}
|
|
103
155
|
}
|
|
104
156
|
declare namespace Paths {
|
|
@@ -118,10 +170,10 @@ declare namespace Paths {
|
|
|
118
170
|
}
|
|
119
171
|
namespace DeleteKanbanBoard {
|
|
120
172
|
namespace Parameters {
|
|
121
|
-
export type BoardId = string;
|
|
173
|
+
export type BoardId = string;
|
|
122
174
|
}
|
|
123
175
|
export interface PathParameters {
|
|
124
|
-
boardId: Parameters.BoardId
|
|
176
|
+
boardId: Parameters.BoardId;
|
|
125
177
|
}
|
|
126
178
|
namespace Responses {
|
|
127
179
|
export interface $200 {
|
|
@@ -136,12 +188,51 @@ declare namespace Paths {
|
|
|
136
188
|
}
|
|
137
189
|
}
|
|
138
190
|
}
|
|
191
|
+
namespace ExecuteFlowsQuery {
|
|
192
|
+
export type RequestBody = Components.Schemas.FlowsQueryRequest;
|
|
193
|
+
namespace Responses {
|
|
194
|
+
export type $200 = Components.Schemas.FlowsQueryResult;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
namespace FlowsAutocomplete {
|
|
198
|
+
namespace Parameters {
|
|
199
|
+
/**
|
|
200
|
+
* example:
|
|
201
|
+
* name
|
|
202
|
+
*/
|
|
203
|
+
export type Attribute = string;
|
|
204
|
+
export type Input = string;
|
|
205
|
+
export type Size = number;
|
|
206
|
+
}
|
|
207
|
+
export interface QueryParameters {
|
|
208
|
+
input?: Parameters.Input;
|
|
209
|
+
attribute: /**
|
|
210
|
+
* example:
|
|
211
|
+
* name
|
|
212
|
+
*/
|
|
213
|
+
Parameters.Attribute;
|
|
214
|
+
size?: Parameters.Size;
|
|
215
|
+
}
|
|
216
|
+
namespace Responses {
|
|
217
|
+
export interface $200 {
|
|
218
|
+
/**
|
|
219
|
+
* example:
|
|
220
|
+
* [
|
|
221
|
+
* "value"
|
|
222
|
+
* ]
|
|
223
|
+
*/
|
|
224
|
+
results?: (string | boolean | {
|
|
225
|
+
[name: string]: any;
|
|
226
|
+
})[];
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
139
230
|
namespace GetKanbanBoard {
|
|
140
231
|
namespace Parameters {
|
|
141
|
-
export type BoardId = string;
|
|
232
|
+
export type BoardId = string;
|
|
142
233
|
}
|
|
143
234
|
export interface PathParameters {
|
|
144
|
-
boardId: Parameters.BoardId
|
|
235
|
+
boardId: Parameters.BoardId;
|
|
145
236
|
}
|
|
146
237
|
namespace Responses {
|
|
147
238
|
export type $200 = Components.Schemas.Board;
|
|
@@ -168,10 +259,10 @@ declare namespace Paths {
|
|
|
168
259
|
}
|
|
169
260
|
namespace UpdateKanbanBoard {
|
|
170
261
|
namespace Parameters {
|
|
171
|
-
export type BoardId = string;
|
|
262
|
+
export type BoardId = string;
|
|
172
263
|
}
|
|
173
264
|
export interface PathParameters {
|
|
174
|
-
boardId: Parameters.BoardId
|
|
265
|
+
boardId: Parameters.BoardId;
|
|
175
266
|
}
|
|
176
267
|
export type RequestBody = Components.Schemas.Board;
|
|
177
268
|
namespace Responses {
|
|
@@ -242,6 +333,27 @@ export interface OperationMethods {
|
|
|
242
333
|
data?: any,
|
|
243
334
|
config?: AxiosRequestConfig
|
|
244
335
|
): OperationResponse<Paths.DeleteKanbanBoard.Responses.$200>
|
|
336
|
+
/**
|
|
337
|
+
* flowsAutocomplete - flowsAutocomplete
|
|
338
|
+
*
|
|
339
|
+
* Autocomplete flows data
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
'flowsAutocomplete'(
|
|
343
|
+
parameters?: Parameters<Paths.FlowsAutocomplete.QueryParameters> | null,
|
|
344
|
+
data?: any,
|
|
345
|
+
config?: AxiosRequestConfig
|
|
346
|
+
): OperationResponse<Paths.FlowsAutocomplete.Responses.$200>
|
|
347
|
+
/**
|
|
348
|
+
* executeFlowsQuery - executeFlowsQuery
|
|
349
|
+
*
|
|
350
|
+
* Query Flows Data for Kanban View.
|
|
351
|
+
*/
|
|
352
|
+
'executeFlowsQuery'(
|
|
353
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
354
|
+
data?: Paths.ExecuteFlowsQuery.RequestBody,
|
|
355
|
+
config?: AxiosRequestConfig
|
|
356
|
+
): OperationResponse<Paths.ExecuteFlowsQuery.Responses.$200>
|
|
245
357
|
}
|
|
246
358
|
|
|
247
359
|
export interface PathsDictionary {
|
|
@@ -301,6 +413,31 @@ export interface PathsDictionary {
|
|
|
301
413
|
config?: AxiosRequestConfig
|
|
302
414
|
): OperationResponse<Paths.DeleteKanbanBoard.Responses.$200>
|
|
303
415
|
}
|
|
416
|
+
['/v1/kanban/query/flows:autocomplete']: {
|
|
417
|
+
/**
|
|
418
|
+
* flowsAutocomplete - flowsAutocomplete
|
|
419
|
+
*
|
|
420
|
+
* Autocomplete flows data
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
'get'(
|
|
424
|
+
parameters?: Parameters<Paths.FlowsAutocomplete.QueryParameters> | null,
|
|
425
|
+
data?: any,
|
|
426
|
+
config?: AxiosRequestConfig
|
|
427
|
+
): OperationResponse<Paths.FlowsAutocomplete.Responses.$200>
|
|
428
|
+
}
|
|
429
|
+
['/v1/kanban/query/flows:execute']: {
|
|
430
|
+
/**
|
|
431
|
+
* executeFlowsQuery - executeFlowsQuery
|
|
432
|
+
*
|
|
433
|
+
* Query Flows Data for Kanban View.
|
|
434
|
+
*/
|
|
435
|
+
'post'(
|
|
436
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
437
|
+
data?: Paths.ExecuteFlowsQuery.RequestBody,
|
|
438
|
+
config?: AxiosRequestConfig
|
|
439
|
+
): OperationResponse<Paths.ExecuteFlowsQuery.Responses.$200>
|
|
440
|
+
}
|
|
304
441
|
}
|
|
305
442
|
|
|
306
443
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
@@ -309,5 +446,11 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
|
309
446
|
export type Board = Components.Schemas.Board;
|
|
310
447
|
export type BoardFilter = Components.Schemas.BoardFilter;
|
|
311
448
|
export type BoardSummary = Components.Schemas.BoardSummary;
|
|
449
|
+
export type FilterGroup = Components.Schemas.FilterGroup;
|
|
450
|
+
export type FilterItem = Components.Schemas.FilterItem;
|
|
451
|
+
export type FilterOperator = Components.Schemas.FilterOperator;
|
|
452
|
+
export type FlowsQueryRequest = Components.Schemas.FlowsQueryRequest;
|
|
453
|
+
export type FlowsQueryResult = Components.Schemas.FlowsQueryResult;
|
|
312
454
|
export type Sorting = Components.Schemas.Sorting;
|
|
313
455
|
export type Swimlane = Components.Schemas.Swimlane;
|
|
456
|
+
export type ValueType = Components.Schemas.ValueType;
|
package/dist/openapi.json
CHANGED
|
@@ -107,8 +107,7 @@
|
|
|
107
107
|
"in": "path",
|
|
108
108
|
"required": true,
|
|
109
109
|
"schema": {
|
|
110
|
-
"type": "string"
|
|
111
|
-
"format": "uuid"
|
|
110
|
+
"type": "string"
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
],
|
|
@@ -150,8 +149,7 @@
|
|
|
150
149
|
"in": "path",
|
|
151
150
|
"required": true,
|
|
152
151
|
"schema": {
|
|
153
|
-
"type": "string"
|
|
154
|
-
"format": "uuid"
|
|
152
|
+
"type": "string"
|
|
155
153
|
}
|
|
156
154
|
}
|
|
157
155
|
],
|
|
@@ -205,8 +203,7 @@
|
|
|
205
203
|
"in": "path",
|
|
206
204
|
"required": true,
|
|
207
205
|
"schema": {
|
|
208
|
-
"type": "string"
|
|
209
|
-
"format": "uuid"
|
|
206
|
+
"type": "string"
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
209
|
],
|
|
@@ -228,6 +225,112 @@
|
|
|
228
225
|
}
|
|
229
226
|
}
|
|
230
227
|
}
|
|
228
|
+
},
|
|
229
|
+
"/v1/kanban/query/flows:autocomplete": {
|
|
230
|
+
"get": {
|
|
231
|
+
"operationId": "flowsAutocomplete",
|
|
232
|
+
"summary": "flowsAutocomplete",
|
|
233
|
+
"description": "Autocomplete flows data\n",
|
|
234
|
+
"tags": [
|
|
235
|
+
"Query"
|
|
236
|
+
],
|
|
237
|
+
"parameters": [
|
|
238
|
+
{
|
|
239
|
+
"name": "input",
|
|
240
|
+
"in": "query",
|
|
241
|
+
"description": "Input to autocomplete",
|
|
242
|
+
"schema": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "attribute",
|
|
248
|
+
"in": "query",
|
|
249
|
+
"description": "Autocomplete attribute",
|
|
250
|
+
"schema": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"example": "name"
|
|
253
|
+
},
|
|
254
|
+
"required": true
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "size",
|
|
258
|
+
"in": "query",
|
|
259
|
+
"description": "Maximum number of results to return",
|
|
260
|
+
"schema": {
|
|
261
|
+
"type": "integer",
|
|
262
|
+
"default": 25,
|
|
263
|
+
"minimum": 1,
|
|
264
|
+
"maximum": 250
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"responses": {
|
|
269
|
+
"200": {
|
|
270
|
+
"description": "Success",
|
|
271
|
+
"content": {
|
|
272
|
+
"application/json": {
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"results": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"anyOf": [
|
|
280
|
+
{
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"type": "boolean"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "object",
|
|
288
|
+
"additionalProperties": true
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"example": [
|
|
293
|
+
"value"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"/v1/kanban/query/flows:execute": {
|
|
305
|
+
"post": {
|
|
306
|
+
"operationId": "executeFlowsQuery",
|
|
307
|
+
"summary": "executeFlowsQuery",
|
|
308
|
+
"description": "Query Flows Data for Kanban View.",
|
|
309
|
+
"tags": [
|
|
310
|
+
"Query"
|
|
311
|
+
],
|
|
312
|
+
"requestBody": {
|
|
313
|
+
"content": {
|
|
314
|
+
"application/json": {
|
|
315
|
+
"schema": {
|
|
316
|
+
"$ref": "#/components/schemas/FlowsQueryRequest"
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"responses": {
|
|
322
|
+
"200": {
|
|
323
|
+
"description": "Query results",
|
|
324
|
+
"content": {
|
|
325
|
+
"application/json": {
|
|
326
|
+
"schema": {
|
|
327
|
+
"$ref": "#/components/schemas/FlowsQueryResult"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
231
334
|
}
|
|
232
335
|
},
|
|
233
336
|
"components": {
|
|
@@ -237,12 +340,6 @@
|
|
|
237
340
|
"scheme": "bearer",
|
|
238
341
|
"description": "Authorization header with epilot OAuth2 bearer token",
|
|
239
342
|
"bearerFormat": "JWT"
|
|
240
|
-
},
|
|
241
|
-
"EpilotPublicAuth": {
|
|
242
|
-
"type": "http",
|
|
243
|
-
"scheme": "bearer",
|
|
244
|
-
"description": "Authorization header with epilot public access token",
|
|
245
|
-
"bearerFormat": "JWT"
|
|
246
343
|
}
|
|
247
344
|
},
|
|
248
345
|
"schemas": {
|
|
@@ -250,8 +347,7 @@
|
|
|
250
347
|
"type": "object",
|
|
251
348
|
"properties": {
|
|
252
349
|
"id": {
|
|
253
|
-
"type": "string"
|
|
254
|
-
"format": "uuid"
|
|
350
|
+
"type": "string"
|
|
255
351
|
},
|
|
256
352
|
"title": {
|
|
257
353
|
"type": "string",
|
|
@@ -316,14 +412,15 @@
|
|
|
316
412
|
}
|
|
317
413
|
}
|
|
318
414
|
},
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
"items": {
|
|
322
|
-
"$ref": "#/components/schemas/BoardFilter"
|
|
323
|
-
}
|
|
415
|
+
"board_filter": {
|
|
416
|
+
"$ref": "#/components/schemas/BoardFilter"
|
|
324
417
|
},
|
|
325
418
|
"sorting": {
|
|
326
419
|
"$ref": "#/components/schemas/Sorting"
|
|
420
|
+
},
|
|
421
|
+
"search_query": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"example": "task 1"
|
|
327
424
|
}
|
|
328
425
|
}
|
|
329
426
|
}
|
|
@@ -336,39 +433,34 @@
|
|
|
336
433
|
]
|
|
337
434
|
},
|
|
338
435
|
"Swimlane": {
|
|
339
|
-
"
|
|
340
|
-
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"id": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"title": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"example": "Swimlane 1"
|
|
444
|
+
},
|
|
445
|
+
"position": {
|
|
446
|
+
"type": "number",
|
|
447
|
+
"example": 1
|
|
448
|
+
},
|
|
449
|
+
"filter": {
|
|
341
450
|
"$ref": "#/components/schemas/BoardFilter"
|
|
342
451
|
},
|
|
343
|
-
{
|
|
344
|
-
"type": "
|
|
345
|
-
"
|
|
346
|
-
"id": {
|
|
347
|
-
"type": "string",
|
|
348
|
-
"format": "uuid"
|
|
349
|
-
},
|
|
350
|
-
"title": {
|
|
351
|
-
"type": "string",
|
|
352
|
-
"example": "Swimlane 1"
|
|
353
|
-
},
|
|
354
|
-
"position": {
|
|
355
|
-
"type": "number",
|
|
356
|
-
"example": 1
|
|
357
|
-
},
|
|
358
|
-
"title_chip_variant": {
|
|
359
|
-
"type": "string",
|
|
360
|
-
"example": "success"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
452
|
+
"title_chip_variant": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"example": "success"
|
|
363
455
|
}
|
|
364
|
-
|
|
456
|
+
}
|
|
365
457
|
},
|
|
366
458
|
"Sorting": {
|
|
367
459
|
"type": "object",
|
|
368
460
|
"properties": {
|
|
369
461
|
"field": {
|
|
370
462
|
"type": "string",
|
|
371
|
-
"example": "
|
|
463
|
+
"example": "created_at"
|
|
372
464
|
},
|
|
373
465
|
"direction": {
|
|
374
466
|
"type": "string",
|
|
@@ -386,28 +478,181 @@
|
|
|
386
478
|
"BoardFilter": {
|
|
387
479
|
"type": "object",
|
|
388
480
|
"properties": {
|
|
389
|
-
"
|
|
481
|
+
"items": {
|
|
482
|
+
"type": "array",
|
|
483
|
+
"items": {
|
|
484
|
+
"oneOf": [
|
|
485
|
+
{
|
|
486
|
+
"$ref": "#/components/schemas/FilterItem"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"$ref": "#/components/schemas/FilterGroup"
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"combination": {
|
|
390
495
|
"type": "string",
|
|
391
|
-
"
|
|
496
|
+
"enum": [
|
|
497
|
+
"AND",
|
|
498
|
+
"OR"
|
|
499
|
+
],
|
|
500
|
+
"example": "OR"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": [
|
|
504
|
+
"items",
|
|
505
|
+
"combination"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
"FilterGroup": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"items": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"items": {
|
|
514
|
+
"$ref": "#/components/schemas/FilterItem"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"combination": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"enum": [
|
|
520
|
+
"AND",
|
|
521
|
+
"OR"
|
|
522
|
+
],
|
|
523
|
+
"example": "AND"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"required": [
|
|
527
|
+
"items",
|
|
528
|
+
"combination"
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
"FilterOperator": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"enum": [
|
|
534
|
+
"EQUALS",
|
|
535
|
+
"NOT_EQUALS",
|
|
536
|
+
"EMPTY",
|
|
537
|
+
"NOT_EMPTY",
|
|
538
|
+
"CONTAINS",
|
|
539
|
+
"NOT_CONTAINS",
|
|
540
|
+
"IS_ONE_OF",
|
|
541
|
+
"IS_NONE_OF",
|
|
542
|
+
"GREATER_THAN",
|
|
543
|
+
"LESS_THAN",
|
|
544
|
+
"GREATER_THAN_OR_EQUAL",
|
|
545
|
+
"LESS_THAN_OR_EQUAL"
|
|
546
|
+
],
|
|
547
|
+
"example": "EQUALS",
|
|
548
|
+
"description": "The comparison operator for filtering"
|
|
549
|
+
},
|
|
550
|
+
"ValueType": {
|
|
551
|
+
"oneOf": [
|
|
552
|
+
{
|
|
553
|
+
"type": "string",
|
|
554
|
+
"example": "100020"
|
|
392
555
|
},
|
|
393
|
-
|
|
556
|
+
{
|
|
557
|
+
"type": "number",
|
|
558
|
+
"example": 42
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"type": "boolean",
|
|
562
|
+
"example": true
|
|
563
|
+
},
|
|
564
|
+
{
|
|
394
565
|
"type": "array",
|
|
395
566
|
"items": {
|
|
396
|
-
"
|
|
397
|
-
|
|
567
|
+
"oneOf": [
|
|
568
|
+
{
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "number"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"type": "boolean"
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"example": [
|
|
580
|
+
"value1",
|
|
581
|
+
"value2",
|
|
582
|
+
123,
|
|
583
|
+
true
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"description": "The value to compare against - can be a single value (string, number, boolean) or an array of values"
|
|
588
|
+
},
|
|
589
|
+
"FlowsQueryRequest": {
|
|
590
|
+
"type": "object",
|
|
591
|
+
"properties": {
|
|
592
|
+
"filters": {
|
|
593
|
+
"$ref": "#/components/schemas/BoardFilter"
|
|
594
|
+
},
|
|
595
|
+
"sorting": {
|
|
596
|
+
"$ref": "#/components/schemas/Sorting"
|
|
597
|
+
},
|
|
598
|
+
"from": {
|
|
599
|
+
"type": "number",
|
|
600
|
+
"default": 0
|
|
601
|
+
},
|
|
602
|
+
"size": {
|
|
603
|
+
"type": "number",
|
|
604
|
+
"default": 10
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"FlowsQueryResult": {
|
|
609
|
+
"type": "object",
|
|
610
|
+
"properties": {
|
|
611
|
+
"results": {
|
|
612
|
+
"type": "array",
|
|
613
|
+
"items": {
|
|
614
|
+
"type": "object",
|
|
615
|
+
"additionalProperties": true
|
|
398
616
|
}
|
|
617
|
+
},
|
|
618
|
+
"hits": {
|
|
619
|
+
"type": "number"
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
"additionalProperties": true
|
|
623
|
+
},
|
|
624
|
+
"FilterItem": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"properties": {
|
|
627
|
+
"key": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"example": "assignee",
|
|
630
|
+
"description": "The field key to filter on"
|
|
631
|
+
},
|
|
632
|
+
"operator": {
|
|
633
|
+
"$ref": "#/components/schemas/FilterOperator"
|
|
634
|
+
},
|
|
635
|
+
"value": {
|
|
636
|
+
"$ref": "#/components/schemas/ValueType"
|
|
637
|
+
},
|
|
638
|
+
"data_type": {
|
|
639
|
+
"type": "string",
|
|
640
|
+
"enum": [
|
|
641
|
+
"string",
|
|
642
|
+
"number",
|
|
643
|
+
"boolean",
|
|
644
|
+
"date"
|
|
645
|
+
],
|
|
646
|
+
"example": "string",
|
|
647
|
+
"description": "The data type of the field"
|
|
399
648
|
}
|
|
400
649
|
},
|
|
401
650
|
"required": [
|
|
402
|
-
"
|
|
403
|
-
"
|
|
651
|
+
"key",
|
|
652
|
+
"operator",
|
|
653
|
+
"value"
|
|
404
654
|
]
|
|
405
655
|
}
|
|
406
656
|
}
|
|
407
|
-
}
|
|
408
|
-
"servers": [
|
|
409
|
-
{
|
|
410
|
-
"url": "https://kanban.sls.epilot.io"
|
|
411
|
-
}
|
|
412
|
-
]
|
|
657
|
+
}
|
|
413
658
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/kanban-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Client library for epilot Kanban API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,13 +25,13 @@
|
|
|
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 /Users/sureshs/workspace/kanban-api/lambda/ApiHandlerFunction/openapi.yml",
|
|
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",
|
|
32
32
|
"build:watch": "npm run build && tsc -w",
|
|
33
33
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
-
"lint": "
|
|
34
|
+
"lint": "pnpm exec eslint src"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"*.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
54
54
|
"buffer": "^6.0.3",
|
|
55
55
|
"https-browserify": "^1.0.0",
|
|
56
|
-
"openapi-client-axios": "^7.
|
|
56
|
+
"openapi-client-axios": "^7.6.0",
|
|
57
57
|
"stream-http": "^3.1.1",
|
|
58
58
|
"url": "^0.11.0",
|
|
59
59
|
"util": "^0.12.3"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"copy-webpack-plugin": "^7.0.0",
|
|
65
65
|
"jest": "^26.6.3",
|
|
66
66
|
"json-loader": "^0.5.7",
|
|
67
|
-
"openapicmd": "^2.
|
|
67
|
+
"openapicmd": "^2.7.0",
|
|
68
68
|
"ts-jest": "^26.5.0",
|
|
69
69
|
"ts-loader": "^8.0.14",
|
|
70
70
|
"ts-node": "^10.9.1",
|