@pagopa/interop-outbound-models 1.1.0 → 1.2.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/CHANGELOG.md +9 -0
- package/dist/delegation/eventsV2.d.ts +90 -0
- package/dist/delegation/eventsV2.d.ts.map +1 -0
- package/dist/delegation/eventsV2.js +46 -0
- package/dist/delegation/index.d.ts +53 -0
- package/dist/delegation/index.d.ts.map +1 -0
- package/dist/delegation/index.js +36 -0
- package/dist/eservice/eventsV2.d.ts +64 -1
- package/dist/eservice/eventsV2.d.ts.map +1 -1
- package/dist/eservice/eventsV2.js +28 -1
- package/dist/eservice/index.d.ts +21 -0
- package/dist/eservice/index.d.ts.map +1 -1
- package/dist/gen/v2/delegation/delegation.d.ts +202 -0
- package/dist/gen/v2/delegation/delegation.d.ts.map +1 -0
- package/dist/gen/v2/delegation/delegation.js +385 -0
- package/dist/gen/v2/delegation/events.d.ts +85 -0
- package/dist/gen/v2/delegation/events.d.ts.map +1 -0
- package/dist/gen/v2/delegation/events.js +189 -0
- package/dist/gen/v2/eservice/eservice.d.ts +4 -0
- package/dist/gen/v2/eservice/eservice.d.ts.map +1 -1
- package/dist/gen/v2/eservice/eservice.js +9 -1
- package/dist/gen/v2/eservice/events.d.ts +69 -0
- package/dist/gen/v2/eservice/events.d.ts.map +1 -1
- package/dist/gen/v2/eservice/events.js +162 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/proto/v2/delegation/delegation.proto +52 -0
- package/proto/v2/delegation/events.proto +21 -0
- package/proto/v2/eservice/eservice.proto +1 -0
- package/proto/v2/eservice/events.proto +15 -0
- package/src/delegation/eventsV2.ts +65 -0
- package/src/delegation/index.ts +49 -0
- package/src/eservice/eventsV2.ts +36 -0
- package/src/index.ts +3 -0
- package/tests/eservice.test.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 1.2.0
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added `Delegation` data models
|
|
10
|
+
- Added delegation events: `ProducerDelegationSubmittedV2`, `ProducerDelegationApprovedV2`, `ProducerDelegationRejectedV2` and `ProducerDelegationRevokedV2`
|
|
11
|
+
- Added eservice events: `EServiceDescriptorSubmittedByDelegateV2`, `EServiceDescriptorApprovedByDelegatorV2` and `EServiceDescriptorRejectedByDelegatorV2`
|
|
12
|
+
- Added `rejectionReasons` property in `EServiceDescriptorV2` data model
|
|
13
|
+
|
|
5
14
|
## 1.1.0
|
|
6
15
|
|
|
7
16
|
### Added
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ProducerDelegationSubmittedV2, ProducerDelegationApprovedV2, ProducerDelegationRejectedV2, ProducerDelegationRevokedV2 } from "../gen/v2/delegation/events.js";
|
|
3
|
+
export declare function delegationEventToBinaryDataV2(event: DelegationEventV2): Uint8Array;
|
|
4
|
+
export declare const DelegationEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5
|
+
event_version: z.ZodLiteral<2>;
|
|
6
|
+
type: z.ZodLiteral<"ProducerDelegationSubmitted">;
|
|
7
|
+
data: z.ZodEffects<z.ZodAny, ProducerDelegationSubmittedV2, any>;
|
|
8
|
+
stream_id: z.ZodString;
|
|
9
|
+
version: z.ZodNumber;
|
|
10
|
+
timestamp: z.ZodDate;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
event_version: 2;
|
|
13
|
+
type: "ProducerDelegationSubmitted";
|
|
14
|
+
version: number;
|
|
15
|
+
data: ProducerDelegationSubmittedV2;
|
|
16
|
+
stream_id: string;
|
|
17
|
+
timestamp: Date;
|
|
18
|
+
}, {
|
|
19
|
+
event_version: 2;
|
|
20
|
+
type: "ProducerDelegationSubmitted";
|
|
21
|
+
version: number;
|
|
22
|
+
stream_id: string;
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
data?: any;
|
|
25
|
+
}>, z.ZodObject<{
|
|
26
|
+
event_version: z.ZodLiteral<2>;
|
|
27
|
+
type: z.ZodLiteral<"ProducerDelegationApproved">;
|
|
28
|
+
data: z.ZodEffects<z.ZodAny, ProducerDelegationApprovedV2, any>;
|
|
29
|
+
stream_id: z.ZodString;
|
|
30
|
+
version: z.ZodNumber;
|
|
31
|
+
timestamp: z.ZodDate;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
event_version: 2;
|
|
34
|
+
type: "ProducerDelegationApproved";
|
|
35
|
+
version: number;
|
|
36
|
+
data: ProducerDelegationApprovedV2;
|
|
37
|
+
stream_id: string;
|
|
38
|
+
timestamp: Date;
|
|
39
|
+
}, {
|
|
40
|
+
event_version: 2;
|
|
41
|
+
type: "ProducerDelegationApproved";
|
|
42
|
+
version: number;
|
|
43
|
+
stream_id: string;
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
data?: any;
|
|
46
|
+
}>, z.ZodObject<{
|
|
47
|
+
event_version: z.ZodLiteral<2>;
|
|
48
|
+
type: z.ZodLiteral<"ProducerDelegationRejected">;
|
|
49
|
+
data: z.ZodEffects<z.ZodAny, ProducerDelegationRejectedV2, any>;
|
|
50
|
+
stream_id: z.ZodString;
|
|
51
|
+
version: z.ZodNumber;
|
|
52
|
+
timestamp: z.ZodDate;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
event_version: 2;
|
|
55
|
+
type: "ProducerDelegationRejected";
|
|
56
|
+
version: number;
|
|
57
|
+
data: ProducerDelegationRejectedV2;
|
|
58
|
+
stream_id: string;
|
|
59
|
+
timestamp: Date;
|
|
60
|
+
}, {
|
|
61
|
+
event_version: 2;
|
|
62
|
+
type: "ProducerDelegationRejected";
|
|
63
|
+
version: number;
|
|
64
|
+
stream_id: string;
|
|
65
|
+
timestamp: Date;
|
|
66
|
+
data?: any;
|
|
67
|
+
}>, z.ZodObject<{
|
|
68
|
+
event_version: z.ZodLiteral<2>;
|
|
69
|
+
type: z.ZodLiteral<"ProducerDelegationRevoked">;
|
|
70
|
+
data: z.ZodEffects<z.ZodAny, ProducerDelegationRevokedV2, any>;
|
|
71
|
+
stream_id: z.ZodString;
|
|
72
|
+
version: z.ZodNumber;
|
|
73
|
+
timestamp: z.ZodDate;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
event_version: 2;
|
|
76
|
+
type: "ProducerDelegationRevoked";
|
|
77
|
+
version: number;
|
|
78
|
+
data: ProducerDelegationRevokedV2;
|
|
79
|
+
stream_id: string;
|
|
80
|
+
timestamp: Date;
|
|
81
|
+
}, {
|
|
82
|
+
event_version: 2;
|
|
83
|
+
type: "ProducerDelegationRevoked";
|
|
84
|
+
version: number;
|
|
85
|
+
stream_id: string;
|
|
86
|
+
timestamp: Date;
|
|
87
|
+
data?: any;
|
|
88
|
+
}>]>;
|
|
89
|
+
export type DelegationEventV2 = z.infer<typeof DelegationEventV2>;
|
|
90
|
+
//# sourceMappingURL=eventsV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventsV2.d.ts","sourceRoot":"","sources":["../../src/delegation/eventsV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,gCAAgC,CAAC;AAGxC,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,iBAAiB,GACvB,UAAU,CAeZ;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiC5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { match } from "ts-pattern";
|
|
3
|
+
import { ProducerDelegationSubmittedV2, ProducerDelegationApprovedV2, ProducerDelegationRejectedV2, ProducerDelegationRevokedV2, } from "../gen/v2/delegation/events.js";
|
|
4
|
+
import { protobufDecoder } from "../utils.js";
|
|
5
|
+
export function delegationEventToBinaryDataV2(event) {
|
|
6
|
+
return match(event)
|
|
7
|
+
.with({ type: "ProducerDelegationSubmitted" }, ({ data }) => ProducerDelegationSubmittedV2.toBinary(data))
|
|
8
|
+
.with({ type: "ProducerDelegationApproved" }, ({ data }) => ProducerDelegationApprovedV2.toBinary(data))
|
|
9
|
+
.with({ type: "ProducerDelegationRejected" }, ({ data }) => ProducerDelegationRejectedV2.toBinary(data))
|
|
10
|
+
.with({ type: "ProducerDelegationRevoked" }, ({ data }) => ProducerDelegationRevokedV2.toBinary(data))
|
|
11
|
+
.exhaustive();
|
|
12
|
+
}
|
|
13
|
+
export const DelegationEventV2 = z.discriminatedUnion("type", [
|
|
14
|
+
z.object({
|
|
15
|
+
event_version: z.literal(2),
|
|
16
|
+
type: z.literal("ProducerDelegationSubmitted"),
|
|
17
|
+
data: protobufDecoder(ProducerDelegationSubmittedV2),
|
|
18
|
+
stream_id: z.string(),
|
|
19
|
+
version: z.number(),
|
|
20
|
+
timestamp: z.coerce.date(),
|
|
21
|
+
}),
|
|
22
|
+
z.object({
|
|
23
|
+
event_version: z.literal(2),
|
|
24
|
+
type: z.literal("ProducerDelegationApproved"),
|
|
25
|
+
data: protobufDecoder(ProducerDelegationApprovedV2),
|
|
26
|
+
stream_id: z.string(),
|
|
27
|
+
version: z.number(),
|
|
28
|
+
timestamp: z.coerce.date(),
|
|
29
|
+
}),
|
|
30
|
+
z.object({
|
|
31
|
+
event_version: z.literal(2),
|
|
32
|
+
type: z.literal("ProducerDelegationRejected"),
|
|
33
|
+
data: protobufDecoder(ProducerDelegationRejectedV2),
|
|
34
|
+
stream_id: z.string(),
|
|
35
|
+
version: z.number(),
|
|
36
|
+
timestamp: z.coerce.date(),
|
|
37
|
+
}),
|
|
38
|
+
z.object({
|
|
39
|
+
event_version: z.literal(2),
|
|
40
|
+
type: z.literal("ProducerDelegationRevoked"),
|
|
41
|
+
data: protobufDecoder(ProducerDelegationRevokedV2),
|
|
42
|
+
stream_id: z.string(),
|
|
43
|
+
version: z.number(),
|
|
44
|
+
timestamp: z.coerce.date(),
|
|
45
|
+
}),
|
|
46
|
+
]);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { DelegationEventV2 } from "./eventsV2.js";
|
|
3
|
+
export declare function encodeOutboundDelegationEvent(event: DelegationEvent): string;
|
|
4
|
+
export declare function decodeOutboundDelegationEvent(encodedEvent: string): DelegationEvent;
|
|
5
|
+
export declare const DelegationEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"event_version", [z.ZodObject<{
|
|
6
|
+
event_version: z.ZodLiteral<1>;
|
|
7
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
8
|
+
event_version: z.ZodLiteral<1>;
|
|
9
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10
|
+
event_version: z.ZodLiteral<1>;
|
|
11
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
12
|
+
event_version: z.ZodLiteral<2>;
|
|
13
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
14
|
+
event_version: z.ZodLiteral<2>;
|
|
15
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
16
|
+
event_version: z.ZodLiteral<2>;
|
|
17
|
+
}, z.ZodTypeAny, "passthrough">>]>, {
|
|
18
|
+
event_version: 2;
|
|
19
|
+
type: "ProducerDelegationSubmitted";
|
|
20
|
+
version: number;
|
|
21
|
+
data: import("../index.js").ProducerDelegationSubmittedV2;
|
|
22
|
+
stream_id: string;
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
} | {
|
|
25
|
+
event_version: 2;
|
|
26
|
+
type: "ProducerDelegationApproved";
|
|
27
|
+
version: number;
|
|
28
|
+
data: import("../index.js").ProducerDelegationApprovedV2;
|
|
29
|
+
stream_id: string;
|
|
30
|
+
timestamp: Date;
|
|
31
|
+
} | {
|
|
32
|
+
event_version: 2;
|
|
33
|
+
type: "ProducerDelegationRejected";
|
|
34
|
+
version: number;
|
|
35
|
+
data: import("../index.js").ProducerDelegationRejectedV2;
|
|
36
|
+
stream_id: string;
|
|
37
|
+
timestamp: Date;
|
|
38
|
+
} | {
|
|
39
|
+
event_version: 2;
|
|
40
|
+
type: "ProducerDelegationRevoked";
|
|
41
|
+
version: number;
|
|
42
|
+
data: import("../index.js").ProducerDelegationRevokedV2;
|
|
43
|
+
stream_id: string;
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
}, z.objectInputType<{
|
|
46
|
+
event_version: z.ZodLiteral<1>;
|
|
47
|
+
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
48
|
+
event_version: z.ZodLiteral<2>;
|
|
49
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
50
|
+
export type DelegationEventType = DelegationEvent["type"];
|
|
51
|
+
export type DelegationEvent = z.infer<typeof DelegationEvent>;
|
|
52
|
+
export { DelegationEventV2 };
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/delegation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iBAAiB,EAElB,MAAM,eAAe,CAAC;AAQvB,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAS5E;AAED,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,MAAM,GACnB,eAAe,CAEjB;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAa1B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { match } from "ts-pattern";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { VersionedEvent } from "../utils.js";
|
|
4
|
+
import { DelegationEventV2, delegationEventToBinaryDataV2, } from "./eventsV2.js";
|
|
5
|
+
function delegationEventToBinaryData(event) {
|
|
6
|
+
return match(event)
|
|
7
|
+
.with({ event_version: 2 }, delegationEventToBinaryDataV2)
|
|
8
|
+
.exhaustive();
|
|
9
|
+
}
|
|
10
|
+
export function encodeOutboundDelegationEvent(event) {
|
|
11
|
+
return JSON.stringify({
|
|
12
|
+
event_version: event.event_version,
|
|
13
|
+
type: event.type,
|
|
14
|
+
data: Buffer.from(delegationEventToBinaryData(event)).toString("hex"),
|
|
15
|
+
stream_id: event.stream_id,
|
|
16
|
+
version: event.version,
|
|
17
|
+
timestamp: event.timestamp,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export function decodeOutboundDelegationEvent(encodedEvent) {
|
|
21
|
+
return DelegationEvent.parse(JSON.parse(encodedEvent));
|
|
22
|
+
}
|
|
23
|
+
export const DelegationEvent = VersionedEvent.transform((obj, ctx) => {
|
|
24
|
+
const res = match(obj)
|
|
25
|
+
.with({ event_version: 1 }, () => {
|
|
26
|
+
throw new Error("Unsupported event version");
|
|
27
|
+
})
|
|
28
|
+
.with({ event_version: 2 }, () => DelegationEventV2.safeParse(obj))
|
|
29
|
+
.exhaustive();
|
|
30
|
+
if (!res.success) {
|
|
31
|
+
res.error.issues.forEach(ctx.addIssue);
|
|
32
|
+
return z.NEVER;
|
|
33
|
+
}
|
|
34
|
+
return res.data;
|
|
35
|
+
});
|
|
36
|
+
export { DelegationEventV2 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { DraftEServiceUpdatedV2, EServiceAddedV2, EServiceClonedV2, EServiceDeletedV2, EServiceDescriptorActivatedV2, EServiceDescriptorAddedV2, EServiceDescriptorArchivedV2, EServiceDescriptorDocumentAddedV2, EServiceDescriptorDocumentDeletedV2, EServiceDescriptorDocumentUpdatedV2, EServiceDescriptorInterfaceAddedV2, EServiceDescriptorInterfaceDeletedV2, EServiceDescriptorInterfaceUpdatedV2, EServiceDescriptorPublishedV2, EServiceDescriptorSuspendedV2, EServiceDraftDescriptorDeletedV2, EServiceDraftDescriptorUpdatedV2, EServiceDescriptorQuotasUpdatedV2, EServiceDescriptionUpdatedV2, EServiceDescriptorAttributesUpdatedV2, EServiceNameUpdatedV2 } from "../gen/v2/eservice/events.js";
|
|
2
|
+
import { DraftEServiceUpdatedV2, EServiceAddedV2, EServiceClonedV2, EServiceDeletedV2, EServiceDescriptorActivatedV2, EServiceDescriptorAddedV2, EServiceDescriptorArchivedV2, EServiceDescriptorDocumentAddedV2, EServiceDescriptorDocumentDeletedV2, EServiceDescriptorDocumentUpdatedV2, EServiceDescriptorInterfaceAddedV2, EServiceDescriptorInterfaceDeletedV2, EServiceDescriptorInterfaceUpdatedV2, EServiceDescriptorPublishedV2, EServiceDescriptorSuspendedV2, EServiceDraftDescriptorDeletedV2, EServiceDraftDescriptorUpdatedV2, EServiceDescriptorQuotasUpdatedV2, EServiceDescriptionUpdatedV2, EServiceDescriptorSubmittedByDelegateV2, EServiceDescriptorApprovedByDelegatorV2, EServiceDescriptorRejectedByDelegatorV2, EServiceDescriptorAttributesUpdatedV2, EServiceNameUpdatedV2 } from "../gen/v2/eservice/events.js";
|
|
3
3
|
export declare function eServiceEventToBinaryDataV2(event: EServiceEventV2): Uint8Array;
|
|
4
4
|
export declare const EServiceEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5
5
|
event_version: z.ZodLiteral<2>;
|
|
@@ -400,6 +400,69 @@ export declare const EServiceEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
400
400
|
stream_id: string;
|
|
401
401
|
timestamp: Date;
|
|
402
402
|
data?: any;
|
|
403
|
+
}>, z.ZodObject<{
|
|
404
|
+
event_version: z.ZodLiteral<2>;
|
|
405
|
+
type: z.ZodLiteral<"EServiceDescriptorSubmittedByDelegate">;
|
|
406
|
+
data: z.ZodEffects<z.ZodAny, EServiceDescriptorSubmittedByDelegateV2, any>;
|
|
407
|
+
stream_id: z.ZodString;
|
|
408
|
+
version: z.ZodNumber;
|
|
409
|
+
timestamp: z.ZodDate;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
event_version: 2;
|
|
412
|
+
type: "EServiceDescriptorSubmittedByDelegate";
|
|
413
|
+
version: number;
|
|
414
|
+
data: EServiceDescriptorSubmittedByDelegateV2;
|
|
415
|
+
stream_id: string;
|
|
416
|
+
timestamp: Date;
|
|
417
|
+
}, {
|
|
418
|
+
event_version: 2;
|
|
419
|
+
type: "EServiceDescriptorSubmittedByDelegate";
|
|
420
|
+
version: number;
|
|
421
|
+
stream_id: string;
|
|
422
|
+
timestamp: Date;
|
|
423
|
+
data?: any;
|
|
424
|
+
}>, z.ZodObject<{
|
|
425
|
+
event_version: z.ZodLiteral<2>;
|
|
426
|
+
type: z.ZodLiteral<"EServiceDescriptorApprovedByDelegator">;
|
|
427
|
+
data: z.ZodEffects<z.ZodAny, EServiceDescriptorApprovedByDelegatorV2, any>;
|
|
428
|
+
stream_id: z.ZodString;
|
|
429
|
+
version: z.ZodNumber;
|
|
430
|
+
timestamp: z.ZodDate;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
event_version: 2;
|
|
433
|
+
type: "EServiceDescriptorApprovedByDelegator";
|
|
434
|
+
version: number;
|
|
435
|
+
data: EServiceDescriptorApprovedByDelegatorV2;
|
|
436
|
+
stream_id: string;
|
|
437
|
+
timestamp: Date;
|
|
438
|
+
}, {
|
|
439
|
+
event_version: 2;
|
|
440
|
+
type: "EServiceDescriptorApprovedByDelegator";
|
|
441
|
+
version: number;
|
|
442
|
+
stream_id: string;
|
|
443
|
+
timestamp: Date;
|
|
444
|
+
data?: any;
|
|
445
|
+
}>, z.ZodObject<{
|
|
446
|
+
event_version: z.ZodLiteral<2>;
|
|
447
|
+
type: z.ZodLiteral<"EServiceDescriptorRejectedByDelegator">;
|
|
448
|
+
data: z.ZodEffects<z.ZodAny, EServiceDescriptorRejectedByDelegatorV2, any>;
|
|
449
|
+
stream_id: z.ZodString;
|
|
450
|
+
version: z.ZodNumber;
|
|
451
|
+
timestamp: z.ZodDate;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
|
+
event_version: 2;
|
|
454
|
+
type: "EServiceDescriptorRejectedByDelegator";
|
|
455
|
+
version: number;
|
|
456
|
+
data: EServiceDescriptorRejectedByDelegatorV2;
|
|
457
|
+
stream_id: string;
|
|
458
|
+
timestamp: Date;
|
|
459
|
+
}, {
|
|
460
|
+
event_version: 2;
|
|
461
|
+
type: "EServiceDescriptorRejectedByDelegator";
|
|
462
|
+
version: number;
|
|
463
|
+
stream_id: string;
|
|
464
|
+
timestamp: Date;
|
|
465
|
+
data?: any;
|
|
403
466
|
}>, z.ZodObject<{
|
|
404
467
|
event_version: z.ZodLiteral<2>;
|
|
405
468
|
type: z.ZodLiteral<"EServiceDescriptorAttributesUpdated">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventsV2.d.ts","sourceRoot":"","sources":["../../src/eservice/eventsV2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,6BAA6B,EAC7B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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiM1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { match } from "ts-pattern";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { protobufDecoder } from "../utils.js";
|
|
4
|
-
import { DraftEServiceUpdatedV2, EServiceAddedV2, EServiceClonedV2, EServiceDeletedV2, EServiceDescriptorActivatedV2, EServiceDescriptorAddedV2, EServiceDescriptorArchivedV2, EServiceDescriptorDocumentAddedV2, EServiceDescriptorDocumentDeletedV2, EServiceDescriptorDocumentUpdatedV2, EServiceDescriptorInterfaceAddedV2, EServiceDescriptorInterfaceDeletedV2, EServiceDescriptorInterfaceUpdatedV2, EServiceDescriptorPublishedV2, EServiceDescriptorSuspendedV2, EServiceDraftDescriptorDeletedV2, EServiceDraftDescriptorUpdatedV2, EServiceDescriptorQuotasUpdatedV2, EServiceDescriptionUpdatedV2, EServiceDescriptorAttributesUpdatedV2, EServiceNameUpdatedV2, } from "../gen/v2/eservice/events.js";
|
|
4
|
+
import { DraftEServiceUpdatedV2, EServiceAddedV2, EServiceClonedV2, EServiceDeletedV2, EServiceDescriptorActivatedV2, EServiceDescriptorAddedV2, EServiceDescriptorArchivedV2, EServiceDescriptorDocumentAddedV2, EServiceDescriptorDocumentDeletedV2, EServiceDescriptorDocumentUpdatedV2, EServiceDescriptorInterfaceAddedV2, EServiceDescriptorInterfaceDeletedV2, EServiceDescriptorInterfaceUpdatedV2, EServiceDescriptorPublishedV2, EServiceDescriptorSuspendedV2, EServiceDraftDescriptorDeletedV2, EServiceDraftDescriptorUpdatedV2, EServiceDescriptorQuotasUpdatedV2, EServiceDescriptionUpdatedV2, EServiceDescriptorSubmittedByDelegateV2, EServiceDescriptorApprovedByDelegatorV2, EServiceDescriptorRejectedByDelegatorV2, EServiceDescriptorAttributesUpdatedV2, EServiceNameUpdatedV2, } from "../gen/v2/eservice/events.js";
|
|
5
5
|
export function eServiceEventToBinaryDataV2(event) {
|
|
6
6
|
return match(event)
|
|
7
7
|
.with({ type: "EServiceAdded" }, ({ data }) => EServiceAddedV2.toBinary(data))
|
|
@@ -23,6 +23,9 @@ export function eServiceEventToBinaryDataV2(event) {
|
|
|
23
23
|
.with({ type: "EServiceDescriptorInterfaceDeleted" }, ({ data }) => EServiceDescriptorInterfaceDeletedV2.toBinary(data))
|
|
24
24
|
.with({ type: "EServiceDescriptorDocumentDeleted" }, ({ data }) => EServiceDescriptorDocumentDeletedV2.toBinary(data))
|
|
25
25
|
.with({ type: "EServiceDescriptionUpdated" }, ({ data }) => EServiceDescriptionUpdatedV2.toBinary(data))
|
|
26
|
+
.with({ type: "EServiceDescriptorSubmittedByDelegate" }, ({ data }) => EServiceDescriptorSubmittedByDelegateV2.toBinary(data))
|
|
27
|
+
.with({ type: "EServiceDescriptorApprovedByDelegator" }, ({ data }) => EServiceDescriptorApprovedByDelegatorV2.toBinary(data))
|
|
28
|
+
.with({ type: "EServiceDescriptorRejectedByDelegator" }, ({ data }) => EServiceDescriptorRejectedByDelegatorV2.toBinary(data))
|
|
26
29
|
.with({ type: "EServiceDescriptorAttributesUpdated" }, ({ data }) => EServiceDescriptorAttributesUpdatedV2.toBinary(data))
|
|
27
30
|
.with({ type: "EServiceNameUpdated" }, ({ data }) => EServiceDescriptionUpdatedV2.toBinary(data))
|
|
28
31
|
.exhaustive();
|
|
@@ -180,6 +183,30 @@ export const EServiceEventV2 = z.discriminatedUnion("type", [
|
|
|
180
183
|
version: z.number(),
|
|
181
184
|
timestamp: z.coerce.date(),
|
|
182
185
|
}),
|
|
186
|
+
z.object({
|
|
187
|
+
event_version: z.literal(2),
|
|
188
|
+
type: z.literal("EServiceDescriptorSubmittedByDelegate"),
|
|
189
|
+
data: protobufDecoder(EServiceDescriptorSubmittedByDelegateV2),
|
|
190
|
+
stream_id: z.string(),
|
|
191
|
+
version: z.number(),
|
|
192
|
+
timestamp: z.coerce.date(),
|
|
193
|
+
}),
|
|
194
|
+
z.object({
|
|
195
|
+
event_version: z.literal(2),
|
|
196
|
+
type: z.literal("EServiceDescriptorApprovedByDelegator"),
|
|
197
|
+
data: protobufDecoder(EServiceDescriptorApprovedByDelegatorV2),
|
|
198
|
+
stream_id: z.string(),
|
|
199
|
+
version: z.number(),
|
|
200
|
+
timestamp: z.coerce.date(),
|
|
201
|
+
}),
|
|
202
|
+
z.object({
|
|
203
|
+
event_version: z.literal(2),
|
|
204
|
+
type: z.literal("EServiceDescriptorRejectedByDelegator"),
|
|
205
|
+
data: protobufDecoder(EServiceDescriptorRejectedByDelegatorV2),
|
|
206
|
+
stream_id: z.string(),
|
|
207
|
+
version: z.number(),
|
|
208
|
+
timestamp: z.coerce.date(),
|
|
209
|
+
}),
|
|
183
210
|
z.object({
|
|
184
211
|
event_version: z.literal(2),
|
|
185
212
|
type: z.literal("EServiceDescriptorAttributesUpdated"),
|
package/dist/eservice/index.d.ts
CHANGED
|
@@ -225,6 +225,27 @@ export declare const EServiceEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"event_
|
|
|
225
225
|
data: import("../index.js").EServiceDescriptionUpdatedV2;
|
|
226
226
|
stream_id: string;
|
|
227
227
|
timestamp: Date;
|
|
228
|
+
} | {
|
|
229
|
+
event_version: 2;
|
|
230
|
+
type: "EServiceDescriptorSubmittedByDelegate";
|
|
231
|
+
version: number;
|
|
232
|
+
data: import("../index.js").EServiceDescriptorSubmittedByDelegateV2;
|
|
233
|
+
stream_id: string;
|
|
234
|
+
timestamp: Date;
|
|
235
|
+
} | {
|
|
236
|
+
event_version: 2;
|
|
237
|
+
type: "EServiceDescriptorApprovedByDelegator";
|
|
238
|
+
version: number;
|
|
239
|
+
data: import("../index.js").EServiceDescriptorApprovedByDelegatorV2;
|
|
240
|
+
stream_id: string;
|
|
241
|
+
timestamp: Date;
|
|
242
|
+
} | {
|
|
243
|
+
event_version: 2;
|
|
244
|
+
type: "EServiceDescriptorRejectedByDelegator";
|
|
245
|
+
version: number;
|
|
246
|
+
data: import("../index.js").EServiceDescriptorRejectedByDelegatorV2;
|
|
247
|
+
stream_id: string;
|
|
248
|
+
timestamp: Date;
|
|
228
249
|
} | {
|
|
229
250
|
event_version: 2;
|
|
230
251
|
type: "EServiceDescriptorAttributesUpdated";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eservice/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAA+B,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAA+B,MAAM,eAAe,CAAC;AAS7E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CASxE;AAED,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,GACnB,aAAa,CAEf;AAED,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eservice/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAA+B,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,eAAe,EAA+B,MAAM,eAAe,CAAC;AAS7E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CASxE;AAED,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,GACnB,aAAa,CAEf;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAWxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from protobuf message delegation.v2.DelegationV2
|
|
9
|
+
*/
|
|
10
|
+
export interface DelegationV2 {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from protobuf field: string id = 1;
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* @generated from protobuf field: string delegatorId = 2;
|
|
17
|
+
*/
|
|
18
|
+
delegatorId: string;
|
|
19
|
+
/**
|
|
20
|
+
* @generated from protobuf field: string delegateId = 3;
|
|
21
|
+
*/
|
|
22
|
+
delegateId: string;
|
|
23
|
+
/**
|
|
24
|
+
* @generated from protobuf field: string eserviceId = 4;
|
|
25
|
+
*/
|
|
26
|
+
eserviceId: string;
|
|
27
|
+
/**
|
|
28
|
+
* @generated from protobuf field: int64 createdAt = 5;
|
|
29
|
+
*/
|
|
30
|
+
createdAt: bigint;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf field: int64 submittedAt = 6;
|
|
33
|
+
*/
|
|
34
|
+
submittedAt: bigint;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from protobuf field: optional int64 approvedAt = 7;
|
|
37
|
+
*/
|
|
38
|
+
approvedAt?: bigint;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from protobuf field: optional int64 rejectedAt = 8;
|
|
41
|
+
*/
|
|
42
|
+
rejectedAt?: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from protobuf field: optional string rejectionReason = 9;
|
|
45
|
+
*/
|
|
46
|
+
rejectionReason?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @generated from protobuf field: optional int64 revokedAt = 10;
|
|
49
|
+
*/
|
|
50
|
+
revokedAt?: bigint;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from protobuf field: delegation.v2.DelegationStateV2 state = 11;
|
|
53
|
+
*/
|
|
54
|
+
state: DelegationStateV2;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: delegation.v2.DelegationKindV2 kind = 12;
|
|
57
|
+
*/
|
|
58
|
+
kind: DelegationKindV2;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf field: delegation.v2.DelegationStampsV2 stamps = 13;
|
|
61
|
+
*/
|
|
62
|
+
stamps?: DelegationStampsV2;
|
|
63
|
+
/**
|
|
64
|
+
* @generated from protobuf field: optional delegation.v2.DelegationContractDocumentV2 activationContract = 14;
|
|
65
|
+
*/
|
|
66
|
+
activationContract?: DelegationContractDocumentV2;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf field: optional delegation.v2.DelegationContractDocumentV2 revocationContract = 15;
|
|
69
|
+
*/
|
|
70
|
+
revocationContract?: DelegationContractDocumentV2;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf message delegation.v2.DelegationContractDocumentV2
|
|
74
|
+
*/
|
|
75
|
+
export interface DelegationContractDocumentV2 {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: string id = 1;
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: string name = 2;
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf field: string prettyName = 3;
|
|
86
|
+
*/
|
|
87
|
+
prettyName: string;
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf field: string contentType = 4;
|
|
90
|
+
*/
|
|
91
|
+
contentType: string;
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf field: int64 createdAt = 5;
|
|
94
|
+
*/
|
|
95
|
+
createdAt: bigint;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @generated from protobuf message delegation.v2.DelegationStampV2
|
|
99
|
+
*/
|
|
100
|
+
export interface DelegationStampV2 {
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf field: int64 when = 1;
|
|
103
|
+
*/
|
|
104
|
+
when: bigint;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @generated from protobuf message delegation.v2.DelegationStampsV2
|
|
108
|
+
*/
|
|
109
|
+
export interface DelegationStampsV2 {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from protobuf field: delegation.v2.DelegationStampV2 submission = 1;
|
|
112
|
+
*/
|
|
113
|
+
submission?: DelegationStampV2;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from protobuf field: optional delegation.v2.DelegationStampV2 activation = 2;
|
|
116
|
+
*/
|
|
117
|
+
activation?: DelegationStampV2;
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf field: optional delegation.v2.DelegationStampV2 rejection = 3;
|
|
120
|
+
*/
|
|
121
|
+
rejection?: DelegationStampV2;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf field: optional delegation.v2.DelegationStampV2 revocation = 4;
|
|
124
|
+
*/
|
|
125
|
+
revocation?: DelegationStampV2;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @generated from protobuf enum delegation.v2.DelegationStateV2
|
|
129
|
+
*/
|
|
130
|
+
export declare enum DelegationStateV2 {
|
|
131
|
+
/**
|
|
132
|
+
* @generated from protobuf enum value: WAITING_FOR_APPROVAL = 0;
|
|
133
|
+
*/
|
|
134
|
+
WAITING_FOR_APPROVAL = 0,
|
|
135
|
+
/**
|
|
136
|
+
* @generated from protobuf enum value: ACTIVE = 1;
|
|
137
|
+
*/
|
|
138
|
+
ACTIVE = 1,
|
|
139
|
+
/**
|
|
140
|
+
* @generated from protobuf enum value: REJECTED = 2;
|
|
141
|
+
*/
|
|
142
|
+
REJECTED = 2,
|
|
143
|
+
/**
|
|
144
|
+
* @generated from protobuf enum value: REVOKED = 3;
|
|
145
|
+
*/
|
|
146
|
+
REVOKED = 3
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf enum delegation.v2.DelegationKindV2
|
|
150
|
+
*/
|
|
151
|
+
export declare enum DelegationKindV2 {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from protobuf enum value: DELEGATED_PRODUCER = 0;
|
|
154
|
+
*/
|
|
155
|
+
DELEGATED_PRODUCER = 0,
|
|
156
|
+
/**
|
|
157
|
+
* @generated from protobuf enum value: DELEGATED_CONSUMER = 1;
|
|
158
|
+
*/
|
|
159
|
+
DELEGATED_CONSUMER = 1
|
|
160
|
+
}
|
|
161
|
+
declare class DelegationV2$Type extends MessageType<DelegationV2> {
|
|
162
|
+
constructor();
|
|
163
|
+
create(value?: PartialMessage<DelegationV2>): DelegationV2;
|
|
164
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DelegationV2): DelegationV2;
|
|
165
|
+
internalBinaryWrite(message: DelegationV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @generated MessageType for protobuf message delegation.v2.DelegationV2
|
|
169
|
+
*/
|
|
170
|
+
export declare const DelegationV2: DelegationV2$Type;
|
|
171
|
+
declare class DelegationContractDocumentV2$Type extends MessageType<DelegationContractDocumentV2> {
|
|
172
|
+
constructor();
|
|
173
|
+
create(value?: PartialMessage<DelegationContractDocumentV2>): DelegationContractDocumentV2;
|
|
174
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DelegationContractDocumentV2): DelegationContractDocumentV2;
|
|
175
|
+
internalBinaryWrite(message: DelegationContractDocumentV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @generated MessageType for protobuf message delegation.v2.DelegationContractDocumentV2
|
|
179
|
+
*/
|
|
180
|
+
export declare const DelegationContractDocumentV2: DelegationContractDocumentV2$Type;
|
|
181
|
+
declare class DelegationStampV2$Type extends MessageType<DelegationStampV2> {
|
|
182
|
+
constructor();
|
|
183
|
+
create(value?: PartialMessage<DelegationStampV2>): DelegationStampV2;
|
|
184
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DelegationStampV2): DelegationStampV2;
|
|
185
|
+
internalBinaryWrite(message: DelegationStampV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @generated MessageType for protobuf message delegation.v2.DelegationStampV2
|
|
189
|
+
*/
|
|
190
|
+
export declare const DelegationStampV2: DelegationStampV2$Type;
|
|
191
|
+
declare class DelegationStampsV2$Type extends MessageType<DelegationStampsV2> {
|
|
192
|
+
constructor();
|
|
193
|
+
create(value?: PartialMessage<DelegationStampsV2>): DelegationStampsV2;
|
|
194
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DelegationStampsV2): DelegationStampsV2;
|
|
195
|
+
internalBinaryWrite(message: DelegationStampsV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @generated MessageType for protobuf message delegation.v2.DelegationStampsV2
|
|
199
|
+
*/
|
|
200
|
+
export declare const DelegationStampsV2: DelegationStampsV2$Type;
|
|
201
|
+
export {};
|
|
202
|
+
//# sourceMappingURL=delegation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../../../src/gen/v2/delegation/delegation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,CAAC,EAAE,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