@cratis/chronicle.contracts 19.79.0 → 19.81.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/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/jobs.d.ts +73 -0
- package/dist/cjs/generated/jobs.d.ts.map +1 -1
- package/dist/cjs/generated/jobs.js +827 -64
- package/dist/cjs/generated/jobs.js.map +1 -1
- package/dist/cjs/generated/observation.d.ts +21 -0
- package/dist/cjs/generated/observation.d.ts.map +1 -1
- package/dist/cjs/generated/observation.js +179 -0
- package/dist/cjs/generated/observation.js.map +1 -1
- package/dist/cjs/index.js +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/jobs.d.ts +73 -0
- package/dist/esm/generated/jobs.d.ts.map +1 -1
- package/dist/esm/generated/jobs.js +820 -65
- package/dist/esm/generated/jobs.js.map +1 -1
- package/dist/esm/generated/observation.d.ts +21 -0
- package/dist/esm/generated/observation.d.ts.map +1 -1
- package/dist/esm/generated/observation.js +178 -1
- package/dist/esm/generated/observation.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/jobs.d.ts +73 -0
- package/dist/generated/jobs.d.ts.map +1 -1
- package/dist/generated/jobs.js +819 -64
- package/dist/generated/jobs.js.map +1 -1
- package/dist/generated/observation.d.ts +21 -0
- package/dist/generated/observation.d.ts.map +1 -1
- package/dist/generated/observation.js +177 -0
- package/dist/generated/observation.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +2 -2
- package/generated/jobs.ts +970 -97
- package/generated/observation.ts +211 -0
- package/package.json +1 -1
package/generated/jobs.ts
CHANGED
|
@@ -11,6 +11,63 @@ import { Guid } from "./protobuf-net/bcl";
|
|
|
11
11
|
|
|
12
12
|
export const protobufPackage = "Cratis.Chronicle.Contracts.Jobs";
|
|
13
13
|
|
|
14
|
+
export enum JobCommandRefusal {
|
|
15
|
+
NotRefused = 0,
|
|
16
|
+
NotFound = 1,
|
|
17
|
+
JobIsCompleted = 2,
|
|
18
|
+
JobIsNotRunning = 3,
|
|
19
|
+
CouldNotPersist = 4,
|
|
20
|
+
NotResumed = 5,
|
|
21
|
+
UNRECOGNIZED = -1,
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function jobCommandRefusalFromJSON(object: any): JobCommandRefusal {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "NotRefused":
|
|
28
|
+
return JobCommandRefusal.NotRefused;
|
|
29
|
+
case 1:
|
|
30
|
+
case "NotFound":
|
|
31
|
+
return JobCommandRefusal.NotFound;
|
|
32
|
+
case 2:
|
|
33
|
+
case "JobIsCompleted":
|
|
34
|
+
return JobCommandRefusal.JobIsCompleted;
|
|
35
|
+
case 3:
|
|
36
|
+
case "JobIsNotRunning":
|
|
37
|
+
return JobCommandRefusal.JobIsNotRunning;
|
|
38
|
+
case 4:
|
|
39
|
+
case "CouldNotPersist":
|
|
40
|
+
return JobCommandRefusal.CouldNotPersist;
|
|
41
|
+
case 5:
|
|
42
|
+
case "NotResumed":
|
|
43
|
+
return JobCommandRefusal.NotResumed;
|
|
44
|
+
case -1:
|
|
45
|
+
case "UNRECOGNIZED":
|
|
46
|
+
default:
|
|
47
|
+
return JobCommandRefusal.UNRECOGNIZED;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function jobCommandRefusalToJSON(object: JobCommandRefusal): string {
|
|
52
|
+
switch (object) {
|
|
53
|
+
case JobCommandRefusal.NotRefused:
|
|
54
|
+
return "NotRefused";
|
|
55
|
+
case JobCommandRefusal.NotFound:
|
|
56
|
+
return "NotFound";
|
|
57
|
+
case JobCommandRefusal.JobIsCompleted:
|
|
58
|
+
return "JobIsCompleted";
|
|
59
|
+
case JobCommandRefusal.JobIsNotRunning:
|
|
60
|
+
return "JobIsNotRunning";
|
|
61
|
+
case JobCommandRefusal.CouldNotPersist:
|
|
62
|
+
return "CouldNotPersist";
|
|
63
|
+
case JobCommandRefusal.NotResumed:
|
|
64
|
+
return "NotResumed";
|
|
65
|
+
case JobCommandRefusal.UNRECOGNIZED:
|
|
66
|
+
default:
|
|
67
|
+
return "UNRECOGNIZED";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
14
71
|
export enum JobStatus {
|
|
15
72
|
None = 0,
|
|
16
73
|
PreparingJob = 1,
|
|
@@ -221,6 +278,28 @@ export interface CommandResult {
|
|
|
221
278
|
AuthorizationFailureReason: string;
|
|
222
279
|
}
|
|
223
280
|
|
|
281
|
+
export interface CommandResultResumeJobWithResultResponse {
|
|
282
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
283
|
+
CorrelationId: Guid | undefined;
|
|
284
|
+
IsAuthorized: boolean;
|
|
285
|
+
ValidationResults: ValidationResult[];
|
|
286
|
+
ExceptionMessages: string[];
|
|
287
|
+
ExceptionStackTrace: string;
|
|
288
|
+
AuthorizationFailureReason: string;
|
|
289
|
+
Response: ResumeJobWithResultResponse | undefined;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface CommandResultStopJobWithResultResponse {
|
|
293
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
294
|
+
CorrelationId: Guid | undefined;
|
|
295
|
+
IsAuthorized: boolean;
|
|
296
|
+
ValidationResults: ValidationResult[];
|
|
297
|
+
ExceptionMessages: string[];
|
|
298
|
+
ExceptionStackTrace: string;
|
|
299
|
+
AuthorizationFailureReason: string;
|
|
300
|
+
Response: StopJobWithResultResponse | undefined;
|
|
301
|
+
}
|
|
302
|
+
|
|
224
303
|
export interface DeleteJobRequest {
|
|
225
304
|
EventStore: string;
|
|
226
305
|
Namespace: string;
|
|
@@ -317,6 +396,18 @@ export interface ResumeJobRequest {
|
|
|
317
396
|
JobId: Guid | undefined;
|
|
318
397
|
}
|
|
319
398
|
|
|
399
|
+
export interface ResumeJobWithResultRequest {
|
|
400
|
+
EventStore: string;
|
|
401
|
+
Namespace: string;
|
|
402
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
403
|
+
JobId: Guid | undefined;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface ResumeJobWithResultResponse {
|
|
407
|
+
Accepted: boolean;
|
|
408
|
+
Refusal: JobCommandRefusal;
|
|
409
|
+
}
|
|
410
|
+
|
|
320
411
|
/** Represents a DateTimeOffset value as an ISO 8601 string (e.g., "2024-01-15T12:30:00.0000000+02:00"). */
|
|
321
412
|
export interface SerializableDateTimeOffset {
|
|
322
413
|
Value: string;
|
|
@@ -329,6 +420,18 @@ export interface StopJobRequest {
|
|
|
329
420
|
JobId: Guid | undefined;
|
|
330
421
|
}
|
|
331
422
|
|
|
423
|
+
export interface StopJobWithResultRequest {
|
|
424
|
+
EventStore: string;
|
|
425
|
+
Namespace: string;
|
|
426
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
427
|
+
JobId: Guid | undefined;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface StopJobWithResultResponse {
|
|
431
|
+
Accepted: boolean;
|
|
432
|
+
Refusal: JobCommandRefusal;
|
|
433
|
+
}
|
|
434
|
+
|
|
332
435
|
export interface ValidationResult {
|
|
333
436
|
/** default value could not be applied: Error */
|
|
334
437
|
Severity: ValidationResultSeverity;
|
|
@@ -585,25 +688,45 @@ export const CommandResult: MessageFns<CommandResult> = {
|
|
|
585
688
|
},
|
|
586
689
|
};
|
|
587
690
|
|
|
588
|
-
function
|
|
589
|
-
return {
|
|
691
|
+
function createBaseCommandResultResumeJobWithResultResponse(): CommandResultResumeJobWithResultResponse {
|
|
692
|
+
return {
|
|
693
|
+
CorrelationId: undefined,
|
|
694
|
+
IsAuthorized: false,
|
|
695
|
+
ValidationResults: [],
|
|
696
|
+
ExceptionMessages: [],
|
|
697
|
+
ExceptionStackTrace: "",
|
|
698
|
+
AuthorizationFailureReason: "",
|
|
699
|
+
Response: undefined,
|
|
700
|
+
};
|
|
590
701
|
}
|
|
591
702
|
|
|
592
|
-
export const
|
|
593
|
-
encode(message:
|
|
594
|
-
if (message.
|
|
595
|
-
writer.uint32(10).
|
|
703
|
+
export const CommandResultResumeJobWithResultResponse: MessageFns<CommandResultResumeJobWithResultResponse> = {
|
|
704
|
+
encode(message: CommandResultResumeJobWithResultResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
705
|
+
if (message.CorrelationId !== undefined) {
|
|
706
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
596
707
|
}
|
|
597
|
-
if (message.
|
|
598
|
-
writer.uint32(
|
|
708
|
+
if (message.IsAuthorized !== false) {
|
|
709
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
599
710
|
}
|
|
600
|
-
|
|
601
|
-
|
|
711
|
+
for (const v of message.ValidationResults) {
|
|
712
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
713
|
+
}
|
|
714
|
+
for (const v of message.ExceptionMessages) {
|
|
715
|
+
writer.uint32(34).string(v!);
|
|
716
|
+
}
|
|
717
|
+
if (message.ExceptionStackTrace !== "") {
|
|
718
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
719
|
+
}
|
|
720
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
721
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
722
|
+
}
|
|
723
|
+
if (message.Response !== undefined) {
|
|
724
|
+
ResumeJobWithResultResponse.encode(message.Response, writer.uint32(58).fork()).join();
|
|
602
725
|
}
|
|
603
726
|
return writer;
|
|
604
727
|
},
|
|
605
728
|
|
|
606
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
729
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResultResumeJobWithResultResponse {
|
|
607
730
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
608
731
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
609
732
|
if (previousRecursionDepth >= 100) {
|
|
@@ -612,7 +735,7 @@ export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
|
612
735
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
613
736
|
try {
|
|
614
737
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
-
const message =
|
|
738
|
+
const message = createBaseCommandResultResumeJobWithResultResponse();
|
|
616
739
|
while (reader.pos < end) {
|
|
617
740
|
const tag = reader.uint32();
|
|
618
741
|
switch (tag >>> 3) {
|
|
@@ -621,15 +744,15 @@ export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
|
621
744
|
break;
|
|
622
745
|
}
|
|
623
746
|
|
|
624
|
-
message.
|
|
747
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
625
748
|
continue;
|
|
626
749
|
}
|
|
627
750
|
case 2: {
|
|
628
|
-
if (tag !==
|
|
751
|
+
if (tag !== 16) {
|
|
629
752
|
break;
|
|
630
753
|
}
|
|
631
754
|
|
|
632
|
-
message.
|
|
755
|
+
message.IsAuthorized = reader.bool();
|
|
633
756
|
continue;
|
|
634
757
|
}
|
|
635
758
|
case 3: {
|
|
@@ -637,7 +760,39 @@ export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
|
637
760
|
break;
|
|
638
761
|
}
|
|
639
762
|
|
|
640
|
-
message.
|
|
763
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
764
|
+
continue;
|
|
765
|
+
}
|
|
766
|
+
case 4: {
|
|
767
|
+
if (tag !== 34) {
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
message.ExceptionMessages.push(reader.string());
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
case 5: {
|
|
775
|
+
if (tag !== 42) {
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
message.ExceptionStackTrace = reader.string();
|
|
780
|
+
continue;
|
|
781
|
+
}
|
|
782
|
+
case 6: {
|
|
783
|
+
if (tag !== 50) {
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
message.AuthorizationFailureReason = reader.string();
|
|
788
|
+
continue;
|
|
789
|
+
}
|
|
790
|
+
case 7: {
|
|
791
|
+
if (tag !== 58) {
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
message.Response = ResumeJobWithResultResponse.decode(reader, reader.uint32());
|
|
641
796
|
continue;
|
|
642
797
|
}
|
|
643
798
|
}
|
|
@@ -652,59 +807,109 @@ export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
|
652
807
|
}
|
|
653
808
|
},
|
|
654
809
|
|
|
655
|
-
fromJSON(object: any):
|
|
810
|
+
fromJSON(object: any): CommandResultResumeJobWithResultResponse {
|
|
656
811
|
return {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
812
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
813
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
814
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
815
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
816
|
+
: [],
|
|
817
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
818
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
819
|
+
: [],
|
|
820
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
821
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
822
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
823
|
+
: "",
|
|
824
|
+
Response: isSet(object.Response) ? ResumeJobWithResultResponse.fromJSON(object.Response) : undefined,
|
|
660
825
|
};
|
|
661
826
|
},
|
|
662
827
|
|
|
663
|
-
toJSON(message:
|
|
828
|
+
toJSON(message: CommandResultResumeJobWithResultResponse): unknown {
|
|
664
829
|
const obj: any = {};
|
|
665
|
-
if (message.
|
|
666
|
-
obj.
|
|
830
|
+
if (message.CorrelationId !== undefined) {
|
|
831
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
667
832
|
}
|
|
668
|
-
if (message.
|
|
669
|
-
obj.
|
|
833
|
+
if (message.IsAuthorized !== false) {
|
|
834
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
670
835
|
}
|
|
671
|
-
if (message.
|
|
672
|
-
obj.
|
|
836
|
+
if (message.ValidationResults?.length) {
|
|
837
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
838
|
+
}
|
|
839
|
+
if (message.ExceptionMessages?.length) {
|
|
840
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
841
|
+
}
|
|
842
|
+
if (message.ExceptionStackTrace !== "") {
|
|
843
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
844
|
+
}
|
|
845
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
846
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
847
|
+
}
|
|
848
|
+
if (message.Response !== undefined) {
|
|
849
|
+
obj.Response = ResumeJobWithResultResponse.toJSON(message.Response);
|
|
673
850
|
}
|
|
674
851
|
return obj;
|
|
675
852
|
},
|
|
676
853
|
|
|
677
|
-
create(base?: DeepPartial<
|
|
678
|
-
return
|
|
854
|
+
create(base?: DeepPartial<CommandResultResumeJobWithResultResponse>): CommandResultResumeJobWithResultResponse {
|
|
855
|
+
return CommandResultResumeJobWithResultResponse.fromPartial(base ?? {});
|
|
679
856
|
},
|
|
680
|
-
fromPartial(object: DeepPartial<
|
|
681
|
-
const message =
|
|
682
|
-
message.
|
|
683
|
-
|
|
684
|
-
|
|
857
|
+
fromPartial(object: DeepPartial<CommandResultResumeJobWithResultResponse>): CommandResultResumeJobWithResultResponse {
|
|
858
|
+
const message = createBaseCommandResultResumeJobWithResultResponse();
|
|
859
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
860
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
861
|
+
: undefined;
|
|
862
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
863
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
864
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
865
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
866
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
867
|
+
message.Response = (object.Response !== undefined && object.Response !== null)
|
|
868
|
+
? ResumeJobWithResultResponse.fromPartial(object.Response)
|
|
869
|
+
: undefined;
|
|
685
870
|
return message;
|
|
686
871
|
},
|
|
687
872
|
};
|
|
688
873
|
|
|
689
|
-
function
|
|
690
|
-
return {
|
|
874
|
+
function createBaseCommandResultStopJobWithResultResponse(): CommandResultStopJobWithResultResponse {
|
|
875
|
+
return {
|
|
876
|
+
CorrelationId: undefined,
|
|
877
|
+
IsAuthorized: false,
|
|
878
|
+
ValidationResults: [],
|
|
879
|
+
ExceptionMessages: [],
|
|
880
|
+
ExceptionStackTrace: "",
|
|
881
|
+
AuthorizationFailureReason: "",
|
|
882
|
+
Response: undefined,
|
|
883
|
+
};
|
|
691
884
|
}
|
|
692
885
|
|
|
693
|
-
export const
|
|
694
|
-
encode(message:
|
|
695
|
-
if (message.
|
|
696
|
-
writer.uint32(10).
|
|
886
|
+
export const CommandResultStopJobWithResultResponse: MessageFns<CommandResultStopJobWithResultResponse> = {
|
|
887
|
+
encode(message: CommandResultStopJobWithResultResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
888
|
+
if (message.CorrelationId !== undefined) {
|
|
889
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
697
890
|
}
|
|
698
|
-
if (message.
|
|
699
|
-
writer.uint32(
|
|
891
|
+
if (message.IsAuthorized !== false) {
|
|
892
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
700
893
|
}
|
|
701
|
-
|
|
702
|
-
|
|
894
|
+
for (const v of message.ValidationResults) {
|
|
895
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
896
|
+
}
|
|
897
|
+
for (const v of message.ExceptionMessages) {
|
|
898
|
+
writer.uint32(34).string(v!);
|
|
899
|
+
}
|
|
900
|
+
if (message.ExceptionStackTrace !== "") {
|
|
901
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
902
|
+
}
|
|
903
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
904
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
905
|
+
}
|
|
906
|
+
if (message.Response !== undefined) {
|
|
907
|
+
StopJobWithResultResponse.encode(message.Response, writer.uint32(58).fork()).join();
|
|
703
908
|
}
|
|
704
909
|
return writer;
|
|
705
910
|
},
|
|
706
911
|
|
|
707
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
912
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResultStopJobWithResultResponse {
|
|
708
913
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
709
914
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
710
915
|
if (previousRecursionDepth >= 100) {
|
|
@@ -713,7 +918,7 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
713
918
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
714
919
|
try {
|
|
715
920
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
716
|
-
const message =
|
|
921
|
+
const message = createBaseCommandResultStopJobWithResultResponse();
|
|
717
922
|
while (reader.pos < end) {
|
|
718
923
|
const tag = reader.uint32();
|
|
719
924
|
switch (tag >>> 3) {
|
|
@@ -722,15 +927,15 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
722
927
|
break;
|
|
723
928
|
}
|
|
724
929
|
|
|
725
|
-
message.
|
|
930
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
726
931
|
continue;
|
|
727
932
|
}
|
|
728
933
|
case 2: {
|
|
729
|
-
if (tag !==
|
|
934
|
+
if (tag !== 16) {
|
|
730
935
|
break;
|
|
731
936
|
}
|
|
732
937
|
|
|
733
|
-
message.
|
|
938
|
+
message.IsAuthorized = reader.bool();
|
|
734
939
|
continue;
|
|
735
940
|
}
|
|
736
941
|
case 3: {
|
|
@@ -738,32 +943,296 @@ export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
|
738
943
|
break;
|
|
739
944
|
}
|
|
740
945
|
|
|
741
|
-
message.
|
|
946
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
742
947
|
continue;
|
|
743
948
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
reader.skip(tag & 7);
|
|
749
|
-
}
|
|
750
|
-
return message;
|
|
751
|
-
} finally {
|
|
752
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
fromJSON(object: any): GetJobStepsRequest {
|
|
757
|
-
return {
|
|
758
|
-
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
759
|
-
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
760
|
-
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
761
|
-
};
|
|
762
|
-
},
|
|
949
|
+
case 4: {
|
|
950
|
+
if (tag !== 34) {
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
763
953
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
954
|
+
message.ExceptionMessages.push(reader.string());
|
|
955
|
+
continue;
|
|
956
|
+
}
|
|
957
|
+
case 5: {
|
|
958
|
+
if (tag !== 42) {
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
message.ExceptionStackTrace = reader.string();
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
case 6: {
|
|
966
|
+
if (tag !== 50) {
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
message.AuthorizationFailureReason = reader.string();
|
|
971
|
+
continue;
|
|
972
|
+
}
|
|
973
|
+
case 7: {
|
|
974
|
+
if (tag !== 58) {
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
message.Response = StopJobWithResultResponse.decode(reader, reader.uint32());
|
|
979
|
+
continue;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
reader.skip(tag & 7);
|
|
986
|
+
}
|
|
987
|
+
return message;
|
|
988
|
+
} finally {
|
|
989
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
990
|
+
}
|
|
991
|
+
},
|
|
992
|
+
|
|
993
|
+
fromJSON(object: any): CommandResultStopJobWithResultResponse {
|
|
994
|
+
return {
|
|
995
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
996
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
997
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
998
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
999
|
+
: [],
|
|
1000
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1001
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1002
|
+
: [],
|
|
1003
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1004
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
1005
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
1006
|
+
: "",
|
|
1007
|
+
Response: isSet(object.Response) ? StopJobWithResultResponse.fromJSON(object.Response) : undefined,
|
|
1008
|
+
};
|
|
1009
|
+
},
|
|
1010
|
+
|
|
1011
|
+
toJSON(message: CommandResultStopJobWithResultResponse): unknown {
|
|
1012
|
+
const obj: any = {};
|
|
1013
|
+
if (message.CorrelationId !== undefined) {
|
|
1014
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1015
|
+
}
|
|
1016
|
+
if (message.IsAuthorized !== false) {
|
|
1017
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1018
|
+
}
|
|
1019
|
+
if (message.ValidationResults?.length) {
|
|
1020
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1021
|
+
}
|
|
1022
|
+
if (message.ExceptionMessages?.length) {
|
|
1023
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1024
|
+
}
|
|
1025
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1026
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1027
|
+
}
|
|
1028
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
1029
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
1030
|
+
}
|
|
1031
|
+
if (message.Response !== undefined) {
|
|
1032
|
+
obj.Response = StopJobWithResultResponse.toJSON(message.Response);
|
|
1033
|
+
}
|
|
1034
|
+
return obj;
|
|
1035
|
+
},
|
|
1036
|
+
|
|
1037
|
+
create(base?: DeepPartial<CommandResultStopJobWithResultResponse>): CommandResultStopJobWithResultResponse {
|
|
1038
|
+
return CommandResultStopJobWithResultResponse.fromPartial(base ?? {});
|
|
1039
|
+
},
|
|
1040
|
+
fromPartial(object: DeepPartial<CommandResultStopJobWithResultResponse>): CommandResultStopJobWithResultResponse {
|
|
1041
|
+
const message = createBaseCommandResultStopJobWithResultResponse();
|
|
1042
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1043
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1044
|
+
: undefined;
|
|
1045
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1046
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1047
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1048
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1049
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
1050
|
+
message.Response = (object.Response !== undefined && object.Response !== null)
|
|
1051
|
+
? StopJobWithResultResponse.fromPartial(object.Response)
|
|
1052
|
+
: undefined;
|
|
1053
|
+
return message;
|
|
1054
|
+
},
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
function createBaseDeleteJobRequest(): DeleteJobRequest {
|
|
1058
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export const DeleteJobRequest: MessageFns<DeleteJobRequest> = {
|
|
1062
|
+
encode(message: DeleteJobRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1063
|
+
if (message.EventStore !== "") {
|
|
1064
|
+
writer.uint32(10).string(message.EventStore);
|
|
1065
|
+
}
|
|
1066
|
+
if (message.Namespace !== "") {
|
|
1067
|
+
writer.uint32(18).string(message.Namespace);
|
|
1068
|
+
}
|
|
1069
|
+
if (message.JobId !== undefined) {
|
|
1070
|
+
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
1071
|
+
}
|
|
1072
|
+
return writer;
|
|
1073
|
+
},
|
|
1074
|
+
|
|
1075
|
+
decode(input: BinaryReader | Uint8Array, length?: number): DeleteJobRequest {
|
|
1076
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1077
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1078
|
+
if (previousRecursionDepth >= 100) {
|
|
1079
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1080
|
+
}
|
|
1081
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1082
|
+
try {
|
|
1083
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1084
|
+
const message = createBaseDeleteJobRequest();
|
|
1085
|
+
while (reader.pos < end) {
|
|
1086
|
+
const tag = reader.uint32();
|
|
1087
|
+
switch (tag >>> 3) {
|
|
1088
|
+
case 1: {
|
|
1089
|
+
if (tag !== 10) {
|
|
1090
|
+
break;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
message.EventStore = reader.string();
|
|
1094
|
+
continue;
|
|
1095
|
+
}
|
|
1096
|
+
case 2: {
|
|
1097
|
+
if (tag !== 18) {
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
message.Namespace = reader.string();
|
|
1102
|
+
continue;
|
|
1103
|
+
}
|
|
1104
|
+
case 3: {
|
|
1105
|
+
if (tag !== 26) {
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
message.JobId = Guid.decode(reader, reader.uint32());
|
|
1110
|
+
continue;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
reader.skip(tag & 7);
|
|
1117
|
+
}
|
|
1118
|
+
return message;
|
|
1119
|
+
} finally {
|
|
1120
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
|
|
1124
|
+
fromJSON(object: any): DeleteJobRequest {
|
|
1125
|
+
return {
|
|
1126
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1127
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1128
|
+
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
1129
|
+
};
|
|
1130
|
+
},
|
|
1131
|
+
|
|
1132
|
+
toJSON(message: DeleteJobRequest): unknown {
|
|
1133
|
+
const obj: any = {};
|
|
1134
|
+
if (message.EventStore !== "") {
|
|
1135
|
+
obj.EventStore = message.EventStore;
|
|
1136
|
+
}
|
|
1137
|
+
if (message.Namespace !== "") {
|
|
1138
|
+
obj.Namespace = message.Namespace;
|
|
1139
|
+
}
|
|
1140
|
+
if (message.JobId !== undefined) {
|
|
1141
|
+
obj.JobId = Guid.toJSON(message.JobId);
|
|
1142
|
+
}
|
|
1143
|
+
return obj;
|
|
1144
|
+
},
|
|
1145
|
+
|
|
1146
|
+
create(base?: DeepPartial<DeleteJobRequest>): DeleteJobRequest {
|
|
1147
|
+
return DeleteJobRequest.fromPartial(base ?? {});
|
|
1148
|
+
},
|
|
1149
|
+
fromPartial(object: DeepPartial<DeleteJobRequest>): DeleteJobRequest {
|
|
1150
|
+
const message = createBaseDeleteJobRequest();
|
|
1151
|
+
message.EventStore = object.EventStore ?? "";
|
|
1152
|
+
message.Namespace = object.Namespace ?? "";
|
|
1153
|
+
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
1154
|
+
return message;
|
|
1155
|
+
},
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
function createBaseGetJobStepsRequest(): GetJobStepsRequest {
|
|
1159
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export const GetJobStepsRequest: MessageFns<GetJobStepsRequest> = {
|
|
1163
|
+
encode(message: GetJobStepsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1164
|
+
if (message.EventStore !== "") {
|
|
1165
|
+
writer.uint32(10).string(message.EventStore);
|
|
1166
|
+
}
|
|
1167
|
+
if (message.Namespace !== "") {
|
|
1168
|
+
writer.uint32(18).string(message.Namespace);
|
|
1169
|
+
}
|
|
1170
|
+
if (message.JobId !== undefined) {
|
|
1171
|
+
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
1172
|
+
}
|
|
1173
|
+
return writer;
|
|
1174
|
+
},
|
|
1175
|
+
|
|
1176
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetJobStepsRequest {
|
|
1177
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1178
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1179
|
+
if (previousRecursionDepth >= 100) {
|
|
1180
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1181
|
+
}
|
|
1182
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1183
|
+
try {
|
|
1184
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1185
|
+
const message = createBaseGetJobStepsRequest();
|
|
1186
|
+
while (reader.pos < end) {
|
|
1187
|
+
const tag = reader.uint32();
|
|
1188
|
+
switch (tag >>> 3) {
|
|
1189
|
+
case 1: {
|
|
1190
|
+
if (tag !== 10) {
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
message.EventStore = reader.string();
|
|
1195
|
+
continue;
|
|
1196
|
+
}
|
|
1197
|
+
case 2: {
|
|
1198
|
+
if (tag !== 18) {
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
message.Namespace = reader.string();
|
|
1203
|
+
continue;
|
|
1204
|
+
}
|
|
1205
|
+
case 3: {
|
|
1206
|
+
if (tag !== 26) {
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
message.JobId = Guid.decode(reader, reader.uint32());
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
reader.skip(tag & 7);
|
|
1218
|
+
}
|
|
1219
|
+
return message;
|
|
1220
|
+
} finally {
|
|
1221
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1222
|
+
}
|
|
1223
|
+
},
|
|
1224
|
+
|
|
1225
|
+
fromJSON(object: any): GetJobStepsRequest {
|
|
1226
|
+
return {
|
|
1227
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
1228
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
1229
|
+
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
1230
|
+
};
|
|
1231
|
+
},
|
|
1232
|
+
|
|
1233
|
+
toJSON(message: GetJobStepsRequest): unknown {
|
|
1234
|
+
const obj: any = {};
|
|
1235
|
+
if (message.EventStore !== "") {
|
|
767
1236
|
obj.EventStore = message.EventStore;
|
|
768
1237
|
}
|
|
769
1238
|
if (message.Namespace !== "") {
|
|
@@ -2014,35 +2483,136 @@ export const QueryResultIEnumerableJobSummaryResponse: MessageFns<QueryResultIEn
|
|
|
2014
2483
|
if (message.ExceptionStackTrace !== "") {
|
|
2015
2484
|
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
2016
2485
|
}
|
|
2017
|
-
if (message.Data?.length) {
|
|
2018
|
-
obj.Data = message.Data.map((e) => JobSummaryResponse.toJSON(e));
|
|
2486
|
+
if (message.Data?.length) {
|
|
2487
|
+
obj.Data = message.Data.map((e) => JobSummaryResponse.toJSON(e));
|
|
2488
|
+
}
|
|
2489
|
+
return obj;
|
|
2490
|
+
},
|
|
2491
|
+
|
|
2492
|
+
create(base?: DeepPartial<QueryResultIEnumerableJobSummaryResponse>): QueryResultIEnumerableJobSummaryResponse {
|
|
2493
|
+
return QueryResultIEnumerableJobSummaryResponse.fromPartial(base ?? {});
|
|
2494
|
+
},
|
|
2495
|
+
fromPartial(object: DeepPartial<QueryResultIEnumerableJobSummaryResponse>): QueryResultIEnumerableJobSummaryResponse {
|
|
2496
|
+
const message = createBaseQueryResultIEnumerableJobSummaryResponse();
|
|
2497
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
2498
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
2499
|
+
: undefined;
|
|
2500
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2501
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2502
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2503
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2504
|
+
message.Data = object.Data?.map((e) => JobSummaryResponse.fromPartial(e)) || [];
|
|
2505
|
+
return message;
|
|
2506
|
+
},
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2509
|
+
function createBaseResumeJobRequest(): ResumeJobRequest {
|
|
2510
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
2514
|
+
encode(message: ResumeJobRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2515
|
+
if (message.EventStore !== "") {
|
|
2516
|
+
writer.uint32(10).string(message.EventStore);
|
|
2517
|
+
}
|
|
2518
|
+
if (message.Namespace !== "") {
|
|
2519
|
+
writer.uint32(18).string(message.Namespace);
|
|
2520
|
+
}
|
|
2521
|
+
if (message.JobId !== undefined) {
|
|
2522
|
+
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
2523
|
+
}
|
|
2524
|
+
return writer;
|
|
2525
|
+
},
|
|
2526
|
+
|
|
2527
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ResumeJobRequest {
|
|
2528
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2529
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2530
|
+
if (previousRecursionDepth >= 100) {
|
|
2531
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2532
|
+
}
|
|
2533
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2534
|
+
try {
|
|
2535
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2536
|
+
const message = createBaseResumeJobRequest();
|
|
2537
|
+
while (reader.pos < end) {
|
|
2538
|
+
const tag = reader.uint32();
|
|
2539
|
+
switch (tag >>> 3) {
|
|
2540
|
+
case 1: {
|
|
2541
|
+
if (tag !== 10) {
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
message.EventStore = reader.string();
|
|
2546
|
+
continue;
|
|
2547
|
+
}
|
|
2548
|
+
case 2: {
|
|
2549
|
+
if (tag !== 18) {
|
|
2550
|
+
break;
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
message.Namespace = reader.string();
|
|
2554
|
+
continue;
|
|
2555
|
+
}
|
|
2556
|
+
case 3: {
|
|
2557
|
+
if (tag !== 26) {
|
|
2558
|
+
break;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
message.JobId = Guid.decode(reader, reader.uint32());
|
|
2562
|
+
continue;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2566
|
+
break;
|
|
2567
|
+
}
|
|
2568
|
+
reader.skip(tag & 7);
|
|
2569
|
+
}
|
|
2570
|
+
return message;
|
|
2571
|
+
} finally {
|
|
2572
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
|
|
2576
|
+
fromJSON(object: any): ResumeJobRequest {
|
|
2577
|
+
return {
|
|
2578
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
2579
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
2580
|
+
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
2581
|
+
};
|
|
2582
|
+
},
|
|
2583
|
+
|
|
2584
|
+
toJSON(message: ResumeJobRequest): unknown {
|
|
2585
|
+
const obj: any = {};
|
|
2586
|
+
if (message.EventStore !== "") {
|
|
2587
|
+
obj.EventStore = message.EventStore;
|
|
2588
|
+
}
|
|
2589
|
+
if (message.Namespace !== "") {
|
|
2590
|
+
obj.Namespace = message.Namespace;
|
|
2591
|
+
}
|
|
2592
|
+
if (message.JobId !== undefined) {
|
|
2593
|
+
obj.JobId = Guid.toJSON(message.JobId);
|
|
2019
2594
|
}
|
|
2020
2595
|
return obj;
|
|
2021
2596
|
},
|
|
2022
2597
|
|
|
2023
|
-
create(base?: DeepPartial<
|
|
2024
|
-
return
|
|
2598
|
+
create(base?: DeepPartial<ResumeJobRequest>): ResumeJobRequest {
|
|
2599
|
+
return ResumeJobRequest.fromPartial(base ?? {});
|
|
2025
2600
|
},
|
|
2026
|
-
fromPartial(object: DeepPartial<
|
|
2027
|
-
const message =
|
|
2028
|
-
message.
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
2032
|
-
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
2033
|
-
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
2034
|
-
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
2035
|
-
message.Data = object.Data?.map((e) => JobSummaryResponse.fromPartial(e)) || [];
|
|
2601
|
+
fromPartial(object: DeepPartial<ResumeJobRequest>): ResumeJobRequest {
|
|
2602
|
+
const message = createBaseResumeJobRequest();
|
|
2603
|
+
message.EventStore = object.EventStore ?? "";
|
|
2604
|
+
message.Namespace = object.Namespace ?? "";
|
|
2605
|
+
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
2036
2606
|
return message;
|
|
2037
2607
|
},
|
|
2038
2608
|
};
|
|
2039
2609
|
|
|
2040
|
-
function
|
|
2610
|
+
function createBaseResumeJobWithResultRequest(): ResumeJobWithResultRequest {
|
|
2041
2611
|
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
2042
2612
|
}
|
|
2043
2613
|
|
|
2044
|
-
export const
|
|
2045
|
-
encode(message:
|
|
2614
|
+
export const ResumeJobWithResultRequest: MessageFns<ResumeJobWithResultRequest> = {
|
|
2615
|
+
encode(message: ResumeJobWithResultRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2046
2616
|
if (message.EventStore !== "") {
|
|
2047
2617
|
writer.uint32(10).string(message.EventStore);
|
|
2048
2618
|
}
|
|
@@ -2055,7 +2625,7 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2055
2625
|
return writer;
|
|
2056
2626
|
},
|
|
2057
2627
|
|
|
2058
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
2628
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ResumeJobWithResultRequest {
|
|
2059
2629
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2060
2630
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2061
2631
|
if (previousRecursionDepth >= 100) {
|
|
@@ -2064,7 +2634,7 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2064
2634
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2065
2635
|
try {
|
|
2066
2636
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2067
|
-
const message =
|
|
2637
|
+
const message = createBaseResumeJobWithResultRequest();
|
|
2068
2638
|
while (reader.pos < end) {
|
|
2069
2639
|
const tag = reader.uint32();
|
|
2070
2640
|
switch (tag >>> 3) {
|
|
@@ -2104,7 +2674,7 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2104
2674
|
}
|
|
2105
2675
|
},
|
|
2106
2676
|
|
|
2107
|
-
fromJSON(object: any):
|
|
2677
|
+
fromJSON(object: any): ResumeJobWithResultRequest {
|
|
2108
2678
|
return {
|
|
2109
2679
|
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
2110
2680
|
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
@@ -2112,7 +2682,7 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2112
2682
|
};
|
|
2113
2683
|
},
|
|
2114
2684
|
|
|
2115
|
-
toJSON(message:
|
|
2685
|
+
toJSON(message: ResumeJobWithResultRequest): unknown {
|
|
2116
2686
|
const obj: any = {};
|
|
2117
2687
|
if (message.EventStore !== "") {
|
|
2118
2688
|
obj.EventStore = message.EventStore;
|
|
@@ -2126,11 +2696,11 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2126
2696
|
return obj;
|
|
2127
2697
|
},
|
|
2128
2698
|
|
|
2129
|
-
create(base?: DeepPartial<
|
|
2130
|
-
return
|
|
2699
|
+
create(base?: DeepPartial<ResumeJobWithResultRequest>): ResumeJobWithResultRequest {
|
|
2700
|
+
return ResumeJobWithResultRequest.fromPartial(base ?? {});
|
|
2131
2701
|
},
|
|
2132
|
-
fromPartial(object: DeepPartial<
|
|
2133
|
-
const message =
|
|
2702
|
+
fromPartial(object: DeepPartial<ResumeJobWithResultRequest>): ResumeJobWithResultRequest {
|
|
2703
|
+
const message = createBaseResumeJobWithResultRequest();
|
|
2134
2704
|
message.EventStore = object.EventStore ?? "";
|
|
2135
2705
|
message.Namespace = object.Namespace ?? "";
|
|
2136
2706
|
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
@@ -2138,6 +2708,91 @@ export const ResumeJobRequest: MessageFns<ResumeJobRequest> = {
|
|
|
2138
2708
|
},
|
|
2139
2709
|
};
|
|
2140
2710
|
|
|
2711
|
+
function createBaseResumeJobWithResultResponse(): ResumeJobWithResultResponse {
|
|
2712
|
+
return { Accepted: false, Refusal: 0 };
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
export const ResumeJobWithResultResponse: MessageFns<ResumeJobWithResultResponse> = {
|
|
2716
|
+
encode(message: ResumeJobWithResultResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2717
|
+
if (message.Accepted !== false) {
|
|
2718
|
+
writer.uint32(8).bool(message.Accepted);
|
|
2719
|
+
}
|
|
2720
|
+
if (message.Refusal !== 0) {
|
|
2721
|
+
writer.uint32(16).int32(message.Refusal);
|
|
2722
|
+
}
|
|
2723
|
+
return writer;
|
|
2724
|
+
},
|
|
2725
|
+
|
|
2726
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ResumeJobWithResultResponse {
|
|
2727
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2728
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2729
|
+
if (previousRecursionDepth >= 100) {
|
|
2730
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2731
|
+
}
|
|
2732
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2733
|
+
try {
|
|
2734
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2735
|
+
const message = createBaseResumeJobWithResultResponse();
|
|
2736
|
+
while (reader.pos < end) {
|
|
2737
|
+
const tag = reader.uint32();
|
|
2738
|
+
switch (tag >>> 3) {
|
|
2739
|
+
case 1: {
|
|
2740
|
+
if (tag !== 8) {
|
|
2741
|
+
break;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
message.Accepted = reader.bool();
|
|
2745
|
+
continue;
|
|
2746
|
+
}
|
|
2747
|
+
case 2: {
|
|
2748
|
+
if (tag !== 16) {
|
|
2749
|
+
break;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
message.Refusal = reader.int32() as any;
|
|
2753
|
+
continue;
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2757
|
+
break;
|
|
2758
|
+
}
|
|
2759
|
+
reader.skip(tag & 7);
|
|
2760
|
+
}
|
|
2761
|
+
return message;
|
|
2762
|
+
} finally {
|
|
2763
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2764
|
+
}
|
|
2765
|
+
},
|
|
2766
|
+
|
|
2767
|
+
fromJSON(object: any): ResumeJobWithResultResponse {
|
|
2768
|
+
return {
|
|
2769
|
+
Accepted: isSet(object.Accepted) ? globalThis.Boolean(object.Accepted) : false,
|
|
2770
|
+
Refusal: isSet(object.Refusal) ? jobCommandRefusalFromJSON(object.Refusal) : 0,
|
|
2771
|
+
};
|
|
2772
|
+
},
|
|
2773
|
+
|
|
2774
|
+
toJSON(message: ResumeJobWithResultResponse): unknown {
|
|
2775
|
+
const obj: any = {};
|
|
2776
|
+
if (message.Accepted !== false) {
|
|
2777
|
+
obj.Accepted = message.Accepted;
|
|
2778
|
+
}
|
|
2779
|
+
if (message.Refusal !== 0) {
|
|
2780
|
+
obj.Refusal = jobCommandRefusalToJSON(message.Refusal);
|
|
2781
|
+
}
|
|
2782
|
+
return obj;
|
|
2783
|
+
},
|
|
2784
|
+
|
|
2785
|
+
create(base?: DeepPartial<ResumeJobWithResultResponse>): ResumeJobWithResultResponse {
|
|
2786
|
+
return ResumeJobWithResultResponse.fromPartial(base ?? {});
|
|
2787
|
+
},
|
|
2788
|
+
fromPartial(object: DeepPartial<ResumeJobWithResultResponse>): ResumeJobWithResultResponse {
|
|
2789
|
+
const message = createBaseResumeJobWithResultResponse();
|
|
2790
|
+
message.Accepted = object.Accepted ?? false;
|
|
2791
|
+
message.Refusal = object.Refusal ?? 0;
|
|
2792
|
+
return message;
|
|
2793
|
+
},
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2141
2796
|
function createBaseSerializableDateTimeOffset(): SerializableDateTimeOffset {
|
|
2142
2797
|
return { Value: "" };
|
|
2143
2798
|
}
|
|
@@ -2306,6 +2961,192 @@ export const StopJobRequest: MessageFns<StopJobRequest> = {
|
|
|
2306
2961
|
},
|
|
2307
2962
|
};
|
|
2308
2963
|
|
|
2964
|
+
function createBaseStopJobWithResultRequest(): StopJobWithResultRequest {
|
|
2965
|
+
return { EventStore: "", Namespace: "", JobId: undefined };
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
export const StopJobWithResultRequest: MessageFns<StopJobWithResultRequest> = {
|
|
2969
|
+
encode(message: StopJobWithResultRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2970
|
+
if (message.EventStore !== "") {
|
|
2971
|
+
writer.uint32(10).string(message.EventStore);
|
|
2972
|
+
}
|
|
2973
|
+
if (message.Namespace !== "") {
|
|
2974
|
+
writer.uint32(18).string(message.Namespace);
|
|
2975
|
+
}
|
|
2976
|
+
if (message.JobId !== undefined) {
|
|
2977
|
+
Guid.encode(message.JobId, writer.uint32(26).fork()).join();
|
|
2978
|
+
}
|
|
2979
|
+
return writer;
|
|
2980
|
+
},
|
|
2981
|
+
|
|
2982
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StopJobWithResultRequest {
|
|
2983
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2984
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
2985
|
+
if (previousRecursionDepth >= 100) {
|
|
2986
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2987
|
+
}
|
|
2988
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2989
|
+
try {
|
|
2990
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2991
|
+
const message = createBaseStopJobWithResultRequest();
|
|
2992
|
+
while (reader.pos < end) {
|
|
2993
|
+
const tag = reader.uint32();
|
|
2994
|
+
switch (tag >>> 3) {
|
|
2995
|
+
case 1: {
|
|
2996
|
+
if (tag !== 10) {
|
|
2997
|
+
break;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
message.EventStore = reader.string();
|
|
3001
|
+
continue;
|
|
3002
|
+
}
|
|
3003
|
+
case 2: {
|
|
3004
|
+
if (tag !== 18) {
|
|
3005
|
+
break;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
message.Namespace = reader.string();
|
|
3009
|
+
continue;
|
|
3010
|
+
}
|
|
3011
|
+
case 3: {
|
|
3012
|
+
if (tag !== 26) {
|
|
3013
|
+
break;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
message.JobId = Guid.decode(reader, reader.uint32());
|
|
3017
|
+
continue;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3021
|
+
break;
|
|
3022
|
+
}
|
|
3023
|
+
reader.skip(tag & 7);
|
|
3024
|
+
}
|
|
3025
|
+
return message;
|
|
3026
|
+
} finally {
|
|
3027
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
|
|
3031
|
+
fromJSON(object: any): StopJobWithResultRequest {
|
|
3032
|
+
return {
|
|
3033
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
3034
|
+
Namespace: isSet(object.Namespace) ? globalThis.String(object.Namespace) : "",
|
|
3035
|
+
JobId: isSet(object.JobId) ? Guid.fromJSON(object.JobId) : undefined,
|
|
3036
|
+
};
|
|
3037
|
+
},
|
|
3038
|
+
|
|
3039
|
+
toJSON(message: StopJobWithResultRequest): unknown {
|
|
3040
|
+
const obj: any = {};
|
|
3041
|
+
if (message.EventStore !== "") {
|
|
3042
|
+
obj.EventStore = message.EventStore;
|
|
3043
|
+
}
|
|
3044
|
+
if (message.Namespace !== "") {
|
|
3045
|
+
obj.Namespace = message.Namespace;
|
|
3046
|
+
}
|
|
3047
|
+
if (message.JobId !== undefined) {
|
|
3048
|
+
obj.JobId = Guid.toJSON(message.JobId);
|
|
3049
|
+
}
|
|
3050
|
+
return obj;
|
|
3051
|
+
},
|
|
3052
|
+
|
|
3053
|
+
create(base?: DeepPartial<StopJobWithResultRequest>): StopJobWithResultRequest {
|
|
3054
|
+
return StopJobWithResultRequest.fromPartial(base ?? {});
|
|
3055
|
+
},
|
|
3056
|
+
fromPartial(object: DeepPartial<StopJobWithResultRequest>): StopJobWithResultRequest {
|
|
3057
|
+
const message = createBaseStopJobWithResultRequest();
|
|
3058
|
+
message.EventStore = object.EventStore ?? "";
|
|
3059
|
+
message.Namespace = object.Namespace ?? "";
|
|
3060
|
+
message.JobId = (object.JobId !== undefined && object.JobId !== null) ? Guid.fromPartial(object.JobId) : undefined;
|
|
3061
|
+
return message;
|
|
3062
|
+
},
|
|
3063
|
+
};
|
|
3064
|
+
|
|
3065
|
+
function createBaseStopJobWithResultResponse(): StopJobWithResultResponse {
|
|
3066
|
+
return { Accepted: false, Refusal: 0 };
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
export const StopJobWithResultResponse: MessageFns<StopJobWithResultResponse> = {
|
|
3070
|
+
encode(message: StopJobWithResultResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3071
|
+
if (message.Accepted !== false) {
|
|
3072
|
+
writer.uint32(8).bool(message.Accepted);
|
|
3073
|
+
}
|
|
3074
|
+
if (message.Refusal !== 0) {
|
|
3075
|
+
writer.uint32(16).int32(message.Refusal);
|
|
3076
|
+
}
|
|
3077
|
+
return writer;
|
|
3078
|
+
},
|
|
3079
|
+
|
|
3080
|
+
decode(input: BinaryReader | Uint8Array, length?: number): StopJobWithResultResponse {
|
|
3081
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3082
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3083
|
+
if (previousRecursionDepth >= 100) {
|
|
3084
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3085
|
+
}
|
|
3086
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3087
|
+
try {
|
|
3088
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3089
|
+
const message = createBaseStopJobWithResultResponse();
|
|
3090
|
+
while (reader.pos < end) {
|
|
3091
|
+
const tag = reader.uint32();
|
|
3092
|
+
switch (tag >>> 3) {
|
|
3093
|
+
case 1: {
|
|
3094
|
+
if (tag !== 8) {
|
|
3095
|
+
break;
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
message.Accepted = reader.bool();
|
|
3099
|
+
continue;
|
|
3100
|
+
}
|
|
3101
|
+
case 2: {
|
|
3102
|
+
if (tag !== 16) {
|
|
3103
|
+
break;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
message.Refusal = reader.int32() as any;
|
|
3107
|
+
continue;
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3111
|
+
break;
|
|
3112
|
+
}
|
|
3113
|
+
reader.skip(tag & 7);
|
|
3114
|
+
}
|
|
3115
|
+
return message;
|
|
3116
|
+
} finally {
|
|
3117
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3118
|
+
}
|
|
3119
|
+
},
|
|
3120
|
+
|
|
3121
|
+
fromJSON(object: any): StopJobWithResultResponse {
|
|
3122
|
+
return {
|
|
3123
|
+
Accepted: isSet(object.Accepted) ? globalThis.Boolean(object.Accepted) : false,
|
|
3124
|
+
Refusal: isSet(object.Refusal) ? jobCommandRefusalFromJSON(object.Refusal) : 0,
|
|
3125
|
+
};
|
|
3126
|
+
},
|
|
3127
|
+
|
|
3128
|
+
toJSON(message: StopJobWithResultResponse): unknown {
|
|
3129
|
+
const obj: any = {};
|
|
3130
|
+
if (message.Accepted !== false) {
|
|
3131
|
+
obj.Accepted = message.Accepted;
|
|
3132
|
+
}
|
|
3133
|
+
if (message.Refusal !== 0) {
|
|
3134
|
+
obj.Refusal = jobCommandRefusalToJSON(message.Refusal);
|
|
3135
|
+
}
|
|
3136
|
+
return obj;
|
|
3137
|
+
},
|
|
3138
|
+
|
|
3139
|
+
create(base?: DeepPartial<StopJobWithResultResponse>): StopJobWithResultResponse {
|
|
3140
|
+
return StopJobWithResultResponse.fromPartial(base ?? {});
|
|
3141
|
+
},
|
|
3142
|
+
fromPartial(object: DeepPartial<StopJobWithResultResponse>): StopJobWithResultResponse {
|
|
3143
|
+
const message = createBaseStopJobWithResultResponse();
|
|
3144
|
+
message.Accepted = object.Accepted ?? false;
|
|
3145
|
+
message.Refusal = object.Refusal ?? 0;
|
|
3146
|
+
return message;
|
|
3147
|
+
},
|
|
3148
|
+
};
|
|
3149
|
+
|
|
2309
3150
|
function createBaseValidationResult(): ValidationResult {
|
|
2310
3151
|
return { Severity: 0, Message: "", Members: [] };
|
|
2311
3152
|
}
|
|
@@ -2452,6 +3293,14 @@ export const JobsDefinition = {
|
|
|
2452
3293
|
responseStream: false,
|
|
2453
3294
|
options: {},
|
|
2454
3295
|
},
|
|
3296
|
+
resumeJobWithResult: {
|
|
3297
|
+
name: "ResumeJobWithResult",
|
|
3298
|
+
requestType: ResumeJobWithResultRequest as typeof ResumeJobWithResultRequest,
|
|
3299
|
+
requestStream: false,
|
|
3300
|
+
responseType: CommandResultResumeJobWithResultResponse as typeof CommandResultResumeJobWithResultResponse,
|
|
3301
|
+
responseStream: false,
|
|
3302
|
+
options: {},
|
|
3303
|
+
},
|
|
2455
3304
|
stopJob: {
|
|
2456
3305
|
name: "StopJob",
|
|
2457
3306
|
requestType: StopJobRequest as typeof StopJobRequest,
|
|
@@ -2460,6 +3309,14 @@ export const JobsDefinition = {
|
|
|
2460
3309
|
responseStream: false,
|
|
2461
3310
|
options: {},
|
|
2462
3311
|
},
|
|
3312
|
+
stopJobWithResult: {
|
|
3313
|
+
name: "StopJobWithResult",
|
|
3314
|
+
requestType: StopJobWithResultRequest as typeof StopJobWithResultRequest,
|
|
3315
|
+
requestStream: false,
|
|
3316
|
+
responseType: CommandResultStopJobWithResultResponse as typeof CommandResultStopJobWithResultResponse,
|
|
3317
|
+
responseStream: false,
|
|
3318
|
+
options: {},
|
|
3319
|
+
},
|
|
2463
3320
|
},
|
|
2464
3321
|
} as const;
|
|
2465
3322
|
|
|
@@ -2478,7 +3335,15 @@ export interface JobsServiceImplementation<CallContextExt = {}> {
|
|
|
2478
3335
|
context: CallContext & CallContextExt,
|
|
2479
3336
|
): ServerStreamingMethodResult<DeepPartial<QueryResultIEnumerableJobSummaryResponse>>;
|
|
2480
3337
|
resumeJob(request: ResumeJobRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
|
|
3338
|
+
resumeJobWithResult(
|
|
3339
|
+
request: ResumeJobWithResultRequest,
|
|
3340
|
+
context: CallContext & CallContextExt,
|
|
3341
|
+
): Promise<DeepPartial<CommandResultResumeJobWithResultResponse>>;
|
|
2481
3342
|
stopJob(request: StopJobRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CommandResult>>;
|
|
3343
|
+
stopJobWithResult(
|
|
3344
|
+
request: StopJobWithResultRequest,
|
|
3345
|
+
context: CallContext & CallContextExt,
|
|
3346
|
+
): Promise<DeepPartial<CommandResultStopJobWithResultResponse>>;
|
|
2482
3347
|
}
|
|
2483
3348
|
|
|
2484
3349
|
export interface JobsClient<CallOptionsExt = {}> {
|
|
@@ -2496,7 +3361,15 @@ export interface JobsClient<CallOptionsExt = {}> {
|
|
|
2496
3361
|
options?: CallOptions & CallOptionsExt,
|
|
2497
3362
|
): AsyncIterable<QueryResultIEnumerableJobSummaryResponse>;
|
|
2498
3363
|
resumeJob(request: DeepPartial<ResumeJobRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
|
|
3364
|
+
resumeJobWithResult(
|
|
3365
|
+
request: DeepPartial<ResumeJobWithResultRequest>,
|
|
3366
|
+
options?: CallOptions & CallOptionsExt,
|
|
3367
|
+
): Promise<CommandResultResumeJobWithResultResponse>;
|
|
2499
3368
|
stopJob(request: DeepPartial<StopJobRequest>, options?: CallOptions & CallOptionsExt): Promise<CommandResult>;
|
|
3369
|
+
stopJobWithResult(
|
|
3370
|
+
request: DeepPartial<StopJobWithResultRequest>,
|
|
3371
|
+
options?: CallOptions & CallOptionsExt,
|
|
3372
|
+
): Promise<CommandResultStopJobWithResultResponse>;
|
|
2500
3373
|
}
|
|
2501
3374
|
|
|
2502
3375
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|