@sortipei/api-contracts 0.2.9 → 0.2.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.
@@ -123,6 +123,7 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
123
123
  totalShared: z.ZodNumber;
124
124
  usersCount: z.ZodNumber;
125
125
  usersWithMultipleDayAppOpened: z.ZodNumber;
126
+ appOpenedCount: z.ZodNumber;
126
127
  }, "strip", z.ZodTypeAny, {
127
128
  allAdsStats: {
128
129
  adId: (string & z.BRAND<"MainAdId">) | (string & z.BRAND<"RegionalAdId">);
@@ -158,6 +159,7 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
158
159
  totalShared: number;
159
160
  usersCount: number;
160
161
  usersWithMultipleDayAppOpened: number;
162
+ appOpenedCount: number;
161
163
  }, {
162
164
  allAdsStats: {
163
165
  adId: string;
@@ -193,11 +195,82 @@ export declare const GlobalStatsDTOSchema: z.ZodObject<{
193
195
  totalShared: number;
194
196
  usersCount: number;
195
197
  usersWithMultipleDayAppOpened: number;
198
+ appOpenedCount: number;
196
199
  }>;
200
+ export declare const TemporalStatsWeekDTOSchema: z.ZodObject<{
201
+ weekStart: z.ZodDate;
202
+ weekEnd: z.ZodDate;
203
+ eventsCount: z.ZodNumber;
204
+ openedEventsCount: z.ZodNumber;
205
+ sharedEventsCount: z.ZodNumber;
206
+ totalAddedToCalendar: z.ZodNumber;
207
+ totalFavoritesCount: z.ZodNumber;
208
+ totalShared: z.ZodNumber;
209
+ usersCount: z.ZodNumber;
210
+ appOpenedCount: z.ZodNumber;
211
+ }, "strip", z.ZodTypeAny, {
212
+ eventsCount: number;
213
+ openedEventsCount: number;
214
+ sharedEventsCount: number;
215
+ totalAddedToCalendar: number;
216
+ totalFavoritesCount: number;
217
+ totalShared: number;
218
+ usersCount: number;
219
+ appOpenedCount: number;
220
+ weekStart: Date;
221
+ weekEnd: Date;
222
+ }, {
223
+ eventsCount: number;
224
+ openedEventsCount: number;
225
+ sharedEventsCount: number;
226
+ totalAddedToCalendar: number;
227
+ totalFavoritesCount: number;
228
+ totalShared: number;
229
+ usersCount: number;
230
+ appOpenedCount: number;
231
+ weekStart: Date;
232
+ weekEnd: Date;
233
+ }>;
234
+ export declare const TemporalStatsDTOSchema: z.ZodArray<z.ZodObject<{
235
+ weekStart: z.ZodDate;
236
+ weekEnd: z.ZodDate;
237
+ eventsCount: z.ZodNumber;
238
+ openedEventsCount: z.ZodNumber;
239
+ sharedEventsCount: z.ZodNumber;
240
+ totalAddedToCalendar: z.ZodNumber;
241
+ totalFavoritesCount: z.ZodNumber;
242
+ totalShared: z.ZodNumber;
243
+ usersCount: z.ZodNumber;
244
+ appOpenedCount: z.ZodNumber;
245
+ }, "strip", z.ZodTypeAny, {
246
+ eventsCount: number;
247
+ openedEventsCount: number;
248
+ sharedEventsCount: number;
249
+ totalAddedToCalendar: number;
250
+ totalFavoritesCount: number;
251
+ totalShared: number;
252
+ usersCount: number;
253
+ appOpenedCount: number;
254
+ weekStart: Date;
255
+ weekEnd: Date;
256
+ }, {
257
+ eventsCount: number;
258
+ openedEventsCount: number;
259
+ sharedEventsCount: number;
260
+ totalAddedToCalendar: number;
261
+ totalFavoritesCount: number;
262
+ totalShared: number;
263
+ usersCount: number;
264
+ appOpenedCount: number;
265
+ weekStart: Date;
266
+ weekEnd: Date;
267
+ }>, "many">;
197
268
  export type AdStatDTO = z.infer<typeof AdStatDTOSchema>;
198
269
  export type EventStatisticsDTO = z.infer<typeof EventStatisticsDTOSchema>;
199
270
  export type GlobalStatsDTO = z.infer<typeof GlobalStatsDTOSchema>;
200
271
  export type TopEventDTO = z.infer<typeof TopEventDTOSchema>;
272
+ export type TemporalStatsWeekDTO = z.infer<typeof TemporalStatsWeekDTOSchema>;
273
+ export type TemporalStatsDTO = z.infer<typeof TemporalStatsDTOSchema>;
201
274
  export declare const SaveStatisticDTOSchema: z.ZodObject<{
202
275
  statistic: z.ZodDiscriminatedUnion<"type", [z.Z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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -4204,10 +4204,9 @@ const StatisticSchema = z.discriminatedUnion("type", [
4204
4204
  RegionFilterAppliedStatisticSchema
4205
4205
  ]);
4206
4206
  var ImportReminderFrequency = /* @__PURE__ */ ((ImportReminderFrequency2) => {
4207
- ImportReminderFrequency2["TWO_DAYS"] = "TWO_DAYS";
4208
- ImportReminderFrequency2["FOUR_DAYS"] = "FOUR_DAYS";
4209
- ImportReminderFrequency2["ONE_WEEK"] = "ONE_WEEK";
4210
- ImportReminderFrequency2["TWO_WEEKS"] = "TWO_WEEKS";
4207
+ ImportReminderFrequency2["ONCE_PER_WEEK"] = "ONCE_PER_WEEK";
4208
+ ImportReminderFrequency2["TWICE_PER_WEEK"] = "TWICE_PER_WEEK";
4209
+ ImportReminderFrequency2["ONCE_PER_TWO_WEEKS"] = "ONCE_PER_TWO_WEEKS";
4211
4210
  return ImportReminderFrequency2;
4212
4211
  })(ImportReminderFrequency || {});
4213
4212
  const ImportReminderFrequencySchema = z.nativeEnum(ImportReminderFrequency);
@@ -4427,8 +4426,22 @@ const GlobalStatsDTOSchema = z.object({
4427
4426
  totalFavoritesCount: z.number(),
4428
4427
  totalShared: z.number(),
4429
4428
  usersCount: z.number(),
4430
- usersWithMultipleDayAppOpened: z.number()
4429
+ usersWithMultipleDayAppOpened: z.number(),
4430
+ appOpenedCount: z.number()
4431
4431
  });
4432
+ const TemporalStatsWeekDTOSchema = z.object({
4433
+ weekStart: z.coerce.date(),
4434
+ weekEnd: z.coerce.date(),
4435
+ eventsCount: z.number(),
4436
+ openedEventsCount: z.number(),
4437
+ sharedEventsCount: z.number(),
4438
+ totalAddedToCalendar: z.number(),
4439
+ totalFavoritesCount: z.number(),
4440
+ totalShared: z.number(),
4441
+ usersCount: z.number(),
4442
+ appOpenedCount: z.number()
4443
+ });
4444
+ const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
4432
4445
  const SaveStatisticDTOSchema = z.object({
4433
4446
  statistic: StatisticSchema
4434
4447
  });
@@ -4459,6 +4472,8 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4459
4472
  PromoteEventDTOSchema,
4460
4473
  RegionalAdDTOSchema,
4461
4474
  SaveStatisticDTOSchema,
4475
+ TemporalStatsDTOSchema,
4476
+ TemporalStatsWeekDTOSchema,
4462
4477
  TopEventDTOSchema,
4463
4478
  UpdateAppConfigurationDTOSchema,
4464
4479
  UpdateEventDTOSchema,
@@ -4202,10 +4202,9 @@ const StatisticSchema = z.discriminatedUnion("type", [
4202
4202
  RegionFilterAppliedStatisticSchema
4203
4203
  ]);
4204
4204
  var ImportReminderFrequency = /* @__PURE__ */ ((ImportReminderFrequency2) => {
4205
- ImportReminderFrequency2["TWO_DAYS"] = "TWO_DAYS";
4206
- ImportReminderFrequency2["FOUR_DAYS"] = "FOUR_DAYS";
4207
- ImportReminderFrequency2["ONE_WEEK"] = "ONE_WEEK";
4208
- ImportReminderFrequency2["TWO_WEEKS"] = "TWO_WEEKS";
4205
+ ImportReminderFrequency2["ONCE_PER_WEEK"] = "ONCE_PER_WEEK";
4206
+ ImportReminderFrequency2["TWICE_PER_WEEK"] = "TWICE_PER_WEEK";
4207
+ ImportReminderFrequency2["ONCE_PER_TWO_WEEKS"] = "ONCE_PER_TWO_WEEKS";
4209
4208
  return ImportReminderFrequency2;
4210
4209
  })(ImportReminderFrequency || {});
4211
4210
  const ImportReminderFrequencySchema = z.nativeEnum(ImportReminderFrequency);
@@ -4425,8 +4424,22 @@ const GlobalStatsDTOSchema = z.object({
4425
4424
  totalFavoritesCount: z.number(),
4426
4425
  totalShared: z.number(),
4427
4426
  usersCount: z.number(),
4428
- usersWithMultipleDayAppOpened: z.number()
4427
+ usersWithMultipleDayAppOpened: z.number(),
4428
+ appOpenedCount: z.number()
4429
4429
  });
4430
+ const TemporalStatsWeekDTOSchema = z.object({
4431
+ weekStart: z.coerce.date(),
4432
+ weekEnd: z.coerce.date(),
4433
+ eventsCount: z.number(),
4434
+ openedEventsCount: z.number(),
4435
+ sharedEventsCount: z.number(),
4436
+ totalAddedToCalendar: z.number(),
4437
+ totalFavoritesCount: z.number(),
4438
+ totalShared: z.number(),
4439
+ usersCount: z.number(),
4440
+ appOpenedCount: z.number()
4441
+ });
4442
+ const TemporalStatsDTOSchema = TemporalStatsWeekDTOSchema.array();
4430
4443
  const SaveStatisticDTOSchema = z.object({
4431
4444
  statistic: StatisticSchema
4432
4445
  });
@@ -4457,6 +4470,8 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
4457
4470
  PromoteEventDTOSchema,
4458
4471
  RegionalAdDTOSchema,
4459
4472
  SaveStatisticDTOSchema,
4473
+ TemporalStatsDTOSchema,
4474
+ TemporalStatsWeekDTOSchema,
4460
4475
  TopEventDTOSchema,
4461
4476
  UpdateAppConfigurationDTOSchema,
4462
4477
  UpdateEventDTOSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortipei/api-contracts",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "license": "UNLICENCED",
5
5
  "main": "dist/api-contracts.js",
6
6
  "module": "dist/api-contracts.mjs",