@camunda/camunda-api-zod-schemas 0.0.8 → 0.0.9
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/dist/8.8/element-instance.js +5 -0
- package/dist/8.8/index.js +3 -1
- package/dist/8.8.js +3 -1
- package/dist/element-instance.d.ts +199 -2
- package/dist/incident.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { getEnumFilterSchema, getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION } from "../common.js";
|
|
3
|
+
import { queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema } from "./incident.js";
|
|
3
4
|
const elementInstanceStateSchema = z.enum(["ACTIVE", "COMPLETED", "TERMINATED"]);
|
|
4
5
|
const elementInstanceTypeSchema = z.enum([
|
|
5
6
|
"UNSPECIFIED",
|
|
@@ -101,6 +102,8 @@ const updateElementInstanceVariables = {
|
|
|
101
102
|
return `/${API_VERSION}/element-instances/${elementInstanceKey}/variables`;
|
|
102
103
|
}
|
|
103
104
|
};
|
|
105
|
+
const queryElementInstanceIncidentsRequestBodySchema = queryIncidentsRequestBodySchema;
|
|
106
|
+
const queryElementInstanceIncidentsResponseBodySchema = queryIncidentsResponseBodySchema;
|
|
104
107
|
const queryElementInstanceIncidents = {
|
|
105
108
|
method: "POST",
|
|
106
109
|
getUrl: ({ elementInstanceKey }) => `/${API_VERSION}/element-instances/${elementInstanceKey}/incidents/search`
|
|
@@ -113,6 +116,8 @@ export {
|
|
|
113
116
|
getElementInstance,
|
|
114
117
|
getElementInstanceResponseBodySchema,
|
|
115
118
|
queryElementInstanceIncidents,
|
|
119
|
+
queryElementInstanceIncidentsRequestBodySchema,
|
|
120
|
+
queryElementInstanceIncidentsResponseBodySchema,
|
|
116
121
|
queryElementInstances,
|
|
117
122
|
queryElementInstancesRequestBodySchema,
|
|
118
123
|
queryElementInstancesResponseBodySchema,
|
package/dist/8.8/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { decisionDefinitionSchema, evaluateDecisionRequestBodySchema, evaluateDe
|
|
|
8
8
|
import { decisionDefinitionTypeSchema, decisionInstanceSchema, decisionInstanceStateSchema, getDecisionInstanceResponseBodySchema, queryDecisionInstancesRequestBodySchema, queryDecisionInstancesResponseBodySchema } from "./decision-instance.js";
|
|
9
9
|
import { decisionRequirementsSchema, getDecisionRequirementsXmlResponseBodySchema, queryDecisionRequirementsRequestBodySchema, queryDecisionRequirementsResponseBodySchema } from "./decision-requirements.js";
|
|
10
10
|
import { createDocumentsResponseBodySchema, documentCreationFailureDetailSchema, documentLinkRequestBodySchema, documentLinkSchema, documentMetadataSchema, documentReferenceSchema } from "./document.js";
|
|
11
|
-
import { elementInstanceFilterSchema, elementInstanceSchema, elementInstanceStateSchema, elementInstanceTypeSchema, getElementInstanceResponseBodySchema, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, updateElementInstanceVariablesRequestBodySchema } from "./element-instance.js";
|
|
11
|
+
import { elementInstanceFilterSchema, elementInstanceSchema, elementInstanceStateSchema, elementInstanceTypeSchema, getElementInstanceResponseBodySchema, queryElementInstanceIncidentsRequestBodySchema, queryElementInstanceIncidentsResponseBodySchema, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, updateElementInstanceVariablesRequestBodySchema } from "./element-instance.js";
|
|
12
12
|
import { createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema } from "./group.js";
|
|
13
13
|
import { getIncidentResponseBodySchema, incidentErrorTypeSchema, incidentSchema, incidentStateSchema, queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema } from "./incident.js";
|
|
14
14
|
import { licenseSchema } from "./license.js";
|
|
@@ -166,6 +166,8 @@ export {
|
|
|
166
166
|
queryDecisionInstancesResponseBodySchema,
|
|
167
167
|
queryDecisionRequirementsRequestBodySchema,
|
|
168
168
|
queryDecisionRequirementsResponseBodySchema,
|
|
169
|
+
queryElementInstanceIncidentsRequestBodySchema,
|
|
170
|
+
queryElementInstanceIncidentsResponseBodySchema,
|
|
169
171
|
queryElementInstancesRequestBodySchema,
|
|
170
172
|
queryElementInstancesResponseBodySchema,
|
|
171
173
|
queryGroupsByRoleRequestBodySchema,
|
package/dist/8.8.js
CHANGED
|
@@ -19,7 +19,7 @@ import { decisionRequirementsSchema, getDecisionRequirementsXmlResponseBodySchem
|
|
|
19
19
|
import { createDocumentLink, deleteDocument, getDocument, createDocuments, createDocument } from "./8.8/document.js";
|
|
20
20
|
import { createDocumentsResponseBodySchema, documentCreationFailureDetailSchema, documentLinkRequestBodySchema, documentLinkSchema, documentMetadataSchema, documentReferenceSchema } from "./8.8/document.js";
|
|
21
21
|
import { updateElementInstanceVariables, getElementInstance, queryElementInstanceIncidents, queryElementInstances } from "./8.8/element-instance.js";
|
|
22
|
-
import { elementInstanceFilterSchema, elementInstanceSchema, elementInstanceStateSchema, elementInstanceTypeSchema, getElementInstanceResponseBodySchema, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, updateElementInstanceVariablesRequestBodySchema } from "./8.8/element-instance.js";
|
|
22
|
+
import { elementInstanceFilterSchema, elementInstanceSchema, elementInstanceStateSchema, elementInstanceTypeSchema, getElementInstanceResponseBodySchema, queryElementInstanceIncidentsRequestBodySchema, queryElementInstanceIncidentsResponseBodySchema, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, updateElementInstanceVariablesRequestBodySchema } from "./8.8/element-instance.js";
|
|
23
23
|
import { unassignMappingFromGroup, assignMappingToGroup, unassignClientFromGroup, assignClientToGroup, unassignUserFromGroup, assignUserToGroup, queryMappingRulesByGroup, queryRolesByGroup, queryClientsByGroup, queryUsersByGroup, queryGroups, deleteGroup, updateGroup, getGroup, createGroup } from "./8.8/group.js";
|
|
24
24
|
import { createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema } from "./8.8/group.js";
|
|
25
25
|
import { queryIncidents, getIncident, resolveIncident } from "./8.8/incident.js";
|
|
@@ -341,6 +341,8 @@ export {
|
|
|
341
341
|
queryDecisionInstancesResponseBodySchema,
|
|
342
342
|
queryDecisionRequirementsRequestBodySchema,
|
|
343
343
|
queryDecisionRequirementsResponseBodySchema,
|
|
344
|
+
queryElementInstanceIncidentsRequestBodySchema,
|
|
345
|
+
queryElementInstanceIncidentsResponseBodySchema,
|
|
344
346
|
queryElementInstancesRequestBodySchema,
|
|
345
347
|
queryElementInstancesResponseBodySchema,
|
|
346
348
|
queryGroupsByRoleRequestBodySchema,
|
|
@@ -338,6 +338,203 @@ declare const updateElementInstanceVariablesRequestBodySchema: z.ZodObject<{
|
|
|
338
338
|
}, z.core.$strip>;
|
|
339
339
|
type UpdateElementInstanceVariablesRequestBody = z.infer<typeof updateElementInstanceVariablesRequestBodySchema>;
|
|
340
340
|
declare const updateElementInstanceVariables: Endpoint<Pick<ElementInstance, 'elementInstanceKey'>>;
|
|
341
|
+
declare const queryElementInstanceIncidentsRequestBodySchema: z.ZodObject<{
|
|
342
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
field: z.ZodEnum<{
|
|
344
|
+
tenantId: "tenantId";
|
|
345
|
+
processDefinitionKey: "processDefinitionKey";
|
|
346
|
+
processDefinitionId: "processDefinitionId";
|
|
347
|
+
elementId: "elementId";
|
|
348
|
+
state: "state";
|
|
349
|
+
processInstanceKey: "processInstanceKey";
|
|
350
|
+
errorMessage: "errorMessage";
|
|
351
|
+
elementInstanceKey: "elementInstanceKey";
|
|
352
|
+
errorType: "errorType";
|
|
353
|
+
creationTime: "creationTime";
|
|
354
|
+
incidentKey: "incidentKey";
|
|
355
|
+
jobKey: "jobKey";
|
|
356
|
+
}>;
|
|
357
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
358
|
+
asc: "asc";
|
|
359
|
+
desc: "desc";
|
|
360
|
+
}>>;
|
|
361
|
+
}, z.core.$strip>>>;
|
|
362
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
364
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
366
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
369
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
370
|
+
processDefinitionKey: z.ZodOptional<z.ZodString>;
|
|
371
|
+
processDefinitionId: z.ZodOptional<z.ZodString>;
|
|
372
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
processInstanceKey: z.ZodOptional<z.ZodString>;
|
|
374
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
375
|
+
elementInstanceKey: z.ZodOptional<z.ZodString>;
|
|
376
|
+
incidentKey: z.ZodOptional<z.ZodString>;
|
|
377
|
+
jobKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
378
|
+
errorType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
379
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
380
|
+
UNKNOWN: "UNKNOWN";
|
|
381
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
382
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
383
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
384
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
385
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
386
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
387
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
388
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
389
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
390
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
391
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
392
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
393
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
394
|
+
}>, z.ZodObject<{
|
|
395
|
+
$eq: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
397
|
+
UNKNOWN: "UNKNOWN";
|
|
398
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
399
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
400
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
401
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
402
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
403
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
404
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
405
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
406
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
407
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
408
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
409
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
410
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
411
|
+
}>>;
|
|
412
|
+
$neq: z.ZodOptional<z.ZodEnum<{
|
|
413
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
414
|
+
UNKNOWN: "UNKNOWN";
|
|
415
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
416
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
417
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
418
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
419
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
420
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
421
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
422
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
423
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
424
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
425
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
426
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
427
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
428
|
+
}>>;
|
|
429
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
431
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
432
|
+
UNKNOWN: "UNKNOWN";
|
|
433
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
434
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
435
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
436
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
437
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
438
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
439
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
440
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
441
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
442
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
443
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
444
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
445
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
446
|
+
}>>>;
|
|
447
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
448
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
449
|
+
UNKNOWN: "UNKNOWN";
|
|
450
|
+
IO_MAPPING_ERROR: "IO_MAPPING_ERROR";
|
|
451
|
+
JOB_NO_RETRIES: "JOB_NO_RETRIES";
|
|
452
|
+
EXECUTION_LISTENER_NO_RETRIES: "EXECUTION_LISTENER_NO_RETRIES";
|
|
453
|
+
TASK_LISTENER_NO_RETRIES: "TASK_LISTENER_NO_RETRIES";
|
|
454
|
+
CONDITION_ERROR: "CONDITION_ERROR";
|
|
455
|
+
EXTRACT_VALUE_ERROR: "EXTRACT_VALUE_ERROR";
|
|
456
|
+
CALLED_ELEMENT_ERROR: "CALLED_ELEMENT_ERROR";
|
|
457
|
+
UNHANDLED_ERROR_EVENT: "UNHANDLED_ERROR_EVENT";
|
|
458
|
+
MESSAGE_SIZE_EXCEEDED: "MESSAGE_SIZE_EXCEEDED";
|
|
459
|
+
CALLED_DECISION_ERROR: "CALLED_DECISION_ERROR";
|
|
460
|
+
DECISION_EVALUATION_ERROR: "DECISION_EVALUATION_ERROR";
|
|
461
|
+
FORM_NOT_FOUND: "FORM_NOT_FOUND";
|
|
462
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND";
|
|
463
|
+
}>>>;
|
|
464
|
+
}, z.core.$strip>]>>;
|
|
465
|
+
creationTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
466
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
467
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
468
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
469
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
470
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
471
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
472
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
473
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
474
|
+
}, z.core.$strip>]>>;
|
|
475
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
476
|
+
ACTIVE: "ACTIVE";
|
|
477
|
+
MIGRATED: "MIGRATED";
|
|
478
|
+
RESOLVED: "RESOLVED";
|
|
479
|
+
PENDING: "PENDING";
|
|
480
|
+
}>, z.ZodObject<{
|
|
481
|
+
$eq: z.ZodOptional<z.ZodEnum<{
|
|
482
|
+
ACTIVE: "ACTIVE";
|
|
483
|
+
MIGRATED: "MIGRATED";
|
|
484
|
+
RESOLVED: "RESOLVED";
|
|
485
|
+
PENDING: "PENDING";
|
|
486
|
+
}>>;
|
|
487
|
+
$neq: z.ZodOptional<z.ZodEnum<{
|
|
488
|
+
ACTIVE: "ACTIVE";
|
|
489
|
+
MIGRATED: "MIGRATED";
|
|
490
|
+
RESOLVED: "RESOLVED";
|
|
491
|
+
PENDING: "PENDING";
|
|
492
|
+
}>>;
|
|
493
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
495
|
+
ACTIVE: "ACTIVE";
|
|
496
|
+
MIGRATED: "MIGRATED";
|
|
497
|
+
RESOLVED: "RESOLVED";
|
|
498
|
+
PENDING: "PENDING";
|
|
499
|
+
}>>>;
|
|
500
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
501
|
+
ACTIVE: "ACTIVE";
|
|
502
|
+
MIGRATED: "MIGRATED";
|
|
503
|
+
RESOLVED: "RESOLVED";
|
|
504
|
+
PENDING: "PENDING";
|
|
505
|
+
}>>>;
|
|
506
|
+
}, z.core.$strip>]>>;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
}, z.core.$strip>;
|
|
509
|
+
type QueryElementInstanceIncidentsRequestBody = z.infer<typeof queryElementInstanceIncidentsRequestBodySchema>;
|
|
510
|
+
declare const queryElementInstanceIncidentsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
511
|
+
processDefinitionId: string;
|
|
512
|
+
errorType: "UNSPECIFIED" | "UNKNOWN" | "IO_MAPPING_ERROR" | "JOB_NO_RETRIES" | "EXECUTION_LISTENER_NO_RETRIES" | "TASK_LISTENER_NO_RETRIES" | "CONDITION_ERROR" | "EXTRACT_VALUE_ERROR" | "CALLED_ELEMENT_ERROR" | "UNHANDLED_ERROR_EVENT" | "MESSAGE_SIZE_EXCEEDED" | "CALLED_DECISION_ERROR" | "DECISION_EVALUATION_ERROR" | "FORM_NOT_FOUND" | "RESOURCE_NOT_FOUND";
|
|
513
|
+
errorMessage: string;
|
|
514
|
+
elementId: string;
|
|
515
|
+
creationTime: string;
|
|
516
|
+
state: "ACTIVE" | "MIGRATED" | "RESOLVED" | "PENDING";
|
|
517
|
+
tenantId: string;
|
|
518
|
+
incidentKey: string;
|
|
519
|
+
processDefinitionKey: string;
|
|
520
|
+
processInstanceKey: string;
|
|
521
|
+
elementInstanceKey: string;
|
|
522
|
+
jobKey?: string | undefined;
|
|
523
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
524
|
+
processDefinitionId: string;
|
|
525
|
+
errorType: "UNSPECIFIED" | "UNKNOWN" | "IO_MAPPING_ERROR" | "JOB_NO_RETRIES" | "EXECUTION_LISTENER_NO_RETRIES" | "TASK_LISTENER_NO_RETRIES" | "CONDITION_ERROR" | "EXTRACT_VALUE_ERROR" | "CALLED_ELEMENT_ERROR" | "UNHANDLED_ERROR_EVENT" | "MESSAGE_SIZE_EXCEEDED" | "CALLED_DECISION_ERROR" | "DECISION_EVALUATION_ERROR" | "FORM_NOT_FOUND" | "RESOURCE_NOT_FOUND";
|
|
526
|
+
errorMessage: string;
|
|
527
|
+
elementId: string;
|
|
528
|
+
creationTime: string;
|
|
529
|
+
state: "ACTIVE" | "MIGRATED" | "RESOLVED" | "PENDING";
|
|
530
|
+
tenantId: string;
|
|
531
|
+
incidentKey: string;
|
|
532
|
+
processDefinitionKey: string;
|
|
533
|
+
processInstanceKey: string;
|
|
534
|
+
elementInstanceKey: string;
|
|
535
|
+
jobKey?: string | undefined;
|
|
536
|
+
}>, unknown>>;
|
|
537
|
+
type QueryElementInstanceIncidentsResponseBody = z.infer<typeof queryElementInstanceIncidentsResponseBodySchema>;
|
|
341
538
|
declare const queryElementInstanceIncidents: Endpoint<Pick<ElementInstance, 'elementInstanceKey'>>;
|
|
342
|
-
export { queryElementInstances, getElementInstance, updateElementInstanceVariables, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, getElementInstanceResponseBodySchema, updateElementInstanceVariablesRequestBodySchema, elementInstanceStateSchema, elementInstanceTypeSchema, elementInstanceSchema, elementInstanceFilterSchema, queryElementInstanceIncidents, };
|
|
343
|
-
export type { ElementInstanceState, ElementInstanceType, ElementInstance, QueryElementInstancesRequestBody, QueryElementInstancesResponseBody, GetElementInstanceResponseBody, UpdateElementInstanceVariablesRequestBody, };
|
|
539
|
+
export { queryElementInstances, getElementInstance, updateElementInstanceVariables, queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, getElementInstanceResponseBodySchema, updateElementInstanceVariablesRequestBodySchema, elementInstanceStateSchema, elementInstanceTypeSchema, elementInstanceSchema, elementInstanceFilterSchema, queryElementInstanceIncidentsRequestBodySchema, queryElementInstanceIncidentsResponseBodySchema, queryElementInstanceIncidents, };
|
|
540
|
+
export type { ElementInstanceState, ElementInstanceType, ElementInstance, QueryElementInstancesRequestBody, QueryElementInstancesResponseBody, GetElementInstanceResponseBody, UpdateElementInstanceVariablesRequestBody, QueryElementInstanceIncidentsRequestBody, QueryElementInstanceIncidentsResponseBody, };
|
package/dist/incident.d.ts
CHANGED
|
@@ -110,9 +110,9 @@ declare const queryIncidentsRequestBodySchema: z.ZodObject<{
|
|
|
110
110
|
processInstanceKey: "processInstanceKey";
|
|
111
111
|
errorMessage: "errorMessage";
|
|
112
112
|
elementInstanceKey: "elementInstanceKey";
|
|
113
|
-
incidentKey: "incidentKey";
|
|
114
113
|
errorType: "errorType";
|
|
115
114
|
creationTime: "creationTime";
|
|
115
|
+
incidentKey: "incidentKey";
|
|
116
116
|
jobKey: "jobKey";
|
|
117
117
|
}>;
|
|
118
118
|
order: z.ZodOptional<z.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1021,7 +1021,7 @@ export { decisionDefinitionSchema, queryDecisionDefinitionsRequestBodySchema, qu
|
|
|
1021
1021
|
export { decisionDefinitionTypeSchema, decisionInstanceStateSchema, decisionInstanceSchema, queryDecisionInstancesRequestBodySchema, queryDecisionInstancesResponseBodySchema, getDecisionInstanceResponseBodySchema, type DecisionDefinitionType, type DecisionInstanceState, type DecisionInstance, type QueryDecisionInstancesRequestBody, type QueryDecisionInstancesResponseBody, type GetDecisionInstanceResponseBody, } from './decision-instance';
|
|
1022
1022
|
export { decisionRequirementsSchema, queryDecisionRequirementsRequestBodySchema, queryDecisionRequirementsResponseBodySchema, getDecisionRequirementsXmlResponseBodySchema, type DecisionRequirements, type QueryDecisionRequirementsRequestBody, type QueryDecisionRequirementsResponseBody, type GetDecisionRequirementsXmlResponseBody, } from './decision-requirements';
|
|
1023
1023
|
export { documentMetadataSchema, documentReferenceSchema, documentCreationFailureDetailSchema, createDocumentsResponseBodySchema, documentLinkRequestBodySchema, documentLinkSchema, type DocumentMetadata, type DocumentReference, type DocumentCreationFailureDetail, type CreateDocumentsResponseBody, type DocumentLinkRequestBody, type DocumentLink, } from './document';
|
|
1024
|
-
export { queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, getElementInstanceResponseBodySchema, updateElementInstanceVariablesRequestBodySchema, elementInstanceStateSchema, elementInstanceTypeSchema, elementInstanceSchema, elementInstanceFilterSchema, type ElementInstanceState, type ElementInstanceType, type ElementInstance, type QueryElementInstancesRequestBody, type QueryElementInstancesResponseBody, type GetElementInstanceResponseBody, type UpdateElementInstanceVariablesRequestBody, } from './element-instance';
|
|
1024
|
+
export { queryElementInstancesRequestBodySchema, queryElementInstancesResponseBodySchema, getElementInstanceResponseBodySchema, updateElementInstanceVariablesRequestBodySchema, elementInstanceStateSchema, elementInstanceTypeSchema, elementInstanceSchema, elementInstanceFilterSchema, queryElementInstanceIncidentsRequestBodySchema, queryElementInstanceIncidentsResponseBodySchema, type ElementInstanceState, type ElementInstanceType, type ElementInstance, type QueryElementInstancesRequestBody, type QueryElementInstancesResponseBody, type GetElementInstanceResponseBody, type UpdateElementInstanceVariablesRequestBody, type QueryElementInstanceIncidentsRequestBody, type QueryElementInstanceIncidentsResponseBody, } from './element-instance';
|
|
1025
1025
|
export { createGroupRequestBodySchema, createGroupResponseBodySchema, getGroupResponseBodySchema, updateGroupRequestBodySchema, updateGroupResponseBodySchema, queryGroupsRequestBodySchema, queryGroupsResponseBodySchema, queryUsersByGroupRequestBodySchema, queryUsersByGroupResponseBodySchema, queryClientsByGroupRequestBodySchema, queryClientsByGroupResponseBodySchema, queryRolesByGroupRequestBodySchema, queryRolesByGroupResponseBodySchema, queryMappingRulesByGroupRequestBodySchema, queryMappingRulesByGroupResponseBodySchema, groupSchema, type Group, type CreateGroupRequestBody, type CreateGroupResponseBody, type GetGroupResponseBody, type UpdateGroupRequestBody, type UpdateGroupResponseBody, type QueryGroupsRequestBody, type QueryGroupsResponseBody, type QueryUsersByGroupRequestBody, type QueryUsersByGroupResponseBody, type QueryClientsByGroupRequestBody, type QueryClientsByGroupResponseBody, type QueryRolesByGroupRequestBody, type QueryRolesByGroupResponseBody, type QueryMappingRulesByGroupRequestBody, type QueryMappingRulesByGroupResponseBody, } from './group';
|
|
1026
1026
|
export { getIncidentResponseBodySchema, queryIncidentsRequestBodySchema, queryIncidentsResponseBodySchema, incidentErrorTypeSchema, incidentStateSchema, incidentSchema, type IncidentErrorType, type IncidentState, type Incident, type GetIncidentResponseBody, type QueryIncidentsRequestBody, type QueryIncidentsResponseBody, } from './incident';
|
|
1027
1027
|
export { queryJobsRequestBodySchema, queryJobsResponseBodySchema, activateJobsRequestBodySchema, activateJobsResponseBodySchema, failJobRequestBodySchema, throwJobErrorRequestBodySchema, completeJobRequestBodySchema, updateJobRequestBodySchema, jobSchema, activatedJobSchema, jobResultSchema, jobChangesetSchema, jobStateSchema, jobKindSchema, listenerEventTypeSchema, jobStateFilterSchema, jobKindFilterSchema, listenerEventTypeFilterSchema, type QueryJobsRequestBody, type QueryJobsResponseBody, type ActivateJobsRequestBody, type ActivateJobsResponseBody, type FailJobRequestBody, type ThrowJobErrorRequestBody, type CompleteJobRequestBody, type UpdateJobRequestBody, type Job, type ActivatedJob, type JobResult, type JobResultCorrections, type JobChangeset, type JobState, type JobKind, type ListenerEventType, } from './job';
|
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.9",
|
|
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>",
|