@epilot/kanban-client 0.1.1 → 0.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/openapi.d.ts +62 -19
- package/dist/openapi.json +159 -44
- package/package.json +1 -1
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,6 +72,41 @@ 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";
|
|
70
110
|
export interface Sorting {
|
|
71
111
|
/**
|
|
72
112
|
* example:
|
|
@@ -76,13 +116,7 @@ declare namespace Components {
|
|
|
76
116
|
direction?: "asc" | "desc";
|
|
77
117
|
}
|
|
78
118
|
export interface Swimlane {
|
|
79
|
-
|
|
80
|
-
* example:
|
|
81
|
-
* status
|
|
82
|
-
*/
|
|
83
|
-
filter_field: string;
|
|
84
|
-
filter_values: string[];
|
|
85
|
-
id?: string; // uuid
|
|
119
|
+
id?: string;
|
|
86
120
|
/**
|
|
87
121
|
* example:
|
|
88
122
|
* Swimlane 1
|
|
@@ -93,12 +127,17 @@ declare namespace Components {
|
|
|
93
127
|
* 1
|
|
94
128
|
*/
|
|
95
129
|
position?: number;
|
|
130
|
+
filter?: BoardFilter;
|
|
96
131
|
/**
|
|
97
132
|
* example:
|
|
98
133
|
* success
|
|
99
134
|
*/
|
|
100
135
|
title_chip_variant?: string;
|
|
101
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* The value to compare against - can be a single value (string, number, boolean) or an array of values
|
|
139
|
+
*/
|
|
140
|
+
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
141
|
}
|
|
103
142
|
}
|
|
104
143
|
declare namespace Paths {
|
|
@@ -118,10 +157,10 @@ declare namespace Paths {
|
|
|
118
157
|
}
|
|
119
158
|
namespace DeleteKanbanBoard {
|
|
120
159
|
namespace Parameters {
|
|
121
|
-
export type BoardId = string;
|
|
160
|
+
export type BoardId = string;
|
|
122
161
|
}
|
|
123
162
|
export interface PathParameters {
|
|
124
|
-
boardId: Parameters.BoardId
|
|
163
|
+
boardId: Parameters.BoardId;
|
|
125
164
|
}
|
|
126
165
|
namespace Responses {
|
|
127
166
|
export interface $200 {
|
|
@@ -138,10 +177,10 @@ declare namespace Paths {
|
|
|
138
177
|
}
|
|
139
178
|
namespace GetKanbanBoard {
|
|
140
179
|
namespace Parameters {
|
|
141
|
-
export type BoardId = string;
|
|
180
|
+
export type BoardId = string;
|
|
142
181
|
}
|
|
143
182
|
export interface PathParameters {
|
|
144
|
-
boardId: Parameters.BoardId
|
|
183
|
+
boardId: Parameters.BoardId;
|
|
145
184
|
}
|
|
146
185
|
namespace Responses {
|
|
147
186
|
export type $200 = Components.Schemas.Board;
|
|
@@ -168,10 +207,10 @@ declare namespace Paths {
|
|
|
168
207
|
}
|
|
169
208
|
namespace UpdateKanbanBoard {
|
|
170
209
|
namespace Parameters {
|
|
171
|
-
export type BoardId = string;
|
|
210
|
+
export type BoardId = string;
|
|
172
211
|
}
|
|
173
212
|
export interface PathParameters {
|
|
174
|
-
boardId: Parameters.BoardId
|
|
213
|
+
boardId: Parameters.BoardId;
|
|
175
214
|
}
|
|
176
215
|
export type RequestBody = Components.Schemas.Board;
|
|
177
216
|
namespace Responses {
|
|
@@ -309,5 +348,9 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
|
309
348
|
export type Board = Components.Schemas.Board;
|
|
310
349
|
export type BoardFilter = Components.Schemas.BoardFilter;
|
|
311
350
|
export type BoardSummary = Components.Schemas.BoardSummary;
|
|
351
|
+
export type FilterGroup = Components.Schemas.FilterGroup;
|
|
352
|
+
export type FilterItem = Components.Schemas.FilterItem;
|
|
353
|
+
export type FilterOperator = Components.Schemas.FilterOperator;
|
|
312
354
|
export type Sorting = Components.Schemas.Sorting;
|
|
313
355
|
export type Swimlane = Components.Schemas.Swimlane;
|
|
356
|
+
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
|
],
|
|
@@ -250,8 +247,7 @@
|
|
|
250
247
|
"type": "object",
|
|
251
248
|
"properties": {
|
|
252
249
|
"id": {
|
|
253
|
-
"type": "string"
|
|
254
|
-
"format": "uuid"
|
|
250
|
+
"type": "string"
|
|
255
251
|
},
|
|
256
252
|
"title": {
|
|
257
253
|
"type": "string",
|
|
@@ -316,14 +312,15 @@
|
|
|
316
312
|
}
|
|
317
313
|
}
|
|
318
314
|
},
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
"items": {
|
|
322
|
-
"$ref": "#/components/schemas/BoardFilter"
|
|
323
|
-
}
|
|
315
|
+
"board_filter": {
|
|
316
|
+
"$ref": "#/components/schemas/BoardFilter"
|
|
324
317
|
},
|
|
325
318
|
"sorting": {
|
|
326
319
|
"$ref": "#/components/schemas/Sorting"
|
|
320
|
+
},
|
|
321
|
+
"search_query": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"example": "task 1"
|
|
327
324
|
}
|
|
328
325
|
}
|
|
329
326
|
}
|
|
@@ -336,32 +333,27 @@
|
|
|
336
333
|
]
|
|
337
334
|
},
|
|
338
335
|
"Swimlane": {
|
|
339
|
-
"
|
|
340
|
-
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"id": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"title": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"example": "Swimlane 1"
|
|
344
|
+
},
|
|
345
|
+
"position": {
|
|
346
|
+
"type": "number",
|
|
347
|
+
"example": 1
|
|
348
|
+
},
|
|
349
|
+
"filter": {
|
|
341
350
|
"$ref": "#/components/schemas/BoardFilter"
|
|
342
351
|
},
|
|
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
|
-
}
|
|
352
|
+
"title_chip_variant": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"example": "success"
|
|
363
355
|
}
|
|
364
|
-
|
|
356
|
+
}
|
|
365
357
|
},
|
|
366
358
|
"Sorting": {
|
|
367
359
|
"type": "object",
|
|
@@ -386,21 +378,144 @@
|
|
|
386
378
|
"BoardFilter": {
|
|
387
379
|
"type": "object",
|
|
388
380
|
"properties": {
|
|
389
|
-
"
|
|
390
|
-
"type": "
|
|
391
|
-
"
|
|
381
|
+
"items": {
|
|
382
|
+
"type": "array",
|
|
383
|
+
"items": {
|
|
384
|
+
"oneOf": [
|
|
385
|
+
{
|
|
386
|
+
"$ref": "#/components/schemas/FilterItem"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"$ref": "#/components/schemas/FilterGroup"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
392
393
|
},
|
|
393
|
-
"
|
|
394
|
+
"combination": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"enum": [
|
|
397
|
+
"AND",
|
|
398
|
+
"OR"
|
|
399
|
+
],
|
|
400
|
+
"example": "OR"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": [
|
|
404
|
+
"items",
|
|
405
|
+
"combination"
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
"FilterGroup": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"properties": {
|
|
411
|
+
"items": {
|
|
394
412
|
"type": "array",
|
|
395
413
|
"items": {
|
|
396
|
-
"
|
|
397
|
-
"example": "SKIPPED"
|
|
414
|
+
"$ref": "#/components/schemas/FilterItem"
|
|
398
415
|
}
|
|
416
|
+
},
|
|
417
|
+
"combination": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"enum": [
|
|
420
|
+
"AND",
|
|
421
|
+
"OR"
|
|
422
|
+
],
|
|
423
|
+
"example": "AND"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"required": [
|
|
427
|
+
"items",
|
|
428
|
+
"combination"
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"FilterOperator": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"enum": [
|
|
434
|
+
"EQUALS",
|
|
435
|
+
"NOT_EQUALS",
|
|
436
|
+
"EMPTY",
|
|
437
|
+
"NOT_EMPTY",
|
|
438
|
+
"CONTAINS",
|
|
439
|
+
"NOT_CONTAINS",
|
|
440
|
+
"IS_ONE_OF",
|
|
441
|
+
"IS_NONE_OF",
|
|
442
|
+
"GREATER_THAN",
|
|
443
|
+
"LESS_THAN",
|
|
444
|
+
"GREATER_THAN_OR_EQUAL",
|
|
445
|
+
"LESS_THAN_OR_EQUAL"
|
|
446
|
+
],
|
|
447
|
+
"example": "EQUALS",
|
|
448
|
+
"description": "The comparison operator for filtering"
|
|
449
|
+
},
|
|
450
|
+
"ValueType": {
|
|
451
|
+
"oneOf": [
|
|
452
|
+
{
|
|
453
|
+
"type": "string",
|
|
454
|
+
"example": "100020"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "number",
|
|
458
|
+
"example": 42
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"type": "boolean",
|
|
462
|
+
"example": true
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "array",
|
|
466
|
+
"items": {
|
|
467
|
+
"oneOf": [
|
|
468
|
+
{
|
|
469
|
+
"type": "string"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": "number"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"example": [
|
|
480
|
+
"value1",
|
|
481
|
+
"value2",
|
|
482
|
+
123,
|
|
483
|
+
true
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"description": "The value to compare against - can be a single value (string, number, boolean) or an array of values"
|
|
488
|
+
},
|
|
489
|
+
"FilterItem": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"properties": {
|
|
492
|
+
"key": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"example": "assignee",
|
|
495
|
+
"description": "The field key to filter on"
|
|
496
|
+
},
|
|
497
|
+
"operator": {
|
|
498
|
+
"$ref": "#/components/schemas/FilterOperator"
|
|
499
|
+
},
|
|
500
|
+
"value": {
|
|
501
|
+
"$ref": "#/components/schemas/ValueType"
|
|
502
|
+
},
|
|
503
|
+
"data_type": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"enum": [
|
|
506
|
+
"string",
|
|
507
|
+
"number",
|
|
508
|
+
"boolean",
|
|
509
|
+
"date"
|
|
510
|
+
],
|
|
511
|
+
"example": "string",
|
|
512
|
+
"description": "The data type of the field"
|
|
399
513
|
}
|
|
400
514
|
},
|
|
401
515
|
"required": [
|
|
402
|
-
"
|
|
403
|
-
"
|
|
516
|
+
"key",
|
|
517
|
+
"operator",
|
|
518
|
+
"value"
|
|
404
519
|
]
|
|
405
520
|
}
|
|
406
521
|
}
|