@camunda/camunda-api-zod-schemas 0.0.42 → 0.0.44
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/README.md +7 -0
- package/dist/8.8/batch-operation.d.ts +17 -4
- package/dist/8.8/batch-operation.js +1 -0
- package/dist/8.8/process-instance.d.ts +5 -0
- package/dist/8.9/index.js +2 -2
- package/dist/8.9/process-instance.d.ts +9 -30
- package/dist/8.9/process-instance.js +1 -7
- package/dist/8.9.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,3 +26,10 @@ yarn add @camunda/camunda-api-zod-schemas
|
|
|
26
26
|
The library exports modules that correspond to the different parts of the Camunda API. You can import the schemas and types you need from the main package or specific version sub-modules like `@camunda/camunda-api-zod-schemas/8.8`.
|
|
27
27
|
|
|
28
28
|
Refer to the exported members from `lib/8.8/index.ts` and other files in the `lib` directory for available schemas and types.
|
|
29
|
+
|
|
30
|
+
## Publishing a new version
|
|
31
|
+
|
|
32
|
+
1. Increment the version in `package.json` and push changes to `main`.
|
|
33
|
+
2. Run the [Publish Zod Schemas to npm](https://github.com/camunda/camunda/actions/workflows/publish-zod-schemas.yml) GitHub action.
|
|
34
|
+
- By default, the dry-run option is enabled. Uncheck it to publish the new version.
|
|
35
|
+
3. Update the `@camunda/camunda-api-zod-schemas` package versions in Operate, Admin and Tasklist.
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { Endpoint } from '../common';
|
|
3
3
|
declare const batchOperationTypeSchema: z.ZodEnum<{
|
|
4
4
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
5
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
5
6
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
6
7
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
7
8
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -42,6 +43,7 @@ declare const batchOperationSchema: z.ZodObject<{
|
|
|
42
43
|
}>;
|
|
43
44
|
batchOperationType: z.ZodEnum<{
|
|
44
45
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
46
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
45
47
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
46
48
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
47
49
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -74,6 +76,7 @@ declare const batchOperationItemSchema: z.ZodObject<{
|
|
|
74
76
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
75
77
|
operationType: z.ZodEnum<{
|
|
76
78
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
79
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
77
80
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
78
81
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
79
82
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -116,6 +119,7 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
116
119
|
}, z.core.$strip>, z.ZodString]>>;
|
|
117
120
|
operationType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
118
121
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
122
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
119
123
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
120
124
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
121
125
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -127,6 +131,7 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
127
131
|
}>, z.ZodObject<{
|
|
128
132
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
129
133
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
134
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
130
135
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
131
136
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
132
137
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -138,6 +143,7 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
138
143
|
}>>;
|
|
139
144
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
140
145
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
146
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
141
147
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
142
148
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
143
149
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -150,6 +156,7 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
150
156
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
151
157
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
152
158
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
159
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
153
160
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
154
161
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
155
162
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -161,6 +168,7 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
161
168
|
}>>>;
|
|
162
169
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
163
170
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
171
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
164
172
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
165
173
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
166
174
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -224,7 +232,7 @@ type QueryBatchOperationsRequestBody = z.infer<typeof queryBatchOperationsReques
|
|
|
224
232
|
declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('../common').QueryResponseBody<{
|
|
225
233
|
batchOperationKey: string;
|
|
226
234
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "FAILED";
|
|
227
|
-
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
235
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
228
236
|
operationsTotalCount: number;
|
|
229
237
|
operationsFailedCount: number;
|
|
230
238
|
operationsCompletedCount: number;
|
|
@@ -235,7 +243,7 @@ declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('../commo
|
|
|
235
243
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
236
244
|
batchOperationKey: string;
|
|
237
245
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "FAILED";
|
|
238
|
-
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
246
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
239
247
|
operationsTotalCount: number;
|
|
240
248
|
operationsFailedCount: number;
|
|
241
249
|
operationsCompletedCount: number;
|
|
@@ -321,6 +329,7 @@ declare const queryBatchOperationItemsRequestBodySchema: z.ZodObject<{
|
|
|
321
329
|
}, z.core.$strip>]>>;
|
|
322
330
|
operationType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
323
331
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
332
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
324
333
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
325
334
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
326
335
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -332,6 +341,7 @@ declare const queryBatchOperationItemsRequestBodySchema: z.ZodObject<{
|
|
|
332
341
|
}>, z.ZodObject<{
|
|
333
342
|
$eq: z.ZodOptional<z.ZodEnum<{
|
|
334
343
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
344
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
335
345
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
336
346
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
337
347
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -343,6 +353,7 @@ declare const queryBatchOperationItemsRequestBodySchema: z.ZodObject<{
|
|
|
343
353
|
}>>;
|
|
344
354
|
$neq: z.ZodOptional<z.ZodEnum<{
|
|
345
355
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
356
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
346
357
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
347
358
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
348
359
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -355,6 +366,7 @@ declare const queryBatchOperationItemsRequestBodySchema: z.ZodObject<{
|
|
|
355
366
|
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
356
367
|
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
357
368
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
369
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
358
370
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
359
371
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
360
372
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -366,6 +378,7 @@ declare const queryBatchOperationItemsRequestBodySchema: z.ZodObject<{
|
|
|
366
378
|
}>>>;
|
|
367
379
|
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
368
380
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
381
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
369
382
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
370
383
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
371
384
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -384,7 +397,7 @@ declare const queryBatchOperationItemsResponseBodySchema: z.ZodType<import('../c
|
|
|
384
397
|
itemKey: string;
|
|
385
398
|
processInstanceKey: string;
|
|
386
399
|
state: "ACTIVE" | "COMPLETED" | "CANCELED" | "FAILED";
|
|
387
|
-
operationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
400
|
+
operationType: "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
388
401
|
processedDate?: string | undefined;
|
|
389
402
|
errorMessage?: string | undefined;
|
|
390
403
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
@@ -392,7 +405,7 @@ declare const queryBatchOperationItemsResponseBodySchema: z.ZodType<import('../c
|
|
|
392
405
|
itemKey: string;
|
|
393
406
|
processInstanceKey: string;
|
|
394
407
|
state: "ACTIVE" | "COMPLETED" | "CANCELED" | "FAILED";
|
|
395
|
-
operationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
408
|
+
operationType: "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION" | "ADD_VARIABLE" | "UPDATE_VARIABLE";
|
|
396
409
|
processedDate?: string | undefined;
|
|
397
410
|
errorMessage?: string | undefined;
|
|
398
411
|
}>, unknown>>;
|
|
@@ -1093,6 +1093,7 @@ declare const createIncidentResolutionBatchOperationResponseBodySchema: z.ZodObj
|
|
|
1093
1093
|
batchOperationKey: z.ZodString;
|
|
1094
1094
|
batchOperationType: z.ZodEnum<{
|
|
1095
1095
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1096
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
1096
1097
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1097
1098
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1098
1099
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -1470,6 +1471,7 @@ declare const createCancellationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
|
1470
1471
|
batchOperationKey: z.ZodString;
|
|
1471
1472
|
batchOperationType: z.ZodEnum<{
|
|
1472
1473
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1474
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
1473
1475
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1474
1476
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1475
1477
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -1854,6 +1856,7 @@ declare const createMigrationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
|
1854
1856
|
batchOperationKey: z.ZodString;
|
|
1855
1857
|
batchOperationType: z.ZodEnum<{
|
|
1856
1858
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1859
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
1857
1860
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1858
1861
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1859
1862
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -2235,6 +2238,7 @@ declare const createModificationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
|
2235
2238
|
batchOperationKey: z.ZodString;
|
|
2236
2239
|
batchOperationType: z.ZodEnum<{
|
|
2237
2240
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
2241
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
2238
2242
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
2239
2243
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
2240
2244
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
@@ -2267,6 +2271,7 @@ declare const resolveProcessInstanceIncidentsResponseBodySchema: z.ZodObject<{
|
|
|
2267
2271
|
batchOperationKey: z.ZodString;
|
|
2268
2272
|
batchOperationType: z.ZodEnum<{
|
|
2269
2273
|
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
2274
|
+
DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
|
|
2270
2275
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
2271
2276
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
2272
2277
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
package/dist/8.9/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { licenseSchema } from "./license.js";
|
|
|
15
15
|
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, mappingRuleSchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema } from "./mapping-rule.js";
|
|
16
16
|
import { correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, publishMessageRequestBodySchema, publishMessageResponseBodySchema } from "./message.js";
|
|
17
17
|
import { correlatedMessageSubscriptionSchema, messageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema } from "./message-subscriptions.js";
|
|
18
|
-
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createCancellationBatchOperationResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema,
|
|
18
|
+
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createCancellationBatchOperationResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstanceIncidentsResponseBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, resolveProcessInstanceIncidentsResponseBodySchema, sequenceFlowSchema } from "./process-instance.js";
|
|
19
19
|
import { assignTaskRequestBodySchema, completeTaskRequestBodySchema, formSchema, queryUserTasksRequestBodySchema, queryUserTasksResponseBodySchema, queryVariablesByUserTaskRequestBodySchema, queryVariablesByUserTaskResponseBodySchema, unassignTaskRequestBodySchema, updateUserTaskRequestBodySchema, userTaskSchema } from "./user-task.js";
|
|
20
20
|
import { queryVariablesRequestBodySchema, queryVariablesResponseBodySchema, variableSchema } from "./variable.js";
|
|
21
21
|
import { activateJobsRequestBodySchema, activateJobsResponseBodySchema, activatedJobSchema, completeJobRequestBodySchema, failJobRequestBodySchema, jobChangesetSchema, jobKindFilterSchema, jobKindSchema, jobResultSchema, jobSchema, jobStateFilterSchema, jobStateSchema, listenerEventTypeFilterSchema, listenerEventTypeSchema, queryJobsRequestBodySchema, queryJobsResponseBodySchema, throwJobErrorRequestBodySchema, updateJobRequestBodySchema } from "./job.js";
|
|
@@ -32,7 +32,7 @@ import { deleteProcessInstanceRequestBodySchema, modifyProcessInstanceRequestBod
|
|
|
32
32
|
import { getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, incidentProcessInstanceStatisticsByErrorSchema } from "./incident-statistics.js";
|
|
33
33
|
import { problemDetailResponseSchema, problemDetailsSchema, queryPageSchema, querySortOrderSchema } from "./common.js";
|
|
34
34
|
import { groupSchema, roleSchema } from "./group-role.js";
|
|
35
|
-
import { processDefinitionSchema, processDefinitionStatisticSchema, processInstanceStateSchema } from "./processes.js";
|
|
35
|
+
import { processDefinitionSchema, processDefinitionStatisticSchema, processInstanceSchema, processInstanceStateSchema } from "./processes.js";
|
|
36
36
|
import { endpoints } from "../8.9.js";
|
|
37
37
|
export {
|
|
38
38
|
activateActivityWithinAdHocSubProcessRequestBodySchema,
|
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Endpoint } from './common';
|
|
3
|
-
import { processInstanceStateSchema, ProcessInstance, ProcessInstanceState, StatisticName } from './processes';
|
|
4
|
-
declare const processInstanceSchema: z.ZodObject<{
|
|
5
|
-
processDefinitionId: z.ZodString;
|
|
6
|
-
processDefinitionName: z.ZodString;
|
|
7
|
-
processDefinitionVersion: z.ZodNumber;
|
|
8
|
-
processDefinitionVersionTag: z.ZodNullable<z.ZodString>;
|
|
9
|
-
startDate: z.ZodString;
|
|
10
|
-
endDate: z.ZodNullable<z.ZodString>;
|
|
11
|
-
state: z.ZodEnum<{
|
|
12
|
-
ACTIVE: "ACTIVE";
|
|
13
|
-
COMPLETED: "COMPLETED";
|
|
14
|
-
TERMINATED: "TERMINATED";
|
|
15
|
-
}>;
|
|
16
|
-
hasIncident: z.ZodBoolean;
|
|
17
|
-
tenantId: z.ZodString;
|
|
18
|
-
rootProcessInstanceKey: z.ZodNullable<z.ZodString>;
|
|
19
|
-
tags: z.ZodArray<z.ZodString>;
|
|
20
|
-
processInstanceKey: z.ZodString;
|
|
21
|
-
processDefinitionKey: z.ZodString;
|
|
22
|
-
parentProcessInstanceKey: z.ZodString;
|
|
23
|
-
parentElementInstanceKey: z.ZodString;
|
|
24
|
-
}, z.core.$strip>;
|
|
3
|
+
import { processInstanceSchema, processInstanceStateSchema, ProcessInstance, ProcessInstanceState, StatisticName } from './processes';
|
|
25
4
|
declare const queryProcessInstancesRequestBodySchema: z.ZodObject<{
|
|
26
5
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
6
|
field: z.ZodEnum<{
|
|
@@ -420,12 +399,12 @@ declare const queryProcessInstancesResponseBodySchema: z.ZodType<import('./commo
|
|
|
420
399
|
state: "ACTIVE" | "COMPLETED" | "TERMINATED";
|
|
421
400
|
hasIncident: boolean;
|
|
422
401
|
tenantId: string;
|
|
423
|
-
rootProcessInstanceKey: string | null;
|
|
424
|
-
tags: string[];
|
|
425
402
|
processInstanceKey: string;
|
|
426
403
|
processDefinitionKey: string;
|
|
427
|
-
parentProcessInstanceKey: string;
|
|
428
|
-
parentElementInstanceKey: string;
|
|
404
|
+
parentProcessInstanceKey: string | null;
|
|
405
|
+
parentElementInstanceKey: string | null;
|
|
406
|
+
rootProcessInstanceKey: string | null;
|
|
407
|
+
tags: string[];
|
|
429
408
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
430
409
|
processDefinitionId: string;
|
|
431
410
|
processDefinitionName: string;
|
|
@@ -436,12 +415,12 @@ declare const queryProcessInstancesResponseBodySchema: z.ZodType<import('./commo
|
|
|
436
415
|
state: "ACTIVE" | "COMPLETED" | "TERMINATED";
|
|
437
416
|
hasIncident: boolean;
|
|
438
417
|
tenantId: string;
|
|
439
|
-
rootProcessInstanceKey: string | null;
|
|
440
|
-
tags: string[];
|
|
441
418
|
processInstanceKey: string;
|
|
442
419
|
processDefinitionKey: string;
|
|
443
|
-
parentProcessInstanceKey: string;
|
|
444
|
-
parentElementInstanceKey: string;
|
|
420
|
+
parentProcessInstanceKey: string | null;
|
|
421
|
+
parentElementInstanceKey: string | null;
|
|
422
|
+
rootProcessInstanceKey: string | null;
|
|
423
|
+
tags: string[];
|
|
445
424
|
}>, unknown>>;
|
|
446
425
|
type QueryProcessInstancesResponseBody = z.infer<typeof queryProcessInstancesResponseBodySchema>;
|
|
447
426
|
declare const cancelProcessInstanceRequestBodySchema: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { advancedStringFilterSchema, advancedIntegerFilterSchema, advancedDateTimeFilterSchema, basicStringFilterSchema, getQueryRequestBodySchema, getOrFilterSchema, getQueryResponseBodySchema, getCollectionResponseBodySchema, API_VERSION } from "./common.js";
|
|
3
3
|
import { variableSchema } from "./variable.js";
|
|
4
|
-
import {
|
|
4
|
+
import { processInstanceStateSchema, processInstanceSchema, processDefinitionStatisticSchema } from "./processes.js";
|
|
5
5
|
import { batchOperationTypeSchema } from "./batch-operation.js";
|
|
6
6
|
import { queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema } from "./incident.js";
|
|
7
|
-
const processInstanceSchema = processInstanceSchema$1.extend({
|
|
8
|
-
processInstanceKey: z.string(),
|
|
9
|
-
processDefinitionKey: z.string(),
|
|
10
|
-
parentProcessInstanceKey: z.string(),
|
|
11
|
-
parentElementInstanceKey: z.string()
|
|
12
|
-
});
|
|
13
7
|
const processInstanceBatchOperationTypeSchema = z.union([
|
|
14
8
|
batchOperationTypeSchema,
|
|
15
9
|
z.literal("DELETE_DECISION_INSTANCE")
|
package/dist/8.9.js
CHANGED
|
@@ -33,7 +33,7 @@ import { correlateMessageRequestBodySchema, correlateMessageResponseBodySchema,
|
|
|
33
33
|
import { queryCorrelatedMessageSubscriptions, queryMessageSubscriptions } from "./8.9/message-subscriptions.js";
|
|
34
34
|
import { correlatedMessageSubscriptionSchema, messageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema } from "./8.9/message-subscriptions.js";
|
|
35
35
|
import { resolveProcessInstanceIncidents, createModificationBatchOperation, createMigrationBatchOperation, createCancellationBatchOperation, createIncidentResolutionBatchOperation, getProcessInstanceSequenceFlows, getProcessInstanceStatistics, getProcessInstanceCallHierarchy, queryProcessInstanceIncidents, cancelProcessInstance, queryProcessInstances, getProcessInstance, createProcessInstance } from "./8.9/process-instance.js";
|
|
36
|
-
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createCancellationBatchOperationResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema,
|
|
36
|
+
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createCancellationBatchOperationResponseBodySchema, createIncidentResolutionBatchOperationResponseBodySchema, createMigrationBatchOperationResponseBodySchema, createModificationBatchOperationResponseBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstanceIncidentsResponseBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, resolveProcessInstanceIncidentsResponseBodySchema, sequenceFlowSchema } from "./8.9/process-instance.js";
|
|
37
37
|
import { updateUserTask, queryVariablesByUserTask, completeTask, unassignTask, assignTask, getTask, getUserTaskForm, queryUserTasks, getUserTask } from "./8.9/user-task.js";
|
|
38
38
|
import { assignTaskRequestBodySchema, completeTaskRequestBodySchema, formSchema, queryUserTasksRequestBodySchema, queryUserTasksResponseBodySchema, queryVariablesByUserTaskRequestBodySchema, queryVariablesByUserTaskResponseBodySchema, unassignTaskRequestBodySchema, updateUserTaskRequestBodySchema, userTaskSchema } from "./8.9/user-task.js";
|
|
39
39
|
import { queryVariables, getVariable } from "./8.9/variable.js";
|
|
@@ -64,7 +64,7 @@ import { getIncidentProcessInstanceStatisticsByDefinition, getIncidentProcessIns
|
|
|
64
64
|
import { getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, incidentProcessInstanceStatisticsByErrorSchema } from "./8.9/incident-statistics.js";
|
|
65
65
|
import { problemDetailResponseSchema, problemDetailsSchema, queryPageSchema, querySortOrderSchema } from "./8.9/common.js";
|
|
66
66
|
import { groupSchema, roleSchema } from "./8.9/group-role.js";
|
|
67
|
-
import { processDefinitionSchema, processDefinitionStatisticSchema, processInstanceStateSchema } from "./8.9/processes.js";
|
|
67
|
+
import { processDefinitionSchema, processDefinitionStatisticSchema, processInstanceSchema, processInstanceStateSchema } from "./8.9/processes.js";
|
|
68
68
|
const endpoints = {
|
|
69
69
|
getCurrentUser,
|
|
70
70
|
activateAdHocSubProcessActivities,
|
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.44",
|
|
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>",
|