@sortipei/api-contracts 0.3.1 → 0.3.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.
- package/dist/V1/api/index.d.ts +1 -0
- package/dist/V1/api/index.d.ts.map +1 -1
- package/dist/V1/api/notification.d.ts +38 -0
- package/dist/V1/api/notification.d.ts.map +1 -0
- package/dist/api-contracts.js +24 -0
- package/dist/api-contracts.mjs +24 -0
- package/dist/flavors.d.ts +3 -0
- package/dist/flavors.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/V1/api/index.d.ts
CHANGED
|
@@ -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,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const NotificationTagDTOSchema: z.ZodEnum<{
|
|
3
|
+
cancelled: "cancelled";
|
|
4
|
+
feature: "feature";
|
|
5
|
+
postponed: "postponed";
|
|
6
|
+
reminder: "reminder";
|
|
7
|
+
}>;
|
|
8
|
+
export type NotificationTag = z.infer<typeof NotificationTagDTOSchema>;
|
|
9
|
+
export declare const NotificationLinkDTOSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"event">;
|
|
11
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "EventId", "out">;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"favorites">;
|
|
14
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
15
|
+
export type NotificationLinkDTO = z.infer<typeof NotificationLinkDTOSchema>;
|
|
16
|
+
export declare const NotificationDTOSchema: z.ZodObject<{
|
|
17
|
+
author: z.ZodNullable<z.ZodString>;
|
|
18
|
+
authorImageUrl: z.ZodNullable<z.ZodString>;
|
|
19
|
+
content: z.ZodNullable<z.ZodString>;
|
|
20
|
+
createdAt: z.ZodString;
|
|
21
|
+
id: z.core.$ZodBranded<z.ZodUUID, "NotificationId", "out">;
|
|
22
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
link: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"event">;
|
|
25
|
+
eventId: z.core.$ZodBranded<z.ZodUUID, "EventId", "out">;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<"favorites">;
|
|
28
|
+
}, z.core.$strip>, z.ZodNull]>;
|
|
29
|
+
tag: z.ZodNullable<z.ZodEnum<{
|
|
30
|
+
cancelled: "cancelled";
|
|
31
|
+
feature: "feature";
|
|
32
|
+
postponed: "postponed";
|
|
33
|
+
reminder: "reminder";
|
|
34
|
+
}>>;
|
|
35
|
+
title: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type NotificationDTO = z.infer<typeof NotificationDTOSchema>;
|
|
38
|
+
//# 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;;;;;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"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -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,
|
|
@@ -4704,6 +4706,23 @@ const ImportReminderDTOSchema = object({
|
|
|
4704
4706
|
});
|
|
4705
4707
|
const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
|
|
4706
4708
|
const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
|
|
4709
|
+
const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
|
|
4710
|
+
const NotificationLinkDTOSchema = union([
|
|
4711
|
+
object({ type: literal("event"), eventId: EventIdSchema }),
|
|
4712
|
+
object({ type: literal("favorites") }),
|
|
4713
|
+
_null()
|
|
4714
|
+
]);
|
|
4715
|
+
const NotificationDTOSchema = object({
|
|
4716
|
+
author: StringSchema.nullable(),
|
|
4717
|
+
authorImageUrl: URLSchema.nullable(),
|
|
4718
|
+
content: StringSchema.nullable(),
|
|
4719
|
+
createdAt: string(),
|
|
4720
|
+
id: NotificationIdSchema,
|
|
4721
|
+
imageUrl: URLSchema.nullable(),
|
|
4722
|
+
link: NotificationLinkDTOSchema,
|
|
4723
|
+
tag: NotificationTagDTOSchema.nullable(),
|
|
4724
|
+
title: StringSchema.nullable()
|
|
4725
|
+
});
|
|
4707
4726
|
const PublicOrganizerDTOSchema = object({
|
|
4708
4727
|
id: OrganizerIdSchema,
|
|
4709
4728
|
imageUrl: URLSchema.nullable(),
|
|
@@ -4817,6 +4836,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4817
4836
|
ImportFromUrlDTOSchema,
|
|
4818
4837
|
ImportReminderDTOSchema,
|
|
4819
4838
|
MainAdDTOSchema,
|
|
4839
|
+
NotificationDTOSchema,
|
|
4840
|
+
NotificationLinkDTOSchema,
|
|
4841
|
+
NotificationTagDTOSchema,
|
|
4820
4842
|
OrganizerDTOSchema,
|
|
4821
4843
|
PublicEventDTOSchema,
|
|
4822
4844
|
PublicOrganizerDTOSchema,
|
|
@@ -4870,6 +4892,7 @@ exports.ImportReminderFrequency = ImportReminderFrequency;
|
|
|
4870
4892
|
exports.ImportReminderFrequencySchema = ImportReminderFrequencySchema;
|
|
4871
4893
|
exports.ImportReminderIdSchema = ImportReminderIdSchema;
|
|
4872
4894
|
exports.MainAdIdSchema = MainAdIdSchema;
|
|
4895
|
+
exports.NotificationIdSchema = NotificationIdSchema;
|
|
4873
4896
|
exports.OldTimesFilterAppliedStatisticSchema = OldTimesFilterAppliedStatisticSchema;
|
|
4874
4897
|
exports.OrganizerDisplayedStatisticSchema = OrganizerDisplayedStatisticSchema;
|
|
4875
4898
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
@@ -4888,6 +4911,7 @@ exports.V1 = index;
|
|
|
4888
4911
|
exports.createEventId = createEventId;
|
|
4889
4912
|
exports.createImportReminderId = createImportReminderId;
|
|
4890
4913
|
exports.createMainAdId = createMainAdId;
|
|
4914
|
+
exports.createNotificationId = createNotificationId;
|
|
4891
4915
|
exports.createOrganizerId = createOrganizerId;
|
|
4892
4916
|
exports.createRegionalAdId = createRegionalAdId;
|
|
4893
4917
|
exports.createUserId = createUserId;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -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,
|
|
@@ -4702,6 +4704,23 @@ const ImportReminderDTOSchema = object({
|
|
|
4702
4704
|
});
|
|
4703
4705
|
const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
|
|
4704
4706
|
const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
|
|
4707
|
+
const NotificationTagDTOSchema = _enum(["cancelled", "feature", "postponed", "reminder"]);
|
|
4708
|
+
const NotificationLinkDTOSchema = union([
|
|
4709
|
+
object({ type: literal("event"), eventId: EventIdSchema }),
|
|
4710
|
+
object({ type: literal("favorites") }),
|
|
4711
|
+
_null()
|
|
4712
|
+
]);
|
|
4713
|
+
const NotificationDTOSchema = object({
|
|
4714
|
+
author: StringSchema.nullable(),
|
|
4715
|
+
authorImageUrl: URLSchema.nullable(),
|
|
4716
|
+
content: StringSchema.nullable(),
|
|
4717
|
+
createdAt: string(),
|
|
4718
|
+
id: NotificationIdSchema,
|
|
4719
|
+
imageUrl: URLSchema.nullable(),
|
|
4720
|
+
link: NotificationLinkDTOSchema,
|
|
4721
|
+
tag: NotificationTagDTOSchema.nullable(),
|
|
4722
|
+
title: StringSchema.nullable()
|
|
4723
|
+
});
|
|
4705
4724
|
const PublicOrganizerDTOSchema = object({
|
|
4706
4725
|
id: OrganizerIdSchema,
|
|
4707
4726
|
imageUrl: URLSchema.nullable(),
|
|
@@ -4815,6 +4834,9 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4815
4834
|
ImportFromUrlDTOSchema,
|
|
4816
4835
|
ImportReminderDTOSchema,
|
|
4817
4836
|
MainAdDTOSchema,
|
|
4837
|
+
NotificationDTOSchema,
|
|
4838
|
+
NotificationLinkDTOSchema,
|
|
4839
|
+
NotificationTagDTOSchema,
|
|
4818
4840
|
OrganizerDTOSchema,
|
|
4819
4841
|
PublicEventDTOSchema,
|
|
4820
4842
|
PublicOrganizerDTOSchema,
|
|
@@ -4869,6 +4891,7 @@ export {
|
|
|
4869
4891
|
ImportReminderFrequencySchema,
|
|
4870
4892
|
ImportReminderIdSchema,
|
|
4871
4893
|
MainAdIdSchema,
|
|
4894
|
+
NotificationIdSchema,
|
|
4872
4895
|
OldTimesFilterAppliedStatisticSchema,
|
|
4873
4896
|
OrganizerDisplayedStatisticSchema,
|
|
4874
4897
|
OrganizerIdSchema,
|
|
@@ -4887,6 +4910,7 @@ export {
|
|
|
4887
4910
|
createEventId,
|
|
4888
4911
|
createImportReminderId,
|
|
4889
4912
|
createMainAdId,
|
|
4913
|
+
createNotificationId,
|
|
4890
4914
|
createOrganizerId,
|
|
4891
4915
|
createRegionalAdId,
|
|
4892
4916
|
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
|
package/dist/flavors.d.ts.map
CHANGED
|
@@ -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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