@pagopa/interop-outbound-models 1.0.1 → 1.0.2

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { TenantOnboardedV2, TenantOnboardDetailsUpdatedV2, TenantCertifiedAttributeAssignedV2, TenantCertifiedAttributeRevokedV2, TenantDeclaredAttributeAssignedV2, TenantDeclaredAttributeRevokedV2, TenantVerifiedAttributeAssignedV2, TenantVerifiedAttributeRevokedV2, TenantVerifiedAttributeExpirationUpdatedV2, MaintenanceTenantDeletedV2, TenantVerifiedAttributeExtensionUpdatedV2, TenantKindUpdatedV2 } from "../gen/v2/tenant/events.js";
2
+ import { TenantOnboardedV2, TenantOnboardDetailsUpdatedV2, TenantCertifiedAttributeAssignedV2, TenantCertifiedAttributeRevokedV2, TenantDeclaredAttributeAssignedV2, TenantDeclaredAttributeRevokedV2, TenantVerifiedAttributeAssignedV2, TenantVerifiedAttributeRevokedV2, TenantVerifiedAttributeExpirationUpdatedV2, MaintenanceTenantDeletedV2, TenantVerifiedAttributeExtensionUpdatedV2, TenantKindUpdatedV2, MaintenanceTenantPromotedToCertifierV2 } from "../gen/v2/tenant/events.js";
3
3
  export declare function tenantEventToBinaryDataV2(event: TenantEventV2): Uint8Array;
4
4
  export declare const TenantEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5
5
  event_version: z.ZodLiteral<2>;
@@ -256,7 +256,7 @@ export declare const TenantEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObject
256
256
  }>, z.ZodObject<{
257
257
  event_version: z.ZodLiteral<2>;
258
258
  type: z.ZodLiteral<"MaintenanceTenantPromotedToCertifier">;
259
- data: z.ZodEffects<z.ZodAny, TenantKindUpdatedV2, any>;
259
+ data: z.ZodEffects<z.ZodAny, MaintenanceTenantPromotedToCertifierV2, any>;
260
260
  stream_id: z.ZodString;
261
261
  version: z.ZodNumber;
262
262
  timestamp: z.ZodDate;
@@ -264,7 +264,7 @@ export declare const TenantEventV2: z.ZodDiscriminatedUnion<"type", [z.ZodObject
264
264
  event_version: 2;
265
265
  type: "MaintenanceTenantPromotedToCertifier";
266
266
  version: number;
267
- data: TenantKindUpdatedV2;
267
+ data: MaintenanceTenantPromotedToCertifierV2;
268
268
  stream_id: string;
269
269
  timestamp: Date;
270
270
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"eventsV2.d.ts","sourceRoot":"","sources":["../../src/tenant/eventsV2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,6BAA6B,EAC7B,kCAAkC,EAClC,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,mBAAmB,EAEpB,MAAM,4BAA4B,CAAC;AAGpC,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,CA0C1E;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"eventsV2.d.ts","sourceRoot":"","sources":["../../src/tenant/eventsV2.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,6BAA6B,EAC7B,kCAAkC,EAClC,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,0CAA0C,EAC1C,0BAA0B,EAC1B,yCAAyC,EACzC,mBAAmB,EACnB,sCAAsC,EACvC,MAAM,4BAA4B,CAAC;AAGpC,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,CA0C1E;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -119,7 +119,7 @@ export const TenantEventV2 = z.discriminatedUnion("type", [
119
119
  z.object({
120
120
  event_version: z.literal(2),
121
121
  type: z.literal("MaintenanceTenantPromotedToCertifier"),
122
- data: protobufDecoder(TenantKindUpdatedV2),
122
+ data: protobufDecoder(MaintenanceTenantPromotedToCertifierV2),
123
123
  stream_id: z.string(),
124
124
  version: z.number(),
125
125
  timestamp: z.coerce.date(),
@@ -124,7 +124,7 @@ export declare const TenantEvent: z.ZodEffects<z.ZodDiscriminatedUnion<"event_ve
124
124
  event_version: 2;
125
125
  type: "MaintenanceTenantPromotedToCertifier";
126
126
  version: number;
127
- data: import("../index.js").TenantKindUpdatedV2;
127
+ data: import("../index.js").MaintenanceTenantPromotedToCertifierV2;
128
128
  stream_id: string;
129
129
  timestamp: Date;
130
130
  }, z.objectInputType<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/interop-outbound-models",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "PagoPA Interoperability outbound models",
5
5
  "main": "dist",
6
6
  "type": "module",
@@ -161,7 +161,7 @@ export const TenantEventV2 = z.discriminatedUnion("type", [
161
161
  z.object({
162
162
  event_version: z.literal(2),
163
163
  type: z.literal("MaintenanceTenantPromotedToCertifier"),
164
- data: protobufDecoder(TenantKindUpdatedV2),
164
+ data: protobufDecoder(MaintenanceTenantPromotedToCertifierV2),
165
165
  stream_id: z.string(),
166
166
  version: z.number(),
167
167
  timestamp: z.coerce.date(),