@cratis/chronicle.contracts 16.32.0 → 16.33.1
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/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/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/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/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
package/generated/jobs.ts
CHANGED
|
@@ -7,57 +7,10 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
9
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
10
|
-
import { Empty } from "./google/protobuf/empty";
|
|
11
10
|
import { Guid } from "./protobuf-net/bcl";
|
|
12
11
|
|
|
13
12
|
export const protobufPackage = "Cratis.Chronicle.Contracts.Jobs";
|
|
14
13
|
|
|
15
|
-
export enum JobError {
|
|
16
|
-
/** ZERO - proto3 requires a zero value as the first item (it can be named anything) */
|
|
17
|
-
ZERO = 0,
|
|
18
|
-
NotFound = 1,
|
|
19
|
-
TypeIsNotAJobStateType = 2,
|
|
20
|
-
TypeIsNotAssociatedWithAJobType = 3,
|
|
21
|
-
UNRECOGNIZED = -1,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function jobErrorFromJSON(object: any): JobError {
|
|
25
|
-
switch (object) {
|
|
26
|
-
case 0:
|
|
27
|
-
case "ZERO":
|
|
28
|
-
return JobError.ZERO;
|
|
29
|
-
case 1:
|
|
30
|
-
case "NotFound":
|
|
31
|
-
return JobError.NotFound;
|
|
32
|
-
case 2:
|
|
33
|
-
case "TypeIsNotAJobStateType":
|
|
34
|
-
return JobError.TypeIsNotAJobStateType;
|
|
35
|
-
case 3:
|
|
36
|
-
case "TypeIsNotAssociatedWithAJobType":
|
|
37
|
-
return JobError.TypeIsNotAssociatedWithAJobType;
|
|
38
|
-
case -1:
|
|
39
|
-
case "UNRECOGNIZED":
|
|
40
|
-
default:
|
|
41
|
-
return JobError.UNRECOGNIZED;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function jobErrorToJSON(object: JobError): string {
|
|
46
|
-
switch (object) {
|
|
47
|
-
case JobError.ZERO:
|
|
48
|
-
return "ZERO";
|
|
49
|
-
case JobError.NotFound:
|
|
50
|
-
return "NotFound";
|
|
51
|
-
case JobError.TypeIsNotAJobStateType:
|
|
52
|
-
return "TypeIsNotAJobStateType";
|
|
53
|
-
case JobError.TypeIsNotAssociatedWithAJobType:
|
|
54
|
-
return "TypeIsNotAssociatedWithAJobType";
|
|
55
|
-
case JobError.UNRECOGNIZED:
|
|
56
|
-
default:
|
|
57
|
-
return "UNRECOGNIZED";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
14
|
export enum JobStatus {
|
|
62
15
|
None = 0,
|
|
63
16
|
PreparingJob = 1,
|
|
@@ -140,7 +93,7 @@ export function jobStatusToJSON(object: JobStatus): string {
|
|
|
140
93
|
}
|
|
141
94
|
|
|
142
95
|
export enum JobStepStatus {
|
|
143
|
-
|
|
96
|
+
JOB_STEP_STATUS_Unknown = 0,
|
|
144
97
|
Scheduled = 1,
|
|
145
98
|
JOB_STEP_STATUS_Running = 2,
|
|
146
99
|
JOB_STEP_STATUS_CompletedSuccessfully = 3,
|
|
@@ -154,8 +107,8 @@ export enum JobStepStatus {
|
|
|
154
107
|
export function jobStepStatusFromJSON(object: any): JobStepStatus {
|
|
155
108
|
switch (object) {
|
|
156
109
|
case 0:
|
|
157
|
-
case "
|
|
158
|
-
return JobStepStatus.
|
|
110
|
+
case "JOB_STEP_STATUS_Unknown":
|
|
111
|
+
return JobStepStatus.JOB_STEP_STATUS_Unknown;
|
|
159
112
|
case 1:
|
|
160
113
|
case "Scheduled":
|
|
161
114
|
return JobStepStatus.Scheduled;
|
|
@@ -186,8 +139,8 @@ export function jobStepStatusFromJSON(object: any): JobStepStatus {
|
|
|
186
139
|
|
|
187
140
|
export function jobStepStatusToJSON(object: JobStepStatus): string {
|
|
188
141
|
switch (object) {
|
|
189
|
-
case JobStepStatus.
|
|
190
|
-
return "
|
|
142
|
+
case JobStepStatus.JOB_STEP_STATUS_Unknown:
|
|
143
|
+
return "JOB_STEP_STATUS_Unknown";
|
|
191
144
|
case JobStepStatus.Scheduled:
|
|
192
145
|
return "Scheduled";
|
|
193
146
|
case JobStepStatus.JOB_STEP_STATUS_Running:
|
|
@@ -208,49 +161,84 @@ export function jobStepStatusToJSON(object: JobStepStatus): string {
|
|
|
208
161
|
}
|
|
209
162
|
}
|
|
210
163
|
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
164
|
+
export enum ValidationResultSeverity {
|
|
165
|
+
VALIDATION_RESULT_SEVERITY_Unknown = 0,
|
|
166
|
+
Information = 1,
|
|
167
|
+
Warning = 2,
|
|
168
|
+
Error = 3,
|
|
169
|
+
UNRECOGNIZED = -1,
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function validationResultSeverityFromJSON(object: any): ValidationResultSeverity {
|
|
173
|
+
switch (object) {
|
|
174
|
+
case 0:
|
|
175
|
+
case "VALIDATION_RESULT_SEVERITY_Unknown":
|
|
176
|
+
return ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown;
|
|
177
|
+
case 1:
|
|
178
|
+
case "Information":
|
|
179
|
+
return ValidationResultSeverity.Information;
|
|
180
|
+
case 2:
|
|
181
|
+
case "Warning":
|
|
182
|
+
return ValidationResultSeverity.Warning;
|
|
183
|
+
case 3:
|
|
184
|
+
case "Error":
|
|
185
|
+
return ValidationResultSeverity.Error;
|
|
186
|
+
case -1:
|
|
187
|
+
case "UNRECOGNIZED":
|
|
188
|
+
default:
|
|
189
|
+
return ValidationResultSeverity.UNRECOGNIZED;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function validationResultSeverityToJSON(object: ValidationResultSeverity): string {
|
|
194
|
+
switch (object) {
|
|
195
|
+
case ValidationResultSeverity.VALIDATION_RESULT_SEVERITY_Unknown:
|
|
196
|
+
return "VALIDATION_RESULT_SEVERITY_Unknown";
|
|
197
|
+
case ValidationResultSeverity.Information:
|
|
198
|
+
return "Information";
|
|
199
|
+
case ValidationResultSeverity.Warning:
|
|
200
|
+
return "Warning";
|
|
201
|
+
case ValidationResultSeverity.Error:
|
|
202
|
+
return "Error";
|
|
203
|
+
case ValidationResultSeverity.UNRECOGNIZED:
|
|
204
|
+
default:
|
|
205
|
+
return "UNRECOGNIZED";
|
|
206
|
+
}
|
|
216
207
|
}
|
|
217
208
|
|
|
218
|
-
export interface
|
|
209
|
+
export interface AllJobsRequest {
|
|
219
210
|
EventStore: string;
|
|
220
211
|
Namespace: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface CommandResult {
|
|
221
215
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
222
|
-
|
|
216
|
+
CorrelationId:
|
|
217
|
+
| Guid
|
|
218
|
+
| undefined;
|
|
219
|
+
/** default value could not be applied: True */
|
|
220
|
+
IsAuthorized: boolean;
|
|
221
|
+
ValidationResults: ValidationResult[];
|
|
222
|
+
ExceptionMessages: string[];
|
|
223
|
+
ExceptionStackTrace: string;
|
|
224
|
+
AuthorizationFailureReason: string;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
export interface
|
|
227
|
+
export interface DateTimeOffset {
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface DeleteJobRequest {
|
|
226
231
|
EventStore: string;
|
|
227
232
|
Namespace: string;
|
|
228
233
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
229
234
|
JobId: Guid | undefined;
|
|
230
235
|
}
|
|
231
236
|
|
|
232
|
-
export interface
|
|
237
|
+
export interface GetJobStepsRequest {
|
|
233
238
|
EventStore: string;
|
|
234
239
|
Namespace: string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface IEnumerableJob {
|
|
238
|
-
items: Job[];
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export interface IEnumerableJobStep {
|
|
242
|
-
items: JobStep[];
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export interface Job {
|
|
246
240
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
247
|
-
|
|
248
|
-
Details: string;
|
|
249
|
-
Type: string;
|
|
250
|
-
Status: JobStatus;
|
|
251
|
-
Created: SerializableDateTimeOffset | undefined;
|
|
252
|
-
StatusChanges: JobStatusChanged[];
|
|
253
|
-
Progress: JobProgress | undefined;
|
|
241
|
+
JobId: Guid | undefined;
|
|
254
242
|
}
|
|
255
243
|
|
|
256
244
|
export interface JobProgress {
|
|
@@ -270,7 +258,19 @@ export interface JobStatusChanged {
|
|
|
270
258
|
ExceptionStackTrace: string;
|
|
271
259
|
}
|
|
272
260
|
|
|
273
|
-
export interface
|
|
261
|
+
export interface JobStepProgress {
|
|
262
|
+
Percentage: number;
|
|
263
|
+
Message: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface JobStepStatusChanged {
|
|
267
|
+
Status: JobStepStatus;
|
|
268
|
+
Occurred: SerializableDateTimeOffset | undefined;
|
|
269
|
+
ExceptionMessages: string[];
|
|
270
|
+
ExceptionStackTrace: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface JobStepSummaryResponse {
|
|
274
274
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
275
275
|
Id: Guid | undefined;
|
|
276
276
|
Type: string;
|
|
@@ -280,24 +280,44 @@ export interface JobStep {
|
|
|
280
280
|
Progress: JobStepProgress | undefined;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
export interface
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
export interface JobSummaryResponse {
|
|
284
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
285
|
+
Id: Guid | undefined;
|
|
286
|
+
Details: string;
|
|
287
|
+
Type: string;
|
|
288
|
+
Status: JobStatus;
|
|
289
|
+
Created: DateTimeOffset | undefined;
|
|
290
|
+
StatusChanges: JobStatusChanged[];
|
|
291
|
+
Progress: JobProgress | undefined;
|
|
286
292
|
}
|
|
287
293
|
|
|
288
|
-
export interface
|
|
289
|
-
|
|
290
|
-
|
|
294
|
+
export interface QueryResultIEnumerableJobStepSummaryResponse {
|
|
295
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
296
|
+
CorrelationId:
|
|
297
|
+
| Guid
|
|
298
|
+
| undefined;
|
|
299
|
+
/** default value could not be applied: True */
|
|
300
|
+
IsAuthorized: boolean;
|
|
301
|
+
ValidationResults: ValidationResult[];
|
|
291
302
|
ExceptionMessages: string[];
|
|
292
303
|
ExceptionStackTrace: string;
|
|
304
|
+
Data: JobStepSummaryResponse[];
|
|
293
305
|
}
|
|
294
306
|
|
|
295
|
-
export interface
|
|
296
|
-
|
|
297
|
-
|
|
307
|
+
export interface QueryResultIEnumerableJobSummaryResponse {
|
|
308
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
309
|
+
CorrelationId:
|
|
310
|
+
| Guid
|
|
311
|
+
| undefined;
|
|
312
|
+
/** default value could not be applied: True */
|
|
313
|
+
IsAuthorized: boolean;
|
|
314
|
+
ValidationResults: ValidationResult[];
|
|
315
|
+
ExceptionMessages: string[];
|
|
316
|
+
ExceptionStackTrace: string;
|
|
317
|
+
Data: JobSummaryResponse[];
|
|
298
318
|
}
|
|
299
319
|
|
|
300
|
-
export interface
|
|
320
|
+
export interface ResumeJobRequest {
|
|
301
321
|
EventStore: string;
|
|
302
322
|
Namespace: string;
|
|
303
323
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
@@ -309,35 +329,39 @@ export interface SerializableDateTimeOffset {
|
|
|
309
329
|
Value: string;
|
|
310
330
|
}
|
|
311
331
|
|
|
312
|
-
export interface
|
|
332
|
+
export interface StopJobRequest {
|
|
313
333
|
EventStore: string;
|
|
314
334
|
Namespace: string;
|
|
315
335
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
316
336
|
JobId: Guid | undefined;
|
|
317
337
|
}
|
|
318
338
|
|
|
319
|
-
|
|
320
|
-
|
|
339
|
+
export interface ValidationResult {
|
|
340
|
+
/** default value could not be applied: Error */
|
|
341
|
+
Severity: ValidationResultSeverity;
|
|
342
|
+
Message: string;
|
|
343
|
+
Members: string[];
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function createBaseAllJobsRequest(): AllJobsRequest {
|
|
347
|
+
return { EventStore: "", Namespace: "" };
|
|
321
348
|
}
|
|
322
349
|
|
|
323
|
-
export const
|
|
324
|
-
encode(message:
|
|
350
|
+
export const AllJobsRequest: MessageFns<AllJobsRequest> = {
|
|
351
|
+
encode(message: AllJobsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
325
352
|
if (message.EventStore !== "") {
|
|
326
353
|
writer.uint32(10).string(message.EventStore);
|
|
327
354
|
}
|
|
328
355
|
if (message.Namespace !== "") {
|
|
329
356
|
writer.uint32(18).string(message.Namespace);
|
|
330
357
|
}
|
|
331
|
-
if (message.JobId !== undefined) {
|
|
332
|
-
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
333
|
-
}
|
|
334
358
|
return writer;
|
|
335
359
|
},
|
|
336
360
|
|
|
337
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
361
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AllJobsRequest {
|
|
338
362
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
339
363
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
340
|
-
const message =
|
|
364
|
+
const message = createBaseAllJobsRequest();
|
|
341
365
|
while (reader.pos < end) {
|
|
342
366
|
const tag = reader.uint32();
|
|
343
367
|
switch (tag >>> 3) {
|
|
@@ -357,14 +381,6 @@ export const DeleteJob: MessageFns<DeleteJob> = {
|
|
|
357
381
|
message.Namespace = reader.string();
|
|
358
382
|
continue;
|
|
359
383
|
}
|
|
360
|
-
case 3: {
|
|
361
|
-
if (tag !== 26) {
|
|
362
|
-
break;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
message.JobId = Guid.decode(reader, reader.uint32());
|
|
366
|
-
continue;
|
|
367
|
-
}
|
|
368
384
|
}
|
|
369
385
|
if ((tag & 7) === 4 || tag === 0) {
|
|
370
386
|
break;
|
|
@@ -374,15 +390,14 @@ export const DeleteJob: MessageFns<DeleteJob> = {
|
|
|
374
390
|
return message;
|
|
375
391
|
},
|
|
376
392
|
|
|
377
|
-
fromJSON(object: any):
|
|
393
|
+
fromJSON(object: any): AllJobsRequest {
|
|
378
394
|
return {
|
|
379
395
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
380
396
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
381
|
-
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
382
397
|
};
|
|
383
398
|
},
|
|
384
399
|
|
|
385
|
-
toJSON(message:
|
|
400
|
+
toJSON(message: AllJobsRequest): unknown {
|
|
386
401
|
const obj: any = {};
|
|
387
402
|
if (message.EventStore !== "") {
|
|
388
403
|
obj.EventStore = message.EventStore;
|
|
@@ -390,46 +405,58 @@ export const DeleteJob: MessageFns<DeleteJob> = {
|
|
|
390
405
|
if (message.Namespace !== "") {
|
|
391
406
|
obj.Namespace = message.Namespace;
|
|
392
407
|
}
|
|
393
|
-
if (message.JobId !== undefined) {
|
|
394
|
-
obj.JobId = Guid.toJSON(message.JobId);
|
|
395
|
-
}
|
|
396
408
|
return obj;
|
|
397
409
|
},
|
|
398
410
|
|
|
399
|
-
create(base?: DeepPartial<
|
|
400
|
-
return
|
|
411
|
+
create(base?: DeepPartial<AllJobsRequest>): AllJobsRequest {
|
|
412
|
+
return AllJobsRequest.fromPartial(base ?? {});
|
|
401
413
|
},
|
|
402
|
-
fromPartial(object: DeepPartial<
|
|
403
|
-
const message =
|
|
414
|
+
fromPartial(object: DeepPartial<AllJobsRequest>): AllJobsRequest {
|
|
415
|
+
const message = createBaseAllJobsRequest();
|
|
404
416
|
message.EventStore = object.EventStore ?? "";
|
|
405
417
|
message.Namespace = object.Namespace ?? "";
|
|
406
|
-
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
407
418
|
return message;
|
|
408
419
|
},
|
|
409
420
|
};
|
|
410
421
|
|
|
411
|
-
function
|
|
412
|
-
return {
|
|
422
|
+
function createBaseCommandResult(): CommandResult {
|
|
423
|
+
return {
|
|
424
|
+
CorrelationId: undefined,
|
|
425
|
+
IsAuthorized: false,
|
|
426
|
+
ValidationResults: [],
|
|
427
|
+
ExceptionMessages: [],
|
|
428
|
+
ExceptionStackTrace: "",
|
|
429
|
+
AuthorizationFailureReason: "",
|
|
430
|
+
};
|
|
413
431
|
}
|
|
414
432
|
|
|
415
|
-
export const
|
|
416
|
-
encode(message:
|
|
417
|
-
if (message.
|
|
418
|
-
writer.uint32(10).
|
|
433
|
+
export const CommandResult: MessageFns<CommandResult> = {
|
|
434
|
+
encode(message: CommandResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
435
|
+
if (message.CorrelationId !== undefined) {
|
|
436
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
419
437
|
}
|
|
420
|
-
if (message.
|
|
421
|
-
writer.uint32(
|
|
438
|
+
if (message.IsAuthorized !== false) {
|
|
439
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
422
440
|
}
|
|
423
|
-
|
|
424
|
-
|
|
441
|
+
for (const v of message.ValidationResults) {
|
|
442
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
443
|
+
}
|
|
444
|
+
for (const v of message.ExceptionMessages) {
|
|
445
|
+
writer.uint32(34).string(v!);
|
|
446
|
+
}
|
|
447
|
+
if (message.ExceptionStackTrace !== "") {
|
|
448
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
449
|
+
}
|
|
450
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
451
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
425
452
|
}
|
|
426
453
|
return writer;
|
|
427
454
|
},
|
|
428
455
|
|
|
429
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
456
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResult {
|
|
430
457
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
431
458
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
432
|
-
const message =
|
|
459
|
+
const message = createBaseCommandResult();
|
|
433
460
|
while (reader.pos < end) {
|
|
434
461
|
const tag = reader.uint32();
|
|
435
462
|
switch (tag >>> 3) {
|
|
@@ -438,15 +465,15 @@ export const GetJobRequest: MessageFns<GetJobRequest> = {
|
|
|
438
465
|
break;
|
|
439
466
|
}
|
|
440
467
|
|
|
441
|
-
message.
|
|
468
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
442
469
|
continue;
|
|
443
470
|
}
|
|
444
471
|
case 2: {
|
|
445
|
-
if (tag !==
|
|
472
|
+
if (tag !== 16) {
|
|
446
473
|
break;
|
|
447
474
|
}
|
|
448
475
|
|
|
449
|
-
message.
|
|
476
|
+
message.IsAuthorized = reader.bool();
|
|
450
477
|
continue;
|
|
451
478
|
}
|
|
452
479
|
case 3: {
|
|
@@ -454,7 +481,31 @@ export const GetJobRequest: MessageFns<GetJobRequest> = {
|
|
|
454
481
|
break;
|
|
455
482
|
}
|
|
456
483
|
|
|
457
|
-
message.
|
|
484
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
case 4: {
|
|
488
|
+
if (tag !== 34) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
message.ExceptionMessages.push(reader.string());
|
|
493
|
+
continue;
|
|
494
|
+
}
|
|
495
|
+
case 5: {
|
|
496
|
+
if (tag !== 42) {
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
message.ExceptionStackTrace = reader.string();
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
case 6: {
|
|
504
|
+
if (tag !== 50) {
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
message.AuthorizationFailureReason = reader.string();
|
|
458
509
|
continue;
|
|
459
510
|
}
|
|
460
511
|
}
|
|
@@ -466,46 +517,112 @@ export const GetJobRequest: MessageFns<GetJobRequest> = {
|
|
|
466
517
|
return message;
|
|
467
518
|
},
|
|
468
519
|
|
|
469
|
-
fromJSON(object: any):
|
|
520
|
+
fromJSON(object: any): CommandResult {
|
|
470
521
|
return {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
522
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
523
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
524
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
525
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
526
|
+
: [],
|
|
527
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
528
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
529
|
+
: [],
|
|
530
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
531
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
532
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
533
|
+
: "",
|
|
474
534
|
};
|
|
475
535
|
},
|
|
476
536
|
|
|
477
|
-
toJSON(message:
|
|
537
|
+
toJSON(message: CommandResult): unknown {
|
|
478
538
|
const obj: any = {};
|
|
479
|
-
if (message.
|
|
480
|
-
obj.
|
|
539
|
+
if (message.CorrelationId !== undefined) {
|
|
540
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
481
541
|
}
|
|
482
|
-
if (message.
|
|
483
|
-
obj.
|
|
542
|
+
if (message.IsAuthorized !== false) {
|
|
543
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
484
544
|
}
|
|
485
|
-
if (message.
|
|
486
|
-
obj.
|
|
545
|
+
if (message.ValidationResults?.length) {
|
|
546
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
547
|
+
}
|
|
548
|
+
if (message.ExceptionMessages?.length) {
|
|
549
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
550
|
+
}
|
|
551
|
+
if (message.ExceptionStackTrace !== "") {
|
|
552
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
553
|
+
}
|
|
554
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
555
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
487
556
|
}
|
|
488
557
|
return obj;
|
|
489
558
|
},
|
|
490
559
|
|
|
491
|
-
create(base?: DeepPartial<
|
|
492
|
-
return
|
|
560
|
+
create(base?: DeepPartial<CommandResult>): CommandResult {
|
|
561
|
+
return CommandResult.fromPartial(base ?? {});
|
|
493
562
|
},
|
|
494
|
-
fromPartial(object: DeepPartial<
|
|
495
|
-
const message =
|
|
496
|
-
message.
|
|
497
|
-
|
|
498
|
-
|
|
563
|
+
fromPartial(object: DeepPartial<CommandResult>): CommandResult {
|
|
564
|
+
const message = createBaseCommandResult();
|
|
565
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
566
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
567
|
+
: undefined;
|
|
568
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
569
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
570
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
571
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
572
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
499
573
|
return message;
|
|
500
574
|
},
|
|
501
575
|
};
|
|
502
576
|
|
|
503
|
-
function
|
|
577
|
+
function createBaseDateTimeOffset(): DateTimeOffset {
|
|
578
|
+
return {};
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export const DateTimeOffset: MessageFns<DateTimeOffset> = {
|
|
582
|
+
encode(_: DateTimeOffset, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
583
|
+
return writer;
|
|
584
|
+
},
|
|
585
|
+
|
|
586
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DateTimeOffset {
|
|
587
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
588
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
589
|
+
const message = createBaseDateTimeOffset();
|
|
590
|
+
while (reader.pos < end) {
|
|
591
|
+
const tag = reader.uint32();
|
|
592
|
+
switch (tag >>> 3) {
|
|
593
|
+
}
|
|
594
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
reader.skip(tag & 7);
|
|
598
|
+
}
|
|
599
|
+
return message;
|
|
600
|
+
},
|
|
601
|
+
|
|
602
|
+
fromJSON(_: any): DateTimeOffset {
|
|
603
|
+
return {};
|
|
604
|
+
},
|
|
605
|
+
|
|
606
|
+
toJSON(_: DateTimeOffset): unknown {
|
|
607
|
+
const obj: any = {};
|
|
608
|
+
return obj;
|
|
609
|
+
},
|
|
610
|
+
|
|
611
|
+
create(base?: DeepPartial<DateTimeOffset>): DateTimeOffset {
|
|
612
|
+
return DateTimeOffset.fromPartial(base ?? {});
|
|
613
|
+
},
|
|
614
|
+
fromPartial(_: DeepPartial<DateTimeOffset>): DateTimeOffset {
|
|
615
|
+
const message = createBaseDateTimeOffset();
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
function createBaseDeleteJobRequest(): DeleteJobRequest {
|
|
504
621
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
505
622
|
}
|
|
506
623
|
|
|
507
|
-
export const
|
|
508
|
-
encode(message:
|
|
624
|
+
export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
625
|
+
encode(message: DeleteJobRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
509
626
|
if (message.EventStore !== "") {
|
|
510
627
|
writer.uint32(10).string(message.EventStore);
|
|
511
628
|
}
|
|
@@ -518,10 +635,10 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
518
635
|
return writer;
|
|
519
636
|
},
|
|
520
637
|
|
|
521
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
638
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DeleteJobRequest {
|
|
522
639
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
523
640
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
524
|
-
const message =
|
|
641
|
+
const message = createBaseDeleteJobRequest();
|
|
525
642
|
while (reader.pos < end) {
|
|
526
643
|
const tag = reader.uint32();
|
|
527
644
|
switch (tag >>> 3) {
|
|
@@ -558,7 +675,7 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
558
675
|
return message;
|
|
559
676
|
},
|
|
560
677
|
|
|
561
|
-
fromJSON(object: any):
|
|
678
|
+
fromJSON(object: any): DeleteJobRequest {
|
|
562
679
|
return {
|
|
563
680
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
564
681
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
@@ -566,7 +683,7 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
566
683
|
};
|
|
567
684
|
},
|
|
568
685
|
|
|
569
|
-
toJSON(message:
|
|
686
|
+
toJSON(message: DeleteJobRequest): unknown {
|
|
570
687
|
const obj: any = {};
|
|
571
688
|
if (message.EventStore !== "") {
|
|
572
689
|
obj.EventStore = message.EventStore;
|
|
@@ -580,11 +697,11 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
580
697
|
return obj;
|
|
581
698
|
},
|
|
582
699
|
|
|
583
|
-
create(base?: DeepPartial<
|
|
584
|
-
return
|
|
700
|
+
create(base?: DeepPartial<DeleteJobRequest>): DeleteJobRequest {
|
|
701
|
+
return DeleteJobRequest.fromPartial(base ?? {});
|
|
585
702
|
},
|
|
586
|
-
fromPartial(object: DeepPartial<
|
|
587
|
-
const message =
|
|
703
|
+
fromPartial(object: DeepPartial<DeleteJobRequest>): DeleteJobRequest {
|
|
704
|
+
const message = createBaseDeleteJobRequest();
|
|
588
705
|
message.EventStore = object.EventStore ?? "";
|
|
589
706
|
message.Namespace = object.Namespace ?? "";
|
|
590
707
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
@@ -592,25 +709,28 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
592
709
|
},
|
|
593
710
|
};
|
|
594
711
|
|
|
595
|
-
function
|
|
596
|
-
return { EventStore: "", Namespace: "" };
|
|
712
|
+
function createBaseGetJobStepsRequest(): GetJobStepsRequest {
|
|
713
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
597
714
|
}
|
|
598
715
|
|
|
599
|
-
export const
|
|
600
|
-
encode(message:
|
|
716
|
+
export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
717
|
+
encode(message: GetJobStepsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
601
718
|
if (message.EventStore !== "") {
|
|
602
719
|
writer.uint32(10).string(message.EventStore);
|
|
603
720
|
}
|
|
604
721
|
if (message.Namespace !== "") {
|
|
605
722
|
writer.uint32(18).string(message.Namespace);
|
|
606
723
|
}
|
|
724
|
+
if (message.JobId !== undefined) {
|
|
725
|
+
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
726
|
+
}
|
|
607
727
|
return writer;
|
|
608
728
|
},
|
|
609
729
|
|
|
610
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
730
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetJobStepsRequest {
|
|
611
731
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
612
732
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
613
|
-
const message =
|
|
733
|
+
const message = createBaseGetJobStepsRequest();
|
|
614
734
|
while (reader.pos < end) {
|
|
615
735
|
const tag = reader.uint32();
|
|
616
736
|
switch (tag >>> 3) {
|
|
@@ -630,6 +750,14 @@ export const GetJobsRequest: MessageFns<GetJobsRequest> = {
|
|
|
630
750
|
message.Namespace = reader.string();
|
|
631
751
|
continue;
|
|
632
752
|
}
|
|
753
|
+
case 3: {
|
|
754
|
+
if (tag !== 26) {
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
message.JobId = Guid.decode(reader, reader.uint32());
|
|
759
|
+
continue;
|
|
760
|
+
}
|
|
633
761
|
}
|
|
634
762
|
if ((tag & 7) === 4 || tag === 0) {
|
|
635
763
|
break;
|
|
@@ -639,14 +767,15 @@ export const GetJobsRequest: MessageFns<GetJobsRequest> = {
|
|
|
639
767
|
return message;
|
|
640
768
|
},
|
|
641
769
|
|
|
642
|
-
fromJSON(object: any):
|
|
770
|
+
fromJSON(object: any): GetJobStepsRequest {
|
|
643
771
|
return {
|
|
644
772
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
645
773
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
774
|
+
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
646
775
|
};
|
|
647
776
|
},
|
|
648
777
|
|
|
649
|
-
toJSON(message:
|
|
778
|
+
toJSON(message: GetJobStepsRequest): unknown {
|
|
650
779
|
const obj: any = {};
|
|
651
780
|
if (message.EventStore !== "") {
|
|
652
781
|
obj.EventStore = message.EventStore;
|
|
@@ -654,302 +783,20 @@ export const GetJobsRequest: MessageFns<GetJobsRequest> = {
|
|
|
654
783
|
if (message.Namespace !== "") {
|
|
655
784
|
obj.Namespace = message.Namespace;
|
|
656
785
|
}
|
|
786
|
+
if (message.JobId !== undefined) {
|
|
787
|
+
obj.JobId = Guid.toJSON(message.JobId);
|
|
788
|
+
}
|
|
657
789
|
return obj;
|
|
658
790
|
},
|
|
659
791
|
|
|
660
|
-
create(base?: DeepPartial<
|
|
661
|
-
return
|
|
792
|
+
create(base?: DeepPartial<GetJobStepsRequest>): GetJobStepsRequest {
|
|
793
|
+
return GetJobStepsRequest.fromPartial(base ?? {});
|
|
662
794
|
},
|
|
663
|
-
fromPartial(object: DeepPartial<
|
|
664
|
-
const message =
|
|
795
|
+
fromPartial(object: DeepPartial<GetJobStepsRequest>): GetJobStepsRequest {
|
|
796
|
+
const message = createBaseGetJobStepsRequest();
|
|
665
797
|
message.EventStore = object.EventStore ?? "";
|
|
666
798
|
message.Namespace = object.Namespace ?? "";
|
|
667
|
-
|
|
668
|
-
},
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
function createBaseIEnumerableJob(): IEnumerableJob {
|
|
672
|
-
return { items: [] };
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
export const IEnumerableJob: MessageFns<IEnumerableJob> = {
|
|
676
|
-
encode(message: IEnumerableJob, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
677
|
-
for (const v of message.items) {
|
|
678
|
-
Job.encode(v!, writer.uint32(10).fork()).join();
|
|
679
|
-
}
|
|
680
|
-
return writer;
|
|
681
|
-
},
|
|
682
|
-
|
|
683
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IEnumerableJob {
|
|
684
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
685
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
686
|
-
const message = createBaseIEnumerableJob();
|
|
687
|
-
while (reader.pos < end) {
|
|
688
|
-
const tag = reader.uint32();
|
|
689
|
-
switch (tag >>> 3) {
|
|
690
|
-
case 1: {
|
|
691
|
-
if (tag !== 10) {
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
message.items.push(Job.decode(reader, reader.uint32()));
|
|
696
|
-
continue;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
reader.skip(tag & 7);
|
|
703
|
-
}
|
|
704
|
-
return message;
|
|
705
|
-
},
|
|
706
|
-
|
|
707
|
-
fromJSON(object: any): IEnumerableJob {
|
|
708
|
-
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => Job.fromJSON(e)) : [] };
|
|
709
|
-
},
|
|
710
|
-
|
|
711
|
-
toJSON(message: IEnumerableJob): unknown {
|
|
712
|
-
const obj: any = {};
|
|
713
|
-
if (message.items?.length) {
|
|
714
|
-
obj.items = message.items.map((e) => Job.toJSON(e));
|
|
715
|
-
}
|
|
716
|
-
return obj;
|
|
717
|
-
},
|
|
718
|
-
|
|
719
|
-
create(base?: DeepPartial<IEnumerableJob>): IEnumerableJob {
|
|
720
|
-
return IEnumerableJob.fromPartial(base ?? {});
|
|
721
|
-
},
|
|
722
|
-
fromPartial(object: DeepPartial<IEnumerableJob>): IEnumerableJob {
|
|
723
|
-
const message = createBaseIEnumerableJob();
|
|
724
|
-
message.items = object.items?.map((e) => Job.fromPartial(e)) || [];
|
|
725
|
-
return message;
|
|
726
|
-
},
|
|
727
|
-
};
|
|
728
|
-
|
|
729
|
-
function createBaseIEnumerableJobStep(): IEnumerableJobStep {
|
|
730
|
-
return { items: [] };
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export const IEnumerableJobStep: MessageFns<IEnumerableJobStep> = {
|
|
734
|
-
encode(message: IEnumerableJobStep, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
735
|
-
for (const v of message.items) {
|
|
736
|
-
JobStep.encode(v!, writer.uint32(10).fork()).join();
|
|
737
|
-
}
|
|
738
|
-
return writer;
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
decode(input: BinaryReader | Uint8Array, length?: number): IEnumerableJobStep {
|
|
742
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
743
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
744
|
-
const message = createBaseIEnumerableJobStep();
|
|
745
|
-
while (reader.pos < end) {
|
|
746
|
-
const tag = reader.uint32();
|
|
747
|
-
switch (tag >>> 3) {
|
|
748
|
-
case 1: {
|
|
749
|
-
if (tag !== 10) {
|
|
750
|
-
break;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
message.items.push(JobStep.decode(reader, reader.uint32()));
|
|
754
|
-
continue;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
758
|
-
break;
|
|
759
|
-
}
|
|
760
|
-
reader.skip(tag & 7);
|
|
761
|
-
}
|
|
762
|
-
return message;
|
|
763
|
-
},
|
|
764
|
-
|
|
765
|
-
fromJSON(object: any): IEnumerableJobStep {
|
|
766
|
-
return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e: any) => JobStep.fromJSON(e)) : [] };
|
|
767
|
-
},
|
|
768
|
-
|
|
769
|
-
toJSON(message: IEnumerableJobStep): unknown {
|
|
770
|
-
const obj: any = {};
|
|
771
|
-
if (message.items?.length) {
|
|
772
|
-
obj.items = message.items.map((e) => JobStep.toJSON(e));
|
|
773
|
-
}
|
|
774
|
-
return obj;
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
create(base?: DeepPartial<IEnumerableJobStep>): IEnumerableJobStep {
|
|
778
|
-
return IEnumerableJobStep.fromPartial(base ?? {});
|
|
779
|
-
},
|
|
780
|
-
fromPartial(object: DeepPartial<IEnumerableJobStep>): IEnumerableJobStep {
|
|
781
|
-
const message = createBaseIEnumerableJobStep();
|
|
782
|
-
message.items = object.items?.map((e) => JobStep.fromPartial(e)) || [];
|
|
783
|
-
return message;
|
|
784
|
-
},
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
function createBaseJob(): Job {
|
|
788
|
-
return {
|
|
789
|
-
Id: undefined,
|
|
790
|
-
Details: "",
|
|
791
|
-
Type: "",
|
|
792
|
-
Status: 0,
|
|
793
|
-
Created: undefined,
|
|
794
|
-
StatusChanges: [],
|
|
795
|
-
Progress: undefined,
|
|
796
|
-
};
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
export const Job: MessageFns<Job> = {
|
|
800
|
-
encode(message: Job, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
801
|
-
if (message.Id !== undefined) {
|
|
802
|
-
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
803
|
-
}
|
|
804
|
-
if (message.Details !== "") {
|
|
805
|
-
writer.uint32(18).string(message.Details);
|
|
806
|
-
}
|
|
807
|
-
if (message.Type !== "") {
|
|
808
|
-
writer.uint32(26).string(message.Type);
|
|
809
|
-
}
|
|
810
|
-
if (message.Status !== 0) {
|
|
811
|
-
writer.uint32(32).int32(message.Status);
|
|
812
|
-
}
|
|
813
|
-
if (message.Created !== undefined) {
|
|
814
|
-
SerializableDateTimeOffset.encode(message.Created, writer.uint32(42).fork()).join();
|
|
815
|
-
}
|
|
816
|
-
for (const v of message.StatusChanges) {
|
|
817
|
-
JobStatusChanged.encode(v!, writer.uint32(50).fork()).join();
|
|
818
|
-
}
|
|
819
|
-
if (message.Progress !== undefined) {
|
|
820
|
-
JobProgress.encode(message.Progress, writer.uint32(58).fork()).join();
|
|
821
|
-
}
|
|
822
|
-
return writer;
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Job {
|
|
826
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
827
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
828
|
-
const message = createBaseJob();
|
|
829
|
-
while (reader.pos < end) {
|
|
830
|
-
const tag = reader.uint32();
|
|
831
|
-
switch (tag >>> 3) {
|
|
832
|
-
case 1: {
|
|
833
|
-
if (tag !== 10) {
|
|
834
|
-
break;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
message.Id = Guid.decode(reader, reader.uint32());
|
|
838
|
-
continue;
|
|
839
|
-
}
|
|
840
|
-
case 2: {
|
|
841
|
-
if (tag !== 18) {
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
message.Details = reader.string();
|
|
846
|
-
continue;
|
|
847
|
-
}
|
|
848
|
-
case 3: {
|
|
849
|
-
if (tag !== 26) {
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
message.Type = reader.string();
|
|
854
|
-
continue;
|
|
855
|
-
}
|
|
856
|
-
case 4: {
|
|
857
|
-
if (tag !== 32) {
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
message.Status = reader.int32() as any;
|
|
862
|
-
continue;
|
|
863
|
-
}
|
|
864
|
-
case 5: {
|
|
865
|
-
if (tag !== 42) {
|
|
866
|
-
break;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
message.Created = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
870
|
-
continue;
|
|
871
|
-
}
|
|
872
|
-
case 6: {
|
|
873
|
-
if (tag !== 50) {
|
|
874
|
-
break;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
message.StatusChanges.push(JobStatusChanged.decode(reader, reader.uint32()));
|
|
878
|
-
continue;
|
|
879
|
-
}
|
|
880
|
-
case 7: {
|
|
881
|
-
if (tag !== 58) {
|
|
882
|
-
break;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
message.Progress = JobProgress.decode(reader, reader.uint32());
|
|
886
|
-
continue;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
890
|
-
break;
|
|
891
|
-
}
|
|
892
|
-
reader.skip(tag & 7);
|
|
893
|
-
}
|
|
894
|
-
return message;
|
|
895
|
-
},
|
|
896
|
-
|
|
897
|
-
fromJSON(object: any): Job {
|
|
898
|
-
return {
|
|
899
|
-
Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
|
|
900
|
-
Details: isSet(object.Details) ? globalThis.String(object.Details) : "",
|
|
901
|
-
Type: isSet(object.Type) ? globalThis.String(object.Type) : "",
|
|
902
|
-
Status: isSet(object.Status) ? jobStatusFromJSON(object.Status) : 0,
|
|
903
|
-
Created: isSet(object.Created) ? SerializableDateTimeOffset.fromJSON(object.Created) : undefined,
|
|
904
|
-
StatusChanges: globalThis.Array.isArray(object?.StatusChanges)
|
|
905
|
-
? object.StatusChanges.map((e: any) => JobStatusChanged.fromJSON(e))
|
|
906
|
-
: [],
|
|
907
|
-
Progress: isSet(object.Progress) ? JobProgress.fromJSON(object.Progress) : undefined,
|
|
908
|
-
};
|
|
909
|
-
},
|
|
910
|
-
|
|
911
|
-
toJSON(message: Job): unknown {
|
|
912
|
-
const obj: any = {};
|
|
913
|
-
if (message.Id !== undefined) {
|
|
914
|
-
obj.Id = Guid.toJSON(message.Id);
|
|
915
|
-
}
|
|
916
|
-
if (message.Details !== "") {
|
|
917
|
-
obj.Details = message.Details;
|
|
918
|
-
}
|
|
919
|
-
if (message.Type !== "") {
|
|
920
|
-
obj.Type = message.Type;
|
|
921
|
-
}
|
|
922
|
-
if (message.Status !== 0) {
|
|
923
|
-
obj.Status = jobStatusToJSON(message.Status);
|
|
924
|
-
}
|
|
925
|
-
if (message.Created !== undefined) {
|
|
926
|
-
obj.Created = SerializableDateTimeOffset.toJSON(message.Created);
|
|
927
|
-
}
|
|
928
|
-
if (message.StatusChanges?.length) {
|
|
929
|
-
obj.StatusChanges = message.StatusChanges.map((e) => JobStatusChanged.toJSON(e));
|
|
930
|
-
}
|
|
931
|
-
if (message.Progress !== undefined) {
|
|
932
|
-
obj.Progress = JobProgress.toJSON(message.Progress);
|
|
933
|
-
}
|
|
934
|
-
return obj;
|
|
935
|
-
},
|
|
936
|
-
|
|
937
|
-
create(base?: DeepPartial<Job>): Job {
|
|
938
|
-
return Job.fromPartial(base ?? {});
|
|
939
|
-
},
|
|
940
|
-
fromPartial(object: DeepPartial<Job>): Job {
|
|
941
|
-
const message = createBaseJob();
|
|
942
|
-
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
943
|
-
message.Details = object.Details ?? "";
|
|
944
|
-
message.Type = object.Type ?? "";
|
|
945
|
-
message.Status = object.Status ?? 0;
|
|
946
|
-
message.Created = (object.Created !== undefined && object.Created !== null)
|
|
947
|
-
? SerializableDateTimeOffset.fromPartial(object.Created)
|
|
948
|
-
: undefined;
|
|
949
|
-
message.StatusChanges = object.StatusChanges?.map((e) => JobStatusChanged.fromPartial(e)) || [];
|
|
950
|
-
message.Progress = (object.Progress !== undefined && object.Progress !== null)
|
|
951
|
-
? JobProgress.fromPartial(object.Progress)
|
|
952
|
-
: undefined;
|
|
799
|
+
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
953
800
|
return message;
|
|
954
801
|
},
|
|
955
802
|
};
|
|
@@ -1230,12 +1077,200 @@ export const JobStatusChanged: MessageFns<JobStatusChanged> = {
|
|
|
1230
1077
|
},
|
|
1231
1078
|
};
|
|
1232
1079
|
|
|
1233
|
-
function
|
|
1080
|
+
function createBaseJobStepProgress(): JobStepProgress {
|
|
1081
|
+
return { Percentage: 0, Message: "" };
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
export const JobStepProgress: MessageFns<JobStepProgress> = {
|
|
1085
|
+
encode(message: JobStepProgress, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1086
|
+
if (message.Percentage !== 0) {
|
|
1087
|
+
writer.uint32(8).int32(message.Percentage);
|
|
1088
|
+
}
|
|
1089
|
+
if (message.Message !== "") {
|
|
1090
|
+
writer.uint32(18).string(message.Message);
|
|
1091
|
+
}
|
|
1092
|
+
return writer;
|
|
1093
|
+
},
|
|
1094
|
+
|
|
1095
|
+
decode(input: BinaryReader | Uint8Array, length?: number): JobStepProgress {
|
|
1096
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1097
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1098
|
+
const message = createBaseJobStepProgress();
|
|
1099
|
+
while (reader.pos < end) {
|
|
1100
|
+
const tag = reader.uint32();
|
|
1101
|
+
switch (tag >>> 3) {
|
|
1102
|
+
case 1: {
|
|
1103
|
+
if (tag !== 8) {
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
message.Percentage = reader.int32();
|
|
1108
|
+
continue;
|
|
1109
|
+
}
|
|
1110
|
+
case 2: {
|
|
1111
|
+
if (tag !== 18) {
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
message.Message = reader.string();
|
|
1116
|
+
continue;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1120
|
+
break;
|
|
1121
|
+
}
|
|
1122
|
+
reader.skip(tag & 7);
|
|
1123
|
+
}
|
|
1124
|
+
return message;
|
|
1125
|
+
},
|
|
1126
|
+
|
|
1127
|
+
fromJSON(object: any): JobStepProgress {
|
|
1128
|
+
return {
|
|
1129
|
+
Percentage: isSet(object.Percentage) ? globalThis.Number(object.Percentage) : 0,
|
|
1130
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
1131
|
+
};
|
|
1132
|
+
},
|
|
1133
|
+
|
|
1134
|
+
toJSON(message: JobStepProgress): unknown {
|
|
1135
|
+
const obj: any = {};
|
|
1136
|
+
if (message.Percentage !== 0) {
|
|
1137
|
+
obj.Percentage = Math.round(message.Percentage);
|
|
1138
|
+
}
|
|
1139
|
+
if (message.Message !== "") {
|
|
1140
|
+
obj.Message = message.Message;
|
|
1141
|
+
}
|
|
1142
|
+
return obj;
|
|
1143
|
+
},
|
|
1144
|
+
|
|
1145
|
+
create(base?: DeepPartial<JobStepProgress>): JobStepProgress {
|
|
1146
|
+
return JobStepProgress.fromPartial(base ?? {});
|
|
1147
|
+
},
|
|
1148
|
+
fromPartial(object: DeepPartial<JobStepProgress>): JobStepProgress {
|
|
1149
|
+
const message = createBaseJobStepProgress();
|
|
1150
|
+
message.Percentage = object.Percentage ?? 0;
|
|
1151
|
+
message.Message = object.Message ?? "";
|
|
1152
|
+
return message;
|
|
1153
|
+
},
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
function createBaseJobStepStatusChanged(): JobStepStatusChanged {
|
|
1157
|
+
return { Status: 0, Occurred: undefined, ExceptionMessages: [], ExceptionStackTrace: "" };
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
export const JobStepStatusChanged: MessageFns<JobStepStatusChanged> = {
|
|
1161
|
+
encode(message: JobStepStatusChanged, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1162
|
+
if (message.Status !== 0) {
|
|
1163
|
+
writer.uint32(8).int32(message.Status);
|
|
1164
|
+
}
|
|
1165
|
+
if (message.Occurred !== undefined) {
|
|
1166
|
+
SerializableDateTimeOffset.encode(message.Occurred, writer.uint32(18).fork()).join();
|
|
1167
|
+
}
|
|
1168
|
+
for (const v of message.ExceptionMessages) {
|
|
1169
|
+
writer.uint32(26).string(v!);
|
|
1170
|
+
}
|
|
1171
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1172
|
+
writer.uint32(34).string(message.ExceptionStackTrace);
|
|
1173
|
+
}
|
|
1174
|
+
return writer;
|
|
1175
|
+
},
|
|
1176
|
+
|
|
1177
|
+
decode(input: BinaryReader | Uint8Array, length?: number): JobStepStatusChanged {
|
|
1178
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1179
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1180
|
+
const message = createBaseJobStepStatusChanged();
|
|
1181
|
+
while (reader.pos < end) {
|
|
1182
|
+
const tag = reader.uint32();
|
|
1183
|
+
switch (tag >>> 3) {
|
|
1184
|
+
case 1: {
|
|
1185
|
+
if (tag !== 8) {
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
message.Status = reader.int32() as any;
|
|
1190
|
+
continue;
|
|
1191
|
+
}
|
|
1192
|
+
case 2: {
|
|
1193
|
+
if (tag !== 18) {
|
|
1194
|
+
break;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
message.Occurred = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
case 3: {
|
|
1201
|
+
if (tag !== 26) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
message.ExceptionMessages.push(reader.string());
|
|
1206
|
+
continue;
|
|
1207
|
+
}
|
|
1208
|
+
case 4: {
|
|
1209
|
+
if (tag !== 34) {
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
message.ExceptionStackTrace = reader.string();
|
|
1214
|
+
continue;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1218
|
+
break;
|
|
1219
|
+
}
|
|
1220
|
+
reader.skip(tag & 7);
|
|
1221
|
+
}
|
|
1222
|
+
return message;
|
|
1223
|
+
},
|
|
1224
|
+
|
|
1225
|
+
fromJSON(object: any): JobStepStatusChanged {
|
|
1226
|
+
return {
|
|
1227
|
+
Status: isSet(object.Status) ? jobStepStatusFromJSON(object.Status) : 0,
|
|
1228
|
+
Occurred: isSet(object.Occurred) ? SerializableDateTimeOffset.fromJSON(object.Occurred) : undefined,
|
|
1229
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1230
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1231
|
+
: [],
|
|
1232
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1233
|
+
};
|
|
1234
|
+
},
|
|
1235
|
+
|
|
1236
|
+
toJSON(message: JobStepStatusChanged): unknown {
|
|
1237
|
+
const obj: any = {};
|
|
1238
|
+
if (message.Status !== 0) {
|
|
1239
|
+
obj.Status = jobStepStatusToJSON(message.Status);
|
|
1240
|
+
}
|
|
1241
|
+
if (message.Occurred !== undefined) {
|
|
1242
|
+
obj.Occurred = SerializableDateTimeOffset.toJSON(message.Occurred);
|
|
1243
|
+
}
|
|
1244
|
+
if (message.ExceptionMessages?.length) {
|
|
1245
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1246
|
+
}
|
|
1247
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1248
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1249
|
+
}
|
|
1250
|
+
return obj;
|
|
1251
|
+
},
|
|
1252
|
+
|
|
1253
|
+
create(base?: DeepPartial<JobStepStatusChanged>): JobStepStatusChanged {
|
|
1254
|
+
return JobStepStatusChanged.fromPartial(base ?? {});
|
|
1255
|
+
},
|
|
1256
|
+
fromPartial(object: DeepPartial<JobStepStatusChanged>): JobStepStatusChanged {
|
|
1257
|
+
const message = createBaseJobStepStatusChanged();
|
|
1258
|
+
message.Status = object.Status ?? 0;
|
|
1259
|
+
message.Occurred = (object.Occurred !== undefined && object.Occurred !== null)
|
|
1260
|
+
? SerializableDateTimeOffset.fromPartial(object.Occurred)
|
|
1261
|
+
: undefined;
|
|
1262
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1263
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1264
|
+
return message;
|
|
1265
|
+
},
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
function createBaseJobStepSummaryResponse(): JobStepSummaryResponse {
|
|
1234
1269
|
return { Id: undefined, Type: "", Name: "", Status: 0, StatusChanges: [], Progress: undefined };
|
|
1235
1270
|
}
|
|
1236
1271
|
|
|
1237
|
-
export const
|
|
1238
|
-
encode(message:
|
|
1272
|
+
export const JobStepSummaryResponse: MessageFns<JobStepSummaryResponse> = {
|
|
1273
|
+
encode(message: JobStepSummaryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1239
1274
|
if (message.Id !== undefined) {
|
|
1240
1275
|
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
1241
1276
|
}
|
|
@@ -1257,10 +1292,10 @@ export const JobStep: MessageFns<JobStep> = {
|
|
|
1257
1292
|
return writer;
|
|
1258
1293
|
},
|
|
1259
1294
|
|
|
1260
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1295
|
+
decode(input: BinaryReader | Uint8Array, length?: number): JobStepSummaryResponse {
|
|
1261
1296
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1262
1297
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1263
|
-
const message =
|
|
1298
|
+
const message = createBaseJobStepSummaryResponse();
|
|
1264
1299
|
while (reader.pos < end) {
|
|
1265
1300
|
const tag = reader.uint32();
|
|
1266
1301
|
switch (tag >>> 3) {
|
|
@@ -1321,7 +1356,7 @@ export const JobStep: MessageFns<JobStep> = {
|
|
|
1321
1356
|
return message;
|
|
1322
1357
|
},
|
|
1323
1358
|
|
|
1324
|
-
fromJSON(object: any):
|
|
1359
|
+
fromJSON(object: any): JobStepSummaryResponse {
|
|
1325
1360
|
return {
|
|
1326
1361
|
Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
|
|
1327
1362
|
Type: isSet(object.Type) ? globalThis.String(object.Type) : "",
|
|
@@ -1334,7 +1369,7 @@ export const JobStep: MessageFns<JobStep> = {
|
|
|
1334
1369
|
};
|
|
1335
1370
|
},
|
|
1336
1371
|
|
|
1337
|
-
toJSON(message:
|
|
1372
|
+
toJSON(message: JobStepSummaryResponse): unknown {
|
|
1338
1373
|
const obj: any = {};
|
|
1339
1374
|
if (message.Id !== undefined) {
|
|
1340
1375
|
obj.Id = Guid.toJSON(message.Id);
|
|
@@ -1357,11 +1392,11 @@ export const JobStep: MessageFns<JobStep> = {
|
|
|
1357
1392
|
return obj;
|
|
1358
1393
|
},
|
|
1359
1394
|
|
|
1360
|
-
create(base?: DeepPartial<
|
|
1361
|
-
return
|
|
1395
|
+
create(base?: DeepPartial<JobStepSummaryResponse>): JobStepSummaryResponse {
|
|
1396
|
+
return JobStepSummaryResponse.fromPartial(base ?? {});
|
|
1362
1397
|
},
|
|
1363
|
-
fromPartial(object: DeepPartial<
|
|
1364
|
-
const message =
|
|
1398
|
+
fromPartial(object: DeepPartial<JobStepSummaryResponse>): JobStepSummaryResponse {
|
|
1399
|
+
const message = createBaseJobStepSummaryResponse();
|
|
1365
1400
|
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
1366
1401
|
message.Type = object.Type ?? "";
|
|
1367
1402
|
message.Name = object.Name ?? "";
|
|
@@ -1374,42 +1409,105 @@ export const JobStep: MessageFns<JobStep> = {
|
|
|
1374
1409
|
},
|
|
1375
1410
|
};
|
|
1376
1411
|
|
|
1377
|
-
function
|
|
1378
|
-
return {
|
|
1412
|
+
function createBaseJobSummaryResponse(): JobSummaryResponse {
|
|
1413
|
+
return {
|
|
1414
|
+
Id: undefined,
|
|
1415
|
+
Details: "",
|
|
1416
|
+
Type: "",
|
|
1417
|
+
Status: 0,
|
|
1418
|
+
Created: undefined,
|
|
1419
|
+
StatusChanges: [],
|
|
1420
|
+
Progress: undefined,
|
|
1421
|
+
};
|
|
1379
1422
|
}
|
|
1380
1423
|
|
|
1381
|
-
export const
|
|
1382
|
-
encode(message:
|
|
1383
|
-
if (message.
|
|
1384
|
-
writer.uint32(
|
|
1424
|
+
export const JobSummaryResponse: MessageFns<JobSummaryResponse> = {
|
|
1425
|
+
encode(message: JobSummaryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1426
|
+
if (message.Id !== undefined) {
|
|
1427
|
+
Guid.encode(message.Id, writer.uint32(10).fork()).join();
|
|
1385
1428
|
}
|
|
1386
|
-
if (message.
|
|
1387
|
-
writer.uint32(18).string(message.
|
|
1429
|
+
if (message.Details !== "") {
|
|
1430
|
+
writer.uint32(18).string(message.Details);
|
|
1431
|
+
}
|
|
1432
|
+
if (message.Type !== "") {
|
|
1433
|
+
writer.uint32(26).string(message.Type);
|
|
1434
|
+
}
|
|
1435
|
+
if (message.Status !== 0) {
|
|
1436
|
+
writer.uint32(32).int32(message.Status);
|
|
1437
|
+
}
|
|
1438
|
+
if (message.Created !== undefined) {
|
|
1439
|
+
DateTimeOffset.encode(message.Created, writer.uint32(42).fork()).join();
|
|
1440
|
+
}
|
|
1441
|
+
for (const v of message.StatusChanges) {
|
|
1442
|
+
JobStatusChanged.encode(v!, writer.uint32(50).fork()).join();
|
|
1443
|
+
}
|
|
1444
|
+
if (message.Progress !== undefined) {
|
|
1445
|
+
JobProgress.encode(message.Progress, writer.uint32(58).fork()).join();
|
|
1388
1446
|
}
|
|
1389
1447
|
return writer;
|
|
1390
1448
|
},
|
|
1391
1449
|
|
|
1392
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1450
|
+
decode(input: BinaryReader | Uint8Array, length?: number): JobSummaryResponse {
|
|
1393
1451
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1394
1452
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1395
|
-
const message =
|
|
1453
|
+
const message = createBaseJobSummaryResponse();
|
|
1396
1454
|
while (reader.pos < end) {
|
|
1397
1455
|
const tag = reader.uint32();
|
|
1398
1456
|
switch (tag >>> 3) {
|
|
1399
1457
|
case 1: {
|
|
1400
|
-
if (tag !==
|
|
1458
|
+
if (tag !== 10) {
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
message.Id = Guid.decode(reader, reader.uint32());
|
|
1463
|
+
continue;
|
|
1464
|
+
}
|
|
1465
|
+
case 2: {
|
|
1466
|
+
if (tag !== 18) {
|
|
1467
|
+
break;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
message.Details = reader.string();
|
|
1471
|
+
continue;
|
|
1472
|
+
}
|
|
1473
|
+
case 3: {
|
|
1474
|
+
if (tag !== 26) {
|
|
1475
|
+
break;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
message.Type = reader.string();
|
|
1479
|
+
continue;
|
|
1480
|
+
}
|
|
1481
|
+
case 4: {
|
|
1482
|
+
if (tag !== 32) {
|
|
1483
|
+
break;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
message.Status = reader.int32() as any;
|
|
1487
|
+
continue;
|
|
1488
|
+
}
|
|
1489
|
+
case 5: {
|
|
1490
|
+
if (tag !== 42) {
|
|
1401
1491
|
break;
|
|
1402
1492
|
}
|
|
1403
1493
|
|
|
1404
|
-
message.
|
|
1494
|
+
message.Created = DateTimeOffset.decode(reader, reader.uint32());
|
|
1405
1495
|
continue;
|
|
1406
1496
|
}
|
|
1407
|
-
case
|
|
1408
|
-
if (tag !==
|
|
1497
|
+
case 6: {
|
|
1498
|
+
if (tag !== 50) {
|
|
1409
1499
|
break;
|
|
1410
1500
|
}
|
|
1411
1501
|
|
|
1412
|
-
message.
|
|
1502
|
+
message.StatusChanges.push(JobStatusChanged.decode(reader, reader.uint32()));
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1505
|
+
case 7: {
|
|
1506
|
+
if (tag !== 58) {
|
|
1507
|
+
break;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
message.Progress = JobProgress.decode(reader, reader.uint32());
|
|
1413
1511
|
continue;
|
|
1414
1512
|
}
|
|
1415
1513
|
}
|
|
@@ -1421,77 +1519,124 @@ export const JobStepProgress: MessageFns<JobStepProgress> = {
|
|
|
1421
1519
|
return message;
|
|
1422
1520
|
},
|
|
1423
1521
|
|
|
1424
|
-
fromJSON(object: any):
|
|
1522
|
+
fromJSON(object: any): JobSummaryResponse {
|
|
1425
1523
|
return {
|
|
1426
|
-
|
|
1427
|
-
|
|
1524
|
+
Id: isSet(object.Id) ? Guid.fromJSON(object.Id) : undefined,
|
|
1525
|
+
Details: isSet(object.Details) ? globalThis.String(object.Details) : "",
|
|
1526
|
+
Type: isSet(object.Type) ? globalThis.String(object.Type) : "",
|
|
1527
|
+
Status: isSet(object.Status) ? jobStatusFromJSON(object.Status) : 0,
|
|
1528
|
+
Created: isSet(object.Created) ? DateTimeOffset.fromJSON(object.Created) : undefined,
|
|
1529
|
+
StatusChanges: globalThis.Array.isArray(object?.StatusChanges)
|
|
1530
|
+
? object.StatusChanges.map((e: any) => JobStatusChanged.fromJSON(e))
|
|
1531
|
+
: [],
|
|
1532
|
+
Progress: isSet(object.Progress) ? JobProgress.fromJSON(object.Progress) : undefined,
|
|
1428
1533
|
};
|
|
1429
1534
|
},
|
|
1430
1535
|
|
|
1431
|
-
toJSON(message:
|
|
1536
|
+
toJSON(message: JobSummaryResponse): unknown {
|
|
1432
1537
|
const obj: any = {};
|
|
1433
|
-
if (message.
|
|
1434
|
-
obj.
|
|
1538
|
+
if (message.Id !== undefined) {
|
|
1539
|
+
obj.Id = Guid.toJSON(message.Id);
|
|
1435
1540
|
}
|
|
1436
|
-
if (message.
|
|
1437
|
-
obj.
|
|
1541
|
+
if (message.Details !== "") {
|
|
1542
|
+
obj.Details = message.Details;
|
|
1543
|
+
}
|
|
1544
|
+
if (message.Type !== "") {
|
|
1545
|
+
obj.Type = message.Type;
|
|
1546
|
+
}
|
|
1547
|
+
if (message.Status !== 0) {
|
|
1548
|
+
obj.Status = jobStatusToJSON(message.Status);
|
|
1549
|
+
}
|
|
1550
|
+
if (message.Created !== undefined) {
|
|
1551
|
+
obj.Created = DateTimeOffset.toJSON(message.Created);
|
|
1552
|
+
}
|
|
1553
|
+
if (message.StatusChanges?.length) {
|
|
1554
|
+
obj.StatusChanges = message.StatusChanges.map((e) => JobStatusChanged.toJSON(e));
|
|
1555
|
+
}
|
|
1556
|
+
if (message.Progress !== undefined) {
|
|
1557
|
+
obj.Progress = JobProgress.toJSON(message.Progress);
|
|
1438
1558
|
}
|
|
1439
1559
|
return obj;
|
|
1440
1560
|
},
|
|
1441
1561
|
|
|
1442
|
-
create(base?: DeepPartial<
|
|
1443
|
-
return
|
|
1562
|
+
create(base?: DeepPartial<JobSummaryResponse>): JobSummaryResponse {
|
|
1563
|
+
return JobSummaryResponse.fromPartial(base ?? {});
|
|
1444
1564
|
},
|
|
1445
|
-
fromPartial(object: DeepPartial<
|
|
1446
|
-
const message =
|
|
1447
|
-
message.
|
|
1448
|
-
message.
|
|
1565
|
+
fromPartial(object: DeepPartial<JobSummaryResponse>): JobSummaryResponse {
|
|
1566
|
+
const message = createBaseJobSummaryResponse();
|
|
1567
|
+
message.Id = (object.Id !== undefined && object.Id !== null) ? Guid.fromPartial(object.Id) : undefined;
|
|
1568
|
+
message.Details = object.Details ?? "";
|
|
1569
|
+
message.Type = object.Type ?? "";
|
|
1570
|
+
message.Status = object.Status ?? 0;
|
|
1571
|
+
message.Created = (object.Created !== undefined && object.Created !== null)
|
|
1572
|
+
? DateTimeOffset.fromPartial(object.Created)
|
|
1573
|
+
: undefined;
|
|
1574
|
+
message.StatusChanges = object.StatusChanges?.map((e) => JobStatusChanged.fromPartial(e)) || [];
|
|
1575
|
+
message.Progress = (object.Progress !== undefined && object.Progress !== null)
|
|
1576
|
+
? JobProgress.fromPartial(object.Progress)
|
|
1577
|
+
: undefined;
|
|
1449
1578
|
return message;
|
|
1450
1579
|
},
|
|
1451
1580
|
};
|
|
1452
1581
|
|
|
1453
|
-
function
|
|
1454
|
-
return {
|
|
1582
|
+
function createBaseQueryResultIEnumerableJobStepSummaryResponse(): QueryResultIEnumerableJobStepSummaryResponse {
|
|
1583
|
+
return {
|
|
1584
|
+
CorrelationId: undefined,
|
|
1585
|
+
IsAuthorized: false,
|
|
1586
|
+
ValidationResults: [],
|
|
1587
|
+
ExceptionMessages: [],
|
|
1588
|
+
ExceptionStackTrace: "",
|
|
1589
|
+
Data: [],
|
|
1590
|
+
};
|
|
1455
1591
|
}
|
|
1456
1592
|
|
|
1457
|
-
export const
|
|
1458
|
-
encode(
|
|
1459
|
-
|
|
1460
|
-
|
|
1593
|
+
export const QueryResultIEnumerableJobStepSummaryResponse: MessageFns<QueryResultIEnumerableJobStepSummaryResponse> = {
|
|
1594
|
+
encode(
|
|
1595
|
+
message: QueryResultIEnumerableJobStepSummaryResponse,
|
|
1596
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
1597
|
+
): BinaryWriter {
|
|
1598
|
+
if (message.CorrelationId !== undefined) {
|
|
1599
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1461
1600
|
}
|
|
1462
|
-
if (message.
|
|
1463
|
-
|
|
1601
|
+
if (message.IsAuthorized !== false) {
|
|
1602
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1603
|
+
}
|
|
1604
|
+
for (const v of message.ValidationResults) {
|
|
1605
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1464
1606
|
}
|
|
1465
1607
|
for (const v of message.ExceptionMessages) {
|
|
1466
|
-
writer.uint32(
|
|
1608
|
+
writer.uint32(34).string(v!);
|
|
1467
1609
|
}
|
|
1468
1610
|
if (message.ExceptionStackTrace !== "") {
|
|
1469
|
-
writer.uint32(
|
|
1611
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1612
|
+
}
|
|
1613
|
+
for (const v of message.Data) {
|
|
1614
|
+
JobStepSummaryResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1470
1615
|
}
|
|
1471
1616
|
return writer;
|
|
1472
1617
|
},
|
|
1473
1618
|
|
|
1474
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1619
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableJobStepSummaryResponse {
|
|
1475
1620
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1476
1621
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1477
|
-
const message =
|
|
1622
|
+
const message = createBaseQueryResultIEnumerableJobStepSummaryResponse();
|
|
1478
1623
|
while (reader.pos < end) {
|
|
1479
1624
|
const tag = reader.uint32();
|
|
1480
1625
|
switch (tag >>> 3) {
|
|
1481
1626
|
case 1: {
|
|
1482
|
-
if (tag !==
|
|
1627
|
+
if (tag !== 10) {
|
|
1483
1628
|
break;
|
|
1484
1629
|
}
|
|
1485
1630
|
|
|
1486
|
-
message.
|
|
1631
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1487
1632
|
continue;
|
|
1488
1633
|
}
|
|
1489
1634
|
case 2: {
|
|
1490
|
-
if (tag !==
|
|
1635
|
+
if (tag !== 16) {
|
|
1491
1636
|
break;
|
|
1492
1637
|
}
|
|
1493
1638
|
|
|
1494
|
-
message.
|
|
1639
|
+
message.IsAuthorized = reader.bool();
|
|
1495
1640
|
continue;
|
|
1496
1641
|
}
|
|
1497
1642
|
case 3: {
|
|
@@ -1499,7 +1644,7 @@ export const JobStepStatusChanged: MessageFns<JobStepStatusChanged> = {
|
|
|
1499
1644
|
break;
|
|
1500
1645
|
}
|
|
1501
1646
|
|
|
1502
|
-
message.
|
|
1647
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1503
1648
|
continue;
|
|
1504
1649
|
}
|
|
1505
1650
|
case 4: {
|
|
@@ -1507,9 +1652,25 @@ export const JobStepStatusChanged: MessageFns<JobStepStatusChanged> = {
|
|
|
1507
1652
|
break;
|
|
1508
1653
|
}
|
|
1509
1654
|
|
|
1655
|
+
message.ExceptionMessages.push(reader.string());
|
|
1656
|
+
continue;
|
|
1657
|
+
}
|
|
1658
|
+
case 5: {
|
|
1659
|
+
if (tag !== 42) {
|
|
1660
|
+
break;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1510
1663
|
message.ExceptionStackTrace = reader.string();
|
|
1511
1664
|
continue;
|
|
1512
1665
|
}
|
|
1666
|
+
case 6: {
|
|
1667
|
+
if (tag !== 50) {
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
message.Data.push(JobStepSummaryResponse.decode(reader, reader.uint32()));
|
|
1672
|
+
continue;
|
|
1673
|
+
}
|
|
1513
1674
|
}
|
|
1514
1675
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1515
1676
|
break;
|
|
@@ -1519,24 +1680,33 @@ export const JobStepStatusChanged: MessageFns<JobStepStatusChanged> = {
|
|
|
1519
1680
|
return message;
|
|
1520
1681
|
},
|
|
1521
1682
|
|
|
1522
|
-
fromJSON(object: any):
|
|
1683
|
+
fromJSON(object: any): QueryResultIEnumerableJobStepSummaryResponse {
|
|
1523
1684
|
return {
|
|
1524
|
-
|
|
1525
|
-
|
|
1685
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1686
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1687
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1688
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1689
|
+
: [],
|
|
1526
1690
|
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1527
1691
|
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1528
1692
|
: [],
|
|
1529
1693
|
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1694
|
+
Data: globalThis.Array.isArray(object?.Data)
|
|
1695
|
+
? object.Data.map((e: any) => JobStepSummaryResponse.fromJSON(e))
|
|
1696
|
+
: [],
|
|
1530
1697
|
};
|
|
1531
1698
|
},
|
|
1532
1699
|
|
|
1533
|
-
toJSON(message:
|
|
1700
|
+
toJSON(message: QueryResultIEnumerableJobStepSummaryResponse): unknown {
|
|
1534
1701
|
const obj: any = {};
|
|
1535
|
-
if (message.
|
|
1536
|
-
obj.
|
|
1702
|
+
if (message.CorrelationId !== undefined) {
|
|
1703
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1537
1704
|
}
|
|
1538
|
-
if (message.
|
|
1539
|
-
obj.
|
|
1705
|
+
if (message.IsAuthorized !== false) {
|
|
1706
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1707
|
+
}
|
|
1708
|
+
if (message.ValidationResults?.length) {
|
|
1709
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1540
1710
|
}
|
|
1541
1711
|
if (message.ExceptionMessages?.length) {
|
|
1542
1712
|
obj.ExceptionMessages = message.ExceptionMessages;
|
|
@@ -1544,43 +1714,71 @@ export const JobStepStatusChanged: MessageFns<JobStepStatusChanged> = {
|
|
|
1544
1714
|
if (message.ExceptionStackTrace !== "") {
|
|
1545
1715
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1546
1716
|
}
|
|
1717
|
+
if (message.Data?.length) {
|
|
1718
|
+
obj.Data = message.Data.map((e) => JobStepSummaryResponse.toJSON(e));
|
|
1719
|
+
}
|
|
1547
1720
|
return obj;
|
|
1548
1721
|
},
|
|
1549
1722
|
|
|
1550
|
-
create(
|
|
1551
|
-
|
|
1723
|
+
create(
|
|
1724
|
+
base?: DeepPartial<QueryResultIEnumerableJobStepSummaryResponse>,
|
|
1725
|
+
): QueryResultIEnumerableJobStepSummaryResponse {
|
|
1726
|
+
return QueryResultIEnumerableJobStepSummaryResponse.fromPartial(base ?? {});
|
|
1552
1727
|
},
|
|
1553
|
-
fromPartial(
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
message
|
|
1557
|
-
|
|
1728
|
+
fromPartial(
|
|
1729
|
+
object: DeepPartial<QueryResultIEnumerableJobStepSummaryResponse>,
|
|
1730
|
+
): QueryResultIEnumerableJobStepSummaryResponse {
|
|
1731
|
+
const message = createBaseQueryResultIEnumerableJobStepSummaryResponse();
|
|
1732
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1733
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1558
1734
|
: undefined;
|
|
1735
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1736
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1559
1737
|
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1560
1738
|
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1739
|
+
message.Data = object.Data?.map((e) => JobStepSummaryResponse.fromPartial(e)) || [];
|
|
1561
1740
|
return message;
|
|
1562
1741
|
},
|
|
1563
1742
|
};
|
|
1564
1743
|
|
|
1565
|
-
function
|
|
1566
|
-
return {
|
|
1744
|
+
function createBaseQueryResultIEnumerableJobSummaryResponse(): QueryResultIEnumerableJobSummaryResponse {
|
|
1745
|
+
return {
|
|
1746
|
+
CorrelationId: undefined,
|
|
1747
|
+
IsAuthorized: false,
|
|
1748
|
+
ValidationResults: [],
|
|
1749
|
+
ExceptionMessages: [],
|
|
1750
|
+
ExceptionStackTrace: "",
|
|
1751
|
+
Data: [],
|
|
1752
|
+
};
|
|
1567
1753
|
}
|
|
1568
1754
|
|
|
1569
|
-
export const
|
|
1570
|
-
encode(message:
|
|
1571
|
-
if (message.
|
|
1572
|
-
|
|
1755
|
+
export const QueryResultIEnumerableJobSummaryResponse: MessageFns<QueryResultIEnumerableJobSummaryResponse> = {
|
|
1756
|
+
encode(message: QueryResultIEnumerableJobSummaryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1757
|
+
if (message.CorrelationId !== undefined) {
|
|
1758
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1759
|
+
}
|
|
1760
|
+
if (message.IsAuthorized !== false) {
|
|
1761
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1762
|
+
}
|
|
1763
|
+
for (const v of message.ValidationResults) {
|
|
1764
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1765
|
+
}
|
|
1766
|
+
for (const v of message.ExceptionMessages) {
|
|
1767
|
+
writer.uint32(34).string(v!);
|
|
1573
1768
|
}
|
|
1574
|
-
if (message.
|
|
1575
|
-
writer.uint32(
|
|
1769
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1770
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1771
|
+
}
|
|
1772
|
+
for (const v of message.Data) {
|
|
1773
|
+
JobSummaryResponse.encode(v!, writer.uint32(50).fork()).join();
|
|
1576
1774
|
}
|
|
1577
1775
|
return writer;
|
|
1578
1776
|
},
|
|
1579
1777
|
|
|
1580
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1778
|
+
decode(input: BinaryReader | Uint8Array, length?: number): QueryResultIEnumerableJobSummaryResponse {
|
|
1581
1779
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1582
1780
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1583
|
-
const message =
|
|
1781
|
+
const message = createBaseQueryResultIEnumerableJobSummaryResponse();
|
|
1584
1782
|
while (reader.pos < end) {
|
|
1585
1783
|
const tag = reader.uint32();
|
|
1586
1784
|
switch (tag >>> 3) {
|
|
@@ -1589,7 +1787,7 @@ export const OneOfJobJobError: MessageFns<OneOfJobJobError> = {
|
|
|
1589
1787
|
break;
|
|
1590
1788
|
}
|
|
1591
1789
|
|
|
1592
|
-
message.
|
|
1790
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1593
1791
|
continue;
|
|
1594
1792
|
}
|
|
1595
1793
|
case 2: {
|
|
@@ -1597,7 +1795,39 @@ export const OneOfJobJobError: MessageFns<OneOfJobJobError> = {
|
|
|
1597
1795
|
break;
|
|
1598
1796
|
}
|
|
1599
1797
|
|
|
1600
|
-
message.
|
|
1798
|
+
message.IsAuthorized = reader.bool();
|
|
1799
|
+
continue;
|
|
1800
|
+
}
|
|
1801
|
+
case 3: {
|
|
1802
|
+
if (tag !== 26) {
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1807
|
+
continue;
|
|
1808
|
+
}
|
|
1809
|
+
case 4: {
|
|
1810
|
+
if (tag !== 34) {
|
|
1811
|
+
break;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
message.ExceptionMessages.push(reader.string());
|
|
1815
|
+
continue;
|
|
1816
|
+
}
|
|
1817
|
+
case 5: {
|
|
1818
|
+
if (tag !== 42) {
|
|
1819
|
+
break;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
message.ExceptionStackTrace = reader.string();
|
|
1823
|
+
continue;
|
|
1824
|
+
}
|
|
1825
|
+
case 6: {
|
|
1826
|
+
if (tag !== 50) {
|
|
1827
|
+
break;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
message.Data.push(JobSummaryResponse.decode(reader, reader.uint32()));
|
|
1601
1831
|
continue;
|
|
1602
1832
|
}
|
|
1603
1833
|
}
|
|
@@ -1609,43 +1839,67 @@ export const OneOfJobJobError: MessageFns<OneOfJobJobError> = {
|
|
|
1609
1839
|
return message;
|
|
1610
1840
|
},
|
|
1611
1841
|
|
|
1612
|
-
fromJSON(object: any):
|
|
1842
|
+
fromJSON(object: any): QueryResultIEnumerableJobSummaryResponse {
|
|
1613
1843
|
return {
|
|
1614
|
-
|
|
1615
|
-
|
|
1844
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1845
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1846
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1847
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1848
|
+
: [],
|
|
1849
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1850
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1851
|
+
: [],
|
|
1852
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1853
|
+
Data: globalThis.Array.isArray(object?.Data) ? object.Data.map((e: any) => JobSummaryResponse.fromJSON(e)) : [],
|
|
1616
1854
|
};
|
|
1617
1855
|
},
|
|
1618
1856
|
|
|
1619
|
-
toJSON(message:
|
|
1857
|
+
toJSON(message: QueryResultIEnumerableJobSummaryResponse): unknown {
|
|
1620
1858
|
const obj: any = {};
|
|
1621
|
-
if (message.
|
|
1622
|
-
obj.
|
|
1859
|
+
if (message.CorrelationId !== undefined) {
|
|
1860
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1861
|
+
}
|
|
1862
|
+
if (message.IsAuthorized !== false) {
|
|
1863
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1864
|
+
}
|
|
1865
|
+
if (message.ValidationResults?.length) {
|
|
1866
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1867
|
+
}
|
|
1868
|
+
if (message.ExceptionMessages?.length) {
|
|
1869
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1870
|
+
}
|
|
1871
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1872
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1623
1873
|
}
|
|
1624
|
-
if (message.
|
|
1625
|
-
obj.
|
|
1874
|
+
if (message.Data?.length) {
|
|
1875
|
+
obj.Data = message.Data.map((e) => JobSummaryResponse.toJSON(e));
|
|
1626
1876
|
}
|
|
1627
1877
|
return obj;
|
|
1628
1878
|
},
|
|
1629
1879
|
|
|
1630
|
-
create(base?: DeepPartial<
|
|
1631
|
-
return
|
|
1880
|
+
create(base?: DeepPartial<QueryResultIEnumerableJobSummaryResponse>): QueryResultIEnumerableJobSummaryResponse {
|
|
1881
|
+
return QueryResultIEnumerableJobSummaryResponse.fromPartial(base ?? {});
|
|
1632
1882
|
},
|
|
1633
|
-
fromPartial(object: DeepPartial<
|
|
1634
|
-
const message =
|
|
1635
|
-
message.
|
|
1636
|
-
?
|
|
1883
|
+
fromPartial(object: DeepPartial<QueryResultIEnumerableJobSummaryResponse>): QueryResultIEnumerableJobSummaryResponse {
|
|
1884
|
+
const message = createBaseQueryResultIEnumerableJobSummaryResponse();
|
|
1885
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1886
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1637
1887
|
: undefined;
|
|
1638
|
-
message.
|
|
1888
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1889
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1890
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1891
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1892
|
+
message.Data = object.Data?.map((e) => JobSummaryResponse.fromPartial(e)) || [];
|
|
1639
1893
|
return message;
|
|
1640
1894
|
},
|
|
1641
1895
|
};
|
|
1642
1896
|
|
|
1643
|
-
function
|
|
1897
|
+
function createBaseResumeJobRequest(): ResumeJobRequest {
|
|
1644
1898
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1645
1899
|
}
|
|
1646
1900
|
|
|
1647
|
-
export const
|
|
1648
|
-
encode(message:
|
|
1901
|
+
export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
1902
|
+
encode(message: ResumeJobRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1649
1903
|
if (message.EventStore !== "") {
|
|
1650
1904
|
writer.uint32(10).string(message.EventStore);
|
|
1651
1905
|
}
|
|
@@ -1658,10 +1912,10 @@ export const ResumeJob: MessageFns<ResumeJob> = {
|
|
|
1658
1912
|
return writer;
|
|
1659
1913
|
},
|
|
1660
1914
|
|
|
1661
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
1915
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ResumeJobRequest {
|
|
1662
1916
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1663
1917
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1664
|
-
const message =
|
|
1918
|
+
const message = createBaseResumeJobRequest();
|
|
1665
1919
|
while (reader.pos < end) {
|
|
1666
1920
|
const tag = reader.uint32();
|
|
1667
1921
|
switch (tag >>> 3) {
|
|
@@ -1698,7 +1952,7 @@ export const ResumeJob: MessageFns<ResumeJob> = {
|
|
|
1698
1952
|
return message;
|
|
1699
1953
|
},
|
|
1700
1954
|
|
|
1701
|
-
fromJSON(object: any):
|
|
1955
|
+
fromJSON(object: any): ResumeJobRequest {
|
|
1702
1956
|
return {
|
|
1703
1957
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1704
1958
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
@@ -1706,7 +1960,7 @@ export const ResumeJob: MessageFns<ResumeJob> = {
|
|
|
1706
1960
|
};
|
|
1707
1961
|
},
|
|
1708
1962
|
|
|
1709
|
-
toJSON(message:
|
|
1963
|
+
toJSON(message: ResumeJobRequest): unknown {
|
|
1710
1964
|
const obj: any = {};
|
|
1711
1965
|
if (message.EventStore !== "") {
|
|
1712
1966
|
obj.EventStore = message.EventStore;
|
|
@@ -1720,11 +1974,11 @@ export const ResumeJob: MessageFns<ResumeJob> = {
|
|
|
1720
1974
|
return obj;
|
|
1721
1975
|
},
|
|
1722
1976
|
|
|
1723
|
-
create(base?: DeepPartial<
|
|
1724
|
-
return
|
|
1977
|
+
create(base?: DeepPartial<ResumeJobRequest>): ResumeJobRequest {
|
|
1978
|
+
return ResumeJobRequest.fromPartial(base ?? {});
|
|
1725
1979
|
},
|
|
1726
|
-
fromPartial(object: DeepPartial<
|
|
1727
|
-
const message =
|
|
1980
|
+
fromPartial(object: DeepPartial<ResumeJobRequest>): ResumeJobRequest {
|
|
1981
|
+
const message = createBaseResumeJobRequest();
|
|
1728
1982
|
message.EventStore = object.EventStore ?? "";
|
|
1729
1983
|
message.Namespace = object.Namespace ?? "";
|
|
1730
1984
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
@@ -1790,12 +2044,12 @@ export const SerializableDateTimeOffset: MessageFns<SerializableDateTimeOffset>
|
|
|
1790
2044
|
},
|
|
1791
2045
|
};
|
|
1792
2046
|
|
|
1793
|
-
function
|
|
2047
|
+
function createBaseStopJobRequest(): StopJobRequest {
|
|
1794
2048
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1795
2049
|
}
|
|
1796
2050
|
|
|
1797
|
-
export const
|
|
1798
|
-
encode(message:
|
|
2051
|
+
export const StopJobRequest: MessageFns<StopJobRequest> = {
|
|
2052
|
+
encode(message: StopJobRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1799
2053
|
if (message.EventStore !== "") {
|
|
1800
2054
|
writer.uint32(10).string(message.EventStore);
|
|
1801
2055
|
}
|
|
@@ -1808,10 +2062,10 @@ export const StopJob: MessageFns<StopJob> = {
|
|
|
1808
2062
|
return writer;
|
|
1809
2063
|
},
|
|
1810
2064
|
|
|
1811
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2065
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StopJobRequest {
|
|
1812
2066
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1813
2067
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1814
|
-
const message =
|
|
2068
|
+
const message = createBaseStopJobRequest();
|
|
1815
2069
|
while (reader.pos < end) {
|
|
1816
2070
|
const tag = reader.uint32();
|
|
1817
2071
|
switch (tag >>> 3) {
|
|
@@ -1848,7 +2102,7 @@ export const StopJob: MessageFns<StopJob> = {
|
|
|
1848
2102
|
return message;
|
|
1849
2103
|
},
|
|
1850
2104
|
|
|
1851
|
-
fromJSON(object: any):
|
|
2105
|
+
fromJSON(object: any): StopJobRequest {
|
|
1852
2106
|
return {
|
|
1853
2107
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1854
2108
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
@@ -1856,7 +2110,7 @@ export const StopJob: MessageFns<StopJob> = {
|
|
|
1856
2110
|
};
|
|
1857
2111
|
},
|
|
1858
2112
|
|
|
1859
|
-
toJSON(message:
|
|
2113
|
+
toJSON(message: StopJobRequest): unknown {
|
|
1860
2114
|
const obj: any = {};
|
|
1861
2115
|
if (message.EventStore !== "") {
|
|
1862
2116
|
obj.EventStore = message.EventStore;
|
|
@@ -1870,11 +2124,11 @@ export const StopJob: MessageFns<StopJob> = {
|
|
|
1870
2124
|
return obj;
|
|
1871
2125
|
},
|
|
1872
2126
|
|
|
1873
|
-
create(base?: DeepPartial<
|
|
1874
|
-
return
|
|
2127
|
+
create(base?: DeepPartial<StopJobRequest>): StopJobRequest {
|
|
2128
|
+
return StopJobRequest.fromPartial(base ?? {});
|
|
1875
2129
|
},
|
|
1876
|
-
fromPartial(object: DeepPartial<
|
|
1877
|
-
const message =
|
|
2130
|
+
fromPartial(object: DeepPartial<StopJobRequest>): StopJobRequest {
|
|
2131
|
+
const message = createBaseStopJobRequest();
|
|
1878
2132
|
message.EventStore = object.EventStore ?? "";
|
|
1879
2133
|
message.Namespace = object.Namespace ?? "";
|
|
1880
2134
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
@@ -1882,32 +2136,116 @@ export const StopJob: MessageFns<StopJob> = {
|
|
|
1882
2136
|
},
|
|
1883
2137
|
};
|
|
1884
2138
|
|
|
2139
|
+
function createBaseValidationResult(): ValidationResult {
|
|
2140
|
+
return { Severity: 0, Message: "", Members: [] };
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
export const ValidationResult: MessageFns<ValidationResult> = {
|
|
2144
|
+
encode(message: ValidationResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2145
|
+
if (message.Severity !== 0) {
|
|
2146
|
+
writer.uint32(8).int32(message.Severity);
|
|
2147
|
+
}
|
|
2148
|
+
if (message.Message !== "") {
|
|
2149
|
+
writer.uint32(18).string(message.Message);
|
|
2150
|
+
}
|
|
2151
|
+
for (const v of message.Members) {
|
|
2152
|
+
writer.uint32(26).string(v!);
|
|
2153
|
+
}
|
|
2154
|
+
return writer;
|
|
2155
|
+
},
|
|
2156
|
+
|
|
2157
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ValidationResult {
|
|
2158
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2159
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2160
|
+
const message = createBaseValidationResult();
|
|
2161
|
+
while (reader.pos < end) {
|
|
2162
|
+
const tag = reader.uint32();
|
|
2163
|
+
switch (tag >>> 3) {
|
|
2164
|
+
case 1: {
|
|
2165
|
+
if (tag !== 8) {
|
|
2166
|
+
break;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
message.Severity = reader.int32() as any;
|
|
2170
|
+
continue;
|
|
2171
|
+
}
|
|
2172
|
+
case 2: {
|
|
2173
|
+
if (tag !== 18) {
|
|
2174
|
+
break;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
message.Message = reader.string();
|
|
2178
|
+
continue;
|
|
2179
|
+
}
|
|
2180
|
+
case 3: {
|
|
2181
|
+
if (tag !== 26) {
|
|
2182
|
+
break;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
message.Members.push(reader.string());
|
|
2186
|
+
continue;
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2190
|
+
break;
|
|
2191
|
+
}
|
|
2192
|
+
reader.skip(tag & 7);
|
|
2193
|
+
}
|
|
2194
|
+
return message;
|
|
2195
|
+
},
|
|
2196
|
+
|
|
2197
|
+
fromJSON(object: any): ValidationResult {
|
|
2198
|
+
return {
|
|
2199
|
+
Severity: isSet(object.Severity) ? validationResultSeverityFromJSON(object.Severity) : 0,
|
|
2200
|
+
Message: isSet(object.Message) ? globalThis.String(object.Message) : "",
|
|
2201
|
+
Members: globalThis.Array.isArray(object?.Members) ? object.Members.map((e: any) => globalThis.String(e)) : [],
|
|
2202
|
+
};
|
|
2203
|
+
},
|
|
2204
|
+
|
|
2205
|
+
toJSON(message: ValidationResult): unknown {
|
|
2206
|
+
const obj: any = {};
|
|
2207
|
+
if (message.Severity !== 0) {
|
|
2208
|
+
obj.Severity = validationResultSeverityToJSON(message.Severity);
|
|
2209
|
+
}
|
|
2210
|
+
if (message.Message !== "") {
|
|
2211
|
+
obj.Message = message.Message;
|
|
2212
|
+
}
|
|
2213
|
+
if (message.Members?.length) {
|
|
2214
|
+
obj.Members = message.Members;
|
|
2215
|
+
}
|
|
2216
|
+
return obj;
|
|
2217
|
+
},
|
|
2218
|
+
|
|
2219
|
+
create(base?: DeepPartial<ValidationResult>): ValidationResult {
|
|
2220
|
+
return ValidationResult.fromPartial(base ?? {});
|
|
2221
|
+
},
|
|
2222
|
+
fromPartial(object: DeepPartial<ValidationResult>): ValidationResult {
|
|
2223
|
+
const message = createBaseValidationResult();
|
|
2224
|
+
message.Severity = object.Severity ?? 0;
|
|
2225
|
+
message.Message = object.Message ?? "";
|
|
2226
|
+
message.Members = object.Members?.map((e) => e) || [];
|
|
2227
|
+
return message;
|
|
2228
|
+
},
|
|
2229
|
+
};
|
|
2230
|
+
|
|
1885
2231
|
export type JobsDefinition = typeof JobsDefinition;
|
|
1886
2232
|
export const JobsDefinition = {
|
|
1887
2233
|
name: "Jobs",
|
|
1888
2234
|
fullName: "Cratis.Chronicle.Contracts.Jobs.Jobs",
|
|
1889
2235
|
methods: {
|
|
1890
|
-
|
|
1891
|
-
name: "
|
|
1892
|
-
requestType:
|
|
1893
|
-
requestStream: false,
|
|
1894
|
-
responseType: Empty as typeof Empty,
|
|
1895
|
-
responseStream: false,
|
|
1896
|
-
options: {},
|
|
1897
|
-
},
|
|
1898
|
-
getJob: {
|
|
1899
|
-
name: "GetJob",
|
|
1900
|
-
requestType: GetJobRequest as typeof GetJobRequest,
|
|
2236
|
+
allJobs: {
|
|
2237
|
+
name: "AllJobs",
|
|
2238
|
+
requestType: AllJobsRequest as typeof AllJobsRequest,
|
|
1901
2239
|
requestStream: false,
|
|
1902
|
-
responseType:
|
|
1903
|
-
responseStream:
|
|
2240
|
+
responseType: QueryResultIEnumerableJobSummaryResponse as typeof QueryResultIEnumerableJobSummaryResponse,
|
|
2241
|
+
responseStream: true,
|
|
1904
2242
|
options: {},
|
|
1905
2243
|
},
|
|
1906
|
-
|
|
1907
|
-
name: "
|
|
1908
|
-
requestType:
|
|
2244
|
+
deleteJob: {
|
|
2245
|
+
name: "DeleteJob",
|
|
2246
|
+
requestType: DeleteJobRequest as typeof DeleteJobRequest,
|
|
1909
2247
|
requestStream: false,
|
|
1910
|
-
responseType:
|
|
2248
|
+
responseType: CommandResult as typeof CommandResult,
|
|
1911
2249
|
responseStream: false,
|
|
1912
2250
|
options: {},
|
|
1913
2251
|
},
|
|
@@ -1915,31 +2253,23 @@ export const JobsDefinition = {
|
|
|
1915
2253
|
name: "GetJobSteps",
|
|
1916
2254
|
requestType: GetJobStepsRequest as typeof GetJobStepsRequest,
|
|
1917
2255
|
requestStream: false,
|
|
1918
|
-
responseType:
|
|
2256
|
+
responseType: QueryResultIEnumerableJobStepSummaryResponse as typeof QueryResultIEnumerableJobStepSummaryResponse,
|
|
1919
2257
|
responseStream: false,
|
|
1920
2258
|
options: {},
|
|
1921
2259
|
},
|
|
1922
|
-
|
|
1923
|
-
name: "
|
|
1924
|
-
requestType:
|
|
2260
|
+
resumeJob: {
|
|
2261
|
+
name: "ResumeJob",
|
|
2262
|
+
requestType: ResumeJobRequest as typeof ResumeJobRequest,
|
|
1925
2263
|
requestStream: false,
|
|
1926
|
-
responseType:
|
|
1927
|
-
responseStream: true,
|
|
1928
|
-
options: {},
|
|
1929
|
-
},
|
|
1930
|
-
resume: {
|
|
1931
|
-
name: "Resume",
|
|
1932
|
-
requestType: ResumeJob as typeof ResumeJob,
|
|
1933
|
-
requestStream: false,
|
|
1934
|
-
responseType: Empty as typeof Empty,
|
|
2264
|
+
responseType: CommandResult as typeof CommandResult,
|
|
1935
2265
|
responseStream: false,
|
|
1936
2266
|
options: {},
|
|
1937
2267
|
},
|
|
1938
|
-
|
|
1939
|
-
name: "
|
|
1940
|
-
requestType:
|
|
2268
|
+
stopJob: {
|
|
2269
|
+
name: "StopJob",
|
|
2270
|
+
requestType: StopJobRequest as typeof StopJobRequest,
|
|
1941
2271
|
requestStream: false,
|
|
1942
|
-
responseType:
|
|
2272
|
+
responseType: CommandResult as typeof CommandResult,
|
|
1943
2273
|
responseStream: false,
|
|
1944
2274
|
options: {},
|
|
1945
2275
|
},
|
|
@@ -1947,35 +2277,31 @@ export const JobsDefinition = {
|
|
|
1947
2277
|
} as const;
|
|
1948
2278
|
|
|
1949
2279
|
export interface JobsServiceImplementation<CallContextExt = {}> {
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
2280
|
+
allJobs(
|
|
2281
|
+
request: AllJobsRequest,
|
|
2282
|
+
context: CallContext & CallContextExt,
|
|
2283
|
+
): ServerStreamingMethodResult<DeepPartial<QueryResultIEnumerableJobSummaryResponse>>;
|
|
2284
|
+
deleteJob(request: DeleteJobRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
|
|
1953
2285
|
getJobSteps(
|
|
1954
2286
|
request: GetJobStepsRequest,
|
|
1955
2287
|
context: CallContext & CallContextExt,
|
|
1956
|
-
): Promise<DeepPartial<
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
context: CallContext & CallContextExt,
|
|
1960
|
-
): ServerStreamingMethodResult<DeepPartial<IEnumerableJob>>;
|
|
1961
|
-
resume(request: ResumeJob, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
1962
|
-
stop(request: StopJob, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;
|
|
2288
|
+
): Promise<DeepPartial<QueryResultIEnumerableJobStepSummaryResponse>>;
|
|
2289
|
+
resumeJob(request: ResumeJobRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
|
|
2290
|
+
stopJob(request: StopJobRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
|
|
1963
2291
|
}
|
|
1964
2292
|
|
|
1965
2293
|
export interface JobsClient<CallOptionsExt = {}> {
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
2294
|
+
allJobs(
|
|
2295
|
+
request: DeepPartial<AllJobsRequest>,
|
|
2296
|
+
options?: CallOptions & CallOptionsExt,
|
|
2297
|
+
): AsyncIterable<QueryResultIEnumerableJobSummaryResponse>;
|
|
2298
|
+
deleteJob(request: DeepPartial<DeleteJobRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
|
|
1969
2299
|
getJobSteps(
|
|
1970
2300
|
request: DeepPartial<GetJobStepsRequest>,
|
|
1971
2301
|
options?: CallOptions & CallOptionsExt,
|
|
1972
|
-
): Promise<
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
options?: CallOptions & CallOptionsExt,
|
|
1976
|
-
): AsyncIterable<IEnumerableJob>;
|
|
1977
|
-
resume(request: DeepPartial<ResumeJob>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
1978
|
-
stop(request: DeepPartial<StopJob>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
|
|
2302
|
+
): Promise<QueryResultIEnumerableJobStepSummaryResponse>;
|
|
2303
|
+
resumeJob(request: DeepPartial<ResumeJobRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
|
|
2304
|
+
stopJob(request: DeepPartial<StopJobRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
|
|
1979
2305
|
}
|
|
1980
2306
|
|
|
1981
2307
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|