@sortipei/api-contracts 0.2.7 → 0.2.8

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,48 +1,48 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ImportReminderDTOSchema: z.ZodObject<{
3
- frequency: z.ZodNativeEnum<typeof import("../../shared").ImportReminderFrequency>;
3
+ frequency: z.ZodNativeEnum<typeof import('../../shared').ImportReminderFrequency>;
4
4
  id: z.ZodBranded<z.ZodString, "ImportReminderId">;
5
5
  title: z.ZodString;
6
6
  url: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  id: string & z.BRAND<"ImportReminderId">;
9
9
  title: string;
10
- frequency: import("../../shared").ImportReminderFrequency;
11
10
  url: string;
11
+ frequency: import('../../shared').ImportReminderFrequency;
12
12
  }, {
13
13
  id: string;
14
14
  title: string;
15
- frequency: import("../../shared").ImportReminderFrequency;
16
15
  url: string;
16
+ frequency: import('../../shared').ImportReminderFrequency;
17
17
  }>;
18
18
  export declare const CreateImportReminderDTOSchema: z.ZodObject<{
19
- frequency: z.ZodNativeEnum<typeof import("../../shared").ImportReminderFrequency>;
19
+ frequency: z.ZodNativeEnum<typeof import('../../shared').ImportReminderFrequency>;
20
20
  id: z.ZodBranded<z.ZodString, "ImportReminderId">;
21
21
  title: z.ZodString;
22
22
  url: z.ZodString;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  id: string & z.BRAND<"ImportReminderId">;
25
25
  title: string;
26
- frequency: import("../../shared").ImportReminderFrequency;
27
26
  url: string;
27
+ frequency: import('../../shared').ImportReminderFrequency;
28
28
  }, {
29
29
  id: string;
30
30
  title: string;
31
- frequency: import("../../shared").ImportReminderFrequency;
32
31
  url: string;
32
+ frequency: import('../../shared').ImportReminderFrequency;
33
33
  }>;
34
34
  export declare const UpdateImportReminderDTOSchema: z.ZodObject<{
35
35
  title: z.ZodOptional<z.ZodString>;
36
- frequency: z.ZodOptional<z.ZodNativeEnum<typeof import("../../shared").ImportReminderFrequency>>;
37
36
  url: z.ZodOptional<z.ZodString>;
37
+ frequency: z.ZodOptional<z.ZodNativeEnum<typeof import('../../shared').ImportReminderFrequency>>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  title?: string | undefined;
40
- frequency?: import("../../shared").ImportReminderFrequency | undefined;
41
40
  url?: string | undefined;
41
+ frequency?: import('../../shared').ImportReminderFrequency | undefined;
42
42
  }, {
43
43
  title?: string | undefined;
44
- frequency?: import("../../shared").ImportReminderFrequency | undefined;
45
44
  url?: string | undefined;
45
+ frequency?: import('../../shared').ImportReminderFrequency | undefined;
46
46
  }>;
47
47
  export type ImportReminderDTO = z.infer<typeof ImportReminderDTOSchema>;
48
48
  export type CreateImportReminderDTO = z.infer<typeof CreateImportReminderDTOSchema>;
@@ -6,13 +6,13 @@ export declare const OrganizerDTOSchema: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  id: string & z.BRAND<"OrganizerId">;
9
- name: string;
10
9
  imageUrl: string | null;
10
+ name: string;
11
11
  eventsIds: (string & z.BRAND<"EventId">)[];
12
12
  }, {
13
13
  id: string;
14
- name: string;
15
14
  imageUrl: string | null;
15
+ name: string;
16
16
  eventsIds: string[];
17
17
  }>;
18
18
  export declare const CreateOrganizerDTOSchema: z.ZodObject<{
@@ -21,12 +21,12 @@ export declare const CreateOrganizerDTOSchema: z.ZodObject<{
21
21
  name: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  id: string & z.BRAND<"OrganizerId">;
24
- name: string;
25
24
  imageUrl: string | null;
25
+ name: string;
26
26
  }, {
27
27
  id: string;
28
- name: string;
29
28
  imageUrl: string | null;
29
+ name: string;
30
30
  }>;
31
31
  export declare const UpdateOrganizerDTOSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
32
32
  id: z.ZodBranded<z.ZodString, "OrganizerId">;
@@ -5,12 +5,12 @@ export declare const TopEventDTOSchema: z.ZodObject<{
5
5
  eventId: z.ZodBranded<z.ZodString, "EventId">;
6
6
  eventTitle: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
- count: number;
9
8
  eventId: string & z.BRAND<"EventId">;
9
+ count: number;
10
10
  eventTitle: string;
11
11
  }, {
12
- count: number;
13
12
  eventId: string;
13
+ count: number;
14
14
  eventTitle: string;
15
15
  }>;
16
16
  export declare const AdStatDTOSchema: z.ZodObject<{
@@ -71,12 +71,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
71
71
  eventId: z.ZodBranded<z.ZodString, "EventId">;
72
72
  eventTitle: z.ZodString;
73
73
  }, "strip", z.ZodTypeAny, {
74
- count: number;
75
74
  eventId: string & z.BRAND<"EventId">;
75
+ count: number;
76
76
  eventTitle: string;
77
77
  }, {
78
- count: number;
79
78
  eventId: string;
79
+ count: number;
80
80
  eventTitle: string;
81
81
  }>, "many">;
82
82
  topUpcomingAddedToFavoritesEvents: z.ZodArray<z.ZodObject<{
@@ -84,12 +84,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
84
84
  eventId: z.ZodBranded<z.ZodString, "EventId">;
85
85
  eventTitle: z.ZodString;
86
86
  }, "strip", z.ZodTypeAny, {
87
- count: number;
88
87
  eventId: string & z.BRAND<"EventId">;
88
+ count: number;
89
89
  eventTitle: string;
90
90
  }, {
91
- count: number;
92
91
  eventId: string;
92
+ count: number;
93
93
  eventTitle: string;
94
94
  }>, "many">;
95
95
  topUpcomingViewedEvents: z.ZodArray<z.ZodObject<{
@@ -97,12 +97,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
97
97
  eventId: z.ZodBranded<z.ZodString, "EventId">;
98
98
  eventTitle: z.ZodString;
99
99
  }, "strip", z.ZodTypeAny, {
100
- count: number;
101
100
  eventId: string & z.BRAND<"EventId">;
101
+ count: number;
102
102
  eventTitle: string;
103
103
  }, {
104
- count: number;
105
104
  eventId: string;
105
+ count: number;
106
106
  eventTitle: string;
107
107
  }>, "many">;
108
108
  topViewedEvents: z.ZodArray<z.ZodObject<{
@@ -110,12 +110,12 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
110
110
  eventId: z.ZodBranded<z.ZodString, "EventId">;
111
111
  eventTitle: z.ZodString;
112
112
  }, "strip", z.ZodTypeAny, {
113
- count: number;
114
113
  eventId: string & z.BRAND<"EventId">;
114
+ count: number;
115
115
  eventTitle: string;
116
116
  }, {
117
- count: number;
118
117
  eventId: string;
118
+ count: number;
119
119
  eventTitle: string;
120
120
  }>, "many">;
121
121
  totalAddedToCalendar: z.ZodNumber;
@@ -134,23 +134,23 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
134
134
  presentOrFutureEventsCount: number;
135
135
  sharedEventsCount: number;
136
136
  topAddedToFavoritesEvents: {
137
- count: number;
138
137
  eventId: string & z.BRAND<"EventId">;
138
+ count: number;
139
139
  eventTitle: string;
140
140
  }[];
141
141
  topUpcomingAddedToFavoritesEvents: {
142
- count: number;
143
142
  eventId: string & z.BRAND<"EventId">;
143
+ count: number;
144
144
  eventTitle: string;
145
145
  }[];
146
146
  topUpcomingViewedEvents: {
147
- count: number;
148
147
  eventId: string & z.BRAND<"EventId">;
148
+ count: number;
149
149
  eventTitle: string;
150
150
  }[];
151
151
  topViewedEvents: {
152
- count: number;
153
152
  eventId: string & z.BRAND<"EventId">;
153
+ count: number;
154
154
  eventTitle: string;
155
155
  }[];
156
156
  totalAddedToCalendar: number;
@@ -169,23 +169,23 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
169
169
  presentOrFutureEventsCount: number;
170
170
  sharedEventsCount: number;
171
171
  topAddedToFavoritesEvents: {
172
- count: number;
173
172
  eventId: string;
173
+ count: number;
174
174
  eventTitle: string;
175
175
  }[];
176
176
  topUpcomingAddedToFavoritesEvents: {
177
- count: number;
178
177
  eventId: string;
178
+ count: number;
179
179
  eventTitle: string;
180
180
  }[];
181
181
  topUpcomingViewedEvents: {
182
- count: number;
183
182
  eventId: string;
183
+ count: number;
184
184
  eventTitle: string;
185
185
  }[];
186
186
  topViewedEvents: {
187
- count: number;
188
187
  eventId: string;
188
+ count: number;
189
189
  eventTitle: string;
190
190
  }[];
191
191
  totalAddedToCalendar: number;
@@ -255,29 +255,29 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
255
255
  time: string;
256
256
  }>, z.ZodObject<{
257
257
  data: z.ZodObject<{
258
- category: z.ZodNativeEnum<typeof import("../../shared").Category>;
258
+ category: z.ZodNativeEnum<typeof import('../../shared').Category>;
259
259
  userId: z.ZodString;
260
260
  }, "strip", z.ZodTypeAny, {
261
- category: import("../../shared").Category;
262
261
  userId: string;
262
+ category: import('../../shared').Category;
263
263
  }, {
264
- category: import("../../shared").Category;
265
264
  userId: string;
265
+ category: import('../../shared').Category;
266
266
  }>;
267
267
  time: z.ZodString;
268
268
  type: z.ZodLiteral<"category-filter-applied">;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  type: "category-filter-applied";
271
271
  data: {
272
- category: import("../../shared").Category;
273
272
  userId: string;
273
+ category: import('../../shared').Category;
274
274
  };
275
275
  time: string;
276
276
  }, {
277
277
  type: "category-filter-applied";
278
278
  data: {
279
- category: import("../../shared").Category;
280
279
  userId: string;
280
+ category: import('../../shared').Category;
281
281
  };
282
282
  time: string;
283
283
  }>, z.ZodObject<{
@@ -286,12 +286,12 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
286
286
  endTime: z.ZodString;
287
287
  userId: z.ZodString;
288
288
  }, "strip", z.ZodTypeAny, {
289
- startTime: string;
290
289
  userId: string;
290
+ startTime: string;
291
291
  endTime: string;
292
292
  }, {
293
- startTime: string;
294
293
  userId: string;
294
+ startTime: string;
295
295
  endTime: string;
296
296
  }>;
297
297
  time: z.ZodString;
@@ -299,16 +299,16 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
299
299
  }, "strip", z.ZodTypeAny, {
300
300
  type: "date-filter-applied";
301
301
  data: {
302
- startTime: string;
303
302
  userId: string;
303
+ startTime: string;
304
304
  endTime: string;
305
305
  };
306
306
  time: string;
307
307
  }, {
308
308
  type: "date-filter-applied";
309
309
  data: {
310
- startTime: string;
311
310
  userId: string;
311
+ startTime: string;
312
312
  endTime: string;
313
313
  };
314
314
  time: string;
@@ -547,60 +547,58 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
547
547
  time: string;
548
548
  }>, z.ZodObject<{
549
549
  data: z.ZodObject<{
550
- regions: z.ZodArray<z.ZodNativeEnum<typeof import("../../shared").Region>, "many">;
550
+ regions: z.ZodArray<z.ZodNativeEnum<typeof import('../../shared').Region>, "many">;
551
551
  userId: z.ZodString;
552
552
  }, "strip", z.ZodTypeAny, {
553
- regions: import("../../shared").Region[];
554
553
  userId: string;
554
+ regions: import('../../shared').Region[];
555
555
  }, {
556
- regions: import("../../shared").Region[];
557
556
  userId: string;
557
+ regions: import('../../shared').Region[];
558
558
  }>;
559
559
  time: z.ZodString;
560
560
  type: z.ZodLiteral<"region-filter-applied">;
561
561
  }, "strip", z.ZodTypeAny, {
562
562
  type: "region-filter-applied";
563
563
  data: {
564
- regions: import("../../shared").Region[];
565
564
  userId: string;
565
+ regions: import('../../shared').Region[];
566
566
  };
567
567
  time: string;
568
568
  }, {
569
569
  type: "region-filter-applied";
570
570
  data: {
571
- regions: import("../../shared").Region[];
572
571
  userId: string;
572
+ regions: import('../../shared').Region[];
573
573
  };
574
574
  time: string;
575
575
  }>]>;
576
576
  }, "strip", z.ZodTypeAny, {
577
577
  statistic: {
578
- type: "ad-pressed";
578
+ type: "app-started";
579
579
  data: {
580
580
  userId: string;
581
- adId: string;
582
- adTitle: string;
583
581
  };
584
582
  time: string;
585
583
  } | {
586
- type: "app-started";
584
+ type: "event-displayed";
587
585
  data: {
588
586
  userId: string;
587
+ eventId: string;
589
588
  };
590
589
  time: string;
591
590
  } | {
592
- type: "category-filter-applied";
591
+ type: "organizer-displayed";
593
592
  data: {
594
- category: import("../../shared").Category;
595
593
  userId: string;
594
+ organizerId: string;
596
595
  };
597
596
  time: string;
598
597
  } | {
599
- type: "date-filter-applied";
598
+ type: "event-added-to-favorites";
600
599
  data: {
601
- startTime: string;
602
600
  userId: string;
603
- endTime: string;
601
+ eventId: string;
604
602
  };
605
603
  time: string;
606
604
  } | {
@@ -611,14 +609,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
611
609
  };
612
610
  time: string;
613
611
  } | {
614
- type: "event-added-to-favorites";
612
+ type: "event-shared";
615
613
  data: {
616
614
  userId: string;
617
615
  eventId: string;
618
616
  };
619
617
  time: string;
620
618
  } | {
621
- type: "event-displayed";
619
+ type: "event-tickets-clicked";
622
620
  data: {
623
621
  userId: string;
624
622
  eventId: string;
@@ -632,74 +630,74 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
632
630
  };
633
631
  time: string;
634
632
  } | {
635
- type: "event-shared";
633
+ type: "region-filter-applied";
636
634
  data: {
637
635
  userId: string;
638
- eventId: string;
636
+ regions: import('../../shared').Region[];
639
637
  };
640
638
  time: string;
641
639
  } | {
642
- type: "event-tickets-clicked";
640
+ type: "free-filter-applied";
643
641
  data: {
644
642
  userId: string;
645
- eventId: string;
646
643
  };
647
644
  time: string;
648
645
  } | {
649
- type: "free-filter-applied";
646
+ type: "category-filter-applied";
650
647
  data: {
651
648
  userId: string;
649
+ category: import('../../shared').Category;
652
650
  };
653
651
  time: string;
654
652
  } | {
655
- type: "old-times-filter-applied";
653
+ type: "date-filter-applied";
656
654
  data: {
657
655
  userId: string;
656
+ startTime: string;
657
+ endTime: string;
658
658
  };
659
659
  time: string;
660
660
  } | {
661
- type: "organizer-displayed";
661
+ type: "old-times-filter-applied";
662
662
  data: {
663
663
  userId: string;
664
- organizerId: string;
665
664
  };
666
665
  time: string;
667
666
  } | {
668
- type: "region-filter-applied";
667
+ type: "ad-pressed";
669
668
  data: {
670
- regions: import("../../shared").Region[];
671
669
  userId: string;
670
+ adId: string;
671
+ adTitle: string;
672
672
  };
673
673
  time: string;
674
674
  };
675
675
  }, {
676
676
  statistic: {
677
- type: "ad-pressed";
677
+ type: "app-started";
678
678
  data: {
679
679
  userId: string;
680
- adId: string;
681
- adTitle: string;
682
680
  };
683
681
  time: string;
684
682
  } | {
685
- type: "app-started";
683
+ type: "event-displayed";
686
684
  data: {
687
685
  userId: string;
686
+ eventId: string;
688
687
  };
689
688
  time: string;
690
689
  } | {
691
- type: "category-filter-applied";
690
+ type: "organizer-displayed";
692
691
  data: {
693
- category: import("../../shared").Category;
694
692
  userId: string;
693
+ organizerId: string;
695
694
  };
696
695
  time: string;
697
696
  } | {
698
- type: "date-filter-applied";
697
+ type: "event-added-to-favorites";
699
698
  data: {
700
- startTime: string;
701
699
  userId: string;
702
- endTime: string;
700
+ eventId: string;
703
701
  };
704
702
  time: string;
705
703
  } | {
@@ -710,14 +708,14 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
710
708
  };
711
709
  time: string;
712
710
  } | {
713
- type: "event-added-to-favorites";
711
+ type: "event-shared";
714
712
  data: {
715
713
  userId: string;
716
714
  eventId: string;
717
715
  };
718
716
  time: string;
719
717
  } | {
720
- type: "event-displayed";
718
+ type: "event-tickets-clicked";
721
719
  data: {
722
720
  userId: string;
723
721
  eventId: string;
@@ -731,43 +729,45 @@ export declare const SaveStatisticDTOSchema: z.ZodObject<{
731
729
  };
732
730
  time: string;
733
731
  } | {
734
- type: "event-shared";
732
+ type: "region-filter-applied";
735
733
  data: {
736
734
  userId: string;
737
- eventId: string;
735
+ regions: import('../../shared').Region[];
738
736
  };
739
737
  time: string;
740
738
  } | {
741
- type: "event-tickets-clicked";
739
+ type: "free-filter-applied";
742
740
  data: {
743
741
  userId: string;
744
- eventId: string;
745
742
  };
746
743
  time: string;
747
744
  } | {
748
- type: "free-filter-applied";
745
+ type: "category-filter-applied";
749
746
  data: {
750
747
  userId: string;
748
+ category: import('../../shared').Category;
751
749
  };
752
750
  time: string;
753
751
  } | {
754
- type: "old-times-filter-applied";
752
+ type: "date-filter-applied";
755
753
  data: {
756
754
  userId: string;
755
+ startTime: string;
756
+ endTime: string;
757
757
  };
758
758
  time: string;
759
759
  } | {
760
- type: "organizer-displayed";
760
+ type: "old-times-filter-applied";
761
761
  data: {
762
762
  userId: string;
763
- organizerId: string;
764
763
  };
765
764
  time: string;
766
765
  } | {
767
- type: "region-filter-applied";
766
+ type: "ad-pressed";
768
767
  data: {
769
- regions: import("../../shared").Region[];
770
768
  userId: string;
769
+ adId: string;
770
+ adTitle: string;
771
771
  };
772
772
  time: string;
773
773
  };