@sortipei/api-contracts 0.1.32 → 0.1.34
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/ad.d.ts +12 -12
- package/dist/V1/api/event.d.ts +46 -46
- package/dist/V1/api/organizer.d.ts +4 -4
- package/dist/V1/api/statistics.d.ts +493 -0
- package/dist/V1/api/statistics.d.ts.map +1 -1
- package/dist/V1/external/partial-imported-event.d.ts +26 -26
- package/dist/api-contracts.js +126 -0
- package/dist/api-contracts.mjs +126 -0
- package/dist/shared/stats.d.ts +149 -440
- package/dist/shared/stats.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/V1/api/stats.d.ts +0 -4
- package/dist/V1/api/stats.d.ts.map +0 -1
package/dist/api-contracts.js
CHANGED
|
@@ -4076,6 +4076,115 @@ var Category = /* @__PURE__ */ ((Category2) => {
|
|
|
4076
4076
|
return Category2;
|
|
4077
4077
|
})(Category || {});
|
|
4078
4078
|
const CategorySchema = z.nativeEnum(Category);
|
|
4079
|
+
const AppStartedStatisticSchema = z.object({
|
|
4080
|
+
data: z.object({
|
|
4081
|
+
userId: UUIDSchema
|
|
4082
|
+
}),
|
|
4083
|
+
time: z.string().datetime(),
|
|
4084
|
+
type: z.literal("app-started")
|
|
4085
|
+
});
|
|
4086
|
+
const EventDisplayedStatisticSchema = z.object({
|
|
4087
|
+
data: z.object({
|
|
4088
|
+
userId: UUIDSchema,
|
|
4089
|
+
eventId: UUIDSchema
|
|
4090
|
+
}),
|
|
4091
|
+
time: z.string().datetime(),
|
|
4092
|
+
type: z.literal("event-displayed")
|
|
4093
|
+
});
|
|
4094
|
+
const OrganizerDisplayedStatisticSchema = z.object({
|
|
4095
|
+
data: z.object({
|
|
4096
|
+
userId: UUIDSchema,
|
|
4097
|
+
organizerId: UUIDSchema
|
|
4098
|
+
}),
|
|
4099
|
+
time: z.string().datetime(),
|
|
4100
|
+
type: z.literal("organizer-displayed")
|
|
4101
|
+
});
|
|
4102
|
+
const EventAddedToFavoritesStatisticSchema = z.object({
|
|
4103
|
+
data: z.object({
|
|
4104
|
+
userId: UUIDSchema,
|
|
4105
|
+
eventId: UUIDSchema
|
|
4106
|
+
}),
|
|
4107
|
+
time: z.string().datetime(),
|
|
4108
|
+
type: z.literal("event-added-to-favorites")
|
|
4109
|
+
});
|
|
4110
|
+
const EventAddedToCalendarStatisticSchema = z.object({
|
|
4111
|
+
data: z.object({
|
|
4112
|
+
userId: UUIDSchema,
|
|
4113
|
+
eventId: UUIDSchema
|
|
4114
|
+
}),
|
|
4115
|
+
time: z.string().datetime(),
|
|
4116
|
+
type: z.literal("event-added-to-calendar")
|
|
4117
|
+
});
|
|
4118
|
+
const EventSharedStatisticSchema = z.object({
|
|
4119
|
+
data: z.object({
|
|
4120
|
+
userId: UUIDSchema,
|
|
4121
|
+
eventId: UUIDSchema
|
|
4122
|
+
}),
|
|
4123
|
+
time: z.string().datetime(),
|
|
4124
|
+
type: z.literal("event-shared")
|
|
4125
|
+
});
|
|
4126
|
+
const EventTicketsClickedStatisticsSchema = z.object({
|
|
4127
|
+
data: z.object({
|
|
4128
|
+
userId: UUIDSchema,
|
|
4129
|
+
eventId: UUIDSchema
|
|
4130
|
+
}),
|
|
4131
|
+
time: z.string().datetime(),
|
|
4132
|
+
type: z.literal("event-tickets-clicked")
|
|
4133
|
+
});
|
|
4134
|
+
const EventSeeMoreClickedStatisticsSchema = z.object({
|
|
4135
|
+
data: z.object({
|
|
4136
|
+
userId: UUIDSchema,
|
|
4137
|
+
eventId: UUIDSchema
|
|
4138
|
+
}),
|
|
4139
|
+
time: z.string().datetime(),
|
|
4140
|
+
type: z.literal("event-see-more-clicked")
|
|
4141
|
+
});
|
|
4142
|
+
const RegionFilterAppliedStatisticSchema = z.object({
|
|
4143
|
+
data: z.object({
|
|
4144
|
+
region: RegionSchema,
|
|
4145
|
+
userId: UUIDSchema
|
|
4146
|
+
}),
|
|
4147
|
+
time: z.string().datetime(),
|
|
4148
|
+
type: z.literal("region-filter-applied")
|
|
4149
|
+
});
|
|
4150
|
+
const FreeFilterAppliedStatisticSchema = z.object({
|
|
4151
|
+
data: z.object({
|
|
4152
|
+
userId: UUIDSchema
|
|
4153
|
+
}),
|
|
4154
|
+
time: z.string().datetime(),
|
|
4155
|
+
type: z.literal("free-filter-applied")
|
|
4156
|
+
});
|
|
4157
|
+
const CategoryFilterAppliedStatisticSchema = z.object({
|
|
4158
|
+
data: z.object({
|
|
4159
|
+
category: CategorySchema,
|
|
4160
|
+
userId: UUIDSchema
|
|
4161
|
+
}),
|
|
4162
|
+
time: z.string().datetime(),
|
|
4163
|
+
type: z.literal("category-filter-applied")
|
|
4164
|
+
});
|
|
4165
|
+
const DateFilterAppliedStatisticSchema = z.object({
|
|
4166
|
+
data: z.object({
|
|
4167
|
+
startTime: z.string().datetime(),
|
|
4168
|
+
endTime: z.string().datetime(),
|
|
4169
|
+
userId: UUIDSchema
|
|
4170
|
+
}),
|
|
4171
|
+
time: z.string().datetime(),
|
|
4172
|
+
type: z.literal("date-filter-applied")
|
|
4173
|
+
});
|
|
4174
|
+
const StatisticSchema = z.discriminatedUnion("type", [
|
|
4175
|
+
AppStartedStatisticSchema,
|
|
4176
|
+
CategoryFilterAppliedStatisticSchema,
|
|
4177
|
+
DateFilterAppliedStatisticSchema,
|
|
4178
|
+
EventAddedToCalendarStatisticSchema,
|
|
4179
|
+
EventAddedToFavoritesStatisticSchema,
|
|
4180
|
+
EventDisplayedStatisticSchema,
|
|
4181
|
+
EventSeeMoreClickedStatisticsSchema,
|
|
4182
|
+
EventTicketsClickedStatisticsSchema,
|
|
4183
|
+
EventSharedStatisticSchema,
|
|
4184
|
+
FreeFilterAppliedStatisticSchema,
|
|
4185
|
+
OrganizerDisplayedStatisticSchema,
|
|
4186
|
+
RegionFilterAppliedStatisticSchema
|
|
4187
|
+
]);
|
|
4079
4188
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4080
4189
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4081
4190
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4236,6 +4345,9 @@ const GlobalStatsDTOSchema = z.object({
|
|
|
4236
4345
|
totalFavoritesCount: z.number(),
|
|
4237
4346
|
usersCount: z.number()
|
|
4238
4347
|
});
|
|
4348
|
+
const SaveStatisticDTOSchema = z.object({
|
|
4349
|
+
statistic: StatisticSchema
|
|
4350
|
+
});
|
|
4239
4351
|
const constraints = {
|
|
4240
4352
|
events: constraints$2,
|
|
4241
4353
|
organizers: constraints$1
|
|
@@ -4256,6 +4368,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4256
4368
|
OrganizerDTOSchema,
|
|
4257
4369
|
PromoteEventDTOSchema,
|
|
4258
4370
|
RegionalAdDTOSchema,
|
|
4371
|
+
SaveStatisticDTOSchema,
|
|
4259
4372
|
UpdateAppConfigurationDTOSchema,
|
|
4260
4373
|
UpdateEventDTOSchema,
|
|
4261
4374
|
UpdateMainAdDTOSchema,
|
|
@@ -4279,19 +4392,32 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4279
4392
|
api: index$2,
|
|
4280
4393
|
external: index$1
|
|
4281
4394
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4395
|
+
exports.AppStartedStatisticSchema = AppStartedStatisticSchema;
|
|
4282
4396
|
exports.Category = Category;
|
|
4397
|
+
exports.CategoryFilterAppliedStatisticSchema = CategoryFilterAppliedStatisticSchema;
|
|
4283
4398
|
exports.CategorySchema = CategorySchema;
|
|
4284
4399
|
exports.CoerceDateSchema = CoerceDateSchema;
|
|
4285
4400
|
exports.CoerceNullableDateSchema = CoerceNullableDateSchema;
|
|
4401
|
+
exports.DateFilterAppliedStatisticSchema = DateFilterAppliedStatisticSchema;
|
|
4286
4402
|
exports.ErrorCodes = ErrorCodes;
|
|
4403
|
+
exports.EventAddedToCalendarStatisticSchema = EventAddedToCalendarStatisticSchema;
|
|
4404
|
+
exports.EventAddedToFavoritesStatisticSchema = EventAddedToFavoritesStatisticSchema;
|
|
4405
|
+
exports.EventDisplayedStatisticSchema = EventDisplayedStatisticSchema;
|
|
4287
4406
|
exports.EventIdSchema = EventIdSchema;
|
|
4407
|
+
exports.EventSeeMoreClickedStatisticsSchema = EventSeeMoreClickedStatisticsSchema;
|
|
4408
|
+
exports.EventSharedStatisticSchema = EventSharedStatisticSchema;
|
|
4409
|
+
exports.EventTicketsClickedStatisticsSchema = EventTicketsClickedStatisticsSchema;
|
|
4410
|
+
exports.FreeFilterAppliedStatisticSchema = FreeFilterAppliedStatisticSchema;
|
|
4288
4411
|
exports.MainAdIdSchema = MainAdIdSchema;
|
|
4412
|
+
exports.OrganizerDisplayedStatisticSchema = OrganizerDisplayedStatisticSchema;
|
|
4289
4413
|
exports.OrganizerIdSchema = OrganizerIdSchema;
|
|
4290
4414
|
exports.Region = Region;
|
|
4415
|
+
exports.RegionFilterAppliedStatisticSchema = RegionFilterAppliedStatisticSchema;
|
|
4291
4416
|
exports.RegionSchema = RegionSchema;
|
|
4292
4417
|
exports.RegionalAdIdSchema = RegionalAdIdSchema;
|
|
4293
4418
|
exports.SafeNonNegativeFloatSchema = SafeNonNegativeFloatSchema;
|
|
4294
4419
|
exports.SafeNonNegativeIntegerSchema = SafeNonNegativeIntegerSchema;
|
|
4420
|
+
exports.StatisticSchema = StatisticSchema;
|
|
4295
4421
|
exports.StringSchema = StringSchema;
|
|
4296
4422
|
exports.URLSchema = URLSchema;
|
|
4297
4423
|
exports.UUIDSchema = UUIDSchema;
|
package/dist/api-contracts.mjs
CHANGED
|
@@ -4074,6 +4074,115 @@ var Category = /* @__PURE__ */ ((Category2) => {
|
|
|
4074
4074
|
return Category2;
|
|
4075
4075
|
})(Category || {});
|
|
4076
4076
|
const CategorySchema = z.nativeEnum(Category);
|
|
4077
|
+
const AppStartedStatisticSchema = z.object({
|
|
4078
|
+
data: z.object({
|
|
4079
|
+
userId: UUIDSchema
|
|
4080
|
+
}),
|
|
4081
|
+
time: z.string().datetime(),
|
|
4082
|
+
type: z.literal("app-started")
|
|
4083
|
+
});
|
|
4084
|
+
const EventDisplayedStatisticSchema = z.object({
|
|
4085
|
+
data: z.object({
|
|
4086
|
+
userId: UUIDSchema,
|
|
4087
|
+
eventId: UUIDSchema
|
|
4088
|
+
}),
|
|
4089
|
+
time: z.string().datetime(),
|
|
4090
|
+
type: z.literal("event-displayed")
|
|
4091
|
+
});
|
|
4092
|
+
const OrganizerDisplayedStatisticSchema = z.object({
|
|
4093
|
+
data: z.object({
|
|
4094
|
+
userId: UUIDSchema,
|
|
4095
|
+
organizerId: UUIDSchema
|
|
4096
|
+
}),
|
|
4097
|
+
time: z.string().datetime(),
|
|
4098
|
+
type: z.literal("organizer-displayed")
|
|
4099
|
+
});
|
|
4100
|
+
const EventAddedToFavoritesStatisticSchema = z.object({
|
|
4101
|
+
data: z.object({
|
|
4102
|
+
userId: UUIDSchema,
|
|
4103
|
+
eventId: UUIDSchema
|
|
4104
|
+
}),
|
|
4105
|
+
time: z.string().datetime(),
|
|
4106
|
+
type: z.literal("event-added-to-favorites")
|
|
4107
|
+
});
|
|
4108
|
+
const EventAddedToCalendarStatisticSchema = z.object({
|
|
4109
|
+
data: z.object({
|
|
4110
|
+
userId: UUIDSchema,
|
|
4111
|
+
eventId: UUIDSchema
|
|
4112
|
+
}),
|
|
4113
|
+
time: z.string().datetime(),
|
|
4114
|
+
type: z.literal("event-added-to-calendar")
|
|
4115
|
+
});
|
|
4116
|
+
const EventSharedStatisticSchema = z.object({
|
|
4117
|
+
data: z.object({
|
|
4118
|
+
userId: UUIDSchema,
|
|
4119
|
+
eventId: UUIDSchema
|
|
4120
|
+
}),
|
|
4121
|
+
time: z.string().datetime(),
|
|
4122
|
+
type: z.literal("event-shared")
|
|
4123
|
+
});
|
|
4124
|
+
const EventTicketsClickedStatisticsSchema = z.object({
|
|
4125
|
+
data: z.object({
|
|
4126
|
+
userId: UUIDSchema,
|
|
4127
|
+
eventId: UUIDSchema
|
|
4128
|
+
}),
|
|
4129
|
+
time: z.string().datetime(),
|
|
4130
|
+
type: z.literal("event-tickets-clicked")
|
|
4131
|
+
});
|
|
4132
|
+
const EventSeeMoreClickedStatisticsSchema = z.object({
|
|
4133
|
+
data: z.object({
|
|
4134
|
+
userId: UUIDSchema,
|
|
4135
|
+
eventId: UUIDSchema
|
|
4136
|
+
}),
|
|
4137
|
+
time: z.string().datetime(),
|
|
4138
|
+
type: z.literal("event-see-more-clicked")
|
|
4139
|
+
});
|
|
4140
|
+
const RegionFilterAppliedStatisticSchema = z.object({
|
|
4141
|
+
data: z.object({
|
|
4142
|
+
region: RegionSchema,
|
|
4143
|
+
userId: UUIDSchema
|
|
4144
|
+
}),
|
|
4145
|
+
time: z.string().datetime(),
|
|
4146
|
+
type: z.literal("region-filter-applied")
|
|
4147
|
+
});
|
|
4148
|
+
const FreeFilterAppliedStatisticSchema = z.object({
|
|
4149
|
+
data: z.object({
|
|
4150
|
+
userId: UUIDSchema
|
|
4151
|
+
}),
|
|
4152
|
+
time: z.string().datetime(),
|
|
4153
|
+
type: z.literal("free-filter-applied")
|
|
4154
|
+
});
|
|
4155
|
+
const CategoryFilterAppliedStatisticSchema = z.object({
|
|
4156
|
+
data: z.object({
|
|
4157
|
+
category: CategorySchema,
|
|
4158
|
+
userId: UUIDSchema
|
|
4159
|
+
}),
|
|
4160
|
+
time: z.string().datetime(),
|
|
4161
|
+
type: z.literal("category-filter-applied")
|
|
4162
|
+
});
|
|
4163
|
+
const DateFilterAppliedStatisticSchema = z.object({
|
|
4164
|
+
data: z.object({
|
|
4165
|
+
startTime: z.string().datetime(),
|
|
4166
|
+
endTime: z.string().datetime(),
|
|
4167
|
+
userId: UUIDSchema
|
|
4168
|
+
}),
|
|
4169
|
+
time: z.string().datetime(),
|
|
4170
|
+
type: z.literal("date-filter-applied")
|
|
4171
|
+
});
|
|
4172
|
+
const StatisticSchema = z.discriminatedUnion("type", [
|
|
4173
|
+
AppStartedStatisticSchema,
|
|
4174
|
+
CategoryFilterAppliedStatisticSchema,
|
|
4175
|
+
DateFilterAppliedStatisticSchema,
|
|
4176
|
+
EventAddedToCalendarStatisticSchema,
|
|
4177
|
+
EventAddedToFavoritesStatisticSchema,
|
|
4178
|
+
EventDisplayedStatisticSchema,
|
|
4179
|
+
EventSeeMoreClickedStatisticsSchema,
|
|
4180
|
+
EventTicketsClickedStatisticsSchema,
|
|
4181
|
+
EventSharedStatisticSchema,
|
|
4182
|
+
FreeFilterAppliedStatisticSchema,
|
|
4183
|
+
OrganizerDisplayedStatisticSchema,
|
|
4184
|
+
RegionFilterAppliedStatisticSchema
|
|
4185
|
+
]);
|
|
4077
4186
|
const EventIdSchema = UUIDSchema.brand("EventId");
|
|
4078
4187
|
const createEventId = (id = crypto.randomUUID()) => EventIdSchema.parse(id);
|
|
4079
4188
|
const OrganizerIdSchema = UUIDSchema.brand("OrganizerId");
|
|
@@ -4234,6 +4343,9 @@ const GlobalStatsDTOSchema = z.object({
|
|
|
4234
4343
|
totalFavoritesCount: z.number(),
|
|
4235
4344
|
usersCount: z.number()
|
|
4236
4345
|
});
|
|
4346
|
+
const SaveStatisticDTOSchema = z.object({
|
|
4347
|
+
statistic: StatisticSchema
|
|
4348
|
+
});
|
|
4237
4349
|
const constraints = {
|
|
4238
4350
|
events: constraints$2,
|
|
4239
4351
|
organizers: constraints$1
|
|
@@ -4254,6 +4366,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4254
4366
|
OrganizerDTOSchema,
|
|
4255
4367
|
PromoteEventDTOSchema,
|
|
4256
4368
|
RegionalAdDTOSchema,
|
|
4369
|
+
SaveStatisticDTOSchema,
|
|
4257
4370
|
UpdateAppConfigurationDTOSchema,
|
|
4258
4371
|
UpdateEventDTOSchema,
|
|
4259
4372
|
UpdateMainAdDTOSchema,
|
|
@@ -4278,19 +4391,32 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
4278
4391
|
external: index$1
|
|
4279
4392
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4280
4393
|
export {
|
|
4394
|
+
AppStartedStatisticSchema,
|
|
4281
4395
|
Category,
|
|
4396
|
+
CategoryFilterAppliedStatisticSchema,
|
|
4282
4397
|
CategorySchema,
|
|
4283
4398
|
CoerceDateSchema,
|
|
4284
4399
|
CoerceNullableDateSchema,
|
|
4400
|
+
DateFilterAppliedStatisticSchema,
|
|
4285
4401
|
ErrorCodes,
|
|
4402
|
+
EventAddedToCalendarStatisticSchema,
|
|
4403
|
+
EventAddedToFavoritesStatisticSchema,
|
|
4404
|
+
EventDisplayedStatisticSchema,
|
|
4286
4405
|
EventIdSchema,
|
|
4406
|
+
EventSeeMoreClickedStatisticsSchema,
|
|
4407
|
+
EventSharedStatisticSchema,
|
|
4408
|
+
EventTicketsClickedStatisticsSchema,
|
|
4409
|
+
FreeFilterAppliedStatisticSchema,
|
|
4287
4410
|
MainAdIdSchema,
|
|
4411
|
+
OrganizerDisplayedStatisticSchema,
|
|
4288
4412
|
OrganizerIdSchema,
|
|
4289
4413
|
Region,
|
|
4414
|
+
RegionFilterAppliedStatisticSchema,
|
|
4290
4415
|
RegionSchema,
|
|
4291
4416
|
RegionalAdIdSchema,
|
|
4292
4417
|
SafeNonNegativeFloatSchema,
|
|
4293
4418
|
SafeNonNegativeIntegerSchema,
|
|
4419
|
+
StatisticSchema,
|
|
4294
4420
|
StringSchema,
|
|
4295
4421
|
URLSchema,
|
|
4296
4422
|
UUIDSchema,
|