@tmlmobilidade/types 20251021.1707.39 → 20251021.1717.49

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.
@@ -378,22 +378,22 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
378
378
  } & {
379
379
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
380
380
  day_type: z.ZodEnum<["1", "2", "3"]>;
381
- holiday: z.ZodNumber;
381
+ holiday: z.ZodEnum<["0", "1"]>;
382
382
  notes: z.ZodNullable<z.ZodString>;
383
- period: z.ZodNumber;
383
+ period: z.ZodEnum<["1", "2", "3"]>;
384
384
  qty: z.ZodNumber;
385
385
  }, "strip", z.ZodTypeAny, {
386
386
  qty: number;
387
387
  day_type: "1" | "2" | "3";
388
- holiday: number;
388
+ holiday: "0" | "1";
389
389
  notes: string | null;
390
- period: number;
390
+ period: "1" | "2" | "3";
391
391
  }, {
392
392
  qty: number;
393
393
  day_type: "1" | "2" | "3";
394
- holiday: number;
394
+ holiday: "0" | "1";
395
395
  notes: string | null;
396
- period: number;
396
+ period: "1" | "2" | "3";
397
397
  }>>;
398
398
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
399
399
  }, "strip", z.ZodTypeAny, {
@@ -406,9 +406,9 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
406
406
  data: Record<string, {
407
407
  qty: number;
408
408
  day_type: "1" | "2" | "3";
409
- holiday: number;
409
+ holiday: "0" | "1";
410
410
  notes: string | null;
411
- period: number;
411
+ period: "1" | "2" | "3";
412
412
  }>;
413
413
  description?: string | undefined;
414
414
  }, {
@@ -421,9 +421,9 @@ export declare const DemandByAgencyByDaySchema: z.ZodObject<{
421
421
  data: Record<string, {
422
422
  qty: number;
423
423
  day_type: "1" | "2" | "3";
424
- holiday: number;
424
+ holiday: "0" | "1";
425
425
  notes: string | null;
426
- period: number;
426
+ period: "1" | "2" | "3";
427
427
  }>;
428
428
  description?: string | undefined;
429
429
  }>;
@@ -536,22 +536,22 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
536
536
  } & {
537
537
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
538
538
  day_type: z.ZodEnum<["1", "2", "3"]>;
539
- holiday: z.ZodNumber;
539
+ holiday: z.ZodEnum<["0", "1"]>;
540
540
  notes: z.ZodNullable<z.ZodString>;
541
- period: z.ZodNumber;
541
+ period: z.ZodEnum<["1", "2", "3"]>;
542
542
  qty: z.ZodNumber;
543
543
  }, "strip", z.ZodTypeAny, {
544
544
  qty: number;
545
545
  day_type: "1" | "2" | "3";
546
- holiday: number;
546
+ holiday: "0" | "1";
547
547
  notes: string | null;
548
- period: number;
548
+ period: "1" | "2" | "3";
549
549
  }, {
550
550
  qty: number;
551
551
  day_type: "1" | "2" | "3";
552
- holiday: number;
552
+ holiday: "0" | "1";
553
553
  notes: string | null;
554
- period: number;
554
+ period: "1" | "2" | "3";
555
555
  }>>;
556
556
  metric: z.ZodLiteral<"demand_by_pattern_by_day">;
557
557
  }, "strip", z.ZodTypeAny, {
@@ -564,9 +564,9 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
564
564
  data: Record<string, {
565
565
  qty: number;
566
566
  day_type: "1" | "2" | "3";
567
- holiday: number;
567
+ holiday: "0" | "1";
568
568
  notes: string | null;
569
- period: number;
569
+ period: "1" | "2" | "3";
570
570
  }>;
571
571
  description?: string | undefined;
572
572
  }, {
@@ -579,9 +579,9 @@ export declare const DemandByPatternByDaySchema: z.ZodObject<{
579
579
  data: Record<string, {
580
580
  qty: number;
581
581
  day_type: "1" | "2" | "3";
582
- holiday: number;
582
+ holiday: "0" | "1";
583
583
  notes: string | null;
584
- period: number;
584
+ period: "1" | "2" | "3";
585
585
  }>;
586
586
  description?: string | undefined;
587
587
  }>;
@@ -73,9 +73,9 @@ export const DemandByAgencyByMonthSchema = DemandByAgencySchema.extend({
73
73
  export const DemandByAgencyByDaySchema = DemandByAgencySchema.extend({
74
74
  data: z.record(z.string(), z.object({
75
75
  day_type: z.enum(['1', '2', '3']),
76
- holiday: z.number(),
76
+ holiday: z.enum(['0', '1']),
77
77
  notes: z.string().nullable(),
78
- period: z.number(),
78
+ period: z.enum(['1', '2', '3']),
79
79
  qty: z.number(),
80
80
  })),
81
81
  metric: z.literal('demand_by_agency_by_day'),
@@ -101,9 +101,9 @@ export const DemandByPatternByMonthSchema = DemandByPatternSchema.extend({
101
101
  export const DemandByPatternByDaySchema = DemandByPatternSchema.extend({
102
102
  data: z.record(z.string(), z.object({
103
103
  day_type: z.enum(['1', '2', '3']),
104
- holiday: z.number(),
104
+ holiday: z.enum(['0', '1']),
105
105
  notes: z.string().nullable(),
106
- period: z.number(),
106
+ period: z.enum(['1', '2', '3']),
107
107
  qty: z.number(),
108
108
  })),
109
109
  metric: z.literal('demand_by_pattern_by_day'),
@@ -262,22 +262,22 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
262
262
  } & {
263
263
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
264
264
  day_type: z.ZodEnum<["1", "2", "3"]>;
265
- holiday: z.ZodNumber;
265
+ holiday: z.ZodEnum<["0", "1"]>;
266
266
  notes: z.ZodNullable<z.ZodString>;
267
- period: z.ZodNumber;
267
+ period: z.ZodEnum<["1", "2", "3"]>;
268
268
  qty: z.ZodNumber;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  qty: number;
271
271
  day_type: "1" | "2" | "3";
272
- holiday: number;
272
+ holiday: "0" | "1";
273
273
  notes: string | null;
274
- period: number;
274
+ period: "1" | "2" | "3";
275
275
  }, {
276
276
  qty: number;
277
277
  day_type: "1" | "2" | "3";
278
- holiday: number;
278
+ holiday: "0" | "1";
279
279
  notes: string | null;
280
- period: number;
280
+ period: "1" | "2" | "3";
281
281
  }>>;
282
282
  metric: z.ZodLiteral<"demand_by_pattern_by_day">;
283
283
  }, "strip", z.ZodTypeAny, {
@@ -290,9 +290,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
290
290
  data: Record<string, {
291
291
  qty: number;
292
292
  day_type: "1" | "2" | "3";
293
- holiday: number;
293
+ holiday: "0" | "1";
294
294
  notes: string | null;
295
- period: number;
295
+ period: "1" | "2" | "3";
296
296
  }>;
297
297
  description?: string | undefined;
298
298
  }, {
@@ -305,9 +305,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
305
305
  data: Record<string, {
306
306
  qty: number;
307
307
  day_type: "1" | "2" | "3";
308
- holiday: number;
308
+ holiday: "0" | "1";
309
309
  notes: string | null;
310
- period: number;
310
+ period: "1" | "2" | "3";
311
311
  }>;
312
312
  description?: string | undefined;
313
313
  }>, z.ZodObject<{
@@ -527,22 +527,22 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
527
527
  } & {
528
528
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
529
529
  day_type: z.ZodEnum<["1", "2", "3"]>;
530
- holiday: z.ZodNumber;
530
+ holiday: z.ZodEnum<["0", "1"]>;
531
531
  notes: z.ZodNullable<z.ZodString>;
532
- period: z.ZodNumber;
532
+ period: z.ZodEnum<["1", "2", "3"]>;
533
533
  qty: z.ZodNumber;
534
534
  }, "strip", z.ZodTypeAny, {
535
535
  qty: number;
536
536
  day_type: "1" | "2" | "3";
537
- holiday: number;
537
+ holiday: "0" | "1";
538
538
  notes: string | null;
539
- period: number;
539
+ period: "1" | "2" | "3";
540
540
  }, {
541
541
  qty: number;
542
542
  day_type: "1" | "2" | "3";
543
- holiday: number;
543
+ holiday: "0" | "1";
544
544
  notes: string | null;
545
- period: number;
545
+ period: "1" | "2" | "3";
546
546
  }>>;
547
547
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
548
548
  }, "strip", z.ZodTypeAny, {
@@ -555,9 +555,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
555
555
  data: Record<string, {
556
556
  qty: number;
557
557
  day_type: "1" | "2" | "3";
558
- holiday: number;
558
+ holiday: "0" | "1";
559
559
  notes: string | null;
560
- period: number;
560
+ period: "1" | "2" | "3";
561
561
  }>;
562
562
  description?: string | undefined;
563
563
  }, {
@@ -570,9 +570,9 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
570
570
  data: Record<string, {
571
571
  qty: number;
572
572
  day_type: "1" | "2" | "3";
573
- holiday: number;
573
+ holiday: "0" | "1";
574
574
  notes: string | null;
575
- period: number;
575
+ period: "1" | "2" | "3";
576
576
  }>;
577
577
  description?: string | undefined;
578
578
  }>, z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251021.1707.39",
3
+ "version": "20251021.1717.49",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",