@tmlmobilidade/go-types-performance 20261106.1308.2 → 20261107.2347.22

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,22 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const DemandByAgencyByOperationalDateSchema: z.ZodObject<{
3
3
  agency_id: z.ZodString;
4
- operational_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
4
+ operational_date: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").OperationalDateInt, string>>;
5
5
  qty: z.ZodNumber;
6
- updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
7
- }, "strip", z.ZodTypeAny, {
8
- agency_id: string;
9
- operational_date: number & {
10
- __brand: "OperationalDateInt";
11
- };
12
- qty: number;
13
- updated_at: number & {
14
- __brand: "UnixMilliseconds";
15
- };
16
- }, {
17
- agency_id: string;
18
- operational_date: string | number;
19
- qty: number;
20
- updated_at: string | number;
21
- }>;
6
+ updated_at: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>;
7
+ }, z.core.$strip>;
22
8
  export type DemandByAgencyByOperationalDate = z.infer<typeof DemandByAgencyByOperationalDateSchema>;
@@ -3,12 +3,4 @@ export declare const MetricBaseSchema: z.ZodObject<{
3
3
  description: z.ZodOptional<z.ZodString>;
4
4
  generated_at: z.ZodDate;
5
5
  metric: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- generated_at: Date;
8
- metric: string;
9
- description?: string | undefined;
10
- }, {
11
- generated_at: Date;
12
- metric: string;
13
- description?: string | undefined;
14
- }>;
6
+ }, z.core.$strip>;
@@ -4,206 +4,76 @@ export declare const DemandByAgencyByYearSchema: z.ZodObject<{
4
4
  generated_at: z.ZodDate;
5
5
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
6
6
  qty: z.ZodNumber;
7
- }, "strip", z.ZodTypeAny, {
8
- qty: number;
9
- }, {
10
- qty: number;
11
- }>>;
7
+ }, z.core.$strip>>;
12
8
  properties: z.ZodObject<{
13
9
  agency_id: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- agency_id: string;
16
- }, {
17
- agency_id: string;
18
- }>;
19
- } & {
10
+ }, z.core.$strip>;
20
11
  metric: z.ZodLiteral<"demand_by_agency_by_year">;
21
- }, "strip", z.ZodTypeAny, {
22
- generated_at: Date;
23
- metric: "demand_by_agency_by_year";
24
- data: Record<string, {
25
- qty: number;
26
- }>;
27
- properties: {
28
- agency_id: string;
29
- };
30
- description?: string | undefined;
31
- }, {
32
- generated_at: Date;
33
- metric: "demand_by_agency_by_year";
34
- data: Record<string, {
35
- qty: number;
36
- }>;
37
- properties: {
38
- agency_id: string;
39
- };
40
- description?: string | undefined;
41
- }>;
12
+ }, z.core.$strip>;
42
13
  export declare const DemandByAgencyByMonthSchema: z.ZodObject<{
43
14
  description: z.ZodOptional<z.ZodString>;
44
15
  generated_at: z.ZodDate;
45
16
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
46
17
  qty: z.ZodNumber;
47
- }, "strip", z.ZodTypeAny, {
48
- qty: number;
49
- }, {
50
- qty: number;
51
- }>>;
18
+ }, z.core.$strip>>;
52
19
  properties: z.ZodObject<{
53
20
  agency_id: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- agency_id: string;
56
- }, {
57
- agency_id: string;
58
- }>;
59
- } & {
21
+ }, z.core.$strip>;
60
22
  metric: z.ZodLiteral<"demand_by_agency_by_month">;
61
- }, "strip", z.ZodTypeAny, {
62
- generated_at: Date;
63
- metric: "demand_by_agency_by_month";
64
- data: Record<string, {
65
- qty: number;
66
- }>;
67
- properties: {
68
- agency_id: string;
69
- };
70
- description?: string | undefined;
71
- }, {
72
- generated_at: Date;
73
- metric: "demand_by_agency_by_month";
74
- data: Record<string, {
75
- qty: number;
76
- }>;
77
- properties: {
78
- agency_id: string;
79
- };
80
- description?: string | undefined;
81
- }>;
23
+ }, z.core.$strip>;
82
24
  export declare const DemandByAgencyByDaySchema: z.ZodObject<{
83
25
  description: z.ZodOptional<z.ZodString>;
84
26
  generated_at: z.ZodDate;
85
27
  properties: z.ZodObject<{
86
28
  agency_id: z.ZodString;
87
- }, "strip", z.ZodTypeAny, {
88
- agency_id: string;
89
- }, {
90
- agency_id: string;
91
- }>;
92
- } & {
29
+ }, z.core.$strip>;
93
30
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
94
- day_type: z.ZodEnum<["1", "2", "3"]>;
95
- holiday: z.ZodEnum<["0", "1"]>;
31
+ day_type: z.ZodEnum<{
32
+ 1: "1";
33
+ 2: "2";
34
+ 3: "3";
35
+ }>;
36
+ holiday: z.ZodEnum<{
37
+ 1: "1";
38
+ 0: "0";
39
+ }>;
96
40
  notes: z.ZodNullable<z.ZodString>;
97
- period: z.ZodEnum<["1", "2", "3"]>;
41
+ period: z.ZodEnum<{
42
+ 1: "1";
43
+ 2: "2";
44
+ 3: "3";
45
+ }>;
98
46
  qty: z.ZodNumber;
99
- }, "strip", z.ZodTypeAny, {
100
- qty: number;
101
- day_type: "1" | "2" | "3";
102
- holiday: "0" | "1";
103
- notes: string | null;
104
- period: "1" | "2" | "3";
105
- }, {
106
- qty: number;
107
- day_type: "1" | "2" | "3";
108
- holiday: "0" | "1";
109
- notes: string | null;
110
- period: "1" | "2" | "3";
111
- }>>;
47
+ }, z.core.$strip>>;
112
48
  metric: z.ZodLiteral<"demand_by_agency_by_day">;
113
- }, "strip", z.ZodTypeAny, {
114
- generated_at: Date;
115
- metric: "demand_by_agency_by_day";
116
- data: Record<string, {
117
- qty: number;
118
- day_type: "1" | "2" | "3";
119
- holiday: "0" | "1";
120
- notes: string | null;
121
- period: "1" | "2" | "3";
122
- }>;
123
- properties: {
124
- agency_id: string;
125
- };
126
- description?: string | undefined;
127
- }, {
128
- generated_at: Date;
129
- metric: "demand_by_agency_by_day";
130
- data: Record<string, {
131
- qty: number;
132
- day_type: "1" | "2" | "3";
133
- holiday: "0" | "1";
134
- notes: string | null;
135
- period: "1" | "2" | "3";
136
- }>;
137
- properties: {
138
- agency_id: string;
139
- };
140
- description?: string | undefined;
141
- }>;
49
+ }, z.core.$strip>;
142
50
  export declare const DemandByAgencyByDayByProductSchema: z.ZodObject<{
143
51
  description: z.ZodOptional<z.ZodString>;
144
52
  generated_at: z.ZodDate;
145
53
  properties: z.ZodObject<{
146
54
  agency_id: z.ZodString;
147
- }, "strip", z.ZodTypeAny, {
148
- agency_id: string;
149
- }, {
150
- agency_id: string;
151
- }>;
152
- } & {
55
+ }, z.core.$strip>;
153
56
  data: z.ZodRecord<z.ZodString, z.ZodObject<{
154
- day_type: z.ZodEnum<["1", "2", "3"]>;
155
- holiday: z.ZodEnum<["0", "1"]>;
57
+ day_type: z.ZodEnum<{
58
+ 1: "1";
59
+ 2: "2";
60
+ 3: "3";
61
+ }>;
62
+ holiday: z.ZodEnum<{
63
+ 1: "1";
64
+ 0: "0";
65
+ }>;
156
66
  notes: z.ZodNullable<z.ZodString>;
157
- period: z.ZodEnum<["1", "2", "3"]>;
67
+ period: z.ZodEnum<{
68
+ 1: "1";
69
+ 2: "2";
70
+ 3: "3";
71
+ }>;
158
72
  products: z.ZodRecord<z.ZodString, z.ZodNumber>;
159
73
  qty: z.ZodNumber;
160
- }, "strip", z.ZodTypeAny, {
161
- qty: number;
162
- day_type: "1" | "2" | "3";
163
- holiday: "0" | "1";
164
- notes: string | null;
165
- period: "1" | "2" | "3";
166
- products: Record<string, number>;
167
- }, {
168
- qty: number;
169
- day_type: "1" | "2" | "3";
170
- holiday: "0" | "1";
171
- notes: string | null;
172
- period: "1" | "2" | "3";
173
- products: Record<string, number>;
174
- }>>;
74
+ }, z.core.$strip>>;
175
75
  metric: z.ZodLiteral<"demand_by_agency_by_day_by_product">;
176
- }, "strip", z.ZodTypeAny, {
177
- generated_at: Date;
178
- metric: "demand_by_agency_by_day_by_product";
179
- data: Record<string, {
180
- qty: number;
181
- day_type: "1" | "2" | "3";
182
- holiday: "0" | "1";
183
- notes: string | null;
184
- period: "1" | "2" | "3";
185
- products: Record<string, number>;
186
- }>;
187
- properties: {
188
- agency_id: string;
189
- };
190
- description?: string | undefined;
191
- }, {
192
- generated_at: Date;
193
- metric: "demand_by_agency_by_day_by_product";
194
- data: Record<string, {
195
- qty: number;
196
- day_type: "1" | "2" | "3";
197
- holiday: "0" | "1";
198
- notes: string | null;
199
- period: "1" | "2" | "3";
200
- products: Record<string, number>;
201
- }>;
202
- properties: {
203
- agency_id: string;
204
- };
205
- description?: string | undefined;
206
- }>;
76
+ }, z.core.$strip>;
207
77
  export type DemandByAgencyByYear = z.infer<typeof DemandByAgencyByYearSchema>;
208
78
  export type DemandByAgencyByMonth = z.infer<typeof DemandByAgencyByMonthSchema>;
209
79
  export type DemandByAgencyByDay = z.infer<typeof DemandByAgencyByDaySchema>;