@sortipei/api-contracts 0.3.2 → 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"}
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const NotificationTagDTOSchema: z.ZodEnum<{
3
3
  cancelled: "cancelled";
4
4
  feature: "feature";
5
+ information: "information";
5
6
  postponed: "postponed";
6
7
  reminder: "reminder";
7
8
  }>;
@@ -29,10 +30,26 @@ export declare const NotificationDTOSchema: z.ZodObject<{
29
30
  tag: z.ZodNullable<z.ZodEnum<{
30
31
  cancelled: "cancelled";
31
32
  feature: "feature";
33
+ information: "information";
32
34
  postponed: "postponed";
33
35
  reminder: "reminder";
34
36
  }>>;
35
37
  title: z.ZodNullable<z.ZodString>;
36
38
  }, z.core.$strip>;
37
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>;
38
55
  //# sourceMappingURL=notification.d.ts.map
@@ -1 +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;;;;;EAA4D,CAAC;AAClG,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"}
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"}
@@ -4616,6 +4616,7 @@ const EventDTOSchema = object({
4616
4616
  promotionEnd: datetime().nullable(),
4617
4617
  promotionStart: datetime().nullable(),
4618
4618
  regions: RegionSchema.array(),
4619
+ popularityScore: SafeNonNegativeFloatSchema,
4619
4620
  secondaryCategory: CategorySchema.nullable(),
4620
4621
  startTime: datetime(),
4621
4622
  thumbnailUrl: URLSchema.nullable(),
@@ -4706,7 +4707,7 @@ const ImportReminderDTOSchema = object({
4706
4707
  });
4707
4708
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4708
4709
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4709
- const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
4710
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4710
4711
  const NotificationLinkDTOSchema = union([
4711
4712
  object({ type: literal("event"), eventId: EventIdSchema }),
4712
4713
  object({ type: literal("favorites") }),
@@ -4723,6 +4724,14 @@ const NotificationDTOSchema = object({
4723
4724
  tag: NotificationTagDTOSchema.nullable(),
4724
4725
  title: StringSchema.nullable()
4725
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
+ });
4726
4735
  const PublicOrganizerDTOSchema = object({
4727
4736
  id: OrganizerIdSchema,
4728
4737
  imageUrl: URLSchema.nullable(),
@@ -4823,6 +4832,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4823
4832
  AppConfigurationDTOSchema,
4824
4833
  CreateEventDTOSchema,
4825
4834
  CreateImportReminderDTOSchema,
4835
+ CreateNotificationDTOSchema,
4826
4836
  CreateOrganizerDTOSchema,
4827
4837
  DisplayEventDTOSchema,
4828
4838
  EventDTOSchema,
@@ -4614,6 +4614,7 @@ const EventDTOSchema = object({
4614
4614
  promotionEnd: datetime().nullable(),
4615
4615
  promotionStart: datetime().nullable(),
4616
4616
  regions: RegionSchema.array(),
4617
+ popularityScore: SafeNonNegativeFloatSchema,
4617
4618
  secondaryCategory: CategorySchema.nullable(),
4618
4619
  startTime: datetime(),
4619
4620
  thumbnailUrl: URLSchema.nullable(),
@@ -4704,7 +4705,7 @@ const ImportReminderDTOSchema = object({
4704
4705
  });
4705
4706
  const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
4706
4707
  const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
4707
- const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
4708
+ const NotificationTagDTOSchema = _enum(["cancelled", "feature", "information", "postponed", "reminder"]);
4708
4709
  const NotificationLinkDTOSchema = union([
4709
4710
  object({ type: literal("event"), eventId: EventIdSchema }),
4710
4711
  object({ type: literal("favorites") }),
@@ -4721,6 +4722,14 @@ const NotificationDTOSchema = object({
4721
4722
  tag: NotificationTagDTOSchema.nullable(),
4722
4723
  title: StringSchema.nullable()
4723
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
+ });
4724
4733
  const PublicOrganizerDTOSchema = object({
4725
4734
  id: OrganizerIdSchema,
4726
4735
  imageUrl: URLSchema.nullable(),
@@ -4821,6 +4830,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4821
4830
  AppConfigurationDTOSchema,
4822
4831
  CreateEventDTOSchema,
4823
4832
  CreateImportReminderDTOSchema,
4833
+ CreateNotificationDTOSchema,
4824
4834
  CreateOrganizerDTOSchema,
4825
4835
  DisplayEventDTOSchema,
4826
4836
  EventDTOSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",