@camunda/camunda-api-zod-schemas 0.0.77 → 0.0.78

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.
@@ -42,6 +42,7 @@ declare const decisionInstanceSchema: z.ZodObject<{
42
42
  decisionDefinitionKey: z.ZodString;
43
43
  elementInstanceKey: z.ZodString;
44
44
  rootDecisionDefinitionKey: z.ZodString;
45
+ businessId: z.ZodNullable<z.ZodString>;
45
46
  }, z.core.$strip>;
46
47
  type DecisionInstance = z.infer<typeof decisionInstanceSchema>;
47
48
  declare const queryDecisionInstancesFilterSchema: z.ZodObject<{
@@ -137,6 +138,14 @@ declare const queryDecisionInstancesFilterSchema: z.ZodObject<{
137
138
  $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
139
  $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
140
  }, z.core.$strip>, z.ZodString]>>;
141
+ businessId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
142
+ $eq: z.ZodOptional<z.ZodString>;
143
+ $neq: z.ZodOptional<z.ZodString>;
144
+ $exists: z.ZodOptional<z.ZodBoolean>;
145
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
+ $like: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>, z.ZodString]>>;
140
149
  }, z.core.$strip>;
141
150
  type QueryDecisionInstancesFilter = z.infer<typeof queryDecisionInstancesFilterSchema>;
142
151
  declare const queryDecisionInstancesRequestBodySchema: z.ZodObject<{
@@ -157,6 +166,7 @@ declare const queryDecisionInstancesRequestBodySchema: z.ZodObject<{
157
166
  decisionEvaluationKey: "decisionEvaluationKey";
158
167
  elementInstanceKey: "elementInstanceKey";
159
168
  rootDecisionDefinitionKey: "rootDecisionDefinitionKey";
169
+ businessId: "businessId";
160
170
  }>;
161
171
  order: z.ZodOptional<z.ZodEnum<{
162
172
  asc: "asc";
@@ -262,6 +272,14 @@ declare const queryDecisionInstancesRequestBodySchema: z.ZodObject<{
262
272
  $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
273
  $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
274
  }, z.core.$strip>, z.ZodString]>>;
275
+ businessId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
276
+ $eq: z.ZodOptional<z.ZodString>;
277
+ $neq: z.ZodOptional<z.ZodString>;
278
+ $exists: z.ZodOptional<z.ZodBoolean>;
279
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
+ $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
+ $like: z.ZodOptional<z.ZodString>;
282
+ }, z.core.$strip>, z.ZodString]>>;
265
283
  }, z.core.$strip>>;
266
284
  }, z.core.$strip>;
267
285
  type QueryDecisionInstancesRequestBody = z.infer<typeof queryDecisionInstancesRequestBodySchema>;
@@ -283,6 +301,7 @@ declare const queryDecisionInstancesResponseBodySchema: z.ZodType<import('./comm
283
301
  decisionDefinitionKey: string;
284
302
  elementInstanceKey: string;
285
303
  rootDecisionDefinitionKey: string;
304
+ businessId: string | null;
286
305
  }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
287
306
  decisionEvaluationInstanceKey: string;
288
307
  state: "UNSPECIFIED" | "UNKNOWN" | "FAILED" | "EVALUATED";
@@ -301,6 +320,7 @@ declare const queryDecisionInstancesResponseBodySchema: z.ZodType<import('./comm
301
320
  decisionDefinitionKey: string;
302
321
  elementInstanceKey: string;
303
322
  rootDecisionDefinitionKey: string;
323
+ businessId: string | null;
304
324
  }>, unknown>>;
305
325
  type QueryDecisionInstancesResponseBody = z.infer<typeof queryDecisionInstancesResponseBodySchema>;
306
326
  declare const getDecisionInstanceResponseBodySchema: z.ZodObject<{
@@ -331,6 +351,7 @@ declare const getDecisionInstanceResponseBodySchema: z.ZodObject<{
331
351
  decisionDefinitionKey: z.ZodString;
332
352
  elementInstanceKey: z.ZodString;
333
353
  rootDecisionDefinitionKey: z.ZodString;
354
+ businessId: z.ZodNullable<z.ZodString>;
334
355
  evaluatedInputs: z.ZodArray<z.ZodObject<{
335
356
  inputId: z.ZodString;
336
357
  inputName: z.ZodString;
@@ -445,6 +466,14 @@ declare const createDecisionInstancesDeletionBatchOperationRequestBodySchema: z.
445
466
  $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
446
467
  $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
447
468
  }, z.core.$strip>, z.ZodString]>>;
469
+ businessId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
470
+ $eq: z.ZodOptional<z.ZodString>;
471
+ $neq: z.ZodOptional<z.ZodString>;
472
+ $exists: z.ZodOptional<z.ZodBoolean>;
473
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
474
+ $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
475
+ $like: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strip>, z.ZodString]>>;
448
477
  }, z.core.$strip>;
449
478
  }, z.core.$strip>;
450
479
  type CreateDecisionInstancesDeletionBatchOperationRequestBody = z.infer<typeof createDecisionInstancesDeletionBatchOperationRequestBodySchema>;
@@ -1,4 +1,4 @@
1
- import { advancedDateTimeFilterSchema, basicStringFilterSchema, getEnumFilterSchema, getQueryRequestBodySchema, getQueryResponseBodySchema } from "./common.js";
1
+ import { advancedDateTimeFilterSchema, advancedStringFilterSchema, basicStringFilterSchema, getEnumFilterSchema, getQueryRequestBodySchema, getQueryResponseBodySchema } from "./common.js";
2
2
  import { batchOperationTypeSchema } from "./batch-operation.js";
3
3
  import { evaluatedDecisionInputItemSchema, matchedDecisionRuleItemSchema } from "./decision-definition.js";
4
4
  import { z } from "zod";
@@ -32,7 +32,8 @@ var decisionInstanceSchema = z.object({
32
32
  rootProcessInstanceKey: z.string().nullable(),
33
33
  decisionDefinitionKey: z.string(),
34
34
  elementInstanceKey: z.string(),
35
- rootDecisionDefinitionKey: z.string()
35
+ rootDecisionDefinitionKey: z.string(),
36
+ businessId: z.string().nullable()
36
37
  });
37
38
  var queryDecisionInstancesFilterSchema = z.object({
38
39
  decisionEvaluationInstanceKey: basicStringFilterSchema,
@@ -42,6 +43,7 @@ var queryDecisionInstancesFilterSchema = z.object({
42
43
  elementInstanceKey: basicStringFilterSchema,
43
44
  rootDecisionDefinitionKey: basicStringFilterSchema,
44
45
  decisionRequirementsKey: basicStringFilterSchema,
46
+ businessId: advancedStringFilterSchema,
45
47
  ...decisionInstanceSchema.pick({
46
48
  evaluationFailure: true,
47
49
  decisionDefinitionId: true,
@@ -70,7 +72,8 @@ var queryDecisionInstancesRequestBodySchema = getQueryRequestBodySchema({
70
72
  "decisionDefinitionType",
71
73
  "tenantId",
72
74
  "elementInstanceKey",
73
- "rootDecisionDefinitionKey"
75
+ "rootDecisionDefinitionKey",
76
+ "businessId"
74
77
  ],
75
78
  filter: queryDecisionInstancesFilterSchema
76
79
  });
@@ -68,6 +68,7 @@ declare const endpoints: {
68
68
  decisionDefinitionKey: string;
69
69
  elementInstanceKey: string;
70
70
  rootDecisionDefinitionKey: string;
71
+ businessId: string | null;
71
72
  }, "decisionEvaluationInstanceKey">>;
72
73
  readonly createDecisionInstancesDeletionBatchOperation: import('./common').Endpoint<undefined>;
73
74
  readonly queryDecisionRequirements: import('./common').Endpoint<undefined>;
@@ -324,6 +325,7 @@ declare const endpoints: {
324
325
  externalFormReference: string | null;
325
326
  tags: string[];
326
327
  priority: number;
328
+ businessId: string | null;
327
329
  }, "userTaskKey">>;
328
330
  readonly queryUserTasks: import('./common').Endpoint<undefined>;
329
331
  readonly getUserTaskForm: import('./common').Endpoint<Pick<{
@@ -351,6 +353,7 @@ declare const endpoints: {
351
353
  externalFormReference: string | null;
352
354
  tags: string[];
353
355
  priority: number;
356
+ businessId: string | null;
354
357
  }, "userTaskKey">>;
355
358
  readonly getTask: import('./common').Endpoint<Pick<{
356
359
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
@@ -377,6 +380,7 @@ declare const endpoints: {
377
380
  externalFormReference: string | null;
378
381
  tags: string[];
379
382
  priority: number;
383
+ businessId: string | null;
380
384
  }, "userTaskKey">>;
381
385
  readonly assignTask: import('./common').Endpoint<Pick<{
382
386
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
@@ -403,6 +407,7 @@ declare const endpoints: {
403
407
  externalFormReference: string | null;
404
408
  tags: string[];
405
409
  priority: number;
410
+ businessId: string | null;
406
411
  }, "userTaskKey">>;
407
412
  readonly unassignTask: import('./common').Endpoint<Pick<{
408
413
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
@@ -429,6 +434,7 @@ declare const endpoints: {
429
434
  externalFormReference: string | null;
430
435
  tags: string[];
431
436
  priority: number;
437
+ businessId: string | null;
432
438
  }, "userTaskKey">>;
433
439
  readonly completeTask: import('./common').Endpoint<Pick<{
434
440
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
@@ -455,6 +461,7 @@ declare const endpoints: {
455
461
  externalFormReference: string | null;
456
462
  tags: string[];
457
463
  priority: number;
464
+ businessId: string | null;
458
465
  }, "userTaskKey">>;
459
466
  readonly queryVariablesByUserTask: import('./common').Endpoint<Pick<{
460
467
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
@@ -481,6 +488,7 @@ declare const endpoints: {
481
488
  externalFormReference: string | null;
482
489
  tags: string[];
483
490
  priority: number;
491
+ businessId: string | null;
484
492
  }, "userTaskKey"> & {
485
493
  truncateValues?: boolean;
486
494
  }>;
@@ -509,6 +517,7 @@ declare const endpoints: {
509
517
  externalFormReference: string | null;
510
518
  tags: string[];
511
519
  priority: number;
520
+ businessId: string | null;
512
521
  }, "userTaskKey">>;
513
522
  readonly createProcessInstance: import('./common').Endpoint<undefined>;
514
523
  readonly getVariable: import('./common').Endpoint<Pick<{
@@ -47,6 +47,7 @@ declare const userTaskSchema: z.ZodObject<{
47
47
  externalFormReference: z.ZodNullable<z.ZodString>;
48
48
  tags: z.ZodArray<z.ZodString>;
49
49
  priority: z.ZodNumber;
50
+ businessId: z.ZodNullable<z.ZodString>;
50
51
  }, z.core.$strip>;
51
52
  type UserTask = z.infer<typeof userTaskSchema>;
52
53
  declare const getUserTask: Endpoint<Pick<UserTask, 'userTaskKey'>>;
@@ -58,6 +59,7 @@ declare const queryUserTasksRequestBodySchema: z.ZodObject<{
58
59
  creationDate: "creationDate";
59
60
  completionDate: "completionDate";
60
61
  priority: "priority";
62
+ businessId: "businessId";
61
63
  }>;
62
64
  order: z.ZodOptional<z.ZodEnum<{
63
65
  asc: "asc";
@@ -86,6 +88,14 @@ declare const queryUserTasksRequestBodySchema: z.ZodObject<{
86
88
  $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
89
  $like: z.ZodOptional<z.ZodString>;
88
90
  }, z.core.$strip>, z.ZodString]>>;
91
+ businessId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
92
+ $eq: z.ZodOptional<z.ZodString>;
93
+ $neq: z.ZodOptional<z.ZodString>;
94
+ $exists: z.ZodOptional<z.ZodBoolean>;
95
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
96
+ $notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
+ $like: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>, z.ZodString]>>;
89
99
  priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
90
100
  $eq: z.ZodOptional<z.ZodNumber>;
91
101
  $neq: z.ZodOptional<z.ZodNumber>;
@@ -246,6 +256,7 @@ declare const queryUserTasksResponseBodySchema: z.ZodType<import('./common').Que
246
256
  externalFormReference: string | null;
247
257
  tags: string[];
248
258
  priority: number;
259
+ businessId: string | null;
249
260
  }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
250
261
  state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING" | "CREATING";
251
262
  processDefinitionVersion: number;
@@ -271,6 +282,7 @@ declare const queryUserTasksResponseBodySchema: z.ZodType<import('./common').Que
271
282
  externalFormReference: string | null;
272
283
  tags: string[];
273
284
  priority: number;
285
+ businessId: string | null;
274
286
  }>, unknown>>;
275
287
  type QueryUserTasksResponseBody = z.infer<typeof queryUserTasksResponseBodySchema>;
276
288
  declare const queryUserTasks: Endpoint;
@@ -41,7 +41,8 @@ var userTaskSchema = z.object({
41
41
  formKey: z.string().nullable(),
42
42
  externalFormReference: z.string().nullable(),
43
43
  tags: z.array(z.string()),
44
- priority: z.number().int().min(0).max(100)
44
+ priority: z.number().int().min(0).max(100),
45
+ businessId: z.string().nullable()
45
46
  });
46
47
  var getUserTask = {
47
48
  method: "GET",
@@ -53,7 +54,8 @@ var queryUserTasksRequestBodySchema = getQueryRequestBodySchema({
53
54
  "completionDate",
54
55
  "followUpDate",
55
56
  "dueDate",
56
- "priority"
57
+ "priority",
58
+ "businessId"
57
59
  ],
58
60
  filter: userTaskSchema.pick({
59
61
  state: true,
@@ -66,6 +68,7 @@ var queryUserTasksRequestBodySchema = getQueryRequestBodySchema({
66
68
  elementInstanceKey: true
67
69
  }).extend({
68
70
  assignee: advancedStringFilterSchema,
71
+ businessId: advancedStringFilterSchema,
69
72
  priority: advancedIntegerFilterSchema,
70
73
  candidateGroup: advancedStringFilterSchema,
71
74
  candidateUser: advancedStringFilterSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-api-zod-schemas",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
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>",