@camunda/camunda-api-zod-schemas 0.0.30 → 0.0.32
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.
|
@@ -72,6 +72,17 @@ declare const batchOperationItemSchema: z.ZodObject<{
|
|
|
72
72
|
}>;
|
|
73
73
|
processedDate: z.ZodOptional<z.ZodString>;
|
|
74
74
|
errorMessage: z.ZodOptional<z.ZodString>;
|
|
75
|
+
operationType: z.ZodEnum<{
|
|
76
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
77
|
+
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
78
|
+
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
79
|
+
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
80
|
+
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
81
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
82
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
83
|
+
ADD_VARIABLE: "ADD_VARIABLE";
|
|
84
|
+
UPDATE_VARIABLE: "UPDATE_VARIABLE";
|
|
85
|
+
}>;
|
|
75
86
|
}, z.core.$strip>;
|
|
76
87
|
type BatchOperationItem = z.infer<typeof batchOperationItemSchema>;
|
|
77
88
|
declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
@@ -373,6 +384,7 @@ declare const queryBatchOperationItemsResponseBodySchema: z.ZodType<import('../c
|
|
|
373
384
|
itemKey: string;
|
|
374
385
|
processInstanceKey: string;
|
|
375
386
|
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";
|
|
376
388
|
processedDate?: string | undefined;
|
|
377
389
|
errorMessage?: string | undefined;
|
|
378
390
|
}>, unknown, z.core.$ZodTypeInternals<import('../common').QueryResponseBody<{
|
|
@@ -380,6 +392,7 @@ declare const queryBatchOperationItemsResponseBodySchema: z.ZodType<import('../c
|
|
|
380
392
|
itemKey: string;
|
|
381
393
|
processInstanceKey: string;
|
|
382
394
|
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";
|
|
383
396
|
processedDate?: string | undefined;
|
|
384
397
|
errorMessage?: string | undefined;
|
|
385
398
|
}>, unknown>>;
|
|
@@ -39,7 +39,8 @@ const batchOperationItemSchema = z.object({
|
|
|
39
39
|
processInstanceKey: z.string(),
|
|
40
40
|
state: batchOperationItemStateSchema,
|
|
41
41
|
processedDate: z.string().optional(),
|
|
42
|
-
errorMessage: z.string().optional()
|
|
42
|
+
errorMessage: z.string().optional(),
|
|
43
|
+
operationType: batchOperationTypeSchema
|
|
43
44
|
});
|
|
44
45
|
const queryBatchOperationsRequestBodySchema = getQueryRequestBodySchema({
|
|
45
46
|
sortFields: ["batchOperationKey", "operationType", "state", "startDate", "endDate", "actorId"],
|
|
@@ -40,6 +40,7 @@ declare const queryDecisionDefinitionsRequestBodySchema: z.ZodObject<{
|
|
|
40
40
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
41
41
|
decisionDefinitionKey: z.ZodOptional<z.ZodString>;
|
|
42
42
|
decisionRequirementsKey: z.ZodOptional<z.ZodString>;
|
|
43
|
+
isLatestVersion: z.ZodOptional<z.ZodBoolean>;
|
|
43
44
|
}, z.core.$strip>>;
|
|
44
45
|
}, z.core.$strip>;
|
|
45
46
|
type QueryDecisionDefinitionsRequestBody = z.infer<typeof queryDecisionDefinitionsRequestBodySchema>;
|
|
@@ -19,7 +19,9 @@ const queryDecisionDefinitionsRequestBodySchema = getQueryRequestBodySchema({
|
|
|
19
19
|
"decisionRequirementsKey",
|
|
20
20
|
"tenantId"
|
|
21
21
|
],
|
|
22
|
-
filter: decisionDefinitionSchema.
|
|
22
|
+
filter: decisionDefinitionSchema.extend({
|
|
23
|
+
isLatestVersion: z.boolean()
|
|
24
|
+
}).partial()
|
|
23
25
|
});
|
|
24
26
|
const queryDecisionDefinitionsResponseBodySchema = getQueryResponseBodySchema(decisionDefinitionSchema);
|
|
25
27
|
const getDecisionDefinitionXmlResponseBodySchema = z.string();
|
package/dist/8.9/audit-log.d.ts
CHANGED
|
@@ -457,8 +457,8 @@ declare const auditLogSortFieldEnum: z.ZodEnum<{
|
|
|
457
457
|
batchOperationKey: "batchOperationKey";
|
|
458
458
|
actorType: "actorType";
|
|
459
459
|
actorId: "actorId";
|
|
460
|
-
processInstanceKey: "processInstanceKey";
|
|
461
460
|
operationType: "operationType";
|
|
461
|
+
processInstanceKey: "processInstanceKey";
|
|
462
462
|
timestamp: "timestamp";
|
|
463
463
|
decisionDefinitionId: "decisionDefinitionId";
|
|
464
464
|
decisionRequirementsId: "decisionRequirementsId";
|
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.32",
|
|
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>",
|