@sortipei/api-contracts 0.2.11 → 0.2.13
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.
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const PublicOrganizerDTOSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
4
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string & z.BRAND<"OrganizerId">;
|
|
8
|
+
imageUrl: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
}, {
|
|
11
|
+
id: string;
|
|
12
|
+
imageUrl: string | null;
|
|
13
|
+
name: string;
|
|
14
|
+
}>;
|
|
2
15
|
export declare const OrganizerDTOSchema: z.ZodObject<{
|
|
16
|
+
email: z.ZodNullable<z.ZodString>;
|
|
3
17
|
eventsIds: z.ZodArray<z.ZodBranded<z.ZodString, "EventId">, "many">;
|
|
4
18
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
5
19
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
20
|
+
isDuplicate: z.ZodBoolean;
|
|
6
21
|
name: z.ZodString;
|
|
7
22
|
}, "strip", z.ZodTypeAny, {
|
|
8
23
|
id: string & z.BRAND<"OrganizerId">;
|
|
9
24
|
imageUrl: string | null;
|
|
10
25
|
name: string;
|
|
26
|
+
email: string | null;
|
|
11
27
|
eventsIds: (string & z.BRAND<"EventId">)[];
|
|
28
|
+
isDuplicate: boolean;
|
|
12
29
|
}, {
|
|
13
30
|
id: string;
|
|
14
31
|
imageUrl: string | null;
|
|
15
32
|
name: string;
|
|
33
|
+
email: string | null;
|
|
16
34
|
eventsIds: string[];
|
|
35
|
+
isDuplicate: boolean;
|
|
17
36
|
}>;
|
|
18
37
|
export declare const CreateOrganizerDTOSchema: z.ZodObject<{
|
|
38
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
39
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
20
40
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
21
41
|
name: z.ZodString;
|
|
@@ -23,27 +43,37 @@ export declare const CreateOrganizerDTOSchema: z.ZodObject<{
|
|
|
23
43
|
id: string & z.BRAND<"OrganizerId">;
|
|
24
44
|
imageUrl: string | null;
|
|
25
45
|
name: string;
|
|
46
|
+
email?: string | null | undefined;
|
|
26
47
|
}, {
|
|
27
48
|
id: string;
|
|
28
49
|
imageUrl: string | null;
|
|
29
50
|
name: string;
|
|
51
|
+
email?: string | null | undefined;
|
|
30
52
|
}>;
|
|
31
53
|
export declare const UpdateOrganizerDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
54
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
55
|
id: z.ZodBranded<z.ZodString, "OrganizerId">;
|
|
33
56
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
34
57
|
name: z.ZodString;
|
|
35
58
|
}, "id">, {
|
|
59
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
60
|
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
isDuplicate: z.ZodOptional<z.ZodBoolean>;
|
|
37
62
|
}>, "strip", z.ZodTypeAny, {
|
|
38
63
|
name: string;
|
|
39
64
|
imageUrl?: string | null | undefined;
|
|
65
|
+
email?: string | null | undefined;
|
|
66
|
+
isDuplicate?: boolean | undefined;
|
|
40
67
|
}, {
|
|
41
68
|
name: string;
|
|
42
69
|
imageUrl?: string | null | undefined;
|
|
70
|
+
email?: string | null | undefined;
|
|
71
|
+
isDuplicate?: boolean | undefined;
|
|
43
72
|
}>;
|
|
44
73
|
export type CreateOrganizerDTO = z.infer<typeof CreateOrganizerDTOSchema>;
|
|
45
74
|
export type UpdateOrganizerDTO = z.infer<typeof UpdateOrganizerDTOSchema>;
|
|
46
75
|
export type OrganizerDTO = z.infer<typeof OrganizerDTOSchema>;
|
|
76
|
+
export type PublicOrganizerDTO = z.infer<typeof PublicOrganizerDTOSchema>;
|
|
47
77
|
export declare const constraints: {
|
|
48
78
|
name: {
|
|
49
79
|
minLength: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
|
|
@@ -198,8 +198,7 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
|
|
|
198
198
|
appOpenedCount: number;
|
|
199
199
|
}>;
|
|
200
200
|
export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
|
|
201
|
-
|
|
202
|
-
weekEnd: z.ZodDate;
|
|
201
|
+
appOpenedCount: z.ZodNumber;
|
|
203
202
|
eventsCount: z.ZodNumber;
|
|
204
203
|
openedEventsCount: z.ZodNumber;
|
|
205
204
|
sharedEventsCount: z.ZodNumber;
|
|
@@ -207,7 +206,8 @@ export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
|
|
|
207
206
|
totalFavoritesCount: z.ZodNumber;
|
|
208
207
|
totalShared: z.ZodNumber;
|
|
209
208
|
usersCount: z.ZodNumber;
|
|
210
|
-
|
|
209
|
+
weekEnd: z.ZodDate;
|
|
210
|
+
weekStart: z.ZodDate;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
eventsCount: number;
|
|
213
213
|
openedEventsCount: number;
|
|
@@ -217,8 +217,8 @@ export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
|
|
|
217
217
|
totalShared: number;
|
|
218
218
|
usersCount: number;
|
|
219
219
|
appOpenedCount: number;
|
|
220
|
-
weekStart: Date;
|
|
221
220
|
weekEnd: Date;
|
|
221
|
+
weekStart: Date;
|
|
222
222
|
}, {
|
|
223
223
|
eventsCount: number;
|
|
224
224
|
openedEventsCount: number;
|
|
@@ -228,12 +228,11 @@ export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
|
|
|
228
228
|
totalShared: number;
|
|
229
229
|
usersCount: number;
|
|
230
230
|
appOpenedCount: number;
|
|
231
|
-
weekStart: Date;
|
|
232
231
|
weekEnd: Date;
|
|
232
|
+
weekStart: Date;
|
|
233
233
|
}>;
|
|
234
234
|
export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
235
|
-
|
|
236
|
-
weekEnd: z.ZodDate;
|
|
235
|
+
appOpenedCount: z.ZodNumber;
|
|
237
236
|
eventsCount: z.ZodNumber;
|
|
238
237
|
openedEventsCount: z.ZodNumber;
|
|
239
238
|
sharedEventsCount: z.ZodNumber;
|
|
@@ -241,7 +240,8 @@ export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
|
241
240
|
totalFavoritesCount: z.ZodNumber;
|
|
242
241
|
totalShared: z.ZodNumber;
|
|
243
242
|
usersCount: z.ZodNumber;
|
|
244
|
-
|
|
243
|
+
weekEnd: z.ZodDate;
|
|
244
|
+
weekStart: z.ZodDate;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
246
|
eventsCount: number;
|
|
247
247
|
openedEventsCount: number;
|
|
@@ -251,8 +251,8 @@ export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
|
251
251
|
totalShared: number;
|
|
252
252
|
usersCount: number;
|
|
253
253
|
appOpenedCount: number;
|
|
254
|
-
weekStart: Date;
|
|
255
254
|
weekEnd: Date;
|
|
255
|
+
weekStart: Date;
|
|
256
256
|
}, {
|
|
257
257
|
eventsCount: number;
|
|
258
258
|
openedEventsCount: number;
|
|
@@ -262,8 +262,8 @@ export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
|
|
|
262
262
|
totalShared: number;
|
|
263
263
|
usersCount: number;
|
|
264
264
|
appOpenedCount: number;
|
|
265
|
-
weekStart: Date;
|
|
266
265
|
weekEnd: Date;
|
|
266
|
+
weekStart: Date;
|
|
267
267
|
}>, "many">;
|
|
268
268
|
export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
|
|
269
269
|
export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
|
package/dist/api-contracts.js
CHANGED
|
@@ -4374,10 +4374,16 @@ const ImportReminderDTOSchema = z.object({
|
|
|
4374
4374
|
});
|
|
4375
4375
|
const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
|
|
4376
4376
|
const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
|
|
4377
|
+
const PublicOrganizerDTOSchema = z.object({
|
|
4378
|
+
id: OrganizerIdSchema,
|
|
4379
|
+
imageUrl: URLSchema.nullable(),
|
|
4380
|
+
name: StringSchema
|
|
4381
|
+
});
|
|
4377
4382
|
const OrganizerDTOSchema = z.object({
|
|
4378
4383
|
eventsIds: EventIdSchema.array(),
|
|
4379
4384
|
id: OrganizerIdSchema,
|
|
4380
4385
|
imageUrl: URLSchema.nullable(),
|
|
4386
|
+
isDuplicate: z.boolean(),
|
|
4381
4387
|
name: StringSchema
|
|
4382
4388
|
});
|
|
4383
4389
|
const CreateOrganizerDTOSchema = z.object({
|
|
@@ -4386,7 +4392,8 @@ const CreateOrganizerDTOSchema = z.object({
|
|
|
4386
4392
|
name: StringSchema
|
|
4387
4393
|
});
|
|
4388
4394
|
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4389
|
-
imageUrl: URLSchema.nullable().optional()
|
|
4395
|
+
imageUrl: URLSchema.nullable().optional(),
|
|
4396
|
+
isDuplicate: z.boolean().optional()
|
|
4390
4397
|
});
|
|
4391
4398
|
const constraints$1 = {
|
|
4392
4399
|
name: {
|
|
@@ -4430,8 +4437,7 @@ const GlobalStatsDTOSchema = z.object({
|
|
|
4430
4437
|
appOpenedCount: z.number()
|
|
4431
4438
|
});
|
|
4432
4439
|
const TemporalStatsWeekDTOSchema = z.object({
|
|
4433
|
-
|
|
4434
|
-
weekEnd: z.coerce.date(),
|
|
4440
|
+
appOpenedCount: z.number(),
|
|
4435
4441
|
eventsCount: z.number(),
|
|
4436
4442
|
openedEventsCount: z.number(),
|
|
4437
4443
|
sharedEventsCount: z.number(),
|
|
@@ -4439,7 +4445,8 @@ const TemporalStatsWeekDTOSchema = z.object({
|
|
|
4439
4445
|
totalFavoritesCount: z.number(),
|
|
4440
4446
|
totalShared: z.number(),
|
|
4441
4447
|
usersCount: z.number(),
|
|
4442
|
-
|
|
4448
|
+
weekEnd: z.coerce.date(),
|
|
4449
|
+
weekStart: z.coerce.date()
|
|
4443
4450
|
});
|
|
4444
4451
|
const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
|
|
4445
4452
|
const SaveStatisticDTOSchema = z.object({
|
|
@@ -4470,6 +4477,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4470
4477
|
MainAdDTOSchema,
|
|
4471
4478
|
OrganizerDTOSchema,
|
|
4472
4479
|
PromoteEventDTOSchema,
|
|
4480
|
+
PublicOrganizerDTOSchema,
|
|
4473
4481
|
RegionalAdDTOSchema,
|
|
4474
4482
|
SaveStatisticDTOSchema,
|
|
4475
4483
|
TemporalStatsDTOSchema,
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4372,10 +4372,16 @@ const ImportReminderDTOSchema = z.object({
|
|
|
4372
4372
|
});
|
|
4373
4373
|
const CreateImportReminderDTOSchema = ImportReminderDTOSchema;
|
|
4374
4374
|
const UpdateImportReminderDTOSchema = ImportReminderDTOSchema.omit({ id: true }).partial();
|
|
4375
|
+
const PublicOrganizerDTOSchema = z.object({
|
|
4376
|
+
id: OrganizerIdSchema,
|
|
4377
|
+
imageUrl: URLSchema.nullable(),
|
|
4378
|
+
name: StringSchema
|
|
4379
|
+
});
|
|
4375
4380
|
const OrganizerDTOSchema = z.object({
|
|
4376
4381
|
eventsIds: EventIdSchema.array(),
|
|
4377
4382
|
id: OrganizerIdSchema,
|
|
4378
4383
|
imageUrl: URLSchema.nullable(),
|
|
4384
|
+
isDuplicate: z.boolean(),
|
|
4379
4385
|
name: StringSchema
|
|
4380
4386
|
});
|
|
4381
4387
|
const CreateOrganizerDTOSchema = z.object({
|
|
@@ -4384,7 +4390,8 @@ const CreateOrganizerDTOSchema = z.object({
|
|
|
4384
4390
|
name: StringSchema
|
|
4385
4391
|
});
|
|
4386
4392
|
const UpdateOrganizerDTOSchema = CreateOrganizerDTOSchema.omit({ id: true }).extend({
|
|
4387
|
-
imageUrl: URLSchema.nullable().optional()
|
|
4393
|
+
imageUrl: URLSchema.nullable().optional(),
|
|
4394
|
+
isDuplicate: z.boolean().optional()
|
|
4388
4395
|
});
|
|
4389
4396
|
const constraints$1 = {
|
|
4390
4397
|
name: {
|
|
@@ -4428,8 +4435,7 @@ const GlobalStatsDTOSchema = z.object({
|
|
|
4428
4435
|
appOpenedCount: z.number()
|
|
4429
4436
|
});
|
|
4430
4437
|
const TemporalStatsWeekDTOSchema = z.object({
|
|
4431
|
-
|
|
4432
|
-
weekEnd: z.coerce.date(),
|
|
4438
|
+
appOpenedCount: z.number(),
|
|
4433
4439
|
eventsCount: z.number(),
|
|
4434
4440
|
openedEventsCount: z.number(),
|
|
4435
4441
|
sharedEventsCount: z.number(),
|
|
@@ -4437,7 +4443,8 @@ const TemporalStatsWeekDTOSchema = z.object({
|
|
|
4437
4443
|
totalFavoritesCount: z.number(),
|
|
4438
4444
|
totalShared: z.number(),
|
|
4439
4445
|
usersCount: z.number(),
|
|
4440
|
-
|
|
4446
|
+
weekEnd: z.coerce.date(),
|
|
4447
|
+
weekStart: z.coerce.date()
|
|
4441
4448
|
});
|
|
4442
4449
|
const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
|
|
4443
4450
|
const SaveStatisticDTOSchema = z.object({
|
|
@@ -4468,6 +4475,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4468
4475
|
MainAdDTOSchema,
|
|
4469
4476
|
OrganizerDTOSchema,
|
|
4470
4477
|
PromoteEventDTOSchema,
|
|
4478
|
+
PublicOrganizerDTOSchema,
|
|
4471
4479
|
RegionalAdDTOSchema,
|
|
4472
4480
|
SaveStatisticDTOSchema,
|
|
4473
4481
|
TemporalStatsDTOSchema,
|