@ram_28/kf-ai-sdk 1.0.11 → 1.0.12

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.
Files changed (193) hide show
  1. package/README.md +55 -48
  2. package/dist/api/client.d.ts +14 -14
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/datetime.d.ts +5 -5
  5. package/dist/api/datetime.d.ts.map +1 -1
  6. package/dist/api/index.d.ts +1 -1
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/metadata.d.ts +2 -2
  9. package/dist/api/metadata.d.ts.map +1 -1
  10. package/dist/api.cjs +1 -0
  11. package/dist/api.d.ts +4 -0
  12. package/dist/api.d.ts.map +1 -0
  13. package/dist/api.mjs +27 -0
  14. package/dist/api.types.cjs +1 -0
  15. package/dist/api.types.d.ts +4 -0
  16. package/dist/api.types.d.ts.map +1 -0
  17. package/dist/api.types.mjs +1 -0
  18. package/dist/auth/AuthProvider.d.ts +3 -3
  19. package/dist/auth/AuthProvider.d.ts.map +1 -1
  20. package/dist/auth/authClient.d.ts +4 -4
  21. package/dist/auth/authClient.d.ts.map +1 -1
  22. package/dist/auth/authConfig.d.ts +5 -5
  23. package/dist/auth/authConfig.d.ts.map +1 -1
  24. package/dist/auth/index.d.ts +1 -1
  25. package/dist/auth/index.d.ts.map +1 -1
  26. package/dist/auth/types.d.ts +21 -21
  27. package/dist/auth/types.d.ts.map +1 -1
  28. package/dist/auth/useAuth.d.ts +2 -2
  29. package/dist/auth/useAuth.d.ts.map +1 -1
  30. package/dist/auth.cjs +1 -0
  31. package/dist/auth.d.ts +5 -0
  32. package/dist/auth.d.ts.map +1 -0
  33. package/dist/auth.mjs +280 -0
  34. package/dist/auth.types.cjs +1 -0
  35. package/dist/auth.types.d.ts +2 -0
  36. package/dist/auth.types.d.ts.map +1 -0
  37. package/dist/auth.types.mjs +1 -0
  38. package/dist/base-types.d.ts +2 -0
  39. package/dist/base-types.d.ts.map +1 -0
  40. package/dist/client-C15j4O5B.cjs +1 -0
  41. package/dist/client-CfvLiGfP.js +233 -0
  42. package/dist/cn-Dr87sK3i.js +2775 -0
  43. package/dist/cn-mXUIg4vp.cjs +1 -0
  44. package/dist/components/hooks/index.d.ts +3 -3
  45. package/dist/components/hooks/index.d.ts.map +1 -1
  46. package/dist/components/hooks/useFilter/index.d.ts +2 -2
  47. package/dist/components/hooks/useFilter/index.d.ts.map +1 -1
  48. package/dist/components/hooks/useFilter/types.d.ts +19 -31
  49. package/dist/components/hooks/useFilter/types.d.ts.map +1 -1
  50. package/dist/components/hooks/useFilter/useFilter.d.ts +2 -2
  51. package/dist/components/hooks/useFilter/useFilter.d.ts.map +1 -1
  52. package/dist/components/hooks/useForm/apiClient.d.ts +6 -6
  53. package/dist/components/hooks/useForm/apiClient.d.ts.map +1 -1
  54. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts +7 -7
  55. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts.map +1 -1
  56. package/dist/components/hooks/useForm/index.d.ts +5 -5
  57. package/dist/components/hooks/useForm/index.d.ts.map +1 -1
  58. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts +10 -10
  59. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts.map +1 -1
  60. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts +7 -12
  61. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts.map +1 -1
  62. package/dist/components/hooks/useForm/schemaParser.utils.d.ts +7 -7
  63. package/dist/components/hooks/useForm/schemaParser.utils.d.ts.map +1 -1
  64. package/dist/components/hooks/useForm/types.d.ts +67 -76
  65. package/dist/components/hooks/useForm/types.d.ts.map +1 -1
  66. package/dist/components/hooks/useForm/useForm.d.ts +2 -2
  67. package/dist/components/hooks/useForm/useForm.d.ts.map +1 -1
  68. package/dist/components/hooks/useKanban/apiClient.d.ts +16 -16
  69. package/dist/components/hooks/useKanban/apiClient.d.ts.map +1 -1
  70. package/dist/components/hooks/useKanban/context.d.ts +3 -3
  71. package/dist/components/hooks/useKanban/context.d.ts.map +1 -1
  72. package/dist/components/hooks/useKanban/dragDropManager.d.ts +7 -7
  73. package/dist/components/hooks/useKanban/dragDropManager.d.ts.map +1 -1
  74. package/dist/components/hooks/useKanban/index.d.ts +1 -1
  75. package/dist/components/hooks/useKanban/index.d.ts.map +1 -1
  76. package/dist/components/hooks/useKanban/types.d.ts +65 -67
  77. package/dist/components/hooks/useKanban/types.d.ts.map +1 -1
  78. package/dist/components/hooks/useKanban/useKanban.d.ts +2 -2
  79. package/dist/components/hooks/useKanban/useKanban.d.ts.map +1 -1
  80. package/dist/components/hooks/useTable/index.d.ts +1 -1
  81. package/dist/components/hooks/useTable/index.d.ts.map +1 -1
  82. package/dist/components/hooks/useTable/types.d.ts +10 -10
  83. package/dist/components/hooks/useTable/types.d.ts.map +1 -1
  84. package/dist/components/hooks/useTable/useTable.d.ts +2 -2
  85. package/dist/components/hooks/useTable/useTable.d.ts.map +1 -1
  86. package/dist/filter.cjs +1 -0
  87. package/dist/filter.d.ts +3 -0
  88. package/dist/filter.d.ts.map +1 -0
  89. package/dist/filter.mjs +6 -0
  90. package/dist/filter.types.cjs +1 -0
  91. package/dist/filter.types.d.ts +2 -0
  92. package/dist/filter.types.d.ts.map +1 -0
  93. package/dist/filter.types.mjs +1 -0
  94. package/dist/form.cjs +1 -0
  95. package/dist/form.d.ts +3 -0
  96. package/dist/form.d.ts.map +1 -0
  97. package/dist/form.mjs +1346 -0
  98. package/dist/form.types.cjs +1 -0
  99. package/dist/form.types.d.ts +2 -0
  100. package/dist/form.types.d.ts.map +1 -0
  101. package/dist/form.types.mjs +1 -0
  102. package/dist/jsx-runtime-BYECrxsp.cjs +30 -0
  103. package/dist/jsx-runtime-DGlMoOmv.js +630 -0
  104. package/dist/kanban.cjs +13 -0
  105. package/dist/kanban.d.ts +5 -0
  106. package/dist/kanban.d.ts.map +1 -0
  107. package/dist/kanban.mjs +694 -0
  108. package/dist/kanban.types.cjs +1 -0
  109. package/dist/kanban.types.d.ts +2 -0
  110. package/dist/kanban.types.d.ts.map +1 -0
  111. package/dist/kanban.types.mjs +1 -0
  112. package/dist/kanban.ui.cjs +1 -0
  113. package/dist/kanban.ui.d.ts +2 -0
  114. package/dist/kanban.ui.d.ts.map +1 -0
  115. package/dist/kanban.ui.mjs +104 -0
  116. package/dist/metadata-2FLBsFcf.cjs +1 -0
  117. package/dist/metadata-DBcoDth-.js +43 -0
  118. package/dist/table.cjs +1 -0
  119. package/dist/table.d.ts +2 -0
  120. package/dist/table.d.ts.map +1 -0
  121. package/dist/table.mjs +148 -0
  122. package/dist/table.types.cjs +1 -0
  123. package/dist/table.types.d.ts +2 -0
  124. package/dist/table.types.d.ts.map +1 -0
  125. package/dist/table.types.mjs +1 -0
  126. package/dist/types/base-fields.d.ts +45 -45
  127. package/dist/types/base-fields.d.ts.map +1 -1
  128. package/dist/types/common.d.ts +45 -61
  129. package/dist/types/common.d.ts.map +1 -1
  130. package/dist/types.cjs +1 -0
  131. package/dist/types.mjs +1 -0
  132. package/dist/useFilter-CXFqEHyI.js +129 -0
  133. package/dist/useFilter-D-bCDo6Z.cjs +1 -0
  134. package/dist/utils/formatting.d.ts +4 -4
  135. package/dist/utils/formatting.d.ts.map +1 -1
  136. package/dist/utils.cjs +4 -0
  137. package/dist/utils.d.ts +3 -0
  138. package/dist/utils.d.ts.map +1 -0
  139. package/dist/utils.mjs +105 -0
  140. package/package.json +147 -9
  141. package/sdk/api/client.ts +51 -51
  142. package/sdk/api/datetime.ts +5 -5
  143. package/sdk/api/index.ts +28 -33
  144. package/sdk/api/metadata.ts +4 -4
  145. package/sdk/api.ts +24 -0
  146. package/sdk/api.types.ts +58 -0
  147. package/sdk/auth/AuthProvider.tsx +18 -18
  148. package/sdk/auth/authClient.ts +9 -9
  149. package/sdk/auth/authConfig.ts +9 -9
  150. package/sdk/auth/index.ts +5 -5
  151. package/sdk/auth/types.ts +21 -21
  152. package/sdk/auth/useAuth.ts +2 -2
  153. package/sdk/auth.ts +22 -0
  154. package/sdk/auth.types.ts +28 -0
  155. package/sdk/base-types.ts +45 -0
  156. package/sdk/components/hooks/index.ts +22 -22
  157. package/sdk/components/hooks/useFilter/index.ts +8 -14
  158. package/sdk/components/hooks/useFilter/types.ts +29 -58
  159. package/sdk/components/hooks/useFilter/useFilter.ts +41 -44
  160. package/sdk/components/hooks/useForm/apiClient.ts +8 -8
  161. package/sdk/components/hooks/useForm/expressionValidator.utils.ts +18 -18
  162. package/sdk/components/hooks/useForm/index.ts +24 -24
  163. package/sdk/components/hooks/useForm/optimizedExpressionValidator.utils.ts +22 -22
  164. package/sdk/components/hooks/useForm/ruleClassifier.utils.ts +26 -62
  165. package/sdk/components/hooks/useForm/schemaParser.utils.ts +24 -24
  166. package/sdk/components/hooks/useForm/types.ts +66 -82
  167. package/sdk/components/hooks/useForm/useForm.ts +15 -21
  168. package/sdk/components/hooks/useKanban/apiClient.ts +54 -54
  169. package/sdk/components/hooks/useKanban/context.ts +3 -3
  170. package/sdk/components/hooks/useKanban/dragDropManager.ts +19 -19
  171. package/sdk/components/hooks/useKanban/index.ts +26 -26
  172. package/sdk/components/hooks/useKanban/types.ts +69 -71
  173. package/sdk/components/hooks/useKanban/useKanban.ts +43 -51
  174. package/sdk/components/hooks/useKanban/useKanbanSimple.ts +4 -4
  175. package/sdk/components/hooks/useTable/index.ts +5 -1
  176. package/sdk/components/hooks/useTable/types.ts +10 -10
  177. package/sdk/components/hooks/useTable/useTable.ts +10 -10
  178. package/sdk/filter.ts +13 -0
  179. package/sdk/filter.types.ts +17 -0
  180. package/sdk/form.ts +15 -0
  181. package/sdk/form.types.ts +46 -0
  182. package/sdk/kanban.ts +23 -0
  183. package/sdk/kanban.types.ts +50 -0
  184. package/sdk/kanban.ui.ts +16 -0
  185. package/sdk/table.ts +7 -0
  186. package/sdk/table.types.ts +13 -0
  187. package/sdk/types/base-fields.ts +47 -47
  188. package/sdk/types/common.ts +47 -71
  189. package/sdk/types/index.ts +1 -1
  190. package/sdk/utils/formatting.ts +4 -4
  191. package/sdk/utils.ts +10 -0
  192. package/dist/index.cjs +0 -45
  193. package/dist/index.mjs +0 -6387
@@ -4,8 +4,8 @@
4
4
  // Core TypeScript interfaces for the kanban board functionality
5
5
  // Following patterns from useTable and useForm
6
6
 
7
- import type { Condition, ConditionGroup, UseFilterReturn } from "../useFilter";
8
- import type { ConditionGroupOperator } from "../../../types/common";
7
+ import type { ConditionType, ConditionGroupType, UseFilterReturnType } from "../useFilter";
8
+ import type { ConditionGroupOperatorType } from "../../../types/common";
9
9
 
10
10
  // ============================================================
11
11
  // CORE DATA STRUCTURES
@@ -15,7 +15,7 @@ import type { ConditionGroupOperator } from "../../../types/common";
15
15
  * Static column configuration (no CRUD operations)
16
16
  * Columns are defined once in the hook configuration
17
17
  */
18
- export interface ColumnConfig {
18
+ export interface ColumnConfigType {
19
19
  /** Unique column identifier */
20
20
  id: string;
21
21
  /** Display title */
@@ -32,7 +32,7 @@ export interface ColumnConfig {
32
32
  * Base kanban card interface
33
33
  * @template T - Custom fields for the card
34
34
  */
35
- export type KanbanCard<T = Record<string, any>> = {
35
+ export type KanbanCardType<T = Record<string, any>> = {
36
36
  /** Unique identifier */
37
37
  _id: string;
38
38
  /** Card title */
@@ -50,12 +50,12 @@ export type KanbanCard<T = Record<string, any>> = {
50
50
  /**
51
51
  * Kanban card with custom fields
52
52
  */
53
- export type KanbanCardWithData<T> = KanbanCard<Record<string, never>> & T;
53
+ export type KanbanCardWithDataType<T> = KanbanCardType<Record<string, never>> & T;
54
54
 
55
55
  /**
56
56
  * Base kanban card without custom fields
57
57
  */
58
- export interface BaseKanbanCard {
58
+ export interface BaseKanbanCardType {
59
59
  /** Unique identifier */
60
60
  _id: string;
61
61
  /** Card title */
@@ -74,7 +74,7 @@ export interface BaseKanbanCard {
74
74
  * Kanban column interface
75
75
  * @template T - Custom fields for cards in this column
76
76
  */
77
- export interface KanbanColumn<T = Record<string, any>> {
77
+ export interface KanbanColumnType<T = Record<string, any>> {
78
78
  /** Unique identifier */
79
79
  _id: string;
80
80
  /** Column title */
@@ -82,7 +82,7 @@ export interface KanbanColumn<T = Record<string, any>> {
82
82
  /** Position among columns (0-indexed) */
83
83
  position: number;
84
84
  /** Cards in this column */
85
- cards: KanbanCard<T>[];
85
+ cards: KanbanCardType<T>[];
86
86
  /** Optional color for the column header */
87
87
  color?: string;
88
88
  /** Optional limit on number of cards (WIP limit) */
@@ -99,7 +99,7 @@ export interface KanbanColumn<T = Record<string, any>> {
99
99
  * Column definition for display and behavior
100
100
  * Similar to ColumnDefinition in useTable
101
101
  */
102
- export interface ColumnDefinition<T> {
102
+ export interface ColumnDefinitionType<T> {
103
103
  /** Field name from the card type */
104
104
  fieldId: keyof T;
105
105
  /** Display label (optional, defaults to fieldId) */
@@ -119,11 +119,11 @@ export interface ColumnDefinition<T> {
119
119
  /**
120
120
  * Drag and drop state management
121
121
  */
122
- export interface DragDropState<T> {
122
+ export interface DragDropStateType<T> {
123
123
  /** Whether a drag operation is in progress */
124
124
  isDragging: boolean;
125
125
  /** The card currently being dragged */
126
- draggedCard: KanbanCard<T> | null;
126
+ draggedCard: KanbanCardType<T> | null;
127
127
  /** The column currently being hovered over */
128
128
  dragOverColumn: string | null;
129
129
  /** The position within the column being hovered over */
@@ -135,9 +135,9 @@ export interface DragDropState<T> {
135
135
  /**
136
136
  * Drag event handlers
137
137
  */
138
- export interface DragDropHandlers<T> {
138
+ export interface DragDropHandlersType<T> {
139
139
  /** Handle drag start event */
140
- handleDragStart: (event: DragEvent, card: KanbanCard<T>) => void;
140
+ handleDragStart: (event: DragEvent, card: KanbanCardType<T>) => void;
141
141
  /** Handle drag over event */
142
142
  handleDragOver: (event: DragEvent, columnId?: string) => void;
143
143
  /** Handle drop event */
@@ -145,9 +145,9 @@ export interface DragDropHandlers<T> {
145
145
  /** Handle drag end event */
146
146
  handleDragEnd: () => void;
147
147
  /** Handle keyboard navigation */
148
- handleKeyDown: (event: KeyboardEvent, card: KanbanCard<T>) => void;
148
+ handleKeyDown: (event: KeyboardEvent, card: KanbanCardType<T>) => void;
149
149
  /** Handle touch start for mobile */
150
- handleTouchStart: (event: TouchEvent, card: KanbanCard<T>) => void;
150
+ handleTouchStart: (event: TouchEvent, card: KanbanCardType<T>) => void;
151
151
  /** Handle touch move for mobile */
152
152
  handleTouchMove: (event: TouchEvent) => void;
153
153
  /** Handle touch end for mobile */
@@ -157,12 +157,12 @@ export interface DragDropHandlers<T> {
157
157
  /**
158
158
  * Combined drag and drop interface
159
159
  */
160
- export interface DragDropManager<T>
161
- extends DragDropState<T>,
162
- DragDropHandlers<T> {
160
+ export interface DragDropManagerType<T>
161
+ extends DragDropStateType<T>,
162
+ DragDropHandlersType<T> {
163
163
  /** Announce moves for accessibility */
164
164
  announceMove: (
165
- card: KanbanCard<T>,
165
+ card: KanbanCardType<T>,
166
166
  fromColumn: string,
167
167
  toColumn: string
168
168
  ) => void;
@@ -177,14 +177,12 @@ export interface DragDropManager<T>
177
177
  /**
178
178
  * Configuration options for the useKanban hook
179
179
  */
180
- export interface UseKanbanOptions<T> {
180
+ export interface UseKanbanOptionsType<T> {
181
181
  /** Card data source identifier */
182
- cardSource?: string;
183
- /** Card data source identifier (alias for cardSource) */
184
- source?: string;
182
+ source: string;
185
183
 
186
184
  /** Static column definitions (required) */
187
- columns: ColumnConfig[];
185
+ columns: ColumnConfigType[];
188
186
 
189
187
  /** Enable drag and drop functionality */
190
188
  enableDragDrop?: boolean;
@@ -198,9 +196,9 @@ export interface UseKanbanOptions<T> {
198
196
  /** Initial state */
199
197
  initialState?: {
200
198
  /** Initial filter conditions */
201
- filters?: Array<Condition | ConditionGroup>;
199
+ filters?: Array<ConditionType | ConditionGroupType>;
202
200
  /** Initial filter operator for combining filter conditions */
203
- filterOperator?: ConditionGroupOperator;
201
+ filterOperator?: ConditionGroupOperatorType;
204
202
  /** Initial search query */
205
203
  search?: string;
206
204
  /** Initial column order */
@@ -214,12 +212,12 @@ export interface UseKanbanOptions<T> {
214
212
 
215
213
  /** Event callbacks */
216
214
  onCardMove?: (
217
- card: KanbanCard<T>,
215
+ card: KanbanCardType<T>,
218
216
  fromColumnId: string,
219
217
  toColumnId: string
220
218
  ) => void;
221
- onCardCreate?: (card: KanbanCard<T>) => void;
222
- onCardUpdate?: (card: KanbanCard<T>) => void;
219
+ onCardCreate?: (card: KanbanCardType<T>) => void;
220
+ onCardUpdate?: (card: KanbanCardType<T>) => void;
223
221
  onCardDelete?: (cardId: string) => void;
224
222
  onSuccess?: (data: any) => void;
225
223
  onError?: (error: Error) => void;
@@ -232,13 +230,13 @@ export interface UseKanbanOptions<T> {
232
230
  /**
233
231
  * Card operations interface
234
232
  */
235
- export interface CardOperations<T> {
233
+ export interface CardOperationsType<T> {
236
234
  /** Create a new card */
237
235
  create: (
238
- card: Partial<KanbanCard<T>> & { columnId: string }
236
+ card: Partial<KanbanCardType<T>> & { columnId: string }
239
237
  ) => Promise<string>;
240
238
  /** Update an existing card */
241
- update: (id: string, updates: Partial<KanbanCard<T>>) => Promise<void>;
239
+ update: (id: string, updates: Partial<KanbanCardType<T>>) => Promise<void>;
242
240
  /** Delete a card */
243
241
  delete: (id: string) => Promise<void>;
244
242
  /** Move a card to a different column */
@@ -255,7 +253,7 @@ export interface CardOperations<T> {
255
253
  /**
256
254
  * Search functionality interface
257
255
  */
258
- export interface SearchOperations {
256
+ export interface SearchOperationsType {
259
257
  /** Current search query */
260
258
  query: string;
261
259
  /** Set search query */
@@ -268,13 +266,13 @@ export interface SearchOperations {
268
266
  * Main return interface for useKanban hook
269
267
  * Follows useTable pattern with flat access
270
268
  */
271
- export interface UseKanbanReturn<T> {
269
+ export interface UseKanbanReturnType<T> {
272
270
  // ============================================================
273
271
  // DATA
274
272
  // ============================================================
275
273
 
276
274
  /** All columns with their cards */
277
- columns: KanbanColumn<T>[];
275
+ columns: KanbanColumnType<T>[];
278
276
  /** Total number of cards across all columns */
279
277
  totalCards: number;
280
278
 
@@ -302,10 +300,10 @@ export interface UseKanbanReturn<T> {
302
300
 
303
301
  /** Create a new card */
304
302
  createCard: (
305
- card: Partial<KanbanCard<T>> & { columnId: string }
303
+ card: Partial<KanbanCardType<T>> & { columnId: string }
306
304
  ) => Promise<string>;
307
305
  /** Update an existing card */
308
- updateCard: (id: string, updates: Partial<KanbanCard<T>>) => Promise<void>;
306
+ updateCard: (id: string, updates: Partial<KanbanCardType<T>>) => Promise<void>;
309
307
  /** Delete a card */
310
308
  deleteCard: (id: string) => Promise<void>;
311
309
  /** Move a card to a different column */
@@ -334,7 +332,7 @@ export interface UseKanbanReturn<T> {
334
332
  // ============================================================
335
333
 
336
334
  /** Filter functionality */
337
- filter: UseFilterReturn;
335
+ filter: UseFilterReturnType;
338
336
 
339
337
  // ============================================================
340
338
  // DRAG DROP (Flat Access)
@@ -343,11 +341,11 @@ export interface UseKanbanReturn<T> {
343
341
  /** Whether a drag operation is in progress */
344
342
  isDragging: boolean;
345
343
  /** The card currently being dragged */
346
- draggedCard: KanbanCard<T> | null;
344
+ draggedCard: KanbanCardType<T> | null;
347
345
  /** The column currently being hovered over during drag */
348
346
  dragOverColumn: string | null;
349
347
  /** Handle drag start event */
350
- handleDragStart: (event: DragEvent, card: KanbanCard<T>) => void;
348
+ handleDragStart: (event: DragEvent, card: KanbanCardType<T>) => void;
351
349
  /** Handle drag over event */
352
350
  handleDragOver: (event: DragEvent, columnId?: string) => void;
353
351
  /** Handle drop event */
@@ -355,7 +353,7 @@ export interface UseKanbanReturn<T> {
355
353
  /** Handle drag end event */
356
354
  handleDragEnd: () => void;
357
355
  /** Handle keyboard navigation */
358
- handleKeyDown: (event: KeyboardEvent, card: KanbanCard<T>) => void;
356
+ handleKeyDown: (event: KeyboardEvent, card: KanbanCardType<T>) => void;
359
357
 
360
358
  // ============================================================
361
359
  // PROP GETTERS
@@ -364,7 +362,7 @@ export interface UseKanbanReturn<T> {
364
362
  /**
365
363
  * Get props for a draggable card
366
364
  */
367
- getCardProps: (card: KanbanCard<T>) => {
365
+ getCardProps: (card: KanbanCardType<T>) => {
368
366
  draggable: boolean;
369
367
  role: string;
370
368
  "aria-selected": boolean;
@@ -404,21 +402,21 @@ export interface UseKanbanReturn<T> {
404
402
  /**
405
403
  * API response for card operations
406
404
  */
407
- export interface CardApiResponse<T> {
408
- Data: KanbanCard<T>[];
405
+ export interface CardApiResponseType<T> {
406
+ Data: KanbanCardType<T>[];
409
407
  }
410
408
 
411
409
  /**
412
410
  * API response for column operations
413
411
  */
414
- export interface ColumnApiResponse<T> {
415
- Data: KanbanColumn<T>[];
412
+ export interface ColumnApiResponseType<T> {
413
+ Data: KanbanColumnType<T>[];
416
414
  }
417
415
 
418
416
  /**
419
417
  * Request payload for moving a card
420
418
  */
421
- export interface MoveCardRequest {
419
+ export interface MoveCardRequestType {
422
420
  cardId: string;
423
421
  toColumnId: string;
424
422
  position?: number;
@@ -427,7 +425,7 @@ export interface MoveCardRequest {
427
425
  /**
428
426
  * Request payload for reordering items
429
427
  */
430
- export interface ReorderRequest {
428
+ export interface ReorderRequestType {
431
429
  itemIds: string[];
432
430
  containerId?: string;
433
431
  }
@@ -435,20 +433,20 @@ export interface ReorderRequest {
435
433
  /**
436
434
  * Bulk card update request
437
435
  */
438
- export interface BulkCardUpdateRequest<T> {
436
+ export interface BulkCardUpdateRequestType<T> {
439
437
  updates: Array<{
440
438
  cardId: string;
441
- data: Partial<KanbanCard<T>>;
439
+ data: Partial<KanbanCardType<T>>;
442
440
  }>;
443
441
  }
444
442
 
445
443
  /**
446
444
  * Bulk column update request
447
445
  */
448
- export interface BulkColumnUpdateRequest<T> {
446
+ export interface BulkColumnUpdateRequestType<T> {
449
447
  updates: Array<{
450
448
  columnId: string;
451
- data: Partial<KanbanColumn<T>>;
449
+ data: Partial<KanbanColumnType<T>>;
452
450
  }>;
453
451
  }
454
452
 
@@ -459,7 +457,7 @@ export interface BulkColumnUpdateRequest<T> {
459
457
  /**
460
458
  * Validation result interface
461
459
  */
462
- export interface ValidationResult {
460
+ export interface ValidationResultType {
463
461
  isValid: boolean;
464
462
  message?: string;
465
463
  errors?: Array<{
@@ -471,18 +469,18 @@ export interface ValidationResult {
471
469
  /**
472
470
  * Card validation context
473
471
  */
474
- export interface CardValidationContext<T> {
475
- card: Partial<KanbanCard<T>>;
476
- column?: KanbanColumn<T>;
477
- allColumns: KanbanColumn<T>[];
472
+ export interface CardValidationContextType<T> {
473
+ card: Partial<KanbanCardType<T>>;
474
+ column?: KanbanColumnType<T>;
475
+ allColumns: KanbanColumnType<T>[];
478
476
  }
479
477
 
480
478
  /**
481
479
  * Column validation context
482
480
  */
483
- export interface ColumnValidationContext<T> {
484
- column: Partial<KanbanColumn<T>>;
485
- allColumns: KanbanColumn<T>[];
481
+ export interface ColumnValidationContextType<T> {
482
+ column: Partial<KanbanColumnType<T>>;
483
+ allColumns: KanbanColumnType<T>[];
486
484
  }
487
485
 
488
486
  // ============================================================
@@ -492,7 +490,7 @@ export interface ColumnValidationContext<T> {
492
490
  /**
493
491
  * Kanban event types for callbacks
494
492
  */
495
- export type KanbanEventType =
493
+ export type KanbanEventTypeType =
496
494
  | "card-created"
497
495
  | "card-updated"
498
496
  | "card-deleted"
@@ -502,12 +500,12 @@ export type KanbanEventType =
502
500
  /**
503
501
  * Kanban event data
504
502
  */
505
- export interface KanbanEvent<T> {
506
- type: KanbanEventType;
503
+ export interface KanbanEventType<T> {
504
+ type: KanbanEventTypeType;
507
505
  timestamp: Date;
508
506
  data: any;
509
- card?: KanbanCard<T>;
510
- column?: KanbanColumn<T>;
507
+ card?: KanbanCardType<T>;
508
+ column?: KanbanColumnType<T>;
511
509
  fromColumnId?: string;
512
510
  toColumnId?: string;
513
511
  }
@@ -519,25 +517,25 @@ export interface KanbanEvent<T> {
519
517
  /**
520
518
  * Utility type for extracting card type from column
521
519
  */
522
- export type ExtractCardType<C> = C extends KanbanColumn<infer T> ? T : never;
520
+ export type ExtractCardTypeType<C> = C extends KanbanColumnType<infer T> ? T : never;
523
521
 
524
522
  /**
525
523
  * Utility type for making certain fields optional
526
524
  */
527
- export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
525
+ export type PartialByType<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
528
526
 
529
527
  /**
530
528
  * Utility type for card creation (auto-generated fields optional)
531
529
  */
532
- export type CreateCardInput<T> = PartialBy<
533
- KanbanCard<T>,
530
+ export type CreateCardInputType<T> = PartialByType<
531
+ KanbanCardType<T>,
534
532
  "_id" | "position" | "_created_at" | "_modified_at"
535
533
  >;
536
534
 
537
535
  /**
538
536
  * Utility type for column creation (auto-generated fields optional)
539
537
  */
540
- export type CreateColumnInput<T> = PartialBy<
541
- KanbanColumn<T>,
538
+ export type CreateColumnInputType<T> = PartialByType<
539
+ KanbanColumnType<T>,
542
540
  "_id" | "position" | "cards" | "_created_at" | "_modified_at"
543
541
  >;