@pagopa/interop-outbound-models 1.8.13 → 1.8.15
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 +20 -0
- package/dist/eservice/eventsV2.d.ts +132 -6
- package/dist/eservice/eventsV2.d.ts.map +1 -1
- package/dist/eservice/eventsV2.js +58 -4
- package/dist/eservice/index.d.ts +44 -2
- package/dist/eservice/index.d.ts.map +1 -1
- package/dist/gen/v2/eservice/eservice.d.ts +53 -1
- package/dist/gen/v2/eservice/eservice.d.ts.map +1 -1
- package/dist/gen/v2/eservice/eservice.js +93 -2
- package/dist/gen/v2/eservice/events.d.ts +134 -8
- package/dist/gen/v2/eservice/events.d.ts.map +1 -1
- package/dist/gen/v2/eservice/events.js +304 -4
- package/package.json +2 -2
- package/proto/v2/eservice/eservice.proto +14 -0
- package/proto/v2/eservice/events.proto +28 -1
- package/src/eservice/eventsV2.ts +77 -5
|
@@ -17,6 +17,7 @@ message EServiceV2 {
|
|
|
17
17
|
optional string templateId = 13;
|
|
18
18
|
optional bool personalData = 14;
|
|
19
19
|
optional string instanceLabel = 15;
|
|
20
|
+
optional string archivingReason = 16;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
message EServiceAttributeValueV2 {
|
|
@@ -61,6 +62,7 @@ message EServiceDescriptorV2 {
|
|
|
61
62
|
EServiceAttributesV2 attributes = 18;
|
|
62
63
|
repeated DescriptorRejectionReasonV2 rejectionReasons = 19;
|
|
63
64
|
optional EServiceTemplateVersionRefV2 templateVersionRef = 20;
|
|
65
|
+
optional ArchivingScheduleV2 archivingSchedule = 21;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
|
|
@@ -92,6 +94,8 @@ enum EServiceDescriptorStateV2 {
|
|
|
92
94
|
SUSPENDED = 3;
|
|
93
95
|
ARCHIVED = 4;
|
|
94
96
|
WAITING_FOR_APPROVAL = 5;
|
|
97
|
+
ARCHIVING = 6;
|
|
98
|
+
ARCHIVING_SUSPENDED = 7;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
enum EServiceTechnologyV2 {
|
|
@@ -108,3 +112,13 @@ enum EServiceModeV2 {
|
|
|
108
112
|
RECEIVE = 0;
|
|
109
113
|
DELIVER = 1;
|
|
110
114
|
}
|
|
115
|
+
|
|
116
|
+
message ArchivingScheduleV2 {
|
|
117
|
+
int64 archivableOn = 1;
|
|
118
|
+
ArchivingScopeV2 scope = 2;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
enum ArchivingScopeV2 {
|
|
122
|
+
ESERVICE = 0;
|
|
123
|
+
DESCRIPTOR = 1;
|
|
124
|
+
}
|
|
@@ -23,6 +23,18 @@ message EServiceClonedV2 {
|
|
|
23
23
|
EServiceV2 eservice = 3;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
message EServiceArchivingScheduledV2 {
|
|
27
|
+
EServiceV2 eservice = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message EServiceArchivingCanceledV2 {
|
|
31
|
+
EServiceV2 eservice = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message EServiceArchivingCompletedV2 {
|
|
35
|
+
EServiceV2 eservice = 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
26
38
|
message EServiceDescriptorAddedV2 {
|
|
27
39
|
string descriptorId = 1;
|
|
28
40
|
EServiceV2 eservice = 2;
|
|
@@ -99,6 +111,21 @@ message EServiceDescriptorDocumentDeletedV2 {
|
|
|
99
111
|
EServiceV2 eservice = 3;
|
|
100
112
|
}
|
|
101
113
|
|
|
114
|
+
message EServiceDescriptorArchivingScheduledV2 {
|
|
115
|
+
string descriptorId = 1;
|
|
116
|
+
EServiceV2 eservice = 2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message EServiceDescriptorArchivingCanceledV2 {
|
|
120
|
+
string descriptorId = 1;
|
|
121
|
+
EServiceV2 eservice = 2;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message EServiceDescriptorArchivingCompletedV2 {
|
|
125
|
+
string descriptorId = 1;
|
|
126
|
+
EServiceV2 eservice = 2;
|
|
127
|
+
}
|
|
128
|
+
|
|
102
129
|
message EServiceDescriptionUpdatedV2 {
|
|
103
130
|
EServiceV2 eservice = 1;
|
|
104
131
|
}
|
|
@@ -206,6 +233,6 @@ message EServiceInstanceLabelUpdatedV2 {
|
|
|
206
233
|
EServiceV2 eservice = 1;
|
|
207
234
|
}
|
|
208
235
|
|
|
209
|
-
message
|
|
236
|
+
message MaintenanceEServicePersonalDataFlagResetV2 {
|
|
210
237
|
EServiceV2 eservice = 1;
|
|
211
238
|
}
|
package/src/eservice/eventsV2.ts
CHANGED
|
@@ -43,7 +43,13 @@ import {
|
|
|
43
43
|
EServicePersonalDataFlagUpdatedAfterPublicationV2,
|
|
44
44
|
EServicePersonalDataFlagUpdatedByTemplateUpdateV2,
|
|
45
45
|
EServiceInstanceLabelUpdatedV2,
|
|
46
|
-
|
|
46
|
+
EServiceDescriptorArchivingScheduledV2,
|
|
47
|
+
EServiceDescriptorArchivingCanceledV2,
|
|
48
|
+
EServiceDescriptorArchivingCompletedV2,
|
|
49
|
+
EServiceArchivingScheduledV2,
|
|
50
|
+
EServiceArchivingCanceledV2,
|
|
51
|
+
EServiceArchivingCompletedV2,
|
|
52
|
+
MaintenanceEServicePersonalDataFlagResetV2,
|
|
47
53
|
} from "../gen/v2/eservice/events.js";
|
|
48
54
|
|
|
49
55
|
export function eServiceEventToBinaryDataV2(
|
|
@@ -189,8 +195,26 @@ export function eServiceEventToBinaryDataV2(
|
|
|
189
195
|
.with({ type: "EServiceInstanceLabelUpdated" }, ({ data }) =>
|
|
190
196
|
EServiceInstanceLabelUpdatedV2.toBinary(data)
|
|
191
197
|
)
|
|
192
|
-
.with({ type: "
|
|
193
|
-
|
|
198
|
+
.with({ type: "MaintenanceEServicePersonalDataFlagReset" }, ({ data }) =>
|
|
199
|
+
MaintenanceEServicePersonalDataFlagResetV2.toBinary(data)
|
|
200
|
+
)
|
|
201
|
+
.with({ type: "EServiceDescriptorArchivingScheduled" }, ({ data }) =>
|
|
202
|
+
EServiceDescriptorArchivingScheduledV2.toBinary(data)
|
|
203
|
+
)
|
|
204
|
+
.with({ type: "EServiceDescriptorArchivingCanceled" }, ({ data }) =>
|
|
205
|
+
EServiceDescriptorArchivingCanceledV2.toBinary(data)
|
|
206
|
+
)
|
|
207
|
+
.with({ type: "EServiceDescriptorArchivingCompleted" }, ({ data }) =>
|
|
208
|
+
EServiceDescriptorArchivingCompletedV2.toBinary(data)
|
|
209
|
+
)
|
|
210
|
+
.with({ type: "EServiceArchivingScheduled" }, ({ data }) =>
|
|
211
|
+
EServiceArchivingScheduledV2.toBinary(data)
|
|
212
|
+
)
|
|
213
|
+
.with({ type: "EServiceArchivingCanceled" }, ({ data }) =>
|
|
214
|
+
EServiceArchivingCanceledV2.toBinary(data)
|
|
215
|
+
)
|
|
216
|
+
.with({ type: "EServiceArchivingCompleted" }, ({ data }) =>
|
|
217
|
+
EServiceArchivingCompletedV2.toBinary(data)
|
|
194
218
|
)
|
|
195
219
|
.exhaustive();
|
|
196
220
|
}
|
|
@@ -528,8 +552,56 @@ export const EServiceEventV2 = z.discriminatedUnion("type", [
|
|
|
528
552
|
}),
|
|
529
553
|
z.object({
|
|
530
554
|
event_version: z.literal(2),
|
|
531
|
-
type: z.literal("
|
|
532
|
-
data: protobufDecoder(
|
|
555
|
+
type: z.literal("MaintenanceEServicePersonalDataFlagReset"),
|
|
556
|
+
data: protobufDecoder(MaintenanceEServicePersonalDataFlagResetV2),
|
|
557
|
+
stream_id: z.string(),
|
|
558
|
+
version: z.number(),
|
|
559
|
+
timestamp: z.coerce.date(),
|
|
560
|
+
}),
|
|
561
|
+
z.object({
|
|
562
|
+
event_version: z.literal(2),
|
|
563
|
+
type: z.literal("EServiceDescriptorArchivingScheduled"),
|
|
564
|
+
data: protobufDecoder(EServiceDescriptorArchivingScheduledV2),
|
|
565
|
+
stream_id: z.string(),
|
|
566
|
+
version: z.number(),
|
|
567
|
+
timestamp: z.coerce.date(),
|
|
568
|
+
}),
|
|
569
|
+
z.object({
|
|
570
|
+
event_version: z.literal(2),
|
|
571
|
+
type: z.literal("EServiceDescriptorArchivingCanceled"),
|
|
572
|
+
data: protobufDecoder(EServiceDescriptorArchivingCanceledV2),
|
|
573
|
+
stream_id: z.string(),
|
|
574
|
+
version: z.number(),
|
|
575
|
+
timestamp: z.coerce.date(),
|
|
576
|
+
}),
|
|
577
|
+
z.object({
|
|
578
|
+
event_version: z.literal(2),
|
|
579
|
+
type: z.literal("EServiceDescriptorArchivingCompleted"),
|
|
580
|
+
data: protobufDecoder(EServiceDescriptorArchivingCompletedV2),
|
|
581
|
+
stream_id: z.string(),
|
|
582
|
+
version: z.number(),
|
|
583
|
+
timestamp: z.coerce.date(),
|
|
584
|
+
}),
|
|
585
|
+
z.object({
|
|
586
|
+
event_version: z.literal(2),
|
|
587
|
+
type: z.literal("EServiceArchivingScheduled"),
|
|
588
|
+
data: protobufDecoder(EServiceArchivingScheduledV2),
|
|
589
|
+
stream_id: z.string(),
|
|
590
|
+
version: z.number(),
|
|
591
|
+
timestamp: z.coerce.date(),
|
|
592
|
+
}),
|
|
593
|
+
z.object({
|
|
594
|
+
event_version: z.literal(2),
|
|
595
|
+
type: z.literal("EServiceArchivingCanceled"),
|
|
596
|
+
data: protobufDecoder(EServiceArchivingCanceledV2),
|
|
597
|
+
stream_id: z.string(),
|
|
598
|
+
version: z.number(),
|
|
599
|
+
timestamp: z.coerce.date(),
|
|
600
|
+
}),
|
|
601
|
+
z.object({
|
|
602
|
+
event_version: z.literal(2),
|
|
603
|
+
type: z.literal("EServiceArchivingCompleted"),
|
|
604
|
+
data: protobufDecoder(EServiceArchivingCompletedV2),
|
|
533
605
|
stream_id: z.string(),
|
|
534
606
|
version: z.number(),
|
|
535
607
|
timestamp: z.coerce.date(),
|