@tmlmobilidade/types 20251017.1132.6 → 20251017.1433.50

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.
@@ -107,23 +107,23 @@ export declare const DemandByLineByDaySchema: z.ZodObject<{
107
107
  }>;
108
108
  } & {
109
109
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
110
- day_type: z.ZodNumber;
111
- holiday: z.ZodNumber;
110
+ day_type: z.ZodEnum<["1", "2", "3"]>;
111
+ holiday: z.ZodEnum<["0", "1"]>;
112
112
  notes: z.ZodNullable<z.ZodString>;
113
- period: z.ZodNumber;
113
+ period: z.ZodEnum<["1", "2", "3"]>;
114
114
  qty: z.ZodNumber;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  qty: number;
117
- day_type: number;
118
- holiday: number;
117
+ day_type: "1" | "2" | "3";
118
+ holiday: "0" | "1";
119
119
  notes: string | null;
120
- period: number;
120
+ period: "1" | "2" | "3";
121
121
  }, {
122
122
  qty: number;
123
- day_type: number;
124
- holiday: number;
123
+ day_type: "1" | "2" | "3";
124
+ holiday: "0" | "1";
125
125
  notes: string | null;
126
- period: number;
126
+ period: "1" | "2" | "3";
127
127
  }>>;
128
128
  metric: z.ZodLiteral<"demand_by_line_by_day">;
129
129
  }, "strip", z.ZodTypeAny, {
@@ -135,10 +135,10 @@ export declare const DemandByLineByDaySchema: z.ZodObject<{
135
135
  metric: "demand_by_line_by_day";
136
136
  data: Record<string, {
137
137
  qty: number;
138
- day_type: number;
139
- holiday: number;
138
+ day_type: "1" | "2" | "3";
139
+ holiday: "0" | "1";
140
140
  notes: string | null;
141
- period: number;
141
+ period: "1" | "2" | "3";
142
142
  }>;
143
143
  description?: string | undefined;
144
144
  }, {
@@ -150,10 +150,10 @@ export declare const DemandByLineByDaySchema: z.ZodObject<{
150
150
  metric: "demand_by_line_by_day";
151
151
  data: Record<string, {
152
152
  qty: number;
153
- day_type: number;
154
- holiday: number;
153
+ day_type: "1" | "2" | "3";
154
+ holiday: "0" | "1";
155
155
  notes: string | null;
156
- period: number;
156
+ period: "1" | "2" | "3";
157
157
  }>;
158
158
  description?: string | undefined;
159
159
  }>;
@@ -19,10 +19,10 @@ export const DemandByLineByMonthSchema = DemandByLineSchema.extend({
19
19
  });
20
20
  export const DemandByLineByDaySchema = DemandByLineSchema.extend({
21
21
  data: z.record(z.string(), z.object({
22
- day_type: z.number(),
23
- holiday: z.number(),
22
+ day_type: z.enum(['1', '2', '3']),
23
+ holiday: z.enum(['0', '1']),
24
24
  notes: z.string().nullable(),
25
- period: z.number(),
25
+ period: z.enum(['1', '2', '3']),
26
26
  qty: z.number(),
27
27
  })),
28
28
  metric: z.literal('demand_by_line_by_day'),
@@ -105,23 +105,23 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
105
105
  }>;
106
106
  } & {
107
107
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
108
- day_type: z.ZodNumber;
109
- holiday: z.ZodNumber;
108
+ day_type: z.ZodEnum<["1", "2", "3"]>;
109
+ holiday: z.ZodEnum<["0", "1"]>;
110
110
  notes: z.ZodNullable<z.ZodString>;
111
- period: z.ZodNumber;
111
+ period: z.ZodEnum<["1", "2", "3"]>;
112
112
  qty: z.ZodNumber;
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  qty: number;
115
- day_type: number;
116
- holiday: number;
115
+ day_type: "1" | "2" | "3";
116
+ holiday: "0" | "1";
117
117
  notes: string | null;
118
- period: number;
118
+ period: "1" | "2" | "3";
119
119
  }, {
120
120
  qty: number;
121
- day_type: number;
122
- holiday: number;
121
+ day_type: "1" | "2" | "3";
122
+ holiday: "0" | "1";
123
123
  notes: string | null;
124
- period: number;
124
+ period: "1" | "2" | "3";
125
125
  }>>;
126
126
  metric: z.ZodLiteral<"demand_by_line_by_day">;
127
127
  }, "strip", z.ZodTypeAny, {
@@ -133,10 +133,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
133
133
  metric: "demand_by_line_by_day";
134
134
  data: Record<string, {
135
135
  qty: number;
136
- day_type: number;
137
- holiday: number;
136
+ day_type: "1" | "2" | "3";
137
+ holiday: "0" | "1";
138
138
  notes: string | null;
139
- period: number;
139
+ period: "1" | "2" | "3";
140
140
  }>;
141
141
  description?: string | undefined;
142
142
  }, {
@@ -148,10 +148,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
148
148
  metric: "demand_by_line_by_day";
149
149
  data: Record<string, {
150
150
  qty: number;
151
- day_type: number;
152
- holiday: number;
151
+ day_type: "1" | "2" | "3";
152
+ holiday: "0" | "1";
153
153
  notes: string | null;
154
- period: number;
154
+ period: "1" | "2" | "3";
155
155
  }>;
156
156
  description?: string | undefined;
157
157
  }>, z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251017.1132.6",
3
+ "version": "20251017.1433.50",
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",