@camunda/camunda-api-zod-schemas 0.0.9 → 0.0.10
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/8.8/process-instance.js +2 -2
- package/dist/process-instance.d.ts +168 -27
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { advancedStringFilterSchema, advancedDateTimeFilterSchema, basicStringFi
|
|
|
3
3
|
import { variableSchema } from "./variable.js";
|
|
4
4
|
import { processInstanceStateSchema, processInstanceSchema, processDefinitionStatisticSchema } from "../processes.js";
|
|
5
5
|
import { batchOperationTypeSchema } from "./batch-operation.js";
|
|
6
|
-
import { queryIncidentsResponseBodySchema } from "./incident.js";
|
|
6
|
+
import { queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema } from "./incident.js";
|
|
7
7
|
const processInstanceVariableFilterSchema = z.object({
|
|
8
8
|
name: z.string(),
|
|
9
9
|
value: z.string()
|
|
@@ -100,7 +100,7 @@ const cancelProcessInstance = {
|
|
|
100
100
|
method: "POST",
|
|
101
101
|
getUrl: ({ processInstanceKey }) => `/${API_VERSION}/process-instances/${processInstanceKey}/cancellation`
|
|
102
102
|
};
|
|
103
|
-
const queryProcessInstanceIncidentsRequestBodySchema =
|
|
103
|
+
const queryProcessInstanceIncidentsRequestBodySchema = queryIncidentsRequestBodySchema;
|
|
104
104
|
const queryProcessInstanceIncidentsResponseBodySchema = queryIncidentsResponseBodySchema;
|
|
105
105
|
const queryProcessInstanceIncidents = {
|
|
106
106
|
method: "POST",
|
|
@@ -399,33 +399,174 @@ type CreateProcessInstanceResponseBody = z.infer<typeof createProcessInstanceRes
|
|
|
399
399
|
declare const createProcessInstance: Endpoint;
|
|
400
400
|
declare const queryProcessInstances: Endpoint;
|
|
401
401
|
declare const cancelProcessInstance: Endpoint<Pick<ProcessInstance, 'processInstanceKey'>>;
|
|
402
|
-
declare const queryProcessInstanceIncidentsRequestBodySchema: z.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
}
|
|
402
|
+
declare const queryProcessInstanceIncidentsRequestBodySchema: z.ZodObject<{
|
|
403
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
404
|
+
field: z.ZodEnum<{
|
|
405
|
+
tenantId: "tenantId";
|
|
406
|
+
processDefinitionKey: "processDefinitionKey";
|
|
407
|
+
processDefinitionId: "processDefinitionId";
|
|
408
|
+
elementId: "elementId";
|
|
409
|
+
state: "state";
|
|
410
|
+
processInstanceKey: "processInstanceKey";
|
|
411
|
+
errorMessage: "errorMessage";
|
|
412
|
+
elementInstanceKey: "elementInstanceKey";
|
|
413
|
+
errorType: "errorType";
|
|
414
|
+
creationTime: "creationTime";
|
|
415
|
+
incidentKey: "incidentKey";
|
|
416
|
+
jobKey: "jobKey";
|
|
417
|
+
}>;
|
|
418
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
419
|
+
asc: "asc";
|
|
420
|
+
desc: "desc";
|
|
421
|
+
}>>;
|
|
422
|
+
}, z.core.$strip>>>;
|
|
423
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
424
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
427
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>>;
|
|
429
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
430
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
431
|
+
processDefinitionKey: z.ZodOptional<z.ZodString>;
|
|
432
|
+
processDefinitionId: z.ZodOptional<z.ZodString>;
|
|
433
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
processInstanceKey: z.ZodOptional<z.ZodString>;
|
|
435
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
436
|
+
elementInstanceKey: z.ZodOptional<z.ZodString>;
|
|
437
|
+
incidentKey: z.ZodOptional<z.ZodString>;
|
|
438
|
+
jobKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
439
|
+
errorType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
440
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
441
|
+
UNKNOWN: "UNKNOWN";
|
|
442
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
443
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
444
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
445
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
446
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
447
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
448
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
449
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
450
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
451
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
452
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
453
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
454
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
455
|
+
}>, z.ZodObject<{
|
|
456
|
+
$eq: z.ZodOptional<z.ZodEnum<{
|
|
457
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
458
|
+
UNKNOWN: "UNKNOWN";
|
|
459
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
460
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
461
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
462
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
463
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
464
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
465
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
466
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
467
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
468
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
469
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
470
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
471
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
472
|
+
}>>;
|
|
473
|
+
$neq: z.ZodOptional<z.ZodEnum<{
|
|
474
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
475
|
+
UNKNOWN: "UNKNOWN";
|
|
476
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
477
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
478
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
479
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
480
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
481
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
482
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
483
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
484
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
485
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
486
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
487
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
488
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
489
|
+
}>>;
|
|
490
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
492
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
493
|
+
UNKNOWN: "UNKNOWN";
|
|
494
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
495
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
496
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
497
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
498
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
499
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
500
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
501
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
502
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
503
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
504
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
505
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
506
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
507
|
+
}>>>;
|
|
508
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
509
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
510
|
+
UNKNOWN: "UNKNOWN";
|
|
511
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
512
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
513
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
514
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
515
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
516
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
517
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
518
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
519
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
520
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
521
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
522
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
523
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
524
|
+
}>>>;
|
|
525
|
+
}, z.core.$strip>]>>;
|
|
526
|
+
creationTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
527
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
528
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
529
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
531
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
532
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
533
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
534
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
|
+
}, z.core.$strip>]>>;
|
|
536
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
537
|
+
ACTIVE: "ACTIVE";
|
|
538
|
+
MIGRATED: "MIGRATED";
|
|
539
|
+
RESOLVED: "RESOLVED";
|
|
540
|
+
PENDING: "PENDING";
|
|
541
|
+
}>, z.ZodObject<{
|
|
542
|
+
$eq: z.ZodOptional<z.ZodEnum<{
|
|
543
|
+
ACTIVE: "ACTIVE";
|
|
544
|
+
MIGRATED: "MIGRATED";
|
|
545
|
+
RESOLVED: "RESOLVED";
|
|
546
|
+
PENDING: "PENDING";
|
|
547
|
+
}>>;
|
|
548
|
+
$neq: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
ACTIVE: "ACTIVE";
|
|
550
|
+
MIGRATED: "MIGRATED";
|
|
551
|
+
RESOLVED: "RESOLVED";
|
|
552
|
+
PENDING: "PENDING";
|
|
553
|
+
}>>;
|
|
554
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
555
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
556
|
+
ACTIVE: "ACTIVE";
|
|
557
|
+
MIGRATED: "MIGRATED";
|
|
558
|
+
RESOLVED: "RESOLVED";
|
|
559
|
+
PENDING: "PENDING";
|
|
560
|
+
}>>>;
|
|
561
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
562
|
+
ACTIVE: "ACTIVE";
|
|
563
|
+
MIGRATED: "MIGRATED";
|
|
564
|
+
RESOLVED: "RESOLVED";
|
|
565
|
+
PENDING: "PENDING";
|
|
566
|
+
}>>>;
|
|
567
|
+
}, z.core.$strip>]>>;
|
|
568
|
+
}, z.core.$strip>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
429
570
|
type QueryProcessInstanceIncidentsRequestBody = z.infer<typeof queryProcessInstanceIncidentsRequestBodySchema>;
|
|
430
571
|
declare const queryProcessInstanceIncidentsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
431
572
|
processDefinitionId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/camunda-api-zod-schemas",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "LicenseRef-Camunda-1.0",
|
|
5
5
|
"description": "Zod schemas and TypeScript types for Camunda 8 unified API",
|
|
6
6
|
"author": "Vinicius Goulart <vinicius.goulart@camunda.com>",
|