@cratis/chronicle.contracts 16.33.0 → 16.34.0
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/cjs/generated/compliance.d.ts +16 -0
- package/dist/cjs/generated/compliance.d.ts.map +1 -1
- package/dist/cjs/generated/events_constraints.d.ts +1 -1
- package/dist/cjs/generated/events_constraints.d.ts.map +1 -1
- package/dist/cjs/generated/events_constraints.js +9 -7
- package/dist/cjs/generated/events_constraints.js.map +1 -1
- package/dist/cjs/generated/eventsequences.d.ts +3 -0
- package/dist/cjs/generated/eventsequences.d.ts.map +1 -1
- package/dist/cjs/generated/eventsequences.js +54 -0
- package/dist/cjs/generated/eventsequences.js.map +1 -1
- package/dist/cjs/generated/eventstores.d.ts +90 -0
- package/dist/cjs/generated/eventstores.d.ts.map +1 -0
- package/dist/cjs/generated/eventstores.js +501 -0
- package/dist/cjs/generated/eventstores.js.map +1 -0
- package/dist/cjs/generated/index.d.ts +7 -5
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/jobs.d.ts +99 -103
- package/dist/cjs/generated/jobs.d.ts.map +1 -1
- package/dist/cjs/generated/jobs.js +767 -493
- package/dist/cjs/generated/jobs.js.map +1 -1
- package/dist/cjs/generated/namespaces.d.ts +94 -0
- package/dist/cjs/generated/namespaces.d.ts.map +1 -0
- package/dist/cjs/generated/namespaces.js +569 -0
- package/dist/cjs/generated/namespaces.js.map +1 -0
- package/dist/cjs/generated/protobuf-net/bcl.js +0 -87
- package/dist/cjs/generated/protobuf-net/bcl.js.map +1 -1
- package/dist/cjs/generated/security.d.ts +144 -122
- package/dist/cjs/generated/security.d.ts.map +1 -1
- package/dist/cjs/generated/security.js +792 -233
- package/dist/cjs/generated/security.js.map +1 -1
- package/dist/cjs/index.js +39 -37
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/compliance.d.ts +16 -0
- package/dist/esm/generated/compliance.d.ts.map +1 -1
- package/dist/esm/generated/events_constraints.d.ts +1 -1
- package/dist/esm/generated/events_constraints.d.ts.map +1 -1
- package/dist/esm/generated/events_constraints.js +9 -7
- package/dist/esm/generated/events_constraints.js.map +1 -1
- package/dist/esm/generated/eventsequences.d.ts +3 -0
- package/dist/esm/generated/eventsequences.d.ts.map +1 -1
- package/dist/esm/generated/eventsequences.js +54 -0
- package/dist/esm/generated/eventsequences.js.map +1 -1
- package/dist/esm/generated/eventstores.d.ts +90 -0
- package/dist/esm/generated/eventstores.d.ts.map +1 -0
- package/dist/esm/generated/eventstores.js +493 -0
- package/dist/esm/generated/eventstores.js.map +1 -0
- package/dist/esm/generated/index.d.ts +7 -5
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/jobs.d.ts +99 -103
- package/dist/esm/generated/jobs.d.ts.map +1 -1
- package/dist/esm/generated/jobs.js +755 -482
- package/dist/esm/generated/jobs.js.map +1 -1
- package/dist/esm/generated/namespaces.d.ts +94 -0
- package/dist/esm/generated/namespaces.d.ts.map +1 -0
- package/dist/esm/generated/namespaces.js +560 -0
- package/dist/esm/generated/namespaces.js.map +1 -0
- package/dist/esm/generated/protobuf-net/bcl.js +1 -87
- package/dist/esm/generated/protobuf-net/bcl.js.map +1 -1
- package/dist/esm/generated/security.d.ts +144 -122
- package/dist/esm/generated/security.d.ts.map +1 -1
- package/dist/esm/generated/security.js +774 -220
- package/dist/esm/generated/security.js.map +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/compliance.d.ts +16 -0
- package/dist/generated/compliance.d.ts.map +1 -1
- package/dist/generated/compliance.js +91 -0
- package/dist/generated/compliance.js.map +1 -1
- package/dist/generated/events_constraints.d.ts +1 -1
- package/dist/generated/events_constraints.d.ts.map +1 -1
- package/dist/generated/events_constraints.js +9 -7
- package/dist/generated/events_constraints.js.map +1 -1
- package/dist/generated/eventsequences.d.ts +3 -0
- package/dist/generated/eventsequences.d.ts.map +1 -1
- package/dist/generated/eventsequences.js +54 -0
- package/dist/generated/eventsequences.js.map +1 -1
- package/dist/generated/eventstores.d.ts +90 -0
- package/dist/generated/eventstores.d.ts.map +1 -0
- package/dist/generated/eventstores.js +491 -0
- package/dist/generated/eventstores.js.map +1 -0
- package/dist/generated/index.d.ts +7 -5
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +5 -4
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/jobs.d.ts +99 -103
- package/dist/generated/jobs.d.ts.map +1 -1
- package/dist/generated/jobs.js +756 -481
- package/dist/generated/jobs.js.map +1 -1
- package/dist/generated/namespaces.d.ts +94 -0
- package/dist/generated/namespaces.d.ts.map +1 -0
- package/dist/generated/namespaces.js +558 -0
- package/dist/generated/namespaces.js.map +1 -0
- package/dist/generated/security.d.ts +144 -122
- package/dist/generated/security.d.ts.map +1 -1
- package/dist/generated/security.js +775 -219
- package/dist/generated/security.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/compliance.ts +114 -0
- package/generated/events_constraints.ts +10 -8
- package/generated/eventsequences.ts +66 -1
- package/generated/eventstores.ts +622 -0
- package/generated/index.ts +9 -6
- package/generated/jobs.ts +963 -637
- package/generated/namespaces.ts +702 -0
- package/generated/security.ts +1051 -364
- package/package.json +1 -1
- package/dist/cjs/generated/cratis_chronicle_contracts.d.ts +0 -120
- package/dist/cjs/generated/cratis_chronicle_contracts.d.ts.map +0 -1
- package/dist/cjs/generated/cratis_chronicle_contracts.js +0 -297
- package/dist/cjs/generated/cratis_chronicle_contracts.js.map +0 -1
- package/dist/esm/generated/cratis_chronicle_contracts.d.ts +0 -120
- package/dist/esm/generated/cratis_chronicle_contracts.d.ts.map +0 -1
- package/dist/esm/generated/cratis_chronicle_contracts.js +0 -290
- package/dist/esm/generated/cratis_chronicle_contracts.js.map +0 -1
- package/dist/generated/cratis_chronicle_contracts.d.ts +0 -120
- package/dist/generated/cratis_chronicle_contracts.d.ts.map +0 -1
- package/dist/generated/cratis_chronicle_contracts.js +0 -288
- package/dist/generated/cratis_chronicle_contracts.js.map +0 -1
- package/generated/cratis_chronicle_contracts.ts +0 -408
|
@@ -1,52 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var wire = require('@bufbuild/protobuf/wire');
|
|
4
|
-
var empty = require('./google/protobuf/empty.js');
|
|
5
4
|
var bcl = require('./protobuf-net/bcl.js');
|
|
6
5
|
|
|
7
|
-
exports.JobError = void 0;
|
|
8
|
-
(function (JobError) {
|
|
9
|
-
JobError[JobError["ZERO"] = 0] = "ZERO";
|
|
10
|
-
JobError[JobError["NotFound"] = 1] = "NotFound";
|
|
11
|
-
JobError[JobError["TypeIsNotAJobStateType"] = 2] = "TypeIsNotAJobStateType";
|
|
12
|
-
JobError[JobError["TypeIsNotAssociatedWithAJobType"] = 3] = "TypeIsNotAssociatedWithAJobType";
|
|
13
|
-
JobError[JobError["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
-
})(exports.JobError || (exports.JobError = {}));
|
|
15
|
-
function jobErrorFromJSON(object) {
|
|
16
|
-
switch (object) {
|
|
17
|
-
case 0:
|
|
18
|
-
case "ZERO":
|
|
19
|
-
return exports.JobError.ZERO;
|
|
20
|
-
case 1:
|
|
21
|
-
case "NotFound":
|
|
22
|
-
return exports.JobError.NotFound;
|
|
23
|
-
case 2:
|
|
24
|
-
case "TypeIsNotAJobStateType":
|
|
25
|
-
return exports.JobError.TypeIsNotAJobStateType;
|
|
26
|
-
case 3:
|
|
27
|
-
case "TypeIsNotAssociatedWithAJobType":
|
|
28
|
-
return exports.JobError.TypeIsNotAssociatedWithAJobType;
|
|
29
|
-
case -1:
|
|
30
|
-
case "UNRECOGNIZED":
|
|
31
|
-
default:
|
|
32
|
-
return exports.JobError.UNRECOGNIZED;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function jobErrorToJSON(object) {
|
|
36
|
-
switch (object) {
|
|
37
|
-
case exports.JobError.ZERO:
|
|
38
|
-
return "ZERO";
|
|
39
|
-
case exports.JobError.NotFound:
|
|
40
|
-
return "NotFound";
|
|
41
|
-
case exports.JobError.TypeIsNotAJobStateType:
|
|
42
|
-
return "TypeIsNotAJobStateType";
|
|
43
|
-
case exports.JobError.TypeIsNotAssociatedWithAJobType:
|
|
44
|
-
return "TypeIsNotAssociatedWithAJobType";
|
|
45
|
-
case exports.JobError.UNRECOGNIZED:
|
|
46
|
-
default:
|
|
47
|
-
return "UNRECOGNIZED";
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
6
|
exports.JobStatus = void 0;
|
|
51
7
|
(function (JobStatus) {
|
|
52
8
|
JobStatus[JobStatus["None"] = 0] = "None";
|
|
@@ -128,7 +84,7 @@ function jobStatusToJSON(object) {
|
|
|
128
84
|
}
|
|
129
85
|
exports.JobStepStatus = void 0;
|
|
130
86
|
(function (JobStepStatus) {
|
|
131
|
-
JobStepStatus[JobStepStatus["
|
|
87
|
+
JobStepStatus[JobStepStatus["JOB_STEP_STATUS_Unknown"] = 0] = "JOB_STEP_STATUS_Unknown";
|
|
132
88
|
JobStepStatus[JobStepStatus["Scheduled"] = 1] = "Scheduled";
|
|
133
89
|
JobStepStatus[JobStepStatus["JOB_STEP_STATUS_Running"] = 2] = "JOB_STEP_STATUS_Running";
|
|
134
90
|
JobStepStatus[JobStepStatus["JOB_STEP_STATUS_CompletedSuccessfully"] = 3] = "JOB_STEP_STATUS_CompletedSuccessfully";
|
|
@@ -141,8 +97,8 @@ exports.JobStepStatus = void 0;
|
|
|
141
97
|
function jobStepStatusFromJSON(object) {
|
|
142
98
|
switch (object) {
|
|
143
99
|
case 0:
|
|
144
|
-
case "
|
|
145
|
-
return exports.JobStepStatus.
|
|
100
|
+
case "JOB_STEP_STATUS_Unknown":
|
|
101
|
+
return exports.JobStepStatus.JOB_STEP_STATUS_Unknown;
|
|
146
102
|
case 1:
|
|
147
103
|
case "Scheduled":
|
|
148
104
|
return exports.JobStepStatus.Scheduled;
|
|
@@ -172,8 +128,8 @@ function jobStepStatusFromJSON(object) {
|
|
|
172
128
|
}
|
|
173
129
|
function jobStepStatusToJSON(object) {
|
|
174
130
|
switch (object) {
|
|
175
|
-
case exports.JobStepStatus.
|
|
176
|
-
return "
|
|
131
|
+
case exports.JobStepStatus.JOB_STEP_STATUS_Unknown:
|
|
132
|
+
return "JOB_STEP_STATUS_Unknown";
|
|
177
133
|
case exports.JobStepStatus.Scheduled:
|
|
178
134
|
return "Scheduled";
|
|
179
135
|
case exports.JobStepStatus.JOB_STEP_STATUS_Running:
|
|
@@ -193,10 +149,53 @@ function jobStepStatusToJSON(object) {
|
|
|
193
149
|
return "UNRECOGNIZED";
|
|
194
150
|
}
|
|
195
151
|
}
|
|
196
|
-
|
|
197
|
-
|
|
152
|
+
exports.ValidationResultSeverity = void 0;
|
|
153
|
+
(function (ValidationResultSeverity) {
|
|
154
|
+
ValidationResultSeverity[ValidationResultSeverity["VALIDATION_RESULT_SEVERITY_Unknown"] = 0] = "VALIDATION_RESULT_SEVERITY_Unknown";
|
|
155
|
+
ValidationResultSeverity[ValidationResultSeverity["Information"] = 1] = "Information";
|
|
156
|
+
ValidationResultSeverity[ValidationResultSeverity["Warning"] = 2] = "Warning";
|
|
157
|
+
ValidationResultSeverity[ValidationResultSeverity["Error"] = 3] = "Error";
|
|
158
|
+
ValidationResultSeverity[ValidationResultSeverity["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
159
|
+
})(exports.ValidationResultSeverity || (exports.ValidationResultSeverity = {}));
|
|
160
|
+
function validationResultSeverityFromJSON(object) {
|
|
161
|
+
switch (object) {
|
|
162
|
+
case 0:
|
|
163
|
+
case "VALIDATION_RESULT_SEVERITY_Unknown":
|
|
164
|
+
return exports.ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown;
|
|
165
|
+
case 1:
|
|
166
|
+
case "Information":
|
|
167
|
+
return exports.ValidationResultSeverity.Information;
|
|
168
|
+
case 2:
|
|
169
|
+
case "Warning":
|
|
170
|
+
return exports.ValidationResultSeverity.Warning;
|
|
171
|
+
case 3:
|
|
172
|
+
case "Error":
|
|
173
|
+
return exports.ValidationResultSeverity.Error;
|
|
174
|
+
case -1:
|
|
175
|
+
case "UNRECOGNIZED":
|
|
176
|
+
default:
|
|
177
|
+
return exports.ValidationResultSeverity.UNRECOGNIZED;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function validationResultSeverityToJSON(object) {
|
|
181
|
+
switch (object) {
|
|
182
|
+
case exports.ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown:
|
|
183
|
+
return "VALIDATION_RESULT_SEVERITY_Unknown";
|
|
184
|
+
case exports.ValidationResultSeverity.Information:
|
|
185
|
+
return "Information";
|
|
186
|
+
case exports.ValidationResultSeverity.Warning:
|
|
187
|
+
return "Warning";
|
|
188
|
+
case exports.ValidationResultSeverity.Error:
|
|
189
|
+
return "Error";
|
|
190
|
+
case exports.ValidationResultSeverity.UNRECOGNIZED:
|
|
191
|
+
default:
|
|
192
|
+
return "UNRECOGNIZED";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function createBaseAllJobsRequest() {
|
|
196
|
+
return { EventStore: "", Namespace: "" };
|
|
198
197
|
}
|
|
199
|
-
const
|
|
198
|
+
const AllJobsRequest = {
|
|
200
199
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
201
200
|
if (message.EventStore !== "") {
|
|
202
201
|
writer.uint32(10).string(message.EventStore);
|
|
@@ -204,15 +203,12 @@ const DeleteJob = {
|
|
|
204
203
|
if (message.Namespace !== "") {
|
|
205
204
|
writer.uint32(18).string(message.Namespace);
|
|
206
205
|
}
|
|
207
|
-
if (message.JobId !== undefined) {
|
|
208
|
-
bcl.Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
209
|
-
}
|
|
210
206
|
return writer;
|
|
211
207
|
},
|
|
212
208
|
decode(input, length) {
|
|
213
209
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
214
210
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
215
|
-
const message =
|
|
211
|
+
const message = createBaseAllJobsRequest();
|
|
216
212
|
while (reader.pos < end) {
|
|
217
213
|
const tag = reader.uint32();
|
|
218
214
|
switch (tag >>> 3) {
|
|
@@ -230,13 +226,6 @@ const DeleteJob = {
|
|
|
230
226
|
message.Namespace = reader.string();
|
|
231
227
|
continue;
|
|
232
228
|
}
|
|
233
|
-
case 3: {
|
|
234
|
-
if (tag !== 26) {
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
message.JobId = bcl.Guid.decode(reader, reader.uint32());
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
229
|
}
|
|
241
230
|
if ((tag & 7) === 4 || tag === 0) {
|
|
242
231
|
break;
|
|
@@ -249,7 +238,6 @@ const DeleteJob = {
|
|
|
249
238
|
return {
|
|
250
239
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
251
240
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
252
|
-
JobId: isSet(object.JobId) ? bcl.Guid.fromJSON(object.JobId) : undefined,
|
|
253
241
|
};
|
|
254
242
|
},
|
|
255
243
|
toJSON(message) {
|
|
@@ -260,42 +248,54 @@ const DeleteJob = {
|
|
|
260
248
|
if (message.Namespace !== "") {
|
|
261
249
|
obj.Namespace = message.Namespace;
|
|
262
250
|
}
|
|
263
|
-
if (message.JobId !== undefined) {
|
|
264
|
-
obj.JobId = bcl.Guid.toJSON(message.JobId);
|
|
265
|
-
}
|
|
266
251
|
return obj;
|
|
267
252
|
},
|
|
268
253
|
create(base) {
|
|
269
|
-
return
|
|
254
|
+
return AllJobsRequest.fromPartial(base ?? {});
|
|
270
255
|
},
|
|
271
256
|
fromPartial(object) {
|
|
272
|
-
const message =
|
|
257
|
+
const message = createBaseAllJobsRequest();
|
|
273
258
|
message.EventStore = object.EventStore ?? "";
|
|
274
259
|
message.Namespace = object.Namespace ?? "";
|
|
275
|
-
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? bcl.Guid.fromPartial(object.JobId) : undefined;
|
|
276
260
|
return message;
|
|
277
261
|
},
|
|
278
262
|
};
|
|
279
|
-
function
|
|
280
|
-
return {
|
|
263
|
+
function createBaseCommandResult() {
|
|
264
|
+
return {
|
|
265
|
+
CorrelationId: undefined,
|
|
266
|
+
IsAuthorized: false,
|
|
267
|
+
ValidationResults: [],
|
|
268
|
+
ExceptionMessages: [],
|
|
269
|
+
ExceptionStackTrace: "",
|
|
270
|
+
AuthorizationFailureReason: "",
|
|
271
|
+
};
|
|
281
272
|
}
|
|
282
|
-
const
|
|
273
|
+
const CommandResult = {
|
|
283
274
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
284
|
-
if (message.
|
|
285
|
-
writer.uint32(10).
|
|
275
|
+
if (message.CorrelationId !== undefined) {
|
|
276
|
+
bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
286
277
|
}
|
|
287
|
-
if (message.
|
|
288
|
-
writer.uint32(
|
|
278
|
+
if (message.IsAuthorized !== false) {
|
|
279
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
289
280
|
}
|
|
290
|
-
|
|
291
|
-
|
|
281
|
+
for (const v of message.ValidationResults) {
|
|
282
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
283
|
+
}
|
|
284
|
+
for (const v of message.ExceptionMessages) {
|
|
285
|
+
writer.uint32(34).string(v);
|
|
286
|
+
}
|
|
287
|
+
if (message.ExceptionStackTrace !== "") {
|
|
288
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
289
|
+
}
|
|
290
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
291
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
292
292
|
}
|
|
293
293
|
return writer;
|
|
294
294
|
},
|
|
295
295
|
decode(input, length) {
|
|
296
296
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
297
297
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
298
|
-
const message =
|
|
298
|
+
const message = createBaseCommandResult();
|
|
299
299
|
while (reader.pos < end) {
|
|
300
300
|
const tag = reader.uint32();
|
|
301
301
|
switch (tag >>> 3) {
|
|
@@ -303,21 +303,42 @@ const GetJobRequest = {
|
|
|
303
303
|
if (tag !== 10) {
|
|
304
304
|
break;
|
|
305
305
|
}
|
|
306
|
-
message.
|
|
306
|
+
message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
|
|
307
307
|
continue;
|
|
308
308
|
}
|
|
309
309
|
case 2: {
|
|
310
|
-
if (tag !==
|
|
310
|
+
if (tag !== 16) {
|
|
311
311
|
break;
|
|
312
312
|
}
|
|
313
|
-
message.
|
|
313
|
+
message.IsAuthorized = reader.bool();
|
|
314
314
|
continue;
|
|
315
315
|
}
|
|
316
316
|
case 3: {
|
|
317
317
|
if (tag !== 26) {
|
|
318
318
|
break;
|
|
319
319
|
}
|
|
320
|
-
message.
|
|
320
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
case 4: {
|
|
324
|
+
if (tag !== 34) {
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
message.ExceptionMessages.push(reader.string());
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
case 5: {
|
|
331
|
+
if (tag !== 42) {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
message.ExceptionStackTrace = reader.string();
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
case 6: {
|
|
338
|
+
if (tag !== 50) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
message.AuthorizationFailureReason = reader.string();
|
|
321
342
|
continue;
|
|
322
343
|
}
|
|
323
344
|
}
|
|
@@ -330,39 +351,97 @@ const GetJobRequest = {
|
|
|
330
351
|
},
|
|
331
352
|
fromJSON(object) {
|
|
332
353
|
return {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
354
|
+
CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
|
|
355
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
356
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
357
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
358
|
+
: [],
|
|
359
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
360
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
361
|
+
: [],
|
|
362
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
363
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
364
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
365
|
+
: "",
|
|
336
366
|
};
|
|
337
367
|
},
|
|
338
368
|
toJSON(message) {
|
|
339
369
|
const obj = {};
|
|
340
|
-
if (message.
|
|
341
|
-
obj.
|
|
370
|
+
if (message.CorrelationId !== undefined) {
|
|
371
|
+
obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
|
|
342
372
|
}
|
|
343
|
-
if (message.
|
|
344
|
-
obj.
|
|
373
|
+
if (message.IsAuthorized !== false) {
|
|
374
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
345
375
|
}
|
|
346
|
-
if (message.
|
|
347
|
-
obj.
|
|
376
|
+
if (message.ValidationResults?.length) {
|
|
377
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
378
|
+
}
|
|
379
|
+
if (message.ExceptionMessages?.length) {
|
|
380
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
381
|
+
}
|
|
382
|
+
if (message.ExceptionStackTrace !== "") {
|
|
383
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
384
|
+
}
|
|
385
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
386
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
348
387
|
}
|
|
349
388
|
return obj;
|
|
350
389
|
},
|
|
351
390
|
create(base) {
|
|
352
|
-
return
|
|
391
|
+
return CommandResult.fromPartial(base ?? {});
|
|
353
392
|
},
|
|
354
393
|
fromPartial(object) {
|
|
355
|
-
const message =
|
|
356
|
-
message.
|
|
357
|
-
|
|
358
|
-
|
|
394
|
+
const message = createBaseCommandResult();
|
|
395
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
396
|
+
? bcl.Guid.fromPartial(object.CorrelationId)
|
|
397
|
+
: undefined;
|
|
398
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
399
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
400
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
401
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
402
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
359
403
|
return message;
|
|
360
404
|
},
|
|
361
405
|
};
|
|
362
|
-
function
|
|
406
|
+
function createBaseDateTimeOffset() {
|
|
407
|
+
return {};
|
|
408
|
+
}
|
|
409
|
+
const DateTimeOffset = {
|
|
410
|
+
encode(_, writer = new wire.BinaryWriter()) {
|
|
411
|
+
return writer;
|
|
412
|
+
},
|
|
413
|
+
decode(input, length) {
|
|
414
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
415
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
416
|
+
const message = createBaseDateTimeOffset();
|
|
417
|
+
while (reader.pos < end) {
|
|
418
|
+
const tag = reader.uint32();
|
|
419
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
422
|
+
reader.skip(tag & 7);
|
|
423
|
+
}
|
|
424
|
+
return message;
|
|
425
|
+
},
|
|
426
|
+
fromJSON(_) {
|
|
427
|
+
return {};
|
|
428
|
+
},
|
|
429
|
+
toJSON(_) {
|
|
430
|
+
const obj = {};
|
|
431
|
+
return obj;
|
|
432
|
+
},
|
|
433
|
+
create(base) {
|
|
434
|
+
return DateTimeOffset.fromPartial(base ?? {});
|
|
435
|
+
},
|
|
436
|
+
fromPartial(_) {
|
|
437
|
+
const message = createBaseDateTimeOffset();
|
|
438
|
+
return message;
|
|
439
|
+
},
|
|
440
|
+
};
|
|
441
|
+
function createBaseDeleteJobRequest() {
|
|
363
442
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
364
443
|
}
|
|
365
|
-
const
|
|
444
|
+
const DeleteJobRequest = {
|
|
366
445
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
367
446
|
if (message.EventStore !== "") {
|
|
368
447
|
writer.uint32(10).string(message.EventStore);
|
|
@@ -378,7 +457,7 @@ const GetJobStepsRequest = {
|
|
|
378
457
|
decode(input, length) {
|
|
379
458
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
380
459
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
381
|
-
const message =
|
|
460
|
+
const message = createBaseDeleteJobRequest();
|
|
382
461
|
while (reader.pos < end) {
|
|
383
462
|
const tag = reader.uint32();
|
|
384
463
|
switch (tag >>> 3) {
|
|
@@ -432,20 +511,20 @@ const GetJobStepsRequest = {
|
|
|
432
511
|
return obj;
|
|
433
512
|
},
|
|
434
513
|
create(base) {
|
|
435
|
-
return
|
|
514
|
+
return DeleteJobRequest.fromPartial(base ?? {});
|
|
436
515
|
},
|
|
437
516
|
fromPartial(object) {
|
|
438
|
-
const message =
|
|
517
|
+
const message = createBaseDeleteJobRequest();
|
|
439
518
|
message.EventStore = object.EventStore ?? "";
|
|
440
519
|
message.Namespace = object.Namespace ?? "";
|
|
441
520
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? bcl.Guid.fromPartial(object.JobId) : undefined;
|
|
442
521
|
return message;
|
|
443
522
|
},
|
|
444
523
|
};
|
|
445
|
-
function
|
|
446
|
-
return { EventStore: "", Namespace: "" };
|
|
524
|
+
function createBaseGetJobStepsRequest() {
|
|
525
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
447
526
|
}
|
|
448
|
-
const
|
|
527
|
+
const GetJobStepsRequest = {
|
|
449
528
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
450
529
|
if (message.EventStore !== "") {
|
|
451
530
|
writer.uint32(10).string(message.EventStore);
|
|
@@ -453,12 +532,15 @@ const GetJobsRequest = {
|
|
|
453
532
|
if (message.Namespace !== "") {
|
|
454
533
|
writer.uint32(18).string(message.Namespace);
|
|
455
534
|
}
|
|
535
|
+
if (message.JobId !== undefined) {
|
|
536
|
+
bcl.Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
537
|
+
}
|
|
456
538
|
return writer;
|
|
457
539
|
},
|
|
458
540
|
decode(input, length) {
|
|
459
541
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
460
542
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
461
|
-
const message =
|
|
543
|
+
const message = createBaseGetJobStepsRequest();
|
|
462
544
|
while (reader.pos < end) {
|
|
463
545
|
const tag = reader.uint32();
|
|
464
546
|
switch (tag >>> 3) {
|
|
@@ -476,6 +558,13 @@ const GetJobsRequest = {
|
|
|
476
558
|
message.Namespace = reader.string();
|
|
477
559
|
continue;
|
|
478
560
|
}
|
|
561
|
+
case 3: {
|
|
562
|
+
if (tag !== 26) {
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
message.JobId = bcl.Guid.decode(reader, reader.uint32());
|
|
566
|
+
continue;
|
|
567
|
+
}
|
|
479
568
|
}
|
|
480
569
|
if ((tag & 7) === 4 || tag === 0) {
|
|
481
570
|
break;
|
|
@@ -488,6 +577,7 @@ const GetJobsRequest = {
|
|
|
488
577
|
return {
|
|
489
578
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
490
579
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
580
|
+
JobId: isSet(object.JobId) ? bcl.Guid.fromJSON(object.JobId) : undefined,
|
|
491
581
|
};
|
|
492
582
|
},
|
|
493
583
|
toJSON(message) {
|
|
@@ -498,40 +588,112 @@ const GetJobsRequest = {
|
|
|
498
588
|
if (message.Namespace !== "") {
|
|
499
589
|
obj.Namespace = message.Namespace;
|
|
500
590
|
}
|
|
591
|
+
if (message.JobId !== undefined) {
|
|
592
|
+
obj.JobId = bcl.Guid.toJSON(message.JobId);
|
|
593
|
+
}
|
|
501
594
|
return obj;
|
|
502
595
|
},
|
|
503
596
|
create(base) {
|
|
504
|
-
return
|
|
597
|
+
return GetJobStepsRequest.fromPartial(base ?? {});
|
|
505
598
|
},
|
|
506
599
|
fromPartial(object) {
|
|
507
|
-
const message =
|
|
600
|
+
const message = createBaseGetJobStepsRequest();
|
|
508
601
|
message.EventStore = object.EventStore ?? "";
|
|
509
602
|
message.Namespace = object.Namespace ?? "";
|
|
603
|
+
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? bcl.Guid.fromPartial(object.JobId) : undefined;
|
|
510
604
|
return message;
|
|
511
605
|
},
|
|
512
606
|
};
|
|
513
|
-
function
|
|
514
|
-
return {
|
|
607
|
+
function createBaseJobProgress() {
|
|
608
|
+
return {
|
|
609
|
+
TotalSteps: 0,
|
|
610
|
+
SuccessfulSteps: 0,
|
|
611
|
+
FailedSteps: 0,
|
|
612
|
+
StoppedSteps: 0,
|
|
613
|
+
IsCompleted: false,
|
|
614
|
+
IsStopped: false,
|
|
615
|
+
Message: "",
|
|
616
|
+
};
|
|
515
617
|
}
|
|
516
|
-
const
|
|
618
|
+
const JobProgress = {
|
|
517
619
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
518
|
-
|
|
519
|
-
|
|
620
|
+
if (message.TotalSteps !== 0) {
|
|
621
|
+
writer.uint32(8).int32(message.TotalSteps);
|
|
622
|
+
}
|
|
623
|
+
if (message.SuccessfulSteps !== 0) {
|
|
624
|
+
writer.uint32(16).int32(message.SuccessfulSteps);
|
|
625
|
+
}
|
|
626
|
+
if (message.FailedSteps !== 0) {
|
|
627
|
+
writer.uint32(24).int32(message.FailedSteps);
|
|
628
|
+
}
|
|
629
|
+
if (message.StoppedSteps !== 0) {
|
|
630
|
+
writer.uint32(32).int32(message.StoppedSteps);
|
|
631
|
+
}
|
|
632
|
+
if (message.IsCompleted !== false) {
|
|
633
|
+
writer.uint32(40).bool(message.IsCompleted);
|
|
634
|
+
}
|
|
635
|
+
if (message.IsStopped !== false) {
|
|
636
|
+
writer.uint32(48).bool(message.IsStopped);
|
|
637
|
+
}
|
|
638
|
+
if (message.Message !== "") {
|
|
639
|
+
writer.uint32(58).string(message.Message);
|
|
520
640
|
}
|
|
521
641
|
return writer;
|
|
522
642
|
},
|
|
523
643
|
decode(input, length) {
|
|
524
644
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
525
645
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
526
|
-
const message =
|
|
646
|
+
const message = createBaseJobProgress();
|
|
527
647
|
while (reader.pos < end) {
|
|
528
648
|
const tag = reader.uint32();
|
|
529
649
|
switch (tag >>> 3) {
|
|
530
650
|
case 1: {
|
|
531
|
-
if (tag !==
|
|
651
|
+
if (tag !== 8) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
message.TotalSteps = reader.int32();
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
657
|
+
case 2: {
|
|
658
|
+
if (tag !== 16) {
|
|
659
|
+
break;
|
|
660
|
+
}
|
|
661
|
+
message.SuccessfulSteps = reader.int32();
|
|
662
|
+
continue;
|
|
663
|
+
}
|
|
664
|
+
case 3: {
|
|
665
|
+
if (tag !== 24) {
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
message.FailedSteps = reader.int32();
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
case 4: {
|
|
672
|
+
if (tag !== 32) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
message.StoppedSteps = reader.int32();
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
case 5: {
|
|
679
|
+
if (tag !== 40) {
|
|
680
|
+
break;
|
|
681
|
+
}
|
|
682
|
+
message.IsCompleted = reader.bool();
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
case 6: {
|
|
686
|
+
if (tag !== 48) {
|
|
687
|
+
break;
|
|
688
|
+
}
|
|
689
|
+
message.IsStopped = reader.bool();
|
|
690
|
+
continue;
|
|
691
|
+
}
|
|
692
|
+
case 7: {
|
|
693
|
+
if (tag !== 58) {
|
|
532
694
|
break;
|
|
533
695
|
}
|
|
534
|
-
message.
|
|
696
|
+
message.Message = reader.string();
|
|
535
697
|
continue;
|
|
536
698
|
}
|
|
537
699
|
}
|
|
@@ -543,165 +705,108 @@ const IEnumerableJob = {
|
|
|
543
705
|
return message;
|
|
544
706
|
},
|
|
545
707
|
fromJSON(object) {
|
|
546
|
-
return {
|
|
708
|
+
return {
|
|
709
|
+
TotalSteps: isSet(object.TotalSteps) ? globalThis.Number(object.TotalSteps) : 0,
|
|
710
|
+
SuccessfulSteps: isSet(object.SuccessfulSteps) ? globalThis.Number(object.SuccessfulSteps) : 0,
|
|
711
|
+
FailedSteps: isSet(object.FailedSteps) ? globalThis.Number(object.FailedSteps) : 0,
|
|
712
|
+
StoppedSteps: isSet(object.StoppedSteps) ? globalThis.Number(object.StoppedSteps) : 0,
|
|
713
|
+
IsCompleted: isSet(object.IsCompleted) ? globalThis.Boolean(object.IsCompleted) : false,
|
|
714
|
+
IsStopped: isSet(object.IsStopped) ? globalThis.Boolean(object.IsStopped) : false,
|
|
715
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
716
|
+
};
|
|
547
717
|
},
|
|
548
718
|
toJSON(message) {
|
|
549
719
|
const obj = {};
|
|
550
|
-
if (message.
|
|
551
|
-
obj.
|
|
720
|
+
if (message.TotalSteps !== 0) {
|
|
721
|
+
obj.TotalSteps = Math.round(message.TotalSteps);
|
|
552
722
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
create(base) {
|
|
556
|
-
return IEnumerableJob.fromPartial(base ?? {});
|
|
557
|
-
},
|
|
558
|
-
fromPartial(object) {
|
|
559
|
-
const message = createBaseIEnumerableJob();
|
|
560
|
-
message.items = object.items?.map((e) => Job.fromPartial(e)) || [];
|
|
561
|
-
return message;
|
|
562
|
-
},
|
|
563
|
-
};
|
|
564
|
-
function createBaseIEnumerableJobStep() {
|
|
565
|
-
return { items: [] };
|
|
566
|
-
}
|
|
567
|
-
const IEnumerableJobStep = {
|
|
568
|
-
encode(message, writer = new wire.BinaryWriter()) {
|
|
569
|
-
for (const v of message.items) {
|
|
570
|
-
JobStep.encode(v, writer.uint32(10).fork()).join();
|
|
723
|
+
if (message.SuccessfulSteps !== 0) {
|
|
724
|
+
obj.SuccessfulSteps = Math.round(message.SuccessfulSteps);
|
|
571
725
|
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
decode(input, length) {
|
|
575
|
-
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
576
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
577
|
-
const message = createBaseIEnumerableJobStep();
|
|
578
|
-
while (reader.pos < end) {
|
|
579
|
-
const tag = reader.uint32();
|
|
580
|
-
switch (tag >>> 3) {
|
|
581
|
-
case 1: {
|
|
582
|
-
if (tag !== 10) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
message.items.push(JobStep.decode(reader, reader.uint32()));
|
|
586
|
-
continue;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
reader.skip(tag & 7);
|
|
726
|
+
if (message.FailedSteps !== 0) {
|
|
727
|
+
obj.FailedSteps = Math.round(message.FailedSteps);
|
|
593
728
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
729
|
+
if (message.StoppedSteps !== 0) {
|
|
730
|
+
obj.StoppedSteps = Math.round(message.StoppedSteps);
|
|
731
|
+
}
|
|
732
|
+
if (message.IsCompleted !== false) {
|
|
733
|
+
obj.IsCompleted = message.IsCompleted;
|
|
734
|
+
}
|
|
735
|
+
if (message.IsStopped !== false) {
|
|
736
|
+
obj.IsStopped = message.IsStopped;
|
|
737
|
+
}
|
|
738
|
+
if (message.Message !== "") {
|
|
739
|
+
obj.Message = message.Message;
|
|
603
740
|
}
|
|
604
741
|
return obj;
|
|
605
742
|
},
|
|
606
743
|
create(base) {
|
|
607
|
-
return
|
|
744
|
+
return JobProgress.fromPartial(base ?? {});
|
|
608
745
|
},
|
|
609
746
|
fromPartial(object) {
|
|
610
|
-
const message =
|
|
611
|
-
message.
|
|
747
|
+
const message = createBaseJobProgress();
|
|
748
|
+
message.TotalSteps = object.TotalSteps ?? 0;
|
|
749
|
+
message.SuccessfulSteps = object.SuccessfulSteps ?? 0;
|
|
750
|
+
message.FailedSteps = object.FailedSteps ?? 0;
|
|
751
|
+
message.StoppedSteps = object.StoppedSteps ?? 0;
|
|
752
|
+
message.IsCompleted = object.IsCompleted ?? false;
|
|
753
|
+
message.IsStopped = object.IsStopped ?? false;
|
|
754
|
+
message.Message = object.Message ?? "";
|
|
612
755
|
return message;
|
|
613
756
|
},
|
|
614
757
|
};
|
|
615
|
-
function
|
|
616
|
-
return {
|
|
617
|
-
Id: undefined,
|
|
618
|
-
Details: "",
|
|
619
|
-
Type: "",
|
|
620
|
-
Status: 0,
|
|
621
|
-
Created: undefined,
|
|
622
|
-
StatusChanges: [],
|
|
623
|
-
Progress: undefined,
|
|
624
|
-
};
|
|
758
|
+
function createBaseJobStatusChanged() {
|
|
759
|
+
return { Status: 0, Occurred: undefined, ExceptionMessages: [], ExceptionStackTrace: "" };
|
|
625
760
|
}
|
|
626
|
-
const
|
|
761
|
+
const JobStatusChanged = {
|
|
627
762
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
628
|
-
if (message.Id !== undefined) {
|
|
629
|
-
bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
630
|
-
}
|
|
631
|
-
if (message.Details !== "") {
|
|
632
|
-
writer.uint32(18).string(message.Details);
|
|
633
|
-
}
|
|
634
|
-
if (message.Type !== "") {
|
|
635
|
-
writer.uint32(26).string(message.Type);
|
|
636
|
-
}
|
|
637
763
|
if (message.Status !== 0) {
|
|
638
|
-
writer.uint32(
|
|
764
|
+
writer.uint32(8).int32(message.Status);
|
|
639
765
|
}
|
|
640
|
-
if (message.
|
|
641
|
-
SerializableDateTimeOffset.encode(message.
|
|
766
|
+
if (message.Occurred !== undefined) {
|
|
767
|
+
SerializableDateTimeOffset.encode(message.Occurred, writer.uint32(18).fork()).join();
|
|
642
768
|
}
|
|
643
|
-
for (const v of message.
|
|
644
|
-
|
|
769
|
+
for (const v of message.ExceptionMessages) {
|
|
770
|
+
writer.uint32(26).string(v);
|
|
645
771
|
}
|
|
646
|
-
if (message.
|
|
647
|
-
|
|
772
|
+
if (message.ExceptionStackTrace !== "") {
|
|
773
|
+
writer.uint32(34).string(message.ExceptionStackTrace);
|
|
648
774
|
}
|
|
649
775
|
return writer;
|
|
650
776
|
},
|
|
651
777
|
decode(input, length) {
|
|
652
778
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
653
779
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
654
|
-
const message =
|
|
780
|
+
const message = createBaseJobStatusChanged();
|
|
655
781
|
while (reader.pos < end) {
|
|
656
782
|
const tag = reader.uint32();
|
|
657
783
|
switch (tag >>> 3) {
|
|
658
784
|
case 1: {
|
|
659
|
-
if (tag !==
|
|
785
|
+
if (tag !== 8) {
|
|
660
786
|
break;
|
|
661
787
|
}
|
|
662
|
-
message.
|
|
788
|
+
message.Status = reader.int32();
|
|
663
789
|
continue;
|
|
664
790
|
}
|
|
665
791
|
case 2: {
|
|
666
792
|
if (tag !== 18) {
|
|
667
793
|
break;
|
|
668
794
|
}
|
|
669
|
-
message.
|
|
795
|
+
message.Occurred = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
670
796
|
continue;
|
|
671
797
|
}
|
|
672
798
|
case 3: {
|
|
673
799
|
if (tag !== 26) {
|
|
674
800
|
break;
|
|
675
801
|
}
|
|
676
|
-
message.
|
|
802
|
+
message.ExceptionMessages.push(reader.string());
|
|
677
803
|
continue;
|
|
678
804
|
}
|
|
679
805
|
case 4: {
|
|
680
|
-
if (tag !==
|
|
681
|
-
break;
|
|
682
|
-
}
|
|
683
|
-
message.Status = reader.int32();
|
|
684
|
-
continue;
|
|
685
|
-
}
|
|
686
|
-
case 5: {
|
|
687
|
-
if (tag !== 42) {
|
|
688
|
-
break;
|
|
689
|
-
}
|
|
690
|
-
message.Created = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
691
|
-
continue;
|
|
692
|
-
}
|
|
693
|
-
case 6: {
|
|
694
|
-
if (tag !== 50) {
|
|
695
|
-
break;
|
|
696
|
-
}
|
|
697
|
-
message.StatusChanges.push(JobStatusChanged.decode(reader, reader.uint32()));
|
|
698
|
-
continue;
|
|
699
|
-
}
|
|
700
|
-
case 7: {
|
|
701
|
-
if (tag !== 58) {
|
|
806
|
+
if (tag !== 34) {
|
|
702
807
|
break;
|
|
703
808
|
}
|
|
704
|
-
message.
|
|
809
|
+
message.ExceptionStackTrace = reader.string();
|
|
705
810
|
continue;
|
|
706
811
|
}
|
|
707
812
|
}
|
|
@@ -714,101 +819,61 @@ const Job = {
|
|
|
714
819
|
},
|
|
715
820
|
fromJSON(object) {
|
|
716
821
|
return {
|
|
717
|
-
Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined,
|
|
718
|
-
Details: isSet(object.Details) ? globalThis.String(object.Details) : "",
|
|
719
|
-
Type: isSet(object.Type) ? globalThis.String(object.Type) : "",
|
|
720
822
|
Status: isSet(object.Status) ? jobStatusFromJSON(object.Status) : 0,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
? object.
|
|
823
|
+
Occurred: isSet(object.Occurred) ? SerializableDateTimeOffset.fromJSON(object.Occurred) : undefined,
|
|
824
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
825
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
724
826
|
: [],
|
|
725
|
-
|
|
827
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
726
828
|
};
|
|
727
829
|
},
|
|
728
830
|
toJSON(message) {
|
|
729
831
|
const obj = {};
|
|
730
|
-
if (message.Id !== undefined) {
|
|
731
|
-
obj.Id = bcl.Guid.toJSON(message.Id);
|
|
732
|
-
}
|
|
733
|
-
if (message.Details !== "") {
|
|
734
|
-
obj.Details = message.Details;
|
|
735
|
-
}
|
|
736
|
-
if (message.Type !== "") {
|
|
737
|
-
obj.Type = message.Type;
|
|
738
|
-
}
|
|
739
832
|
if (message.Status !== 0) {
|
|
740
833
|
obj.Status = jobStatusToJSON(message.Status);
|
|
741
834
|
}
|
|
742
|
-
if (message.
|
|
743
|
-
obj.
|
|
835
|
+
if (message.Occurred !== undefined) {
|
|
836
|
+
obj.Occurred = SerializableDateTimeOffset.toJSON(message.Occurred);
|
|
744
837
|
}
|
|
745
|
-
if (message.
|
|
746
|
-
obj.
|
|
838
|
+
if (message.ExceptionMessages?.length) {
|
|
839
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
747
840
|
}
|
|
748
|
-
if (message.
|
|
749
|
-
obj.
|
|
841
|
+
if (message.ExceptionStackTrace !== "") {
|
|
842
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
750
843
|
}
|
|
751
844
|
return obj;
|
|
752
845
|
},
|
|
753
846
|
create(base) {
|
|
754
|
-
return
|
|
847
|
+
return JobStatusChanged.fromPartial(base ?? {});
|
|
755
848
|
},
|
|
756
849
|
fromPartial(object) {
|
|
757
|
-
const message =
|
|
758
|
-
message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
|
|
759
|
-
message.Details = object.Details ?? "";
|
|
760
|
-
message.Type = object.Type ?? "";
|
|
850
|
+
const message = createBaseJobStatusChanged();
|
|
761
851
|
message.Status = object.Status ?? 0;
|
|
762
|
-
message.
|
|
763
|
-
? SerializableDateTimeOffset.fromPartial(object.
|
|
764
|
-
: undefined;
|
|
765
|
-
message.StatusChanges = object.StatusChanges?.map((e) => JobStatusChanged.fromPartial(e)) || [];
|
|
766
|
-
message.Progress = (object.Progress !== undefined && object.Progress !== null)
|
|
767
|
-
? JobProgress.fromPartial(object.Progress)
|
|
852
|
+
message.Occurred = (object.Occurred !== undefined && object.Occurred !== null)
|
|
853
|
+
? SerializableDateTimeOffset.fromPartial(object.Occurred)
|
|
768
854
|
: undefined;
|
|
855
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
856
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
769
857
|
return message;
|
|
770
858
|
},
|
|
771
859
|
};
|
|
772
|
-
function
|
|
773
|
-
return {
|
|
774
|
-
TotalSteps: 0,
|
|
775
|
-
SuccessfulSteps: 0,
|
|
776
|
-
FailedSteps: 0,
|
|
777
|
-
StoppedSteps: 0,
|
|
778
|
-
IsCompleted: false,
|
|
779
|
-
IsStopped: false,
|
|
780
|
-
Message: "",
|
|
781
|
-
};
|
|
860
|
+
function createBaseJobStepProgress() {
|
|
861
|
+
return { Percentage: 0, Message: "" };
|
|
782
862
|
}
|
|
783
|
-
const
|
|
863
|
+
const JobStepProgress = {
|
|
784
864
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
785
|
-
if (message.
|
|
786
|
-
writer.uint32(8).int32(message.
|
|
787
|
-
}
|
|
788
|
-
if (message.SuccessfulSteps !== 0) {
|
|
789
|
-
writer.uint32(16).int32(message.SuccessfulSteps);
|
|
790
|
-
}
|
|
791
|
-
if (message.FailedSteps !== 0) {
|
|
792
|
-
writer.uint32(24).int32(message.FailedSteps);
|
|
793
|
-
}
|
|
794
|
-
if (message.StoppedSteps !== 0) {
|
|
795
|
-
writer.uint32(32).int32(message.StoppedSteps);
|
|
796
|
-
}
|
|
797
|
-
if (message.IsCompleted !== false) {
|
|
798
|
-
writer.uint32(40).bool(message.IsCompleted);
|
|
799
|
-
}
|
|
800
|
-
if (message.IsStopped !== false) {
|
|
801
|
-
writer.uint32(48).bool(message.IsStopped);
|
|
865
|
+
if (message.Percentage !== 0) {
|
|
866
|
+
writer.uint32(8).int32(message.Percentage);
|
|
802
867
|
}
|
|
803
868
|
if (message.Message !== "") {
|
|
804
|
-
writer.uint32(
|
|
869
|
+
writer.uint32(18).string(message.Message);
|
|
805
870
|
}
|
|
806
871
|
return writer;
|
|
807
872
|
},
|
|
808
873
|
decode(input, length) {
|
|
809
874
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
810
875
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
811
|
-
const message =
|
|
876
|
+
const message = createBaseJobStepProgress();
|
|
812
877
|
while (reader.pos < end) {
|
|
813
878
|
const tag = reader.uint32();
|
|
814
879
|
switch (tag >>> 3) {
|
|
@@ -816,46 +881,11 @@ const JobProgress = {
|
|
|
816
881
|
if (tag !== 8) {
|
|
817
882
|
break;
|
|
818
883
|
}
|
|
819
|
-
message.
|
|
884
|
+
message.Percentage = reader.int32();
|
|
820
885
|
continue;
|
|
821
886
|
}
|
|
822
887
|
case 2: {
|
|
823
|
-
if (tag !==
|
|
824
|
-
break;
|
|
825
|
-
}
|
|
826
|
-
message.SuccessfulSteps = reader.int32();
|
|
827
|
-
continue;
|
|
828
|
-
}
|
|
829
|
-
case 3: {
|
|
830
|
-
if (tag !== 24) {
|
|
831
|
-
break;
|
|
832
|
-
}
|
|
833
|
-
message.FailedSteps = reader.int32();
|
|
834
|
-
continue;
|
|
835
|
-
}
|
|
836
|
-
case 4: {
|
|
837
|
-
if (tag !== 32) {
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
message.StoppedSteps = reader.int32();
|
|
841
|
-
continue;
|
|
842
|
-
}
|
|
843
|
-
case 5: {
|
|
844
|
-
if (tag !== 40) {
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
message.IsCompleted = reader.bool();
|
|
848
|
-
continue;
|
|
849
|
-
}
|
|
850
|
-
case 6: {
|
|
851
|
-
if (tag !== 48) {
|
|
852
|
-
break;
|
|
853
|
-
}
|
|
854
|
-
message.IsStopped = reader.bool();
|
|
855
|
-
continue;
|
|
856
|
-
}
|
|
857
|
-
case 7: {
|
|
858
|
-
if (tag !== 58) {
|
|
888
|
+
if (tag !== 18) {
|
|
859
889
|
break;
|
|
860
890
|
}
|
|
861
891
|
message.Message = reader.string();
|
|
@@ -871,34 +901,14 @@ const JobProgress = {
|
|
|
871
901
|
},
|
|
872
902
|
fromJSON(object) {
|
|
873
903
|
return {
|
|
874
|
-
|
|
875
|
-
SuccessfulSteps: isSet(object.SuccessfulSteps) ? globalThis.Number(object.SuccessfulSteps) : 0,
|
|
876
|
-
FailedSteps: isSet(object.FailedSteps) ? globalThis.Number(object.FailedSteps) : 0,
|
|
877
|
-
StoppedSteps: isSet(object.StoppedSteps) ? globalThis.Number(object.StoppedSteps) : 0,
|
|
878
|
-
IsCompleted: isSet(object.IsCompleted) ? globalThis.Boolean(object.IsCompleted) : false,
|
|
879
|
-
IsStopped: isSet(object.IsStopped) ? globalThis.Boolean(object.IsStopped) : false,
|
|
904
|
+
Percentage: isSet(object.Percentage) ? globalThis.Number(object.Percentage) : 0,
|
|
880
905
|
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
881
906
|
};
|
|
882
907
|
},
|
|
883
908
|
toJSON(message) {
|
|
884
909
|
const obj = {};
|
|
885
|
-
if (message.
|
|
886
|
-
obj.
|
|
887
|
-
}
|
|
888
|
-
if (message.SuccessfulSteps !== 0) {
|
|
889
|
-
obj.SuccessfulSteps = Math.round(message.SuccessfulSteps);
|
|
890
|
-
}
|
|
891
|
-
if (message.FailedSteps !== 0) {
|
|
892
|
-
obj.FailedSteps = Math.round(message.FailedSteps);
|
|
893
|
-
}
|
|
894
|
-
if (message.StoppedSteps !== 0) {
|
|
895
|
-
obj.StoppedSteps = Math.round(message.StoppedSteps);
|
|
896
|
-
}
|
|
897
|
-
if (message.IsCompleted !== false) {
|
|
898
|
-
obj.IsCompleted = message.IsCompleted;
|
|
899
|
-
}
|
|
900
|
-
if (message.IsStopped !== false) {
|
|
901
|
-
obj.IsStopped = message.IsStopped;
|
|
910
|
+
if (message.Percentage !== 0) {
|
|
911
|
+
obj.Percentage = Math.round(message.Percentage);
|
|
902
912
|
}
|
|
903
913
|
if (message.Message !== "") {
|
|
904
914
|
obj.Message = message.Message;
|
|
@@ -906,24 +916,19 @@ const JobProgress = {
|
|
|
906
916
|
return obj;
|
|
907
917
|
},
|
|
908
918
|
create(base) {
|
|
909
|
-
return
|
|
919
|
+
return JobStepProgress.fromPartial(base ?? {});
|
|
910
920
|
},
|
|
911
921
|
fromPartial(object) {
|
|
912
|
-
const message =
|
|
913
|
-
message.
|
|
914
|
-
message.SuccessfulSteps = object.SuccessfulSteps ?? 0;
|
|
915
|
-
message.FailedSteps = object.FailedSteps ?? 0;
|
|
916
|
-
message.StoppedSteps = object.StoppedSteps ?? 0;
|
|
917
|
-
message.IsCompleted = object.IsCompleted ?? false;
|
|
918
|
-
message.IsStopped = object.IsStopped ?? false;
|
|
922
|
+
const message = createBaseJobStepProgress();
|
|
923
|
+
message.Percentage = object.Percentage ?? 0;
|
|
919
924
|
message.Message = object.Message ?? "";
|
|
920
925
|
return message;
|
|
921
926
|
},
|
|
922
927
|
};
|
|
923
|
-
function
|
|
928
|
+
function createBaseJobStepStatusChanged() {
|
|
924
929
|
return { Status: 0, Occurred: undefined, ExceptionMessages: [], ExceptionStackTrace: "" };
|
|
925
930
|
}
|
|
926
|
-
const
|
|
931
|
+
const JobStepStatusChanged = {
|
|
927
932
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
928
933
|
if (message.Status !== 0) {
|
|
929
934
|
writer.uint32(8).int32(message.Status);
|
|
@@ -942,7 +947,7 @@ const JobStatusChanged = {
|
|
|
942
947
|
decode(input, length) {
|
|
943
948
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
944
949
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
945
|
-
const message =
|
|
950
|
+
const message = createBaseJobStepStatusChanged();
|
|
946
951
|
while (reader.pos < end) {
|
|
947
952
|
const tag = reader.uint32();
|
|
948
953
|
switch (tag >>> 3) {
|
|
@@ -984,7 +989,7 @@ const JobStatusChanged = {
|
|
|
984
989
|
},
|
|
985
990
|
fromJSON(object) {
|
|
986
991
|
return {
|
|
987
|
-
Status: isSet(object.Status) ?
|
|
992
|
+
Status: isSet(object.Status) ? jobStepStatusFromJSON(object.Status) : 0,
|
|
988
993
|
Occurred: isSet(object.Occurred) ? SerializableDateTimeOffset.fromJSON(object.Occurred) : undefined,
|
|
989
994
|
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
990
995
|
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
@@ -995,7 +1000,7 @@ const JobStatusChanged = {
|
|
|
995
1000
|
toJSON(message) {
|
|
996
1001
|
const obj = {};
|
|
997
1002
|
if (message.Status !== 0) {
|
|
998
|
-
obj.Status =
|
|
1003
|
+
obj.Status = jobStepStatusToJSON(message.Status);
|
|
999
1004
|
}
|
|
1000
1005
|
if (message.Occurred !== undefined) {
|
|
1001
1006
|
obj.Occurred = SerializableDateTimeOffset.toJSON(message.Occurred);
|
|
@@ -1009,10 +1014,10 @@ const JobStatusChanged = {
|
|
|
1009
1014
|
return obj;
|
|
1010
1015
|
},
|
|
1011
1016
|
create(base) {
|
|
1012
|
-
return
|
|
1017
|
+
return JobStepStatusChanged.fromPartial(base ?? {});
|
|
1013
1018
|
},
|
|
1014
1019
|
fromPartial(object) {
|
|
1015
|
-
const message =
|
|
1020
|
+
const message = createBaseJobStepStatusChanged();
|
|
1016
1021
|
message.Status = object.Status ?? 0;
|
|
1017
1022
|
message.Occurred = (object.Occurred !== undefined && object.Occurred !== null)
|
|
1018
1023
|
? SerializableDateTimeOffset.fromPartial(object.Occurred)
|
|
@@ -1022,10 +1027,10 @@ const JobStatusChanged = {
|
|
|
1022
1027
|
return message;
|
|
1023
1028
|
},
|
|
1024
1029
|
};
|
|
1025
|
-
function
|
|
1030
|
+
function createBaseJobStepSummaryResponse() {
|
|
1026
1031
|
return { Id: undefined, Type: "", Name: "", Status: 0, StatusChanges: [], Progress: undefined };
|
|
1027
1032
|
}
|
|
1028
|
-
const
|
|
1033
|
+
const JobStepSummaryResponse = {
|
|
1029
1034
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1030
1035
|
if (message.Id !== undefined) {
|
|
1031
1036
|
bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
@@ -1050,7 +1055,7 @@ const JobStep = {
|
|
|
1050
1055
|
decode(input, length) {
|
|
1051
1056
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1052
1057
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1053
|
-
const message =
|
|
1058
|
+
const message = createBaseJobStepSummaryResponse();
|
|
1054
1059
|
while (reader.pos < end) {
|
|
1055
1060
|
const tag = reader.uint32();
|
|
1056
1061
|
switch (tag >>> 3) {
|
|
@@ -1139,10 +1144,10 @@ const JobStep = {
|
|
|
1139
1144
|
return obj;
|
|
1140
1145
|
},
|
|
1141
1146
|
create(base) {
|
|
1142
|
-
return
|
|
1147
|
+
return JobStepSummaryResponse.fromPartial(base ?? {});
|
|
1143
1148
|
},
|
|
1144
1149
|
fromPartial(object) {
|
|
1145
|
-
const message =
|
|
1150
|
+
const message = createBaseJobStepSummaryResponse();
|
|
1146
1151
|
message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
|
|
1147
1152
|
message.Type = object.Type ?? "";
|
|
1148
1153
|
message.Name = object.Name ?? "";
|
|
@@ -1154,38 +1159,96 @@ const JobStep = {
|
|
|
1154
1159
|
return message;
|
|
1155
1160
|
},
|
|
1156
1161
|
};
|
|
1157
|
-
function
|
|
1158
|
-
return {
|
|
1162
|
+
function createBaseJobSummaryResponse() {
|
|
1163
|
+
return {
|
|
1164
|
+
Id: undefined,
|
|
1165
|
+
Details: "",
|
|
1166
|
+
Type: "",
|
|
1167
|
+
Status: 0,
|
|
1168
|
+
Created: undefined,
|
|
1169
|
+
StatusChanges: [],
|
|
1170
|
+
Progress: undefined,
|
|
1171
|
+
};
|
|
1159
1172
|
}
|
|
1160
|
-
const
|
|
1173
|
+
const JobSummaryResponse = {
|
|
1161
1174
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1162
|
-
if (message.
|
|
1163
|
-
writer.uint32(
|
|
1175
|
+
if (message.Id !== undefined) {
|
|
1176
|
+
bcl.Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
1164
1177
|
}
|
|
1165
|
-
if (message.
|
|
1166
|
-
writer.uint32(18).string(message.
|
|
1178
|
+
if (message.Details !== "") {
|
|
1179
|
+
writer.uint32(18).string(message.Details);
|
|
1180
|
+
}
|
|
1181
|
+
if (message.Type !== "") {
|
|
1182
|
+
writer.uint32(26).string(message.Type);
|
|
1183
|
+
}
|
|
1184
|
+
if (message.Status !== 0) {
|
|
1185
|
+
writer.uint32(32).int32(message.Status);
|
|
1186
|
+
}
|
|
1187
|
+
if (message.Created !== undefined) {
|
|
1188
|
+
DateTimeOffset.encode(message.Created, writer.uint32(42).fork()).join();
|
|
1189
|
+
}
|
|
1190
|
+
for (const v of message.StatusChanges) {
|
|
1191
|
+
JobStatusChanged.encode(v, writer.uint32(50).fork()).join();
|
|
1192
|
+
}
|
|
1193
|
+
if (message.Progress !== undefined) {
|
|
1194
|
+
JobProgress.encode(message.Progress, writer.uint32(58).fork()).join();
|
|
1167
1195
|
}
|
|
1168
1196
|
return writer;
|
|
1169
1197
|
},
|
|
1170
1198
|
decode(input, length) {
|
|
1171
1199
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1172
1200
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1173
|
-
const message =
|
|
1201
|
+
const message = createBaseJobSummaryResponse();
|
|
1174
1202
|
while (reader.pos < end) {
|
|
1175
1203
|
const tag = reader.uint32();
|
|
1176
1204
|
switch (tag >>> 3) {
|
|
1177
1205
|
case 1: {
|
|
1178
|
-
if (tag !==
|
|
1206
|
+
if (tag !== 10) {
|
|
1179
1207
|
break;
|
|
1180
1208
|
}
|
|
1181
|
-
message.
|
|
1209
|
+
message.Id = bcl.Guid.decode(reader, reader.uint32());
|
|
1182
1210
|
continue;
|
|
1183
1211
|
}
|
|
1184
1212
|
case 2: {
|
|
1185
1213
|
if (tag !== 18) {
|
|
1186
1214
|
break;
|
|
1187
1215
|
}
|
|
1188
|
-
message.
|
|
1216
|
+
message.Details = reader.string();
|
|
1217
|
+
continue;
|
|
1218
|
+
}
|
|
1219
|
+
case 3: {
|
|
1220
|
+
if (tag !== 26) {
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
message.Type = reader.string();
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1226
|
+
case 4: {
|
|
1227
|
+
if (tag !== 32) {
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
message.Status = reader.int32();
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1233
|
+
case 5: {
|
|
1234
|
+
if (tag !== 42) {
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
message.Created = DateTimeOffset.decode(reader, reader.uint32());
|
|
1238
|
+
continue;
|
|
1239
|
+
}
|
|
1240
|
+
case 6: {
|
|
1241
|
+
if (tag !== 50) {
|
|
1242
|
+
break;
|
|
1243
|
+
}
|
|
1244
|
+
message.StatusChanges.push(JobStatusChanged.decode(reader, reader.uint32()));
|
|
1245
|
+
continue;
|
|
1246
|
+
}
|
|
1247
|
+
case 7: {
|
|
1248
|
+
if (tag !== 58) {
|
|
1249
|
+
break;
|
|
1250
|
+
}
|
|
1251
|
+
message.Progress = JobProgress.decode(reader, reader.uint32());
|
|
1189
1252
|
continue;
|
|
1190
1253
|
}
|
|
1191
1254
|
}
|
|
@@ -1198,84 +1261,142 @@ const JobStepProgress = {
|
|
|
1198
1261
|
},
|
|
1199
1262
|
fromJSON(object) {
|
|
1200
1263
|
return {
|
|
1201
|
-
|
|
1202
|
-
|
|
1264
|
+
Id: isSet(object.Id) ? bcl.Guid.fromJSON(object.Id) : undefined,
|
|
1265
|
+
Details: isSet(object.Details) ? globalThis.String(object.Details) : "",
|
|
1266
|
+
Type: isSet(object.Type) ? globalThis.String(object.Type) : "",
|
|
1267
|
+
Status: isSet(object.Status) ? jobStatusFromJSON(object.Status) : 0,
|
|
1268
|
+
Created: isSet(object.Created) ? DateTimeOffset.fromJSON(object.Created) : undefined,
|
|
1269
|
+
StatusChanges: globalThis.Array.isArray(object?.StatusChanges)
|
|
1270
|
+
? object.StatusChanges.map((e) => JobStatusChanged.fromJSON(e))
|
|
1271
|
+
: [],
|
|
1272
|
+
Progress: isSet(object.Progress) ? JobProgress.fromJSON(object.Progress) : undefined,
|
|
1203
1273
|
};
|
|
1204
1274
|
},
|
|
1205
1275
|
toJSON(message) {
|
|
1206
1276
|
const obj = {};
|
|
1207
|
-
if (message.
|
|
1208
|
-
obj.
|
|
1277
|
+
if (message.Id !== undefined) {
|
|
1278
|
+
obj.Id = bcl.Guid.toJSON(message.Id);
|
|
1209
1279
|
}
|
|
1210
|
-
if (message.
|
|
1211
|
-
obj.
|
|
1280
|
+
if (message.Details !== "") {
|
|
1281
|
+
obj.Details = message.Details;
|
|
1282
|
+
}
|
|
1283
|
+
if (message.Type !== "") {
|
|
1284
|
+
obj.Type = message.Type;
|
|
1285
|
+
}
|
|
1286
|
+
if (message.Status !== 0) {
|
|
1287
|
+
obj.Status = jobStatusToJSON(message.Status);
|
|
1288
|
+
}
|
|
1289
|
+
if (message.Created !== undefined) {
|
|
1290
|
+
obj.Created = DateTimeOffset.toJSON(message.Created);
|
|
1291
|
+
}
|
|
1292
|
+
if (message.StatusChanges?.length) {
|
|
1293
|
+
obj.StatusChanges = message.StatusChanges.map((e) => JobStatusChanged.toJSON(e));
|
|
1294
|
+
}
|
|
1295
|
+
if (message.Progress !== undefined) {
|
|
1296
|
+
obj.Progress = JobProgress.toJSON(message.Progress);
|
|
1212
1297
|
}
|
|
1213
1298
|
return obj;
|
|
1214
1299
|
},
|
|
1215
1300
|
create(base) {
|
|
1216
|
-
return
|
|
1301
|
+
return JobSummaryResponse.fromPartial(base ?? {});
|
|
1217
1302
|
},
|
|
1218
1303
|
fromPartial(object) {
|
|
1219
|
-
const message =
|
|
1220
|
-
message.
|
|
1221
|
-
message.
|
|
1304
|
+
const message = createBaseJobSummaryResponse();
|
|
1305
|
+
message.Id = (object.Id !== undefined && object.Id !== null) ? bcl.Guid.fromPartial(object.Id) : undefined;
|
|
1306
|
+
message.Details = object.Details ?? "";
|
|
1307
|
+
message.Type = object.Type ?? "";
|
|
1308
|
+
message.Status = object.Status ?? 0;
|
|
1309
|
+
message.Created = (object.Created !== undefined && object.Created !== null)
|
|
1310
|
+
? DateTimeOffset.fromPartial(object.Created)
|
|
1311
|
+
: undefined;
|
|
1312
|
+
message.StatusChanges = object.StatusChanges?.map((e) => JobStatusChanged.fromPartial(e)) || [];
|
|
1313
|
+
message.Progress = (object.Progress !== undefined && object.Progress !== null)
|
|
1314
|
+
? JobProgress.fromPartial(object.Progress)
|
|
1315
|
+
: undefined;
|
|
1222
1316
|
return message;
|
|
1223
1317
|
},
|
|
1224
1318
|
};
|
|
1225
|
-
function
|
|
1226
|
-
return {
|
|
1319
|
+
function createBaseQueryResultIEnumerableJobStepSummaryResponse() {
|
|
1320
|
+
return {
|
|
1321
|
+
CorrelationId: undefined,
|
|
1322
|
+
IsAuthorized: false,
|
|
1323
|
+
ValidationResults: [],
|
|
1324
|
+
ExceptionMessages: [],
|
|
1325
|
+
ExceptionStackTrace: "",
|
|
1326
|
+
Data: [],
|
|
1327
|
+
};
|
|
1227
1328
|
}
|
|
1228
|
-
const
|
|
1329
|
+
const QueryResultIEnumerableJobStepSummaryResponse = {
|
|
1229
1330
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1230
|
-
if (message.
|
|
1231
|
-
writer.uint32(
|
|
1331
|
+
if (message.CorrelationId !== undefined) {
|
|
1332
|
+
bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1232
1333
|
}
|
|
1233
|
-
if (message.
|
|
1234
|
-
|
|
1334
|
+
if (message.IsAuthorized !== false) {
|
|
1335
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1336
|
+
}
|
|
1337
|
+
for (const v of message.ValidationResults) {
|
|
1338
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
1235
1339
|
}
|
|
1236
1340
|
for (const v of message.ExceptionMessages) {
|
|
1237
|
-
writer.uint32(
|
|
1341
|
+
writer.uint32(34).string(v);
|
|
1238
1342
|
}
|
|
1239
1343
|
if (message.ExceptionStackTrace !== "") {
|
|
1240
|
-
writer.uint32(
|
|
1344
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1345
|
+
}
|
|
1346
|
+
for (const v of message.Data) {
|
|
1347
|
+
JobStepSummaryResponse.encode(v, writer.uint32(50).fork()).join();
|
|
1241
1348
|
}
|
|
1242
1349
|
return writer;
|
|
1243
1350
|
},
|
|
1244
1351
|
decode(input, length) {
|
|
1245
1352
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1246
1353
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1247
|
-
const message =
|
|
1354
|
+
const message = createBaseQueryResultIEnumerableJobStepSummaryResponse();
|
|
1248
1355
|
while (reader.pos < end) {
|
|
1249
1356
|
const tag = reader.uint32();
|
|
1250
1357
|
switch (tag >>> 3) {
|
|
1251
1358
|
case 1: {
|
|
1252
|
-
if (tag !==
|
|
1359
|
+
if (tag !== 10) {
|
|
1253
1360
|
break;
|
|
1254
1361
|
}
|
|
1255
|
-
message.
|
|
1362
|
+
message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
|
|
1256
1363
|
continue;
|
|
1257
1364
|
}
|
|
1258
1365
|
case 2: {
|
|
1259
|
-
if (tag !==
|
|
1366
|
+
if (tag !== 16) {
|
|
1260
1367
|
break;
|
|
1261
1368
|
}
|
|
1262
|
-
message.
|
|
1369
|
+
message.IsAuthorized = reader.bool();
|
|
1263
1370
|
continue;
|
|
1264
1371
|
}
|
|
1265
1372
|
case 3: {
|
|
1266
1373
|
if (tag !== 26) {
|
|
1267
1374
|
break;
|
|
1268
1375
|
}
|
|
1269
|
-
message.
|
|
1376
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1270
1377
|
continue;
|
|
1271
1378
|
}
|
|
1272
1379
|
case 4: {
|
|
1273
1380
|
if (tag !== 34) {
|
|
1274
1381
|
break;
|
|
1275
1382
|
}
|
|
1383
|
+
message.ExceptionMessages.push(reader.string());
|
|
1384
|
+
continue;
|
|
1385
|
+
}
|
|
1386
|
+
case 5: {
|
|
1387
|
+
if (tag !== 42) {
|
|
1388
|
+
break;
|
|
1389
|
+
}
|
|
1276
1390
|
message.ExceptionStackTrace = reader.string();
|
|
1277
1391
|
continue;
|
|
1278
1392
|
}
|
|
1393
|
+
case 6: {
|
|
1394
|
+
if (tag !== 50) {
|
|
1395
|
+
break;
|
|
1396
|
+
}
|
|
1397
|
+
message.Data.push(JobStepSummaryResponse.decode(reader, reader.uint32()));
|
|
1398
|
+
continue;
|
|
1399
|
+
}
|
|
1279
1400
|
}
|
|
1280
1401
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1281
1402
|
break;
|
|
@@ -1286,21 +1407,30 @@ const JobStepStatusChanged = {
|
|
|
1286
1407
|
},
|
|
1287
1408
|
fromJSON(object) {
|
|
1288
1409
|
return {
|
|
1289
|
-
|
|
1290
|
-
|
|
1410
|
+
CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1411
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1412
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1413
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
1414
|
+
: [],
|
|
1291
1415
|
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1292
1416
|
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
1293
1417
|
: [],
|
|
1294
1418
|
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1419
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
1420
|
+
? object.Data.map((e) => JobStepSummaryResponse.fromJSON(e))
|
|
1421
|
+
: [],
|
|
1295
1422
|
};
|
|
1296
1423
|
},
|
|
1297
1424
|
toJSON(message) {
|
|
1298
1425
|
const obj = {};
|
|
1299
|
-
if (message.
|
|
1300
|
-
obj.
|
|
1426
|
+
if (message.CorrelationId !== undefined) {
|
|
1427
|
+
obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
|
|
1301
1428
|
}
|
|
1302
|
-
if (message.
|
|
1303
|
-
obj.
|
|
1429
|
+
if (message.IsAuthorized !== false) {
|
|
1430
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1431
|
+
}
|
|
1432
|
+
if (message.ValidationResults?.length) {
|
|
1433
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1304
1434
|
}
|
|
1305
1435
|
if (message.ExceptionMessages?.length) {
|
|
1306
1436
|
obj.ExceptionMessages = message.ExceptionMessages;
|
|
@@ -1308,39 +1438,63 @@ const JobStepStatusChanged = {
|
|
|
1308
1438
|
if (message.ExceptionStackTrace !== "") {
|
|
1309
1439
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1310
1440
|
}
|
|
1441
|
+
if (message.Data?.length) {
|
|
1442
|
+
obj.Data = message.Data.map((e) => JobStepSummaryResponse.toJSON(e));
|
|
1443
|
+
}
|
|
1311
1444
|
return obj;
|
|
1312
1445
|
},
|
|
1313
1446
|
create(base) {
|
|
1314
|
-
return
|
|
1447
|
+
return QueryResultIEnumerableJobStepSummaryResponse.fromPartial(base ?? {});
|
|
1315
1448
|
},
|
|
1316
1449
|
fromPartial(object) {
|
|
1317
|
-
const message =
|
|
1318
|
-
message.
|
|
1319
|
-
|
|
1320
|
-
? SerializableDateTimeOffset.fromPartial(object.Occurred)
|
|
1450
|
+
const message = createBaseQueryResultIEnumerableJobStepSummaryResponse();
|
|
1451
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1452
|
+
? bcl.Guid.fromPartial(object.CorrelationId)
|
|
1321
1453
|
: undefined;
|
|
1454
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1455
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1322
1456
|
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1323
1457
|
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1458
|
+
message.Data = object.Data?.map((e) => JobStepSummaryResponse.fromPartial(e)) || [];
|
|
1324
1459
|
return message;
|
|
1325
1460
|
},
|
|
1326
1461
|
};
|
|
1327
|
-
function
|
|
1328
|
-
return {
|
|
1462
|
+
function createBaseQueryResultIEnumerableJobSummaryResponse() {
|
|
1463
|
+
return {
|
|
1464
|
+
CorrelationId: undefined,
|
|
1465
|
+
IsAuthorized: false,
|
|
1466
|
+
ValidationResults: [],
|
|
1467
|
+
ExceptionMessages: [],
|
|
1468
|
+
ExceptionStackTrace: "",
|
|
1469
|
+
Data: [],
|
|
1470
|
+
};
|
|
1329
1471
|
}
|
|
1330
|
-
const
|
|
1472
|
+
const QueryResultIEnumerableJobSummaryResponse = {
|
|
1331
1473
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1332
|
-
if (message.
|
|
1333
|
-
|
|
1474
|
+
if (message.CorrelationId !== undefined) {
|
|
1475
|
+
bcl.Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1476
|
+
}
|
|
1477
|
+
if (message.IsAuthorized !== false) {
|
|
1478
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1334
1479
|
}
|
|
1335
|
-
|
|
1336
|
-
writer.uint32(
|
|
1480
|
+
for (const v of message.ValidationResults) {
|
|
1481
|
+
ValidationResult.encode(v, writer.uint32(26).fork()).join();
|
|
1482
|
+
}
|
|
1483
|
+
for (const v of message.ExceptionMessages) {
|
|
1484
|
+
writer.uint32(34).string(v);
|
|
1485
|
+
}
|
|
1486
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1487
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1488
|
+
}
|
|
1489
|
+
for (const v of message.Data) {
|
|
1490
|
+
JobSummaryResponse.encode(v, writer.uint32(50).fork()).join();
|
|
1337
1491
|
}
|
|
1338
1492
|
return writer;
|
|
1339
1493
|
},
|
|
1340
1494
|
decode(input, length) {
|
|
1341
1495
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1342
1496
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1343
|
-
const message =
|
|
1497
|
+
const message = createBaseQueryResultIEnumerableJobSummaryResponse();
|
|
1344
1498
|
while (reader.pos < end) {
|
|
1345
1499
|
const tag = reader.uint32();
|
|
1346
1500
|
switch (tag >>> 3) {
|
|
@@ -1348,14 +1502,42 @@ const OneOfJobJobError = {
|
|
|
1348
1502
|
if (tag !== 10) {
|
|
1349
1503
|
break;
|
|
1350
1504
|
}
|
|
1351
|
-
message.
|
|
1505
|
+
message.CorrelationId = bcl.Guid.decode(reader, reader.uint32());
|
|
1352
1506
|
continue;
|
|
1353
1507
|
}
|
|
1354
1508
|
case 2: {
|
|
1355
1509
|
if (tag !== 16) {
|
|
1356
1510
|
break;
|
|
1357
1511
|
}
|
|
1358
|
-
message.
|
|
1512
|
+
message.IsAuthorized = reader.bool();
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
case 3: {
|
|
1516
|
+
if (tag !== 26) {
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1520
|
+
continue;
|
|
1521
|
+
}
|
|
1522
|
+
case 4: {
|
|
1523
|
+
if (tag !== 34) {
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
message.ExceptionMessages.push(reader.string());
|
|
1527
|
+
continue;
|
|
1528
|
+
}
|
|
1529
|
+
case 5: {
|
|
1530
|
+
if (tag !== 42) {
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
message.ExceptionStackTrace = reader.string();
|
|
1534
|
+
continue;
|
|
1535
|
+
}
|
|
1536
|
+
case 6: {
|
|
1537
|
+
if (tag !== 50) {
|
|
1538
|
+
break;
|
|
1539
|
+
}
|
|
1540
|
+
message.Data.push(JobSummaryResponse.decode(reader, reader.uint32()));
|
|
1359
1541
|
continue;
|
|
1360
1542
|
}
|
|
1361
1543
|
}
|
|
@@ -1368,36 +1550,60 @@ const OneOfJobJobError = {
|
|
|
1368
1550
|
},
|
|
1369
1551
|
fromJSON(object) {
|
|
1370
1552
|
return {
|
|
1371
|
-
|
|
1372
|
-
|
|
1553
|
+
CorrelationId: isSet(object.CorrelationId) ? bcl.Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1554
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1555
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1556
|
+
? object.ValidationResults.map((e) => ValidationResult.fromJSON(e))
|
|
1557
|
+
: [],
|
|
1558
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1559
|
+
? object.ExceptionMessages.map((e) => globalThis.String(e))
|
|
1560
|
+
: [],
|
|
1561
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1562
|
+
Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e) => JobSummaryResponse.fromJSON(e)) : [],
|
|
1373
1563
|
};
|
|
1374
1564
|
},
|
|
1375
1565
|
toJSON(message) {
|
|
1376
1566
|
const obj = {};
|
|
1377
|
-
if (message.
|
|
1378
|
-
obj.
|
|
1567
|
+
if (message.CorrelationId !== undefined) {
|
|
1568
|
+
obj.CorrelationId = bcl.Guid.toJSON(message.CorrelationId);
|
|
1569
|
+
}
|
|
1570
|
+
if (message.IsAuthorized !== false) {
|
|
1571
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1572
|
+
}
|
|
1573
|
+
if (message.ValidationResults?.length) {
|
|
1574
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1575
|
+
}
|
|
1576
|
+
if (message.ExceptionMessages?.length) {
|
|
1577
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1578
|
+
}
|
|
1579
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1580
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1379
1581
|
}
|
|
1380
|
-
if (message.
|
|
1381
|
-
obj.
|
|
1582
|
+
if (message.Data?.length) {
|
|
1583
|
+
obj.Data = message.Data.map((e) => JobSummaryResponse.toJSON(e));
|
|
1382
1584
|
}
|
|
1383
1585
|
return obj;
|
|
1384
1586
|
},
|
|
1385
1587
|
create(base) {
|
|
1386
|
-
return
|
|
1588
|
+
return QueryResultIEnumerableJobSummaryResponse.fromPartial(base ?? {});
|
|
1387
1589
|
},
|
|
1388
1590
|
fromPartial(object) {
|
|
1389
|
-
const message =
|
|
1390
|
-
message.
|
|
1391
|
-
?
|
|
1591
|
+
const message = createBaseQueryResultIEnumerableJobSummaryResponse();
|
|
1592
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1593
|
+
? bcl.Guid.fromPartial(object.CorrelationId)
|
|
1392
1594
|
: undefined;
|
|
1393
|
-
message.
|
|
1595
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1596
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1597
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1598
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1599
|
+
message.Data = object.Data?.map((e) => JobSummaryResponse.fromPartial(e)) || [];
|
|
1394
1600
|
return message;
|
|
1395
1601
|
},
|
|
1396
1602
|
};
|
|
1397
|
-
function
|
|
1603
|
+
function createBaseResumeJobRequest() {
|
|
1398
1604
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1399
1605
|
}
|
|
1400
|
-
const
|
|
1606
|
+
const ResumeJobRequest = {
|
|
1401
1607
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1402
1608
|
if (message.EventStore !== "") {
|
|
1403
1609
|
writer.uint32(10).string(message.EventStore);
|
|
@@ -1413,7 +1619,7 @@ const ResumeJob = {
|
|
|
1413
1619
|
decode(input, length) {
|
|
1414
1620
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1415
1621
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1416
|
-
const message =
|
|
1622
|
+
const message = createBaseResumeJobRequest();
|
|
1417
1623
|
while (reader.pos < end) {
|
|
1418
1624
|
const tag = reader.uint32();
|
|
1419
1625
|
switch (tag >>> 3) {
|
|
@@ -1467,10 +1673,10 @@ const ResumeJob = {
|
|
|
1467
1673
|
return obj;
|
|
1468
1674
|
},
|
|
1469
1675
|
create(base) {
|
|
1470
|
-
return
|
|
1676
|
+
return ResumeJobRequest.fromPartial(base ?? {});
|
|
1471
1677
|
},
|
|
1472
1678
|
fromPartial(object) {
|
|
1473
|
-
const message =
|
|
1679
|
+
const message = createBaseResumeJobRequest();
|
|
1474
1680
|
message.EventStore = object.EventStore ?? "";
|
|
1475
1681
|
message.Namespace = object.Namespace ?? "";
|
|
1476
1682
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? bcl.Guid.fromPartial(object.JobId) : undefined;
|
|
@@ -1528,10 +1734,10 @@ const SerializableDateTimeOffset = {
|
|
|
1528
1734
|
return message;
|
|
1529
1735
|
},
|
|
1530
1736
|
};
|
|
1531
|
-
function
|
|
1737
|
+
function createBaseStopJobRequest() {
|
|
1532
1738
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1533
1739
|
}
|
|
1534
|
-
const
|
|
1740
|
+
const StopJobRequest = {
|
|
1535
1741
|
encode(message, writer = new wire.BinaryWriter()) {
|
|
1536
1742
|
if (message.EventStore !== "") {
|
|
1537
1743
|
writer.uint32(10).string(message.EventStore);
|
|
@@ -1547,7 +1753,7 @@ const StopJob = {
|
|
|
1547
1753
|
decode(input, length) {
|
|
1548
1754
|
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1549
1755
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1550
|
-
const message =
|
|
1756
|
+
const message = createBaseStopJobRequest();
|
|
1551
1757
|
while (reader.pos < end) {
|
|
1552
1758
|
const tag = reader.uint32();
|
|
1553
1759
|
switch (tag >>> 3) {
|
|
@@ -1601,41 +1807,116 @@ const StopJob = {
|
|
|
1601
1807
|
return obj;
|
|
1602
1808
|
},
|
|
1603
1809
|
create(base) {
|
|
1604
|
-
return
|
|
1810
|
+
return StopJobRequest.fromPartial(base ?? {});
|
|
1605
1811
|
},
|
|
1606
1812
|
fromPartial(object) {
|
|
1607
|
-
const message =
|
|
1813
|
+
const message = createBaseStopJobRequest();
|
|
1608
1814
|
message.EventStore = object.EventStore ?? "";
|
|
1609
1815
|
message.Namespace = object.Namespace ?? "";
|
|
1610
1816
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? bcl.Guid.fromPartial(object.JobId) : undefined;
|
|
1611
1817
|
return message;
|
|
1612
1818
|
},
|
|
1613
1819
|
};
|
|
1820
|
+
function createBaseValidationResult() {
|
|
1821
|
+
return { Severity: 0, Message: "", Members: [] };
|
|
1822
|
+
}
|
|
1823
|
+
const ValidationResult = {
|
|
1824
|
+
encode(message, writer = new wire.BinaryWriter()) {
|
|
1825
|
+
if (message.Severity !== 0) {
|
|
1826
|
+
writer.uint32(8).int32(message.Severity);
|
|
1827
|
+
}
|
|
1828
|
+
if (message.Message !== "") {
|
|
1829
|
+
writer.uint32(18).string(message.Message);
|
|
1830
|
+
}
|
|
1831
|
+
for (const v of message.Members) {
|
|
1832
|
+
writer.uint32(26).string(v);
|
|
1833
|
+
}
|
|
1834
|
+
return writer;
|
|
1835
|
+
},
|
|
1836
|
+
decode(input, length) {
|
|
1837
|
+
const reader = input instanceof wire.BinaryReader ? input : new wire.BinaryReader(input);
|
|
1838
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1839
|
+
const message = createBaseValidationResult();
|
|
1840
|
+
while (reader.pos < end) {
|
|
1841
|
+
const tag = reader.uint32();
|
|
1842
|
+
switch (tag >>> 3) {
|
|
1843
|
+
case 1: {
|
|
1844
|
+
if (tag !== 8) {
|
|
1845
|
+
break;
|
|
1846
|
+
}
|
|
1847
|
+
message.Severity = reader.int32();
|
|
1848
|
+
continue;
|
|
1849
|
+
}
|
|
1850
|
+
case 2: {
|
|
1851
|
+
if (tag !== 18) {
|
|
1852
|
+
break;
|
|
1853
|
+
}
|
|
1854
|
+
message.Message = reader.string();
|
|
1855
|
+
continue;
|
|
1856
|
+
}
|
|
1857
|
+
case 3: {
|
|
1858
|
+
if (tag !== 26) {
|
|
1859
|
+
break;
|
|
1860
|
+
}
|
|
1861
|
+
message.Members.push(reader.string());
|
|
1862
|
+
continue;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1866
|
+
break;
|
|
1867
|
+
}
|
|
1868
|
+
reader.skip(tag & 7);
|
|
1869
|
+
}
|
|
1870
|
+
return message;
|
|
1871
|
+
},
|
|
1872
|
+
fromJSON(object) {
|
|
1873
|
+
return {
|
|
1874
|
+
Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
|
|
1875
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
1876
|
+
Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e) => globalThis.String(e)) : [],
|
|
1877
|
+
};
|
|
1878
|
+
},
|
|
1879
|
+
toJSON(message) {
|
|
1880
|
+
const obj = {};
|
|
1881
|
+
if (message.Severity !== 0) {
|
|
1882
|
+
obj.Severity = validationResultSeverityToJSON(message.Severity);
|
|
1883
|
+
}
|
|
1884
|
+
if (message.Message !== "") {
|
|
1885
|
+
obj.Message = message.Message;
|
|
1886
|
+
}
|
|
1887
|
+
if (message.Members?.length) {
|
|
1888
|
+
obj.Members = message.Members;
|
|
1889
|
+
}
|
|
1890
|
+
return obj;
|
|
1891
|
+
},
|
|
1892
|
+
create(base) {
|
|
1893
|
+
return ValidationResult.fromPartial(base ?? {});
|
|
1894
|
+
},
|
|
1895
|
+
fromPartial(object) {
|
|
1896
|
+
const message = createBaseValidationResult();
|
|
1897
|
+
message.Severity = object.Severity ?? 0;
|
|
1898
|
+
message.Message = object.Message ?? "";
|
|
1899
|
+
message.Members = object.Members?.map((e) => e) || [];
|
|
1900
|
+
return message;
|
|
1901
|
+
},
|
|
1902
|
+
};
|
|
1614
1903
|
const JobsDefinition = {
|
|
1615
1904
|
name: "Jobs",
|
|
1616
1905
|
fullName: "Cratis.Chronicle.Contracts.Jobs.Jobs",
|
|
1617
1906
|
methods: {
|
|
1618
|
-
|
|
1619
|
-
name: "
|
|
1620
|
-
requestType:
|
|
1621
|
-
requestStream: false,
|
|
1622
|
-
responseType: empty.Empty,
|
|
1623
|
-
responseStream: false,
|
|
1624
|
-
options: {},
|
|
1625
|
-
},
|
|
1626
|
-
getJob: {
|
|
1627
|
-
name: "GetJob",
|
|
1628
|
-
requestType: GetJobRequest,
|
|
1907
|
+
allJobs: {
|
|
1908
|
+
name: "AllJobs",
|
|
1909
|
+
requestType: AllJobsRequest,
|
|
1629
1910
|
requestStream: false,
|
|
1630
|
-
responseType:
|
|
1631
|
-
responseStream:
|
|
1911
|
+
responseType: QueryResultIEnumerableJobSummaryResponse,
|
|
1912
|
+
responseStream: true,
|
|
1632
1913
|
options: {},
|
|
1633
1914
|
},
|
|
1634
|
-
|
|
1635
|
-
name: "
|
|
1636
|
-
requestType:
|
|
1915
|
+
deleteJob: {
|
|
1916
|
+
name: "DeleteJob",
|
|
1917
|
+
requestType: DeleteJobRequest,
|
|
1637
1918
|
requestStream: false,
|
|
1638
|
-
responseType:
|
|
1919
|
+
responseType: CommandResult,
|
|
1639
1920
|
responseStream: false,
|
|
1640
1921
|
options: {},
|
|
1641
1922
|
},
|
|
@@ -1643,31 +1924,23 @@ const JobsDefinition = {
|
|
|
1643
1924
|
name: "GetJobSteps",
|
|
1644
1925
|
requestType: GetJobStepsRequest,
|
|
1645
1926
|
requestStream: false,
|
|
1646
|
-
responseType:
|
|
1927
|
+
responseType: QueryResultIEnumerableJobStepSummaryResponse,
|
|
1647
1928
|
responseStream: false,
|
|
1648
1929
|
options: {},
|
|
1649
1930
|
},
|
|
1650
|
-
|
|
1651
|
-
name: "
|
|
1652
|
-
requestType:
|
|
1653
|
-
requestStream: false,
|
|
1654
|
-
responseType: IEnumerableJob,
|
|
1655
|
-
responseStream: true,
|
|
1656
|
-
options: {},
|
|
1657
|
-
},
|
|
1658
|
-
resume: {
|
|
1659
|
-
name: "Resume",
|
|
1660
|
-
requestType: ResumeJob,
|
|
1931
|
+
resumeJob: {
|
|
1932
|
+
name: "ResumeJob",
|
|
1933
|
+
requestType: ResumeJobRequest,
|
|
1661
1934
|
requestStream: false,
|
|
1662
|
-
responseType:
|
|
1935
|
+
responseType: CommandResult,
|
|
1663
1936
|
responseStream: false,
|
|
1664
1937
|
options: {},
|
|
1665
1938
|
},
|
|
1666
|
-
|
|
1667
|
-
name: "
|
|
1668
|
-
requestType:
|
|
1939
|
+
stopJob: {
|
|
1940
|
+
name: "StopJob",
|
|
1941
|
+
requestType: StopJobRequest,
|
|
1669
1942
|
requestStream: false,
|
|
1670
|
-
responseType:
|
|
1943
|
+
responseType: CommandResult,
|
|
1671
1944
|
responseStream: false,
|
|
1672
1945
|
options: {},
|
|
1673
1946
|
},
|
|
@@ -1677,27 +1950,28 @@ function isSet(value) {
|
|
|
1677
1950
|
return value !== null && value !== undefined;
|
|
1678
1951
|
}
|
|
1679
1952
|
|
|
1680
|
-
exports.
|
|
1681
|
-
exports.
|
|
1953
|
+
exports.AllJobsRequest = AllJobsRequest;
|
|
1954
|
+
exports.CommandResult = CommandResult;
|
|
1955
|
+
exports.DateTimeOffset = DateTimeOffset;
|
|
1956
|
+
exports.DeleteJobRequest = DeleteJobRequest;
|
|
1682
1957
|
exports.GetJobStepsRequest = GetJobStepsRequest;
|
|
1683
|
-
exports.GetJobsRequest = GetJobsRequest;
|
|
1684
|
-
exports.IEnumerableJob = IEnumerableJob;
|
|
1685
|
-
exports.IEnumerableJobStep = IEnumerableJobStep;
|
|
1686
|
-
exports.Job = Job;
|
|
1687
1958
|
exports.JobProgress = JobProgress;
|
|
1688
1959
|
exports.JobStatusChanged = JobStatusChanged;
|
|
1689
|
-
exports.JobStep = JobStep;
|
|
1690
1960
|
exports.JobStepProgress = JobStepProgress;
|
|
1691
1961
|
exports.JobStepStatusChanged = JobStepStatusChanged;
|
|
1962
|
+
exports.JobStepSummaryResponse = JobStepSummaryResponse;
|
|
1963
|
+
exports.JobSummaryResponse = JobSummaryResponse;
|
|
1692
1964
|
exports.JobsDefinition = JobsDefinition;
|
|
1693
|
-
exports.
|
|
1694
|
-
exports.
|
|
1965
|
+
exports.QueryResultIEnumerableJobStepSummaryResponse = QueryResultIEnumerableJobStepSummaryResponse;
|
|
1966
|
+
exports.QueryResultIEnumerableJobSummaryResponse = QueryResultIEnumerableJobSummaryResponse;
|
|
1967
|
+
exports.ResumeJobRequest = ResumeJobRequest;
|
|
1695
1968
|
exports.SerializableDateTimeOffset = SerializableDateTimeOffset;
|
|
1696
|
-
exports.
|
|
1697
|
-
exports.
|
|
1698
|
-
exports.jobErrorToJSON = jobErrorToJSON;
|
|
1969
|
+
exports.StopJobRequest = StopJobRequest;
|
|
1970
|
+
exports.ValidationResult = ValidationResult;
|
|
1699
1971
|
exports.jobStatusFromJSON = jobStatusFromJSON;
|
|
1700
1972
|
exports.jobStatusToJSON = jobStatusToJSON;
|
|
1701
1973
|
exports.jobStepStatusFromJSON = jobStepStatusFromJSON;
|
|
1702
1974
|
exports.jobStepStatusToJSON = jobStepStatusToJSON;
|
|
1975
|
+
exports.validationResultSeverityFromJSON = validationResultSeverityFromJSON;
|
|
1976
|
+
exports.validationResultSeverityToJSON = validationResultSeverityToJSON;
|
|
1703
1977
|
//# sourceMappingURL=jobs.js.map
|