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