@camunda/camunda-api-zod-schemas 0.0.4 → 0.0.5
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.
|
@@ -4,7 +4,10 @@ const batchOperationTypeSchema = z.enum([
|
|
|
4
4
|
"CANCEL_PROCESS_INSTANCE",
|
|
5
5
|
"RESOLVE_INCIDENT",
|
|
6
6
|
"MIGRATE_PROCESS_INSTANCE",
|
|
7
|
-
"MODIFY_PROCESS_INSTANCE"
|
|
7
|
+
"MODIFY_PROCESS_INSTANCE",
|
|
8
|
+
"DELETE_DECISION_DEFINITION",
|
|
9
|
+
"DELETE_PROCESS_DEFINITION",
|
|
10
|
+
"DELETE_PROCESS_INSTANCE"
|
|
8
11
|
]);
|
|
9
12
|
const batchOperationStateSchema = z.enum([
|
|
10
13
|
"CREATED",
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Endpoint } from './common';
|
|
3
3
|
declare const batchOperationTypeSchema: z.ZodEnum<{
|
|
4
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
4
5
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
5
6
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
6
7
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
7
8
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
9
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
10
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
8
11
|
}>;
|
|
9
12
|
type BatchOperationType = z.infer<typeof batchOperationTypeSchema>;
|
|
10
13
|
declare const batchOperationStateSchema: z.ZodEnum<{
|
|
@@ -38,10 +41,13 @@ declare const batchOperationSchema: z.ZodObject<{
|
|
|
38
41
|
FAILED: "FAILED";
|
|
39
42
|
}>;
|
|
40
43
|
batchOperationType: z.ZodEnum<{
|
|
44
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
41
45
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
42
46
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
43
47
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
44
48
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
49
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
50
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
45
51
|
}>;
|
|
46
52
|
startDate: z.ZodOptional<z.ZodString>;
|
|
47
53
|
endDate: z.ZodOptional<z.ZodString>;
|
|
@@ -87,10 +93,13 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
87
93
|
filter: z.ZodOptional<z.ZodObject<{
|
|
88
94
|
batchOperationKey: z.ZodOptional<z.ZodString>;
|
|
89
95
|
operationType: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
90
97
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
91
98
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
92
99
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
93
100
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
101
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
102
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
94
103
|
}>>;
|
|
95
104
|
state: z.ZodOptional<z.ZodEnum<{
|
|
96
105
|
CREATED: "CREATED";
|
|
@@ -108,7 +117,7 @@ type QueryBatchOperationsRequestBody = z.infer<typeof queryBatchOperationsReques
|
|
|
108
117
|
declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
109
118
|
batchOperationKey: string;
|
|
110
119
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
|
|
111
|
-
batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
|
|
120
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION";
|
|
112
121
|
operationsTotalCount: number;
|
|
113
122
|
operationsFailedCount: number;
|
|
114
123
|
operationsCompletedCount: number;
|
|
@@ -117,7 +126,7 @@ declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('./common
|
|
|
117
126
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
118
127
|
batchOperationKey: string;
|
|
119
128
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
|
|
120
|
-
batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
|
|
129
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION";
|
|
121
130
|
operationsTotalCount: number;
|
|
122
131
|
operationsFailedCount: number;
|
|
123
132
|
operationsCompletedCount: number;
|
|
@@ -791,10 +791,13 @@ type CreateIncidentResolutionBatchOperationRequestBody = z.infer<typeof createIn
|
|
|
791
791
|
declare const createIncidentResolutionBatchOperationResponseBodySchema: z.ZodObject<{
|
|
792
792
|
batchOperationKey: z.ZodString;
|
|
793
793
|
batchOperationType: z.ZodEnum<{
|
|
794
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
794
795
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
795
796
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
796
797
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
797
798
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
799
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
800
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
798
801
|
}>;
|
|
799
802
|
}, z.core.$strip>;
|
|
800
803
|
type CreateIncidentResolutionBatchOperationResponseBody = z.infer<typeof createIncidentResolutionBatchOperationResponseBodySchema>;
|
|
@@ -1097,10 +1100,13 @@ type CreateCancellationBatchOperationRequestBody = z.infer<typeof createCancella
|
|
|
1097
1100
|
declare const createCancellationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1098
1101
|
batchOperationKey: z.ZodString;
|
|
1099
1102
|
batchOperationType: z.ZodEnum<{
|
|
1103
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1100
1104
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1101
1105
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1102
1106
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1103
1107
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1108
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1109
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1104
1110
|
}>;
|
|
1105
1111
|
}, z.core.$strip>;
|
|
1106
1112
|
type CreateCancellationBatchOperationResponseBody = z.infer<typeof createCancellationBatchOperationResponseBodySchema>;
|
|
@@ -1410,10 +1416,13 @@ type CreateMigrationBatchOperationRequestBody = z.infer<typeof createMigrationBa
|
|
|
1410
1416
|
declare const createMigrationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1411
1417
|
batchOperationKey: z.ZodString;
|
|
1412
1418
|
batchOperationType: z.ZodEnum<{
|
|
1419
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1413
1420
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1414
1421
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1415
1422
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1416
1423
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1424
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1425
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1417
1426
|
}>;
|
|
1418
1427
|
}, z.core.$strip>;
|
|
1419
1428
|
type CreateMigrationBatchOperationResponseBody = z.infer<typeof createMigrationBatchOperationResponseBodySchema>;
|
|
@@ -1720,10 +1729,13 @@ type CreateModificationBatchOperationRequestBody = z.infer<typeof createModifica
|
|
|
1720
1729
|
declare const createModificationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1721
1730
|
batchOperationKey: z.ZodString;
|
|
1722
1731
|
batchOperationType: z.ZodEnum<{
|
|
1732
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1723
1733
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1724
1734
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1725
1735
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1726
1736
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1737
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1738
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1727
1739
|
}>;
|
|
1728
1740
|
}, z.core.$strip>;
|
|
1729
1741
|
type CreateModificationBatchOperationResponseBody = z.infer<typeof createModificationBatchOperationResponseBodySchema>;
|
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.5",
|
|
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>",
|