@sortipei/api-contracts 0.2.11 → 0.2.12

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,19 +1,35 @@
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<{
3
16
  eventsIds: z.ZodArray<z.ZodBranded<z.ZodString, "EventId">, "many">;
4
17
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
5
18
  imageUrl: z.ZodNullable<z.ZodString>;
19
+ isDuplicate: z.ZodBoolean;
6
20
  name: z.ZodString;
7
21
  }, "strip", z.ZodTypeAny, {
8
22
  id: string & z.BRAND<"OrganizerId">;
9
23
  imageUrl: string | null;
10
24
  name: string;
11
25
  eventsIds: (string & z.BRAND<"EventId">)[];
26
+ isDuplicate: boolean;
12
27
  }, {
13
28
  id: string;
14
29
  imageUrl: string | null;
15
30
  name: string;
16
31
  eventsIds: string[];
32
+ isDuplicate: boolean;
17
33
  }>;
18
34
  export declare const CreateOrganizerDTOSchema: z.ZodObject<{
19
35
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
@@ -34,16 +50,20 @@ export declare const UpdateOrganizerDTOSchema: z.ZodObject<z.objectUtil.extendSh
34
50
  name: z.ZodString;
35
51
  }, "id">, {
36
52
  imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ isDuplicate: z.ZodOptional<z.ZodBoolean>;
37
54
  }>, "strip", z.ZodTypeAny, {
38
55
  name: string;
39
56
  imageUrl?: string | null | undefined;
57
+ isDuplicate?: boolean | undefined;
40
58
  }, {
41
59
  name: string;
42
60
  imageUrl?: string | null | undefined;
61
+ isDuplicate?: boolean | undefined;
43
62
  }>;
44
63
  export type CreateOrganizerDTO = z.infer<typeof CreateOrganizerDTOSchema>;
45
64
  export type UpdateOrganizerDTO = z.infer<typeof UpdateOrganizerDTOSchema>;
46
65
  export type OrganizerDTO = z.infer<typeof OrganizerDTOSchema>;
66
+ export type PublicOrganizerDTO = z.infer<typeof PublicOrganizerDTOSchema>;
47
67
  export declare const constraints: {
48
68
  name: {
49
69
  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;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAEnC,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;AAE9D,eAAO,MAAM,WAAW;;;;;CAKvB,CAAC"}
1
+ {"version":3,"file":"organizer.d.ts","sourceRoot":"","sources":["../../../src/V1/api/organizer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAGnC,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
- weekStart: z.ZodDate;
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
- appOpenedCount: z.ZodNumber;
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
- weekStart: z.ZodDate;
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
- appOpenedCount: z.ZodNumber;
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>;
@@ -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
- weekStart: z.coerce.date(),
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
- appOpenedCount: z.number()
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,
@@ -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
- weekStart: z.coerce.date(),
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
- appOpenedCount: z.number()
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",