@pagopa/interop-outbound-models 1.0.12-b → 1.0.12-d
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/delegation/eventsV2.d.ts +174 -0
- package/dist/delegation/eventsV2.d.ts.map +1 -0
- package/dist/delegation/eventsV2.js +82 -0
- package/dist/delegation/index.d.ts +81 -0
- package/dist/delegation/index.d.ts.map +1 -0
- package/dist/delegation/index.js +36 -0
- package/dist/eservice/eventsV2.d.ts +85 -1
- package/dist/eservice/eventsV2.d.ts.map +1 -1
- package/dist/eservice/eventsV2.js +37 -1
- package/dist/eservice/index.d.ts +28 -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 +161 -0
- package/dist/gen/v2/delegation/events.d.ts.map +1 -0
- package/dist/gen/v2/delegation/events.js +373 -0
- package/dist/gen/v2/eservice/events.d.ts +76 -0
- package/dist/gen/v2/eservice/events.d.ts.map +1 -1
- package/dist/gen/v2/eservice/events.js +184 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +2 -2
- package/proto/v2/delegation/delegation.proto +52 -0
- package/proto/v2/delegation/events.proto +37 -0
- package/proto/v2/eservice/events.proto +16 -0
- package/src/delegation/eventsV2.ts +113 -0
- package/src/delegation/index.ts +49 -0
- package/src/eservice/eventsV2.ts +48 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ProducerDelegationSubmittedV2, ProducerDelegationApprovedV2, ProducerDelegationRejectedV2, ProducerDelegationRevokedV2, ConsumerDelegationApprovedV2, ConsumerDelegationRejectedV2, ConsumerDelegationRevokedV2, ConsumerDelegationSubmittedV2 } 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
|
+
}>, z.ZodObject<{
|
|
89
|
+
event_version: z.ZodLiteral<2>;
|
|
90
|
+
type: z.ZodLiteral<"ConsumerDelegationSubmitted">;
|
|
91
|
+
data: z.ZodEffects<z.ZodAny, ConsumerDelegationSubmittedV2, any>;
|
|
92
|
+
stream_id: z.ZodString;
|
|
93
|
+
version: z.ZodNumber;
|
|
94
|
+
timestamp: z.ZodDate;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
event_version: 2;
|
|
97
|
+
type: "ConsumerDelegationSubmitted";
|
|
98
|
+
version: number;
|
|
99
|
+
data: ConsumerDelegationSubmittedV2;
|
|
100
|
+
stream_id: string;
|
|
101
|
+
timestamp: Date;
|
|
102
|
+
}, {
|
|
103
|
+
event_version: 2;
|
|
104
|
+
type: "ConsumerDelegationSubmitted";
|
|
105
|
+
version: number;
|
|
106
|
+
stream_id: string;
|
|
107
|
+
timestamp: Date;
|
|
108
|
+
data?: any;
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
event_version: z.ZodLiteral<2>;
|
|
111
|
+
type: z.ZodLiteral<"ConsumerDelegationApproved">;
|
|
112
|
+
data: z.ZodEffects<z.ZodAny, ConsumerDelegationApprovedV2, any>;
|
|
113
|
+
stream_id: z.ZodString;
|
|
114
|
+
version: z.ZodNumber;
|
|
115
|
+
timestamp: z.ZodDate;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
event_version: 2;
|
|
118
|
+
type: "ConsumerDelegationApproved";
|
|
119
|
+
version: number;
|
|
120
|
+
data: ConsumerDelegationApprovedV2;
|
|
121
|
+
stream_id: string;
|
|
122
|
+
timestamp: Date;
|
|
123
|
+
}, {
|
|
124
|
+
event_version: 2;
|
|
125
|
+
type: "ConsumerDelegationApproved";
|
|
126
|
+
version: number;
|
|
127
|
+
stream_id: string;
|
|
128
|
+
timestamp: Date;
|
|
129
|
+
data?: any;
|
|
130
|
+
}>, z.ZodObject<{
|
|
131
|
+
event_version: z.ZodLiteral<2>;
|
|
132
|
+
type: z.ZodLiteral<"ConsumerDelegationRejected">;
|
|
133
|
+
data: z.ZodEffects<z.ZodAny, ConsumerDelegationRejectedV2, any>;
|
|
134
|
+
stream_id: z.ZodString;
|
|
135
|
+
version: z.ZodNumber;
|
|
136
|
+
timestamp: z.ZodDate;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
event_version: 2;
|
|
139
|
+
type: "ConsumerDelegationRejected";
|
|
140
|
+
version: number;
|
|
141
|
+
data: ConsumerDelegationRejectedV2;
|
|
142
|
+
stream_id: string;
|
|
143
|
+
timestamp: Date;
|
|
144
|
+
}, {
|
|
145
|
+
event_version: 2;
|
|
146
|
+
type: "ConsumerDelegationRejected";
|
|
147
|
+
version: number;
|
|
148
|
+
stream_id: string;
|
|
149
|
+
timestamp: Date;
|
|
150
|
+
data?: any;
|
|
151
|
+
}>, z.ZodObject<{
|
|
152
|
+
event_version: z.ZodLiteral<2>;
|
|
153
|
+
type: z.ZodLiteral<"ConsumerDelegationRevoked">;
|
|
154
|
+
data: z.ZodEffects<z.ZodAny, ConsumerDelegationRevokedV2, any>;
|
|
155
|
+
stream_id: z.ZodString;
|
|
156
|
+
version: z.ZodNumber;
|
|
157
|
+
timestamp: z.ZodDate;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
event_version: 2;
|
|
160
|
+
type: "ConsumerDelegationRevoked";
|
|
161
|
+
version: number;
|
|
162
|
+
data: ConsumerDelegationRevokedV2;
|
|
163
|
+
stream_id: string;
|
|
164
|
+
timestamp: Date;
|
|
165
|
+
}, {
|
|
166
|
+
event_version: 2;
|
|
167
|
+
type: "ConsumerDelegationRevoked";
|
|
168
|
+
version: number;
|
|
169
|
+
stream_id: string;
|
|
170
|
+
timestamp: Date;
|
|
171
|
+
data?: any;
|
|
172
|
+
}>]>;
|
|
173
|
+
export type DelegationEventV2 = z.infer<typeof DelegationEventV2>;
|
|
174
|
+
//# 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,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,gCAAgC,CAAC;AAGxC,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,iBAAiB,GACvB,UAAU,CA2BZ;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiE5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { match } from "ts-pattern";
|
|
3
|
+
import { ProducerDelegationSubmittedV2, ProducerDelegationApprovedV2, ProducerDelegationRejectedV2, ProducerDelegationRevokedV2, ConsumerDelegationApprovedV2, ConsumerDelegationRejectedV2, ConsumerDelegationRevokedV2, ConsumerDelegationSubmittedV2, } 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
|
+
.with({ type: "ConsumerDelegationSubmitted" }, ({ data }) => ConsumerDelegationSubmittedV2.toBinary(data))
|
|
12
|
+
.with({ type: "ConsumerDelegationApproved" }, ({ data }) => ConsumerDelegationApprovedV2.toBinary(data))
|
|
13
|
+
.with({ type: "ConsumerDelegationRejected" }, ({ data }) => ConsumerDelegationRejectedV2.toBinary(data))
|
|
14
|
+
.with({ type: "ConsumerDelegationRevoked" }, ({ data }) => ConsumerDelegationRevokedV2.toBinary(data))
|
|
15
|
+
.exhaustive();
|
|
16
|
+
}
|
|
17
|
+
export const DelegationEventV2 = z.discriminatedUnion("type", [
|
|
18
|
+
z.object({
|
|
19
|
+
event_version: z.literal(2),
|
|
20
|
+
type: z.literal("ProducerDelegationSubmitted"),
|
|
21
|
+
data: protobufDecoder(ProducerDelegationSubmittedV2),
|
|
22
|
+
stream_id: z.string(),
|
|
23
|
+
version: z.number(),
|
|
24
|
+
timestamp: z.coerce.date(),
|
|
25
|
+
}),
|
|
26
|
+
z.object({
|
|
27
|
+
event_version: z.literal(2),
|
|
28
|
+
type: z.literal("ProducerDelegationApproved"),
|
|
29
|
+
data: protobufDecoder(ProducerDelegationApprovedV2),
|
|
30
|
+
stream_id: z.string(),
|
|
31
|
+
version: z.number(),
|
|
32
|
+
timestamp: z.coerce.date(),
|
|
33
|
+
}),
|
|
34
|
+
z.object({
|
|
35
|
+
event_version: z.literal(2),
|
|
36
|
+
type: z.literal("ProducerDelegationRejected"),
|
|
37
|
+
data: protobufDecoder(ProducerDelegationRejectedV2),
|
|
38
|
+
stream_id: z.string(),
|
|
39
|
+
version: z.number(),
|
|
40
|
+
timestamp: z.coerce.date(),
|
|
41
|
+
}),
|
|
42
|
+
z.object({
|
|
43
|
+
event_version: z.literal(2),
|
|
44
|
+
type: z.literal("ProducerDelegationRevoked"),
|
|
45
|
+
data: protobufDecoder(ProducerDelegationRevokedV2),
|
|
46
|
+
stream_id: z.string(),
|
|
47
|
+
version: z.number(),
|
|
48
|
+
timestamp: z.coerce.date(),
|
|
49
|
+
}),
|
|
50
|
+
z.object({
|
|
51
|
+
event_version: z.literal(2),
|
|
52
|
+
type: z.literal("ConsumerDelegationSubmitted"),
|
|
53
|
+
data: protobufDecoder(ConsumerDelegationSubmittedV2),
|
|
54
|
+
stream_id: z.string(),
|
|
55
|
+
version: z.number(),
|
|
56
|
+
timestamp: z.coerce.date(),
|
|
57
|
+
}),
|
|
58
|
+
z.object({
|
|
59
|
+
event_version: z.literal(2),
|
|
60
|
+
type: z.literal("ConsumerDelegationApproved"),
|
|
61
|
+
data: protobufDecoder(ConsumerDelegationApprovedV2),
|
|
62
|
+
stream_id: z.string(),
|
|
63
|
+
version: z.number(),
|
|
64
|
+
timestamp: z.coerce.date(),
|
|
65
|
+
}),
|
|
66
|
+
z.object({
|
|
67
|
+
event_version: z.literal(2),
|
|
68
|
+
type: z.literal("ConsumerDelegationRejected"),
|
|
69
|
+
data: protobufDecoder(ConsumerDelegationRejectedV2),
|
|
70
|
+
stream_id: z.string(),
|
|
71
|
+
version: z.number(),
|
|
72
|
+
timestamp: z.coerce.date(),
|
|
73
|
+
}),
|
|
74
|
+
z.object({
|
|
75
|
+
event_version: z.literal(2),
|
|
76
|
+
type: z.literal("ConsumerDelegationRevoked"),
|
|
77
|
+
data: protobufDecoder(ConsumerDelegationRevokedV2),
|
|
78
|
+
stream_id: z.string(),
|
|
79
|
+
version: z.number(),
|
|
80
|
+
timestamp: z.coerce.date(),
|
|
81
|
+
}),
|
|
82
|
+
]);
|
|
@@ -0,0 +1,81 @@
|
|
|
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("../gen/v2/delegation/events.js").ProducerDelegationSubmittedV2;
|
|
22
|
+
stream_id: string;
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
} | {
|
|
25
|
+
event_version: 2;
|
|
26
|
+
type: "ProducerDelegationApproved";
|
|
27
|
+
version: number;
|
|
28
|
+
data: import("../gen/v2/delegation/events.js").ProducerDelegationApprovedV2;
|
|
29
|
+
stream_id: string;
|
|
30
|
+
timestamp: Date;
|
|
31
|
+
} | {
|
|
32
|
+
event_version: 2;
|
|
33
|
+
type: "ProducerDelegationRejected";
|
|
34
|
+
version: number;
|
|
35
|
+
data: import("../gen/v2/delegation/events.js").ProducerDelegationRejectedV2;
|
|
36
|
+
stream_id: string;
|
|
37
|
+
timestamp: Date;
|
|
38
|
+
} | {
|
|
39
|
+
event_version: 2;
|
|
40
|
+
type: "ProducerDelegationRevoked";
|
|
41
|
+
version: number;
|
|
42
|
+
data: import("../gen/v2/delegation/events.js").ProducerDelegationRevokedV2;
|
|
43
|
+
stream_id: string;
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
} | {
|
|
46
|
+
event_version: 2;
|
|
47
|
+
type: "ConsumerDelegationSubmitted";
|
|
48
|
+
version: number;
|
|
49
|
+
data: import("../gen/v2/delegation/events.js").ConsumerDelegationSubmittedV2;
|
|
50
|
+
stream_id: string;
|
|
51
|
+
timestamp: Date;
|
|
52
|
+
} | {
|
|
53
|
+
event_version: 2;
|
|
54
|
+
type: "ConsumerDelegationApproved";
|
|
55
|
+
version: number;
|
|
56
|
+
data: import("../gen/v2/delegation/events.js").ConsumerDelegationApprovedV2;
|
|
57
|
+
stream_id: string;
|
|
58
|
+
timestamp: Date;
|
|
59
|
+
} | {
|
|
60
|
+
event_version: 2;
|
|
61
|
+
type: "ConsumerDelegationRejected";
|
|
62
|
+
version: number;
|
|
63
|
+
data: import("../gen/v2/delegation/events.js").ConsumerDelegationRejectedV2;
|
|
64
|
+
stream_id: string;
|
|
65
|
+
timestamp: Date;
|
|
66
|
+
} | {
|
|
67
|
+
event_version: 2;
|
|
68
|
+
type: "ConsumerDelegationRevoked";
|
|
69
|
+
version: number;
|
|
70
|
+
data: import("../gen/v2/delegation/events.js").ConsumerDelegationRevokedV2;
|
|
71
|
+
stream_id: string;
|
|
72
|
+
timestamp: Date;
|
|
73
|
+
}, z.objectInputType<{
|
|
74
|
+
event_version: z.ZodLiteral<1>;
|
|
75
|
+
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
76
|
+
event_version: z.ZodLiteral<2>;
|
|
77
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
78
|
+
export type DelegationEventType = DelegationEvent["type"];
|
|
79
|
+
export type DelegationEvent = z.infer<typeof DelegationEvent>;
|
|
80
|
+
export { DelegationEventV2 };
|
|
81
|
+
//# 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, EServiceDescriptorDelegateSubmittedV2, EServiceDescriptorDelegatorApprovedV2, EServiceDescriptorDelegatorRejectedV2 } 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, EServiceDescriptorDelegateSubmittedV2, EServiceDescriptorDelegatorApprovedV2, EServiceDescriptorDelegatorRejectedV2, EServiceIsClientAccessDelegableDisabledV2, EServiceIsClientAccessDelegableEnabledV2, EServiceIsDelegableDisabledV2, EServiceIsDelegableEnabledV2 } 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>;
|
|
@@ -463,6 +463,90 @@ export declare const EServiceEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
463
463
|
stream_id: string;
|
|
464
464
|
timestamp: Date;
|
|
465
465
|
data?: any;
|
|
466
|
+
}>, z.ZodObject<{
|
|
467
|
+
event_version: z.ZodLiteral<2>;
|
|
468
|
+
type: z.ZodLiteral<"EServiceIsDelegableEnabled">;
|
|
469
|
+
data: z.ZodEffects<z.ZodAny, EServiceIsDelegableEnabledV2, any>;
|
|
470
|
+
stream_id: z.ZodString;
|
|
471
|
+
version: z.ZodNumber;
|
|
472
|
+
timestamp: z.ZodDate;
|
|
473
|
+
}, "strip", z.ZodTypeAny, {
|
|
474
|
+
event_version: 2;
|
|
475
|
+
type: "EServiceIsDelegableEnabled";
|
|
476
|
+
version: number;
|
|
477
|
+
data: EServiceIsDelegableEnabledV2;
|
|
478
|
+
stream_id: string;
|
|
479
|
+
timestamp: Date;
|
|
480
|
+
}, {
|
|
481
|
+
event_version: 2;
|
|
482
|
+
type: "EServiceIsDelegableEnabled";
|
|
483
|
+
version: number;
|
|
484
|
+
stream_id: string;
|
|
485
|
+
timestamp: Date;
|
|
486
|
+
data?: any;
|
|
487
|
+
}>, z.ZodObject<{
|
|
488
|
+
event_version: z.ZodLiteral<2>;
|
|
489
|
+
type: z.ZodLiteral<"EServiceIsDelegableDisabled">;
|
|
490
|
+
data: z.ZodEffects<z.ZodAny, EServiceIsDelegableDisabledV2, any>;
|
|
491
|
+
stream_id: z.ZodString;
|
|
492
|
+
version: z.ZodNumber;
|
|
493
|
+
timestamp: z.ZodDate;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
event_version: 2;
|
|
496
|
+
type: "EServiceIsDelegableDisabled";
|
|
497
|
+
version: number;
|
|
498
|
+
data: EServiceIsDelegableDisabledV2;
|
|
499
|
+
stream_id: string;
|
|
500
|
+
timestamp: Date;
|
|
501
|
+
}, {
|
|
502
|
+
event_version: 2;
|
|
503
|
+
type: "EServiceIsDelegableDisabled";
|
|
504
|
+
version: number;
|
|
505
|
+
stream_id: string;
|
|
506
|
+
timestamp: Date;
|
|
507
|
+
data?: any;
|
|
508
|
+
}>, z.ZodObject<{
|
|
509
|
+
event_version: z.ZodLiteral<2>;
|
|
510
|
+
type: z.ZodLiteral<"EServiceIsClientAccessDelegableEnabled">;
|
|
511
|
+
data: z.ZodEffects<z.ZodAny, EServiceIsClientAccessDelegableEnabledV2, any>;
|
|
512
|
+
stream_id: z.ZodString;
|
|
513
|
+
version: z.ZodNumber;
|
|
514
|
+
timestamp: z.ZodDate;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
event_version: 2;
|
|
517
|
+
type: "EServiceIsClientAccessDelegableEnabled";
|
|
518
|
+
version: number;
|
|
519
|
+
data: EServiceIsClientAccessDelegableEnabledV2;
|
|
520
|
+
stream_id: string;
|
|
521
|
+
timestamp: Date;
|
|
522
|
+
}, {
|
|
523
|
+
event_version: 2;
|
|
524
|
+
type: "EServiceIsClientAccessDelegableEnabled";
|
|
525
|
+
version: number;
|
|
526
|
+
stream_id: string;
|
|
527
|
+
timestamp: Date;
|
|
528
|
+
data?: any;
|
|
529
|
+
}>, z.ZodObject<{
|
|
530
|
+
event_version: z.ZodLiteral<2>;
|
|
531
|
+
type: z.ZodLiteral<"EServiceIsClientAccessDelegableDisabled">;
|
|
532
|
+
data: z.ZodEffects<z.ZodAny, EServiceIsClientAccessDelegableDisabledV2, any>;
|
|
533
|
+
stream_id: z.ZodString;
|
|
534
|
+
version: z.ZodNumber;
|
|
535
|
+
timestamp: z.ZodDate;
|
|
536
|
+
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
event_version: 2;
|
|
538
|
+
type: "EServiceIsClientAccessDelegableDisabled";
|
|
539
|
+
version: number;
|
|
540
|
+
data: EServiceIsClientAccessDelegableDisabledV2;
|
|
541
|
+
stream_id: string;
|
|
542
|
+
timestamp: Date;
|
|
543
|
+
}, {
|
|
544
|
+
event_version: 2;
|
|
545
|
+
type: "EServiceIsClientAccessDelegableDisabled";
|
|
546
|
+
version: number;
|
|
547
|
+
stream_id: string;
|
|
548
|
+
timestamp: Date;
|
|
549
|
+
data?: any;
|
|
466
550
|
}>]>;
|
|
467
551
|
export type EServiceEventV2 = z.infer<typeof EServiceEventV2>;
|
|
468
552
|
//# sourceMappingURL=eventsV2.d.ts.map
|
|
@@ -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,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,mCAAmC,EACnC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,EACpC,6BAA6B,EAC7B,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,4BAA4B,EAC5B,qCAAqC,EACrC,qCAAqC,EACrC,qCAAqC,
|
|
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,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,mCAAmC,EACnC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,EACpC,6BAA6B,EAC7B,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,4BAA4B,EAC5B,qCAAqC,EACrC,qCAAqC,EACrC,qCAAqC,EACrC,yCAAyC,EACzC,wCAAwC,EACxC,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,8BAA8B,CAAC;AAEtC,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,eAAe,GACrB,UAAU,CAiFZ;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiN1B,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, EServiceDescriptorDelegateSubmittedV2, EServiceDescriptorDelegatorApprovedV2, EServiceDescriptorDelegatorRejectedV2, } 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, EServiceDescriptorDelegateSubmittedV2, EServiceDescriptorDelegatorApprovedV2, EServiceDescriptorDelegatorRejectedV2, EServiceIsClientAccessDelegableDisabledV2, EServiceIsClientAccessDelegableEnabledV2, EServiceIsDelegableDisabledV2, EServiceIsDelegableEnabledV2, } 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))
|
|
@@ -26,6 +26,10 @@ export function eServiceEventToBinaryDataV2(event) {
|
|
|
26
26
|
.with({ type: "EServiceDescriptorDelegateSubmitted" }, ({ data }) => EServiceDescriptorDelegateSubmittedV2.toBinary(data))
|
|
27
27
|
.with({ type: "EServiceDescriptorDelegatorApproved" }, ({ data }) => EServiceDescriptorDelegatorApprovedV2.toBinary(data))
|
|
28
28
|
.with({ type: "EServiceDescriptorDelegatorRejected" }, ({ data }) => EServiceDescriptorDelegatorRejectedV2.toBinary(data))
|
|
29
|
+
.with({ type: "EServiceIsDelegableEnabled" }, ({ data }) => EServiceIsDelegableEnabledV2.toBinary(data))
|
|
30
|
+
.with({ type: "EServiceIsDelegableDisabled" }, ({ data }) => EServiceIsDelegableDisabledV2.toBinary(data))
|
|
31
|
+
.with({ type: "EServiceIsClientAccessDelegableEnabled" }, ({ data }) => EServiceIsClientAccessDelegableEnabledV2.toBinary(data))
|
|
32
|
+
.with({ type: "EServiceIsClientAccessDelegableDisabled" }, ({ data }) => EServiceIsClientAccessDelegableDisabledV2.toBinary(data))
|
|
29
33
|
.exhaustive();
|
|
30
34
|
}
|
|
31
35
|
export const EServiceEventV2 = z.discriminatedUnion("type", [
|
|
@@ -205,4 +209,36 @@ export const EServiceEventV2 = z.discriminatedUnion("type", [
|
|
|
205
209
|
version: z.number(),
|
|
206
210
|
timestamp: z.coerce.date(),
|
|
207
211
|
}),
|
|
212
|
+
z.object({
|
|
213
|
+
event_version: z.literal(2),
|
|
214
|
+
type: z.literal("EServiceIsDelegableEnabled"),
|
|
215
|
+
data: protobufDecoder(EServiceIsDelegableEnabledV2),
|
|
216
|
+
stream_id: z.string(),
|
|
217
|
+
version: z.number(),
|
|
218
|
+
timestamp: z.coerce.date(),
|
|
219
|
+
}),
|
|
220
|
+
z.object({
|
|
221
|
+
event_version: z.literal(2),
|
|
222
|
+
type: z.literal("EServiceIsDelegableDisabled"),
|
|
223
|
+
data: protobufDecoder(EServiceIsDelegableDisabledV2),
|
|
224
|
+
stream_id: z.string(),
|
|
225
|
+
version: z.number(),
|
|
226
|
+
timestamp: z.coerce.date(),
|
|
227
|
+
}),
|
|
228
|
+
z.object({
|
|
229
|
+
event_version: z.literal(2),
|
|
230
|
+
type: z.literal("EServiceIsClientAccessDelegableEnabled"),
|
|
231
|
+
data: protobufDecoder(EServiceIsClientAccessDelegableEnabledV2),
|
|
232
|
+
stream_id: z.string(),
|
|
233
|
+
version: z.number(),
|
|
234
|
+
timestamp: z.coerce.date(),
|
|
235
|
+
}),
|
|
236
|
+
z.object({
|
|
237
|
+
event_version: z.literal(2),
|
|
238
|
+
type: z.literal("EServiceIsClientAccessDelegableDisabled"),
|
|
239
|
+
data: protobufDecoder(EServiceIsClientAccessDelegableDisabledV2),
|
|
240
|
+
stream_id: z.string(),
|
|
241
|
+
version: z.number(),
|
|
242
|
+
timestamp: z.coerce.date(),
|
|
243
|
+
}),
|
|
208
244
|
]);
|
package/dist/eservice/index.d.ts
CHANGED
|
@@ -246,6 +246,34 @@ export declare const EServiceEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"event_
|
|
|
246
246
|
data: import("../index.js").EServiceDescriptorDelegatorRejectedV2;
|
|
247
247
|
stream_id: string;
|
|
248
248
|
timestamp: Date;
|
|
249
|
+
} | {
|
|
250
|
+
event_version: 2;
|
|
251
|
+
type: "EServiceIsDelegableEnabled";
|
|
252
|
+
version: number;
|
|
253
|
+
data: import("../index.js").EServiceIsDelegableEnabledV2;
|
|
254
|
+
stream_id: string;
|
|
255
|
+
timestamp: Date;
|
|
256
|
+
} | {
|
|
257
|
+
event_version: 2;
|
|
258
|
+
type: "EServiceIsDelegableDisabled";
|
|
259
|
+
version: number;
|
|
260
|
+
data: import("../index.js").EServiceIsDelegableDisabledV2;
|
|
261
|
+
stream_id: string;
|
|
262
|
+
timestamp: Date;
|
|
263
|
+
} | {
|
|
264
|
+
event_version: 2;
|
|
265
|
+
type: "EServiceIsClientAccessDelegableEnabled";
|
|
266
|
+
version: number;
|
|
267
|
+
data: import("../index.js").EServiceIsClientAccessDelegableEnabledV2;
|
|
268
|
+
stream_id: string;
|
|
269
|
+
timestamp: Date;
|
|
270
|
+
} | {
|
|
271
|
+
event_version: 2;
|
|
272
|
+
type: "EServiceIsClientAccessDelegableDisabled";
|
|
273
|
+
version: number;
|
|
274
|
+
data: import("../index.js").EServiceIsClientAccessDelegableDisabledV2;
|
|
275
|
+
stream_id: string;
|
|
276
|
+
timestamp: Date;
|
|
249
277
|
}, z.objectInputType<{
|
|
250
278
|
event_version: z.ZodLiteral<1>;
|
|
251
279
|
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
@@ -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"}
|