@pagopa/interop-outbound-models 1.4.2 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/eservice/eventsV2.d.ts +127 -1
- package/dist/eservice/eventsV2.d.ts.map +1 -1
- package/dist/eservice/eventsV2.js +55 -1
- package/dist/eservice/index.d.ts +42 -0
- package/dist/eservice/index.d.ts.map +1 -1
- package/dist/eservice-template/eventsV2.d.ts +426 -0
- package/dist/eservice-template/eventsV2.d.ts.map +1 -0
- package/dist/eservice-template/eventsV2.js +190 -0
- package/dist/eservice-template/index.d.ts +165 -0
- package/dist/eservice-template/index.d.ts.map +1 -0
- package/dist/eservice-template/index.js +36 -0
- package/dist/gen/v2/eservice/eservice.d.ts +89 -0
- package/dist/gen/v2/eservice/eservice.d.ts.map +1 -1
- package/dist/gen/v2/eservice/eservice.js +203 -2
- package/dist/gen/v2/eservice/events.d.ts +169 -0
- package/dist/gen/v2/eservice/events.d.ts.map +1 -1
- package/dist/gen/v2/eservice/events.js +394 -0
- package/dist/gen/v2/eservice-template/eservice-template.d.ts +164 -0
- package/dist/gen/v2/eservice-template/eservice-template.d.ts.map +1 -0
- package/dist/gen/v2/eservice-template/eservice-template.js +299 -0
- package/dist/gen/v2/eservice-template/events.d.ts +473 -0
- package/dist/gen/v2/eservice-template/events.d.ts.map +1 -0
- package/dist/gen/v2/eservice-template/events.js +1093 -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/eservice/eservice.proto +21 -0
- package/proto/v2/eservice/events.proto +38 -0
- package/proto/v2/eservice-template/eservice-template.proto +43 -0
- package/proto/v2/eservice-template/events.proto +106 -0
- package/src/eservice/eventsV2.ts +84 -0
- package/src/eservice-template/eventsV2.ts +257 -0
- package/src/eservice-template/index.ts +53 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { EServiceTemplateEventV2 } from "./eventsV2.js";
|
|
3
|
+
export declare function encodeOutboundEServiceTemplateEvent(event: EServiceTemplateEvent): string;
|
|
4
|
+
export declare function decodeOutboundEServiceTemplateEvent(encodedEvent: string): EServiceTemplateEvent;
|
|
5
|
+
export declare const EServiceTemplateEvent: 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: "EServiceTemplateVersionActivated";
|
|
20
|
+
version: number;
|
|
21
|
+
data: import("../index.js").EServiceTemplateVersionActivatedV2;
|
|
22
|
+
stream_id: string;
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
} | {
|
|
25
|
+
event_version: 2;
|
|
26
|
+
type: "EServiceTemplateAdded";
|
|
27
|
+
version: number;
|
|
28
|
+
data: import("../index.js").EServiceTemplateAddedV2;
|
|
29
|
+
stream_id: string;
|
|
30
|
+
timestamp: Date;
|
|
31
|
+
} | {
|
|
32
|
+
event_version: 2;
|
|
33
|
+
type: "EServiceTemplateIntendedTargetUpdated";
|
|
34
|
+
version: number;
|
|
35
|
+
data: import("../index.js").EServiceTemplateIntendedTargetUpdatedV2;
|
|
36
|
+
stream_id: string;
|
|
37
|
+
timestamp: Date;
|
|
38
|
+
} | {
|
|
39
|
+
event_version: 2;
|
|
40
|
+
type: "EServiceTemplateDescriptionUpdated";
|
|
41
|
+
version: number;
|
|
42
|
+
data: import("../index.js").EServiceTemplateDescriptionUpdatedV2;
|
|
43
|
+
stream_id: string;
|
|
44
|
+
timestamp: Date;
|
|
45
|
+
} | {
|
|
46
|
+
event_version: 2;
|
|
47
|
+
type: "EServiceTemplateDeleted";
|
|
48
|
+
version: number;
|
|
49
|
+
data: import("../index.js").EServiceTemplateDeletedV2;
|
|
50
|
+
stream_id: string;
|
|
51
|
+
timestamp: Date;
|
|
52
|
+
} | {
|
|
53
|
+
event_version: 2;
|
|
54
|
+
type: "EServiceTemplateDraftVersionDeleted";
|
|
55
|
+
version: number;
|
|
56
|
+
data: import("../index.js").EServiceTemplateDraftVersionDeletedV2;
|
|
57
|
+
stream_id: string;
|
|
58
|
+
timestamp: Date;
|
|
59
|
+
} | {
|
|
60
|
+
event_version: 2;
|
|
61
|
+
type: "EServiceTemplateDraftVersionUpdated";
|
|
62
|
+
version: number;
|
|
63
|
+
data: import("../index.js").EServiceTemplateDraftVersionUpdatedV2;
|
|
64
|
+
stream_id: string;
|
|
65
|
+
timestamp: Date;
|
|
66
|
+
} | {
|
|
67
|
+
event_version: 2;
|
|
68
|
+
type: "EServiceTemplateDraftUpdated";
|
|
69
|
+
version: number;
|
|
70
|
+
data: import("../index.js").EServiceTemplateDraftUpdatedV2;
|
|
71
|
+
stream_id: string;
|
|
72
|
+
timestamp: Date;
|
|
73
|
+
} | {
|
|
74
|
+
event_version: 2;
|
|
75
|
+
type: "EServiceTemplateNameUpdated";
|
|
76
|
+
version: number;
|
|
77
|
+
data: import("../index.js").EServiceTemplateNameUpdatedV2;
|
|
78
|
+
stream_id: string;
|
|
79
|
+
timestamp: Date;
|
|
80
|
+
} | {
|
|
81
|
+
event_version: 2;
|
|
82
|
+
type: "EServiceTemplateVersionSuspended";
|
|
83
|
+
version: number;
|
|
84
|
+
data: import("../index.js").EServiceTemplateVersionSuspendedV2;
|
|
85
|
+
stream_id: string;
|
|
86
|
+
timestamp: Date;
|
|
87
|
+
} | {
|
|
88
|
+
event_version: 2;
|
|
89
|
+
type: "EServiceTemplateVersionAdded";
|
|
90
|
+
version: number;
|
|
91
|
+
data: import("../index.js").EServiceTemplateVersionAddedV2;
|
|
92
|
+
stream_id: string;
|
|
93
|
+
timestamp: Date;
|
|
94
|
+
} | {
|
|
95
|
+
event_version: 2;
|
|
96
|
+
type: "EServiceTemplateVersionAttributesUpdated";
|
|
97
|
+
version: number;
|
|
98
|
+
data: import("../index.js").EServiceTemplateVersionAttributesUpdatedV2;
|
|
99
|
+
stream_id: string;
|
|
100
|
+
timestamp: Date;
|
|
101
|
+
} | {
|
|
102
|
+
event_version: 2;
|
|
103
|
+
type: "EServiceTemplateVersionDocumentAdded";
|
|
104
|
+
version: number;
|
|
105
|
+
data: import("../index.js").EServiceTemplateVersionDocumentAddedV2;
|
|
106
|
+
stream_id: string;
|
|
107
|
+
timestamp: Date;
|
|
108
|
+
} | {
|
|
109
|
+
event_version: 2;
|
|
110
|
+
type: "EServiceTemplateVersionDocumentDeleted";
|
|
111
|
+
version: number;
|
|
112
|
+
data: import("../index.js").EServiceTemplateVersionDocumentDeletedV2;
|
|
113
|
+
stream_id: string;
|
|
114
|
+
timestamp: Date;
|
|
115
|
+
} | {
|
|
116
|
+
event_version: 2;
|
|
117
|
+
type: "EServiceTemplateVersionDocumentUpdated";
|
|
118
|
+
version: number;
|
|
119
|
+
data: import("../index.js").EServiceTemplateVersionDocumentUpdatedV2;
|
|
120
|
+
stream_id: string;
|
|
121
|
+
timestamp: Date;
|
|
122
|
+
} | {
|
|
123
|
+
event_version: 2;
|
|
124
|
+
type: "EServiceTemplateVersionInterfaceAdded";
|
|
125
|
+
version: number;
|
|
126
|
+
data: import("../index.js").EServiceTemplateVersionInterfaceAddedV2;
|
|
127
|
+
stream_id: string;
|
|
128
|
+
timestamp: Date;
|
|
129
|
+
} | {
|
|
130
|
+
event_version: 2;
|
|
131
|
+
type: "EServiceTemplateVersionInterfaceDeleted";
|
|
132
|
+
version: number;
|
|
133
|
+
data: import("../index.js").EServiceTemplateVersionInterfaceDeletedV2;
|
|
134
|
+
stream_id: string;
|
|
135
|
+
timestamp: Date;
|
|
136
|
+
} | {
|
|
137
|
+
event_version: 2;
|
|
138
|
+
type: "EServiceTemplateVersionInterfaceUpdated";
|
|
139
|
+
version: number;
|
|
140
|
+
data: import("../index.js").EServiceTemplateVersionInterfaceUpdatedV2;
|
|
141
|
+
stream_id: string;
|
|
142
|
+
timestamp: Date;
|
|
143
|
+
} | {
|
|
144
|
+
event_version: 2;
|
|
145
|
+
type: "EServiceTemplateVersionPublished";
|
|
146
|
+
version: number;
|
|
147
|
+
data: import("../index.js").EServiceTemplateVersionPublishedV2;
|
|
148
|
+
stream_id: string;
|
|
149
|
+
timestamp: Date;
|
|
150
|
+
} | {
|
|
151
|
+
event_version: 2;
|
|
152
|
+
type: "EServiceTemplateVersionQuotasUpdated";
|
|
153
|
+
version: number;
|
|
154
|
+
data: import("../index.js").EServiceTemplateVersionQuotasUpdatedV2;
|
|
155
|
+
stream_id: string;
|
|
156
|
+
timestamp: Date;
|
|
157
|
+
}, z.objectInputType<{
|
|
158
|
+
event_version: z.ZodLiteral<1>;
|
|
159
|
+
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
160
|
+
event_version: z.ZodLiteral<2>;
|
|
161
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
162
|
+
export type EServiceTemplateEventType = EServiceTemplateEvent["type"];
|
|
163
|
+
export type EServiceTemplateEvent = z.infer<typeof EServiceTemplateEvent>;
|
|
164
|
+
export { EServiceTemplateEventV2 };
|
|
165
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eservice-template/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,uBAAuB,EAExB,MAAM,eAAe,CAAC;AAUvB,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,qBAAqB,GAC3B,MAAM,CASR;AAED,wBAAgB,mCAAmC,CACjD,YAAY,EAAE,MAAM,GACnB,qBAAqB,CAEvB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAahC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,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 { EServiceTemplateEventV2, eserviceTemplateEventToBinaryDataV2, } from "./eventsV2.js";
|
|
5
|
+
function eserviceTemplateEventToBinaryData(event) {
|
|
6
|
+
return match(event)
|
|
7
|
+
.with({ event_version: 2 }, eserviceTemplateEventToBinaryDataV2)
|
|
8
|
+
.exhaustive();
|
|
9
|
+
}
|
|
10
|
+
export function encodeOutboundEServiceTemplateEvent(event) {
|
|
11
|
+
return JSON.stringify({
|
|
12
|
+
event_version: event.event_version,
|
|
13
|
+
type: event.type,
|
|
14
|
+
data: Buffer.from(eserviceTemplateEventToBinaryData(event)).toString("hex"),
|
|
15
|
+
stream_id: event.stream_id,
|
|
16
|
+
version: event.version,
|
|
17
|
+
timestamp: event.timestamp,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export function decodeOutboundEServiceTemplateEvent(encodedEvent) {
|
|
21
|
+
return EServiceTemplateEvent.parse(JSON.parse(encodedEvent));
|
|
22
|
+
}
|
|
23
|
+
export const EServiceTemplateEvent = 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 }, () => EServiceTemplateEventV2.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 { EServiceTemplateEventV2 };
|
|
@@ -52,6 +52,23 @@ export interface EServiceV2 {
|
|
|
52
52
|
* @generated from protobuf field: optional bool isClientAccessDelegable = 11;
|
|
53
53
|
*/
|
|
54
54
|
isClientAccessDelegable?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf field: optional eservice.v2.EServiceTemplateRefV2 templateRef = 13;
|
|
57
|
+
*/
|
|
58
|
+
templateRef?: EServiceTemplateRefV2;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf message eservice.v2.EServiceTemplateRefV2
|
|
62
|
+
*/
|
|
63
|
+
export interface EServiceTemplateRefV2 {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: string id = 1;
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf field: optional string instanceLabel = 2;
|
|
70
|
+
*/
|
|
71
|
+
instanceLabel?: string;
|
|
55
72
|
}
|
|
56
73
|
/**
|
|
57
74
|
* @generated from protobuf message eservice.v2.EServiceAttributeValueV2
|
|
@@ -185,6 +202,48 @@ export interface EServiceDescriptorV2 {
|
|
|
185
202
|
* @generated from protobuf field: repeated eservice.v2.DescriptorRejectionReasonV2 rejectionReasons = 19;
|
|
186
203
|
*/
|
|
187
204
|
rejectionReasons: DescriptorRejectionReasonV2[];
|
|
205
|
+
/**
|
|
206
|
+
* @generated from protobuf field: optional eservice.v2.EServiceTemplateVersionRefV2 templateVersionRef = 20;
|
|
207
|
+
*/
|
|
208
|
+
templateVersionRef?: EServiceTemplateVersionRefV2;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @generated from protobuf message eservice.v2.TemplateInstanceInterfaceMetadataV2
|
|
212
|
+
*/
|
|
213
|
+
export interface TemplateInstanceInterfaceMetadataV2 {
|
|
214
|
+
/**
|
|
215
|
+
* @generated from protobuf field: string contactName = 1;
|
|
216
|
+
*/
|
|
217
|
+
contactName: string;
|
|
218
|
+
/**
|
|
219
|
+
* @generated from protobuf field: string contactEmail = 2;
|
|
220
|
+
*/
|
|
221
|
+
contactEmail: string;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from protobuf field: string contactUrl = 3;
|
|
224
|
+
*/
|
|
225
|
+
contactUrl: string;
|
|
226
|
+
/**
|
|
227
|
+
* @generated from protobuf field: string termsAndConditionsUrl = 4;
|
|
228
|
+
*/
|
|
229
|
+
termsAndConditionsUrl: string;
|
|
230
|
+
/**
|
|
231
|
+
* @generated from protobuf field: repeated string serverUrls = 5;
|
|
232
|
+
*/
|
|
233
|
+
serverUrls: string[];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @generated from protobuf message eservice.v2.EServiceTemplateVersionRefV2
|
|
237
|
+
*/
|
|
238
|
+
export interface EServiceTemplateVersionRefV2 {
|
|
239
|
+
/**
|
|
240
|
+
* @generated from protobuf field: string id = 1;
|
|
241
|
+
*/
|
|
242
|
+
id: string;
|
|
243
|
+
/**
|
|
244
|
+
* @generated from protobuf field: optional eservice.v2.TemplateInstanceInterfaceMetadataV2 interfaceMetadata = 2;
|
|
245
|
+
*/
|
|
246
|
+
interfaceMetadata?: TemplateInstanceInterfaceMetadataV2;
|
|
188
247
|
}
|
|
189
248
|
/**
|
|
190
249
|
* @generated from protobuf message eservice.v2.EServiceDocumentV2
|
|
@@ -293,6 +352,16 @@ declare class EServiceV2$Type extends MessageType<EServiceV2> {
|
|
|
293
352
|
* @generated MessageType for protobuf message eservice.v2.EServiceV2
|
|
294
353
|
*/
|
|
295
354
|
export declare const EServiceV2: EServiceV2$Type;
|
|
355
|
+
declare class EServiceTemplateRefV2$Type extends MessageType<EServiceTemplateRefV2> {
|
|
356
|
+
constructor();
|
|
357
|
+
create(value?: PartialMessage<EServiceTemplateRefV2>): EServiceTemplateRefV2;
|
|
358
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EServiceTemplateRefV2): EServiceTemplateRefV2;
|
|
359
|
+
internalBinaryWrite(message: EServiceTemplateRefV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* @generated MessageType for protobuf message eservice.v2.EServiceTemplateRefV2
|
|
363
|
+
*/
|
|
364
|
+
export declare const EServiceTemplateRefV2: EServiceTemplateRefV2$Type;
|
|
296
365
|
declare class EServiceAttributeValueV2$Type extends MessageType<EServiceAttributeValueV2> {
|
|
297
366
|
constructor();
|
|
298
367
|
create(value?: PartialMessage<EServiceAttributeValueV2>): EServiceAttributeValueV2;
|
|
@@ -343,6 +412,26 @@ declare class EServiceDescriptorV2$Type extends MessageType<EServiceDescriptorV2
|
|
|
343
412
|
* @generated MessageType for protobuf message eservice.v2.EServiceDescriptorV2
|
|
344
413
|
*/
|
|
345
414
|
export declare const EServiceDescriptorV2: EServiceDescriptorV2$Type;
|
|
415
|
+
declare class TemplateInstanceInterfaceMetadataV2$Type extends MessageType<TemplateInstanceInterfaceMetadataV2> {
|
|
416
|
+
constructor();
|
|
417
|
+
create(value?: PartialMessage<TemplateInstanceInterfaceMetadataV2>): TemplateInstanceInterfaceMetadataV2;
|
|
418
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TemplateInstanceInterfaceMetadataV2): TemplateInstanceInterfaceMetadataV2;
|
|
419
|
+
internalBinaryWrite(message: TemplateInstanceInterfaceMetadataV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* @generated MessageType for protobuf message eservice.v2.TemplateInstanceInterfaceMetadataV2
|
|
423
|
+
*/
|
|
424
|
+
export declare const TemplateInstanceInterfaceMetadataV2: TemplateInstanceInterfaceMetadataV2$Type;
|
|
425
|
+
declare class EServiceTemplateVersionRefV2$Type extends MessageType<EServiceTemplateVersionRefV2> {
|
|
426
|
+
constructor();
|
|
427
|
+
create(value?: PartialMessage<EServiceTemplateVersionRefV2>): EServiceTemplateVersionRefV2;
|
|
428
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EServiceTemplateVersionRefV2): EServiceTemplateVersionRefV2;
|
|
429
|
+
internalBinaryWrite(message: EServiceTemplateVersionRefV2, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @generated MessageType for protobuf message eservice.v2.EServiceTemplateVersionRefV2
|
|
433
|
+
*/
|
|
434
|
+
export declare const EServiceTemplateVersionRefV2: EServiceTemplateVersionRefV2$Type;
|
|
346
435
|
declare class EServiceDocumentV2$Type extends MessageType<EServiceDocumentV2> {
|
|
347
436
|
constructor();
|
|
348
437
|
create(value?: PartialMessage<EServiceDocumentV2>): EServiceDocumentV2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eservice.d.ts","sourceRoot":"","sources":["../../../../src/gen/v2/eservice/eservice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAA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,cAAM,uBAAwB,SAAQ,WAAW,CAAC,kBAAkB,CAAC;;IAWjE,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,GAAG,kBAAkB;IAYtE,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,kBAAkB;IAkCtI,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAwBtH;AACD;;GAEG;AACH,eAAO,MAAM,kBAAkB,yBAAgC,CAAC"}
|
|
@@ -88,7 +88,8 @@ class EServiceV2$Type extends MessageType {
|
|
|
88
88
|
{ no: 8, name: "mode", kind: "enum", T: () => ["eservice.v2.EServiceModeV2", EServiceModeV2] },
|
|
89
89
|
{ no: 9, name: "isSignalHubEnabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
90
90
|
{ no: 10, name: "isConsumerDelegable", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
91
|
-
{ no: 11, name: "isClientAccessDelegable", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
91
|
+
{ no: 11, name: "isClientAccessDelegable", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
92
|
+
{ no: 13, name: "templateRef", kind: "message", T: () => EServiceTemplateRefV2 }
|
|
92
93
|
]);
|
|
93
94
|
}
|
|
94
95
|
create(value) {
|
|
@@ -143,6 +144,9 @@ class EServiceV2$Type extends MessageType {
|
|
|
143
144
|
case /* optional bool isClientAccessDelegable */ 11:
|
|
144
145
|
message.isClientAccessDelegable = reader.bool();
|
|
145
146
|
break;
|
|
147
|
+
case /* optional eservice.v2.EServiceTemplateRefV2 templateRef */ 13:
|
|
148
|
+
message.templateRef = EServiceTemplateRefV2.internalBinaryRead(reader, reader.uint32(), options, message.templateRef);
|
|
149
|
+
break;
|
|
146
150
|
default:
|
|
147
151
|
let u = options.readUnknownField;
|
|
148
152
|
if (u === "throw")
|
|
@@ -188,6 +192,9 @@ class EServiceV2$Type extends MessageType {
|
|
|
188
192
|
/* optional bool isClientAccessDelegable = 11; */
|
|
189
193
|
if (message.isClientAccessDelegable !== undefined)
|
|
190
194
|
writer.tag(11, WireType.Varint).bool(message.isClientAccessDelegable);
|
|
195
|
+
/* optional eservice.v2.EServiceTemplateRefV2 templateRef = 13; */
|
|
196
|
+
if (message.templateRef)
|
|
197
|
+
EServiceTemplateRefV2.internalBinaryWrite(message.templateRef, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
191
198
|
let u = options.writeUnknownFields;
|
|
192
199
|
if (u !== false)
|
|
193
200
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -199,6 +206,60 @@ class EServiceV2$Type extends MessageType {
|
|
|
199
206
|
*/
|
|
200
207
|
export const EServiceV2 = new EServiceV2$Type();
|
|
201
208
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
209
|
+
class EServiceTemplateRefV2$Type extends MessageType {
|
|
210
|
+
constructor() {
|
|
211
|
+
super("eservice.v2.EServiceTemplateRefV2", [
|
|
212
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
213
|
+
{ no: 2, name: "instanceLabel", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
214
|
+
]);
|
|
215
|
+
}
|
|
216
|
+
create(value) {
|
|
217
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
218
|
+
message.id = "";
|
|
219
|
+
if (value !== undefined)
|
|
220
|
+
reflectionMergePartial(this, message, value);
|
|
221
|
+
return message;
|
|
222
|
+
}
|
|
223
|
+
internalBinaryRead(reader, length, options, target) {
|
|
224
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
225
|
+
while (reader.pos < end) {
|
|
226
|
+
let [fieldNo, wireType] = reader.tag();
|
|
227
|
+
switch (fieldNo) {
|
|
228
|
+
case /* string id */ 1:
|
|
229
|
+
message.id = reader.string();
|
|
230
|
+
break;
|
|
231
|
+
case /* optional string instanceLabel */ 2:
|
|
232
|
+
message.instanceLabel = reader.string();
|
|
233
|
+
break;
|
|
234
|
+
default:
|
|
235
|
+
let u = options.readUnknownField;
|
|
236
|
+
if (u === "throw")
|
|
237
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
238
|
+
let d = reader.skip(wireType);
|
|
239
|
+
if (u !== false)
|
|
240
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return message;
|
|
244
|
+
}
|
|
245
|
+
internalBinaryWrite(message, writer, options) {
|
|
246
|
+
/* string id = 1; */
|
|
247
|
+
if (message.id !== "")
|
|
248
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
249
|
+
/* optional string instanceLabel = 2; */
|
|
250
|
+
if (message.instanceLabel !== undefined)
|
|
251
|
+
writer.tag(2, WireType.LengthDelimited).string(message.instanceLabel);
|
|
252
|
+
let u = options.writeUnknownFields;
|
|
253
|
+
if (u !== false)
|
|
254
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
255
|
+
return writer;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @generated MessageType for protobuf message eservice.v2.EServiceTemplateRefV2
|
|
260
|
+
*/
|
|
261
|
+
export const EServiceTemplateRefV2 = new EServiceTemplateRefV2$Type();
|
|
262
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
202
263
|
class EServiceAttributeValueV2$Type extends MessageType {
|
|
203
264
|
constructor() {
|
|
204
265
|
super("eservice.v2.EServiceAttributeValueV2", [
|
|
@@ -440,7 +501,8 @@ class EServiceDescriptorV2$Type extends MessageType {
|
|
|
440
501
|
{ no: 16, name: "deprecatedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
441
502
|
{ no: 17, name: "archivedAt", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
442
503
|
{ no: 18, name: "attributes", kind: "message", T: () => EServiceAttributesV2 },
|
|
443
|
-
{ no: 19, name: "rejectionReasons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DescriptorRejectionReasonV2 }
|
|
504
|
+
{ no: 19, name: "rejectionReasons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => DescriptorRejectionReasonV2 },
|
|
505
|
+
{ no: 20, name: "templateVersionRef", kind: "message", T: () => EServiceTemplateVersionRefV2 }
|
|
444
506
|
]);
|
|
445
507
|
}
|
|
446
508
|
create(value) {
|
|
@@ -523,6 +585,9 @@ class EServiceDescriptorV2$Type extends MessageType {
|
|
|
523
585
|
case /* repeated eservice.v2.DescriptorRejectionReasonV2 rejectionReasons */ 19:
|
|
524
586
|
message.rejectionReasons.push(DescriptorRejectionReasonV2.internalBinaryRead(reader, reader.uint32(), options));
|
|
525
587
|
break;
|
|
588
|
+
case /* optional eservice.v2.EServiceTemplateVersionRefV2 templateVersionRef */ 20:
|
|
589
|
+
message.templateVersionRef = EServiceTemplateVersionRefV2.internalBinaryRead(reader, reader.uint32(), options, message.templateVersionRef);
|
|
590
|
+
break;
|
|
526
591
|
default:
|
|
527
592
|
let u = options.readUnknownField;
|
|
528
593
|
if (u === "throw")
|
|
@@ -592,6 +657,9 @@ class EServiceDescriptorV2$Type extends MessageType {
|
|
|
592
657
|
/* repeated eservice.v2.DescriptorRejectionReasonV2 rejectionReasons = 19; */
|
|
593
658
|
for (let i = 0; i < message.rejectionReasons.length; i++)
|
|
594
659
|
DescriptorRejectionReasonV2.internalBinaryWrite(message.rejectionReasons[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
660
|
+
/* optional eservice.v2.EServiceTemplateVersionRefV2 templateVersionRef = 20; */
|
|
661
|
+
if (message.templateVersionRef)
|
|
662
|
+
EServiceTemplateVersionRefV2.internalBinaryWrite(message.templateVersionRef, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
595
663
|
let u = options.writeUnknownFields;
|
|
596
664
|
if (u !== false)
|
|
597
665
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -603,6 +671,139 @@ class EServiceDescriptorV2$Type extends MessageType {
|
|
|
603
671
|
*/
|
|
604
672
|
export const EServiceDescriptorV2 = new EServiceDescriptorV2$Type();
|
|
605
673
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
674
|
+
class TemplateInstanceInterfaceMetadataV2$Type extends MessageType {
|
|
675
|
+
constructor() {
|
|
676
|
+
super("eservice.v2.TemplateInstanceInterfaceMetadataV2", [
|
|
677
|
+
{ no: 1, name: "contactName", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
678
|
+
{ no: 2, name: "contactEmail", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
679
|
+
{ no: 3, name: "contactUrl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
680
|
+
{ no: 4, name: "termsAndConditionsUrl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
681
|
+
{ no: 5, name: "serverUrls", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
682
|
+
]);
|
|
683
|
+
}
|
|
684
|
+
create(value) {
|
|
685
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
686
|
+
message.contactName = "";
|
|
687
|
+
message.contactEmail = "";
|
|
688
|
+
message.contactUrl = "";
|
|
689
|
+
message.termsAndConditionsUrl = "";
|
|
690
|
+
message.serverUrls = [];
|
|
691
|
+
if (value !== undefined)
|
|
692
|
+
reflectionMergePartial(this, message, value);
|
|
693
|
+
return message;
|
|
694
|
+
}
|
|
695
|
+
internalBinaryRead(reader, length, options, target) {
|
|
696
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
697
|
+
while (reader.pos < end) {
|
|
698
|
+
let [fieldNo, wireType] = reader.tag();
|
|
699
|
+
switch (fieldNo) {
|
|
700
|
+
case /* string contactName */ 1:
|
|
701
|
+
message.contactName = reader.string();
|
|
702
|
+
break;
|
|
703
|
+
case /* string contactEmail */ 2:
|
|
704
|
+
message.contactEmail = reader.string();
|
|
705
|
+
break;
|
|
706
|
+
case /* string contactUrl */ 3:
|
|
707
|
+
message.contactUrl = reader.string();
|
|
708
|
+
break;
|
|
709
|
+
case /* string termsAndConditionsUrl */ 4:
|
|
710
|
+
message.termsAndConditionsUrl = reader.string();
|
|
711
|
+
break;
|
|
712
|
+
case /* repeated string serverUrls */ 5:
|
|
713
|
+
message.serverUrls.push(reader.string());
|
|
714
|
+
break;
|
|
715
|
+
default:
|
|
716
|
+
let u = options.readUnknownField;
|
|
717
|
+
if (u === "throw")
|
|
718
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
719
|
+
let d = reader.skip(wireType);
|
|
720
|
+
if (u !== false)
|
|
721
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return message;
|
|
725
|
+
}
|
|
726
|
+
internalBinaryWrite(message, writer, options) {
|
|
727
|
+
/* string contactName = 1; */
|
|
728
|
+
if (message.contactName !== "")
|
|
729
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contactName);
|
|
730
|
+
/* string contactEmail = 2; */
|
|
731
|
+
if (message.contactEmail !== "")
|
|
732
|
+
writer.tag(2, WireType.LengthDelimited).string(message.contactEmail);
|
|
733
|
+
/* string contactUrl = 3; */
|
|
734
|
+
if (message.contactUrl !== "")
|
|
735
|
+
writer.tag(3, WireType.LengthDelimited).string(message.contactUrl);
|
|
736
|
+
/* string termsAndConditionsUrl = 4; */
|
|
737
|
+
if (message.termsAndConditionsUrl !== "")
|
|
738
|
+
writer.tag(4, WireType.LengthDelimited).string(message.termsAndConditionsUrl);
|
|
739
|
+
/* repeated string serverUrls = 5; */
|
|
740
|
+
for (let i = 0; i < message.serverUrls.length; i++)
|
|
741
|
+
writer.tag(5, WireType.LengthDelimited).string(message.serverUrls[i]);
|
|
742
|
+
let u = options.writeUnknownFields;
|
|
743
|
+
if (u !== false)
|
|
744
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
745
|
+
return writer;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* @generated MessageType for protobuf message eservice.v2.TemplateInstanceInterfaceMetadataV2
|
|
750
|
+
*/
|
|
751
|
+
export const TemplateInstanceInterfaceMetadataV2 = new TemplateInstanceInterfaceMetadataV2$Type();
|
|
752
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
753
|
+
class EServiceTemplateVersionRefV2$Type extends MessageType {
|
|
754
|
+
constructor() {
|
|
755
|
+
super("eservice.v2.EServiceTemplateVersionRefV2", [
|
|
756
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
757
|
+
{ no: 2, name: "interfaceMetadata", kind: "message", T: () => TemplateInstanceInterfaceMetadataV2 }
|
|
758
|
+
]);
|
|
759
|
+
}
|
|
760
|
+
create(value) {
|
|
761
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
762
|
+
message.id = "";
|
|
763
|
+
if (value !== undefined)
|
|
764
|
+
reflectionMergePartial(this, message, value);
|
|
765
|
+
return message;
|
|
766
|
+
}
|
|
767
|
+
internalBinaryRead(reader, length, options, target) {
|
|
768
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
769
|
+
while (reader.pos < end) {
|
|
770
|
+
let [fieldNo, wireType] = reader.tag();
|
|
771
|
+
switch (fieldNo) {
|
|
772
|
+
case /* string id */ 1:
|
|
773
|
+
message.id = reader.string();
|
|
774
|
+
break;
|
|
775
|
+
case /* optional eservice.v2.TemplateInstanceInterfaceMetadataV2 interfaceMetadata */ 2:
|
|
776
|
+
message.interfaceMetadata = TemplateInstanceInterfaceMetadataV2.internalBinaryRead(reader, reader.uint32(), options, message.interfaceMetadata);
|
|
777
|
+
break;
|
|
778
|
+
default:
|
|
779
|
+
let u = options.readUnknownField;
|
|
780
|
+
if (u === "throw")
|
|
781
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
782
|
+
let d = reader.skip(wireType);
|
|
783
|
+
if (u !== false)
|
|
784
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
}
|
|
789
|
+
internalBinaryWrite(message, writer, options) {
|
|
790
|
+
/* string id = 1; */
|
|
791
|
+
if (message.id !== "")
|
|
792
|
+
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
793
|
+
/* optional eservice.v2.TemplateInstanceInterfaceMetadataV2 interfaceMetadata = 2; */
|
|
794
|
+
if (message.interfaceMetadata)
|
|
795
|
+
TemplateInstanceInterfaceMetadataV2.internalBinaryWrite(message.interfaceMetadata, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
796
|
+
let u = options.writeUnknownFields;
|
|
797
|
+
if (u !== false)
|
|
798
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
799
|
+
return writer;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @generated MessageType for protobuf message eservice.v2.EServiceTemplateVersionRefV2
|
|
804
|
+
*/
|
|
805
|
+
export const EServiceTemplateVersionRefV2 = new EServiceTemplateVersionRefV2$Type();
|
|
806
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
606
807
|
class EServiceDocumentV2$Type extends MessageType {
|
|
607
808
|
constructor() {
|
|
608
809
|
super("eservice.v2.EServiceDocumentV2", [
|