@cratis/chronicle.contracts 19.76.1 → 19.77.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 +1 -1
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/occurrences.d.ts +33 -0
- package/dist/cjs/generated/occurrences.d.ts.map +1 -1
- package/dist/cjs/generated/occurrences.js +385 -0
- package/dist/cjs/generated/occurrences.js.map +1 -1
- package/dist/cjs/index.js +3 -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 +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/occurrences.d.ts +33 -0
- package/dist/esm/generated/occurrences.d.ts.map +1 -1
- package/dist/esm/generated/occurrences.js +383 -1
- package/dist/esm/generated/occurrences.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/occurrences.d.ts +33 -0
- package/dist/generated/occurrences.d.ts.map +1 -1
- package/dist/generated/occurrences.js +382 -0
- package/dist/generated/occurrences.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +1 -1
- package/generated/occurrences.ts +453 -0
- package/package.json +1 -1
package/generated/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type { ReducersClient, ReducersServiceImplementation } from './observatio
|
|
|
60
60
|
export { AddWebhookRequest, AddWebhookRequest_HeadersEntry, AddWebhooksRequest, GetWebhooksRequest, ObserveWebhooksRequest, QueryResultIEnumerableWebhookDetailsResponse, RemoveWebhookRequest, RemoveWebhooksRequest, WebhookDefinition, WebhookDetailsResponse, WebhookDetailsResponse_HeadersEntry, WebhooksDefinition, WebhookTarget, WebhookTarget_HeadersEntry } from './observation_webhooks';
|
|
61
61
|
export type { WebhooksClient, WebhooksServiceImplementation } from './observation_webhooks';
|
|
62
62
|
|
|
63
|
-
export { ClaimOccurrencesRequest, ClaimOccurrencesResponse, CommandResultBoolean, CommandResultClaimOccurrencesResponse, CommandResultCompleteOccurrenceResponse, CommandResultRecordEffectReceiptResponse, CommandResultRecordOccurrenceResponse, CommandResultRegisterTriggersResponse, CompleteOccurrenceRequest, CompleteOccurrenceResponse, EffectOutcome, effectOutcomeFromJSON, effectOutcomeToJSON, EffectReceipt, EffectReceiptDetails, EffectReceiptRecordResponse, EffectReceiptStatus, effectReceiptStatusFromJSON, effectReceiptStatusToJSON, FailOccurrenceRequest, GetEffectReceiptRequest, GetOccurrenceRequest, ObserveOccurrencesRequest, OccurrenceClaimDetails, OccurrenceEffectReceipt, OccurrenceIngressStatus, occurrenceIngressStatusFromJSON, occurrenceIngressStatusToJSON, OccurrenceKind, occurrenceKindFromJSON, occurrenceKindToJSON, OccurrenceLeaseResult, occurrenceLeaseResultFromJSON, occurrenceLeaseResultToJSON, OccurrencesDefinition, OccurrenceSnapshotResponse, OccurrenceState, occurrenceStateFromJSON, occurrenceStateToJSON, QueryResultEffectReceiptRecordResponse, QueryResultIEnumerableOccurrenceSnapshotResponse, QueryResultOccurrenceSnapshotResponse, RecordEffectReceiptRequest, RecordEffectReceiptResponse, RecordOccurrenceRequest, RecordOccurrenceResponse, RegisterTriggersRequest, RegisterTriggersResponse, RenewOccurrenceLeaseRequest, RetryQuarantinedOccurrenceRequest, TriggerRegistration } from './occurrences';
|
|
63
|
+
export { ClaimOccurrencesRequest, ClaimOccurrencesResponse, CommandResultBoolean, CommandResultClaimOccurrencesResponse, CommandResultCompleteOccurrenceResponse, CommandResultRecordEffectReceiptResponse, CommandResultRecordLifecycleOccurrenceResponse, CommandResultRecordOccurrenceResponse, CommandResultRegisterTriggersResponse, CompleteOccurrenceRequest, CompleteOccurrenceResponse, EffectOutcome, effectOutcomeFromJSON, effectOutcomeToJSON, EffectReceipt, EffectReceiptDetails, EffectReceiptRecordResponse, EffectReceiptStatus, effectReceiptStatusFromJSON, effectReceiptStatusToJSON, FailOccurrenceRequest, GetEffectReceiptRequest, GetOccurrenceRequest, ObserveOccurrencesRequest, OccurrenceClaimDetails, OccurrenceEffectReceipt, OccurrenceIngressStatus, occurrenceIngressStatusFromJSON, occurrenceIngressStatusToJSON, OccurrenceKind, occurrenceKindFromJSON, occurrenceKindToJSON, OccurrenceLeaseResult, occurrenceLeaseResultFromJSON, occurrenceLeaseResultToJSON, OccurrencesDefinition, OccurrenceSnapshotResponse, OccurrenceState, occurrenceStateFromJSON, occurrenceStateToJSON, QueryResultEffectReceiptRecordResponse, QueryResultIEnumerableOccurrenceSnapshotResponse, QueryResultOccurrenceSnapshotResponse, RecordEffectReceiptRequest, RecordEffectReceiptResponse, RecordLifecycleOccurrenceRequest, RecordLifecycleOccurrenceResponse, RecordOccurrenceRequest, RecordOccurrenceResponse, RegisterTriggersRequest, RegisterTriggersResponse, RenewOccurrenceLeaseRequest, RetryQuarantinedOccurrenceRequest, TriggerRegistration } from './occurrences';
|
|
64
64
|
export type { OccurrencesClient, OccurrencesServiceImplementation } from './occurrences';
|
|
65
65
|
|
|
66
66
|
export { AllPatternScopesRequest, AllPatternsRequest, BehaviorPatternDetailsResponse, BehaviorPatternDetailsResponse_FacetsEntry, MatchingPatternsRequest, MatchingPatternsRequest_ContextEntry, PatternScopeResponse, PatternsDefinition, PatternsForScopeRequest, QueryResultIEnumerableBehaviorPatternDetailsResponse, QueryResultIEnumerablePatternScopeResponse, UsualActionsRequest, UsualActionsRequest_ContextEntry } from './patterns';
|
package/generated/occurrences.ts
CHANGED
|
@@ -366,6 +366,17 @@ export interface CommandResultRecordEffectReceiptResponse {
|
|
|
366
366
|
Response: RecordEffectReceiptResponse | undefined;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
+
export interface CommandResultRecordLifecycleOccurrenceResponse {
|
|
370
|
+
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
371
|
+
CorrelationId: Guid | undefined;
|
|
372
|
+
IsAuthorized: boolean;
|
|
373
|
+
ValidationResults: ValidationResult[];
|
|
374
|
+
ExceptionMessages: string[];
|
|
375
|
+
ExceptionStackTrace: string;
|
|
376
|
+
AuthorizationFailureReason: string;
|
|
377
|
+
Response: RecordLifecycleOccurrenceResponse | undefined;
|
|
378
|
+
}
|
|
379
|
+
|
|
369
380
|
export interface CommandResultRecordOccurrenceResponse {
|
|
370
381
|
/** default value could not be applied: 00000000-0000-0000-0000-000000000000 */
|
|
371
382
|
CorrelationId: Guid | undefined;
|
|
@@ -546,6 +557,19 @@ export interface RecordEffectReceiptResponse {
|
|
|
546
557
|
Receipt: EffectReceiptDetails | undefined;
|
|
547
558
|
}
|
|
548
559
|
|
|
560
|
+
export interface RecordLifecycleOccurrenceRequest {
|
|
561
|
+
EventStore: string;
|
|
562
|
+
ActivationId: string;
|
|
563
|
+
Kind: OccurrenceKind;
|
|
564
|
+
AllNamespaces: boolean;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export interface RecordLifecycleOccurrenceResponse {
|
|
568
|
+
Id: string;
|
|
569
|
+
Status: OccurrenceIngressStatus;
|
|
570
|
+
Namespaces: string[];
|
|
571
|
+
}
|
|
572
|
+
|
|
549
573
|
export interface RecordOccurrenceRequest {
|
|
550
574
|
EventStore: string;
|
|
551
575
|
Namespace: string;
|
|
@@ -1573,6 +1597,198 @@ export const CommandResultRecordEffectReceiptResponse: MessageFns<CommandResultR
|
|
|
1573
1597
|
},
|
|
1574
1598
|
};
|
|
1575
1599
|
|
|
1600
|
+
function createBaseCommandResultRecordLifecycleOccurrenceResponse(): CommandResultRecordLifecycleOccurrenceResponse {
|
|
1601
|
+
return {
|
|
1602
|
+
CorrelationId: undefined,
|
|
1603
|
+
IsAuthorized: false,
|
|
1604
|
+
ValidationResults: [],
|
|
1605
|
+
ExceptionMessages: [],
|
|
1606
|
+
ExceptionStackTrace: "",
|
|
1607
|
+
AuthorizationFailureReason: "",
|
|
1608
|
+
Response: undefined,
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
export const CommandResultRecordLifecycleOccurrenceResponse: MessageFns<
|
|
1613
|
+
CommandResultRecordLifecycleOccurrenceResponse
|
|
1614
|
+
> = {
|
|
1615
|
+
encode(
|
|
1616
|
+
message: CommandResultRecordLifecycleOccurrenceResponse,
|
|
1617
|
+
writer: BinaryWriter = new BinaryWriter(),
|
|
1618
|
+
): BinaryWriter {
|
|
1619
|
+
if (message.CorrelationId !== undefined) {
|
|
1620
|
+
Guid.encode(message.CorrelationId, writer.uint32(10).fork()).join();
|
|
1621
|
+
}
|
|
1622
|
+
if (message.IsAuthorized !== false) {
|
|
1623
|
+
writer.uint32(16).bool(message.IsAuthorized);
|
|
1624
|
+
}
|
|
1625
|
+
for (const v of message.ValidationResults) {
|
|
1626
|
+
ValidationResult.encode(v!, writer.uint32(26).fork()).join();
|
|
1627
|
+
}
|
|
1628
|
+
for (const v of message.ExceptionMessages) {
|
|
1629
|
+
writer.uint32(34).string(v!);
|
|
1630
|
+
}
|
|
1631
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1632
|
+
writer.uint32(42).string(message.ExceptionStackTrace);
|
|
1633
|
+
}
|
|
1634
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
1635
|
+
writer.uint32(50).string(message.AuthorizationFailureReason);
|
|
1636
|
+
}
|
|
1637
|
+
if (message.Response !== undefined) {
|
|
1638
|
+
RecordLifecycleOccurrenceResponse.encode(message.Response, writer.uint32(58).fork()).join();
|
|
1639
|
+
}
|
|
1640
|
+
return writer;
|
|
1641
|
+
},
|
|
1642
|
+
|
|
1643
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CommandResultRecordLifecycleOccurrenceResponse {
|
|
1644
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1645
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1646
|
+
if (previousRecursionDepth >= 100) {
|
|
1647
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1648
|
+
}
|
|
1649
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1650
|
+
try {
|
|
1651
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1652
|
+
const message = createBaseCommandResultRecordLifecycleOccurrenceResponse();
|
|
1653
|
+
while (reader.pos < end) {
|
|
1654
|
+
const tag = reader.uint32();
|
|
1655
|
+
switch (tag >>> 3) {
|
|
1656
|
+
case 1: {
|
|
1657
|
+
if (tag !== 10) {
|
|
1658
|
+
break;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
message.CorrelationId = Guid.decode(reader, reader.uint32());
|
|
1662
|
+
continue;
|
|
1663
|
+
}
|
|
1664
|
+
case 2: {
|
|
1665
|
+
if (tag !== 16) {
|
|
1666
|
+
break;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
message.IsAuthorized = reader.bool();
|
|
1670
|
+
continue;
|
|
1671
|
+
}
|
|
1672
|
+
case 3: {
|
|
1673
|
+
if (tag !== 26) {
|
|
1674
|
+
break;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
message.ValidationResults.push(ValidationResult.decode(reader, reader.uint32()));
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
case 4: {
|
|
1681
|
+
if (tag !== 34) {
|
|
1682
|
+
break;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
message.ExceptionMessages.push(reader.string());
|
|
1686
|
+
continue;
|
|
1687
|
+
}
|
|
1688
|
+
case 5: {
|
|
1689
|
+
if (tag !== 42) {
|
|
1690
|
+
break;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
message.ExceptionStackTrace = reader.string();
|
|
1694
|
+
continue;
|
|
1695
|
+
}
|
|
1696
|
+
case 6: {
|
|
1697
|
+
if (tag !== 50) {
|
|
1698
|
+
break;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
message.AuthorizationFailureReason = reader.string();
|
|
1702
|
+
continue;
|
|
1703
|
+
}
|
|
1704
|
+
case 7: {
|
|
1705
|
+
if (tag !== 58) {
|
|
1706
|
+
break;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
message.Response = RecordLifecycleOccurrenceResponse.decode(reader, reader.uint32());
|
|
1710
|
+
continue;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1714
|
+
break;
|
|
1715
|
+
}
|
|
1716
|
+
reader.skip(tag & 7);
|
|
1717
|
+
}
|
|
1718
|
+
return message;
|
|
1719
|
+
} finally {
|
|
1720
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1723
|
+
|
|
1724
|
+
fromJSON(object: any): CommandResultRecordLifecycleOccurrenceResponse {
|
|
1725
|
+
return {
|
|
1726
|
+
CorrelationId: isSet(object.CorrelationId) ? Guid.fromJSON(object.CorrelationId) : undefined,
|
|
1727
|
+
IsAuthorized: isSet(object.IsAuthorized) ? globalThis.Boolean(object.IsAuthorized) : false,
|
|
1728
|
+
ValidationResults: globalThis.Array.isArray(object?.ValidationResults)
|
|
1729
|
+
? object.ValidationResults.map((e: any) => ValidationResult.fromJSON(e))
|
|
1730
|
+
: [],
|
|
1731
|
+
ExceptionMessages: globalThis.Array.isArray(object?.ExceptionMessages)
|
|
1732
|
+
? object.ExceptionMessages.map((e: any) => globalThis.String(e))
|
|
1733
|
+
: [],
|
|
1734
|
+
ExceptionStackTrace: isSet(object.ExceptionStackTrace) ? globalThis.String(object.ExceptionStackTrace) : "",
|
|
1735
|
+
AuthorizationFailureReason: isSet(object.AuthorizationFailureReason)
|
|
1736
|
+
? globalThis.String(object.AuthorizationFailureReason)
|
|
1737
|
+
: "",
|
|
1738
|
+
Response: isSet(object.Response) ? RecordLifecycleOccurrenceResponse.fromJSON(object.Response) : undefined,
|
|
1739
|
+
};
|
|
1740
|
+
},
|
|
1741
|
+
|
|
1742
|
+
toJSON(message: CommandResultRecordLifecycleOccurrenceResponse): unknown {
|
|
1743
|
+
const obj: any = {};
|
|
1744
|
+
if (message.CorrelationId !== undefined) {
|
|
1745
|
+
obj.CorrelationId = Guid.toJSON(message.CorrelationId);
|
|
1746
|
+
}
|
|
1747
|
+
if (message.IsAuthorized !== false) {
|
|
1748
|
+
obj.IsAuthorized = message.IsAuthorized;
|
|
1749
|
+
}
|
|
1750
|
+
if (message.ValidationResults?.length) {
|
|
1751
|
+
obj.ValidationResults = message.ValidationResults.map((e) => ValidationResult.toJSON(e));
|
|
1752
|
+
}
|
|
1753
|
+
if (message.ExceptionMessages?.length) {
|
|
1754
|
+
obj.ExceptionMessages = message.ExceptionMessages;
|
|
1755
|
+
}
|
|
1756
|
+
if (message.ExceptionStackTrace !== "") {
|
|
1757
|
+
obj.ExceptionStackTrace = message.ExceptionStackTrace;
|
|
1758
|
+
}
|
|
1759
|
+
if (message.AuthorizationFailureReason !== "") {
|
|
1760
|
+
obj.AuthorizationFailureReason = message.AuthorizationFailureReason;
|
|
1761
|
+
}
|
|
1762
|
+
if (message.Response !== undefined) {
|
|
1763
|
+
obj.Response = RecordLifecycleOccurrenceResponse.toJSON(message.Response);
|
|
1764
|
+
}
|
|
1765
|
+
return obj;
|
|
1766
|
+
},
|
|
1767
|
+
|
|
1768
|
+
create(
|
|
1769
|
+
base?: DeepPartial<CommandResultRecordLifecycleOccurrenceResponse>,
|
|
1770
|
+
): CommandResultRecordLifecycleOccurrenceResponse {
|
|
1771
|
+
return CommandResultRecordLifecycleOccurrenceResponse.fromPartial(base ?? {});
|
|
1772
|
+
},
|
|
1773
|
+
fromPartial(
|
|
1774
|
+
object: DeepPartial<CommandResultRecordLifecycleOccurrenceResponse>,
|
|
1775
|
+
): CommandResultRecordLifecycleOccurrenceResponse {
|
|
1776
|
+
const message = createBaseCommandResultRecordLifecycleOccurrenceResponse();
|
|
1777
|
+
message.CorrelationId = (object.CorrelationId !== undefined && object.CorrelationId !== null)
|
|
1778
|
+
? Guid.fromPartial(object.CorrelationId)
|
|
1779
|
+
: undefined;
|
|
1780
|
+
message.IsAuthorized = object.IsAuthorized ?? false;
|
|
1781
|
+
message.ValidationResults = object.ValidationResults?.map((e) => ValidationResult.fromPartial(e)) || [];
|
|
1782
|
+
message.ExceptionMessages = object.ExceptionMessages?.map((e) => e) || [];
|
|
1783
|
+
message.ExceptionStackTrace = object.ExceptionStackTrace ?? "";
|
|
1784
|
+
message.AuthorizationFailureReason = object.AuthorizationFailureReason ?? "";
|
|
1785
|
+
message.Response = (object.Response !== undefined && object.Response !== null)
|
|
1786
|
+
? RecordLifecycleOccurrenceResponse.fromPartial(object.Response)
|
|
1787
|
+
: undefined;
|
|
1788
|
+
return message;
|
|
1789
|
+
},
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1576
1792
|
function createBaseCommandResultRecordOccurrenceResponse(): CommandResultRecordOccurrenceResponse {
|
|
1577
1793
|
return {
|
|
1578
1794
|
CorrelationId: undefined,
|
|
@@ -4694,6 +4910,226 @@ export const RecordEffectReceiptResponse: MessageFns<RecordEffectReceiptResponse
|
|
|
4694
4910
|
},
|
|
4695
4911
|
};
|
|
4696
4912
|
|
|
4913
|
+
function createBaseRecordLifecycleOccurrenceRequest(): RecordLifecycleOccurrenceRequest {
|
|
4914
|
+
return { EventStore: "", ActivationId: "", Kind: 0, AllNamespaces: false };
|
|
4915
|
+
}
|
|
4916
|
+
|
|
4917
|
+
export const RecordLifecycleOccurrenceRequest: MessageFns<RecordLifecycleOccurrenceRequest> = {
|
|
4918
|
+
encode(message: RecordLifecycleOccurrenceRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
4919
|
+
if (message.EventStore !== "") {
|
|
4920
|
+
writer.uint32(10).string(message.EventStore);
|
|
4921
|
+
}
|
|
4922
|
+
if (message.ActivationId !== "") {
|
|
4923
|
+
writer.uint32(18).string(message.ActivationId);
|
|
4924
|
+
}
|
|
4925
|
+
if (message.Kind !== 0) {
|
|
4926
|
+
writer.uint32(24).int32(message.Kind);
|
|
4927
|
+
}
|
|
4928
|
+
if (message.AllNamespaces !== false) {
|
|
4929
|
+
writer.uint32(32).bool(message.AllNamespaces);
|
|
4930
|
+
}
|
|
4931
|
+
return writer;
|
|
4932
|
+
},
|
|
4933
|
+
|
|
4934
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RecordLifecycleOccurrenceRequest {
|
|
4935
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4936
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
4937
|
+
if (previousRecursionDepth >= 100) {
|
|
4938
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4939
|
+
}
|
|
4940
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4941
|
+
try {
|
|
4942
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4943
|
+
const message = createBaseRecordLifecycleOccurrenceRequest();
|
|
4944
|
+
while (reader.pos < end) {
|
|
4945
|
+
const tag = reader.uint32();
|
|
4946
|
+
switch (tag >>> 3) {
|
|
4947
|
+
case 1: {
|
|
4948
|
+
if (tag !== 10) {
|
|
4949
|
+
break;
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
message.EventStore = reader.string();
|
|
4953
|
+
continue;
|
|
4954
|
+
}
|
|
4955
|
+
case 2: {
|
|
4956
|
+
if (tag !== 18) {
|
|
4957
|
+
break;
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
message.ActivationId = reader.string();
|
|
4961
|
+
continue;
|
|
4962
|
+
}
|
|
4963
|
+
case 3: {
|
|
4964
|
+
if (tag !== 24) {
|
|
4965
|
+
break;
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
message.Kind = reader.int32() as any;
|
|
4969
|
+
continue;
|
|
4970
|
+
}
|
|
4971
|
+
case 4: {
|
|
4972
|
+
if (tag !== 32) {
|
|
4973
|
+
break;
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4976
|
+
message.AllNamespaces = reader.bool();
|
|
4977
|
+
continue;
|
|
4978
|
+
}
|
|
4979
|
+
}
|
|
4980
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4981
|
+
break;
|
|
4982
|
+
}
|
|
4983
|
+
reader.skip(tag & 7);
|
|
4984
|
+
}
|
|
4985
|
+
return message;
|
|
4986
|
+
} finally {
|
|
4987
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4988
|
+
}
|
|
4989
|
+
},
|
|
4990
|
+
|
|
4991
|
+
fromJSON(object: any): RecordLifecycleOccurrenceRequest {
|
|
4992
|
+
return {
|
|
4993
|
+
EventStore: isSet(object.EventStore) ? globalThis.String(object.EventStore) : "",
|
|
4994
|
+
ActivationId: isSet(object.ActivationId) ? globalThis.String(object.ActivationId) : "",
|
|
4995
|
+
Kind: isSet(object.Kind) ? occurrenceKindFromJSON(object.Kind) : 0,
|
|
4996
|
+
AllNamespaces: isSet(object.AllNamespaces) ? globalThis.Boolean(object.AllNamespaces) : false,
|
|
4997
|
+
};
|
|
4998
|
+
},
|
|
4999
|
+
|
|
5000
|
+
toJSON(message: RecordLifecycleOccurrenceRequest): unknown {
|
|
5001
|
+
const obj: any = {};
|
|
5002
|
+
if (message.EventStore !== "") {
|
|
5003
|
+
obj.EventStore = message.EventStore;
|
|
5004
|
+
}
|
|
5005
|
+
if (message.ActivationId !== "") {
|
|
5006
|
+
obj.ActivationId = message.ActivationId;
|
|
5007
|
+
}
|
|
5008
|
+
if (message.Kind !== 0) {
|
|
5009
|
+
obj.Kind = occurrenceKindToJSON(message.Kind);
|
|
5010
|
+
}
|
|
5011
|
+
if (message.AllNamespaces !== false) {
|
|
5012
|
+
obj.AllNamespaces = message.AllNamespaces;
|
|
5013
|
+
}
|
|
5014
|
+
return obj;
|
|
5015
|
+
},
|
|
5016
|
+
|
|
5017
|
+
create(base?: DeepPartial<RecordLifecycleOccurrenceRequest>): RecordLifecycleOccurrenceRequest {
|
|
5018
|
+
return RecordLifecycleOccurrenceRequest.fromPartial(base ?? {});
|
|
5019
|
+
},
|
|
5020
|
+
fromPartial(object: DeepPartial<RecordLifecycleOccurrenceRequest>): RecordLifecycleOccurrenceRequest {
|
|
5021
|
+
const message = createBaseRecordLifecycleOccurrenceRequest();
|
|
5022
|
+
message.EventStore = object.EventStore ?? "";
|
|
5023
|
+
message.ActivationId = object.ActivationId ?? "";
|
|
5024
|
+
message.Kind = object.Kind ?? 0;
|
|
5025
|
+
message.AllNamespaces = object.AllNamespaces ?? false;
|
|
5026
|
+
return message;
|
|
5027
|
+
},
|
|
5028
|
+
};
|
|
5029
|
+
|
|
5030
|
+
function createBaseRecordLifecycleOccurrenceResponse(): RecordLifecycleOccurrenceResponse {
|
|
5031
|
+
return { Id: "", Status: 0, Namespaces: [] };
|
|
5032
|
+
}
|
|
5033
|
+
|
|
5034
|
+
export const RecordLifecycleOccurrenceResponse: MessageFns<RecordLifecycleOccurrenceResponse> = {
|
|
5035
|
+
encode(message: RecordLifecycleOccurrenceResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
5036
|
+
if (message.Id !== "") {
|
|
5037
|
+
writer.uint32(10).string(message.Id);
|
|
5038
|
+
}
|
|
5039
|
+
if (message.Status !== 0) {
|
|
5040
|
+
writer.uint32(16).int32(message.Status);
|
|
5041
|
+
}
|
|
5042
|
+
for (const v of message.Namespaces) {
|
|
5043
|
+
writer.uint32(26).string(v!);
|
|
5044
|
+
}
|
|
5045
|
+
return writer;
|
|
5046
|
+
},
|
|
5047
|
+
|
|
5048
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RecordLifecycleOccurrenceResponse {
|
|
5049
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5050
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
5051
|
+
if (previousRecursionDepth >= 100) {
|
|
5052
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5053
|
+
}
|
|
5054
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5055
|
+
try {
|
|
5056
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5057
|
+
const message = createBaseRecordLifecycleOccurrenceResponse();
|
|
5058
|
+
while (reader.pos < end) {
|
|
5059
|
+
const tag = reader.uint32();
|
|
5060
|
+
switch (tag >>> 3) {
|
|
5061
|
+
case 1: {
|
|
5062
|
+
if (tag !== 10) {
|
|
5063
|
+
break;
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
message.Id = reader.string();
|
|
5067
|
+
continue;
|
|
5068
|
+
}
|
|
5069
|
+
case 2: {
|
|
5070
|
+
if (tag !== 16) {
|
|
5071
|
+
break;
|
|
5072
|
+
}
|
|
5073
|
+
|
|
5074
|
+
message.Status = reader.int32() as any;
|
|
5075
|
+
continue;
|
|
5076
|
+
}
|
|
5077
|
+
case 3: {
|
|
5078
|
+
if (tag !== 26) {
|
|
5079
|
+
break;
|
|
5080
|
+
}
|
|
5081
|
+
|
|
5082
|
+
message.Namespaces.push(reader.string());
|
|
5083
|
+
continue;
|
|
5084
|
+
}
|
|
5085
|
+
}
|
|
5086
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5087
|
+
break;
|
|
5088
|
+
}
|
|
5089
|
+
reader.skip(tag & 7);
|
|
5090
|
+
}
|
|
5091
|
+
return message;
|
|
5092
|
+
} finally {
|
|
5093
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5094
|
+
}
|
|
5095
|
+
},
|
|
5096
|
+
|
|
5097
|
+
fromJSON(object: any): RecordLifecycleOccurrenceResponse {
|
|
5098
|
+
return {
|
|
5099
|
+
Id: isSet(object.Id) ? globalThis.String(object.Id) : "",
|
|
5100
|
+
Status: isSet(object.Status) ? occurrenceIngressStatusFromJSON(object.Status) : 0,
|
|
5101
|
+
Namespaces: globalThis.Array.isArray(object?.Namespaces)
|
|
5102
|
+
? object.Namespaces.map((e: any) => globalThis.String(e))
|
|
5103
|
+
: [],
|
|
5104
|
+
};
|
|
5105
|
+
},
|
|
5106
|
+
|
|
5107
|
+
toJSON(message: RecordLifecycleOccurrenceResponse): unknown {
|
|
5108
|
+
const obj: any = {};
|
|
5109
|
+
if (message.Id !== "") {
|
|
5110
|
+
obj.Id = message.Id;
|
|
5111
|
+
}
|
|
5112
|
+
if (message.Status !== 0) {
|
|
5113
|
+
obj.Status = occurrenceIngressStatusToJSON(message.Status);
|
|
5114
|
+
}
|
|
5115
|
+
if (message.Namespaces?.length) {
|
|
5116
|
+
obj.Namespaces = message.Namespaces;
|
|
5117
|
+
}
|
|
5118
|
+
return obj;
|
|
5119
|
+
},
|
|
5120
|
+
|
|
5121
|
+
create(base?: DeepPartial<RecordLifecycleOccurrenceResponse>): RecordLifecycleOccurrenceResponse {
|
|
5122
|
+
return RecordLifecycleOccurrenceResponse.fromPartial(base ?? {});
|
|
5123
|
+
},
|
|
5124
|
+
fromPartial(object: DeepPartial<RecordLifecycleOccurrenceResponse>): RecordLifecycleOccurrenceResponse {
|
|
5125
|
+
const message = createBaseRecordLifecycleOccurrenceResponse();
|
|
5126
|
+
message.Id = object.Id ?? "";
|
|
5127
|
+
message.Status = object.Status ?? 0;
|
|
5128
|
+
message.Namespaces = object.Namespaces?.map((e) => e) || [];
|
|
5129
|
+
return message;
|
|
5130
|
+
},
|
|
5131
|
+
};
|
|
5132
|
+
|
|
4697
5133
|
function createBaseRecordOccurrenceRequest(): RecordOccurrenceRequest {
|
|
4698
5134
|
return {
|
|
4699
5135
|
EventStore: "",
|
|
@@ -5764,6 +6200,15 @@ export const OccurrencesDefinition = {
|
|
|
5764
6200
|
responseStream: false,
|
|
5765
6201
|
options: {},
|
|
5766
6202
|
},
|
|
6203
|
+
recordLifecycleOccurrence: {
|
|
6204
|
+
name: "RecordLifecycleOccurrence",
|
|
6205
|
+
requestType: RecordLifecycleOccurrenceRequest as typeof RecordLifecycleOccurrenceRequest,
|
|
6206
|
+
requestStream: false,
|
|
6207
|
+
responseType:
|
|
6208
|
+
CommandResultRecordLifecycleOccurrenceResponse as typeof CommandResultRecordLifecycleOccurrenceResponse,
|
|
6209
|
+
responseStream: false,
|
|
6210
|
+
options: {},
|
|
6211
|
+
},
|
|
5767
6212
|
recordOccurrence: {
|
|
5768
6213
|
name: "RecordOccurrence",
|
|
5769
6214
|
requestType: RecordOccurrenceRequest as typeof RecordOccurrenceRequest,
|
|
@@ -5828,6 +6273,10 @@ export interface OccurrencesServiceImplementation<CallContextExt = {}> {
|
|
|
5828
6273
|
request: RecordEffectReceiptRequest,
|
|
5829
6274
|
context: CallContext & CallContextExt,
|
|
5830
6275
|
): Promise<DeepPartial<CommandResultRecordEffectReceiptResponse>>;
|
|
6276
|
+
recordLifecycleOccurrence(
|
|
6277
|
+
request: RecordLifecycleOccurrenceRequest,
|
|
6278
|
+
context: CallContext & CallContextExt,
|
|
6279
|
+
): Promise<DeepPartial<CommandResultRecordLifecycleOccurrenceResponse>>;
|
|
5831
6280
|
recordOccurrence(
|
|
5832
6281
|
request: RecordOccurrenceRequest,
|
|
5833
6282
|
context: CallContext & CallContextExt,
|
|
@@ -5875,6 +6324,10 @@ export interface OccurrencesClient<CallOptionsExt = {}> {
|
|
|
5875
6324
|
request: DeepPartial<RecordEffectReceiptRequest>,
|
|
5876
6325
|
options?: CallOptions & CallOptionsExt,
|
|
5877
6326
|
): Promise<CommandResultRecordEffectReceiptResponse>;
|
|
6327
|
+
recordLifecycleOccurrence(
|
|
6328
|
+
request: DeepPartial<RecordLifecycleOccurrenceRequest>,
|
|
6329
|
+
options?: CallOptions & CallOptionsExt,
|
|
6330
|
+
): Promise<CommandResultRecordLifecycleOccurrenceResponse>;
|
|
5878
6331
|
recordOccurrence(
|
|
5879
6332
|
request: DeepPartial<RecordOccurrenceRequest>,
|
|
5880
6333
|
options?: CallOptions & CallOptionsExt,
|
package/package.json
CHANGED