@cratis/chronicle.contracts 19.174.0 → 19.175.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/sequences.d.ts +9 -1
- package/dist/cjs/generated/sequences.d.ts.map +1 -1
- package/dist/cjs/generated/sequences.js +136 -0
- package/dist/cjs/generated/sequences.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/sequences.d.ts +9 -1
- package/dist/esm/generated/sequences.d.ts.map +1 -1
- package/dist/esm/generated/sequences.js +137 -1
- package/dist/esm/generated/sequences.js.map +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/sequences.d.ts +9 -1
- package/dist/generated/sequences.d.ts.map +1 -1
- package/dist/generated/sequences.js +137 -1
- package/dist/generated/sequences.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/sequences.ts +153 -1
- package/package.json +1 -1
package/generated/sequences.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
9
9
|
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
10
|
-
import { Guid } from "./protobuf-net/bcl";
|
|
10
|
+
import { Guid, TimeSpan } from "./protobuf-net/bcl";
|
|
11
11
|
|
|
12
12
|
export const protobufPackage = "Cratis.Chronicle.Contracts.Sequences";
|
|
13
13
|
|
|
@@ -637,6 +637,8 @@ export interface AppendManyOnceResponse {
|
|
|
637
637
|
Errors: string[];
|
|
638
638
|
ConcurrencyViolations: ConcurrencyViolation[];
|
|
639
639
|
IdempotencyConflicts: IdempotencyKeyConflict[];
|
|
640
|
+
IsRetryable: boolean;
|
|
641
|
+
RetryAfter: TimeSpan | undefined;
|
|
640
642
|
}
|
|
641
643
|
|
|
642
644
|
export interface AppendManyOnceWithNamedTagsRequest {
|
|
@@ -680,6 +682,8 @@ export interface AppendManyResponse {
|
|
|
680
682
|
ConcurrencyViolations: ConcurrencyViolation[];
|
|
681
683
|
EffectReceipt: EffectReceiptDetails | undefined;
|
|
682
684
|
EffectAlreadyRecorded: boolean;
|
|
685
|
+
IsRetryable: boolean;
|
|
686
|
+
RetryAfter: TimeSpan | undefined;
|
|
683
687
|
}
|
|
684
688
|
|
|
685
689
|
export interface AppendManyWithNamedTagsRequest {
|
|
@@ -732,6 +736,8 @@ export interface AppendOnceResponse {
|
|
|
732
736
|
Errors: string[];
|
|
733
737
|
ConcurrencyViolation: ConcurrencyViolation | undefined;
|
|
734
738
|
IdempotencyConflicts: IdempotencyKeyConflict[];
|
|
739
|
+
IsRetryable: boolean;
|
|
740
|
+
RetryAfter: TimeSpan | undefined;
|
|
735
741
|
}
|
|
736
742
|
|
|
737
743
|
export interface AppendOnceWithNamedTagsRequest {
|
|
@@ -791,6 +797,8 @@ export interface AppendResponse {
|
|
|
791
797
|
ConcurrencyViolation: ConcurrencyViolation | undefined;
|
|
792
798
|
EffectReceipt: EffectReceiptDetails | undefined;
|
|
793
799
|
EffectAlreadyRecorded: boolean;
|
|
800
|
+
IsRetryable: boolean;
|
|
801
|
+
RetryAfter: TimeSpan | undefined;
|
|
794
802
|
}
|
|
795
803
|
|
|
796
804
|
export interface AppendWithNamedTagsRequest {
|
|
@@ -2420,6 +2428,8 @@ function createBaseAppendManyOnceResponse(): AppendManyOnceResponse {
|
|
|
2420
2428
|
Errors: [],
|
|
2421
2429
|
ConcurrencyViolations: [],
|
|
2422
2430
|
IdempotencyConflicts: [],
|
|
2431
|
+
IsRetryable: false,
|
|
2432
|
+
RetryAfter: undefined,
|
|
2423
2433
|
};
|
|
2424
2434
|
}
|
|
2425
2435
|
|
|
@@ -2464,6 +2474,12 @@ export const AppendManyOnceResponse: MessageFns<AppendManyOnceResponse> = {
|
|
|
2464
2474
|
for (const v of message.IdempotencyConflicts) {
|
|
2465
2475
|
IdempotencyKeyConflict.encode(v!, writer.uint32(98).fork()).join();
|
|
2466
2476
|
}
|
|
2477
|
+
if (message.IsRetryable !== false) {
|
|
2478
|
+
writer.uint32(104).bool(message.IsRetryable);
|
|
2479
|
+
}
|
|
2480
|
+
if (message.RetryAfter !== undefined) {
|
|
2481
|
+
TimeSpan.encode(message.RetryAfter, writer.uint32(114).fork()).join();
|
|
2482
|
+
}
|
|
2467
2483
|
return writer;
|
|
2468
2484
|
},
|
|
2469
2485
|
|
|
@@ -2596,6 +2612,22 @@ export const AppendManyOnceResponse: MessageFns<AppendManyOnceResponse> = {
|
|
|
2596
2612
|
message.IdempotencyConflicts.push(IdempotencyKeyConflict.decode(reader, reader.uint32()));
|
|
2597
2613
|
continue;
|
|
2598
2614
|
}
|
|
2615
|
+
case 13: {
|
|
2616
|
+
if (tag !== 104) {
|
|
2617
|
+
break;
|
|
2618
|
+
}
|
|
2619
|
+
|
|
2620
|
+
message.IsRetryable = reader.bool();
|
|
2621
|
+
continue;
|
|
2622
|
+
}
|
|
2623
|
+
case 14: {
|
|
2624
|
+
if (tag !== 114) {
|
|
2625
|
+
break;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
message.RetryAfter = TimeSpan.decode(reader, reader.uint32());
|
|
2629
|
+
continue;
|
|
2630
|
+
}
|
|
2599
2631
|
}
|
|
2600
2632
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2601
2633
|
break;
|
|
@@ -2640,6 +2672,8 @@ export const AppendManyOnceResponse: MessageFns<AppendManyOnceResponse> = {
|
|
|
2640
2672
|
IdempotencyConflicts: globalThis.Array.isArray(object?.IdempotencyConflicts)
|
|
2641
2673
|
? object.IdempotencyConflicts.map((e: any) => IdempotencyKeyConflict.fromJSON(e))
|
|
2642
2674
|
: [],
|
|
2675
|
+
IsRetryable: isSet(object.IsRetryable) ? globalThis.Boolean(object.IsRetryable) : false,
|
|
2676
|
+
RetryAfter: isSet(object.RetryAfter) ? TimeSpan.fromJSON(object.RetryAfter) : undefined,
|
|
2643
2677
|
};
|
|
2644
2678
|
},
|
|
2645
2679
|
|
|
@@ -2681,6 +2715,12 @@ export const AppendManyOnceResponse: MessageFns<AppendManyOnceResponse> = {
|
|
|
2681
2715
|
if (message.IdempotencyConflicts?.length) {
|
|
2682
2716
|
obj.IdempotencyConflicts = message.IdempotencyConflicts.map((e) => IdempotencyKeyConflict.toJSON(e));
|
|
2683
2717
|
}
|
|
2718
|
+
if (message.IsRetryable !== false) {
|
|
2719
|
+
obj.IsRetryable = message.IsRetryable;
|
|
2720
|
+
}
|
|
2721
|
+
if (message.RetryAfter !== undefined) {
|
|
2722
|
+
obj.RetryAfter = TimeSpan.toJSON(message.RetryAfter);
|
|
2723
|
+
}
|
|
2684
2724
|
return obj;
|
|
2685
2725
|
},
|
|
2686
2726
|
|
|
@@ -2703,6 +2743,10 @@ export const AppendManyOnceResponse: MessageFns<AppendManyOnceResponse> = {
|
|
|
2703
2743
|
message.Errors = object.Errors?.map((e) => e) || [];
|
|
2704
2744
|
message.ConcurrencyViolations = object.ConcurrencyViolations?.map((e) => ConcurrencyViolation.fromPartial(e)) || [];
|
|
2705
2745
|
message.IdempotencyConflicts = object.IdempotencyConflicts?.map((e) => IdempotencyKeyConflict.fromPartial(e)) || [];
|
|
2746
|
+
message.IsRetryable = object.IsRetryable ?? false;
|
|
2747
|
+
message.RetryAfter = (object.RetryAfter !== undefined && object.RetryAfter !== null)
|
|
2748
|
+
? TimeSpan.fromPartial(object.RetryAfter)
|
|
2749
|
+
: undefined;
|
|
2706
2750
|
return message;
|
|
2707
2751
|
},
|
|
2708
2752
|
};
|
|
@@ -3208,6 +3252,8 @@ function createBaseAppendManyResponse(): AppendManyResponse {
|
|
|
3208
3252
|
ConcurrencyViolations: [],
|
|
3209
3253
|
EffectReceipt: undefined,
|
|
3210
3254
|
EffectAlreadyRecorded: false,
|
|
3255
|
+
IsRetryable: false,
|
|
3256
|
+
RetryAfter: undefined,
|
|
3211
3257
|
};
|
|
3212
3258
|
}
|
|
3213
3259
|
|
|
@@ -3252,6 +3298,12 @@ export const AppendManyResponse: MessageFns<AppendManyResponse> = {
|
|
|
3252
3298
|
if (message.EffectAlreadyRecorded !== false) {
|
|
3253
3299
|
writer.uint32(96).bool(message.EffectAlreadyRecorded);
|
|
3254
3300
|
}
|
|
3301
|
+
if (message.IsRetryable !== false) {
|
|
3302
|
+
writer.uint32(104).bool(message.IsRetryable);
|
|
3303
|
+
}
|
|
3304
|
+
if (message.RetryAfter !== undefined) {
|
|
3305
|
+
TimeSpan.encode(message.RetryAfter, writer.uint32(114).fork()).join();
|
|
3306
|
+
}
|
|
3255
3307
|
return writer;
|
|
3256
3308
|
},
|
|
3257
3309
|
|
|
@@ -3374,6 +3426,22 @@ export const AppendManyResponse: MessageFns<AppendManyResponse> = {
|
|
|
3374
3426
|
message.EffectAlreadyRecorded = reader.bool();
|
|
3375
3427
|
continue;
|
|
3376
3428
|
}
|
|
3429
|
+
case 13: {
|
|
3430
|
+
if (tag !== 104) {
|
|
3431
|
+
break;
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
message.IsRetryable = reader.bool();
|
|
3435
|
+
continue;
|
|
3436
|
+
}
|
|
3437
|
+
case 14: {
|
|
3438
|
+
if (tag !== 114) {
|
|
3439
|
+
break;
|
|
3440
|
+
}
|
|
3441
|
+
|
|
3442
|
+
message.RetryAfter = TimeSpan.decode(reader, reader.uint32());
|
|
3443
|
+
continue;
|
|
3444
|
+
}
|
|
3377
3445
|
}
|
|
3378
3446
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3379
3447
|
break;
|
|
@@ -3414,6 +3482,8 @@ export const AppendManyResponse: MessageFns<AppendManyResponse> = {
|
|
|
3414
3482
|
EffectAlreadyRecorded: isSet(object.EffectAlreadyRecorded)
|
|
3415
3483
|
? globalThis.Boolean(object.EffectAlreadyRecorded)
|
|
3416
3484
|
: false,
|
|
3485
|
+
IsRetryable: isSet(object.IsRetryable) ? globalThis.Boolean(object.IsRetryable) : false,
|
|
3486
|
+
RetryAfter: isSet(object.RetryAfter) ? TimeSpan.fromJSON(object.RetryAfter) : undefined,
|
|
3417
3487
|
};
|
|
3418
3488
|
},
|
|
3419
3489
|
|
|
@@ -3455,6 +3525,12 @@ export const AppendManyResponse: MessageFns<AppendManyResponse> = {
|
|
|
3455
3525
|
if (message.EffectAlreadyRecorded !== false) {
|
|
3456
3526
|
obj.EffectAlreadyRecorded = message.EffectAlreadyRecorded;
|
|
3457
3527
|
}
|
|
3528
|
+
if (message.IsRetryable !== false) {
|
|
3529
|
+
obj.IsRetryable = message.IsRetryable;
|
|
3530
|
+
}
|
|
3531
|
+
if (message.RetryAfter !== undefined) {
|
|
3532
|
+
obj.RetryAfter = TimeSpan.toJSON(message.RetryAfter);
|
|
3533
|
+
}
|
|
3458
3534
|
return obj;
|
|
3459
3535
|
},
|
|
3460
3536
|
|
|
@@ -3479,6 +3555,10 @@ export const AppendManyResponse: MessageFns<AppendManyResponse> = {
|
|
|
3479
3555
|
? EffectReceiptDetails.fromPartial(object.EffectReceipt)
|
|
3480
3556
|
: undefined;
|
|
3481
3557
|
message.EffectAlreadyRecorded = object.EffectAlreadyRecorded ?? false;
|
|
3558
|
+
message.IsRetryable = object.IsRetryable ?? false;
|
|
3559
|
+
message.RetryAfter = (object.RetryAfter !== undefined && object.RetryAfter !== null)
|
|
3560
|
+
? TimeSpan.fromPartial(object.RetryAfter)
|
|
3561
|
+
: undefined;
|
|
3482
3562
|
return message;
|
|
3483
3563
|
},
|
|
3484
3564
|
};
|
|
@@ -4141,6 +4221,8 @@ function createBaseAppendOnceResponse(): AppendOnceResponse {
|
|
|
4141
4221
|
Errors: [],
|
|
4142
4222
|
ConcurrencyViolation: undefined,
|
|
4143
4223
|
IdempotencyConflicts: [],
|
|
4224
|
+
IsRetryable: false,
|
|
4225
|
+
RetryAfter: undefined,
|
|
4144
4226
|
};
|
|
4145
4227
|
}
|
|
4146
4228
|
|
|
@@ -4185,6 +4267,12 @@ export const AppendOnceResponse: MessageFns<AppendOnceResponse> = {
|
|
|
4185
4267
|
for (const v of message.IdempotencyConflicts) {
|
|
4186
4268
|
IdempotencyKeyConflict.encode(v!, writer.uint32(98).fork()).join();
|
|
4187
4269
|
}
|
|
4270
|
+
if (message.IsRetryable !== false) {
|
|
4271
|
+
writer.uint32(104).bool(message.IsRetryable);
|
|
4272
|
+
}
|
|
4273
|
+
if (message.RetryAfter !== undefined) {
|
|
4274
|
+
TimeSpan.encode(message.RetryAfter, writer.uint32(114).fork()).join();
|
|
4275
|
+
}
|
|
4188
4276
|
return writer;
|
|
4189
4277
|
},
|
|
4190
4278
|
|
|
@@ -4297,6 +4385,22 @@ export const AppendOnceResponse: MessageFns<AppendOnceResponse> = {
|
|
|
4297
4385
|
message.IdempotencyConflicts.push(IdempotencyKeyConflict.decode(reader, reader.uint32()));
|
|
4298
4386
|
continue;
|
|
4299
4387
|
}
|
|
4388
|
+
case 13: {
|
|
4389
|
+
if (tag !== 104) {
|
|
4390
|
+
break;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
message.IsRetryable = reader.bool();
|
|
4394
|
+
continue;
|
|
4395
|
+
}
|
|
4396
|
+
case 14: {
|
|
4397
|
+
if (tag !== 114) {
|
|
4398
|
+
break;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
message.RetryAfter = TimeSpan.decode(reader, reader.uint32());
|
|
4402
|
+
continue;
|
|
4403
|
+
}
|
|
4300
4404
|
}
|
|
4301
4405
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4302
4406
|
break;
|
|
@@ -4337,6 +4441,8 @@ export const AppendOnceResponse: MessageFns<AppendOnceResponse> = {
|
|
|
4337
4441
|
IdempotencyConflicts: globalThis.Array.isArray(object?.IdempotencyConflicts)
|
|
4338
4442
|
? object.IdempotencyConflicts.map((e: any) => IdempotencyKeyConflict.fromJSON(e))
|
|
4339
4443
|
: [],
|
|
4444
|
+
IsRetryable: isSet(object.IsRetryable) ? globalThis.Boolean(object.IsRetryable) : false,
|
|
4445
|
+
RetryAfter: isSet(object.RetryAfter) ? TimeSpan.fromJSON(object.RetryAfter) : undefined,
|
|
4340
4446
|
};
|
|
4341
4447
|
},
|
|
4342
4448
|
|
|
@@ -4378,6 +4484,12 @@ export const AppendOnceResponse: MessageFns<AppendOnceResponse> = {
|
|
|
4378
4484
|
if (message.IdempotencyConflicts?.length) {
|
|
4379
4485
|
obj.IdempotencyConflicts = message.IdempotencyConflicts.map((e) => IdempotencyKeyConflict.toJSON(e));
|
|
4380
4486
|
}
|
|
4487
|
+
if (message.IsRetryable !== false) {
|
|
4488
|
+
obj.IsRetryable = message.IsRetryable;
|
|
4489
|
+
}
|
|
4490
|
+
if (message.RetryAfter !== undefined) {
|
|
4491
|
+
obj.RetryAfter = TimeSpan.toJSON(message.RetryAfter);
|
|
4492
|
+
}
|
|
4381
4493
|
return obj;
|
|
4382
4494
|
},
|
|
4383
4495
|
|
|
@@ -4404,6 +4516,10 @@ export const AppendOnceResponse: MessageFns<AppendOnceResponse> = {
|
|
|
4404
4516
|
? ConcurrencyViolation.fromPartial(object.ConcurrencyViolation)
|
|
4405
4517
|
: undefined;
|
|
4406
4518
|
message.IdempotencyConflicts = object.IdempotencyConflicts?.map((e) => IdempotencyKeyConflict.fromPartial(e)) || [];
|
|
4519
|
+
message.IsRetryable = object.IsRetryable ?? false;
|
|
4520
|
+
message.RetryAfter = (object.RetryAfter !== undefined && object.RetryAfter !== null)
|
|
4521
|
+
? TimeSpan.fromPartial(object.RetryAfter)
|
|
4522
|
+
: undefined;
|
|
4407
4523
|
return message;
|
|
4408
4524
|
},
|
|
4409
4525
|
};
|
|
@@ -5187,6 +5303,8 @@ function createBaseAppendResponse(): AppendResponse {
|
|
|
5187
5303
|
ConcurrencyViolation: undefined,
|
|
5188
5304
|
EffectReceipt: undefined,
|
|
5189
5305
|
EffectAlreadyRecorded: false,
|
|
5306
|
+
IsRetryable: false,
|
|
5307
|
+
RetryAfter: undefined,
|
|
5190
5308
|
};
|
|
5191
5309
|
}
|
|
5192
5310
|
|
|
@@ -5231,6 +5349,12 @@ export const AppendResponse: MessageFns<AppendResponse> = {
|
|
|
5231
5349
|
if (message.EffectAlreadyRecorded !== false) {
|
|
5232
5350
|
writer.uint32(96).bool(message.EffectAlreadyRecorded);
|
|
5233
5351
|
}
|
|
5352
|
+
if (message.IsRetryable !== false) {
|
|
5353
|
+
writer.uint32(104).bool(message.IsRetryable);
|
|
5354
|
+
}
|
|
5355
|
+
if (message.RetryAfter !== undefined) {
|
|
5356
|
+
TimeSpan.encode(message.RetryAfter, writer.uint32(114).fork()).join();
|
|
5357
|
+
}
|
|
5234
5358
|
return writer;
|
|
5235
5359
|
},
|
|
5236
5360
|
|
|
@@ -5343,6 +5467,22 @@ export const AppendResponse: MessageFns<AppendResponse> = {
|
|
|
5343
5467
|
message.EffectAlreadyRecorded = reader.bool();
|
|
5344
5468
|
continue;
|
|
5345
5469
|
}
|
|
5470
|
+
case 13: {
|
|
5471
|
+
if (tag !== 104) {
|
|
5472
|
+
break;
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
message.IsRetryable = reader.bool();
|
|
5476
|
+
continue;
|
|
5477
|
+
}
|
|
5478
|
+
case 14: {
|
|
5479
|
+
if (tag !== 114) {
|
|
5480
|
+
break;
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
message.RetryAfter = TimeSpan.decode(reader, reader.uint32());
|
|
5484
|
+
continue;
|
|
5485
|
+
}
|
|
5346
5486
|
}
|
|
5347
5487
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5348
5488
|
break;
|
|
@@ -5383,6 +5523,8 @@ export const AppendResponse: MessageFns<AppendResponse> = {
|
|
|
5383
5523
|
EffectAlreadyRecorded: isSet(object.EffectAlreadyRecorded)
|
|
5384
5524
|
? globalThis.Boolean(object.EffectAlreadyRecorded)
|
|
5385
5525
|
: false,
|
|
5526
|
+
IsRetryable: isSet(object.IsRetryable) ? globalThis.Boolean(object.IsRetryable) : false,
|
|
5527
|
+
RetryAfter: isSet(object.RetryAfter) ? TimeSpan.fromJSON(object.RetryAfter) : undefined,
|
|
5386
5528
|
};
|
|
5387
5529
|
},
|
|
5388
5530
|
|
|
@@ -5424,6 +5566,12 @@ export const AppendResponse: MessageFns<AppendResponse> = {
|
|
|
5424
5566
|
if (message.EffectAlreadyRecorded !== false) {
|
|
5425
5567
|
obj.EffectAlreadyRecorded = message.EffectAlreadyRecorded;
|
|
5426
5568
|
}
|
|
5569
|
+
if (message.IsRetryable !== false) {
|
|
5570
|
+
obj.IsRetryable = message.IsRetryable;
|
|
5571
|
+
}
|
|
5572
|
+
if (message.RetryAfter !== undefined) {
|
|
5573
|
+
obj.RetryAfter = TimeSpan.toJSON(message.RetryAfter);
|
|
5574
|
+
}
|
|
5427
5575
|
return obj;
|
|
5428
5576
|
},
|
|
5429
5577
|
|
|
@@ -5452,6 +5600,10 @@ export const AppendResponse: MessageFns<AppendResponse> = {
|
|
|
5452
5600
|
? EffectReceiptDetails.fromPartial(object.EffectReceipt)
|
|
5453
5601
|
: undefined;
|
|
5454
5602
|
message.EffectAlreadyRecorded = object.EffectAlreadyRecorded ?? false;
|
|
5603
|
+
message.IsRetryable = object.IsRetryable ?? false;
|
|
5604
|
+
message.RetryAfter = (object.RetryAfter !== undefined && object.RetryAfter !== null)
|
|
5605
|
+
? TimeSpan.fromPartial(object.RetryAfter)
|
|
5606
|
+
: undefined;
|
|
5455
5607
|
return message;
|
|
5456
5608
|
},
|
|
5457
5609
|
};
|
package/package.json
CHANGED