@cratis/chronicle.contracts 19.67.0 → 19.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +2 -0
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/occurrences.d.ts +490 -0
- package/dist/cjs/generated/occurrences.d.ts.map +1 -0
- package/dist/cjs/generated/occurrences.js +5166 -0
- package/dist/cjs/generated/occurrences.js.map +1 -0
- package/dist/cjs/generated/sequences.d.ts +39 -0
- package/dist/cjs/generated/sequences.d.ts.map +1 -1
- package/dist/cjs/generated/sequences.js +580 -1
- package/dist/cjs/generated/sequences.js.map +1 -1
- package/dist/cjs/index.js +70 -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 -0
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/occurrences.d.ts +490 -0
- package/dist/esm/generated/occurrences.d.ts.map +1 -0
- package/dist/esm/generated/occurrences.js +5116 -0
- package/dist/esm/generated/occurrences.js.map +1 -0
- package/dist/esm/generated/sequences.d.ts +39 -0
- package/dist/esm/generated/sequences.d.ts.map +1 -1
- package/dist/esm/generated/sequences.js +577 -2
- package/dist/esm/generated/sequences.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/occurrences.d.ts +490 -0
- package/dist/generated/occurrences.d.ts.map +1 -0
- package/dist/generated/occurrences.js +5114 -0
- package/dist/generated/occurrences.js.map +1 -0
- package/dist/generated/sequences.d.ts +39 -0
- package/dist/generated/sequences.d.ts.map +1 -1
- package/dist/generated/sequences.js +576 -1
- package/dist/generated/sequences.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +3 -0
- package/generated/occurrences.ts +5917 -0
- package/generated/sequences.ts +644 -1
- package/package.json +1 -1
|
@@ -173,6 +173,43 @@ export function contentVerificationResultToJSON(object) {
|
|
|
173
173
|
return "UNRECOGNIZED";
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
+
export var EffectOutcome;
|
|
177
|
+
(function (EffectOutcome) {
|
|
178
|
+
EffectOutcome[EffectOutcome["Appended"] = 0] = "Appended";
|
|
179
|
+
EffectOutcome[EffectOutcome["NoEvents"] = 1] = "NoEvents";
|
|
180
|
+
EffectOutcome[EffectOutcome["Refused"] = 2] = "Refused";
|
|
181
|
+
EffectOutcome[EffectOutcome["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
182
|
+
})(EffectOutcome || (EffectOutcome = {}));
|
|
183
|
+
export function effectOutcomeFromJSON(object) {
|
|
184
|
+
switch (object) {
|
|
185
|
+
case 0:
|
|
186
|
+
case "Appended":
|
|
187
|
+
return EffectOutcome.Appended;
|
|
188
|
+
case 1:
|
|
189
|
+
case "NoEvents":
|
|
190
|
+
return EffectOutcome.NoEvents;
|
|
191
|
+
case 2:
|
|
192
|
+
case "Refused":
|
|
193
|
+
return EffectOutcome.Refused;
|
|
194
|
+
case -1:
|
|
195
|
+
case "UNRECOGNIZED":
|
|
196
|
+
default:
|
|
197
|
+
return EffectOutcome.UNRECOGNIZED;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export function effectOutcomeToJSON(object) {
|
|
201
|
+
switch (object) {
|
|
202
|
+
case EffectOutcome.Appended:
|
|
203
|
+
return "Appended";
|
|
204
|
+
case EffectOutcome.NoEvents:
|
|
205
|
+
return "NoEvents";
|
|
206
|
+
case EffectOutcome.Refused:
|
|
207
|
+
return "Refused";
|
|
208
|
+
case EffectOutcome.UNRECOGNIZED:
|
|
209
|
+
default:
|
|
210
|
+
return "UNRECOGNIZED";
|
|
211
|
+
}
|
|
212
|
+
}
|
|
176
213
|
export var EventObservationState;
|
|
177
214
|
(function (EventObservationState) {
|
|
178
215
|
EventObservationState[EventObservationState["EVENT_OBSERVATION_STATE_None"] = 0] = "EVENT_OBSERVATION_STATE_None";
|
|
@@ -520,6 +557,7 @@ function createBaseAppendManyForEventSourcesRequest() {
|
|
|
520
557
|
Causation: [],
|
|
521
558
|
CausedBy: undefined,
|
|
522
559
|
ConcurrencyScopes: [],
|
|
560
|
+
EffectReceipt: undefined,
|
|
523
561
|
};
|
|
524
562
|
}
|
|
525
563
|
export const AppendManyForEventSourcesRequest = {
|
|
@@ -551,6 +589,9 @@ export const AppendManyForEventSourcesRequest = {
|
|
|
551
589
|
for (const v of message.ConcurrencyScopes) {
|
|
552
590
|
EventSourceConcurrencyScope.encode(v, writer.uint32(74).fork()).join();
|
|
553
591
|
}
|
|
592
|
+
if (message.EffectReceipt !== undefined) {
|
|
593
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(82).fork()).join();
|
|
594
|
+
}
|
|
554
595
|
return writer;
|
|
555
596
|
},
|
|
556
597
|
decode(input, length) {
|
|
@@ -629,6 +670,13 @@ export const AppendManyForEventSourcesRequest = {
|
|
|
629
670
|
message.ConcurrencyScopes.push(EventSourceConcurrencyScope.decode(reader, reader.uint32()));
|
|
630
671
|
continue;
|
|
631
672
|
}
|
|
673
|
+
case 10: {
|
|
674
|
+
if (tag !== 82) {
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
678
|
+
continue;
|
|
679
|
+
}
|
|
632
680
|
}
|
|
633
681
|
if ((tag & 7) === 4 || tag === 0) {
|
|
634
682
|
break;
|
|
@@ -658,6 +706,7 @@ export const AppendManyForEventSourcesRequest = {
|
|
|
658
706
|
ConcurrencyScopes: globalThis.Array.isArray(object?.ConcurrencyScopes)
|
|
659
707
|
? object.ConcurrencyScopes.map((e) => EventSourceConcurrencyScope.fromJSON(e))
|
|
660
708
|
: [],
|
|
709
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
661
710
|
};
|
|
662
711
|
},
|
|
663
712
|
toJSON(message) {
|
|
@@ -689,6 +738,9 @@ export const AppendManyForEventSourcesRequest = {
|
|
|
689
738
|
if (message.ConcurrencyScopes?.length) {
|
|
690
739
|
obj.ConcurrencyScopes = message.ConcurrencyScopes.map((e) => EventSourceConcurrencyScope.toJSON(e));
|
|
691
740
|
}
|
|
741
|
+
if (message.EffectReceipt !== undefined) {
|
|
742
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
743
|
+
}
|
|
692
744
|
return obj;
|
|
693
745
|
},
|
|
694
746
|
create(base) {
|
|
@@ -709,6 +761,9 @@ export const AppendManyForEventSourcesRequest = {
|
|
|
709
761
|
? Identity.fromPartial(object.CausedBy)
|
|
710
762
|
: undefined;
|
|
711
763
|
message.ConcurrencyScopes = object.ConcurrencyScopes?.map((e) => EventSourceConcurrencyScope.fromPartial(e)) || [];
|
|
764
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
765
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
766
|
+
: undefined;
|
|
712
767
|
return message;
|
|
713
768
|
},
|
|
714
769
|
};
|
|
@@ -723,6 +778,7 @@ function createBaseAppendManyForEventSourcesWithNamedTagsRequest() {
|
|
|
723
778
|
Causation: [],
|
|
724
779
|
CausedBy: undefined,
|
|
725
780
|
ConcurrencyScopes: [],
|
|
781
|
+
EffectReceipt: undefined,
|
|
726
782
|
};
|
|
727
783
|
}
|
|
728
784
|
export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
@@ -754,6 +810,9 @@ export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
|
754
810
|
for (const v of message.ConcurrencyScopes) {
|
|
755
811
|
EventSourceConcurrencyScope.encode(v, writer.uint32(74).fork()).join();
|
|
756
812
|
}
|
|
813
|
+
if (message.EffectReceipt !== undefined) {
|
|
814
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(82).fork()).join();
|
|
815
|
+
}
|
|
757
816
|
return writer;
|
|
758
817
|
},
|
|
759
818
|
decode(input, length) {
|
|
@@ -832,6 +891,13 @@ export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
|
832
891
|
message.ConcurrencyScopes.push(EventSourceConcurrencyScope.decode(reader, reader.uint32()));
|
|
833
892
|
continue;
|
|
834
893
|
}
|
|
894
|
+
case 10: {
|
|
895
|
+
if (tag !== 82) {
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
835
901
|
}
|
|
836
902
|
if ((tag & 7) === 4 || tag === 0) {
|
|
837
903
|
break;
|
|
@@ -861,6 +927,7 @@ export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
|
861
927
|
ConcurrencyScopes: globalThis.Array.isArray(object?.ConcurrencyScopes)
|
|
862
928
|
? object.ConcurrencyScopes.map((e) => EventSourceConcurrencyScope.fromJSON(e))
|
|
863
929
|
: [],
|
|
930
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
864
931
|
};
|
|
865
932
|
},
|
|
866
933
|
toJSON(message) {
|
|
@@ -892,6 +959,9 @@ export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
|
892
959
|
if (message.ConcurrencyScopes?.length) {
|
|
893
960
|
obj.ConcurrencyScopes = message.ConcurrencyScopes.map((e) => EventSourceConcurrencyScope.toJSON(e));
|
|
894
961
|
}
|
|
962
|
+
if (message.EffectReceipt !== undefined) {
|
|
963
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
964
|
+
}
|
|
895
965
|
return obj;
|
|
896
966
|
},
|
|
897
967
|
create(base) {
|
|
@@ -913,6 +983,9 @@ export const AppendManyForEventSourcesWithNamedTagsRequest = {
|
|
|
913
983
|
: undefined;
|
|
914
984
|
message.ConcurrencyScopes = object.ConcurrencyScopes?.map((e) => EventSourceConcurrencyScope.fromPartial(e)) ||
|
|
915
985
|
[];
|
|
986
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
987
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
988
|
+
: undefined;
|
|
916
989
|
return message;
|
|
917
990
|
},
|
|
918
991
|
};
|
|
@@ -929,6 +1002,7 @@ function createBaseAppendManyRequest() {
|
|
|
929
1002
|
CausedBy: undefined,
|
|
930
1003
|
ConcurrencyScope: undefined,
|
|
931
1004
|
Occurred: undefined,
|
|
1005
|
+
EffectReceipt: undefined,
|
|
932
1006
|
};
|
|
933
1007
|
}
|
|
934
1008
|
export const AppendManyRequest = {
|
|
@@ -966,6 +1040,9 @@ export const AppendManyRequest = {
|
|
|
966
1040
|
if (message.Occurred !== undefined) {
|
|
967
1041
|
SerializableDateTimeOffset.encode(message.Occurred, writer.uint32(90).fork()).join();
|
|
968
1042
|
}
|
|
1043
|
+
if (message.EffectReceipt !== undefined) {
|
|
1044
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(98).fork()).join();
|
|
1045
|
+
}
|
|
969
1046
|
return writer;
|
|
970
1047
|
},
|
|
971
1048
|
decode(input, length) {
|
|
@@ -1058,6 +1135,13 @@ export const AppendManyRequest = {
|
|
|
1058
1135
|
message.Occurred = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
1059
1136
|
continue;
|
|
1060
1137
|
}
|
|
1138
|
+
case 12: {
|
|
1139
|
+
if (tag !== 98) {
|
|
1140
|
+
break;
|
|
1141
|
+
}
|
|
1142
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1061
1145
|
}
|
|
1062
1146
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1063
1147
|
break;
|
|
@@ -1085,6 +1169,7 @@ export const AppendManyRequest = {
|
|
|
1085
1169
|
CausedBy: isSet(object.CausedBy) ? Identity.fromJSON(object.CausedBy) : undefined,
|
|
1086
1170
|
ConcurrencyScope: isSet(object.ConcurrencyScope) ? ConcurrencyScope.fromJSON(object.ConcurrencyScope) : undefined,
|
|
1087
1171
|
Occurred: isSet(object.Occurred) ? SerializableDateTimeOffset.fromJSON(object.Occurred) : undefined,
|
|
1172
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
1088
1173
|
};
|
|
1089
1174
|
},
|
|
1090
1175
|
toJSON(message) {
|
|
@@ -1122,6 +1207,9 @@ export const AppendManyRequest = {
|
|
|
1122
1207
|
if (message.Occurred !== undefined) {
|
|
1123
1208
|
obj.Occurred = SerializableDateTimeOffset.toJSON(message.Occurred);
|
|
1124
1209
|
}
|
|
1210
|
+
if (message.EffectReceipt !== undefined) {
|
|
1211
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
1212
|
+
}
|
|
1125
1213
|
return obj;
|
|
1126
1214
|
},
|
|
1127
1215
|
create(base) {
|
|
@@ -1148,6 +1236,9 @@ export const AppendManyRequest = {
|
|
|
1148
1236
|
message.Occurred = (object.Occurred !== undefined && object.Occurred !== null)
|
|
1149
1237
|
? SerializableDateTimeOffset.fromPartial(object.Occurred)
|
|
1150
1238
|
: undefined;
|
|
1239
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
1240
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
1241
|
+
: undefined;
|
|
1151
1242
|
return message;
|
|
1152
1243
|
},
|
|
1153
1244
|
};
|
|
@@ -1163,6 +1254,8 @@ function createBaseAppendManyResponse() {
|
|
|
1163
1254
|
ConstraintViolations: [],
|
|
1164
1255
|
Errors: [],
|
|
1165
1256
|
ConcurrencyViolations: [],
|
|
1257
|
+
EffectReceipt: undefined,
|
|
1258
|
+
EffectAlreadyRecorded: false,
|
|
1166
1259
|
};
|
|
1167
1260
|
}
|
|
1168
1261
|
export const AppendManyResponse = {
|
|
@@ -1200,6 +1293,12 @@ export const AppendManyResponse = {
|
|
|
1200
1293
|
for (const v of message.ConcurrencyViolations) {
|
|
1201
1294
|
ConcurrencyViolation.encode(v, writer.uint32(82).fork()).join();
|
|
1202
1295
|
}
|
|
1296
|
+
if (message.EffectReceipt !== undefined) {
|
|
1297
|
+
EffectReceiptDetails.encode(message.EffectReceipt, writer.uint32(90).fork()).join();
|
|
1298
|
+
}
|
|
1299
|
+
if (message.EffectAlreadyRecorded !== false) {
|
|
1300
|
+
writer.uint32(96).bool(message.EffectAlreadyRecorded);
|
|
1301
|
+
}
|
|
1203
1302
|
return writer;
|
|
1204
1303
|
},
|
|
1205
1304
|
decode(input, length) {
|
|
@@ -1292,6 +1391,20 @@ export const AppendManyResponse = {
|
|
|
1292
1391
|
message.ConcurrencyViolations.push(ConcurrencyViolation.decode(reader, reader.uint32()));
|
|
1293
1392
|
continue;
|
|
1294
1393
|
}
|
|
1394
|
+
case 11: {
|
|
1395
|
+
if (tag !== 90) {
|
|
1396
|
+
break;
|
|
1397
|
+
}
|
|
1398
|
+
message.EffectReceipt = EffectReceiptDetails.decode(reader, reader.uint32());
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
case 12: {
|
|
1402
|
+
if (tag !== 96) {
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
message.EffectAlreadyRecorded = reader.bool();
|
|
1406
|
+
continue;
|
|
1407
|
+
}
|
|
1295
1408
|
}
|
|
1296
1409
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1297
1410
|
break;
|
|
@@ -1328,6 +1441,10 @@ export const AppendManyResponse = {
|
|
|
1328
1441
|
ConcurrencyViolations: globalThis.Array.isArray(object?.ConcurrencyViolations)
|
|
1329
1442
|
? object.ConcurrencyViolations.map((e) => ConcurrencyViolation.fromJSON(e))
|
|
1330
1443
|
: [],
|
|
1444
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceiptDetails.fromJSON(object.EffectReceipt) : undefined,
|
|
1445
|
+
EffectAlreadyRecorded: isSet(object.EffectAlreadyRecorded)
|
|
1446
|
+
? globalThis.Boolean(object.EffectAlreadyRecorded)
|
|
1447
|
+
: false,
|
|
1331
1448
|
};
|
|
1332
1449
|
},
|
|
1333
1450
|
toJSON(message) {
|
|
@@ -1362,6 +1479,12 @@ export const AppendManyResponse = {
|
|
|
1362
1479
|
if (message.ConcurrencyViolations?.length) {
|
|
1363
1480
|
obj.ConcurrencyViolations = message.ConcurrencyViolations.map((e) => ConcurrencyViolation.toJSON(e));
|
|
1364
1481
|
}
|
|
1482
|
+
if (message.EffectReceipt !== undefined) {
|
|
1483
|
+
obj.EffectReceipt = EffectReceiptDetails.toJSON(message.EffectReceipt);
|
|
1484
|
+
}
|
|
1485
|
+
if (message.EffectAlreadyRecorded !== false) {
|
|
1486
|
+
obj.EffectAlreadyRecorded = message.EffectAlreadyRecorded;
|
|
1487
|
+
}
|
|
1365
1488
|
return obj;
|
|
1366
1489
|
},
|
|
1367
1490
|
create(base) {
|
|
@@ -1381,6 +1504,10 @@ export const AppendManyResponse = {
|
|
|
1381
1504
|
message.ConstraintViolations = object.ConstraintViolations?.map((e) => ConstraintViolation.fromPartial(e)) || [];
|
|
1382
1505
|
message.Errors = object.Errors?.map((e) => e) || [];
|
|
1383
1506
|
message.ConcurrencyViolations = object.ConcurrencyViolations?.map((e) => ConcurrencyViolation.fromPartial(e)) || [];
|
|
1507
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
1508
|
+
? EffectReceiptDetails.fromPartial(object.EffectReceipt)
|
|
1509
|
+
: undefined;
|
|
1510
|
+
message.EffectAlreadyRecorded = object.EffectAlreadyRecorded ?? false;
|
|
1384
1511
|
return message;
|
|
1385
1512
|
},
|
|
1386
1513
|
};
|
|
@@ -1397,6 +1524,7 @@ function createBaseAppendManyWithNamedTagsRequest() {
|
|
|
1397
1524
|
Causation: [],
|
|
1398
1525
|
CausedBy: undefined,
|
|
1399
1526
|
ConcurrencyScope: undefined,
|
|
1527
|
+
EffectReceipt: undefined,
|
|
1400
1528
|
};
|
|
1401
1529
|
}
|
|
1402
1530
|
export const AppendManyWithNamedTagsRequest = {
|
|
@@ -1434,6 +1562,9 @@ export const AppendManyWithNamedTagsRequest = {
|
|
|
1434
1562
|
if (message.ConcurrencyScope !== undefined) {
|
|
1435
1563
|
ConcurrencyScope.encode(message.ConcurrencyScope, writer.uint32(90).fork()).join();
|
|
1436
1564
|
}
|
|
1565
|
+
if (message.EffectReceipt !== undefined) {
|
|
1566
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(98).fork()).join();
|
|
1567
|
+
}
|
|
1437
1568
|
return writer;
|
|
1438
1569
|
},
|
|
1439
1570
|
decode(input, length) {
|
|
@@ -1526,6 +1657,13 @@ export const AppendManyWithNamedTagsRequest = {
|
|
|
1526
1657
|
message.ConcurrencyScope = ConcurrencyScope.decode(reader, reader.uint32());
|
|
1527
1658
|
continue;
|
|
1528
1659
|
}
|
|
1660
|
+
case 12: {
|
|
1661
|
+
if (tag !== 98) {
|
|
1662
|
+
break;
|
|
1663
|
+
}
|
|
1664
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
1665
|
+
continue;
|
|
1666
|
+
}
|
|
1529
1667
|
}
|
|
1530
1668
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1531
1669
|
break;
|
|
@@ -1555,6 +1693,7 @@ export const AppendManyWithNamedTagsRequest = {
|
|
|
1555
1693
|
: [],
|
|
1556
1694
|
CausedBy: isSet(object.CausedBy) ? Identity.fromJSON(object.CausedBy) : undefined,
|
|
1557
1695
|
ConcurrencyScope: isSet(object.ConcurrencyScope) ? ConcurrencyScope.fromJSON(object.ConcurrencyScope) : undefined,
|
|
1696
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
1558
1697
|
};
|
|
1559
1698
|
},
|
|
1560
1699
|
toJSON(message) {
|
|
@@ -1592,6 +1731,9 @@ export const AppendManyWithNamedTagsRequest = {
|
|
|
1592
1731
|
if (message.ConcurrencyScope !== undefined) {
|
|
1593
1732
|
obj.ConcurrencyScope = ConcurrencyScope.toJSON(message.ConcurrencyScope);
|
|
1594
1733
|
}
|
|
1734
|
+
if (message.EffectReceipt !== undefined) {
|
|
1735
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
1736
|
+
}
|
|
1595
1737
|
return obj;
|
|
1596
1738
|
},
|
|
1597
1739
|
create(base) {
|
|
@@ -1618,6 +1760,9 @@ export const AppendManyWithNamedTagsRequest = {
|
|
|
1618
1760
|
message.ConcurrencyScope = (object.ConcurrencyScope !== undefined && object.ConcurrencyScope !== null)
|
|
1619
1761
|
? ConcurrencyScope.fromPartial(object.ConcurrencyScope)
|
|
1620
1762
|
: undefined;
|
|
1763
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
1764
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
1765
|
+
: undefined;
|
|
1621
1766
|
return message;
|
|
1622
1767
|
},
|
|
1623
1768
|
};
|
|
@@ -1640,6 +1785,7 @@ function createBaseAppendRequest() {
|
|
|
1640
1785
|
CausedBy: undefined,
|
|
1641
1786
|
ConcurrencyScope: undefined,
|
|
1642
1787
|
EventSource: "",
|
|
1788
|
+
EffectReceipt: undefined,
|
|
1643
1789
|
};
|
|
1644
1790
|
}
|
|
1645
1791
|
export const AppendRequest = {
|
|
@@ -1695,6 +1841,9 @@ export const AppendRequest = {
|
|
|
1695
1841
|
if (message.EventSource !== "") {
|
|
1696
1842
|
writer.uint32(138).string(message.EventSource);
|
|
1697
1843
|
}
|
|
1844
|
+
if (message.EffectReceipt !== undefined) {
|
|
1845
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(146).fork()).join();
|
|
1846
|
+
}
|
|
1698
1847
|
return writer;
|
|
1699
1848
|
},
|
|
1700
1849
|
decode(input, length) {
|
|
@@ -1829,6 +1978,13 @@ export const AppendRequest = {
|
|
|
1829
1978
|
message.EventSource = reader.string();
|
|
1830
1979
|
continue;
|
|
1831
1980
|
}
|
|
1981
|
+
case 18: {
|
|
1982
|
+
if (tag !== 146) {
|
|
1983
|
+
break;
|
|
1984
|
+
}
|
|
1985
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
1986
|
+
continue;
|
|
1987
|
+
}
|
|
1832
1988
|
}
|
|
1833
1989
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1834
1990
|
break;
|
|
@@ -1862,6 +2018,7 @@ export const AppendRequest = {
|
|
|
1862
2018
|
CausedBy: isSet(object.CausedBy) ? Identity.fromJSON(object.CausedBy) : undefined,
|
|
1863
2019
|
ConcurrencyScope: isSet(object.ConcurrencyScope) ? ConcurrencyScope.fromJSON(object.ConcurrencyScope) : undefined,
|
|
1864
2020
|
EventSource: isSet(object.EventSource) ? globalThis.String(object.EventSource) : "",
|
|
2021
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
1865
2022
|
};
|
|
1866
2023
|
},
|
|
1867
2024
|
toJSON(message) {
|
|
@@ -1917,6 +2074,9 @@ export const AppendRequest = {
|
|
|
1917
2074
|
if (message.EventSource !== "") {
|
|
1918
2075
|
obj.EventSource = message.EventSource;
|
|
1919
2076
|
}
|
|
2077
|
+
if (message.EffectReceipt !== undefined) {
|
|
2078
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
2079
|
+
}
|
|
1920
2080
|
return obj;
|
|
1921
2081
|
},
|
|
1922
2082
|
create(base) {
|
|
@@ -1951,6 +2111,9 @@ export const AppendRequest = {
|
|
|
1951
2111
|
? ConcurrencyScope.fromPartial(object.ConcurrencyScope)
|
|
1952
2112
|
: undefined;
|
|
1953
2113
|
message.EventSource = object.EventSource ?? "";
|
|
2114
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
2115
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
2116
|
+
: undefined;
|
|
1954
2117
|
return message;
|
|
1955
2118
|
},
|
|
1956
2119
|
};
|
|
@@ -1966,6 +2129,8 @@ function createBaseAppendResponse() {
|
|
|
1966
2129
|
ConstraintViolations: [],
|
|
1967
2130
|
Errors: [],
|
|
1968
2131
|
ConcurrencyViolation: undefined,
|
|
2132
|
+
EffectReceipt: undefined,
|
|
2133
|
+
EffectAlreadyRecorded: false,
|
|
1969
2134
|
};
|
|
1970
2135
|
}
|
|
1971
2136
|
export const AppendResponse = {
|
|
@@ -2003,6 +2168,12 @@ export const AppendResponse = {
|
|
|
2003
2168
|
if (message.ConcurrencyViolation !== undefined) {
|
|
2004
2169
|
ConcurrencyViolation.encode(message.ConcurrencyViolation, writer.uint32(82).fork()).join();
|
|
2005
2170
|
}
|
|
2171
|
+
if (message.EffectReceipt !== undefined) {
|
|
2172
|
+
EffectReceiptDetails.encode(message.EffectReceipt, writer.uint32(90).fork()).join();
|
|
2173
|
+
}
|
|
2174
|
+
if (message.EffectAlreadyRecorded !== false) {
|
|
2175
|
+
writer.uint32(96).bool(message.EffectAlreadyRecorded);
|
|
2176
|
+
}
|
|
2006
2177
|
return writer;
|
|
2007
2178
|
},
|
|
2008
2179
|
decode(input, length) {
|
|
@@ -2088,6 +2259,20 @@ export const AppendResponse = {
|
|
|
2088
2259
|
message.ConcurrencyViolation = ConcurrencyViolation.decode(reader, reader.uint32());
|
|
2089
2260
|
continue;
|
|
2090
2261
|
}
|
|
2262
|
+
case 11: {
|
|
2263
|
+
if (tag !== 90) {
|
|
2264
|
+
break;
|
|
2265
|
+
}
|
|
2266
|
+
message.EffectReceipt = EffectReceiptDetails.decode(reader, reader.uint32());
|
|
2267
|
+
continue;
|
|
2268
|
+
}
|
|
2269
|
+
case 12: {
|
|
2270
|
+
if (tag !== 96) {
|
|
2271
|
+
break;
|
|
2272
|
+
}
|
|
2273
|
+
message.EffectAlreadyRecorded = reader.bool();
|
|
2274
|
+
continue;
|
|
2275
|
+
}
|
|
2091
2276
|
}
|
|
2092
2277
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2093
2278
|
break;
|
|
@@ -2124,6 +2309,10 @@ export const AppendResponse = {
|
|
|
2124
2309
|
ConcurrencyViolation: isSet(object.ConcurrencyViolation)
|
|
2125
2310
|
? ConcurrencyViolation.fromJSON(object.ConcurrencyViolation)
|
|
2126
2311
|
: undefined,
|
|
2312
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceiptDetails.fromJSON(object.EffectReceipt) : undefined,
|
|
2313
|
+
EffectAlreadyRecorded: isSet(object.EffectAlreadyRecorded)
|
|
2314
|
+
? globalThis.Boolean(object.EffectAlreadyRecorded)
|
|
2315
|
+
: false,
|
|
2127
2316
|
};
|
|
2128
2317
|
},
|
|
2129
2318
|
toJSON(message) {
|
|
@@ -2158,6 +2347,12 @@ export const AppendResponse = {
|
|
|
2158
2347
|
if (message.ConcurrencyViolation !== undefined) {
|
|
2159
2348
|
obj.ConcurrencyViolation = ConcurrencyViolation.toJSON(message.ConcurrencyViolation);
|
|
2160
2349
|
}
|
|
2350
|
+
if (message.EffectReceipt !== undefined) {
|
|
2351
|
+
obj.EffectReceipt = EffectReceiptDetails.toJSON(message.EffectReceipt);
|
|
2352
|
+
}
|
|
2353
|
+
if (message.EffectAlreadyRecorded !== false) {
|
|
2354
|
+
obj.EffectAlreadyRecorded = message.EffectAlreadyRecorded;
|
|
2355
|
+
}
|
|
2161
2356
|
return obj;
|
|
2162
2357
|
},
|
|
2163
2358
|
create(base) {
|
|
@@ -2181,6 +2376,10 @@ export const AppendResponse = {
|
|
|
2181
2376
|
message.ConcurrencyViolation = (object.ConcurrencyViolation !== undefined && object.ConcurrencyViolation !== null)
|
|
2182
2377
|
? ConcurrencyViolation.fromPartial(object.ConcurrencyViolation)
|
|
2183
2378
|
: undefined;
|
|
2379
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
2380
|
+
? EffectReceiptDetails.fromPartial(object.EffectReceipt)
|
|
2381
|
+
: undefined;
|
|
2382
|
+
message.EffectAlreadyRecorded = object.EffectAlreadyRecorded ?? false;
|
|
2184
2383
|
return message;
|
|
2185
2384
|
},
|
|
2186
2385
|
};
|
|
@@ -2204,6 +2403,7 @@ function createBaseAppendWithNamedTagsRequest() {
|
|
|
2204
2403
|
CausedBy: undefined,
|
|
2205
2404
|
ConcurrencyScope: undefined,
|
|
2206
2405
|
EventSource: "",
|
|
2406
|
+
EffectReceipt: undefined,
|
|
2207
2407
|
};
|
|
2208
2408
|
}
|
|
2209
2409
|
export const AppendWithNamedTagsRequest = {
|
|
@@ -2262,6 +2462,9 @@ export const AppendWithNamedTagsRequest = {
|
|
|
2262
2462
|
if (message.EventSource !== "") {
|
|
2263
2463
|
writer.uint32(146).string(message.EventSource);
|
|
2264
2464
|
}
|
|
2465
|
+
if (message.EffectReceipt !== undefined) {
|
|
2466
|
+
EffectReceipt.encode(message.EffectReceipt, writer.uint32(154).fork()).join();
|
|
2467
|
+
}
|
|
2265
2468
|
return writer;
|
|
2266
2469
|
},
|
|
2267
2470
|
decode(input, length) {
|
|
@@ -2403,6 +2606,13 @@ export const AppendWithNamedTagsRequest = {
|
|
|
2403
2606
|
message.EventSource = reader.string();
|
|
2404
2607
|
continue;
|
|
2405
2608
|
}
|
|
2609
|
+
case 19: {
|
|
2610
|
+
if (tag !== 154) {
|
|
2611
|
+
break;
|
|
2612
|
+
}
|
|
2613
|
+
message.EffectReceipt = EffectReceipt.decode(reader, reader.uint32());
|
|
2614
|
+
continue;
|
|
2615
|
+
}
|
|
2406
2616
|
}
|
|
2407
2617
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2408
2618
|
break;
|
|
@@ -2439,6 +2649,7 @@ export const AppendWithNamedTagsRequest = {
|
|
|
2439
2649
|
CausedBy: isSet(object.CausedBy) ? Identity.fromJSON(object.CausedBy) : undefined,
|
|
2440
2650
|
ConcurrencyScope: isSet(object.ConcurrencyScope) ? ConcurrencyScope.fromJSON(object.ConcurrencyScope) : undefined,
|
|
2441
2651
|
EventSource: isSet(object.EventSource) ? globalThis.String(object.EventSource) : "",
|
|
2652
|
+
EffectReceipt: isSet(object.EffectReceipt) ? EffectReceipt.fromJSON(object.EffectReceipt) : undefined,
|
|
2442
2653
|
};
|
|
2443
2654
|
},
|
|
2444
2655
|
toJSON(message) {
|
|
@@ -2497,6 +2708,9 @@ export const AppendWithNamedTagsRequest = {
|
|
|
2497
2708
|
if (message.EventSource !== "") {
|
|
2498
2709
|
obj.EventSource = message.EventSource;
|
|
2499
2710
|
}
|
|
2711
|
+
if (message.EffectReceipt !== undefined) {
|
|
2712
|
+
obj.EffectReceipt = EffectReceipt.toJSON(message.EffectReceipt);
|
|
2713
|
+
}
|
|
2500
2714
|
return obj;
|
|
2501
2715
|
},
|
|
2502
2716
|
create(base) {
|
|
@@ -2532,11 +2746,22 @@ export const AppendWithNamedTagsRequest = {
|
|
|
2532
2746
|
? ConcurrencyScope.fromPartial(object.ConcurrencyScope)
|
|
2533
2747
|
: undefined;
|
|
2534
2748
|
message.EventSource = object.EventSource ?? "";
|
|
2749
|
+
message.EffectReceipt = (object.EffectReceipt !== undefined && object.EffectReceipt !== null)
|
|
2750
|
+
? EffectReceipt.fromPartial(object.EffectReceipt)
|
|
2751
|
+
: undefined;
|
|
2535
2752
|
return message;
|
|
2536
2753
|
},
|
|
2537
2754
|
};
|
|
2538
2755
|
function createBaseAppendedEventResponse() {
|
|
2539
|
-
return {
|
|
2756
|
+
return {
|
|
2757
|
+
Id: "",
|
|
2758
|
+
Context: undefined,
|
|
2759
|
+
Content: "",
|
|
2760
|
+
OriginalContent: "",
|
|
2761
|
+
Revisions: [],
|
|
2762
|
+
GenerationalContent: [],
|
|
2763
|
+
RevisedGeneration: 0,
|
|
2764
|
+
};
|
|
2540
2765
|
}
|
|
2541
2766
|
export const AppendedEventResponse = {
|
|
2542
2767
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -2558,6 +2783,9 @@ export const AppendedEventResponse = {
|
|
|
2558
2783
|
for (const v of message.GenerationalContent) {
|
|
2559
2784
|
KeyValuePairInt32String.encode(v, writer.uint32(50).fork()).join();
|
|
2560
2785
|
}
|
|
2786
|
+
if (message.RevisedGeneration !== 0) {
|
|
2787
|
+
writer.uint32(56).uint32(message.RevisedGeneration);
|
|
2788
|
+
}
|
|
2561
2789
|
return writer;
|
|
2562
2790
|
},
|
|
2563
2791
|
decode(input, length) {
|
|
@@ -2615,6 +2843,13 @@ export const AppendedEventResponse = {
|
|
|
2615
2843
|
message.GenerationalContent.push(KeyValuePairInt32String.decode(reader, reader.uint32()));
|
|
2616
2844
|
continue;
|
|
2617
2845
|
}
|
|
2846
|
+
case 7: {
|
|
2847
|
+
if (tag !== 56) {
|
|
2848
|
+
break;
|
|
2849
|
+
}
|
|
2850
|
+
message.RevisedGeneration = reader.uint32();
|
|
2851
|
+
continue;
|
|
2852
|
+
}
|
|
2618
2853
|
}
|
|
2619
2854
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2620
2855
|
break;
|
|
@@ -2639,6 +2874,7 @@ export const AppendedEventResponse = {
|
|
|
2639
2874
|
GenerationalContent: globalThis.Array.isArray(object?.GenerationalContent)
|
|
2640
2875
|
? object.GenerationalContent.map((e) => KeyValuePairInt32String.fromJSON(e))
|
|
2641
2876
|
: [],
|
|
2877
|
+
RevisedGeneration: isSet(object.RevisedGeneration) ? globalThis.Number(object.RevisedGeneration) : 0,
|
|
2642
2878
|
};
|
|
2643
2879
|
},
|
|
2644
2880
|
toJSON(message) {
|
|
@@ -2661,6 +2897,9 @@ export const AppendedEventResponse = {
|
|
|
2661
2897
|
if (message.GenerationalContent?.length) {
|
|
2662
2898
|
obj.GenerationalContent = message.GenerationalContent.map((e) => KeyValuePairInt32String.toJSON(e));
|
|
2663
2899
|
}
|
|
2900
|
+
if (message.RevisedGeneration !== 0) {
|
|
2901
|
+
obj.RevisedGeneration = Math.round(message.RevisedGeneration);
|
|
2902
|
+
}
|
|
2664
2903
|
return obj;
|
|
2665
2904
|
},
|
|
2666
2905
|
create(base) {
|
|
@@ -2676,6 +2915,7 @@ export const AppendedEventResponse = {
|
|
|
2676
2915
|
message.OriginalContent = object.OriginalContent ?? "";
|
|
2677
2916
|
message.Revisions = object.Revisions?.map((e) => EventRevision.fromPartial(e)) || [];
|
|
2678
2917
|
message.GenerationalContent = object.GenerationalContent?.map((e) => KeyValuePairInt32String.fromPartial(e)) || [];
|
|
2918
|
+
message.RevisedGeneration = object.RevisedGeneration ?? 0;
|
|
2679
2919
|
return message;
|
|
2680
2920
|
},
|
|
2681
2921
|
};
|
|
@@ -5262,6 +5502,341 @@ export const ConstraintViolation_DetailsEntry = {
|
|
|
5262
5502
|
return message;
|
|
5263
5503
|
},
|
|
5264
5504
|
};
|
|
5505
|
+
function createBaseEffectReceipt() {
|
|
5506
|
+
return { OccurrenceId: "", EffectKey: "", Epoch: 0n, Response: "" };
|
|
5507
|
+
}
|
|
5508
|
+
export const EffectReceipt = {
|
|
5509
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5510
|
+
if (message.OccurrenceId !== "") {
|
|
5511
|
+
writer.uint32(10).string(message.OccurrenceId);
|
|
5512
|
+
}
|
|
5513
|
+
if (message.EffectKey !== "") {
|
|
5514
|
+
writer.uint32(18).string(message.EffectKey);
|
|
5515
|
+
}
|
|
5516
|
+
if (message.Epoch !== 0n) {
|
|
5517
|
+
if (BigInt.asIntN(64, message.Epoch) !== message.Epoch) {
|
|
5518
|
+
throw new globalThis.Error("value provided for field message.Epoch of type int64 too large");
|
|
5519
|
+
}
|
|
5520
|
+
writer.uint32(24).int64(message.Epoch);
|
|
5521
|
+
}
|
|
5522
|
+
if (message.Response !== "") {
|
|
5523
|
+
writer.uint32(34).string(message.Response);
|
|
5524
|
+
}
|
|
5525
|
+
return writer;
|
|
5526
|
+
},
|
|
5527
|
+
decode(input, length) {
|
|
5528
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5529
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5530
|
+
if (previousRecursionDepth >= 100) {
|
|
5531
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5532
|
+
}
|
|
5533
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5534
|
+
try {
|
|
5535
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5536
|
+
const message = createBaseEffectReceipt();
|
|
5537
|
+
while (reader.pos < end) {
|
|
5538
|
+
const tag = reader.uint32();
|
|
5539
|
+
switch (tag >>> 3) {
|
|
5540
|
+
case 1: {
|
|
5541
|
+
if (tag !== 10) {
|
|
5542
|
+
break;
|
|
5543
|
+
}
|
|
5544
|
+
message.OccurrenceId = reader.string();
|
|
5545
|
+
continue;
|
|
5546
|
+
}
|
|
5547
|
+
case 2: {
|
|
5548
|
+
if (tag !== 18) {
|
|
5549
|
+
break;
|
|
5550
|
+
}
|
|
5551
|
+
message.EffectKey = reader.string();
|
|
5552
|
+
continue;
|
|
5553
|
+
}
|
|
5554
|
+
case 3: {
|
|
5555
|
+
if (tag !== 24) {
|
|
5556
|
+
break;
|
|
5557
|
+
}
|
|
5558
|
+
message.Epoch = reader.int64();
|
|
5559
|
+
continue;
|
|
5560
|
+
}
|
|
5561
|
+
case 4: {
|
|
5562
|
+
if (tag !== 34) {
|
|
5563
|
+
break;
|
|
5564
|
+
}
|
|
5565
|
+
message.Response = reader.string();
|
|
5566
|
+
continue;
|
|
5567
|
+
}
|
|
5568
|
+
}
|
|
5569
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5570
|
+
break;
|
|
5571
|
+
}
|
|
5572
|
+
reader.skip(tag & 7);
|
|
5573
|
+
}
|
|
5574
|
+
return message;
|
|
5575
|
+
}
|
|
5576
|
+
finally {
|
|
5577
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5578
|
+
}
|
|
5579
|
+
},
|
|
5580
|
+
fromJSON(object) {
|
|
5581
|
+
return {
|
|
5582
|
+
OccurrenceId: isSet(object.OccurrenceId) ? globalThis.String(object.OccurrenceId) : "",
|
|
5583
|
+
EffectKey: isSet(object.EffectKey) ? globalThis.String(object.EffectKey) : "",
|
|
5584
|
+
Epoch: isSet(object.Epoch) ? BigInt(object.Epoch) : 0n,
|
|
5585
|
+
Response: isSet(object.Response) ? globalThis.String(object.Response) : "",
|
|
5586
|
+
};
|
|
5587
|
+
},
|
|
5588
|
+
toJSON(message) {
|
|
5589
|
+
const obj = {};
|
|
5590
|
+
if (message.OccurrenceId !== "") {
|
|
5591
|
+
obj.OccurrenceId = message.OccurrenceId;
|
|
5592
|
+
}
|
|
5593
|
+
if (message.EffectKey !== "") {
|
|
5594
|
+
obj.EffectKey = message.EffectKey;
|
|
5595
|
+
}
|
|
5596
|
+
if (message.Epoch !== 0n) {
|
|
5597
|
+
obj.Epoch = message.Epoch.toString();
|
|
5598
|
+
}
|
|
5599
|
+
if (message.Response !== "") {
|
|
5600
|
+
obj.Response = message.Response;
|
|
5601
|
+
}
|
|
5602
|
+
return obj;
|
|
5603
|
+
},
|
|
5604
|
+
create(base) {
|
|
5605
|
+
return EffectReceipt.fromPartial(base ?? {});
|
|
5606
|
+
},
|
|
5607
|
+
fromPartial(object) {
|
|
5608
|
+
const message = createBaseEffectReceipt();
|
|
5609
|
+
message.OccurrenceId = object.OccurrenceId ?? "";
|
|
5610
|
+
message.EffectKey = object.EffectKey ?? "";
|
|
5611
|
+
message.Epoch = (object.Epoch !== undefined && object.Epoch !== null) ? BigInt(object.Epoch) : 0n;
|
|
5612
|
+
message.Response = object.Response ?? "";
|
|
5613
|
+
return message;
|
|
5614
|
+
},
|
|
5615
|
+
};
|
|
5616
|
+
function createBaseEffectReceiptDetails() {
|
|
5617
|
+
return {
|
|
5618
|
+
Id: "",
|
|
5619
|
+
OccurrenceId: "",
|
|
5620
|
+
Epoch: 0n,
|
|
5621
|
+
Outcome: 0,
|
|
5622
|
+
EventSequenceId: "",
|
|
5623
|
+
FirstSequenceNumber: 0n,
|
|
5624
|
+
LastSequenceNumber: 0n,
|
|
5625
|
+
Reasons: [],
|
|
5626
|
+
Response: "",
|
|
5627
|
+
RecordedAt: undefined,
|
|
5628
|
+
};
|
|
5629
|
+
}
|
|
5630
|
+
export const EffectReceiptDetails = {
|
|
5631
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5632
|
+
if (message.Id !== "") {
|
|
5633
|
+
writer.uint32(10).string(message.Id);
|
|
5634
|
+
}
|
|
5635
|
+
if (message.OccurrenceId !== "") {
|
|
5636
|
+
writer.uint32(18).string(message.OccurrenceId);
|
|
5637
|
+
}
|
|
5638
|
+
if (message.Epoch !== 0n) {
|
|
5639
|
+
if (BigInt.asIntN(64, message.Epoch) !== message.Epoch) {
|
|
5640
|
+
throw new globalThis.Error("value provided for field message.Epoch of type int64 too large");
|
|
5641
|
+
}
|
|
5642
|
+
writer.uint32(24).int64(message.Epoch);
|
|
5643
|
+
}
|
|
5644
|
+
if (message.Outcome !== 0) {
|
|
5645
|
+
writer.uint32(32).int32(message.Outcome);
|
|
5646
|
+
}
|
|
5647
|
+
if (message.EventSequenceId !== "") {
|
|
5648
|
+
writer.uint32(42).string(message.EventSequenceId);
|
|
5649
|
+
}
|
|
5650
|
+
if (message.FirstSequenceNumber !== 0n) {
|
|
5651
|
+
if (BigInt.asUintN(64, message.FirstSequenceNumber) !== message.FirstSequenceNumber) {
|
|
5652
|
+
throw new globalThis.Error("value provided for field message.FirstSequenceNumber of type uint64 too large");
|
|
5653
|
+
}
|
|
5654
|
+
writer.uint32(48).uint64(message.FirstSequenceNumber);
|
|
5655
|
+
}
|
|
5656
|
+
if (message.LastSequenceNumber !== 0n) {
|
|
5657
|
+
if (BigInt.asUintN(64, message.LastSequenceNumber) !== message.LastSequenceNumber) {
|
|
5658
|
+
throw new globalThis.Error("value provided for field message.LastSequenceNumber of type uint64 too large");
|
|
5659
|
+
}
|
|
5660
|
+
writer.uint32(56).uint64(message.LastSequenceNumber);
|
|
5661
|
+
}
|
|
5662
|
+
for (const v of message.Reasons) {
|
|
5663
|
+
writer.uint32(66).string(v);
|
|
5664
|
+
}
|
|
5665
|
+
if (message.Response !== "") {
|
|
5666
|
+
writer.uint32(74).string(message.Response);
|
|
5667
|
+
}
|
|
5668
|
+
if (message.RecordedAt !== undefined) {
|
|
5669
|
+
SerializableDateTimeOffset.encode(message.RecordedAt, writer.uint32(82).fork()).join();
|
|
5670
|
+
}
|
|
5671
|
+
return writer;
|
|
5672
|
+
},
|
|
5673
|
+
decode(input, length) {
|
|
5674
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5675
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5676
|
+
if (previousRecursionDepth >= 100) {
|
|
5677
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5678
|
+
}
|
|
5679
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5680
|
+
try {
|
|
5681
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5682
|
+
const message = createBaseEffectReceiptDetails();
|
|
5683
|
+
while (reader.pos < end) {
|
|
5684
|
+
const tag = reader.uint32();
|
|
5685
|
+
switch (tag >>> 3) {
|
|
5686
|
+
case 1: {
|
|
5687
|
+
if (tag !== 10) {
|
|
5688
|
+
break;
|
|
5689
|
+
}
|
|
5690
|
+
message.Id = reader.string();
|
|
5691
|
+
continue;
|
|
5692
|
+
}
|
|
5693
|
+
case 2: {
|
|
5694
|
+
if (tag !== 18) {
|
|
5695
|
+
break;
|
|
5696
|
+
}
|
|
5697
|
+
message.OccurrenceId = reader.string();
|
|
5698
|
+
continue;
|
|
5699
|
+
}
|
|
5700
|
+
case 3: {
|
|
5701
|
+
if (tag !== 24) {
|
|
5702
|
+
break;
|
|
5703
|
+
}
|
|
5704
|
+
message.Epoch = reader.int64();
|
|
5705
|
+
continue;
|
|
5706
|
+
}
|
|
5707
|
+
case 4: {
|
|
5708
|
+
if (tag !== 32) {
|
|
5709
|
+
break;
|
|
5710
|
+
}
|
|
5711
|
+
message.Outcome = reader.int32();
|
|
5712
|
+
continue;
|
|
5713
|
+
}
|
|
5714
|
+
case 5: {
|
|
5715
|
+
if (tag !== 42) {
|
|
5716
|
+
break;
|
|
5717
|
+
}
|
|
5718
|
+
message.EventSequenceId = reader.string();
|
|
5719
|
+
continue;
|
|
5720
|
+
}
|
|
5721
|
+
case 6: {
|
|
5722
|
+
if (tag !== 48) {
|
|
5723
|
+
break;
|
|
5724
|
+
}
|
|
5725
|
+
message.FirstSequenceNumber = reader.uint64();
|
|
5726
|
+
continue;
|
|
5727
|
+
}
|
|
5728
|
+
case 7: {
|
|
5729
|
+
if (tag !== 56) {
|
|
5730
|
+
break;
|
|
5731
|
+
}
|
|
5732
|
+
message.LastSequenceNumber = reader.uint64();
|
|
5733
|
+
continue;
|
|
5734
|
+
}
|
|
5735
|
+
case 8: {
|
|
5736
|
+
if (tag !== 66) {
|
|
5737
|
+
break;
|
|
5738
|
+
}
|
|
5739
|
+
message.Reasons.push(reader.string());
|
|
5740
|
+
continue;
|
|
5741
|
+
}
|
|
5742
|
+
case 9: {
|
|
5743
|
+
if (tag !== 74) {
|
|
5744
|
+
break;
|
|
5745
|
+
}
|
|
5746
|
+
message.Response = reader.string();
|
|
5747
|
+
continue;
|
|
5748
|
+
}
|
|
5749
|
+
case 10: {
|
|
5750
|
+
if (tag !== 82) {
|
|
5751
|
+
break;
|
|
5752
|
+
}
|
|
5753
|
+
message.RecordedAt = SerializableDateTimeOffset.decode(reader, reader.uint32());
|
|
5754
|
+
continue;
|
|
5755
|
+
}
|
|
5756
|
+
}
|
|
5757
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5758
|
+
break;
|
|
5759
|
+
}
|
|
5760
|
+
reader.skip(tag & 7);
|
|
5761
|
+
}
|
|
5762
|
+
return message;
|
|
5763
|
+
}
|
|
5764
|
+
finally {
|
|
5765
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5766
|
+
}
|
|
5767
|
+
},
|
|
5768
|
+
fromJSON(object) {
|
|
5769
|
+
return {
|
|
5770
|
+
Id: isSet(object.Id) ? globalThis.String(object.Id) : "",
|
|
5771
|
+
OccurrenceId: isSet(object.OccurrenceId) ? globalThis.String(object.OccurrenceId) : "",
|
|
5772
|
+
Epoch: isSet(object.Epoch) ? BigInt(object.Epoch) : 0n,
|
|
5773
|
+
Outcome: isSet(object.Outcome) ? effectOutcomeFromJSON(object.Outcome) : 0,
|
|
5774
|
+
EventSequenceId: isSet(object.EventSequenceId) ? globalThis.String(object.EventSequenceId) : "",
|
|
5775
|
+
FirstSequenceNumber: isSet(object.FirstSequenceNumber) ? BigInt(object.FirstSequenceNumber) : 0n,
|
|
5776
|
+
LastSequenceNumber: isSet(object.LastSequenceNumber) ? BigInt(object.LastSequenceNumber) : 0n,
|
|
5777
|
+
Reasons: globalThis.Array.isArray(object?.Reasons) ? object.Reasons.map((e) => globalThis.String(e)) : [],
|
|
5778
|
+
Response: isSet(object.Response) ? globalThis.String(object.Response) : "",
|
|
5779
|
+
RecordedAt: isSet(object.RecordedAt) ? SerializableDateTimeOffset.fromJSON(object.RecordedAt) : undefined,
|
|
5780
|
+
};
|
|
5781
|
+
},
|
|
5782
|
+
toJSON(message) {
|
|
5783
|
+
const obj = {};
|
|
5784
|
+
if (message.Id !== "") {
|
|
5785
|
+
obj.Id = message.Id;
|
|
5786
|
+
}
|
|
5787
|
+
if (message.OccurrenceId !== "") {
|
|
5788
|
+
obj.OccurrenceId = message.OccurrenceId;
|
|
5789
|
+
}
|
|
5790
|
+
if (message.Epoch !== 0n) {
|
|
5791
|
+
obj.Epoch = message.Epoch.toString();
|
|
5792
|
+
}
|
|
5793
|
+
if (message.Outcome !== 0) {
|
|
5794
|
+
obj.Outcome = effectOutcomeToJSON(message.Outcome);
|
|
5795
|
+
}
|
|
5796
|
+
if (message.EventSequenceId !== "") {
|
|
5797
|
+
obj.EventSequenceId = message.EventSequenceId;
|
|
5798
|
+
}
|
|
5799
|
+
if (message.FirstSequenceNumber !== 0n) {
|
|
5800
|
+
obj.FirstSequenceNumber = message.FirstSequenceNumber.toString();
|
|
5801
|
+
}
|
|
5802
|
+
if (message.LastSequenceNumber !== 0n) {
|
|
5803
|
+
obj.LastSequenceNumber = message.LastSequenceNumber.toString();
|
|
5804
|
+
}
|
|
5805
|
+
if (message.Reasons?.length) {
|
|
5806
|
+
obj.Reasons = message.Reasons;
|
|
5807
|
+
}
|
|
5808
|
+
if (message.Response !== "") {
|
|
5809
|
+
obj.Response = message.Response;
|
|
5810
|
+
}
|
|
5811
|
+
if (message.RecordedAt !== undefined) {
|
|
5812
|
+
obj.RecordedAt = SerializableDateTimeOffset.toJSON(message.RecordedAt);
|
|
5813
|
+
}
|
|
5814
|
+
return obj;
|
|
5815
|
+
},
|
|
5816
|
+
create(base) {
|
|
5817
|
+
return EffectReceiptDetails.fromPartial(base ?? {});
|
|
5818
|
+
},
|
|
5819
|
+
fromPartial(object) {
|
|
5820
|
+
const message = createBaseEffectReceiptDetails();
|
|
5821
|
+
message.Id = object.Id ?? "";
|
|
5822
|
+
message.OccurrenceId = object.OccurrenceId ?? "";
|
|
5823
|
+
message.Epoch = (object.Epoch !== undefined && object.Epoch !== null) ? BigInt(object.Epoch) : 0n;
|
|
5824
|
+
message.Outcome = object.Outcome ?? 0;
|
|
5825
|
+
message.EventSequenceId = object.EventSequenceId ?? "";
|
|
5826
|
+
message.FirstSequenceNumber = (object.FirstSequenceNumber !== undefined && object.FirstSequenceNumber !== null)
|
|
5827
|
+
? BigInt(object.FirstSequenceNumber)
|
|
5828
|
+
: 0n;
|
|
5829
|
+
message.LastSequenceNumber = (object.LastSequenceNumber !== undefined && object.LastSequenceNumber !== null)
|
|
5830
|
+
? BigInt(object.LastSequenceNumber)
|
|
5831
|
+
: 0n;
|
|
5832
|
+
message.Reasons = object.Reasons?.map((e) => e) || [];
|
|
5833
|
+
message.Response = object.Response ?? "";
|
|
5834
|
+
message.RecordedAt = (object.RecordedAt !== undefined && object.RecordedAt !== null)
|
|
5835
|
+
? SerializableDateTimeOffset.fromPartial(object.RecordedAt)
|
|
5836
|
+
: undefined;
|
|
5837
|
+
return message;
|
|
5838
|
+
},
|
|
5839
|
+
};
|
|
5265
5840
|
function createBaseEndOfRequest() {
|
|
5266
5841
|
return { Start: undefined, Resolution: 0 };
|
|
5267
5842
|
}
|