@camunda8/sdk 8.7.28 → 8.7.30
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/CHANGELOG.md +23 -0
- package/README.md +9 -1
- package/dist/admin/index.js +17 -7
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/lib/AdminApiClient.js +4 -1
- package/dist/admin/lib/AdminApiClient.js.map +1 -1
- package/dist/c8/index.js +4 -1
- package/dist/c8/index.js.map +1 -1
- package/dist/c8/lib/C8Dto.d.ts +6 -128
- package/dist/c8/lib/C8Dto.js +146 -3
- package/dist/c8/lib/C8Dto.js.map +1 -1
- package/dist/c8/lib/C8DtoInternal.d.ts +0 -1
- package/dist/c8/lib/C8Logger.js +20 -10
- package/dist/c8/lib/C8Logger.js.map +1 -1
- package/dist/c8/lib/CamundaJobWorker.js +3 -1
- package/dist/c8/lib/CamundaJobWorker.js.map +1 -1
- package/dist/c8/lib/CamundaRestClient.d.ts +23 -9
- package/dist/c8/lib/CamundaRestClient.js +24 -28
- package/dist/c8/lib/CamundaRestClient.js.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/lib/AsyncTrace.d.ts +0 -1
- package/dist/lib/AsyncTrace.js +2 -2
- package/dist/lib/AsyncTrace.js.map +1 -1
- package/dist/lib/CamundaSupportLogger.js +18 -8
- package/dist/lib/CamundaSupportLogger.js.map +1 -1
- package/dist/lib/Configuration.d.ts +8 -8
- package/dist/lib/Configuration.js +4 -4
- package/dist/lib/Configuration.js.map +1 -1
- package/dist/lib/ConstructOAuthProvider.d.ts +3 -1
- package/dist/lib/ConstructOAuthProvider.js +45 -24
- package/dist/lib/ConstructOAuthProvider.js.map +1 -1
- package/dist/lib/CreateDtoInstance.js +1 -2
- package/dist/lib/CreateDtoInstance.js.map +1 -1
- package/dist/lib/GetCustomCertificateBuffer.js +1 -2
- package/dist/lib/GetCustomCertificateBuffer.js.map +1 -1
- package/dist/lib/GetPackageVersion.js +17 -7
- package/dist/lib/GetPackageVersion.js.map +1 -1
- package/dist/lib/GetSystemCertificates.js +1 -2
- package/dist/lib/GetSystemCertificates.js.map +1 -1
- package/dist/lib/GotErrors.js +17 -7
- package/dist/lib/GotErrors.js.map +1 -1
- package/dist/lib/LosslessJsonParser.js +8 -8
- package/dist/lib/LosslessJsonParser.js.map +1 -1
- package/dist/lib/PollingOperation.js +1 -2
- package/dist/lib/PollingOperation.js.map +1 -1
- package/dist/lib/QuerySubscription.js +1 -2
- package/dist/lib/QuerySubscription.js.map +1 -1
- package/dist/lib/RequireConfiguration.js +1 -2
- package/dist/lib/RequireConfiguration.js.map +1 -1
- package/dist/lib/ValueOrDefault.js +1 -2
- package/dist/lib/ValueOrDefault.js.map +1 -1
- package/dist/lib/ZeebeGrpcAddressUtils.js +3 -4
- package/dist/lib/ZeebeGrpcAddressUtils.js.map +1 -1
- package/dist/modeler/index.js +17 -7
- package/dist/modeler/index.js.map +1 -1
- package/dist/modeler/lib/ModelerAPIClient.js +4 -1
- package/dist/modeler/lib/ModelerAPIClient.js.map +1 -1
- package/dist/oauth/lib/OAuthProvider.js +17 -7
- package/dist/oauth/lib/OAuthProvider.js.map +1 -1
- package/dist/operate/index.js +17 -7
- package/dist/operate/index.js.map +1 -1
- package/dist/operate/lib/OperateApiClient.d.ts +1 -0
- package/dist/operate/lib/OperateApiClient.js +4 -1
- package/dist/operate/lib/OperateApiClient.js.map +1 -1
- package/dist/operate/lib/parseSearchResults.js +1 -2
- package/dist/operate/lib/parseSearchResults.js.map +1 -1
- package/dist/optimize/index.js +17 -7
- package/dist/optimize/index.js.map +1 -1
- package/dist/optimize/lib/OptimizeApiClient.js +4 -1
- package/dist/optimize/lib/OptimizeApiClient.js.map +1 -1
- package/dist/subscription/Subscription.d.ts +0 -1
- package/dist/tasklist/index.js +17 -7
- package/dist/tasklist/index.js.map +1 -1
- package/dist/tasklist/lib/TasklistApiClient.js +4 -1
- package/dist/tasklist/lib/TasklistApiClient.js.map +1 -1
- package/dist/test-support/testTags.d.ts +83 -0
- package/dist/test-support/testTags.js +131 -0
- package/dist/test-support/testTags.js.map +1 -0
- package/dist/zeebe/index.d.ts +12 -3
- package/dist/zeebe/index.js +17 -7
- package/dist/zeebe/index.js.map +1 -1
- package/dist/zeebe/lib/BpmnParser.js +17 -7
- package/dist/zeebe/lib/BpmnParser.js.map +1 -1
- package/dist/zeebe/lib/GetPackageVersion.js +17 -7
- package/dist/zeebe/lib/GetPackageVersion.js.map +1 -1
- package/dist/zeebe/lib/GrpcClient.d.ts +0 -2
- package/dist/zeebe/lib/ZBJsonLogger.d.ts +12 -3
- package/dist/zeebe/lib/ZBLogger.js +17 -7
- package/dist/zeebe/lib/ZBLogger.js.map +1 -1
- package/dist/zeebe/lib/ZBWorkerBase.d.ts +0 -1
- package/dist/zeebe/lib/ZBWorkerBase.js +21 -11
- package/dist/zeebe/lib/ZBWorkerBase.js.map +1 -1
- package/dist/zeebe/lib/cancelProcesses.js +18 -24
- package/dist/zeebe/lib/cancelProcesses.js.map +1 -1
- package/dist/zeebe/lib/deployResource.d.ts +0 -1
- package/dist/zeebe/lib/deployResource.js +1 -2
- package/dist/zeebe/lib/deployResource.js.map +1 -1
- package/dist/zeebe/lib/interfaces-grpc-1.0.d.ts +0 -1
- package/dist/zeebe/lib/interfaces-published-contract.d.ts +0 -1
- package/dist/zeebe/lib/stringifyVariables.js +3 -4
- package/dist/zeebe/lib/stringifyVariables.js.map +1 -1
- package/dist/zeebe/zb/ZeebeGrpcClient.d.ts +0 -1
- package/dist/zeebe/zb/ZeebeGrpcClient.js +26 -13
- package/dist/zeebe/zb/ZeebeGrpcClient.js.map +1 -1
- package/dist/zeebe/zb/ZeebeRESTClient.js +4 -1
- package/dist/zeebe/zb/ZeebeRESTClient.js.map +1 -1
- package/package.json +18 -50
- package/vitest.config.js +8 -0
- package/dist/generated/zeebe_grpc_pb.d.ts +0 -320
- package/dist/generated/zeebe_grpc_pb.js +0 -845
- package/dist/generated/zeebe_grpc_pb.js.map +0 -1
|
@@ -1,845 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
3
|
-
'use strict';
|
|
4
|
-
const grpc = require('grpc');
|
|
5
|
-
const zeebe_pb = require('./zeebe_pb.js');
|
|
6
|
-
function serialize_gateway_protocol_ActivateJobsRequest(arg) {
|
|
7
|
-
if (!(arg instanceof zeebe_pb.ActivateJobsRequest)) {
|
|
8
|
-
throw new Error('Expected argument of type gateway_protocol.ActivateJobsRequest');
|
|
9
|
-
}
|
|
10
|
-
return Buffer.from(arg.serializeBinary());
|
|
11
|
-
}
|
|
12
|
-
function deserialize_gateway_protocol_ActivateJobsRequest(buffer_arg) {
|
|
13
|
-
return zeebe_pb.ActivateJobsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
14
|
-
}
|
|
15
|
-
function serialize_gateway_protocol_ActivateJobsResponse(arg) {
|
|
16
|
-
if (!(arg instanceof zeebe_pb.ActivateJobsResponse)) {
|
|
17
|
-
throw new Error('Expected argument of type gateway_protocol.ActivateJobsResponse');
|
|
18
|
-
}
|
|
19
|
-
return Buffer.from(arg.serializeBinary());
|
|
20
|
-
}
|
|
21
|
-
function deserialize_gateway_protocol_ActivateJobsResponse(buffer_arg) {
|
|
22
|
-
return zeebe_pb.ActivateJobsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
23
|
-
}
|
|
24
|
-
function serialize_gateway_protocol_ActivatedJob(arg) {
|
|
25
|
-
if (!(arg instanceof zeebe_pb.ActivatedJob)) {
|
|
26
|
-
throw new Error('Expected argument of type gateway_protocol.ActivatedJob');
|
|
27
|
-
}
|
|
28
|
-
return Buffer.from(arg.serializeBinary());
|
|
29
|
-
}
|
|
30
|
-
function deserialize_gateway_protocol_ActivatedJob(buffer_arg) {
|
|
31
|
-
return zeebe_pb.ActivatedJob.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
|
-
}
|
|
33
|
-
function serialize_gateway_protocol_BroadcastSignalRequest(arg) {
|
|
34
|
-
if (!(arg instanceof zeebe_pb.BroadcastSignalRequest)) {
|
|
35
|
-
throw new Error('Expected argument of type gateway_protocol.BroadcastSignalRequest');
|
|
36
|
-
}
|
|
37
|
-
return Buffer.from(arg.serializeBinary());
|
|
38
|
-
}
|
|
39
|
-
function deserialize_gateway_protocol_BroadcastSignalRequest(buffer_arg) {
|
|
40
|
-
return zeebe_pb.BroadcastSignalRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
41
|
-
}
|
|
42
|
-
function serialize_gateway_protocol_BroadcastSignalResponse(arg) {
|
|
43
|
-
if (!(arg instanceof zeebe_pb.BroadcastSignalResponse)) {
|
|
44
|
-
throw new Error('Expected argument of type gateway_protocol.BroadcastSignalResponse');
|
|
45
|
-
}
|
|
46
|
-
return Buffer.from(arg.serializeBinary());
|
|
47
|
-
}
|
|
48
|
-
function deserialize_gateway_protocol_BroadcastSignalResponse(buffer_arg) {
|
|
49
|
-
return zeebe_pb.BroadcastSignalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
-
}
|
|
51
|
-
function serialize_gateway_protocol_CancelProcessInstanceRequest(arg) {
|
|
52
|
-
if (!(arg instanceof zeebe_pb.CancelProcessInstanceRequest)) {
|
|
53
|
-
throw new Error('Expected argument of type gateway_protocol.CancelProcessInstanceRequest');
|
|
54
|
-
}
|
|
55
|
-
return Buffer.from(arg.serializeBinary());
|
|
56
|
-
}
|
|
57
|
-
function deserialize_gateway_protocol_CancelProcessInstanceRequest(buffer_arg) {
|
|
58
|
-
return zeebe_pb.CancelProcessInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
59
|
-
}
|
|
60
|
-
function serialize_gateway_protocol_CancelProcessInstanceResponse(arg) {
|
|
61
|
-
if (!(arg instanceof zeebe_pb.CancelProcessInstanceResponse)) {
|
|
62
|
-
throw new Error('Expected argument of type gateway_protocol.CancelProcessInstanceResponse');
|
|
63
|
-
}
|
|
64
|
-
return Buffer.from(arg.serializeBinary());
|
|
65
|
-
}
|
|
66
|
-
function deserialize_gateway_protocol_CancelProcessInstanceResponse(buffer_arg) {
|
|
67
|
-
return zeebe_pb.CancelProcessInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
68
|
-
}
|
|
69
|
-
function serialize_gateway_protocol_CompleteJobRequest(arg) {
|
|
70
|
-
if (!(arg instanceof zeebe_pb.CompleteJobRequest)) {
|
|
71
|
-
throw new Error('Expected argument of type gateway_protocol.CompleteJobRequest');
|
|
72
|
-
}
|
|
73
|
-
return Buffer.from(arg.serializeBinary());
|
|
74
|
-
}
|
|
75
|
-
function deserialize_gateway_protocol_CompleteJobRequest(buffer_arg) {
|
|
76
|
-
return zeebe_pb.CompleteJobRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
77
|
-
}
|
|
78
|
-
function serialize_gateway_protocol_CompleteJobResponse(arg) {
|
|
79
|
-
if (!(arg instanceof zeebe_pb.CompleteJobResponse)) {
|
|
80
|
-
throw new Error('Expected argument of type gateway_protocol.CompleteJobResponse');
|
|
81
|
-
}
|
|
82
|
-
return Buffer.from(arg.serializeBinary());
|
|
83
|
-
}
|
|
84
|
-
function deserialize_gateway_protocol_CompleteJobResponse(buffer_arg) {
|
|
85
|
-
return zeebe_pb.CompleteJobResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
86
|
-
}
|
|
87
|
-
function serialize_gateway_protocol_CreateProcessInstanceRequest(arg) {
|
|
88
|
-
if (!(arg instanceof zeebe_pb.CreateProcessInstanceRequest)) {
|
|
89
|
-
throw new Error('Expected argument of type gateway_protocol.CreateProcessInstanceRequest');
|
|
90
|
-
}
|
|
91
|
-
return Buffer.from(arg.serializeBinary());
|
|
92
|
-
}
|
|
93
|
-
function deserialize_gateway_protocol_CreateProcessInstanceRequest(buffer_arg) {
|
|
94
|
-
return zeebe_pb.CreateProcessInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
95
|
-
}
|
|
96
|
-
function serialize_gateway_protocol_CreateProcessInstanceResponse(arg) {
|
|
97
|
-
if (!(arg instanceof zeebe_pb.CreateProcessInstanceResponse)) {
|
|
98
|
-
throw new Error('Expected argument of type gateway_protocol.CreateProcessInstanceResponse');
|
|
99
|
-
}
|
|
100
|
-
return Buffer.from(arg.serializeBinary());
|
|
101
|
-
}
|
|
102
|
-
function deserialize_gateway_protocol_CreateProcessInstanceResponse(buffer_arg) {
|
|
103
|
-
return zeebe_pb.CreateProcessInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
|
-
}
|
|
105
|
-
function serialize_gateway_protocol_CreateProcessInstanceWithResultRequest(arg) {
|
|
106
|
-
if (!(arg instanceof zeebe_pb.CreateProcessInstanceWithResultRequest)) {
|
|
107
|
-
throw new Error('Expected argument of type gateway_protocol.CreateProcessInstanceWithResultRequest');
|
|
108
|
-
}
|
|
109
|
-
return Buffer.from(arg.serializeBinary());
|
|
110
|
-
}
|
|
111
|
-
function deserialize_gateway_protocol_CreateProcessInstanceWithResultRequest(buffer_arg) {
|
|
112
|
-
return zeebe_pb.CreateProcessInstanceWithResultRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
113
|
-
}
|
|
114
|
-
function serialize_gateway_protocol_CreateProcessInstanceWithResultResponse(arg) {
|
|
115
|
-
if (!(arg instanceof zeebe_pb.CreateProcessInstanceWithResultResponse)) {
|
|
116
|
-
throw new Error('Expected argument of type gateway_protocol.CreateProcessInstanceWithResultResponse');
|
|
117
|
-
}
|
|
118
|
-
return Buffer.from(arg.serializeBinary());
|
|
119
|
-
}
|
|
120
|
-
function deserialize_gateway_protocol_CreateProcessInstanceWithResultResponse(buffer_arg) {
|
|
121
|
-
return zeebe_pb.CreateProcessInstanceWithResultResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
122
|
-
}
|
|
123
|
-
function serialize_gateway_protocol_DeleteResourceRequest(arg) {
|
|
124
|
-
if (!(arg instanceof zeebe_pb.DeleteResourceRequest)) {
|
|
125
|
-
throw new Error('Expected argument of type gateway_protocol.DeleteResourceRequest');
|
|
126
|
-
}
|
|
127
|
-
return Buffer.from(arg.serializeBinary());
|
|
128
|
-
}
|
|
129
|
-
function deserialize_gateway_protocol_DeleteResourceRequest(buffer_arg) {
|
|
130
|
-
return zeebe_pb.DeleteResourceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
131
|
-
}
|
|
132
|
-
function serialize_gateway_protocol_DeleteResourceResponse(arg) {
|
|
133
|
-
if (!(arg instanceof zeebe_pb.DeleteResourceResponse)) {
|
|
134
|
-
throw new Error('Expected argument of type gateway_protocol.DeleteResourceResponse');
|
|
135
|
-
}
|
|
136
|
-
return Buffer.from(arg.serializeBinary());
|
|
137
|
-
}
|
|
138
|
-
function deserialize_gateway_protocol_DeleteResourceResponse(buffer_arg) {
|
|
139
|
-
return zeebe_pb.DeleteResourceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
140
|
-
}
|
|
141
|
-
function serialize_gateway_protocol_DeployProcessRequest(arg) {
|
|
142
|
-
if (!(arg instanceof zeebe_pb.DeployProcessRequest)) {
|
|
143
|
-
throw new Error('Expected argument of type gateway_protocol.DeployProcessRequest');
|
|
144
|
-
}
|
|
145
|
-
return Buffer.from(arg.serializeBinary());
|
|
146
|
-
}
|
|
147
|
-
function deserialize_gateway_protocol_DeployProcessRequest(buffer_arg) {
|
|
148
|
-
return zeebe_pb.DeployProcessRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
149
|
-
}
|
|
150
|
-
function serialize_gateway_protocol_DeployProcessResponse(arg) {
|
|
151
|
-
if (!(arg instanceof zeebe_pb.DeployProcessResponse)) {
|
|
152
|
-
throw new Error('Expected argument of type gateway_protocol.DeployProcessResponse');
|
|
153
|
-
}
|
|
154
|
-
return Buffer.from(arg.serializeBinary());
|
|
155
|
-
}
|
|
156
|
-
function deserialize_gateway_protocol_DeployProcessResponse(buffer_arg) {
|
|
157
|
-
return zeebe_pb.DeployProcessResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
158
|
-
}
|
|
159
|
-
function serialize_gateway_protocol_DeployResourceRequest(arg) {
|
|
160
|
-
if (!(arg instanceof zeebe_pb.DeployResourceRequest)) {
|
|
161
|
-
throw new Error('Expected argument of type gateway_protocol.DeployResourceRequest');
|
|
162
|
-
}
|
|
163
|
-
return Buffer.from(arg.serializeBinary());
|
|
164
|
-
}
|
|
165
|
-
function deserialize_gateway_protocol_DeployResourceRequest(buffer_arg) {
|
|
166
|
-
return zeebe_pb.DeployResourceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
167
|
-
}
|
|
168
|
-
function serialize_gateway_protocol_DeployResourceResponse(arg) {
|
|
169
|
-
if (!(arg instanceof zeebe_pb.DeployResourceResponse)) {
|
|
170
|
-
throw new Error('Expected argument of type gateway_protocol.DeployResourceResponse');
|
|
171
|
-
}
|
|
172
|
-
return Buffer.from(arg.serializeBinary());
|
|
173
|
-
}
|
|
174
|
-
function deserialize_gateway_protocol_DeployResourceResponse(buffer_arg) {
|
|
175
|
-
return zeebe_pb.DeployResourceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
176
|
-
}
|
|
177
|
-
function serialize_gateway_protocol_EvaluateDecisionRequest(arg) {
|
|
178
|
-
if (!(arg instanceof zeebe_pb.EvaluateDecisionRequest)) {
|
|
179
|
-
throw new Error('Expected argument of type gateway_protocol.EvaluateDecisionRequest');
|
|
180
|
-
}
|
|
181
|
-
return Buffer.from(arg.serializeBinary());
|
|
182
|
-
}
|
|
183
|
-
function deserialize_gateway_protocol_EvaluateDecisionRequest(buffer_arg) {
|
|
184
|
-
return zeebe_pb.EvaluateDecisionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
185
|
-
}
|
|
186
|
-
function serialize_gateway_protocol_EvaluateDecisionResponse(arg) {
|
|
187
|
-
if (!(arg instanceof zeebe_pb.EvaluateDecisionResponse)) {
|
|
188
|
-
throw new Error('Expected argument of type gateway_protocol.EvaluateDecisionResponse');
|
|
189
|
-
}
|
|
190
|
-
return Buffer.from(arg.serializeBinary());
|
|
191
|
-
}
|
|
192
|
-
function deserialize_gateway_protocol_EvaluateDecisionResponse(buffer_arg) {
|
|
193
|
-
return zeebe_pb.EvaluateDecisionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
194
|
-
}
|
|
195
|
-
function serialize_gateway_protocol_FailJobRequest(arg) {
|
|
196
|
-
if (!(arg instanceof zeebe_pb.FailJobRequest)) {
|
|
197
|
-
throw new Error('Expected argument of type gateway_protocol.FailJobRequest');
|
|
198
|
-
}
|
|
199
|
-
return Buffer.from(arg.serializeBinary());
|
|
200
|
-
}
|
|
201
|
-
function deserialize_gateway_protocol_FailJobRequest(buffer_arg) {
|
|
202
|
-
return zeebe_pb.FailJobRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
|
-
}
|
|
204
|
-
function serialize_gateway_protocol_FailJobResponse(arg) {
|
|
205
|
-
if (!(arg instanceof zeebe_pb.FailJobResponse)) {
|
|
206
|
-
throw new Error('Expected argument of type gateway_protocol.FailJobResponse');
|
|
207
|
-
}
|
|
208
|
-
return Buffer.from(arg.serializeBinary());
|
|
209
|
-
}
|
|
210
|
-
function deserialize_gateway_protocol_FailJobResponse(buffer_arg) {
|
|
211
|
-
return zeebe_pb.FailJobResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
212
|
-
}
|
|
213
|
-
function serialize_gateway_protocol_MigrateProcessInstanceRequest(arg) {
|
|
214
|
-
if (!(arg instanceof zeebe_pb.MigrateProcessInstanceRequest)) {
|
|
215
|
-
throw new Error('Expected argument of type gateway_protocol.MigrateProcessInstanceRequest');
|
|
216
|
-
}
|
|
217
|
-
return Buffer.from(arg.serializeBinary());
|
|
218
|
-
}
|
|
219
|
-
function deserialize_gateway_protocol_MigrateProcessInstanceRequest(buffer_arg) {
|
|
220
|
-
return zeebe_pb.MigrateProcessInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
221
|
-
}
|
|
222
|
-
function serialize_gateway_protocol_MigrateProcessInstanceResponse(arg) {
|
|
223
|
-
if (!(arg instanceof zeebe_pb.MigrateProcessInstanceResponse)) {
|
|
224
|
-
throw new Error('Expected argument of type gateway_protocol.MigrateProcessInstanceResponse');
|
|
225
|
-
}
|
|
226
|
-
return Buffer.from(arg.serializeBinary());
|
|
227
|
-
}
|
|
228
|
-
function deserialize_gateway_protocol_MigrateProcessInstanceResponse(buffer_arg) {
|
|
229
|
-
return zeebe_pb.MigrateProcessInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
230
|
-
}
|
|
231
|
-
function serialize_gateway_protocol_ModifyProcessInstanceRequest(arg) {
|
|
232
|
-
if (!(arg instanceof zeebe_pb.ModifyProcessInstanceRequest)) {
|
|
233
|
-
throw new Error('Expected argument of type gateway_protocol.ModifyProcessInstanceRequest');
|
|
234
|
-
}
|
|
235
|
-
return Buffer.from(arg.serializeBinary());
|
|
236
|
-
}
|
|
237
|
-
function deserialize_gateway_protocol_ModifyProcessInstanceRequest(buffer_arg) {
|
|
238
|
-
return zeebe_pb.ModifyProcessInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
239
|
-
}
|
|
240
|
-
function serialize_gateway_protocol_ModifyProcessInstanceResponse(arg) {
|
|
241
|
-
if (!(arg instanceof zeebe_pb.ModifyProcessInstanceResponse)) {
|
|
242
|
-
throw new Error('Expected argument of type gateway_protocol.ModifyProcessInstanceResponse');
|
|
243
|
-
}
|
|
244
|
-
return Buffer.from(arg.serializeBinary());
|
|
245
|
-
}
|
|
246
|
-
function deserialize_gateway_protocol_ModifyProcessInstanceResponse(buffer_arg) {
|
|
247
|
-
return zeebe_pb.ModifyProcessInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
248
|
-
}
|
|
249
|
-
function serialize_gateway_protocol_PublishMessageRequest(arg) {
|
|
250
|
-
if (!(arg instanceof zeebe_pb.PublishMessageRequest)) {
|
|
251
|
-
throw new Error('Expected argument of type gateway_protocol.PublishMessageRequest');
|
|
252
|
-
}
|
|
253
|
-
return Buffer.from(arg.serializeBinary());
|
|
254
|
-
}
|
|
255
|
-
function deserialize_gateway_protocol_PublishMessageRequest(buffer_arg) {
|
|
256
|
-
return zeebe_pb.PublishMessageRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
257
|
-
}
|
|
258
|
-
function serialize_gateway_protocol_PublishMessageResponse(arg) {
|
|
259
|
-
if (!(arg instanceof zeebe_pb.PublishMessageResponse)) {
|
|
260
|
-
throw new Error('Expected argument of type gateway_protocol.PublishMessageResponse');
|
|
261
|
-
}
|
|
262
|
-
return Buffer.from(arg.serializeBinary());
|
|
263
|
-
}
|
|
264
|
-
function deserialize_gateway_protocol_PublishMessageResponse(buffer_arg) {
|
|
265
|
-
return zeebe_pb.PublishMessageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
266
|
-
}
|
|
267
|
-
function serialize_gateway_protocol_ResolveIncidentRequest(arg) {
|
|
268
|
-
if (!(arg instanceof zeebe_pb.ResolveIncidentRequest)) {
|
|
269
|
-
throw new Error('Expected argument of type gateway_protocol.ResolveIncidentRequest');
|
|
270
|
-
}
|
|
271
|
-
return Buffer.from(arg.serializeBinary());
|
|
272
|
-
}
|
|
273
|
-
function deserialize_gateway_protocol_ResolveIncidentRequest(buffer_arg) {
|
|
274
|
-
return zeebe_pb.ResolveIncidentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
275
|
-
}
|
|
276
|
-
function serialize_gateway_protocol_ResolveIncidentResponse(arg) {
|
|
277
|
-
if (!(arg instanceof zeebe_pb.ResolveIncidentResponse)) {
|
|
278
|
-
throw new Error('Expected argument of type gateway_protocol.ResolveIncidentResponse');
|
|
279
|
-
}
|
|
280
|
-
return Buffer.from(arg.serializeBinary());
|
|
281
|
-
}
|
|
282
|
-
function deserialize_gateway_protocol_ResolveIncidentResponse(buffer_arg) {
|
|
283
|
-
return zeebe_pb.ResolveIncidentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
284
|
-
}
|
|
285
|
-
function serialize_gateway_protocol_SetVariablesRequest(arg) {
|
|
286
|
-
if (!(arg instanceof zeebe_pb.SetVariablesRequest)) {
|
|
287
|
-
throw new Error('Expected argument of type gateway_protocol.SetVariablesRequest');
|
|
288
|
-
}
|
|
289
|
-
return Buffer.from(arg.serializeBinary());
|
|
290
|
-
}
|
|
291
|
-
function deserialize_gateway_protocol_SetVariablesRequest(buffer_arg) {
|
|
292
|
-
return zeebe_pb.SetVariablesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
293
|
-
}
|
|
294
|
-
function serialize_gateway_protocol_SetVariablesResponse(arg) {
|
|
295
|
-
if (!(arg instanceof zeebe_pb.SetVariablesResponse)) {
|
|
296
|
-
throw new Error('Expected argument of type gateway_protocol.SetVariablesResponse');
|
|
297
|
-
}
|
|
298
|
-
return Buffer.from(arg.serializeBinary());
|
|
299
|
-
}
|
|
300
|
-
function deserialize_gateway_protocol_SetVariablesResponse(buffer_arg) {
|
|
301
|
-
return zeebe_pb.SetVariablesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
302
|
-
}
|
|
303
|
-
function serialize_gateway_protocol_StreamActivatedJobsRequest(arg) {
|
|
304
|
-
if (!(arg instanceof zeebe_pb.StreamActivatedJobsRequest)) {
|
|
305
|
-
throw new Error('Expected argument of type gateway_protocol.StreamActivatedJobsRequest');
|
|
306
|
-
}
|
|
307
|
-
return Buffer.from(arg.serializeBinary());
|
|
308
|
-
}
|
|
309
|
-
function deserialize_gateway_protocol_StreamActivatedJobsRequest(buffer_arg) {
|
|
310
|
-
return zeebe_pb.StreamActivatedJobsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
311
|
-
}
|
|
312
|
-
function serialize_gateway_protocol_ThrowErrorRequest(arg) {
|
|
313
|
-
if (!(arg instanceof zeebe_pb.ThrowErrorRequest)) {
|
|
314
|
-
throw new Error('Expected argument of type gateway_protocol.ThrowErrorRequest');
|
|
315
|
-
}
|
|
316
|
-
return Buffer.from(arg.serializeBinary());
|
|
317
|
-
}
|
|
318
|
-
function deserialize_gateway_protocol_ThrowErrorRequest(buffer_arg) {
|
|
319
|
-
return zeebe_pb.ThrowErrorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
320
|
-
}
|
|
321
|
-
function serialize_gateway_protocol_ThrowErrorResponse(arg) {
|
|
322
|
-
if (!(arg instanceof zeebe_pb.ThrowErrorResponse)) {
|
|
323
|
-
throw new Error('Expected argument of type gateway_protocol.ThrowErrorResponse');
|
|
324
|
-
}
|
|
325
|
-
return Buffer.from(arg.serializeBinary());
|
|
326
|
-
}
|
|
327
|
-
function deserialize_gateway_protocol_ThrowErrorResponse(buffer_arg) {
|
|
328
|
-
return zeebe_pb.ThrowErrorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
329
|
-
}
|
|
330
|
-
function serialize_gateway_protocol_TopologyRequest(arg) {
|
|
331
|
-
if (!(arg instanceof zeebe_pb.TopologyRequest)) {
|
|
332
|
-
throw new Error('Expected argument of type gateway_protocol.TopologyRequest');
|
|
333
|
-
}
|
|
334
|
-
return Buffer.from(arg.serializeBinary());
|
|
335
|
-
}
|
|
336
|
-
function deserialize_gateway_protocol_TopologyRequest(buffer_arg) {
|
|
337
|
-
return zeebe_pb.TopologyRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
338
|
-
}
|
|
339
|
-
function serialize_gateway_protocol_TopologyResponse(arg) {
|
|
340
|
-
if (!(arg instanceof zeebe_pb.TopologyResponse)) {
|
|
341
|
-
throw new Error('Expected argument of type gateway_protocol.TopologyResponse');
|
|
342
|
-
}
|
|
343
|
-
return Buffer.from(arg.serializeBinary());
|
|
344
|
-
}
|
|
345
|
-
function deserialize_gateway_protocol_TopologyResponse(buffer_arg) {
|
|
346
|
-
return zeebe_pb.TopologyResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
347
|
-
}
|
|
348
|
-
function serialize_gateway_protocol_UpdateJobRetriesRequest(arg) {
|
|
349
|
-
if (!(arg instanceof zeebe_pb.UpdateJobRetriesRequest)) {
|
|
350
|
-
throw new Error('Expected argument of type gateway_protocol.UpdateJobRetriesRequest');
|
|
351
|
-
}
|
|
352
|
-
return Buffer.from(arg.serializeBinary());
|
|
353
|
-
}
|
|
354
|
-
function deserialize_gateway_protocol_UpdateJobRetriesRequest(buffer_arg) {
|
|
355
|
-
return zeebe_pb.UpdateJobRetriesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
356
|
-
}
|
|
357
|
-
function serialize_gateway_protocol_UpdateJobRetriesResponse(arg) {
|
|
358
|
-
if (!(arg instanceof zeebe_pb.UpdateJobRetriesResponse)) {
|
|
359
|
-
throw new Error('Expected argument of type gateway_protocol.UpdateJobRetriesResponse');
|
|
360
|
-
}
|
|
361
|
-
return Buffer.from(arg.serializeBinary());
|
|
362
|
-
}
|
|
363
|
-
function deserialize_gateway_protocol_UpdateJobRetriesResponse(buffer_arg) {
|
|
364
|
-
return zeebe_pb.UpdateJobRetriesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
365
|
-
}
|
|
366
|
-
function serialize_gateway_protocol_UpdateJobTimeoutRequest(arg) {
|
|
367
|
-
if (!(arg instanceof zeebe_pb.UpdateJobTimeoutRequest)) {
|
|
368
|
-
throw new Error('Expected argument of type gateway_protocol.UpdateJobTimeoutRequest');
|
|
369
|
-
}
|
|
370
|
-
return Buffer.from(arg.serializeBinary());
|
|
371
|
-
}
|
|
372
|
-
function deserialize_gateway_protocol_UpdateJobTimeoutRequest(buffer_arg) {
|
|
373
|
-
return zeebe_pb.UpdateJobTimeoutRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
374
|
-
}
|
|
375
|
-
function serialize_gateway_protocol_UpdateJobTimeoutResponse(arg) {
|
|
376
|
-
if (!(arg instanceof zeebe_pb.UpdateJobTimeoutResponse)) {
|
|
377
|
-
throw new Error('Expected argument of type gateway_protocol.UpdateJobTimeoutResponse');
|
|
378
|
-
}
|
|
379
|
-
return Buffer.from(arg.serializeBinary());
|
|
380
|
-
}
|
|
381
|
-
function deserialize_gateway_protocol_UpdateJobTimeoutResponse(buffer_arg) {
|
|
382
|
-
return zeebe_pb.UpdateJobTimeoutResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
383
|
-
}
|
|
384
|
-
const GatewayService = (exports.GatewayService = {
|
|
385
|
-
//
|
|
386
|
-
// Iterates through all known partitions round-robin and activates up to the requested
|
|
387
|
-
// maximum and streams them back to the client as they are activated.
|
|
388
|
-
//
|
|
389
|
-
// Errors:
|
|
390
|
-
// INVALID_ARGUMENT:
|
|
391
|
-
// - type is blank (empty string, null)
|
|
392
|
-
// - worker is blank (empty string, null)
|
|
393
|
-
// - timeout less than 1
|
|
394
|
-
// - maxJobsToActivate is less than 1
|
|
395
|
-
activateJobs: {
|
|
396
|
-
path: '/gateway_protocol.Gateway/ActivateJobs',
|
|
397
|
-
requestStream: false,
|
|
398
|
-
responseStream: true,
|
|
399
|
-
requestType: zeebe_pb.ActivateJobsRequest,
|
|
400
|
-
responseType: zeebe_pb.ActivateJobsResponse,
|
|
401
|
-
requestSerialize: serialize_gateway_protocol_ActivateJobsRequest,
|
|
402
|
-
requestDeserialize: deserialize_gateway_protocol_ActivateJobsRequest,
|
|
403
|
-
responseSerialize: serialize_gateway_protocol_ActivateJobsResponse,
|
|
404
|
-
responseDeserialize: deserialize_gateway_protocol_ActivateJobsResponse,
|
|
405
|
-
},
|
|
406
|
-
//
|
|
407
|
-
// Registers client to a job stream that will stream jobs back to the client as
|
|
408
|
-
// they become activatable.
|
|
409
|
-
//
|
|
410
|
-
// Errors:
|
|
411
|
-
// INVALID_ARGUMENT:
|
|
412
|
-
// - type is blank (empty string, null)
|
|
413
|
-
// - timeout less than 1
|
|
414
|
-
// - If multi-tenancy is enabled, and tenantIds is empty (empty list)
|
|
415
|
-
// - If multi-tenancy is enabled, and an invalid tenant ID is provided. A tenant ID is considered invalid if:
|
|
416
|
-
// - The tenant ID is blank (empty string, null)
|
|
417
|
-
// - The tenant ID is longer than 31 characters
|
|
418
|
-
// - The tenant ID contains anything other than alphanumeric characters, dot (.), dash (-), or underscore (_)
|
|
419
|
-
// - If multi-tenancy is disabled, and tenantIds is not empty (empty list), or has an ID other than <default>
|
|
420
|
-
streamActivatedJobs: {
|
|
421
|
-
path: '/gateway_protocol.Gateway/StreamActivatedJobs',
|
|
422
|
-
requestStream: false,
|
|
423
|
-
responseStream: true,
|
|
424
|
-
requestType: zeebe_pb.StreamActivatedJobsRequest,
|
|
425
|
-
responseType: zeebe_pb.ActivatedJob,
|
|
426
|
-
requestSerialize: serialize_gateway_protocol_StreamActivatedJobsRequest,
|
|
427
|
-
requestDeserialize: deserialize_gateway_protocol_StreamActivatedJobsRequest,
|
|
428
|
-
responseSerialize: serialize_gateway_protocol_ActivatedJob,
|
|
429
|
-
responseDeserialize: deserialize_gateway_protocol_ActivatedJob,
|
|
430
|
-
},
|
|
431
|
-
//
|
|
432
|
-
// Cancels a running process instance
|
|
433
|
-
//
|
|
434
|
-
// Errors:
|
|
435
|
-
// NOT_FOUND:
|
|
436
|
-
// - no process instance exists with the given key
|
|
437
|
-
cancelProcessInstance: {
|
|
438
|
-
path: '/gateway_protocol.Gateway/CancelProcessInstance',
|
|
439
|
-
requestStream: false,
|
|
440
|
-
responseStream: false,
|
|
441
|
-
requestType: zeebe_pb.CancelProcessInstanceRequest,
|
|
442
|
-
responseType: zeebe_pb.CancelProcessInstanceResponse,
|
|
443
|
-
requestSerialize: serialize_gateway_protocol_CancelProcessInstanceRequest,
|
|
444
|
-
requestDeserialize: deserialize_gateway_protocol_CancelProcessInstanceRequest,
|
|
445
|
-
responseSerialize: serialize_gateway_protocol_CancelProcessInstanceResponse,
|
|
446
|
-
responseDeserialize: deserialize_gateway_protocol_CancelProcessInstanceResponse,
|
|
447
|
-
},
|
|
448
|
-
//
|
|
449
|
-
// Completes a job with the given variables, which allows completing the associated service task.
|
|
450
|
-
//
|
|
451
|
-
// Errors:
|
|
452
|
-
// NOT_FOUND:
|
|
453
|
-
// - no job exists with the given job key. Note that since jobs are removed once completed,
|
|
454
|
-
// it could be that this job did exist at some point.
|
|
455
|
-
//
|
|
456
|
-
// FAILED_PRECONDITION:
|
|
457
|
-
// - the job was marked as failed. In that case, the related incident must be resolved before
|
|
458
|
-
// the job can be activated again and completed.
|
|
459
|
-
completeJob: {
|
|
460
|
-
path: '/gateway_protocol.Gateway/CompleteJob',
|
|
461
|
-
requestStream: false,
|
|
462
|
-
responseStream: false,
|
|
463
|
-
requestType: zeebe_pb.CompleteJobRequest,
|
|
464
|
-
responseType: zeebe_pb.CompleteJobResponse,
|
|
465
|
-
requestSerialize: serialize_gateway_protocol_CompleteJobRequest,
|
|
466
|
-
requestDeserialize: deserialize_gateway_protocol_CompleteJobRequest,
|
|
467
|
-
responseSerialize: serialize_gateway_protocol_CompleteJobResponse,
|
|
468
|
-
responseDeserialize: deserialize_gateway_protocol_CompleteJobResponse,
|
|
469
|
-
},
|
|
470
|
-
//
|
|
471
|
-
// Creates and starts an instance of the specified process. The process definition to use to
|
|
472
|
-
// create the instance can be specified either using its unique key (as returned by
|
|
473
|
-
// DeployProcess), or using the BPMN process ID and a version. Pass -1 as the version to use the
|
|
474
|
-
// latest deployed version. Note that only processes with none start events can be started through
|
|
475
|
-
// this command.
|
|
476
|
-
//
|
|
477
|
-
// Errors:
|
|
478
|
-
// NOT_FOUND:
|
|
479
|
-
// - no process with the given key exists (if processDefinitionKey was given)
|
|
480
|
-
// - no process with the given process ID exists (if bpmnProcessId was given but version was -1)
|
|
481
|
-
// - no process with the given process ID and version exists (if both bpmnProcessId and version were given)
|
|
482
|
-
//
|
|
483
|
-
// FAILED_PRECONDITION:
|
|
484
|
-
// - the process definition does not contain a none start event; only processes with none
|
|
485
|
-
// start event can be started manually.
|
|
486
|
-
//
|
|
487
|
-
// INVALID_ARGUMENT:
|
|
488
|
-
// - the given variables argument is not a valid JSON document; it is expected to be a valid
|
|
489
|
-
// JSON document where the root node is an object.
|
|
490
|
-
createProcessInstance: {
|
|
491
|
-
path: '/gateway_protocol.Gateway/CreateProcessInstance',
|
|
492
|
-
requestStream: false,
|
|
493
|
-
responseStream: false,
|
|
494
|
-
requestType: zeebe_pb.CreateProcessInstanceRequest,
|
|
495
|
-
responseType: zeebe_pb.CreateProcessInstanceResponse,
|
|
496
|
-
requestSerialize: serialize_gateway_protocol_CreateProcessInstanceRequest,
|
|
497
|
-
requestDeserialize: deserialize_gateway_protocol_CreateProcessInstanceRequest,
|
|
498
|
-
responseSerialize: serialize_gateway_protocol_CreateProcessInstanceResponse,
|
|
499
|
-
responseDeserialize: deserialize_gateway_protocol_CreateProcessInstanceResponse,
|
|
500
|
-
},
|
|
501
|
-
//
|
|
502
|
-
// Behaves similarly to `rpc CreateProcessInstance`, except that a successful response is received when the process completes successfully.
|
|
503
|
-
createProcessInstanceWithResult: {
|
|
504
|
-
path: '/gateway_protocol.Gateway/CreateProcessInstanceWithResult',
|
|
505
|
-
requestStream: false,
|
|
506
|
-
responseStream: false,
|
|
507
|
-
requestType: zeebe_pb.CreateProcessInstanceWithResultRequest,
|
|
508
|
-
responseType: zeebe_pb.CreateProcessInstanceWithResultResponse,
|
|
509
|
-
requestSerialize: serialize_gateway_protocol_CreateProcessInstanceWithResultRequest,
|
|
510
|
-
requestDeserialize: deserialize_gateway_protocol_CreateProcessInstanceWithResultRequest,
|
|
511
|
-
responseSerialize: serialize_gateway_protocol_CreateProcessInstanceWithResultResponse,
|
|
512
|
-
responseDeserialize: deserialize_gateway_protocol_CreateProcessInstanceWithResultResponse,
|
|
513
|
-
},
|
|
514
|
-
//
|
|
515
|
-
// Evaluates a decision. The decision to evaluate can be specified either by
|
|
516
|
-
// using its unique key (as returned by DeployResource), or using the decision
|
|
517
|
-
// ID. When using the decision ID, the latest deployed version of the decision
|
|
518
|
-
// is used.
|
|
519
|
-
//
|
|
520
|
-
// Errors:
|
|
521
|
-
// INVALID_ARGUMENT:
|
|
522
|
-
// - no decision with the given key exists (if decisionKey was given)
|
|
523
|
-
// - no decision with the given decision ID exists (if decisionId was given)
|
|
524
|
-
// - both decision ID and decision KEY were provided, or are missing
|
|
525
|
-
evaluateDecision: {
|
|
526
|
-
path: '/gateway_protocol.Gateway/EvaluateDecision',
|
|
527
|
-
requestStream: false,
|
|
528
|
-
responseStream: false,
|
|
529
|
-
requestType: zeebe_pb.EvaluateDecisionRequest,
|
|
530
|
-
responseType: zeebe_pb.EvaluateDecisionResponse,
|
|
531
|
-
requestSerialize: serialize_gateway_protocol_EvaluateDecisionRequest,
|
|
532
|
-
requestDeserialize: deserialize_gateway_protocol_EvaluateDecisionRequest,
|
|
533
|
-
responseSerialize: serialize_gateway_protocol_EvaluateDecisionResponse,
|
|
534
|
-
responseDeserialize: deserialize_gateway_protocol_EvaluateDecisionResponse,
|
|
535
|
-
},
|
|
536
|
-
//
|
|
537
|
-
// Deploys one or more processes to Zeebe. Note that this is an atomic call,
|
|
538
|
-
// i.e. either all processes are deployed, or none of them are.
|
|
539
|
-
//
|
|
540
|
-
// Errors:
|
|
541
|
-
// INVALID_ARGUMENT:
|
|
542
|
-
// - no resources given.
|
|
543
|
-
// - if at least one resource is invalid. A resource is considered invalid if:
|
|
544
|
-
// - the resource data is not deserializable (e.g. detected as BPMN, but it's broken XML)
|
|
545
|
-
// - the process is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task)
|
|
546
|
-
deployProcess: {
|
|
547
|
-
path: '/gateway_protocol.Gateway/DeployProcess',
|
|
548
|
-
requestStream: false,
|
|
549
|
-
responseStream: false,
|
|
550
|
-
requestType: zeebe_pb.DeployProcessRequest,
|
|
551
|
-
responseType: zeebe_pb.DeployProcessResponse,
|
|
552
|
-
requestSerialize: serialize_gateway_protocol_DeployProcessRequest,
|
|
553
|
-
requestDeserialize: deserialize_gateway_protocol_DeployProcessRequest,
|
|
554
|
-
responseSerialize: serialize_gateway_protocol_DeployProcessResponse,
|
|
555
|
-
responseDeserialize: deserialize_gateway_protocol_DeployProcessResponse,
|
|
556
|
-
},
|
|
557
|
-
//
|
|
558
|
-
// Deploys one or more resources (e.g. processes or decision models) to Zeebe.
|
|
559
|
-
// Note that this is an atomic call, i.e. either all resources are deployed, or none of them are.
|
|
560
|
-
//
|
|
561
|
-
// Errors:
|
|
562
|
-
// PERMISSION_DENIED:
|
|
563
|
-
// - if a deployment to an unauthorized tenant is performed
|
|
564
|
-
// INVALID_ARGUMENT:
|
|
565
|
-
// - no resources given.
|
|
566
|
-
// - if at least one resource is invalid. A resource is considered invalid if:
|
|
567
|
-
// - the content is not deserializable (e.g. detected as BPMN, but it's broken XML)
|
|
568
|
-
// - the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task)
|
|
569
|
-
// - if multi-tenancy is enabled, and:
|
|
570
|
-
// - a tenant id is not provided
|
|
571
|
-
// - a tenant id with an invalid format is provided
|
|
572
|
-
// - if multi-tenancy is disabled and a tenant id is provided
|
|
573
|
-
deployResource: {
|
|
574
|
-
path: '/gateway_protocol.Gateway/DeployResource',
|
|
575
|
-
requestStream: false,
|
|
576
|
-
responseStream: false,
|
|
577
|
-
requestType: zeebe_pb.DeployResourceRequest,
|
|
578
|
-
responseType: zeebe_pb.DeployResourceResponse,
|
|
579
|
-
requestSerialize: serialize_gateway_protocol_DeployResourceRequest,
|
|
580
|
-
requestDeserialize: deserialize_gateway_protocol_DeployResourceRequest,
|
|
581
|
-
responseSerialize: serialize_gateway_protocol_DeployResourceResponse,
|
|
582
|
-
responseDeserialize: deserialize_gateway_protocol_DeployResourceResponse,
|
|
583
|
-
},
|
|
584
|
-
//
|
|
585
|
-
// Marks the job as failed; if the retries argument is positive, then the job will be immediately
|
|
586
|
-
// activatable again, and a worker could try again to process it. If it is zero or negative however,
|
|
587
|
-
// an incident will be raised, tagged with the given errorMessage, and the job will not be
|
|
588
|
-
// activatable until the incident is resolved.
|
|
589
|
-
//
|
|
590
|
-
// Errors:
|
|
591
|
-
// NOT_FOUND:
|
|
592
|
-
// - no job was found with the given key
|
|
593
|
-
//
|
|
594
|
-
// FAILED_PRECONDITION:
|
|
595
|
-
// - the job was not activated
|
|
596
|
-
// - the job is already in a failed state, i.e. ran out of retries
|
|
597
|
-
failJob: {
|
|
598
|
-
path: '/gateway_protocol.Gateway/FailJob',
|
|
599
|
-
requestStream: false,
|
|
600
|
-
responseStream: false,
|
|
601
|
-
requestType: zeebe_pb.FailJobRequest,
|
|
602
|
-
responseType: zeebe_pb.FailJobResponse,
|
|
603
|
-
requestSerialize: serialize_gateway_protocol_FailJobRequest,
|
|
604
|
-
requestDeserialize: deserialize_gateway_protocol_FailJobRequest,
|
|
605
|
-
responseSerialize: serialize_gateway_protocol_FailJobResponse,
|
|
606
|
-
responseDeserialize: deserialize_gateway_protocol_FailJobResponse,
|
|
607
|
-
},
|
|
608
|
-
//
|
|
609
|
-
// Reports a business error (i.e. non-technical) that occurs while processing a job. The error is handled in the process by an error catch event. If there is no error catch event with the specified errorCode then an incident will be raised instead.
|
|
610
|
-
//
|
|
611
|
-
// Errors:
|
|
612
|
-
// NOT_FOUND:
|
|
613
|
-
// - no job was found with the given key
|
|
614
|
-
//
|
|
615
|
-
// FAILED_PRECONDITION:
|
|
616
|
-
// - the job is not in an activated state
|
|
617
|
-
throwError: {
|
|
618
|
-
path: '/gateway_protocol.Gateway/ThrowError',
|
|
619
|
-
requestStream: false,
|
|
620
|
-
responseStream: false,
|
|
621
|
-
requestType: zeebe_pb.ThrowErrorRequest,
|
|
622
|
-
responseType: zeebe_pb.ThrowErrorResponse,
|
|
623
|
-
requestSerialize: serialize_gateway_protocol_ThrowErrorRequest,
|
|
624
|
-
requestDeserialize: deserialize_gateway_protocol_ThrowErrorRequest,
|
|
625
|
-
responseSerialize: serialize_gateway_protocol_ThrowErrorResponse,
|
|
626
|
-
responseDeserialize: deserialize_gateway_protocol_ThrowErrorResponse,
|
|
627
|
-
},
|
|
628
|
-
//
|
|
629
|
-
// Publishes a single message. Messages are published to specific partitions computed from their
|
|
630
|
-
// correlation keys.
|
|
631
|
-
//
|
|
632
|
-
// Errors:
|
|
633
|
-
// ALREADY_EXISTS:
|
|
634
|
-
// - a message with the same ID was previously published (and is still alive)
|
|
635
|
-
publishMessage: {
|
|
636
|
-
path: '/gateway_protocol.Gateway/PublishMessage',
|
|
637
|
-
requestStream: false,
|
|
638
|
-
responseStream: false,
|
|
639
|
-
requestType: zeebe_pb.PublishMessageRequest,
|
|
640
|
-
responseType: zeebe_pb.PublishMessageResponse,
|
|
641
|
-
requestSerialize: serialize_gateway_protocol_PublishMessageRequest,
|
|
642
|
-
requestDeserialize: deserialize_gateway_protocol_PublishMessageRequest,
|
|
643
|
-
responseSerialize: serialize_gateway_protocol_PublishMessageResponse,
|
|
644
|
-
responseDeserialize: deserialize_gateway_protocol_PublishMessageResponse,
|
|
645
|
-
},
|
|
646
|
-
//
|
|
647
|
-
// Resolves a given incident. This simply marks the incident as resolved; most likely a call to
|
|
648
|
-
// UpdateJobRetries or SetVariables will be necessary to actually resolve the
|
|
649
|
-
// problem, following by this call.
|
|
650
|
-
//
|
|
651
|
-
// Errors:
|
|
652
|
-
// NOT_FOUND:
|
|
653
|
-
// - no incident with the given key exists
|
|
654
|
-
resolveIncident: {
|
|
655
|
-
path: '/gateway_protocol.Gateway/ResolveIncident',
|
|
656
|
-
requestStream: false,
|
|
657
|
-
responseStream: false,
|
|
658
|
-
requestType: zeebe_pb.ResolveIncidentRequest,
|
|
659
|
-
responseType: zeebe_pb.ResolveIncidentResponse,
|
|
660
|
-
requestSerialize: serialize_gateway_protocol_ResolveIncidentRequest,
|
|
661
|
-
requestDeserialize: deserialize_gateway_protocol_ResolveIncidentRequest,
|
|
662
|
-
responseSerialize: serialize_gateway_protocol_ResolveIncidentResponse,
|
|
663
|
-
responseDeserialize: deserialize_gateway_protocol_ResolveIncidentResponse,
|
|
664
|
-
},
|
|
665
|
-
//
|
|
666
|
-
// Updates all the variables of a particular scope (e.g. process instance, flow element instance)
|
|
667
|
-
// from the given JSON document.
|
|
668
|
-
//
|
|
669
|
-
// Errors:
|
|
670
|
-
// NOT_FOUND:
|
|
671
|
-
// - no element with the given elementInstanceKey exists
|
|
672
|
-
// INVALID_ARGUMENT:
|
|
673
|
-
// - the given variables document is not a valid JSON document; valid documents are expected to
|
|
674
|
-
// be JSON documents where the root node is an object.
|
|
675
|
-
setVariables: {
|
|
676
|
-
path: '/gateway_protocol.Gateway/SetVariables',
|
|
677
|
-
requestStream: false,
|
|
678
|
-
responseStream: false,
|
|
679
|
-
requestType: zeebe_pb.SetVariablesRequest,
|
|
680
|
-
responseType: zeebe_pb.SetVariablesResponse,
|
|
681
|
-
requestSerialize: serialize_gateway_protocol_SetVariablesRequest,
|
|
682
|
-
requestDeserialize: deserialize_gateway_protocol_SetVariablesRequest,
|
|
683
|
-
responseSerialize: serialize_gateway_protocol_SetVariablesResponse,
|
|
684
|
-
responseDeserialize: deserialize_gateway_protocol_SetVariablesResponse,
|
|
685
|
-
},
|
|
686
|
-
//
|
|
687
|
-
// Obtains the current topology of the cluster the gateway is part of.
|
|
688
|
-
topology: {
|
|
689
|
-
path: '/gateway_protocol.Gateway/Topology',
|
|
690
|
-
requestStream: false,
|
|
691
|
-
responseStream: false,
|
|
692
|
-
requestType: zeebe_pb.TopologyRequest,
|
|
693
|
-
responseType: zeebe_pb.TopologyResponse,
|
|
694
|
-
requestSerialize: serialize_gateway_protocol_TopologyRequest,
|
|
695
|
-
requestDeserialize: deserialize_gateway_protocol_TopologyRequest,
|
|
696
|
-
responseSerialize: serialize_gateway_protocol_TopologyResponse,
|
|
697
|
-
responseDeserialize: deserialize_gateway_protocol_TopologyResponse,
|
|
698
|
-
},
|
|
699
|
-
//
|
|
700
|
-
// Updates the number of retries a job has left. This is mostly useful for jobs that have run out of
|
|
701
|
-
// retries, should the underlying problem be solved.
|
|
702
|
-
//
|
|
703
|
-
// Errors:
|
|
704
|
-
// NOT_FOUND:
|
|
705
|
-
// - no job exists with the given key
|
|
706
|
-
//
|
|
707
|
-
// INVALID_ARGUMENT:
|
|
708
|
-
// - retries is not greater than 0
|
|
709
|
-
updateJobRetries: {
|
|
710
|
-
path: '/gateway_protocol.Gateway/UpdateJobRetries',
|
|
711
|
-
requestStream: false,
|
|
712
|
-
responseStream: false,
|
|
713
|
-
requestType: zeebe_pb.UpdateJobRetriesRequest,
|
|
714
|
-
responseType: zeebe_pb.UpdateJobRetriesResponse,
|
|
715
|
-
requestSerialize: serialize_gateway_protocol_UpdateJobRetriesRequest,
|
|
716
|
-
requestDeserialize: deserialize_gateway_protocol_UpdateJobRetriesRequest,
|
|
717
|
-
responseSerialize: serialize_gateway_protocol_UpdateJobRetriesResponse,
|
|
718
|
-
responseDeserialize: deserialize_gateway_protocol_UpdateJobRetriesResponse,
|
|
719
|
-
},
|
|
720
|
-
//
|
|
721
|
-
// Modifies the process instance. This is done by activating and/or terminating specific elements of the instance.
|
|
722
|
-
//
|
|
723
|
-
// Errors:
|
|
724
|
-
// NOT_FOUND:
|
|
725
|
-
// - no process instance exists with the given key
|
|
726
|
-
//
|
|
727
|
-
// FAILED_PRECONDITION:
|
|
728
|
-
// - trying to activate element inside of a multi-instance
|
|
729
|
-
//
|
|
730
|
-
// INVALID_ARGUMENT:
|
|
731
|
-
// - activating or terminating unknown element
|
|
732
|
-
// - ancestor of element for activation doesn't exist
|
|
733
|
-
// - scope of variable is unknown
|
|
734
|
-
modifyProcessInstance: {
|
|
735
|
-
path: '/gateway_protocol.Gateway/ModifyProcessInstance',
|
|
736
|
-
requestStream: false,
|
|
737
|
-
responseStream: false,
|
|
738
|
-
requestType: zeebe_pb.ModifyProcessInstanceRequest,
|
|
739
|
-
responseType: zeebe_pb.ModifyProcessInstanceResponse,
|
|
740
|
-
requestSerialize: serialize_gateway_protocol_ModifyProcessInstanceRequest,
|
|
741
|
-
requestDeserialize: deserialize_gateway_protocol_ModifyProcessInstanceRequest,
|
|
742
|
-
responseSerialize: serialize_gateway_protocol_ModifyProcessInstanceResponse,
|
|
743
|
-
responseDeserialize: deserialize_gateway_protocol_ModifyProcessInstanceResponse,
|
|
744
|
-
},
|
|
745
|
-
//
|
|
746
|
-
// Migrates the process instance to the specified process definition.
|
|
747
|
-
// In simple terms, this is handled by updating the active element's process.
|
|
748
|
-
//
|
|
749
|
-
// Errors:
|
|
750
|
-
// NOT_FOUND:
|
|
751
|
-
// - no process instance exists with the given key, or it is not active
|
|
752
|
-
// - no process definition exists with the given target definition key
|
|
753
|
-
// - no process instance exists with the given key for the tenants the user is authorized to work with.
|
|
754
|
-
//
|
|
755
|
-
// FAILED_PRECONDITION:
|
|
756
|
-
// - not all active elements in the given process instance are mapped to the elements in the target process definition
|
|
757
|
-
// - a mapping instruction changes the type of an element or event
|
|
758
|
-
// - a mapping instruction refers to an unsupported element (i.e. some elements will be supported later on)
|
|
759
|
-
// - a mapping instruction refers to element in unsupported scenarios.
|
|
760
|
-
// (i.e. migration is not supported when process instance or target process elements contains event subscriptions)
|
|
761
|
-
//
|
|
762
|
-
// INVALID_ARGUMENT:
|
|
763
|
-
// - A `sourceElementId` does not refer to an element in the process instance's process definition
|
|
764
|
-
// - A `targetElementId` does not refer to an element in the target process definition
|
|
765
|
-
// - A `sourceElementId` is mapped by multiple mapping instructions.
|
|
766
|
-
// For example, the engine cannot determine how to migrate a process instance when the instructions are: [A->B, A->C].
|
|
767
|
-
migrateProcessInstance: {
|
|
768
|
-
path: '/gateway_protocol.Gateway/MigrateProcessInstance',
|
|
769
|
-
requestStream: false,
|
|
770
|
-
responseStream: false,
|
|
771
|
-
requestType: zeebe_pb.MigrateProcessInstanceRequest,
|
|
772
|
-
responseType: zeebe_pb.MigrateProcessInstanceResponse,
|
|
773
|
-
requestSerialize: serialize_gateway_protocol_MigrateProcessInstanceRequest,
|
|
774
|
-
requestDeserialize: deserialize_gateway_protocol_MigrateProcessInstanceRequest,
|
|
775
|
-
responseSerialize: serialize_gateway_protocol_MigrateProcessInstanceResponse,
|
|
776
|
-
responseDeserialize: deserialize_gateway_protocol_MigrateProcessInstanceResponse,
|
|
777
|
-
},
|
|
778
|
-
//
|
|
779
|
-
// Updates the deadline of a job using the timeout (in ms) provided. This can be used
|
|
780
|
-
// for extending or shortening the job deadline.
|
|
781
|
-
//
|
|
782
|
-
// Errors:
|
|
783
|
-
// NOT_FOUND:
|
|
784
|
-
// - no job exists with the given key
|
|
785
|
-
//
|
|
786
|
-
// INVALID_STATE:
|
|
787
|
-
// - no deadline exists for the given job key
|
|
788
|
-
updateJobTimeout: {
|
|
789
|
-
path: '/gateway_protocol.Gateway/UpdateJobTimeout',
|
|
790
|
-
requestStream: false,
|
|
791
|
-
responseStream: false,
|
|
792
|
-
requestType: zeebe_pb.UpdateJobTimeoutRequest,
|
|
793
|
-
responseType: zeebe_pb.UpdateJobTimeoutResponse,
|
|
794
|
-
requestSerialize: serialize_gateway_protocol_UpdateJobTimeoutRequest,
|
|
795
|
-
requestDeserialize: deserialize_gateway_protocol_UpdateJobTimeoutRequest,
|
|
796
|
-
responseSerialize: serialize_gateway_protocol_UpdateJobTimeoutResponse,
|
|
797
|
-
responseDeserialize: deserialize_gateway_protocol_UpdateJobTimeoutResponse,
|
|
798
|
-
},
|
|
799
|
-
//
|
|
800
|
-
// Deletes a resource from the state. Once a resource has been deleted it cannot
|
|
801
|
-
// be recovered. If the resource needs to be available again, a new deployment
|
|
802
|
-
// of the resource is required.
|
|
803
|
-
//
|
|
804
|
-
// Deleting a process will cancel any running instances of this process
|
|
805
|
-
// definition. New instances of a deleted process are created using
|
|
806
|
-
// the lastest version that hasn't been deleted. Creating a new
|
|
807
|
-
// process instance is impossible when all versions have been
|
|
808
|
-
// deleted.
|
|
809
|
-
//
|
|
810
|
-
// Deleting a decision requirement definitions could cause incidents in process
|
|
811
|
-
// instances referencing these decisions in a business rule task. A decision
|
|
812
|
-
// will be evaluated with the latest version that hasn't been deleted. If all
|
|
813
|
-
// versions of a decision have been deleted the evaluation is rejected.
|
|
814
|
-
//
|
|
815
|
-
// Errors:
|
|
816
|
-
// NOT_FOUND:
|
|
817
|
-
// - No resource exists with the given key
|
|
818
|
-
//
|
|
819
|
-
deleteResource: {
|
|
820
|
-
path: '/gateway_protocol.Gateway/DeleteResource',
|
|
821
|
-
requestStream: false,
|
|
822
|
-
responseStream: false,
|
|
823
|
-
requestType: zeebe_pb.DeleteResourceRequest,
|
|
824
|
-
responseType: zeebe_pb.DeleteResourceResponse,
|
|
825
|
-
requestSerialize: serialize_gateway_protocol_DeleteResourceRequest,
|
|
826
|
-
requestDeserialize: deserialize_gateway_protocol_DeleteResourceRequest,
|
|
827
|
-
responseSerialize: serialize_gateway_protocol_DeleteResourceResponse,
|
|
828
|
-
responseDeserialize: deserialize_gateway_protocol_DeleteResourceResponse,
|
|
829
|
-
},
|
|
830
|
-
//
|
|
831
|
-
// Broadcasts a signal.
|
|
832
|
-
broadcastSignal: {
|
|
833
|
-
path: '/gateway_protocol.Gateway/BroadcastSignal',
|
|
834
|
-
requestStream: false,
|
|
835
|
-
responseStream: false,
|
|
836
|
-
requestType: zeebe_pb.BroadcastSignalRequest,
|
|
837
|
-
responseType: zeebe_pb.BroadcastSignalResponse,
|
|
838
|
-
requestSerialize: serialize_gateway_protocol_BroadcastSignalRequest,
|
|
839
|
-
requestDeserialize: deserialize_gateway_protocol_BroadcastSignalRequest,
|
|
840
|
-
responseSerialize: serialize_gateway_protocol_BroadcastSignalResponse,
|
|
841
|
-
responseDeserialize: deserialize_gateway_protocol_BroadcastSignalResponse,
|
|
842
|
-
},
|
|
843
|
-
});
|
|
844
|
-
exports.GatewayClient = grpc.makeGenericClientConstructor(GatewayService);
|
|
845
|
-
//# sourceMappingURL=zeebe_grpc_pb.js.map
|