@sortipei/api-contracts 0.1.10 → 0.1.11
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 +21 -0
- package/dist/V1/api/event.d.ts.map +1 -1
- package/dist/V1/api/index.d.ts +4 -0
- package/dist/V1/api/index.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 +6 -0
- package/dist/api-contracts.mjs +6 -0
- package/package.json +1 -1
package/dist/V1/api/event.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const EventDTOSchema: z.ZodObject<{
|
|
3
|
+
adress: z.ZodString;
|
|
3
4
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
4
5
|
description: z.ZodString;
|
|
5
6
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -24,6 +25,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
24
25
|
name: string;
|
|
25
26
|
}>, "many">;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
adress: string;
|
|
27
29
|
capacity: number | null;
|
|
28
30
|
description: string;
|
|
29
31
|
finishTime: string | null;
|
|
@@ -42,6 +44,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
42
44
|
name: string;
|
|
43
45
|
}[];
|
|
44
46
|
}, {
|
|
47
|
+
adress: string;
|
|
45
48
|
capacity: number | null;
|
|
46
49
|
description: string;
|
|
47
50
|
finishTime: string | null;
|
|
@@ -61,6 +64,7 @@ export declare const EventDTOSchema: z.ZodObject<{
|
|
|
61
64
|
}[];
|
|
62
65
|
}>;
|
|
63
66
|
export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
67
|
+
adress: z.ZodString;
|
|
64
68
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
65
69
|
description: z.ZodString;
|
|
66
70
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -87,6 +91,7 @@ export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
87
91
|
}, "isDisplayed">, {
|
|
88
92
|
isFavorite: z.ZodBoolean;
|
|
89
93
|
}>, "strip", z.ZodTypeAny, {
|
|
94
|
+
adress: string;
|
|
90
95
|
capacity: number | null;
|
|
91
96
|
description: string;
|
|
92
97
|
finishTime: string | null;
|
|
@@ -105,6 +110,7 @@ export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
105
110
|
}[];
|
|
106
111
|
isFavorite: boolean;
|
|
107
112
|
}, {
|
|
113
|
+
adress: string;
|
|
108
114
|
capacity: number | null;
|
|
109
115
|
description: string;
|
|
110
116
|
finishTime: string | null;
|
|
@@ -124,6 +130,7 @@ export declare const EventPublicDTOSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
124
130
|
isFavorite: boolean;
|
|
125
131
|
}>;
|
|
126
132
|
export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
133
|
+
adress: z.ZodString;
|
|
127
134
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
128
135
|
description: z.ZodString;
|
|
129
136
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -138,6 +145,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
138
145
|
startTime: z.ZodString;
|
|
139
146
|
title: z.ZodString;
|
|
140
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
adress: string;
|
|
141
149
|
capacity: number | null;
|
|
142
150
|
description: string;
|
|
143
151
|
finishTime: string | null;
|
|
@@ -152,6 +160,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
152
160
|
title: string;
|
|
153
161
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
154
162
|
}, {
|
|
163
|
+
adress: string;
|
|
155
164
|
capacity: number | null;
|
|
156
165
|
description: string;
|
|
157
166
|
finishTime: string | null;
|
|
@@ -167,6 +176,7 @@ export declare const CreateEventDTOSchema: z.ZodObject<{
|
|
|
167
176
|
organizersIds: string[];
|
|
168
177
|
}>;
|
|
169
178
|
export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
179
|
+
adress: z.ZodString;
|
|
170
180
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
171
181
|
description: z.ZodString;
|
|
172
182
|
finishTime: z.ZodNullable<z.ZodString>;
|
|
@@ -181,6 +191,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
181
191
|
startTime: z.ZodString;
|
|
182
192
|
title: z.ZodString;
|
|
183
193
|
}, "id">, "strip", z.ZodTypeAny, {
|
|
194
|
+
adress: string;
|
|
184
195
|
capacity: number | null;
|
|
185
196
|
description: string;
|
|
186
197
|
finishTime: string | null;
|
|
@@ -194,6 +205,7 @@ export declare const UpdateEventDTOSchema: z.ZodObject<Omit<{
|
|
|
194
205
|
title: string;
|
|
195
206
|
organizersIds: (string & z.BRAND<"OrganizerId">)[];
|
|
196
207
|
}, {
|
|
208
|
+
adress: string;
|
|
197
209
|
capacity: number | null;
|
|
198
210
|
description: string;
|
|
199
211
|
finishTime: string | null;
|
|
@@ -239,6 +251,10 @@ export type EventFileUploadsDTO = z.infer<typeof EventFileUploadsDTOSchema>;
|
|
|
239
251
|
export type EventDTO = z.infer<typeof EventDTOSchema>;
|
|
240
252
|
export type EventPublicDTO = z.infer<typeof EventPublicDTOSchema>;
|
|
241
253
|
export declare const constraints: {
|
|
254
|
+
adress: {
|
|
255
|
+
minLength: number;
|
|
256
|
+
maxLength: number;
|
|
257
|
+
};
|
|
242
258
|
description: {
|
|
243
259
|
minLength: number;
|
|
244
260
|
maxLength: number;
|
|
@@ -253,6 +269,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
253
269
|
userId: z.ZodString;
|
|
254
270
|
createdAt: z.ZodString;
|
|
255
271
|
partialEventState: z.ZodObject<{
|
|
272
|
+
adress: z.ZodOptional<z.ZodString>;
|
|
256
273
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
257
274
|
description: z.ZodOptional<z.ZodString>;
|
|
258
275
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -277,6 +294,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
277
294
|
name: string;
|
|
278
295
|
}>, "many">>;
|
|
279
296
|
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
adress?: string | undefined;
|
|
280
298
|
capacity?: number | null | undefined;
|
|
281
299
|
description?: string | undefined;
|
|
282
300
|
finishTime?: string | null | undefined;
|
|
@@ -295,6 +313,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
295
313
|
name: string;
|
|
296
314
|
}[] | undefined;
|
|
297
315
|
}, {
|
|
316
|
+
adress?: string | undefined;
|
|
298
317
|
capacity?: number | null | undefined;
|
|
299
318
|
description?: string | undefined;
|
|
300
319
|
finishTime?: string | null | undefined;
|
|
@@ -318,6 +337,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
318
337
|
userId: string;
|
|
319
338
|
createdAt: string;
|
|
320
339
|
partialEventState: {
|
|
340
|
+
adress?: string | undefined;
|
|
321
341
|
capacity?: number | null | undefined;
|
|
322
342
|
description?: string | undefined;
|
|
323
343
|
finishTime?: string | null | undefined;
|
|
@@ -341,6 +361,7 @@ export declare const ImportDTOSchema: z.ZodObject<{
|
|
|
341
361
|
userId: string;
|
|
342
362
|
createdAt: string;
|
|
343
363
|
partialEventState: {
|
|
364
|
+
adress?: string | undefined;
|
|
344
365
|
capacity?: number | null | undefined;
|
|
345
366
|
description?: string | undefined;
|
|
346
367
|
finishTime?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/V1/api/event.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAA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AAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAavB,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
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,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAK5B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/V1/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAK5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
3
3
|
partialEventState: z.ZodObject<{
|
|
4
|
+
adress: z.ZodOptional<z.ZodString>;
|
|
4
5
|
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5
6
|
description: z.ZodOptional<z.ZodString>;
|
|
6
7
|
finishTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -25,6 +26,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
25
26
|
name: string;
|
|
26
27
|
}>, "many">>;
|
|
27
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
adress?: string | undefined;
|
|
28
30
|
capacity?: number | null | undefined;
|
|
29
31
|
description?: string | undefined;
|
|
30
32
|
finishTime?: string | null | undefined;
|
|
@@ -43,6 +45,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
43
45
|
name: string;
|
|
44
46
|
}[] | undefined;
|
|
45
47
|
}, {
|
|
48
|
+
adress?: string | undefined;
|
|
46
49
|
capacity?: number | null | undefined;
|
|
47
50
|
description?: string | undefined;
|
|
48
51
|
finishTime?: string | null | undefined;
|
|
@@ -66,6 +69,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
66
69
|
}, "strip", z.ZodTypeAny, {
|
|
67
70
|
userId: string;
|
|
68
71
|
partialEventState: {
|
|
72
|
+
adress?: string | undefined;
|
|
69
73
|
capacity?: number | null | undefined;
|
|
70
74
|
description?: string | undefined;
|
|
71
75
|
finishTime?: string | null | undefined;
|
|
@@ -88,6 +92,7 @@ export declare const CreatePartialImportedEventDTOSchema: z.ZodObject<{
|
|
|
88
92
|
}, {
|
|
89
93
|
userId: string;
|
|
90
94
|
partialEventState: {
|
|
95
|
+
adress?: string | undefined;
|
|
91
96
|
capacity?: number | null | undefined;
|
|
92
97
|
description?: string | undefined;
|
|
93
98
|
finishTime?: string | 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
package/dist/api-contracts.js
CHANGED
|
@@ -4072,6 +4072,7 @@ const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(
|
|
|
4072
4072
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4073
4073
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4074
4074
|
const EventDTOSchema = z.object({
|
|
4075
|
+
adress: StringSchema,
|
|
4075
4076
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4076
4077
|
description: StringSchema,
|
|
4077
4078
|
finishTime: z.string().datetime().nullable(),
|
|
@@ -4096,6 +4097,7 @@ const EventPublicDTOSchema = EventDTOSchema.omit({
|
|
|
4096
4097
|
isFavorite: z.boolean()
|
|
4097
4098
|
});
|
|
4098
4099
|
const CreateEventDTOSchema = z.object({
|
|
4100
|
+
adress: StringSchema,
|
|
4099
4101
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4100
4102
|
description: StringSchema,
|
|
4101
4103
|
finishTime: z.string().datetime().nullable(),
|
|
@@ -4124,6 +4126,10 @@ const EventFileUploadsDTOSchema = z.object({
|
|
|
4124
4126
|
uploadUrl: URLSchema
|
|
4125
4127
|
}).array();
|
|
4126
4128
|
const constraints$2 = {
|
|
4129
|
+
adress: {
|
|
4130
|
+
minLength: 3,
|
|
4131
|
+
maxLength: 500
|
|
4132
|
+
},
|
|
4127
4133
|
description: {
|
|
4128
4134
|
minLength: 3,
|
|
4129
4135
|
maxLength: 1e4
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4070,6 +4070,7 @@ const createOrganizerId = (id = crypto.randomUUID()) => OrganizerIdSchema.parse(
|
|
|
4070
4070
|
const UserIdSchema = UUIDSchema.brand("UserId");
|
|
4071
4071
|
const createUserId = (id = crypto.randomUUID()) => UserIdSchema.parse(id);
|
|
4072
4072
|
const EventDTOSchema = z.object({
|
|
4073
|
+
adress: StringSchema,
|
|
4073
4074
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4074
4075
|
description: StringSchema,
|
|
4075
4076
|
finishTime: z.string().datetime().nullable(),
|
|
@@ -4094,6 +4095,7 @@ const EventPublicDTOSchema = EventDTOSchema.omit({
|
|
|
4094
4095
|
isFavorite: z.boolean()
|
|
4095
4096
|
});
|
|
4096
4097
|
const CreateEventDTOSchema = z.object({
|
|
4098
|
+
adress: StringSchema,
|
|
4097
4099
|
capacity: SafeNonNegativeIntegerSchema.nullable(),
|
|
4098
4100
|
description: StringSchema,
|
|
4099
4101
|
finishTime: z.string().datetime().nullable(),
|
|
@@ -4122,6 +4124,10 @@ const EventFileUploadsDTOSchema = z.object({
|
|
|
4122
4124
|
uploadUrl: URLSchema
|
|
4123
4125
|
}).array();
|
|
4124
4126
|
const constraints$2 = {
|
|
4127
|
+
adress: {
|
|
4128
|
+
minLength: 3,
|
|
4129
|
+
maxLength: 500
|
|
4130
|
+
},
|
|
4125
4131
|
description: {
|
|
4126
4132
|
minLength: 3,
|
|
4127
4133
|
maxLength: 1e4
|