@camunda/camunda-api-zod-schemas 0.0.2 → 0.0.3

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.
@@ -11,16 +11,17 @@ const batchOperationStateSchema = z.enum([
11
11
  "ACTIVE",
12
12
  "SUSPENDED",
13
13
  "COMPLETED",
14
- "COMPLETED_WITH_ERRORS",
14
+ "PARTIALLY_COMPLETED",
15
15
  "CANCELED",
16
- "INCOMPLETED"
16
+ "INCOMPLETED",
17
+ "FAILED"
17
18
  ]);
18
19
  const batchOperationItemStateSchema = z.enum(["ACTIVE", "COMPLETED", "CANCELED", "FAILED"]);
19
20
  const batchOperationSchema = z.object({
20
21
  batchOperationKey: z.string(),
21
22
  state: batchOperationStateSchema,
22
23
  batchOperationType: batchOperationTypeSchema,
23
- startDate: z.string(),
24
+ startDate: z.string().optional(),
24
25
  endDate: z.string().optional(),
25
26
  operationsTotalCount: z.number().int(),
26
27
  operationsFailedCount: z.number().int(),
@@ -12,9 +12,10 @@ declare const batchOperationStateSchema: z.ZodEnum<{
12
12
  ACTIVE: "ACTIVE";
13
13
  SUSPENDED: "SUSPENDED";
14
14
  COMPLETED: "COMPLETED";
15
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
15
+ PARTIALLY_COMPLETED: "PARTIALLY_COMPLETED";
16
16
  CANCELED: "CANCELED";
17
17
  INCOMPLETED: "INCOMPLETED";
18
+ FAILED: "FAILED";
18
19
  }>;
19
20
  type BatchOperationState = z.infer<typeof batchOperationStateSchema>;
20
21
  declare const batchOperationItemStateSchema: z.ZodEnum<{
@@ -31,9 +32,10 @@ declare const batchOperationSchema: z.ZodObject<{
31
32
  ACTIVE: "ACTIVE";
32
33
  SUSPENDED: "SUSPENDED";
33
34
  COMPLETED: "COMPLETED";
34
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
35
+ PARTIALLY_COMPLETED: "PARTIALLY_COMPLETED";
35
36
  CANCELED: "CANCELED";
36
37
  INCOMPLETED: "INCOMPLETED";
38
+ FAILED: "FAILED";
37
39
  }>;
38
40
  batchOperationType: z.ZodEnum<{
39
41
  CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
@@ -41,7 +43,7 @@ declare const batchOperationSchema: z.ZodObject<{
41
43
  MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
42
44
  MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
43
45
  }>;
44
- startDate: z.ZodString;
46
+ startDate: z.ZodOptional<z.ZodString>;
45
47
  endDate: z.ZodOptional<z.ZodString>;
46
48
  operationsTotalCount: z.ZodNumber;
47
49
  operationsFailedCount: z.ZodNumber;
@@ -95,30 +97,31 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
95
97
  ACTIVE: "ACTIVE";
96
98
  SUSPENDED: "SUSPENDED";
97
99
  COMPLETED: "COMPLETED";
98
- COMPLETED_WITH_ERRORS: "COMPLETED_WITH_ERRORS";
100
+ PARTIALLY_COMPLETED: "PARTIALLY_COMPLETED";
99
101
  CANCELED: "CANCELED";
100
102
  INCOMPLETED: "INCOMPLETED";
103
+ FAILED: "FAILED";
101
104
  }>>;
102
105
  }, z.core.$strip>>;
103
106
  }, z.core.$strip>;
104
107
  type QueryBatchOperationsRequestBody = z.infer<typeof queryBatchOperationsRequestBodySchema>;
105
108
  declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
106
109
  batchOperationKey: string;
107
- state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "CANCELED" | "INCOMPLETED";
110
+ state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
108
111
  batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
109
- startDate: string;
110
112
  operationsTotalCount: number;
111
113
  operationsFailedCount: number;
112
114
  operationsCompletedCount: number;
115
+ startDate?: string | undefined;
113
116
  endDate?: string | undefined;
114
117
  }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
115
118
  batchOperationKey: string;
116
- state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "CANCELED" | "INCOMPLETED";
119
+ state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
117
120
  batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
118
- startDate: string;
119
121
  operationsTotalCount: number;
120
122
  operationsFailedCount: number;
121
123
  operationsCompletedCount: number;
124
+ startDate?: string | undefined;
122
125
  endDate?: string | undefined;
123
126
  }>, unknown>>;
124
127
  type QueryBatchOperationsResponseBody = z.infer<typeof queryBatchOperationsResponseBodySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-api-zod-schemas",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
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>",
@@ -203,12 +203,12 @@
203
203
  "publishConfig": {
204
204
  "access": "public"
205
205
  },
206
- "packageManager": "npm@11.5.2",
206
+ "packageManager": "npm@11.6.0",
207
207
  "devDependencies": {
208
208
  "@types/node": "24.3.0",
209
209
  "changelogen": "0.6.2",
210
210
  "typescript": "5.9.2",
211
- "vite": "7.1.3",
211
+ "vite": "7.1.5",
212
212
  "vite-plugin-circular-dependency": "0.5.0",
213
213
  "vite-plugin-dts": "4.5.4",
214
214
  "zod": "^4.0.17"