@sortipei/api-contracts 0.1.14 → 0.1.15
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 +14 -0
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +5 -0
- package/dist/V1/external/partial-imported-event.d.ts.map +1 -1
- package/dist/api-contracts.js +14 -0
- package/dist/api-contracts.mjs +14 -0
- package/dist/shared/event.d.ts +9 -0
- package/dist/shared/event.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const EventDTOSchema: z.ZodObject<{
|
|
3
3
|
adress: z.ZodString;
|
|
4
4
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
5
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
5
6
|
description: z.ZodString;
|
|
6
7
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
7
8
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -30,6 +31,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
adress: string;
|
|
32
33
|
capacity: number | null;
|
|
34
|
+
category: import('../../shared').Category;
|
|
33
35
|
description: string;
|
|
34
36
|
finishTime: string | null;
|
|
35
37
|
hasHandicapAccess: boolean | null;
|
|
@@ -50,6 +52,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
50
52
|
}, {
|
|
51
53
|
adress: string;
|
|
52
54
|
capacity: number | null;
|
|
55
|
+
category: import('../../shared').Category;
|
|
53
56
|
description: string;
|
|
54
57
|
finishTime: string | null;
|
|
55
58
|
hasHandicapAccess: boolean | null;
|
|
@@ -71,6 +74,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
71
74
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
72
75
|
adress: z.ZodString;
|
|
73
76
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
74
78
|
description: z.ZodString;
|
|
75
79
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
76
80
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -86,6 +90,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
86
90
|
}, "strip", z.ZodTypeAny, {
|
|
87
91
|
adress: string;
|
|
88
92
|
capacity: number | null;
|
|
93
|
+
category: import('../../shared').Category;
|
|
89
94
|
description: string;
|
|
90
95
|
finishTime: string | null;
|
|
91
96
|
hasHandicapAccess: boolean | null;
|
|
@@ -101,6 +106,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
101
106
|
}, {
|
|
102
107
|
adress: string;
|
|
103
108
|
capacity: number | null;
|
|
109
|
+
category: import('../../shared').Category;
|
|
104
110
|
description: string;
|
|
105
111
|
finishTime: string | null;
|
|
106
112
|
hasHandicapAccess: boolean | null;
|
|
@@ -117,6 +123,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
117
123
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
118
124
|
adress: z.ZodString;
|
|
119
125
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
126
|
+
category: z.ZodNativeEnum<typeof import('../../shared').Category>;
|
|
120
127
|
description: z.ZodString;
|
|
121
128
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
122
129
|
hasHandicapAccess: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -132,6 +139,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
132
139
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
133
140
|
adress: string;
|
|
134
141
|
capacity: number | null;
|
|
142
|
+
category: import('../../shared').Category;
|
|
135
143
|
description: string;
|
|
136
144
|
finishTime: string | null;
|
|
137
145
|
hasHandicapAccess: boolean | null;
|
|
@@ -146,6 +154,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
146
154
|
}, {
|
|
147
155
|
adress: string;
|
|
148
156
|
capacity: number | null;
|
|
157
|
+
category: import('../../shared').Category;
|
|
149
158
|
description: string;
|
|
150
159
|
finishTime: string | null;
|
|
151
160
|
hasHandicapAccess: boolean | null;
|
|
@@ -198,6 +207,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
198
207
|
partialEventState: z.ZodObject<{
|
|
199
208
|
adress: z.ZodOptional<z.ZodString>;
|
|
200
209
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
210
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
|
|
201
211
|
description: z.ZodOptional<z.ZodString>;
|
|
202
212
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
213
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -226,6 +236,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
226
236
|
}, "strip", z.ZodTypeAny, {
|
|
227
237
|
adress?: string | undefined;
|
|
228
238
|
capacity?: number | null | undefined;
|
|
239
|
+
category?: import('../../shared').Category | undefined;
|
|
229
240
|
description?: string | undefined;
|
|
230
241
|
finishTime?: string | null | undefined;
|
|
231
242
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -246,6 +257,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
246
257
|
}, {
|
|
247
258
|
adress?: string | undefined;
|
|
248
259
|
capacity?: number | null | undefined;
|
|
260
|
+
category?: import('../../shared').Category | undefined;
|
|
249
261
|
description?: string | undefined;
|
|
250
262
|
finishTime?: string | null | undefined;
|
|
251
263
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -273,6 +285,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
273
285
|
partialEventState: {
|
|
274
286
|
adress?: string | undefined;
|
|
275
287
|
capacity?: number | null | undefined;
|
|
288
|
+
category?: import('../../shared').Category | undefined;
|
|
276
289
|
description?: string | undefined;
|
|
277
290
|
finishTime?: string | null | undefined;
|
|
278
291
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -300,6 +313,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
300
313
|
partialEventState: {
|
|
301
314
|
adress?: string | undefined;
|
|
302
315
|
capacity?: number | null | undefined;
|
|
316
|
+
category?: import('../../shared').Category | undefined;
|
|
303
317
|
description?: string | undefined;
|
|
304
318
|
finishTime?: string | null | undefined;
|
|
305
319
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,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,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
3
3
|
partialEventState: z.ZodObject<{
|
|
4
4
|
adress: z.ZodOptional<z.ZodString>;
|
|
5
5
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
category: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').Category>>;
|
|
6
7
|
description: z.ZodOptional<z.ZodString>;
|
|
7
8
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
9
|
hasHandicapAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -31,6 +32,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
31
32
|
}, "strip", z.ZodTypeAny, {
|
|
32
33
|
adress?: string | undefined;
|
|
33
34
|
capacity?: number | null | undefined;
|
|
35
|
+
category?: import('../../shared').Category | undefined;
|
|
34
36
|
description?: string | undefined;
|
|
35
37
|
finishTime?: string | null | undefined;
|
|
36
38
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -51,6 +53,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
51
53
|
}, {
|
|
52
54
|
adress?: string | undefined;
|
|
53
55
|
capacity?: number | null | undefined;
|
|
56
|
+
category?: import('../../shared').Category | undefined;
|
|
54
57
|
description?: string | undefined;
|
|
55
58
|
finishTime?: string | null | undefined;
|
|
56
59
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -78,6 +81,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
78
81
|
partialEventState: {
|
|
79
82
|
adress?: string | undefined;
|
|
80
83
|
capacity?: number | null | undefined;
|
|
84
|
+
category?: import('../../shared').Category | undefined;
|
|
81
85
|
description?: string | undefined;
|
|
82
86
|
finishTime?: string | null | undefined;
|
|
83
87
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -104,6 +108,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
104
108
|
partialEventState: {
|
|
105
109
|
adress?: string | undefined;
|
|
106
110
|
capacity?: number | null | undefined;
|
|
111
|
+
category?: import('../../shared').Category | undefined;
|
|
107
112
|
description?: string | undefined;
|
|
108
113
|
finishTime?: string | null | undefined;
|
|
109
114
|
hasHandicapAccess?: boolean | null | undefined;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4065,6 +4065,16 @@ var Region = /* @__PURE__ */ ((Region2) => {
|
|
|
4065
4065
|
return Region2;
|
|
4066
4066
|
})(Region || {});
|
|
4067
4067
|
const RegionSchema = z.nativeEnum(Region);
|
|
4068
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
4069
|
+
Category2["ArtsAndCulture"] = "ArtsAndCulture";
|
|
4070
|
+
Category2["ConferencesAndWorkshops"] = "ConferencesAndWorkshops";
|
|
4071
|
+
Category2["Kids"] = "Kids";
|
|
4072
|
+
Category2["LocalLife"] = "LocalLife";
|
|
4073
|
+
Category2["MusicAndFestivals"] = "MusicAndFestivals";
|
|
4074
|
+
Category2["SportAndWellness"] = "SportAndWellness";
|
|
4075
|
+
return Category2;
|
|
4076
|
+
})(Category || {});
|
|
4077
|
+
const CategorySchema = z.nativeEnum(Category);
|
|
4068
4078
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4069
4079
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4070
4080
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4074,6 +4084,7 @@ const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
|
4074
4084
|
const EventDTOSchema = z.object({
|
|
4075
4085
|
adress: StringSchema,
|
|
4076
4086
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4087
|
+
category: CategorySchema,
|
|
4077
4088
|
description: StringSchema,
|
|
4078
4089
|
finishTime: z.string().datetime().nullable(),
|
|
4079
4090
|
hasHandicapAccess: z.boolean().nullable(),
|
|
@@ -4095,6 +4106,7 @@ const EventDTOSchema = z.object({
|
|
|
4095
4106
|
const CreateEventDTOSchema = z.object({
|
|
4096
4107
|
adress: StringSchema,
|
|
4097
4108
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4109
|
+
category: CategorySchema,
|
|
4098
4110
|
description: StringSchema,
|
|
4099
4111
|
finishTime: z.string().datetime().nullable(),
|
|
4100
4112
|
hasHandicapAccess: z.boolean().nullable(),
|
|
@@ -4197,6 +4209,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4197
4209
|
api: index$2,
|
|
4198
4210
|
external: index$1
|
|
4199
4211
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4212
|
+
exports.Category = Category;
|
|
4213
|
+
exports.CategorySchema = CategorySchema;
|
|
4200
4214
|
exports.CoerceDateSchema = CoerceDateSchema;
|
|
4201
4215
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4202
4216
|
exports.ErrorCodes = ErrorCodes;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4063,6 +4063,16 @@ var Region = /* @__PURE__ */ ((Region2) => {
|
|
|
4063
4063
|
return Region2;
|
|
4064
4064
|
})(Region || {});
|
|
4065
4065
|
const RegionSchema = z.nativeEnum(Region);
|
|
4066
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
4067
|
+
Category2["ArtsAndCulture"] = "ArtsAndCulture";
|
|
4068
|
+
Category2["ConferencesAndWorkshops"] = "ConferencesAndWorkshops";
|
|
4069
|
+
Category2["Kids"] = "Kids";
|
|
4070
|
+
Category2["LocalLife"] = "LocalLife";
|
|
4071
|
+
Category2["MusicAndFestivals"] = "MusicAndFestivals";
|
|
4072
|
+
Category2["SportAndWellness"] = "SportAndWellness";
|
|
4073
|
+
return Category2;
|
|
4074
|
+
})(Category || {});
|
|
4075
|
+
const CategorySchema = z.nativeEnum(Category);
|
|
4066
4076
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4067
4077
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4068
4078
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4072,6 +4082,7 @@ const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
|
4072
4082
|
const EventDTOSchema = z.object({
|
|
4073
4083
|
adress: StringSchema,
|
|
4074
4084
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4085
|
+
category: CategorySchema,
|
|
4075
4086
|
description: StringSchema,
|
|
4076
4087
|
finishTime: z.string().datetime().nullable(),
|
|
4077
4088
|
hasHandicapAccess: z.boolean().nullable(),
|
|
@@ -4093,6 +4104,7 @@ const EventDTOSchema = z.object({
|
|
|
4093
4104
|
const CreateEventDTOSchema = z.object({
|
|
4094
4105
|
adress: StringSchema,
|
|
4095
4106
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4107
|
+
category: CategorySchema,
|
|
4096
4108
|
description: StringSchema,
|
|
4097
4109
|
finishTime: z.string().datetime().nullable(),
|
|
4098
4110
|
hasHandicapAccess: z.boolean().nullable(),
|
|
@@ -4196,6 +4208,8 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4196
4208
|
external: index$1
|
|
4197
4209
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4198
4210
|
export {
|
|
4211
|
+
Category,
|
|
4212
|
+
CategorySchema,
|
|
4199
4213
|
CoerceDateSchema,
|
|
4200
4214
|
CoerceNullableDateSchema,
|
|
4201
4215
|
ErrorCodes,
|
package/dist/shared/event.d.ts
CHANGED
|
@@ -6,4 +6,13 @@ export declare enum Region {
|
|
|
6
6
|
West = "West"
|
|
7
7
|
}
|
|
8
8
|
export declare const RegionSchema: z.ZodNativeEnum<typeof Region>;
|
|
9
|
+
export declare enum Category {
|
|
10
|
+
ArtsAndCulture = "ArtsAndCulture",
|
|
11
|
+
ConferencesAndWorkshops = "ConferencesAndWorkshops",
|
|
12
|
+
Kids = "Kids",
|
|
13
|
+
LocalLife = "LocalLife",
|
|
14
|
+
MusicAndFestivals = "MusicAndFestivals",
|
|
15
|
+
SportAndWellness = "SportAndWellness"
|
|
16
|
+
}
|
|
17
|
+
export declare const CategorySchema: z.ZodNativeEnum<typeof Category>;
|
|
9
18
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/shared/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,gCAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/shared/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,YAAY,gCAAuB,CAAC;AAEjD,oBAAY,QAAQ;IAClB,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;CACtC;AAED,eAAO,MAAM,cAAc,kCAAyB,CAAC"}
|