@pagopa/interop-outbound-models 1.8.19 → 1.8.20

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.
@@ -18,6 +18,7 @@ message EServiceV2 {
18
18
  optional bool personalData = 14;
19
19
  optional string instanceLabel = 15;
20
20
  optional bool asyncExchange = 16;
21
+ optional string archivingReason = 17;
21
22
  }
22
23
 
23
24
  message EServiceAttributeValueV2 {
@@ -64,6 +65,7 @@ message EServiceDescriptorV2 {
64
65
  optional EServiceTemplateVersionRefV2 templateVersionRef = 20;
65
66
  optional EServiceDocumentV2 asyncExchangeCallbackInterface = 21;
66
67
  optional AsyncExchangePropertiesV2 asyncExchangeProperties = 22;
68
+ optional ArchivingScheduleV2 archivingSchedule = 23;
67
69
  }
68
70
 
69
71
 
@@ -103,6 +105,8 @@ enum EServiceDescriptorStateV2 {
103
105
  SUSPENDED = 3;
104
106
  ARCHIVED = 4;
105
107
  WAITING_FOR_APPROVAL = 5;
108
+ ARCHIVING = 6;
109
+ ARCHIVING_SUSPENDED = 7;
106
110
  }
107
111
 
108
112
  enum EServiceTechnologyV2 {
@@ -119,3 +123,14 @@ enum EServiceModeV2 {
119
123
  RECEIVE = 0;
120
124
  DELIVER = 1;
121
125
  }
126
+
127
+ message ArchivingScheduleV2 {
128
+ int64 archivableOn = 1;
129
+ ArchivingScopeV2 scope = 2;
130
+ int64 startedAt = 3;
131
+ }
132
+
133
+ enum ArchivingScopeV2 {
134
+ ESERVICE = 0;
135
+ DESCRIPTOR = 1;
136
+ }
@@ -234,3 +234,35 @@ message EServiceDescriptorAttributeDailyCallsPerConsumerUpdatedV2 {
234
234
  string attributeId = 3;
235
235
  int32 dailyCallsPerConsumer = 4;
236
236
  }
237
+
238
+ message EServiceArchivingScheduledV2 {
239
+ EServiceV2 eservice = 1;
240
+ }
241
+
242
+ message EServiceArchivingCanceledV2 {
243
+ EServiceV2 eservice = 1;
244
+ }
245
+
246
+ message EServiceArchivingCompletedV2 {
247
+ EServiceV2 eservice = 1;
248
+ }
249
+
250
+ message EServiceDescriptorArchivingScheduledV2 {
251
+ string descriptorId = 1;
252
+ EServiceV2 eservice = 2;
253
+ }
254
+
255
+ message EServiceDescriptorArchivingCanceledV2 {
256
+ string descriptorId = 1;
257
+ EServiceV2 eservice = 2;
258
+ }
259
+
260
+ message EServiceDescriptorArchivingCompletedV2 {
261
+ string descriptorId = 1;
262
+ EServiceV2 eservice = 2;
263
+ }
264
+
265
+ message MaintenanceEServiceDescriptorUnarchivedV2 {
266
+ string descriptorId = 1;
267
+ EServiceV2 eservice = 2;
268
+ }
@@ -49,6 +49,13 @@ import {
49
49
  EServiceDescriptorAsyncExchangeCallbackInterfaceAddedV2,
50
50
  EServiceDescriptorAsyncExchangeCallbackInterfaceUpdatedV2,
51
51
  EServiceDescriptorAsyncExchangeCallbackInterfaceDeletedV2,
52
+ EServiceDescriptorArchivingScheduledV2,
53
+ EServiceDescriptorArchivingCanceledV2,
54
+ EServiceDescriptorArchivingCompletedV2,
55
+ EServiceArchivingScheduledV2,
56
+ EServiceArchivingCanceledV2,
57
+ EServiceArchivingCompletedV2,
58
+ MaintenanceEServiceDescriptorUnarchivedV2,
52
59
  } from "../gen/v2/eservice/events.js";
53
60
 
54
61
  export function eServiceEventToBinaryDataV2(
@@ -217,6 +224,27 @@ export function eServiceEventToBinaryDataV2(
217
224
  ({ data }) =>
218
225
  EServiceDescriptorAsyncExchangeCallbackInterfaceDeletedV2.toBinary(data)
219
226
  )
227
+ .with({ type: "EServiceArchivingScheduled" }, ({ data }) =>
228
+ EServiceArchivingScheduledV2.toBinary(data)
229
+ )
230
+ .with({ type: "EServiceArchivingCanceled" }, ({ data }) =>
231
+ EServiceArchivingCanceledV2.toBinary(data)
232
+ )
233
+ .with({ type: "EServiceArchivingCompleted" }, ({ data }) =>
234
+ EServiceArchivingCompletedV2.toBinary(data)
235
+ )
236
+ .with({ type: "EServiceDescriptorArchivingScheduled" }, ({ data }) =>
237
+ EServiceDescriptorArchivingScheduledV2.toBinary(data)
238
+ )
239
+ .with({ type: "EServiceDescriptorArchivingCanceled" }, ({ data }) =>
240
+ EServiceDescriptorArchivingCanceledV2.toBinary(data)
241
+ )
242
+ .with({ type: "EServiceDescriptorArchivingCompleted" }, ({ data }) =>
243
+ EServiceDescriptorArchivingCompletedV2.toBinary(data)
244
+ )
245
+ .with({ type: "MaintenanceEServiceDescriptorUnarchived" }, ({ data }) =>
246
+ MaintenanceEServiceDescriptorUnarchivedV2.toBinary(data)
247
+ )
220
248
  .exhaustive();
221
249
  }
222
250
 
@@ -599,6 +627,62 @@ export const EServiceEventV2 = z.discriminatedUnion("type", [
599
627
  version: z.number(),
600
628
  timestamp: z.coerce.date(),
601
629
  }),
630
+ z.object({
631
+ event_version: z.literal(2),
632
+ type: z.literal("EServiceArchivingScheduled"),
633
+ data: protobufDecoder(EServiceArchivingScheduledV2),
634
+ stream_id: z.string(),
635
+ version: z.number(),
636
+ timestamp: z.coerce.date(),
637
+ }),
638
+ z.object({
639
+ event_version: z.literal(2),
640
+ type: z.literal("EServiceArchivingCanceled"),
641
+ data: protobufDecoder(EServiceArchivingCanceledV2),
642
+ stream_id: z.string(),
643
+ version: z.number(),
644
+ timestamp: z.coerce.date(),
645
+ }),
646
+ z.object({
647
+ event_version: z.literal(2),
648
+ type: z.literal("EServiceArchivingCompleted"),
649
+ data: protobufDecoder(EServiceArchivingCompletedV2),
650
+ stream_id: z.string(),
651
+ version: z.number(),
652
+ timestamp: z.coerce.date(),
653
+ }),
654
+ z.object({
655
+ event_version: z.literal(2),
656
+ type: z.literal("EServiceDescriptorArchivingScheduled"),
657
+ data: protobufDecoder(EServiceDescriptorArchivingScheduledV2),
658
+ stream_id: z.string(),
659
+ version: z.number(),
660
+ timestamp: z.coerce.date(),
661
+ }),
662
+ z.object({
663
+ event_version: z.literal(2),
664
+ type: z.literal("EServiceDescriptorArchivingCanceled"),
665
+ data: protobufDecoder(EServiceDescriptorArchivingCanceledV2),
666
+ stream_id: z.string(),
667
+ version: z.number(),
668
+ timestamp: z.coerce.date(),
669
+ }),
670
+ z.object({
671
+ event_version: z.literal(2),
672
+ type: z.literal("EServiceDescriptorArchivingCompleted"),
673
+ data: protobufDecoder(EServiceDescriptorArchivingCompletedV2),
674
+ stream_id: z.string(),
675
+ version: z.number(),
676
+ timestamp: z.coerce.date(),
677
+ }),
678
+ z.object({
679
+ event_version: z.literal(2),
680
+ type: z.literal("MaintenanceEServiceDescriptorUnarchived"),
681
+ data: protobufDecoder(MaintenanceEServiceDescriptorUnarchivedV2),
682
+ stream_id: z.string(),
683
+ version: z.number(),
684
+ timestamp: z.coerce.date(),
685
+ }),
602
686
  ]);
603
687
 
604
688
  export type EServiceEventV2 = z.infer<typeof EServiceEventV2>;