@codingfactory/task-engine-client 0.1.0 → 1.0.1

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 (37) hide show
  1. package/dist/components/dashboard/TaskWorkloadPanel.vue.d.ts +13 -0
  2. package/dist/components/index.d.ts +11 -0
  3. package/dist/components/pages/TaskDashboardPage.vue.d.ts +11 -0
  4. package/dist/components/pages/TaskDetailPage.vue.d.ts +13 -0
  5. package/dist/components/pages/TaskListPage.vue.d.ts +12 -0
  6. package/dist/components/pages/TaskRecurringPage.vue.d.ts +12 -0
  7. package/dist/components/pages/index.d.ts +4 -0
  8. package/dist/components/recurrence/RecurringTemplateForm.vue.d.ts +4 -0
  9. package/dist/components/recurrence/RecurringTemplateList.vue.d.ts +2 -2
  10. package/dist/components/shared/TaskAssigneePicker.vue.d.ts +30 -0
  11. package/dist/components/shared/TaskConfirmDialog.vue.d.ts +22 -0
  12. package/dist/components/shared/TaskDeadlineBadge.vue.d.ts +20 -0
  13. package/dist/components/shared/TaskDeadlineField.vue.d.ts +21 -0
  14. package/dist/components/shared/TaskImportExportPanel.vue.d.ts +15 -0
  15. package/dist/components/shared/TaskNotificationToast.vue.d.ts +1 -1
  16. package/dist/components/shared/TaskQuickCreate.vue.d.ts +1 -0
  17. package/dist/components/shared/TaskRolePicker.vue.d.ts +22 -0
  18. package/dist/components/task/TaskDetail.vue.d.ts +24 -1
  19. package/dist/components/task/TaskTimeTracker.vue.d.ts +28 -0
  20. package/dist/components/workflows/WorkflowForm.vue.d.ts +16 -0
  21. package/dist/components/workflows/WorkflowList.vue.d.ts +34 -0
  22. package/dist/components/workflows/WorkflowLogs.vue.d.ts +21 -0
  23. package/dist/composables/index.d.ts +2 -0
  24. package/dist/composables/useRecurringTemplates.d.ts +114 -0
  25. package/dist/composables/useTaskDetail.d.ts +42 -1
  26. package/dist/composables/useTaskWorkflows.d.ts +133 -0
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +7129 -3222
  30. package/dist/stores/index.d.ts +1 -0
  31. package/dist/stores/taskStore.d.ts +300 -3
  32. package/dist/stores/taskWorkflowStore.d.ts +836 -0
  33. package/dist/task-engine-client.css +1 -1
  34. package/dist/types/index.d.ts +261 -0
  35. package/dist/utils/index.d.ts +1 -1
  36. package/dist/utils/taskDisplay.d.ts +7 -1
  37. package/package.json +1 -1
@@ -0,0 +1,836 @@
1
+ import type { PaginatedResponse, TaskWorkflow, TaskWorkflowFilters, TaskWorkflowLog, TaskWorkflowLogFilters, TaskWorkflowMutationPayload, TaskWorkflowTestResult, TaskWorkflowUpdatePayload } from '@/types';
2
+ type WorkflowLogMap = Record<string, PaginatedResponse<TaskWorkflowLog> | undefined>;
3
+ type WorkflowLoadingMap = Record<string, boolean | undefined>;
4
+ export declare const useTaskWorkflowStore: import("pinia").StoreDefinition<"task-engine/workflows", Pick<{
5
+ workflows: import("vue").Ref<{
6
+ id: string;
7
+ tenant_id: string;
8
+ name: string;
9
+ description: string | null;
10
+ trigger_type: import("@/types").WorkflowTriggerType;
11
+ trigger_type_label?: string | null;
12
+ trigger_config: Record<string, unknown> | null;
13
+ conditions: {
14
+ field: import("@/types").WorkflowConditionField;
15
+ operator: import("@/types").WorkflowConditionOperator;
16
+ value?: unknown;
17
+ }[];
18
+ actions: {
19
+ type: import("@/types").WorkflowActionType;
20
+ value?: unknown;
21
+ config?: Record<string, unknown>;
22
+ }[];
23
+ is_enabled: boolean;
24
+ position: number;
25
+ stop_processing: boolean;
26
+ metadata: Record<string, unknown> | null;
27
+ created_by: string | null;
28
+ execution_count: number;
29
+ last_executed_at: string | null;
30
+ created_at: string | null;
31
+ updated_at: string | null;
32
+ }[], TaskWorkflow[] | {
33
+ id: string;
34
+ tenant_id: string;
35
+ name: string;
36
+ description: string | null;
37
+ trigger_type: import("@/types").WorkflowTriggerType;
38
+ trigger_type_label?: string | null;
39
+ trigger_config: Record<string, unknown> | null;
40
+ conditions: {
41
+ field: import("@/types").WorkflowConditionField;
42
+ operator: import("@/types").WorkflowConditionOperator;
43
+ value?: unknown;
44
+ }[];
45
+ actions: {
46
+ type: import("@/types").WorkflowActionType;
47
+ value?: unknown;
48
+ config?: Record<string, unknown>;
49
+ }[];
50
+ is_enabled: boolean;
51
+ position: number;
52
+ stop_processing: boolean;
53
+ metadata: Record<string, unknown> | null;
54
+ created_by: string | null;
55
+ execution_count: number;
56
+ last_executed_at: string | null;
57
+ created_at: string | null;
58
+ updated_at: string | null;
59
+ }[]>;
60
+ pagination: import("vue").Ref<{
61
+ current_page: number;
62
+ last_page: number;
63
+ per_page: number;
64
+ total: number;
65
+ }, {
66
+ current_page: number;
67
+ last_page: number;
68
+ per_page: number;
69
+ total: number;
70
+ } | {
71
+ current_page: number;
72
+ last_page: number;
73
+ per_page: number;
74
+ total: number;
75
+ }>;
76
+ currentWorkflow: import("vue").Ref<{
77
+ id: string;
78
+ tenant_id: string;
79
+ name: string;
80
+ description: string | null;
81
+ trigger_type: import("@/types").WorkflowTriggerType;
82
+ trigger_type_label?: string | null;
83
+ trigger_config: Record<string, unknown> | null;
84
+ conditions: {
85
+ field: import("@/types").WorkflowConditionField;
86
+ operator: import("@/types").WorkflowConditionOperator;
87
+ value?: unknown;
88
+ }[];
89
+ actions: {
90
+ type: import("@/types").WorkflowActionType;
91
+ value?: unknown;
92
+ config?: Record<string, unknown>;
93
+ }[];
94
+ is_enabled: boolean;
95
+ position: number;
96
+ stop_processing: boolean;
97
+ metadata: Record<string, unknown> | null;
98
+ created_by: string | null;
99
+ execution_count: number;
100
+ last_executed_at: string | null;
101
+ created_at: string | null;
102
+ updated_at: string | null;
103
+ } | null, TaskWorkflow | {
104
+ id: string;
105
+ tenant_id: string;
106
+ name: string;
107
+ description: string | null;
108
+ trigger_type: import("@/types").WorkflowTriggerType;
109
+ trigger_type_label?: string | null;
110
+ trigger_config: Record<string, unknown> | null;
111
+ conditions: {
112
+ field: import("@/types").WorkflowConditionField;
113
+ operator: import("@/types").WorkflowConditionOperator;
114
+ value?: unknown;
115
+ }[];
116
+ actions: {
117
+ type: import("@/types").WorkflowActionType;
118
+ value?: unknown;
119
+ config?: Record<string, unknown>;
120
+ }[];
121
+ is_enabled: boolean;
122
+ position: number;
123
+ stop_processing: boolean;
124
+ metadata: Record<string, unknown> | null;
125
+ created_by: string | null;
126
+ execution_count: number;
127
+ last_executed_at: string | null;
128
+ created_at: string | null;
129
+ updated_at: string | null;
130
+ } | null>;
131
+ testResult: import("vue").Ref<{
132
+ workflow: {
133
+ id: string;
134
+ tenant_id: string;
135
+ name: string;
136
+ description: string | null;
137
+ trigger_type: import("@/types").WorkflowTriggerType;
138
+ trigger_type_label?: string | null;
139
+ trigger_config: Record<string, unknown> | null;
140
+ conditions: {
141
+ field: import("@/types").WorkflowConditionField;
142
+ operator: import("@/types").WorkflowConditionOperator;
143
+ value?: unknown;
144
+ }[];
145
+ actions: {
146
+ type: import("@/types").WorkflowActionType;
147
+ value?: unknown;
148
+ config?: Record<string, unknown>;
149
+ }[];
150
+ is_enabled: boolean;
151
+ position: number;
152
+ stop_processing: boolean;
153
+ metadata: Record<string, unknown> | null;
154
+ created_by: string | null;
155
+ execution_count: number;
156
+ last_executed_at: string | null;
157
+ created_at: string | null;
158
+ updated_at: string | null;
159
+ };
160
+ task_id: string;
161
+ trigger_matched: boolean;
162
+ conditions_met: boolean;
163
+ actions: {
164
+ type: string;
165
+ success: boolean;
166
+ message: string;
167
+ data: Record<string, unknown>;
168
+ dry_run: boolean;
169
+ }[];
170
+ } | null, TaskWorkflowTestResult | {
171
+ workflow: {
172
+ id: string;
173
+ tenant_id: string;
174
+ name: string;
175
+ description: string | null;
176
+ trigger_type: import("@/types").WorkflowTriggerType;
177
+ trigger_type_label?: string | null;
178
+ trigger_config: Record<string, unknown> | null;
179
+ conditions: {
180
+ field: import("@/types").WorkflowConditionField;
181
+ operator: import("@/types").WorkflowConditionOperator;
182
+ value?: unknown;
183
+ }[];
184
+ actions: {
185
+ type: import("@/types").WorkflowActionType;
186
+ value?: unknown;
187
+ config?: Record<string, unknown>;
188
+ }[];
189
+ is_enabled: boolean;
190
+ position: number;
191
+ stop_processing: boolean;
192
+ metadata: Record<string, unknown> | null;
193
+ created_by: string | null;
194
+ execution_count: number;
195
+ last_executed_at: string | null;
196
+ created_at: string | null;
197
+ updated_at: string | null;
198
+ };
199
+ task_id: string;
200
+ trigger_matched: boolean;
201
+ conditions_met: boolean;
202
+ actions: {
203
+ type: string;
204
+ success: boolean;
205
+ message: string;
206
+ data: Record<string, unknown>;
207
+ dry_run: boolean;
208
+ }[];
209
+ } | null>;
210
+ logsByWorkflow: import("vue").Ref<WorkflowLogMap, WorkflowLogMap>;
211
+ loading: import("vue").Ref<boolean, boolean>;
212
+ saving: import("vue").Ref<boolean, boolean>;
213
+ error: import("vue").Ref<string | null, string | null>;
214
+ logLoading: import("vue").Ref<WorkflowLoadingMap, WorkflowLoadingMap>;
215
+ enabledWorkflows: import("vue").ComputedRef<{
216
+ id: string;
217
+ tenant_id: string;
218
+ name: string;
219
+ description: string | null;
220
+ trigger_type: import("@/types").WorkflowTriggerType;
221
+ trigger_type_label?: string | null;
222
+ trigger_config: Record<string, unknown> | null;
223
+ conditions: {
224
+ field: import("@/types").WorkflowConditionField;
225
+ operator: import("@/types").WorkflowConditionOperator;
226
+ value?: unknown;
227
+ }[];
228
+ actions: {
229
+ type: import("@/types").WorkflowActionType;
230
+ value?: unknown;
231
+ config?: Record<string, unknown>;
232
+ }[];
233
+ is_enabled: boolean;
234
+ position: number;
235
+ stop_processing: boolean;
236
+ metadata: Record<string, unknown> | null;
237
+ created_by: string | null;
238
+ execution_count: number;
239
+ last_executed_at: string | null;
240
+ created_at: string | null;
241
+ updated_at: string | null;
242
+ }[]>;
243
+ disabledWorkflows: import("vue").ComputedRef<{
244
+ id: string;
245
+ tenant_id: string;
246
+ name: string;
247
+ description: string | null;
248
+ trigger_type: import("@/types").WorkflowTriggerType;
249
+ trigger_type_label?: string | null;
250
+ trigger_config: Record<string, unknown> | null;
251
+ conditions: {
252
+ field: import("@/types").WorkflowConditionField;
253
+ operator: import("@/types").WorkflowConditionOperator;
254
+ value?: unknown;
255
+ }[];
256
+ actions: {
257
+ type: import("@/types").WorkflowActionType;
258
+ value?: unknown;
259
+ config?: Record<string, unknown>;
260
+ }[];
261
+ is_enabled: boolean;
262
+ position: number;
263
+ stop_processing: boolean;
264
+ metadata: Record<string, unknown> | null;
265
+ created_by: string | null;
266
+ execution_count: number;
267
+ last_executed_at: string | null;
268
+ created_at: string | null;
269
+ updated_at: string | null;
270
+ }[]>;
271
+ fetchWorkflows: (filters?: TaskWorkflowFilters) => Promise<PaginatedResponse<TaskWorkflow>>;
272
+ fetchWorkflow: (id: string) => Promise<TaskWorkflow>;
273
+ createWorkflow: (data: TaskWorkflowMutationPayload) => Promise<TaskWorkflow>;
274
+ updateWorkflow: (id: string, data: TaskWorkflowUpdatePayload) => Promise<TaskWorkflow>;
275
+ deleteWorkflow: (id: string) => Promise<void>;
276
+ toggleWorkflow: (id: string, isEnabled?: boolean) => Promise<TaskWorkflow>;
277
+ duplicateWorkflow: (workflow: TaskWorkflow) => Promise<TaskWorkflow>;
278
+ moveWorkflow: (id: string, direction: "up" | "down") => Promise<void>;
279
+ fetchLogs: (workflowId: string, filters?: TaskWorkflowLogFilters) => Promise<PaginatedResponse<TaskWorkflowLog>>;
280
+ runTest: (workflowId: string, taskId: string, context?: Record<string, unknown>) => Promise<TaskWorkflowTestResult>;
281
+ }, "error" | "pagination" | "loading" | "workflows" | "currentWorkflow" | "testResult" | "logsByWorkflow" | "saving" | "logLoading">, Pick<{
282
+ workflows: import("vue").Ref<{
283
+ id: string;
284
+ tenant_id: string;
285
+ name: string;
286
+ description: string | null;
287
+ trigger_type: import("@/types").WorkflowTriggerType;
288
+ trigger_type_label?: string | null;
289
+ trigger_config: Record<string, unknown> | null;
290
+ conditions: {
291
+ field: import("@/types").WorkflowConditionField;
292
+ operator: import("@/types").WorkflowConditionOperator;
293
+ value?: unknown;
294
+ }[];
295
+ actions: {
296
+ type: import("@/types").WorkflowActionType;
297
+ value?: unknown;
298
+ config?: Record<string, unknown>;
299
+ }[];
300
+ is_enabled: boolean;
301
+ position: number;
302
+ stop_processing: boolean;
303
+ metadata: Record<string, unknown> | null;
304
+ created_by: string | null;
305
+ execution_count: number;
306
+ last_executed_at: string | null;
307
+ created_at: string | null;
308
+ updated_at: string | null;
309
+ }[], TaskWorkflow[] | {
310
+ id: string;
311
+ tenant_id: string;
312
+ name: string;
313
+ description: string | null;
314
+ trigger_type: import("@/types").WorkflowTriggerType;
315
+ trigger_type_label?: string | null;
316
+ trigger_config: Record<string, unknown> | null;
317
+ conditions: {
318
+ field: import("@/types").WorkflowConditionField;
319
+ operator: import("@/types").WorkflowConditionOperator;
320
+ value?: unknown;
321
+ }[];
322
+ actions: {
323
+ type: import("@/types").WorkflowActionType;
324
+ value?: unknown;
325
+ config?: Record<string, unknown>;
326
+ }[];
327
+ is_enabled: boolean;
328
+ position: number;
329
+ stop_processing: boolean;
330
+ metadata: Record<string, unknown> | null;
331
+ created_by: string | null;
332
+ execution_count: number;
333
+ last_executed_at: string | null;
334
+ created_at: string | null;
335
+ updated_at: string | null;
336
+ }[]>;
337
+ pagination: import("vue").Ref<{
338
+ current_page: number;
339
+ last_page: number;
340
+ per_page: number;
341
+ total: number;
342
+ }, {
343
+ current_page: number;
344
+ last_page: number;
345
+ per_page: number;
346
+ total: number;
347
+ } | {
348
+ current_page: number;
349
+ last_page: number;
350
+ per_page: number;
351
+ total: number;
352
+ }>;
353
+ currentWorkflow: import("vue").Ref<{
354
+ id: string;
355
+ tenant_id: string;
356
+ name: string;
357
+ description: string | null;
358
+ trigger_type: import("@/types").WorkflowTriggerType;
359
+ trigger_type_label?: string | null;
360
+ trigger_config: Record<string, unknown> | null;
361
+ conditions: {
362
+ field: import("@/types").WorkflowConditionField;
363
+ operator: import("@/types").WorkflowConditionOperator;
364
+ value?: unknown;
365
+ }[];
366
+ actions: {
367
+ type: import("@/types").WorkflowActionType;
368
+ value?: unknown;
369
+ config?: Record<string, unknown>;
370
+ }[];
371
+ is_enabled: boolean;
372
+ position: number;
373
+ stop_processing: boolean;
374
+ metadata: Record<string, unknown> | null;
375
+ created_by: string | null;
376
+ execution_count: number;
377
+ last_executed_at: string | null;
378
+ created_at: string | null;
379
+ updated_at: string | null;
380
+ } | null, TaskWorkflow | {
381
+ id: string;
382
+ tenant_id: string;
383
+ name: string;
384
+ description: string | null;
385
+ trigger_type: import("@/types").WorkflowTriggerType;
386
+ trigger_type_label?: string | null;
387
+ trigger_config: Record<string, unknown> | null;
388
+ conditions: {
389
+ field: import("@/types").WorkflowConditionField;
390
+ operator: import("@/types").WorkflowConditionOperator;
391
+ value?: unknown;
392
+ }[];
393
+ actions: {
394
+ type: import("@/types").WorkflowActionType;
395
+ value?: unknown;
396
+ config?: Record<string, unknown>;
397
+ }[];
398
+ is_enabled: boolean;
399
+ position: number;
400
+ stop_processing: boolean;
401
+ metadata: Record<string, unknown> | null;
402
+ created_by: string | null;
403
+ execution_count: number;
404
+ last_executed_at: string | null;
405
+ created_at: string | null;
406
+ updated_at: string | null;
407
+ } | null>;
408
+ testResult: import("vue").Ref<{
409
+ workflow: {
410
+ id: string;
411
+ tenant_id: string;
412
+ name: string;
413
+ description: string | null;
414
+ trigger_type: import("@/types").WorkflowTriggerType;
415
+ trigger_type_label?: string | null;
416
+ trigger_config: Record<string, unknown> | null;
417
+ conditions: {
418
+ field: import("@/types").WorkflowConditionField;
419
+ operator: import("@/types").WorkflowConditionOperator;
420
+ value?: unknown;
421
+ }[];
422
+ actions: {
423
+ type: import("@/types").WorkflowActionType;
424
+ value?: unknown;
425
+ config?: Record<string, unknown>;
426
+ }[];
427
+ is_enabled: boolean;
428
+ position: number;
429
+ stop_processing: boolean;
430
+ metadata: Record<string, unknown> | null;
431
+ created_by: string | null;
432
+ execution_count: number;
433
+ last_executed_at: string | null;
434
+ created_at: string | null;
435
+ updated_at: string | null;
436
+ };
437
+ task_id: string;
438
+ trigger_matched: boolean;
439
+ conditions_met: boolean;
440
+ actions: {
441
+ type: string;
442
+ success: boolean;
443
+ message: string;
444
+ data: Record<string, unknown>;
445
+ dry_run: boolean;
446
+ }[];
447
+ } | null, TaskWorkflowTestResult | {
448
+ workflow: {
449
+ id: string;
450
+ tenant_id: string;
451
+ name: string;
452
+ description: string | null;
453
+ trigger_type: import("@/types").WorkflowTriggerType;
454
+ trigger_type_label?: string | null;
455
+ trigger_config: Record<string, unknown> | null;
456
+ conditions: {
457
+ field: import("@/types").WorkflowConditionField;
458
+ operator: import("@/types").WorkflowConditionOperator;
459
+ value?: unknown;
460
+ }[];
461
+ actions: {
462
+ type: import("@/types").WorkflowActionType;
463
+ value?: unknown;
464
+ config?: Record<string, unknown>;
465
+ }[];
466
+ is_enabled: boolean;
467
+ position: number;
468
+ stop_processing: boolean;
469
+ metadata: Record<string, unknown> | null;
470
+ created_by: string | null;
471
+ execution_count: number;
472
+ last_executed_at: string | null;
473
+ created_at: string | null;
474
+ updated_at: string | null;
475
+ };
476
+ task_id: string;
477
+ trigger_matched: boolean;
478
+ conditions_met: boolean;
479
+ actions: {
480
+ type: string;
481
+ success: boolean;
482
+ message: string;
483
+ data: Record<string, unknown>;
484
+ dry_run: boolean;
485
+ }[];
486
+ } | null>;
487
+ logsByWorkflow: import("vue").Ref<WorkflowLogMap, WorkflowLogMap>;
488
+ loading: import("vue").Ref<boolean, boolean>;
489
+ saving: import("vue").Ref<boolean, boolean>;
490
+ error: import("vue").Ref<string | null, string | null>;
491
+ logLoading: import("vue").Ref<WorkflowLoadingMap, WorkflowLoadingMap>;
492
+ enabledWorkflows: import("vue").ComputedRef<{
493
+ id: string;
494
+ tenant_id: string;
495
+ name: string;
496
+ description: string | null;
497
+ trigger_type: import("@/types").WorkflowTriggerType;
498
+ trigger_type_label?: string | null;
499
+ trigger_config: Record<string, unknown> | null;
500
+ conditions: {
501
+ field: import("@/types").WorkflowConditionField;
502
+ operator: import("@/types").WorkflowConditionOperator;
503
+ value?: unknown;
504
+ }[];
505
+ actions: {
506
+ type: import("@/types").WorkflowActionType;
507
+ value?: unknown;
508
+ config?: Record<string, unknown>;
509
+ }[];
510
+ is_enabled: boolean;
511
+ position: number;
512
+ stop_processing: boolean;
513
+ metadata: Record<string, unknown> | null;
514
+ created_by: string | null;
515
+ execution_count: number;
516
+ last_executed_at: string | null;
517
+ created_at: string | null;
518
+ updated_at: string | null;
519
+ }[]>;
520
+ disabledWorkflows: import("vue").ComputedRef<{
521
+ id: string;
522
+ tenant_id: string;
523
+ name: string;
524
+ description: string | null;
525
+ trigger_type: import("@/types").WorkflowTriggerType;
526
+ trigger_type_label?: string | null;
527
+ trigger_config: Record<string, unknown> | null;
528
+ conditions: {
529
+ field: import("@/types").WorkflowConditionField;
530
+ operator: import("@/types").WorkflowConditionOperator;
531
+ value?: unknown;
532
+ }[];
533
+ actions: {
534
+ type: import("@/types").WorkflowActionType;
535
+ value?: unknown;
536
+ config?: Record<string, unknown>;
537
+ }[];
538
+ is_enabled: boolean;
539
+ position: number;
540
+ stop_processing: boolean;
541
+ metadata: Record<string, unknown> | null;
542
+ created_by: string | null;
543
+ execution_count: number;
544
+ last_executed_at: string | null;
545
+ created_at: string | null;
546
+ updated_at: string | null;
547
+ }[]>;
548
+ fetchWorkflows: (filters?: TaskWorkflowFilters) => Promise<PaginatedResponse<TaskWorkflow>>;
549
+ fetchWorkflow: (id: string) => Promise<TaskWorkflow>;
550
+ createWorkflow: (data: TaskWorkflowMutationPayload) => Promise<TaskWorkflow>;
551
+ updateWorkflow: (id: string, data: TaskWorkflowUpdatePayload) => Promise<TaskWorkflow>;
552
+ deleteWorkflow: (id: string) => Promise<void>;
553
+ toggleWorkflow: (id: string, isEnabled?: boolean) => Promise<TaskWorkflow>;
554
+ duplicateWorkflow: (workflow: TaskWorkflow) => Promise<TaskWorkflow>;
555
+ moveWorkflow: (id: string, direction: "up" | "down") => Promise<void>;
556
+ fetchLogs: (workflowId: string, filters?: TaskWorkflowLogFilters) => Promise<PaginatedResponse<TaskWorkflowLog>>;
557
+ runTest: (workflowId: string, taskId: string, context?: Record<string, unknown>) => Promise<TaskWorkflowTestResult>;
558
+ }, "enabledWorkflows" | "disabledWorkflows">, Pick<{
559
+ workflows: import("vue").Ref<{
560
+ id: string;
561
+ tenant_id: string;
562
+ name: string;
563
+ description: string | null;
564
+ trigger_type: import("@/types").WorkflowTriggerType;
565
+ trigger_type_label?: string | null;
566
+ trigger_config: Record<string, unknown> | null;
567
+ conditions: {
568
+ field: import("@/types").WorkflowConditionField;
569
+ operator: import("@/types").WorkflowConditionOperator;
570
+ value?: unknown;
571
+ }[];
572
+ actions: {
573
+ type: import("@/types").WorkflowActionType;
574
+ value?: unknown;
575
+ config?: Record<string, unknown>;
576
+ }[];
577
+ is_enabled: boolean;
578
+ position: number;
579
+ stop_processing: boolean;
580
+ metadata: Record<string, unknown> | null;
581
+ created_by: string | null;
582
+ execution_count: number;
583
+ last_executed_at: string | null;
584
+ created_at: string | null;
585
+ updated_at: string | null;
586
+ }[], TaskWorkflow[] | {
587
+ id: string;
588
+ tenant_id: string;
589
+ name: string;
590
+ description: string | null;
591
+ trigger_type: import("@/types").WorkflowTriggerType;
592
+ trigger_type_label?: string | null;
593
+ trigger_config: Record<string, unknown> | null;
594
+ conditions: {
595
+ field: import("@/types").WorkflowConditionField;
596
+ operator: import("@/types").WorkflowConditionOperator;
597
+ value?: unknown;
598
+ }[];
599
+ actions: {
600
+ type: import("@/types").WorkflowActionType;
601
+ value?: unknown;
602
+ config?: Record<string, unknown>;
603
+ }[];
604
+ is_enabled: boolean;
605
+ position: number;
606
+ stop_processing: boolean;
607
+ metadata: Record<string, unknown> | null;
608
+ created_by: string | null;
609
+ execution_count: number;
610
+ last_executed_at: string | null;
611
+ created_at: string | null;
612
+ updated_at: string | null;
613
+ }[]>;
614
+ pagination: import("vue").Ref<{
615
+ current_page: number;
616
+ last_page: number;
617
+ per_page: number;
618
+ total: number;
619
+ }, {
620
+ current_page: number;
621
+ last_page: number;
622
+ per_page: number;
623
+ total: number;
624
+ } | {
625
+ current_page: number;
626
+ last_page: number;
627
+ per_page: number;
628
+ total: number;
629
+ }>;
630
+ currentWorkflow: import("vue").Ref<{
631
+ id: string;
632
+ tenant_id: string;
633
+ name: string;
634
+ description: string | null;
635
+ trigger_type: import("@/types").WorkflowTriggerType;
636
+ trigger_type_label?: string | null;
637
+ trigger_config: Record<string, unknown> | null;
638
+ conditions: {
639
+ field: import("@/types").WorkflowConditionField;
640
+ operator: import("@/types").WorkflowConditionOperator;
641
+ value?: unknown;
642
+ }[];
643
+ actions: {
644
+ type: import("@/types").WorkflowActionType;
645
+ value?: unknown;
646
+ config?: Record<string, unknown>;
647
+ }[];
648
+ is_enabled: boolean;
649
+ position: number;
650
+ stop_processing: boolean;
651
+ metadata: Record<string, unknown> | null;
652
+ created_by: string | null;
653
+ execution_count: number;
654
+ last_executed_at: string | null;
655
+ created_at: string | null;
656
+ updated_at: string | null;
657
+ } | null, TaskWorkflow | {
658
+ id: string;
659
+ tenant_id: string;
660
+ name: string;
661
+ description: string | null;
662
+ trigger_type: import("@/types").WorkflowTriggerType;
663
+ trigger_type_label?: string | null;
664
+ trigger_config: Record<string, unknown> | null;
665
+ conditions: {
666
+ field: import("@/types").WorkflowConditionField;
667
+ operator: import("@/types").WorkflowConditionOperator;
668
+ value?: unknown;
669
+ }[];
670
+ actions: {
671
+ type: import("@/types").WorkflowActionType;
672
+ value?: unknown;
673
+ config?: Record<string, unknown>;
674
+ }[];
675
+ is_enabled: boolean;
676
+ position: number;
677
+ stop_processing: boolean;
678
+ metadata: Record<string, unknown> | null;
679
+ created_by: string | null;
680
+ execution_count: number;
681
+ last_executed_at: string | null;
682
+ created_at: string | null;
683
+ updated_at: string | null;
684
+ } | null>;
685
+ testResult: import("vue").Ref<{
686
+ workflow: {
687
+ id: string;
688
+ tenant_id: string;
689
+ name: string;
690
+ description: string | null;
691
+ trigger_type: import("@/types").WorkflowTriggerType;
692
+ trigger_type_label?: string | null;
693
+ trigger_config: Record<string, unknown> | null;
694
+ conditions: {
695
+ field: import("@/types").WorkflowConditionField;
696
+ operator: import("@/types").WorkflowConditionOperator;
697
+ value?: unknown;
698
+ }[];
699
+ actions: {
700
+ type: import("@/types").WorkflowActionType;
701
+ value?: unknown;
702
+ config?: Record<string, unknown>;
703
+ }[];
704
+ is_enabled: boolean;
705
+ position: number;
706
+ stop_processing: boolean;
707
+ metadata: Record<string, unknown> | null;
708
+ created_by: string | null;
709
+ execution_count: number;
710
+ last_executed_at: string | null;
711
+ created_at: string | null;
712
+ updated_at: string | null;
713
+ };
714
+ task_id: string;
715
+ trigger_matched: boolean;
716
+ conditions_met: boolean;
717
+ actions: {
718
+ type: string;
719
+ success: boolean;
720
+ message: string;
721
+ data: Record<string, unknown>;
722
+ dry_run: boolean;
723
+ }[];
724
+ } | null, TaskWorkflowTestResult | {
725
+ workflow: {
726
+ id: string;
727
+ tenant_id: string;
728
+ name: string;
729
+ description: string | null;
730
+ trigger_type: import("@/types").WorkflowTriggerType;
731
+ trigger_type_label?: string | null;
732
+ trigger_config: Record<string, unknown> | null;
733
+ conditions: {
734
+ field: import("@/types").WorkflowConditionField;
735
+ operator: import("@/types").WorkflowConditionOperator;
736
+ value?: unknown;
737
+ }[];
738
+ actions: {
739
+ type: import("@/types").WorkflowActionType;
740
+ value?: unknown;
741
+ config?: Record<string, unknown>;
742
+ }[];
743
+ is_enabled: boolean;
744
+ position: number;
745
+ stop_processing: boolean;
746
+ metadata: Record<string, unknown> | null;
747
+ created_by: string | null;
748
+ execution_count: number;
749
+ last_executed_at: string | null;
750
+ created_at: string | null;
751
+ updated_at: string | null;
752
+ };
753
+ task_id: string;
754
+ trigger_matched: boolean;
755
+ conditions_met: boolean;
756
+ actions: {
757
+ type: string;
758
+ success: boolean;
759
+ message: string;
760
+ data: Record<string, unknown>;
761
+ dry_run: boolean;
762
+ }[];
763
+ } | null>;
764
+ logsByWorkflow: import("vue").Ref<WorkflowLogMap, WorkflowLogMap>;
765
+ loading: import("vue").Ref<boolean, boolean>;
766
+ saving: import("vue").Ref<boolean, boolean>;
767
+ error: import("vue").Ref<string | null, string | null>;
768
+ logLoading: import("vue").Ref<WorkflowLoadingMap, WorkflowLoadingMap>;
769
+ enabledWorkflows: import("vue").ComputedRef<{
770
+ id: string;
771
+ tenant_id: string;
772
+ name: string;
773
+ description: string | null;
774
+ trigger_type: import("@/types").WorkflowTriggerType;
775
+ trigger_type_label?: string | null;
776
+ trigger_config: Record<string, unknown> | null;
777
+ conditions: {
778
+ field: import("@/types").WorkflowConditionField;
779
+ operator: import("@/types").WorkflowConditionOperator;
780
+ value?: unknown;
781
+ }[];
782
+ actions: {
783
+ type: import("@/types").WorkflowActionType;
784
+ value?: unknown;
785
+ config?: Record<string, unknown>;
786
+ }[];
787
+ is_enabled: boolean;
788
+ position: number;
789
+ stop_processing: boolean;
790
+ metadata: Record<string, unknown> | null;
791
+ created_by: string | null;
792
+ execution_count: number;
793
+ last_executed_at: string | null;
794
+ created_at: string | null;
795
+ updated_at: string | null;
796
+ }[]>;
797
+ disabledWorkflows: import("vue").ComputedRef<{
798
+ id: string;
799
+ tenant_id: string;
800
+ name: string;
801
+ description: string | null;
802
+ trigger_type: import("@/types").WorkflowTriggerType;
803
+ trigger_type_label?: string | null;
804
+ trigger_config: Record<string, unknown> | null;
805
+ conditions: {
806
+ field: import("@/types").WorkflowConditionField;
807
+ operator: import("@/types").WorkflowConditionOperator;
808
+ value?: unknown;
809
+ }[];
810
+ actions: {
811
+ type: import("@/types").WorkflowActionType;
812
+ value?: unknown;
813
+ config?: Record<string, unknown>;
814
+ }[];
815
+ is_enabled: boolean;
816
+ position: number;
817
+ stop_processing: boolean;
818
+ metadata: Record<string, unknown> | null;
819
+ created_by: string | null;
820
+ execution_count: number;
821
+ last_executed_at: string | null;
822
+ created_at: string | null;
823
+ updated_at: string | null;
824
+ }[]>;
825
+ fetchWorkflows: (filters?: TaskWorkflowFilters) => Promise<PaginatedResponse<TaskWorkflow>>;
826
+ fetchWorkflow: (id: string) => Promise<TaskWorkflow>;
827
+ createWorkflow: (data: TaskWorkflowMutationPayload) => Promise<TaskWorkflow>;
828
+ updateWorkflow: (id: string, data: TaskWorkflowUpdatePayload) => Promise<TaskWorkflow>;
829
+ deleteWorkflow: (id: string) => Promise<void>;
830
+ toggleWorkflow: (id: string, isEnabled?: boolean) => Promise<TaskWorkflow>;
831
+ duplicateWorkflow: (workflow: TaskWorkflow) => Promise<TaskWorkflow>;
832
+ moveWorkflow: (id: string, direction: "up" | "down") => Promise<void>;
833
+ fetchLogs: (workflowId: string, filters?: TaskWorkflowLogFilters) => Promise<PaginatedResponse<TaskWorkflowLog>>;
834
+ runTest: (workflowId: string, taskId: string, context?: Record<string, unknown>) => Promise<TaskWorkflowTestResult>;
835
+ }, "fetchWorkflows" | "fetchWorkflow" | "createWorkflow" | "updateWorkflow" | "deleteWorkflow" | "toggleWorkflow" | "duplicateWorkflow" | "moveWorkflow" | "fetchLogs" | "runTest">>;
836
+ export {};