@sortipei/api-contracts 0.3.1 → 0.4.0

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.
@@ -29,6 +29,7 @@ export declare const EventDTOSchema: z.ZodObject<{
29
29
  promotionEnd: z.ZodNullable<z.ZodISODateTime>;
30
30
  promotionStart: z.ZodNullable<z.ZodISODateTime>;
31
31
  regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
32
+ popularityScore: z.ZodFloat32;
32
33
  secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
33
34
  startTime: z.ZodISODateTime;
34
35
  thumbnailUrl: z.ZodNullable<z.ZodString>;
@@ -54,6 +55,7 @@ export declare const PublicEventDTOSchema: z.ZodObject<{
54
55
  latitude: z.ZodNumber;
55
56
  longitude: z.ZodNumber;
56
57
  }, z.core.$strip>;
58
+ popularityScore: z.ZodFloat32;
57
59
  capacity: z.ZodNullable<z.ZodFloat32>;
58
60
  finishTime: z.ZodNullable<z.ZodISODateTime>;
59
61
  hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
@@ -178,6 +180,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
178
180
  promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
179
181
  promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
180
182
  regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
183
+ popularityScore: z.ZodOptional<z.ZodFloat32>;
181
184
  secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
182
185
  startTime: z.ZodOptional<z.ZodISODateTime>;
183
186
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,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D,eAAO,MAAM,wBAAwB;;;;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -3,6 +3,7 @@ export * from './app-configuration';
3
3
  export * from './common';
4
4
  export * from './event';
5
5
  export * from './import-reminder';
6
+ export * from './notification';
6
7
  export * from './organizer';
7
8
  export * from './statistics';
8
9
  export declare const constraints: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAK7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ export declare const NotificationTagDTOSchema: z.ZodEnum<{
3
+ cancelled: "cancelled";
4
+ feature: "feature";
5
+ information: "information";
6
+ postponed: "postponed";
7
+ reminder: "reminder";
8
+ }>;
9
+ export type NotificationTag = z.infer<typeof NotificationTagDTOSchema>;
10
+ export declare const NotificationLinkDTOSchema: z.ZodUnion<readonly [z.ZodObject<{
11
+ type: z.ZodLiteral<"event">;
12
+ eventId: z.core.$ZodBranded<z.ZodUUID, "EventId", "out">;
13
+ }, z.core.$strip>, z.ZodObject<{
14
+ type: z.ZodLiteral<"favorites">;
15
+ }, z.core.$strip>, z.ZodNull]>;
16
+ export type NotificationLinkDTO = z.infer<typeof NotificationLinkDTOSchema>;
17
+ export declare const NotificationDTOSchema: z.ZodObject<{
18
+ author: z.ZodNullable<z.ZodString>;
19
+ authorImageUrl: z.ZodNullable<z.ZodString>;
20
+ content: z.ZodNullable<z.ZodString>;
21
+ createdAt: z.ZodString;
22
+ id: z.core.$ZodBranded<z.ZodUUID, "NotificationId", "out">;
23
+ imageUrl: z.ZodNullable<z.ZodString>;
24
+ link: z.ZodUnion<readonly [z.ZodObject<{
25
+ type: z.ZodLiteral<"event">;
26
+ eventId: z.core.$ZodBranded<z.ZodUUID, "EventId", "out">;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ type: z.ZodLiteral<"favorites">;
29
+ }, z.core.$strip>, z.ZodNull]>;
30
+ tag: z.ZodNullable<z.ZodEnum<{
31
+ cancelled: "cancelled";
32
+ feature: "feature";
33
+ information: "information";
34
+ postponed: "postponed";
35
+ reminder: "reminder";
36
+ }>>;
37
+ title: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ export type NotificationDTO = z.infer<typeof NotificationDTOSchema>;
40
+ export declare const CreateNotificationDTOSchema: z.ZodObject<{
41
+ author: z.ZodNullable<z.ZodString>;
42
+ authorImageUrl: z.ZodNullable<z.ZodString>;
43
+ content: z.ZodNullable<z.ZodString>;
44
+ imageUrl: z.ZodNullable<z.ZodString>;
45
+ tag: z.ZodNullable<z.ZodEnum<{
46
+ cancelled: "cancelled";
47
+ feature: "feature";
48
+ information: "information";
49
+ postponed: "postponed";
50
+ reminder: "reminder";
51
+ }>>;
52
+ title: z.ZodNullable<z.ZodString>;
53
+ }, z.core.$strip>;
54
+ export type CreateNotificationDTO = z.infer<typeof CreateNotificationDTOSchema>;
55
+ //# sourceMappingURL=notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/V1/api/notification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;EAA2E,CAAC;AACjH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;8BAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAUhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAOtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -26,6 +26,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
26
26
  promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
27
27
  promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
28
28
  regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
29
+ popularityScore: z.ZodOptional<z.ZodFloat32>;
29
30
  secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
30
31
  startTime: z.ZodOptional<z.ZodISODateTime>;
31
32
  thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"partial-imported-event.d.ts","sourceRoot":"","sources":["../../../src/V1/external/partial-imported-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -4546,6 +4546,8 @@ const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
4546
4546
  const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
4547
4547
  const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
4548
4548
  const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
4549
+ const NotificationIdSchema = UUIDSchema.brand("NotificationId");
4550
+ const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
4549
4551
  const MainAdDTOSchema = object({
4550
4552
  createdAt: datetime(),
4551
4553
  endTime: StringSchema,
@@ -4614,6 +4616,7 @@ const EventDTOSchema = object({
4614
4616
  promotionEnd: datetime().nullable(),
4615
4617
  promotionStart: datetime().nullable(),
4616
4618
  regions: RegionSchema.array(),
4619
+ popularityScore: SafeNonNegativeFloatSchema,
4617
4620
  secondaryCategory: CategorySchema.nullable(),
4618
4621
  startTime: datetime(),
4619
4622
  thumbnailUrl: URLSchema.nullable(),
@@ -4704,6 +4707,31 @@ const ImportReminderDTOSchema = object({
4704
4707
  });
4705
4708
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4706
4709
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4710
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4711
+ const NotificationLinkDTOSchema = union([
4712
+ object({ type: literal("event"), eventId: EventIdSchema }),
4713
+ object({ type: literal("favorites") }),
4714
+ _null()
4715
+ ]);
4716
+ const NotificationDTOSchema = object({
4717
+ author: StringSchema.nullable(),
4718
+ authorImageUrl: URLSchema.nullable(),
4719
+ content: StringSchema.nullable(),
4720
+ createdAt: string(),
4721
+ id: NotificationIdSchema,
4722
+ imageUrl: URLSchema.nullable(),
4723
+ link: NotificationLinkDTOSchema,
4724
+ tag: NotificationTagDTOSchema.nullable(),
4725
+ title: StringSchema.nullable()
4726
+ });
4727
+ const CreateNotificationDTOSchema = object({
4728
+ author: StringSchema.nullable(),
4729
+ authorImageUrl: URLSchema.nullable(),
4730
+ content: StringSchema.nullable(),
4731
+ imageUrl: URLSchema.nullable(),
4732
+ tag: NotificationTagDTOSchema.nullable(),
4733
+ title: StringSchema.nullable()
4734
+ });
4707
4735
  const PublicOrganizerDTOSchema = object({
4708
4736
  id: OrganizerIdSchema,
4709
4737
  imageUrl: URLSchema.nullable(),
@@ -4804,6 +4832,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4804
4832
  AppConfigurationDTOSchema,
4805
4833
  CreateEventDTOSchema,
4806
4834
  CreateImportReminderDTOSchema,
4835
+ CreateNotificationDTOSchema,
4807
4836
  CreateOrganizerDTOSchema,
4808
4837
  DisplayEventDTOSchema,
4809
4838
  EventDTOSchema,
@@ -4817,6 +4846,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4817
4846
  ImportFromUrlDTOSchema,
4818
4847
  ImportReminderDTOSchema,
4819
4848
  MainAdDTOSchema,
4849
+ NotificationDTOSchema,
4850
+ NotificationLinkDTOSchema,
4851
+ NotificationTagDTOSchema,
4820
4852
  OrganizerDTOSchema,
4821
4853
  PublicEventDTOSchema,
4822
4854
  PublicOrganizerDTOSchema,
@@ -4870,6 +4902,7 @@ exports.ImportReminderFrequency = ImportReminderFrequency;
4870
4902
  exports.ImportReminderFrequencySchema = ImportReminderFrequencySchema;
4871
4903
  exports.ImportReminderIdSchema = ImportReminderIdSchema;
4872
4904
  exports.MainAdIdSchema = MainAdIdSchema;
4905
+ exports.NotificationIdSchema = NotificationIdSchema;
4873
4906
  exports.OldTimesFilterAppliedStatisticSchema = OldTimesFilterAppliedStatisticSchema;
4874
4907
  exports.OrganizerDisplayedStatisticSchema = OrganizerDisplayedStatisticSchema;
4875
4908
  exports.OrganizerIdSchema = OrganizerIdSchema;
@@ -4888,6 +4921,7 @@ exports.V1 = index;
4888
4921
  exports.createEventId = createEventId;
4889
4922
  exports.createImportReminderId = createImportReminderId;
4890
4923
  exports.createMainAdId = createMainAdId;
4924
+ exports.createNotificationId = createNotificationId;
4891
4925
  exports.createOrganizerId = createOrganizerId;
4892
4926
  exports.createRegionalAdId = createRegionalAdId;
4893
4927
  exports.createUserId = createUserId;
@@ -4544,6 +4544,8 @@ const RegionalAdIdSchema = UUIDSchema.brand("RegionalAdId");
4544
4544
  const createRegionalAdId = (id = crypto.randomUUID()) => RegionalAdIdSchema.parse(id);
4545
4545
  const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
4546
4546
  const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
4547
+ const NotificationIdSchema = UUIDSchema.brand("NotificationId");
4548
+ const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
4547
4549
  const MainAdDTOSchema = object({
4548
4550
  createdAt: datetime(),
4549
4551
  endTime: StringSchema,
@@ -4612,6 +4614,7 @@ const EventDTOSchema = object({
4612
4614
  promotionEnd: datetime().nullable(),
4613
4615
  promotionStart: datetime().nullable(),
4614
4616
  regions: RegionSchema.array(),
4617
+ popularityScore: SafeNonNegativeFloatSchema,
4615
4618
  secondaryCategory: CategorySchema.nullable(),
4616
4619
  startTime: datetime(),
4617
4620
  thumbnailUrl: URLSchema.nullable(),
@@ -4702,6 +4705,31 @@ const ImportReminderDTOSchema = object({
4702
4705
  });
4703
4706
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4704
4707
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4708
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4709
+ const NotificationLinkDTOSchema = union([
4710
+ object({ type: literal("event"), eventId: EventIdSchema }),
4711
+ object({ type: literal("favorites") }),
4712
+ _null()
4713
+ ]);
4714
+ const NotificationDTOSchema = object({
4715
+ author: StringSchema.nullable(),
4716
+ authorImageUrl: URLSchema.nullable(),
4717
+ content: StringSchema.nullable(),
4718
+ createdAt: string(),
4719
+ id: NotificationIdSchema,
4720
+ imageUrl: URLSchema.nullable(),
4721
+ link: NotificationLinkDTOSchema,
4722
+ tag: NotificationTagDTOSchema.nullable(),
4723
+ title: StringSchema.nullable()
4724
+ });
4725
+ const CreateNotificationDTOSchema = object({
4726
+ author: StringSchema.nullable(),
4727
+ authorImageUrl: URLSchema.nullable(),
4728
+ content: StringSchema.nullable(),
4729
+ imageUrl: URLSchema.nullable(),
4730
+ tag: NotificationTagDTOSchema.nullable(),
4731
+ title: StringSchema.nullable()
4732
+ });
4705
4733
  const PublicOrganizerDTOSchema = object({
4706
4734
  id: OrganizerIdSchema,
4707
4735
  imageUrl: URLSchema.nullable(),
@@ -4802,6 +4830,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4802
4830
  AppConfigurationDTOSchema,
4803
4831
  CreateEventDTOSchema,
4804
4832
  CreateImportReminderDTOSchema,
4833
+ CreateNotificationDTOSchema,
4805
4834
  CreateOrganizerDTOSchema,
4806
4835
  DisplayEventDTOSchema,
4807
4836
  EventDTOSchema,
@@ -4815,6 +4844,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4815
4844
  ImportFromUrlDTOSchema,
4816
4845
  ImportReminderDTOSchema,
4817
4846
  MainAdDTOSchema,
4847
+ NotificationDTOSchema,
4848
+ NotificationLinkDTOSchema,
4849
+ NotificationTagDTOSchema,
4818
4850
  OrganizerDTOSchema,
4819
4851
  PublicEventDTOSchema,
4820
4852
  PublicOrganizerDTOSchema,
@@ -4869,6 +4901,7 @@ export {
4869
4901
  ImportReminderFrequencySchema,
4870
4902
  ImportReminderIdSchema,
4871
4903
  MainAdIdSchema,
4904
+ NotificationIdSchema,
4872
4905
  OldTimesFilterAppliedStatisticSchema,
4873
4906
  OrganizerDisplayedStatisticSchema,
4874
4907
  OrganizerIdSchema,
@@ -4887,6 +4920,7 @@ export {
4887
4920
  createEventId,
4888
4921
  createImportReminderId,
4889
4922
  createMainAdId,
4923
+ createNotificationId,
4890
4924
  createOrganizerId,
4891
4925
  createRegionalAdId,
4892
4926
  createUserId
package/dist/flavors.d.ts CHANGED
@@ -17,4 +17,7 @@ export declare const createRegionalAdId: (id?: string) => RegionalAdId;
17
17
  export declare const ImportReminderIdSchema: z.core.$ZodBranded<z.ZodUUID, "ImportReminderId", "out">;
18
18
  export type ImportReminderId = z.infer<typeof ImportReminderIdSchema>;
19
19
  export declare const createImportReminderId: (id?: string) => ImportReminderId;
20
+ export declare const NotificationIdSchema: z.core.$ZodBranded<z.ZodUUID, "NotificationId", "out">;
21
+ export type NotificationId = z.infer<typeof NotificationIdSchema>;
22
+ export declare const createNotificationId: (id?: string) => NotificationId;
20
23
  //# sourceMappingURL=flavors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flavors.d.ts","sourceRoot":"","sources":["../src/flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,iDAA8B,CAAC;AACzD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,QAAQ,MAAM,KAAyB,OAAkC,CAAC;AAEpG,eAAO,MAAM,iBAAiB,qDAAkC,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,QAAQ,MAAM,KAAyB,WAA0C,CAAC;AAEhH,eAAO,MAAM,YAAY,gDAA6B,CAAC;AACvD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,YAAY,QAAQ,MAAM,KAAyB,MAAgC,CAAC;AAEjG,eAAO,MAAM,cAAc,kDAA+B,CAAC;AAC3D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,cAAc,QAAQ,MAAM,KAAyB,QAAoC,CAAC;AAEvG,eAAO,MAAM,kBAAkB,sDAAmC,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,QAAQ,MAAM,KAAyB,YAA4C,CAAC;AAEnH,eAAO,MAAM,sBAAsB,0DAAuC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,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OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,sBAAsB,QAAQ,MAAM,KAAyB,gBACxC,CAAC;AAEnC,eAAO,MAAM,oBAAoB,wDAAqC,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB,QAAQ,MAAM,KAAyB,cACxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",