@camunda/camunda-api-zod-schemas 0.0.4 → 0.0.6
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/batch-operation.js +4 -1
- package/dist/8.8/index.js +7 -0
- package/dist/8.8.js +10 -0
- package/dist/batch-operation.d.ts +11 -2
- package/dist/index.d.ts +3 -0
- package/dist/message-subscriptions.d.ts +375 -0
- package/dist/message-subscriptions.js +113 -0
- package/dist/process-instance.d.ts +12 -0
- package/package.json +1 -1
|
@@ -4,7 +4,10 @@ const batchOperationTypeSchema = z.enum([
|
|
|
4
4
|
"CANCEL_PROCESS_INSTANCE",
|
|
5
5
|
"RESOLVE_INCIDENT",
|
|
6
6
|
"MIGRATE_PROCESS_INSTANCE",
|
|
7
|
-
"MODIFY_PROCESS_INSTANCE"
|
|
7
|
+
"MODIFY_PROCESS_INSTANCE",
|
|
8
|
+
"DELETE_DECISION_DEFINITION",
|
|
9
|
+
"DELETE_PROCESS_DEFINITION",
|
|
10
|
+
"DELETE_PROCESS_INSTANCE"
|
|
8
11
|
]);
|
|
9
12
|
const batchOperationStateSchema = z.enum([
|
|
10
13
|
"CREATED",
|
package/dist/8.8/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { getIncidentResponseBodySchema, incidentErrorTypeSchema, incidentSchema,
|
|
|
14
14
|
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
|
+
import { correlatedMessageSubscriptionSchema, messageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema } from "../message-subscriptions.js";
|
|
17
18
|
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, modifyProcessInstanceRequestBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, sequenceFlowSchema } from "./process-instance.js";
|
|
18
19
|
import { assignTaskRequestBodySchema, completeTaskRequestBodySchema, formSchema, queryUserTasksRequestBodySchema, queryUserTasksResponseBodySchema, queryVariablesByUserTaskRequestBodySchema, queryVariablesByUserTaskResponseBodySchema, unassignTaskRequestBodySchema, updateUserTaskRequestBodySchema, userTaskSchema } from "./user-task.js";
|
|
19
20
|
import { queryVariablesRequestBodySchema, queryVariablesResponseBodySchema, variableSchema } from "./variable.js";
|
|
@@ -52,6 +53,7 @@ export {
|
|
|
52
53
|
completeTaskRequestBodySchema,
|
|
53
54
|
correlateMessageRequestBodySchema,
|
|
54
55
|
correlateMessageResponseBodySchema,
|
|
56
|
+
correlatedMessageSubscriptionSchema,
|
|
55
57
|
createAuthorizationRequestBodySchema,
|
|
56
58
|
createDeploymentResponseBodySchema,
|
|
57
59
|
createDocumentsResponseBodySchema,
|
|
@@ -125,6 +127,7 @@ export {
|
|
|
125
127
|
listenerEventTypeSchema,
|
|
126
128
|
mappingRuleSchema,
|
|
127
129
|
matchedDecisionRuleItemSchema,
|
|
130
|
+
messageSubscriptionSchema,
|
|
128
131
|
modifyProcessInstanceRequestBodySchema,
|
|
129
132
|
ownerTypeSchema,
|
|
130
133
|
partitionHealthSchema,
|
|
@@ -155,6 +158,8 @@ export {
|
|
|
155
158
|
queryClientsByRoleResponseBodySchema,
|
|
156
159
|
queryClientsByTenantRequestBodySchema,
|
|
157
160
|
queryClientsByTenantResponseBodySchema,
|
|
161
|
+
queryCorrelatedMessageSubscriptionRequestBodySchema,
|
|
162
|
+
queryCorrelatedMessageSubscriptionsResponseBodySchema,
|
|
158
163
|
queryDecisionDefinitionsRequestBodySchema,
|
|
159
164
|
queryDecisionDefinitionsResponseBodySchema,
|
|
160
165
|
queryDecisionInstancesRequestBodySchema,
|
|
@@ -181,6 +186,8 @@ export {
|
|
|
181
186
|
queryMappingRulesByTenantResponseBodySchema,
|
|
182
187
|
queryMappingRulesRequestBodySchema,
|
|
183
188
|
queryMappingRulesResponseBodySchema,
|
|
189
|
+
queryMessageSubscriptionRequestBodySchema,
|
|
190
|
+
queryMessageSubscriptionsResponseBodySchema,
|
|
184
191
|
queryPageSchema,
|
|
185
192
|
queryProcessDefinitionsRequestBodySchema,
|
|
186
193
|
queryProcessDefinitionsResponseBodySchema,
|
package/dist/8.8.js
CHANGED
|
@@ -30,6 +30,8 @@ import { queryMappingRules, getMappingRule, deleteMappingRule, updateMappingRule
|
|
|
30
30
|
import { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, mappingRuleSchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema } from "./8.8/mapping-rule.js";
|
|
31
31
|
import { correlateMessage, publishMessage } from "./8.8/message.js";
|
|
32
32
|
import { correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, publishMessageRequestBodySchema, publishMessageResponseBodySchema } from "./8.8/message.js";
|
|
33
|
+
import { queryCorrelatedMessageSubscriptions, queryMessageSubscriptions } from "./message-subscriptions.js";
|
|
34
|
+
import { correlatedMessageSubscriptionSchema, messageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema } from "./message-subscriptions.js";
|
|
33
35
|
import { modifyProcessInstance, createModificationBatchOperation, createMigrationBatchOperation, createCancellationBatchOperation, createIncidentResolutionBatchOperation, getProcessInstanceSequenceFlows, getProcessInstanceStatistics, getProcessInstanceCallHierarchy, queryProcessInstanceIncidents, cancelProcessInstance, queryProcessInstances, getProcessInstance, createProcessInstance } from "./8.8/process-instance.js";
|
|
34
36
|
import { callHierarchySchema, cancelProcessInstanceRequestBodySchema, createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, modifyProcessInstanceRequestBodySchema, queryProcessInstanceIncidentsRequestBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, sequenceFlowSchema } from "./8.8/process-instance.js";
|
|
35
37
|
import { updateUserTask, queryVariablesByUserTask, completeTask, unassignTask, assignTask, getTask, getUserTaskForm, queryUserTasks, getUserTask } from "./8.8/user-task.js";
|
|
@@ -116,6 +118,8 @@ const endpoints = {
|
|
|
116
118
|
queryMappingRules,
|
|
117
119
|
publishMessage,
|
|
118
120
|
correlateMessage,
|
|
121
|
+
queryMessageSubscriptions,
|
|
122
|
+
queryCorrelatedMessageSubscriptions,
|
|
119
123
|
getUserTask,
|
|
120
124
|
queryUserTasks,
|
|
121
125
|
getUserTaskForm,
|
|
@@ -223,6 +227,7 @@ export {
|
|
|
223
227
|
completeTaskRequestBodySchema,
|
|
224
228
|
correlateMessageRequestBodySchema,
|
|
225
229
|
correlateMessageResponseBodySchema,
|
|
230
|
+
correlatedMessageSubscriptionSchema,
|
|
226
231
|
createAuthorizationRequestBodySchema,
|
|
227
232
|
createDeploymentResponseBodySchema,
|
|
228
233
|
createDocumentsResponseBodySchema,
|
|
@@ -296,6 +301,7 @@ export {
|
|
|
296
301
|
listenerEventTypeSchema,
|
|
297
302
|
mappingRuleSchema,
|
|
298
303
|
matchedDecisionRuleItemSchema,
|
|
304
|
+
messageSubscriptionSchema,
|
|
299
305
|
modifyProcessInstanceRequestBodySchema,
|
|
300
306
|
ownerTypeSchema,
|
|
301
307
|
partitionHealthSchema,
|
|
@@ -326,6 +332,8 @@ export {
|
|
|
326
332
|
queryClientsByRoleResponseBodySchema,
|
|
327
333
|
queryClientsByTenantRequestBodySchema,
|
|
328
334
|
queryClientsByTenantResponseBodySchema,
|
|
335
|
+
queryCorrelatedMessageSubscriptionRequestBodySchema,
|
|
336
|
+
queryCorrelatedMessageSubscriptionsResponseBodySchema,
|
|
329
337
|
queryDecisionDefinitionsRequestBodySchema,
|
|
330
338
|
queryDecisionDefinitionsResponseBodySchema,
|
|
331
339
|
queryDecisionInstancesRequestBodySchema,
|
|
@@ -352,6 +360,8 @@ export {
|
|
|
352
360
|
queryMappingRulesByTenantResponseBodySchema,
|
|
353
361
|
queryMappingRulesRequestBodySchema,
|
|
354
362
|
queryMappingRulesResponseBodySchema,
|
|
363
|
+
queryMessageSubscriptionRequestBodySchema,
|
|
364
|
+
queryMessageSubscriptionsResponseBodySchema,
|
|
355
365
|
queryPageSchema,
|
|
356
366
|
queryProcessDefinitionsRequestBodySchema,
|
|
357
367
|
queryProcessDefinitionsResponseBodySchema,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Endpoint } from './common';
|
|
3
3
|
declare const batchOperationTypeSchema: z.ZodEnum<{
|
|
4
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
4
5
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
5
6
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
6
7
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
7
8
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
9
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
10
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
8
11
|
}>;
|
|
9
12
|
type BatchOperationType = z.infer<typeof batchOperationTypeSchema>;
|
|
10
13
|
declare const batchOperationStateSchema: z.ZodEnum<{
|
|
@@ -38,10 +41,13 @@ declare const batchOperationSchema: z.ZodObject<{
|
|
|
38
41
|
FAILED: "FAILED";
|
|
39
42
|
}>;
|
|
40
43
|
batchOperationType: z.ZodEnum<{
|
|
44
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
41
45
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
42
46
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
43
47
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
44
48
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
49
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
50
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
45
51
|
}>;
|
|
46
52
|
startDate: z.ZodOptional<z.ZodString>;
|
|
47
53
|
endDate: z.ZodOptional<z.ZodString>;
|
|
@@ -87,10 +93,13 @@ declare const queryBatchOperationsRequestBodySchema: z.ZodObject<{
|
|
|
87
93
|
filter: z.ZodOptional<z.ZodObject<{
|
|
88
94
|
batchOperationKey: z.ZodOptional<z.ZodString>;
|
|
89
95
|
operationType: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
90
97
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
91
98
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
92
99
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
93
100
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
101
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
102
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
94
103
|
}>>;
|
|
95
104
|
state: z.ZodOptional<z.ZodEnum<{
|
|
96
105
|
CREATED: "CREATED";
|
|
@@ -108,7 +117,7 @@ type QueryBatchOperationsRequestBody = z.infer<typeof queryBatchOperationsReques
|
|
|
108
117
|
declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
109
118
|
batchOperationKey: string;
|
|
110
119
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
|
|
111
|
-
batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
|
|
120
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION";
|
|
112
121
|
operationsTotalCount: number;
|
|
113
122
|
operationsFailedCount: number;
|
|
114
123
|
operationsCompletedCount: number;
|
|
@@ -117,7 +126,7 @@ declare const queryBatchOperationsResponseBodySchema: z.ZodType<import('./common
|
|
|
117
126
|
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
118
127
|
batchOperationKey: string;
|
|
119
128
|
state: "CREATED" | "ACTIVE" | "SUSPENDED" | "COMPLETED" | "PARTIALLY_COMPLETED" | "CANCELED" | "INCOMPLETED" | "FAILED";
|
|
120
|
-
batchOperationType: "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE";
|
|
129
|
+
batchOperationType: "DELETE_PROCESS_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "RESOLVE_INCIDENT" | "MIGRATE_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "DELETE_DECISION_DEFINITION" | "DELETE_PROCESS_DEFINITION";
|
|
121
130
|
operationsTotalCount: number;
|
|
122
131
|
operationsFailedCount: number;
|
|
123
132
|
operationsCompletedCount: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -264,6 +264,8 @@ declare const endpoints: {
|
|
|
264
264
|
readonly queryMappingRules: import('./common').Endpoint<undefined>;
|
|
265
265
|
readonly publishMessage: import('./common').Endpoint<undefined>;
|
|
266
266
|
readonly correlateMessage: import('./common').Endpoint<undefined>;
|
|
267
|
+
readonly queryMessageSubscriptions: import('./common').Endpoint<undefined>;
|
|
268
|
+
readonly queryCorrelatedMessageSubscriptions: import('./common').Endpoint<undefined>;
|
|
267
269
|
readonly getUserTask: import('./common').Endpoint<Pick<{
|
|
268
270
|
state: "CREATED" | "COMPLETED" | "CANCELED" | "FAILED" | "ASSIGNING" | "UPDATING" | "COMPLETING" | "CANCELING";
|
|
269
271
|
processDefinitionVersion: number;
|
|
@@ -1010,6 +1012,7 @@ export { getIncidentResponseBodySchema, queryIncidentsRequestBodySchema, queryIn
|
|
|
1010
1012
|
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';
|
|
1011
1013
|
export { licenseSchema, type License } from './license';
|
|
1012
1014
|
export { publishMessageRequestBodySchema, publishMessageResponseBodySchema, correlateMessageRequestBodySchema, correlateMessageResponseBodySchema, type PublishMessageRequestBody, type PublishMessageResponseBody, type CorrelateMessageRequestBody, type CorrelateMessageResponseBody, } from './message';
|
|
1015
|
+
export { messageSubscriptionSchema, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema, correlatedMessageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, type MessageSubscriptionState, type MessageSubscription, type QueryMessageSubscriptionsRequestBody, type QueryMessageSubscriptionsResponseBody, type CorrelatedMessageSubscription, type QueryCorrelatedMessageSubscriptionsRequestBody, type QueryCorrelatedMessageSubscriptionsResponseBody, } from './message-subscriptions';
|
|
1013
1016
|
export { createMappingRuleRequestBodySchema, createMappingRuleResponseBodySchema, updateMappingRuleRequestBodySchema, updateMappingRuleResponseBodySchema, queryMappingRulesRequestBodySchema, queryMappingRulesResponseBodySchema, mappingRuleSchema, type CreateMappingRuleRequestBody, type CreateMappingRuleResponseBody, type UpdateMappingRuleRequestBody, type UpdateMappingRuleResponseBody, type QueryMappingRulesRequestBody, type QueryMappingRulesResponseBody, type MappingRule, } from './mapping-rule';
|
|
1014
1017
|
export { createProcessInstanceRequestBodySchema, createProcessInstanceResponseBodySchema, modifyProcessInstanceRequestBodySchema, queryProcessInstancesRequestBodySchema, queryProcessInstancesResponseBodySchema, cancelProcessInstanceRequestBodySchema, queryProcessInstanceIncidentsRequestBodySchema, getProcessInstanceCallHierarchyResponseBodySchema, getProcessInstanceStatisticsResponseBodySchema, getProcessInstanceSequenceFlowsResponseBodySchema, processInstanceStateSchema, processInstanceSchema, sequenceFlowSchema, callHierarchySchema, type CreateProcessInstanceRequestBody, type CreateProcessInstanceResponseBody, type QueryProcessInstancesRequestBody, type QueryProcessInstancesResponseBody, type CancelProcessInstanceRequestBody, type QueryProcessInstanceIncidentsRequestBody, type CallHierarchy, type GetProcessInstanceCallHierarchyResponseBody, type SequenceFlow, type GetProcessInstanceSequenceFlowsResponseBody, type ProcessInstanceState, type StatisticName, type ProcessInstance, type GetProcessInstanceStatisticsResponseBody, type CreateIncidentResolutionBatchOperationRequestBody, type CreateIncidentResolutionBatchOperationResponseBody, type CreateCancellationBatchOperationRequestBody, type CreateCancellationBatchOperationResponseBody, type CreateMigrationBatchOperationRequestBody, type CreateMigrationBatchOperationResponseBody, type CreateModificationBatchOperationRequestBody, type CreateModificationBatchOperationResponseBody, type ModifyProcessInstanceRequestBody, } from './process-instance';
|
|
1015
1018
|
export { userTaskSchema, queryUserTasksResponseBodySchema, queryUserTasksRequestBodySchema, formSchema, assignTaskRequestBodySchema, unassignTaskRequestBodySchema, completeTaskRequestBodySchema, queryVariablesByUserTaskRequestBodySchema, queryVariablesByUserTaskResponseBodySchema, updateUserTaskRequestBodySchema, type UserTask, type QueryUserTasksResponseBody, type QueryUserTasksRequestBody, type Form, type AssignTaskRequestBody, type UnassignTaskRequestBody, type CompleteTaskRequestBody, type QueryVariablesByUserTaskRequestBody, type QueryVariablesByUserTaskResponseBody, type UpdateUserTaskRequestBody, } from './user-task';
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Endpoint } from './common';
|
|
3
|
+
declare const messageSubscriptionStateSchema: z.ZodEnum<{
|
|
4
|
+
CREATED: "CREATED";
|
|
5
|
+
MIGRATED: "MIGRATED";
|
|
6
|
+
CORRELATED: "CORRELATED";
|
|
7
|
+
DELETED: "DELETED";
|
|
8
|
+
}>;
|
|
9
|
+
type MessageSubscriptionState = z.infer<typeof messageSubscriptionStateSchema>;
|
|
10
|
+
declare const messageSubscriptionSchema: z.ZodObject<{
|
|
11
|
+
messageSubscriptionKey: z.ZodString;
|
|
12
|
+
processDefinitionId: z.ZodString;
|
|
13
|
+
processDefinitionKey: z.ZodString;
|
|
14
|
+
processInstanceKey: z.ZodString;
|
|
15
|
+
elementId: z.ZodString;
|
|
16
|
+
elementInstanceKey: z.ZodString;
|
|
17
|
+
messageSubscriptionState: z.ZodEnum<{
|
|
18
|
+
CREATED: "CREATED";
|
|
19
|
+
MIGRATED: "MIGRATED";
|
|
20
|
+
CORRELATED: "CORRELATED";
|
|
21
|
+
DELETED: "DELETED";
|
|
22
|
+
}>;
|
|
23
|
+
lastUpdatedDate: z.ZodString;
|
|
24
|
+
messageName: z.ZodString;
|
|
25
|
+
correlationKey: z.ZodString;
|
|
26
|
+
tenantId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type MessageSubscription = z.infer<typeof messageSubscriptionSchema>;
|
|
29
|
+
declare const queryMessageSubscriptionRequestBodySchema: z.ZodObject<{
|
|
30
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
field: z.ZodEnum<{
|
|
32
|
+
tenantId: "tenantId";
|
|
33
|
+
processDefinitionId: "processDefinitionId";
|
|
34
|
+
elementId: "elementId";
|
|
35
|
+
processInstanceKey: "processInstanceKey";
|
|
36
|
+
elementInstanceKey: "elementInstanceKey";
|
|
37
|
+
correlationKey: "correlationKey";
|
|
38
|
+
messageSubscriptionState: "messageSubscriptionState";
|
|
39
|
+
messageSubscriptionKey: "messageSubscriptionKey";
|
|
40
|
+
lastUpdatedDate: "lastUpdatedDate";
|
|
41
|
+
messageName: "messageName";
|
|
42
|
+
}>;
|
|
43
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
asc: "asc";
|
|
45
|
+
desc: "desc";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
messageSubscriptionState: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
56
|
+
CREATED: "CREATED";
|
|
57
|
+
MIGRATED: "MIGRATED";
|
|
58
|
+
CORRELATED: "CORRELATED";
|
|
59
|
+
DELETED: "DELETED";
|
|
60
|
+
}>, z.ZodObject<{
|
|
61
|
+
$eq: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
CREATED: "CREATED";
|
|
63
|
+
MIGRATED: "MIGRATED";
|
|
64
|
+
CORRELATED: "CORRELATED";
|
|
65
|
+
DELETED: "DELETED";
|
|
66
|
+
}>>;
|
|
67
|
+
$neq: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
CREATED: "CREATED";
|
|
69
|
+
MIGRATED: "MIGRATED";
|
|
70
|
+
CORRELATED: "CORRELATED";
|
|
71
|
+
DELETED: "DELETED";
|
|
72
|
+
}>>;
|
|
73
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
75
|
+
CREATED: "CREATED";
|
|
76
|
+
MIGRATED: "MIGRATED";
|
|
77
|
+
CORRELATED: "CORRELATED";
|
|
78
|
+
DELETED: "DELETED";
|
|
79
|
+
}>>>;
|
|
80
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
81
|
+
CREATED: "CREATED";
|
|
82
|
+
MIGRATED: "MIGRATED";
|
|
83
|
+
CORRELATED: "CORRELATED";
|
|
84
|
+
DELETED: "DELETED";
|
|
85
|
+
}>>>;
|
|
86
|
+
}, z.core.$strip>]>>;
|
|
87
|
+
messageSubscriptionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
88
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
89
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
90
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
92
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
95
|
+
processDefinitionId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
96
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
97
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
98
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
103
|
+
lastUpdatedDate: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
104
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
105
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
106
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
108
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
109
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
110
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
111
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>]>>;
|
|
113
|
+
processInstanceKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
114
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
115
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
116
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
121
|
+
elementId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
122
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
123
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
124
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
129
|
+
elementInstanceKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
130
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
131
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
132
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
137
|
+
messageName: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
138
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
139
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
140
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
143
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
145
|
+
correlationKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
146
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
147
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
148
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
151
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
153
|
+
tenantId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
154
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
155
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
156
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
159
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
type QueryMessageSubscriptionsRequestBody = z.infer<typeof queryMessageSubscriptionRequestBodySchema>;
|
|
164
|
+
declare const queryMessageSubscriptionsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
165
|
+
messageSubscriptionKey: string;
|
|
166
|
+
processDefinitionId: string;
|
|
167
|
+
processDefinitionKey: string;
|
|
168
|
+
processInstanceKey: string;
|
|
169
|
+
elementId: string;
|
|
170
|
+
elementInstanceKey: string;
|
|
171
|
+
messageSubscriptionState: "CREATED" | "MIGRATED" | "CORRELATED" | "DELETED";
|
|
172
|
+
lastUpdatedDate: string;
|
|
173
|
+
messageName: string;
|
|
174
|
+
correlationKey: string;
|
|
175
|
+
tenantId: string;
|
|
176
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
177
|
+
messageSubscriptionKey: string;
|
|
178
|
+
processDefinitionId: string;
|
|
179
|
+
processDefinitionKey: string;
|
|
180
|
+
processInstanceKey: string;
|
|
181
|
+
elementId: string;
|
|
182
|
+
elementInstanceKey: string;
|
|
183
|
+
messageSubscriptionState: "CREATED" | "MIGRATED" | "CORRELATED" | "DELETED";
|
|
184
|
+
lastUpdatedDate: string;
|
|
185
|
+
messageName: string;
|
|
186
|
+
correlationKey: string;
|
|
187
|
+
tenantId: string;
|
|
188
|
+
}>, unknown>>;
|
|
189
|
+
type QueryMessageSubscriptionsResponseBody = z.infer<typeof queryMessageSubscriptionsResponseBodySchema>;
|
|
190
|
+
declare const queryMessageSubscriptions: Endpoint;
|
|
191
|
+
declare const correlatedMessageSubscriptionSchema: z.ZodObject<{
|
|
192
|
+
subscriptionKey: z.ZodString;
|
|
193
|
+
processDefinitionId: z.ZodString;
|
|
194
|
+
processDefinitionKey: z.ZodString;
|
|
195
|
+
processInstanceKey: z.ZodString;
|
|
196
|
+
elementId: z.ZodString;
|
|
197
|
+
elementInstanceKey: z.ZodString;
|
|
198
|
+
messageSubscriptionState: z.ZodEnum<{
|
|
199
|
+
CREATED: "CREATED";
|
|
200
|
+
MIGRATED: "MIGRATED";
|
|
201
|
+
CORRELATED: "CORRELATED";
|
|
202
|
+
DELETED: "DELETED";
|
|
203
|
+
}>;
|
|
204
|
+
correlationTime: z.ZodString;
|
|
205
|
+
messageName: z.ZodString;
|
|
206
|
+
correlationKey: z.ZodString;
|
|
207
|
+
messageKey: z.ZodString;
|
|
208
|
+
partitionId: z.ZodNumber;
|
|
209
|
+
tenantId: z.ZodString;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
type CorrelatedMessageSubscription = z.infer<typeof correlatedMessageSubscriptionSchema>;
|
|
212
|
+
declare const queryCorrelatedMessageSubscriptionRequestBodySchema: z.ZodObject<{
|
|
213
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
+
field: z.ZodEnum<{
|
|
215
|
+
tenantId: "tenantId";
|
|
216
|
+
processDefinitionKey: "processDefinitionKey";
|
|
217
|
+
processDefinitionId: "processDefinitionId";
|
|
218
|
+
elementId: "elementId";
|
|
219
|
+
processInstanceKey: "processInstanceKey";
|
|
220
|
+
partitionId: "partitionId";
|
|
221
|
+
elementInstanceKey: "elementInstanceKey";
|
|
222
|
+
correlationKey: "correlationKey";
|
|
223
|
+
messageKey: "messageKey";
|
|
224
|
+
messageName: "messageName";
|
|
225
|
+
subscriptionKey: "subscriptionKey";
|
|
226
|
+
correlationTime: "correlationTime";
|
|
227
|
+
}>;
|
|
228
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
asc: "asc";
|
|
230
|
+
desc: "desc";
|
|
231
|
+
}>>;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
from: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
before: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
237
|
+
after: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
239
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
correlationKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
241
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
242
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
243
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
246
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
248
|
+
correlationTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
249
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
250
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
251
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
$gt: z.ZodOptional<z.ZodString>;
|
|
253
|
+
$gte: z.ZodOptional<z.ZodString>;
|
|
254
|
+
$lt: z.ZodOptional<z.ZodString>;
|
|
255
|
+
$lte: z.ZodOptional<z.ZodString>;
|
|
256
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
}, z.core.$strip>]>>;
|
|
258
|
+
elementId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
259
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
260
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
261
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
263
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
266
|
+
elementInstanceKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
267
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
268
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
269
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
271
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
273
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
274
|
+
messageKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
275
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
276
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
277
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
279
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
280
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
281
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
282
|
+
messageName: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
283
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
284
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
285
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
290
|
+
partitionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
291
|
+
$eq: z.ZodOptional<z.ZodNumber>;
|
|
292
|
+
$neq: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
$gt: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
$gte: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
$lt: z.ZodOptional<z.ZodNumber>;
|
|
297
|
+
$lte: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
299
|
+
}, z.core.$strip>]>>;
|
|
300
|
+
processDefinitionId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
301
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
302
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
303
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
308
|
+
processDefinitionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
309
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
310
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
311
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
313
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
314
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
316
|
+
processInstanceKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
317
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
318
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
319
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
323
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
324
|
+
subscriptionKey: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
325
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
326
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
327
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
330
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
332
|
+
tenantId: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
333
|
+
$eq: z.ZodOptional<z.ZodString>;
|
|
334
|
+
$neq: z.ZodOptional<z.ZodString>;
|
|
335
|
+
$exists: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
$in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
+
$notIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
338
|
+
$like: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$strip>, z.ZodString]>>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
type QueryCorrelatedMessageSubscriptionsRequestBody = z.infer<typeof queryCorrelatedMessageSubscriptionRequestBodySchema>;
|
|
343
|
+
declare const queryCorrelatedMessageSubscriptionsResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
|
|
344
|
+
subscriptionKey: string;
|
|
345
|
+
processDefinitionId: string;
|
|
346
|
+
processDefinitionKey: string;
|
|
347
|
+
processInstanceKey: string;
|
|
348
|
+
elementId: string;
|
|
349
|
+
elementInstanceKey: string;
|
|
350
|
+
messageSubscriptionState: "CREATED" | "MIGRATED" | "CORRELATED" | "DELETED";
|
|
351
|
+
correlationTime: string;
|
|
352
|
+
messageName: string;
|
|
353
|
+
correlationKey: string;
|
|
354
|
+
messageKey: string;
|
|
355
|
+
partitionId: number;
|
|
356
|
+
tenantId: string;
|
|
357
|
+
}>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
|
|
358
|
+
subscriptionKey: string;
|
|
359
|
+
processDefinitionId: string;
|
|
360
|
+
processDefinitionKey: string;
|
|
361
|
+
processInstanceKey: string;
|
|
362
|
+
elementId: string;
|
|
363
|
+
elementInstanceKey: string;
|
|
364
|
+
messageSubscriptionState: "CREATED" | "MIGRATED" | "CORRELATED" | "DELETED";
|
|
365
|
+
correlationTime: string;
|
|
366
|
+
messageName: string;
|
|
367
|
+
correlationKey: string;
|
|
368
|
+
messageKey: string;
|
|
369
|
+
partitionId: number;
|
|
370
|
+
tenantId: string;
|
|
371
|
+
}>, unknown>>;
|
|
372
|
+
type QueryCorrelatedMessageSubscriptionsResponseBody = z.infer<typeof queryCorrelatedMessageSubscriptionsResponseBodySchema>;
|
|
373
|
+
declare const queryCorrelatedMessageSubscriptions: Endpoint;
|
|
374
|
+
export { queryMessageSubscriptions, queryMessageSubscriptionRequestBodySchema, queryMessageSubscriptionsResponseBodySchema, messageSubscriptionSchema, correlatedMessageSubscriptionSchema, queryCorrelatedMessageSubscriptionRequestBodySchema, queryCorrelatedMessageSubscriptionsResponseBodySchema, queryCorrelatedMessageSubscriptions, };
|
|
375
|
+
export type { MessageSubscriptionState, MessageSubscription, QueryMessageSubscriptionsRequestBody, QueryMessageSubscriptionsResponseBody, CorrelatedMessageSubscription, QueryCorrelatedMessageSubscriptionsRequestBody, QueryCorrelatedMessageSubscriptionsResponseBody, };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { getQueryRequestBodySchema, getQueryResponseBodySchema, API_VERSION, advancedStringFilterSchema, advancedDateTimeFilterSchema, getEnumFilterSchema, advancedIntegerFilterSchema } from "./common.js";
|
|
3
|
+
const messageSubscriptionStateSchema = z.enum(["CORRELATED", "CREATED", "DELETED", "MIGRATED"]);
|
|
4
|
+
const messageSubscriptionSchema = z.object({
|
|
5
|
+
messageSubscriptionKey: z.string(),
|
|
6
|
+
processDefinitionId: z.string(),
|
|
7
|
+
processDefinitionKey: z.string(),
|
|
8
|
+
processInstanceKey: z.string(),
|
|
9
|
+
elementId: z.string(),
|
|
10
|
+
elementInstanceKey: z.string(),
|
|
11
|
+
messageSubscriptionState: messageSubscriptionStateSchema,
|
|
12
|
+
lastUpdatedDate: z.string(),
|
|
13
|
+
messageName: z.string(),
|
|
14
|
+
correlationKey: z.string(),
|
|
15
|
+
tenantId: z.string()
|
|
16
|
+
});
|
|
17
|
+
const queryMessageSubscriptionRequestBodySchema = getQueryRequestBodySchema({
|
|
18
|
+
sortFields: [
|
|
19
|
+
"messageSubscriptionKey",
|
|
20
|
+
"processDefinitionId",
|
|
21
|
+
"processInstanceKey",
|
|
22
|
+
"elementId",
|
|
23
|
+
"elementInstanceKey",
|
|
24
|
+
"messageSubscriptionState",
|
|
25
|
+
"lastUpdatedDate",
|
|
26
|
+
"messageName",
|
|
27
|
+
"correlationKey",
|
|
28
|
+
"tenantId"
|
|
29
|
+
],
|
|
30
|
+
filter: z.object({
|
|
31
|
+
messageSubscriptionState: getEnumFilterSchema(messageSubscriptionStateSchema),
|
|
32
|
+
messageSubscriptionKey: advancedStringFilterSchema,
|
|
33
|
+
processDefinitionId: advancedStringFilterSchema,
|
|
34
|
+
lastUpdatedDate: advancedDateTimeFilterSchema,
|
|
35
|
+
processInstanceKey: advancedStringFilterSchema,
|
|
36
|
+
elementId: advancedStringFilterSchema,
|
|
37
|
+
elementInstanceKey: advancedStringFilterSchema,
|
|
38
|
+
messageName: advancedStringFilterSchema,
|
|
39
|
+
correlationKey: advancedStringFilterSchema,
|
|
40
|
+
tenantId: advancedStringFilterSchema
|
|
41
|
+
}).partial()
|
|
42
|
+
});
|
|
43
|
+
const queryMessageSubscriptionsResponseBodySchema = getQueryResponseBodySchema(messageSubscriptionSchema);
|
|
44
|
+
const queryMessageSubscriptions = {
|
|
45
|
+
method: "POST",
|
|
46
|
+
getUrl() {
|
|
47
|
+
return `/${API_VERSION}/message-subscriptions/search`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const correlatedMessageSubscriptionSchema = z.object({
|
|
51
|
+
subscriptionKey: z.string(),
|
|
52
|
+
processDefinitionId: z.string(),
|
|
53
|
+
processDefinitionKey: z.string(),
|
|
54
|
+
processInstanceKey: z.string(),
|
|
55
|
+
elementId: z.string(),
|
|
56
|
+
elementInstanceKey: z.string(),
|
|
57
|
+
messageSubscriptionState: messageSubscriptionStateSchema,
|
|
58
|
+
correlationTime: z.string(),
|
|
59
|
+
messageName: z.string(),
|
|
60
|
+
correlationKey: z.string(),
|
|
61
|
+
messageKey: z.string(),
|
|
62
|
+
partitionId: z.number().int(),
|
|
63
|
+
tenantId: z.string()
|
|
64
|
+
});
|
|
65
|
+
const queryCorrelatedMessageSubscriptionRequestBodySchema = getQueryRequestBodySchema({
|
|
66
|
+
sortFields: [
|
|
67
|
+
"correlationKey",
|
|
68
|
+
"correlationTime",
|
|
69
|
+
"elementId",
|
|
70
|
+
"elementInstanceKey",
|
|
71
|
+
"messageKey",
|
|
72
|
+
"messageName",
|
|
73
|
+
"partitionId",
|
|
74
|
+
"processDefinitionId",
|
|
75
|
+
"processDefinitionKey",
|
|
76
|
+
"processInstanceKey",
|
|
77
|
+
"subscriptionKey",
|
|
78
|
+
"tenantId"
|
|
79
|
+
],
|
|
80
|
+
filter: z.object({
|
|
81
|
+
correlationKey: advancedStringFilterSchema,
|
|
82
|
+
correlationTime: advancedDateTimeFilterSchema,
|
|
83
|
+
elementId: advancedStringFilterSchema,
|
|
84
|
+
elementInstanceKey: advancedStringFilterSchema,
|
|
85
|
+
messageKey: advancedStringFilterSchema,
|
|
86
|
+
messageName: advancedStringFilterSchema,
|
|
87
|
+
partitionId: advancedIntegerFilterSchema,
|
|
88
|
+
processDefinitionId: advancedStringFilterSchema,
|
|
89
|
+
processDefinitionKey: advancedStringFilterSchema,
|
|
90
|
+
processInstanceKey: advancedStringFilterSchema,
|
|
91
|
+
subscriptionKey: advancedStringFilterSchema,
|
|
92
|
+
tenantId: advancedStringFilterSchema
|
|
93
|
+
}).partial()
|
|
94
|
+
});
|
|
95
|
+
const queryCorrelatedMessageSubscriptionsResponseBodySchema = getQueryResponseBodySchema(
|
|
96
|
+
correlatedMessageSubscriptionSchema
|
|
97
|
+
);
|
|
98
|
+
const queryCorrelatedMessageSubscriptions = {
|
|
99
|
+
method: "POST",
|
|
100
|
+
getUrl() {
|
|
101
|
+
return `/${API_VERSION}/correlated-message-subscriptions/search`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
correlatedMessageSubscriptionSchema,
|
|
106
|
+
messageSubscriptionSchema,
|
|
107
|
+
queryCorrelatedMessageSubscriptionRequestBodySchema,
|
|
108
|
+
queryCorrelatedMessageSubscriptions,
|
|
109
|
+
queryCorrelatedMessageSubscriptionsResponseBodySchema,
|
|
110
|
+
queryMessageSubscriptionRequestBodySchema,
|
|
111
|
+
queryMessageSubscriptions,
|
|
112
|
+
queryMessageSubscriptionsResponseBodySchema
|
|
113
|
+
};
|
|
@@ -791,10 +791,13 @@ type CreateIncidentResolutionBatchOperationRequestBody = z.infer<typeof createIn
|
|
|
791
791
|
declare const createIncidentResolutionBatchOperationResponseBodySchema: z.ZodObject<{
|
|
792
792
|
batchOperationKey: z.ZodString;
|
|
793
793
|
batchOperationType: z.ZodEnum<{
|
|
794
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
794
795
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
795
796
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
796
797
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
797
798
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
799
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
800
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
798
801
|
}>;
|
|
799
802
|
}, z.core.$strip>;
|
|
800
803
|
type CreateIncidentResolutionBatchOperationResponseBody = z.infer<typeof createIncidentResolutionBatchOperationResponseBodySchema>;
|
|
@@ -1097,10 +1100,13 @@ type CreateCancellationBatchOperationRequestBody = z.infer<typeof createCancella
|
|
|
1097
1100
|
declare const createCancellationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1098
1101
|
batchOperationKey: z.ZodString;
|
|
1099
1102
|
batchOperationType: z.ZodEnum<{
|
|
1103
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1100
1104
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1101
1105
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1102
1106
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1103
1107
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1108
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1109
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1104
1110
|
}>;
|
|
1105
1111
|
}, z.core.$strip>;
|
|
1106
1112
|
type CreateCancellationBatchOperationResponseBody = z.infer<typeof createCancellationBatchOperationResponseBodySchema>;
|
|
@@ -1410,10 +1416,13 @@ type CreateMigrationBatchOperationRequestBody = z.infer<typeof createMigrationBa
|
|
|
1410
1416
|
declare const createMigrationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1411
1417
|
batchOperationKey: z.ZodString;
|
|
1412
1418
|
batchOperationType: z.ZodEnum<{
|
|
1419
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1413
1420
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1414
1421
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1415
1422
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1416
1423
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1424
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1425
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1417
1426
|
}>;
|
|
1418
1427
|
}, z.core.$strip>;
|
|
1419
1428
|
type CreateMigrationBatchOperationResponseBody = z.infer<typeof createMigrationBatchOperationResponseBodySchema>;
|
|
@@ -1720,10 +1729,13 @@ type CreateModificationBatchOperationRequestBody = z.infer<typeof createModifica
|
|
|
1720
1729
|
declare const createModificationBatchOperationResponseBodySchema: z.ZodObject<{
|
|
1721
1730
|
batchOperationKey: z.ZodString;
|
|
1722
1731
|
batchOperationType: z.ZodEnum<{
|
|
1732
|
+
DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
|
|
1723
1733
|
CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
|
|
1724
1734
|
RESOLVE_INCIDENT: "RESOLVE_INCIDENT";
|
|
1725
1735
|
MIGRATE_PROCESS_INSTANCE: "MIGRATE_PROCESS_INSTANCE";
|
|
1726
1736
|
MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
|
|
1737
|
+
DELETE_DECISION_DEFINITION: "DELETE_DECISION_DEFINITION";
|
|
1738
|
+
DELETE_PROCESS_DEFINITION: "DELETE_PROCESS_DEFINITION";
|
|
1727
1739
|
}>;
|
|
1728
1740
|
}, z.core.$strip>;
|
|
1729
1741
|
type CreateModificationBatchOperationResponseBody = z.infer<typeof createModificationBatchOperationResponseBodySchema>;
|
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.6",
|
|
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>",
|