@sortipei/api-contracts 0.4.0 → 0.6.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.
- package/dist/V1/api/event.d.ts +31 -17
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/api/index.d.ts +9 -0
- package/dist/V1/api/index.d.ts.map +1 -1
- package/dist/V1/api/propose.d.ts +50 -0
- package/dist/V1/api/propose.d.ts.map +1 -0
- package/dist/V1/api/push-token.d.ts +15 -0
- package/dist/V1/api/push-token.d.ts.map +1 -0
- package/dist/V1/api/tag.d.ts +18 -0
- package/dist/V1/api/tag.d.ts.map +1 -0
- package/dist/V1/external/partial-imported-event.d.ts +10 -6
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +83 -10
- package/dist/api-contracts.mjs +83 -10
- package/dist/errors.d.ts +2 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/flavors.d.ts +9 -0
- package/dist/flavors.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -25,21 +25,25 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
25
25
|
isPriceRange: z.ZodBoolean;
|
|
26
26
|
isPromoted: z.ZodBoolean;
|
|
27
27
|
link: z.ZodNullable<z.ZodString>;
|
|
28
|
+
organizers: z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
30
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
popularityScore: z.ZodFloat32;
|
|
28
34
|
price: z.ZodNullable<z.ZodFloat32>;
|
|
29
35
|
promotionEnd: z.ZodNullable<z.ZodISODateTime>;
|
|
30
36
|
promotionStart: z.ZodNullable<z.ZodISODateTime>;
|
|
31
37
|
regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
|
|
32
|
-
popularityScore: z.ZodFloat32;
|
|
33
38
|
secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
|
|
34
39
|
startTime: z.ZodISODateTime;
|
|
40
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
42
|
+
label: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
35
44
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
36
45
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
37
46
|
title: z.ZodString;
|
|
38
|
-
organizers: z.ZodArray<z.ZodObject<{
|
|
39
|
-
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
40
|
-
name: z.ZodString;
|
|
41
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
47
|
}, z.core.$strip>;
|
|
44
48
|
export declare const PublicEventDTOSchema: z.ZodObject<{
|
|
45
49
|
regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
|
|
@@ -66,15 +70,19 @@ export declare const PublicEventDTOSchema: z.ZodObject<{
|
|
|
66
70
|
isOldTimes: z.ZodBoolean;
|
|
67
71
|
isPriceRange: z.ZodBoolean;
|
|
68
72
|
isPromoted: z.ZodBoolean;
|
|
69
|
-
price: z.ZodNullable<z.ZodFloat32>;
|
|
70
|
-
secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
|
|
71
|
-
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
72
|
-
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
73
73
|
organizers: z.ZodArray<z.ZodObject<{
|
|
74
74
|
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
75
|
-
name: z.ZodString;
|
|
76
75
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
76
|
+
name: z.ZodString;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
|
+
price: z.ZodNullable<z.ZodFloat32>;
|
|
79
|
+
secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
|
|
80
|
+
tags: z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
82
|
+
label: z.ZodString;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
85
|
+
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
78
86
|
}, z.core.$strip>;
|
|
79
87
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
80
88
|
adress: z.ZodString;
|
|
@@ -99,6 +107,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
99
107
|
regions: z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>;
|
|
100
108
|
secondaryCategory: z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>;
|
|
101
109
|
startTime: z.ZodISODateTime;
|
|
110
|
+
tagIds: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "TagId", "out">>>;
|
|
102
111
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
103
112
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
104
113
|
title: z.ZodString;
|
|
@@ -128,6 +137,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<{
|
|
|
128
137
|
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
129
138
|
ticketsUrl: z.ZodNullable<z.ZodString>;
|
|
130
139
|
organizersIds: z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">>;
|
|
140
|
+
tagIds: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "TagId", "out">>>;
|
|
131
141
|
}, z.core.$strip>;
|
|
132
142
|
export declare const DisplayEventDTOSchema: z.ZodObject<{
|
|
133
143
|
isDisplayed: z.ZodBoolean;
|
|
@@ -176,21 +186,25 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
176
186
|
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
177
187
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
178
188
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
191
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
194
|
+
popularityScore: z.ZodOptional<z.ZodFloat32>;
|
|
179
195
|
price: z.ZodOptional<z.ZodNullable<z.ZodFloat32>>;
|
|
180
196
|
promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
181
197
|
promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
182
198
|
regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
|
|
183
|
-
popularityScore: z.ZodOptional<z.ZodFloat32>;
|
|
184
199
|
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
|
|
185
200
|
startTime: z.ZodOptional<z.ZodISODateTime>;
|
|
201
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
203
|
+
label: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>>;
|
|
186
205
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
206
|
ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
207
|
title: z.ZodOptional<z.ZodString>;
|
|
189
|
-
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
-
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
191
|
-
name: z.ZodString;
|
|
192
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
193
|
-
}, z.core.$strip>>>;
|
|
194
208
|
}, z.core.$strip>;
|
|
195
209
|
source: z.ZodString;
|
|
196
210
|
userId: 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,CAAC;
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsCzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2B/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,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"}
|
package/dist/V1/api/index.d.ts
CHANGED
|
@@ -5,7 +5,10 @@ export * from './event';
|
|
|
5
5
|
export * from './import-reminder';
|
|
6
6
|
export * from './notification';
|
|
7
7
|
export * from './organizer';
|
|
8
|
+
export * from './propose';
|
|
9
|
+
export * from './push-token';
|
|
8
10
|
export * from './statistics';
|
|
11
|
+
export * from './tag';
|
|
9
12
|
export declare const constraints: {
|
|
10
13
|
events: {
|
|
11
14
|
adress: {
|
|
@@ -27,5 +30,11 @@ export declare const constraints: {
|
|
|
27
30
|
maxLength: number;
|
|
28
31
|
};
|
|
29
32
|
};
|
|
33
|
+
tags: {
|
|
34
|
+
label: {
|
|
35
|
+
maxLength: number;
|
|
36
|
+
minLength: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
30
39
|
};
|
|
31
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,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,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AAMtB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MinimalProposeEventDTOSchema: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
hasHandicapAccess: z.ZodBoolean;
|
|
5
|
+
link: z.ZodString;
|
|
6
|
+
promotionEnd: z.ZodNullable<z.ZodISODateTime>;
|
|
7
|
+
promotionStart: z.ZodNullable<z.ZodISODateTime>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export declare const FullProposeEventDTOSchema: z.ZodObject<{
|
|
10
|
+
adress: z.ZodString;
|
|
11
|
+
description: z.ZodString;
|
|
12
|
+
email: z.ZodString;
|
|
13
|
+
finishTime: z.ZodNullable<z.ZodISODateTime>;
|
|
14
|
+
hasHandicapAccess: z.ZodBoolean;
|
|
15
|
+
link: z.ZodString;
|
|
16
|
+
organizerName: z.ZodString;
|
|
17
|
+
price: z.ZodFloat32;
|
|
18
|
+
promotionEnd: z.ZodNullable<z.ZodISODateTime>;
|
|
19
|
+
promotionStart: z.ZodNullable<z.ZodISODateTime>;
|
|
20
|
+
startTime: z.ZodISODateTime;
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export declare const ProposeEventDTOSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
|
+
adress: z.ZodString;
|
|
25
|
+
description: z.ZodString;
|
|
26
|
+
email: z.ZodString;
|
|
27
|
+
finishTime: z.ZodNullable<z.ZodISODateTime>;
|
|
28
|
+
hasHandicapAccess: z.ZodBoolean;
|
|
29
|
+
link: z.ZodString;
|
|
30
|
+
organizerName: z.ZodString;
|
|
31
|
+
price: z.ZodFloat32;
|
|
32
|
+
promotionEnd: z.ZodNullable<z.ZodISODateTime>;
|
|
33
|
+
promotionStart: z.ZodNullable<z.ZodISODateTime>;
|
|
34
|
+
startTime: z.ZodISODateTime;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
email: z.ZodString;
|
|
38
|
+
hasHandicapAccess: z.ZodBoolean;
|
|
39
|
+
link: z.ZodString;
|
|
40
|
+
promotionEnd: z.ZodNullable<z.ZodISODateTime>;
|
|
41
|
+
promotionStart: z.ZodNullable<z.ZodISODateTime>;
|
|
42
|
+
}, z.core.$strict>]>;
|
|
43
|
+
export declare const ProposeEventResponseDTOSchema: z.ZodObject<{
|
|
44
|
+
id: z.core.$ZodBranded<z.ZodUUID, "EventProposalId", "out">;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type FullProposeEventDTO = z.infer<typeof FullProposeEventDTOSchema>;
|
|
47
|
+
export type MinimalProposeEventDTO = z.infer<typeof MinimalProposeEventDTOSchema>;
|
|
48
|
+
export type ProposeEventDTO = z.infer<typeof ProposeEventDTOSchema>;
|
|
49
|
+
export type ProposeEventResponseDTO = z.infer<typeof ProposeEventResponseDTOSchema>;
|
|
50
|
+
//# sourceMappingURL=propose.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propose.d.ts","sourceRoot":"","sources":["../../../src/V1/api/propose.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,4BAA4B;;;;;;kBAS6B,CAAC;AAEvE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;kBAgBgC,CAAC;AAEvE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;oBAAqE,CAAC;AAExG,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PushTokenPlatformSchema: z.ZodEnum<{
|
|
3
|
+
android: "android";
|
|
4
|
+
ios: "ios";
|
|
5
|
+
}>;
|
|
6
|
+
export type PushTokenPlatform = z.infer<typeof PushTokenPlatformSchema>;
|
|
7
|
+
export declare const RegisterPushTokenDTOSchema: z.ZodObject<{
|
|
8
|
+
expoPushToken: z.ZodString;
|
|
9
|
+
platform: z.ZodEnum<{
|
|
10
|
+
android: "android";
|
|
11
|
+
ios: "ios";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type RegisterPushTokenDTO = z.infer<typeof RegisterPushTokenDTOSchema>;
|
|
15
|
+
//# sourceMappingURL=push-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-token.d.ts","sourceRoot":"","sources":["../../../src/V1/api/push-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;EAA6B,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TagDTOSchema: z.ZodObject<{
|
|
3
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
4
|
+
label: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const CreateTagDTOSchema: z.ZodObject<{
|
|
7
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
8
|
+
label: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type CreateTagDTO = z.infer<typeof CreateTagDTOSchema>;
|
|
11
|
+
export type TagDTO = z.infer<typeof TagDTOSchema>;
|
|
12
|
+
export declare const constraints: {
|
|
13
|
+
label: {
|
|
14
|
+
maxLength: number;
|
|
15
|
+
minLength: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/V1/api/tag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;iBAGvB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
|
|
@@ -22,21 +22,25 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
22
22
|
isPriceRange: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
isPromoted: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
27
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
popularityScore: z.ZodOptional<z.ZodFloat32>;
|
|
25
31
|
price: z.ZodOptional<z.ZodNullable<z.ZodFloat32>>;
|
|
26
32
|
promotionEnd: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
27
33
|
promotionStart: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
28
34
|
regions: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import('../../shared').Region>>>;
|
|
29
|
-
popularityScore: z.ZodOptional<z.ZodFloat32>;
|
|
30
35
|
secondaryCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import('../../shared').Category>>>;
|
|
31
36
|
startTime: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
39
|
+
label: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
32
41
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
42
|
ticketsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
43
|
title: z.ZodOptional<z.ZodString>;
|
|
35
|
-
organizers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
-
id: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
imageUrl: z.ZodNullable<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>>>;
|
|
40
44
|
}, z.core.$strip>;
|
|
41
45
|
token: z.ZodString;
|
|
42
46
|
userId: 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
|
|
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"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
|
|
4
4
|
ErrorCodes2["OrganizerHasEvents"] = "60001";
|
|
5
|
+
ErrorCodes2["TagLabelAlreadyExists"] = "60002";
|
|
5
6
|
return ErrorCodes2;
|
|
6
7
|
})(ErrorCodes || {});
|
|
7
8
|
function $constructor(name, initializer2, params) {
|
|
@@ -4536,8 +4537,12 @@ var ImportReminderFrequency = /* @__PURE__ */ ((ImportReminderFrequency2) => {
|
|
|
4536
4537
|
const ImportReminderFrequencySchema = nativeEnum(ImportReminderFrequency);
|
|
4537
4538
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4538
4539
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4540
|
+
const EventProposalIdSchema = UUIDSchema.brand("EventProposalId");
|
|
4541
|
+
const createEventProposalId = (id = crypto.randomUUID()) => EventProposalIdSchema.parse(id);
|
|
4539
4542
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
4540
4543
|
const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
|
|
4544
|
+
const TagIdSchema = UUIDSchema.brand("TagId");
|
|
4545
|
+
const createTagId = (id = crypto.randomUUID()) => TagIdSchema.parse(id);
|
|
4541
4546
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4542
4547
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4543
4548
|
const MainAdIdSchema = UUIDSchema.brand("MainAdId");
|
|
@@ -4548,6 +4553,8 @@ const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
|
|
|
4548
4553
|
const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
|
|
4549
4554
|
const NotificationIdSchema = UUIDSchema.brand("NotificationId");
|
|
4550
4555
|
const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
|
|
4556
|
+
const PushTokenIdSchema = UUIDSchema.brand("PushTokenId");
|
|
4557
|
+
const createPushTokenId = (id = crypto.randomUUID()) => PushTokenIdSchema.parse(id);
|
|
4551
4558
|
const MainAdDTOSchema = object({
|
|
4552
4559
|
createdAt: datetime(),
|
|
4553
4560
|
endTime: StringSchema,
|
|
@@ -4589,6 +4596,20 @@ const FileUploadDTOSchema = object({
|
|
|
4589
4596
|
publicUrl: URLSchema,
|
|
4590
4597
|
uploadUrl: URLSchema
|
|
4591
4598
|
});
|
|
4599
|
+
const TagDTOSchema = object({
|
|
4600
|
+
id: TagIdSchema,
|
|
4601
|
+
label: StringSchema
|
|
4602
|
+
});
|
|
4603
|
+
const CreateTagDTOSchema = object({
|
|
4604
|
+
id: TagIdSchema,
|
|
4605
|
+
label: StringSchema
|
|
4606
|
+
});
|
|
4607
|
+
const constraints$3 = {
|
|
4608
|
+
label: {
|
|
4609
|
+
maxLength: 80,
|
|
4610
|
+
minLength: 1
|
|
4611
|
+
}
|
|
4612
|
+
};
|
|
4592
4613
|
const GPSCoordinatesSchema = object({
|
|
4593
4614
|
latitude: number(),
|
|
4594
4615
|
longitude: number()
|
|
@@ -4612,26 +4633,27 @@ const EventDTOSchema = object({
|
|
|
4612
4633
|
isPriceRange: boolean(),
|
|
4613
4634
|
isPromoted: boolean(),
|
|
4614
4635
|
link: URLSchema.nullable(),
|
|
4636
|
+
organizers: object({
|
|
4637
|
+
id: OrganizerIdSchema,
|
|
4638
|
+
imageUrl: URLSchema.nullable(),
|
|
4639
|
+
name: StringSchema
|
|
4640
|
+
}).array().min(1),
|
|
4641
|
+
popularityScore: SafeNonNegativeFloatSchema,
|
|
4615
4642
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4616
4643
|
promotionEnd: datetime().nullable(),
|
|
4617
4644
|
promotionStart: datetime().nullable(),
|
|
4618
4645
|
regions: RegionSchema.array(),
|
|
4619
|
-
popularityScore: SafeNonNegativeFloatSchema,
|
|
4620
4646
|
secondaryCategory: CategorySchema.nullable(),
|
|
4621
4647
|
startTime: datetime(),
|
|
4648
|
+
tags: TagDTOSchema.array(),
|
|
4622
4649
|
thumbnailUrl: URLSchema.nullable(),
|
|
4623
4650
|
ticketsUrl: URLSchema.nullable(),
|
|
4624
|
-
title: StringSchema
|
|
4625
|
-
organizers: object({
|
|
4626
|
-
id: OrganizerIdSchema,
|
|
4627
|
-
name: StringSchema,
|
|
4628
|
-
imageUrl: URLSchema.nullable()
|
|
4629
|
-
}).array().min(1)
|
|
4651
|
+
title: StringSchema
|
|
4630
4652
|
});
|
|
4631
4653
|
const PublicEventDTOSchema = EventDTOSchema.omit({
|
|
4654
|
+
externalSourceId: true,
|
|
4632
4655
|
promotionEnd: true,
|
|
4633
|
-
promotionStart: true
|
|
4634
|
-
externalSourceId: true
|
|
4656
|
+
promotionStart: true
|
|
4635
4657
|
});
|
|
4636
4658
|
const CreateEventDTOSchema = object({
|
|
4637
4659
|
adress: StringSchema,
|
|
@@ -4656,6 +4678,7 @@ const CreateEventDTOSchema = object({
|
|
|
4656
4678
|
regions: RegionSchema.array(),
|
|
4657
4679
|
secondaryCategory: CategorySchema.nullable(),
|
|
4658
4680
|
startTime: datetime(),
|
|
4681
|
+
tagIds: TagIdSchema.array().default([]),
|
|
4659
4682
|
thumbnailUrl: URLSchema.nullable(),
|
|
4660
4683
|
ticketsUrl: URLSchema.nullable(),
|
|
4661
4684
|
title: StringSchema
|
|
@@ -4769,6 +4792,41 @@ const constraints$1 = {
|
|
|
4769
4792
|
maxLength: 100
|
|
4770
4793
|
}
|
|
4771
4794
|
};
|
|
4795
|
+
const bothPromotionDatesNullOrBothSet = (data) => data.promotionStart === null === (data.promotionEnd === null);
|
|
4796
|
+
const pairedPromotionDatesRefine = {
|
|
4797
|
+
message: "promotionStart and promotionEnd must both be null or both be set",
|
|
4798
|
+
path: ["promotionEnd"]
|
|
4799
|
+
};
|
|
4800
|
+
const MinimalProposeEventDTOSchema = object({
|
|
4801
|
+
email: StringSchema,
|
|
4802
|
+
hasHandicapAccess: boolean(),
|
|
4803
|
+
link: URLSchema,
|
|
4804
|
+
promotionEnd: datetime().nullable(),
|
|
4805
|
+
promotionStart: datetime().nullable()
|
|
4806
|
+
}).strict().refine(bothPromotionDatesNullOrBothSet, pairedPromotionDatesRefine);
|
|
4807
|
+
const FullProposeEventDTOSchema = object({
|
|
4808
|
+
adress: StringSchema,
|
|
4809
|
+
description: StringSchema,
|
|
4810
|
+
email: StringSchema,
|
|
4811
|
+
finishTime: datetime().nullable(),
|
|
4812
|
+
hasHandicapAccess: boolean(),
|
|
4813
|
+
link: URLSchema,
|
|
4814
|
+
organizerName: StringSchema,
|
|
4815
|
+
price: SafeNonNegativeFloatSchema,
|
|
4816
|
+
promotionEnd: datetime().nullable(),
|
|
4817
|
+
promotionStart: datetime().nullable(),
|
|
4818
|
+
startTime: datetime(),
|
|
4819
|
+
title: StringSchema
|
|
4820
|
+
}).strict().refine(bothPromotionDatesNullOrBothSet, pairedPromotionDatesRefine);
|
|
4821
|
+
const ProposeEventDTOSchema = union([FullProposeEventDTOSchema, MinimalProposeEventDTOSchema]);
|
|
4822
|
+
const ProposeEventResponseDTOSchema = object({
|
|
4823
|
+
id: EventProposalIdSchema
|
|
4824
|
+
});
|
|
4825
|
+
const PushTokenPlatformSchema = _enum(["android", "ios"]);
|
|
4826
|
+
const RegisterPushTokenDTOSchema = object({
|
|
4827
|
+
expoPushToken: string().regex(/^ExponentPushToken\[.+\]$/),
|
|
4828
|
+
platform: PushTokenPlatformSchema
|
|
4829
|
+
});
|
|
4772
4830
|
const TopEventDTOSchema = object({
|
|
4773
4831
|
count: number(),
|
|
4774
4832
|
eventId: EventIdSchema,
|
|
@@ -4824,7 +4882,8 @@ const SaveStatisticDTOSchema = object({
|
|
|
4824
4882
|
});
|
|
4825
4883
|
const constraints = {
|
|
4826
4884
|
events: constraints$2,
|
|
4827
|
-
organizers: constraints$1
|
|
4885
|
+
organizers: constraints$1,
|
|
4886
|
+
tags: constraints$3
|
|
4828
4887
|
};
|
|
4829
4888
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4830
4889
|
__proto__: null,
|
|
@@ -4834,26 +4893,34 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4834
4893
|
CreateImportReminderDTOSchema,
|
|
4835
4894
|
CreateNotificationDTOSchema,
|
|
4836
4895
|
CreateOrganizerDTOSchema,
|
|
4896
|
+
CreateTagDTOSchema,
|
|
4837
4897
|
DisplayEventDTOSchema,
|
|
4838
4898
|
EventDTOSchema,
|
|
4839
4899
|
EventFileUploadDTOSchema,
|
|
4840
4900
|
EventStatisticsDTOSchema,
|
|
4841
4901
|
ExtractedDatesDTOSchema,
|
|
4842
4902
|
FileUploadDTOSchema,
|
|
4903
|
+
FullProposeEventDTOSchema,
|
|
4843
4904
|
GPSCoordinatesSchema,
|
|
4844
4905
|
GlobalStatsDTOSchema,
|
|
4845
4906
|
ImportDTOSchema,
|
|
4846
4907
|
ImportFromUrlDTOSchema,
|
|
4847
4908
|
ImportReminderDTOSchema,
|
|
4848
4909
|
MainAdDTOSchema,
|
|
4910
|
+
MinimalProposeEventDTOSchema,
|
|
4849
4911
|
NotificationDTOSchema,
|
|
4850
4912
|
NotificationLinkDTOSchema,
|
|
4851
4913
|
NotificationTagDTOSchema,
|
|
4852
4914
|
OrganizerDTOSchema,
|
|
4915
|
+
ProposeEventDTOSchema,
|
|
4916
|
+
ProposeEventResponseDTOSchema,
|
|
4853
4917
|
PublicEventDTOSchema,
|
|
4854
4918
|
PublicOrganizerDTOSchema,
|
|
4919
|
+
PushTokenPlatformSchema,
|
|
4855
4920
|
RegionalAdDTOSchema,
|
|
4921
|
+
RegisterPushTokenDTOSchema,
|
|
4856
4922
|
SaveStatisticDTOSchema,
|
|
4923
|
+
TagDTOSchema,
|
|
4857
4924
|
TemporalStatsDTOSchema,
|
|
4858
4925
|
TemporalStatsWeekDTOSchema,
|
|
4859
4926
|
TopEventDTOSchema,
|
|
@@ -4894,6 +4961,7 @@ exports.EventAddedToCalendarStatisticSchema = EventAddedToCalendarStatisticSchem
|
|
|
4894
4961
|
exports.EventAddedToFavoritesStatisticSchema = EventAddedToFavoritesStatisticSchema;
|
|
4895
4962
|
exports.EventDisplayedStatisticSchema = EventDisplayedStatisticSchema;
|
|
4896
4963
|
exports.EventIdSchema = EventIdSchema;
|
|
4964
|
+
exports.EventProposalIdSchema = EventProposalIdSchema;
|
|
4897
4965
|
exports.EventSeeMoreClickedStatisticsSchema = EventSeeMoreClickedStatisticsSchema;
|
|
4898
4966
|
exports.EventSharedStatisticSchema = EventSharedStatisticSchema;
|
|
4899
4967
|
exports.EventTicketsClickedStatisticsSchema = EventTicketsClickedStatisticsSchema;
|
|
@@ -4906,6 +4974,7 @@ exports.NotificationIdSchema = NotificationIdSchema;
|
|
|
4906
4974
|
exports.OldTimesFilterAppliedStatisticSchema = OldTimesFilterAppliedStatisticSchema;
|
|
4907
4975
|
exports.OrganizerDisplayedStatisticSchema = OrganizerDisplayedStatisticSchema;
|
|
4908
4976
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
4977
|
+
exports.PushTokenIdSchema = PushTokenIdSchema;
|
|
4909
4978
|
exports.Region = Region;
|
|
4910
4979
|
exports.RegionFilterAppliedStatisticSchema = RegionFilterAppliedStatisticSchema;
|
|
4911
4980
|
exports.RegionSchema = RegionSchema;
|
|
@@ -4914,14 +4983,18 @@ exports.SafeNonNegativeFloatSchema = SafeNonNegativeFloatSchema;
|
|
|
4914
4983
|
exports.SafeNonNegativeIntegerSchema = SafeNonNegativeIntegerSchema;
|
|
4915
4984
|
exports.StatisticSchema = StatisticSchema;
|
|
4916
4985
|
exports.StringSchema = StringSchema;
|
|
4986
|
+
exports.TagIdSchema = TagIdSchema;
|
|
4917
4987
|
exports.URLSchema = URLSchema;
|
|
4918
4988
|
exports.UUIDSchema = UUIDSchema;
|
|
4919
4989
|
exports.UserIdSchema = UserIdSchema;
|
|
4920
4990
|
exports.V1 = index;
|
|
4921
4991
|
exports.createEventId = createEventId;
|
|
4992
|
+
exports.createEventProposalId = createEventProposalId;
|
|
4922
4993
|
exports.createImportReminderId = createImportReminderId;
|
|
4923
4994
|
exports.createMainAdId = createMainAdId;
|
|
4924
4995
|
exports.createNotificationId = createNotificationId;
|
|
4925
4996
|
exports.createOrganizerId = createOrganizerId;
|
|
4997
|
+
exports.createPushTokenId = createPushTokenId;
|
|
4926
4998
|
exports.createRegionalAdId = createRegionalAdId;
|
|
4999
|
+
exports.createTagId = createTagId;
|
|
4927
5000
|
exports.createUserId = createUserId;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
|
|
2
2
|
ErrorCodes2["OrganizerHasEvents"] = "60001";
|
|
3
|
+
ErrorCodes2["TagLabelAlreadyExists"] = "60002";
|
|
3
4
|
return ErrorCodes2;
|
|
4
5
|
})(ErrorCodes || {});
|
|
5
6
|
function $constructor(name, initializer2, params) {
|
|
@@ -4534,8 +4535,12 @@ var ImportReminderFrequency = /* @__PURE__ */ ((ImportReminderFrequency2) => {
|
|
|
4534
4535
|
const ImportReminderFrequencySchema = nativeEnum(ImportReminderFrequency);
|
|
4535
4536
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4536
4537
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4538
|
+
const EventProposalIdSchema = UUIDSchema.brand("EventProposalId");
|
|
4539
|
+
const createEventProposalId = (id = crypto.randomUUID()) => EventProposalIdSchema.parse(id);
|
|
4537
4540
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
4538
4541
|
const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(id);
|
|
4542
|
+
const TagIdSchema = UUIDSchema.brand("TagId");
|
|
4543
|
+
const createTagId = (id = crypto.randomUUID()) => TagIdSchema.parse(id);
|
|
4539
4544
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4540
4545
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4541
4546
|
const MainAdIdSchema = UUIDSchema.brand("MainAdId");
|
|
@@ -4546,6 +4551,8 @@ const ImportReminderIdSchema = UUIDSchema.brand("ImportReminderId");
|
|
|
4546
4551
|
const createImportReminderId = (id = crypto.randomUUID()) => ImportReminderIdSchema.parse(id);
|
|
4547
4552
|
const NotificationIdSchema = UUIDSchema.brand("NotificationId");
|
|
4548
4553
|
const createNotificationId = (id = crypto.randomUUID()) => NotificationIdSchema.parse(id);
|
|
4554
|
+
const PushTokenIdSchema = UUIDSchema.brand("PushTokenId");
|
|
4555
|
+
const createPushTokenId = (id = crypto.randomUUID()) => PushTokenIdSchema.parse(id);
|
|
4549
4556
|
const MainAdDTOSchema = object({
|
|
4550
4557
|
createdAt: datetime(),
|
|
4551
4558
|
endTime: StringSchema,
|
|
@@ -4587,6 +4594,20 @@ const FileUploadDTOSchema = object({
|
|
|
4587
4594
|
publicUrl: URLSchema,
|
|
4588
4595
|
uploadUrl: URLSchema
|
|
4589
4596
|
});
|
|
4597
|
+
const TagDTOSchema = object({
|
|
4598
|
+
id: TagIdSchema,
|
|
4599
|
+
label: StringSchema
|
|
4600
|
+
});
|
|
4601
|
+
const CreateTagDTOSchema = object({
|
|
4602
|
+
id: TagIdSchema,
|
|
4603
|
+
label: StringSchema
|
|
4604
|
+
});
|
|
4605
|
+
const constraints$3 = {
|
|
4606
|
+
label: {
|
|
4607
|
+
maxLength: 80,
|
|
4608
|
+
minLength: 1
|
|
4609
|
+
}
|
|
4610
|
+
};
|
|
4590
4611
|
const GPSCoordinatesSchema = object({
|
|
4591
4612
|
latitude: number(),
|
|
4592
4613
|
longitude: number()
|
|
@@ -4610,26 +4631,27 @@ const EventDTOSchema = object({
|
|
|
4610
4631
|
isPriceRange: boolean(),
|
|
4611
4632
|
isPromoted: boolean(),
|
|
4612
4633
|
link: URLSchema.nullable(),
|
|
4634
|
+
organizers: object({
|
|
4635
|
+
id: OrganizerIdSchema,
|
|
4636
|
+
imageUrl: URLSchema.nullable(),
|
|
4637
|
+
name: StringSchema
|
|
4638
|
+
}).array().min(1),
|
|
4639
|
+
popularityScore: SafeNonNegativeFloatSchema,
|
|
4613
4640
|
price: SafeNonNegativeFloatSchema.nullable(),
|
|
4614
4641
|
promotionEnd: datetime().nullable(),
|
|
4615
4642
|
promotionStart: datetime().nullable(),
|
|
4616
4643
|
regions: RegionSchema.array(),
|
|
4617
|
-
popularityScore: SafeNonNegativeFloatSchema,
|
|
4618
4644
|
secondaryCategory: CategorySchema.nullable(),
|
|
4619
4645
|
startTime: datetime(),
|
|
4646
|
+
tags: TagDTOSchema.array(),
|
|
4620
4647
|
thumbnailUrl: URLSchema.nullable(),
|
|
4621
4648
|
ticketsUrl: URLSchema.nullable(),
|
|
4622
|
-
title: StringSchema
|
|
4623
|
-
organizers: object({
|
|
4624
|
-
id: OrganizerIdSchema,
|
|
4625
|
-
name: StringSchema,
|
|
4626
|
-
imageUrl: URLSchema.nullable()
|
|
4627
|
-
}).array().min(1)
|
|
4649
|
+
title: StringSchema
|
|
4628
4650
|
});
|
|
4629
4651
|
const PublicEventDTOSchema = EventDTOSchema.omit({
|
|
4652
|
+
externalSourceId: true,
|
|
4630
4653
|
promotionEnd: true,
|
|
4631
|
-
promotionStart: true
|
|
4632
|
-
externalSourceId: true
|
|
4654
|
+
promotionStart: true
|
|
4633
4655
|
});
|
|
4634
4656
|
const CreateEventDTOSchema = object({
|
|
4635
4657
|
adress: StringSchema,
|
|
@@ -4654,6 +4676,7 @@ const CreateEventDTOSchema = object({
|
|
|
4654
4676
|
regions: RegionSchema.array(),
|
|
4655
4677
|
secondaryCategory: CategorySchema.nullable(),
|
|
4656
4678
|
startTime: datetime(),
|
|
4679
|
+
tagIds: TagIdSchema.array().default([]),
|
|
4657
4680
|
thumbnailUrl: URLSchema.nullable(),
|
|
4658
4681
|
ticketsUrl: URLSchema.nullable(),
|
|
4659
4682
|
title: StringSchema
|
|
@@ -4767,6 +4790,41 @@ const constraints$1 = {
|
|
|
4767
4790
|
maxLength: 100
|
|
4768
4791
|
}
|
|
4769
4792
|
};
|
|
4793
|
+
const bothPromotionDatesNullOrBothSet = (data) => data.promotionStart === null === (data.promotionEnd === null);
|
|
4794
|
+
const pairedPromotionDatesRefine = {
|
|
4795
|
+
message: "promotionStart and promotionEnd must both be null or both be set",
|
|
4796
|
+
path: ["promotionEnd"]
|
|
4797
|
+
};
|
|
4798
|
+
const MinimalProposeEventDTOSchema = object({
|
|
4799
|
+
email: StringSchema,
|
|
4800
|
+
hasHandicapAccess: boolean(),
|
|
4801
|
+
link: URLSchema,
|
|
4802
|
+
promotionEnd: datetime().nullable(),
|
|
4803
|
+
promotionStart: datetime().nullable()
|
|
4804
|
+
}).strict().refine(bothPromotionDatesNullOrBothSet, pairedPromotionDatesRefine);
|
|
4805
|
+
const FullProposeEventDTOSchema = object({
|
|
4806
|
+
adress: StringSchema,
|
|
4807
|
+
description: StringSchema,
|
|
4808
|
+
email: StringSchema,
|
|
4809
|
+
finishTime: datetime().nullable(),
|
|
4810
|
+
hasHandicapAccess: boolean(),
|
|
4811
|
+
link: URLSchema,
|
|
4812
|
+
organizerName: StringSchema,
|
|
4813
|
+
price: SafeNonNegativeFloatSchema,
|
|
4814
|
+
promotionEnd: datetime().nullable(),
|
|
4815
|
+
promotionStart: datetime().nullable(),
|
|
4816
|
+
startTime: datetime(),
|
|
4817
|
+
title: StringSchema
|
|
4818
|
+
}).strict().refine(bothPromotionDatesNullOrBothSet, pairedPromotionDatesRefine);
|
|
4819
|
+
const ProposeEventDTOSchema = union([FullProposeEventDTOSchema, MinimalProposeEventDTOSchema]);
|
|
4820
|
+
const ProposeEventResponseDTOSchema = object({
|
|
4821
|
+
id: EventProposalIdSchema
|
|
4822
|
+
});
|
|
4823
|
+
const PushTokenPlatformSchema = _enum(["android", "ios"]);
|
|
4824
|
+
const RegisterPushTokenDTOSchema = object({
|
|
4825
|
+
expoPushToken: string().regex(/^ExponentPushToken\[.+\]$/),
|
|
4826
|
+
platform: PushTokenPlatformSchema
|
|
4827
|
+
});
|
|
4770
4828
|
const TopEventDTOSchema = object({
|
|
4771
4829
|
count: number(),
|
|
4772
4830
|
eventId: EventIdSchema,
|
|
@@ -4822,7 +4880,8 @@ const SaveStatisticDTOSchema = object({
|
|
|
4822
4880
|
});
|
|
4823
4881
|
const constraints = {
|
|
4824
4882
|
events: constraints$2,
|
|
4825
|
-
organizers: constraints$1
|
|
4883
|
+
organizers: constraints$1,
|
|
4884
|
+
tags: constraints$3
|
|
4826
4885
|
};
|
|
4827
4886
|
const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4828
4887
|
__proto__: null,
|
|
@@ -4832,26 +4891,34 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4832
4891
|
CreateImportReminderDTOSchema,
|
|
4833
4892
|
CreateNotificationDTOSchema,
|
|
4834
4893
|
CreateOrganizerDTOSchema,
|
|
4894
|
+
CreateTagDTOSchema,
|
|
4835
4895
|
DisplayEventDTOSchema,
|
|
4836
4896
|
EventDTOSchema,
|
|
4837
4897
|
EventFileUploadDTOSchema,
|
|
4838
4898
|
EventStatisticsDTOSchema,
|
|
4839
4899
|
ExtractedDatesDTOSchema,
|
|
4840
4900
|
FileUploadDTOSchema,
|
|
4901
|
+
FullProposeEventDTOSchema,
|
|
4841
4902
|
GPSCoordinatesSchema,
|
|
4842
4903
|
GlobalStatsDTOSchema,
|
|
4843
4904
|
ImportDTOSchema,
|
|
4844
4905
|
ImportFromUrlDTOSchema,
|
|
4845
4906
|
ImportReminderDTOSchema,
|
|
4846
4907
|
MainAdDTOSchema,
|
|
4908
|
+
MinimalProposeEventDTOSchema,
|
|
4847
4909
|
NotificationDTOSchema,
|
|
4848
4910
|
NotificationLinkDTOSchema,
|
|
4849
4911
|
NotificationTagDTOSchema,
|
|
4850
4912
|
OrganizerDTOSchema,
|
|
4913
|
+
ProposeEventDTOSchema,
|
|
4914
|
+
ProposeEventResponseDTOSchema,
|
|
4851
4915
|
PublicEventDTOSchema,
|
|
4852
4916
|
PublicOrganizerDTOSchema,
|
|
4917
|
+
PushTokenPlatformSchema,
|
|
4853
4918
|
RegionalAdDTOSchema,
|
|
4919
|
+
RegisterPushTokenDTOSchema,
|
|
4854
4920
|
SaveStatisticDTOSchema,
|
|
4921
|
+
TagDTOSchema,
|
|
4855
4922
|
TemporalStatsDTOSchema,
|
|
4856
4923
|
TemporalStatsWeekDTOSchema,
|
|
4857
4924
|
TopEventDTOSchema,
|
|
@@ -4893,6 +4960,7 @@ export {
|
|
|
4893
4960
|
EventAddedToFavoritesStatisticSchema,
|
|
4894
4961
|
EventDisplayedStatisticSchema,
|
|
4895
4962
|
EventIdSchema,
|
|
4963
|
+
EventProposalIdSchema,
|
|
4896
4964
|
EventSeeMoreClickedStatisticsSchema,
|
|
4897
4965
|
EventSharedStatisticSchema,
|
|
4898
4966
|
EventTicketsClickedStatisticsSchema,
|
|
@@ -4905,6 +4973,7 @@ export {
|
|
|
4905
4973
|
OldTimesFilterAppliedStatisticSchema,
|
|
4906
4974
|
OrganizerDisplayedStatisticSchema,
|
|
4907
4975
|
OrganizerIdSchema,
|
|
4976
|
+
PushTokenIdSchema,
|
|
4908
4977
|
Region,
|
|
4909
4978
|
RegionFilterAppliedStatisticSchema,
|
|
4910
4979
|
RegionSchema,
|
|
@@ -4913,15 +4982,19 @@ export {
|
|
|
4913
4982
|
SafeNonNegativeIntegerSchema,
|
|
4914
4983
|
StatisticSchema,
|
|
4915
4984
|
StringSchema,
|
|
4985
|
+
TagIdSchema,
|
|
4916
4986
|
URLSchema,
|
|
4917
4987
|
UUIDSchema,
|
|
4918
4988
|
UserIdSchema,
|
|
4919
4989
|
index as V1,
|
|
4920
4990
|
createEventId,
|
|
4991
|
+
createEventProposalId,
|
|
4921
4992
|
createImportReminderId,
|
|
4922
4993
|
createMainAdId,
|
|
4923
4994
|
createNotificationId,
|
|
4924
4995
|
createOrganizerId,
|
|
4996
|
+
createPushTokenId,
|
|
4925
4997
|
createRegionalAdId,
|
|
4998
|
+
createTagId,
|
|
4926
4999
|
createUserId
|
|
4927
5000
|
};
|
package/dist/errors.d.ts
CHANGED
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,kBAAkB,UAAU;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,kBAAkB,UAAU;IAC5B,qBAAqB,UAAU;CAChC"}
|
package/dist/flavors.d.ts
CHANGED
|
@@ -2,9 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const EventIdSchema: z.core.$ZodBranded<z.ZodUUID, "EventId", "out">;
|
|
3
3
|
export type EventId = z.infer<typeof EventIdSchema>;
|
|
4
4
|
export declare const createEventId: (id?: string) => EventId;
|
|
5
|
+
export declare const EventProposalIdSchema: z.core.$ZodBranded<z.ZodUUID, "EventProposalId", "out">;
|
|
6
|
+
export type EventProposalId = z.infer<typeof EventProposalIdSchema>;
|
|
7
|
+
export declare const createEventProposalId: (id?: string) => EventProposalId;
|
|
5
8
|
export declare const OrganizerIdSchema: z.core.$ZodBranded<z.ZodUUID, "OrganizerId", "out">;
|
|
6
9
|
export type OrganizerId = z.infer<typeof OrganizerIdSchema>;
|
|
7
10
|
export declare const createOrganizerId: (id?: string) => OrganizerId;
|
|
11
|
+
export declare const TagIdSchema: z.core.$ZodBranded<z.ZodUUID, "TagId", "out">;
|
|
12
|
+
export type TagId = z.infer<typeof TagIdSchema>;
|
|
13
|
+
export declare const createTagId: (id?: string) => TagId;
|
|
8
14
|
export declare const UserIdSchema: z.core.$ZodBranded<z.ZodUUID, "UserId", "out">;
|
|
9
15
|
export type UserId = z.infer<typeof UserIdSchema>;
|
|
10
16
|
export declare const createUserId: (id?: string) => UserId;
|
|
@@ -20,4 +26,7 @@ export declare const createImportReminderId: (id?: string) => ImportReminderId;
|
|
|
20
26
|
export declare const NotificationIdSchema: z.core.$ZodBranded<z.ZodUUID, "NotificationId", "out">;
|
|
21
27
|
export type NotificationId = z.infer<typeof NotificationIdSchema>;
|
|
22
28
|
export declare const createNotificationId: (id?: string) => NotificationId;
|
|
29
|
+
export declare const PushTokenIdSchema: z.core.$ZodBranded<z.ZodUUID, "PushTokenId", "out">;
|
|
30
|
+
export type PushTokenId = z.infer<typeof PushTokenIdSchema>;
|
|
31
|
+
export declare const createPushTokenId: (id?: string) => PushTokenId;
|
|
23
32
|
//# 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,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,CAAC,CAAC,KAAK,CAAC,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"}
|
|
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,qBAAqB,yDAAsC,CAAC;AACzE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB,QAAQ,MAAM,KAAyB,eACxC,CAAC;AAElC,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,WAAW,+CAA4B,CAAC;AACrD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,WAAW,QAAQ,MAAM,KAAyB,KAA8B,CAAC;AAE9F,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,CAAC,CAAC,KAAK,CAAC,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;AAEjC,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"}
|