@tmlmobilidade/types 20260517.1740.22 → 20260517.2055.28

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,12 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  export declare const AgencySchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
- created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
4
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
5
5
  created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
6
  is_locked: z.ZodDefault<z.ZodBoolean>;
7
- updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
7
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
9
9
  } & {
10
+ alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
11
+ code: z.ZodString;
10
12
  contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
13
  contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
12
14
  fare_url: z.ZodString;
@@ -21,7 +23,7 @@ export declare const AgencySchema: z.ZodObject<{
21
23
  vkm_per_month: number[];
22
24
  }>;
23
25
  name: z.ZodString;
24
- operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
26
+ operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
25
27
  phone: z.ZodString;
26
28
  public_email: z.ZodString;
27
29
  short_name: z.ZodString;
@@ -38,6 +40,9 @@ export declare const AgencySchema: z.ZodObject<{
38
40
  updated_at: number & {
39
41
  __brand: "UnixTimestamp";
40
42
  };
43
+ code: string;
44
+ name: string;
45
+ alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
41
46
  contact_emails_pta: string[];
42
47
  contact_emails_pto: string[];
43
48
  fare_url: string;
@@ -45,8 +50,7 @@ export declare const AgencySchema: z.ZodObject<{
45
50
  price_per_km: number;
46
51
  vkm_per_month: number[];
47
52
  };
48
- name: string;
49
- operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
53
+ operation_start_date: import("../_common/operational-date.js").OperationalDate | null;
50
54
  phone: string;
51
55
  public_email: string;
52
56
  short_name: string;
@@ -58,12 +62,14 @@ export declare const AgencySchema: z.ZodObject<{
58
62
  _id: string;
59
63
  created_at: number;
60
64
  updated_at: number;
65
+ code: string;
66
+ name: string;
67
+ alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
61
68
  fare_url: string;
62
69
  financials: {
63
70
  price_per_km: number;
64
71
  vkm_per_month: number[];
65
72
  };
66
- name: string;
67
73
  phone: string;
68
74
  public_email: string;
69
75
  short_name: string;
@@ -79,12 +85,14 @@ export declare const AgencySchema: z.ZodObject<{
79
85
  }>;
80
86
  export declare const CreateAgencySchema: z.ZodObject<Omit<{
81
87
  _id: z.ZodString;
82
- created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
88
+ created_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
83
89
  created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
84
90
  is_locked: z.ZodDefault<z.ZodBoolean>;
85
- updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
91
+ updated_at: z.ZodEffects<z.ZodNumber, import("../index.js").UnixTimestamp, number>;
86
92
  updated_by: z.ZodOptional<z.ZodString>;
87
93
  } & {
94
+ alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
95
+ code: z.ZodString;
88
96
  contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
89
97
  contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
90
98
  fare_url: z.ZodString;
@@ -99,7 +107,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
99
107
  vkm_per_month: number[];
100
108
  }>;
101
109
  name: z.ZodString;
102
- operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
110
+ operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>;
103
111
  phone: z.ZodString;
104
112
  public_email: z.ZodString;
105
113
  short_name: z.ZodString;
@@ -110,6 +118,9 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
110
118
  _id: string;
111
119
  created_by: string | null;
112
120
  is_locked: boolean;
121
+ code: string;
122
+ name: string;
123
+ alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
113
124
  contact_emails_pta: string[];
114
125
  contact_emails_pto: string[];
115
126
  fare_url: string;
@@ -117,8 +128,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
117
128
  price_per_km: number;
118
129
  vkm_per_month: number[];
119
130
  };
120
- name: string;
121
- operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
131
+ operation_start_date: import("../_common/operational-date.js").OperationalDate | null;
122
132
  phone: string;
123
133
  public_email: string;
124
134
  short_name: string;
@@ -128,12 +138,14 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
128
138
  validation_rules?: any;
129
139
  }, {
130
140
  _id: string;
141
+ code: string;
142
+ name: string;
143
+ alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
131
144
  fare_url: string;
132
145
  financials: {
133
146
  price_per_km: number;
134
147
  vkm_per_month: number[];
135
148
  };
136
- name: string;
137
149
  phone: string;
138
150
  public_email: string;
139
151
  short_name: string;
@@ -151,6 +163,9 @@ export declare const UpdateAgencySchema: z.ZodObject<{
151
163
  _id: z.ZodOptional<z.ZodString>;
152
164
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
153
165
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
166
+ code: z.ZodOptional<z.ZodString>;
167
+ name: z.ZodOptional<z.ZodString>;
168
+ alerts_map: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>>;
154
169
  contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
155
170
  contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
156
171
  fare_url: z.ZodOptional<z.ZodString>;
@@ -164,8 +179,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
164
179
  price_per_km: number;
165
180
  vkm_per_month: number[];
166
181
  }>>;
167
- name: z.ZodOptional<z.ZodString>;
168
- operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>>;
182
+ operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("../_common/operational-date.js").OperationalDate, string>>>>;
169
183
  phone: z.ZodOptional<z.ZodString>;
170
184
  public_email: z.ZodOptional<z.ZodString>;
171
185
  short_name: z.ZodOptional<z.ZodString>;
@@ -176,6 +190,9 @@ export declare const UpdateAgencySchema: z.ZodObject<{
176
190
  _id?: string | undefined;
177
191
  is_locked?: boolean | undefined;
178
192
  updated_by?: string | undefined;
193
+ code?: string | undefined;
194
+ name?: string | undefined;
195
+ alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>> | undefined;
179
196
  contact_emails_pta?: string[] | undefined;
180
197
  contact_emails_pto?: string[] | undefined;
181
198
  fare_url?: string | undefined;
@@ -183,8 +200,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
183
200
  price_per_km: number;
184
201
  vkm_per_month: number[];
185
202
  } | undefined;
186
- name?: string | undefined;
187
- operation_start_date?: import("./_common/operational-date.js").OperationalDate | null | undefined;
203
+ operation_start_date?: import("../_common/operational-date.js").OperationalDate | null | undefined;
188
204
  phone?: string | undefined;
189
205
  public_email?: string | undefined;
190
206
  short_name?: string | undefined;
@@ -195,6 +211,9 @@ export declare const UpdateAgencySchema: z.ZodObject<{
195
211
  _id?: string | undefined;
196
212
  is_locked?: boolean | undefined;
197
213
  updated_by?: string | undefined;
214
+ code?: string | undefined;
215
+ name?: string | undefined;
216
+ alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>> | undefined;
198
217
  contact_emails_pta?: string[] | undefined;
199
218
  contact_emails_pto?: string[] | undefined;
200
219
  fare_url?: string | undefined;
@@ -202,7 +221,6 @@ export declare const UpdateAgencySchema: z.ZodObject<{
202
221
  price_per_km: number;
203
222
  vkm_per_month: number[];
204
223
  } | undefined;
205
- name?: string | undefined;
206
224
  operation_start_date?: string | null | undefined;
207
225
  phone?: string | undefined;
208
226
  public_email?: string | undefined;
@@ -1,16 +1,17 @@
1
1
  /* * */
2
- import { DocumentSchema } from './_common/document.js';
3
- import { OperationalDateSchema } from './_common/operational-date.js';
2
+ import { DocumentSchema } from '../_common/document.js';
3
+ import { OperationalDateSchema } from '../_common/operational-date.js';
4
+ import { AgencyAlertMapSchema } from './alert-map.js';
5
+ import { AgencyFinancialsSchema } from './financials.js';
4
6
  import { z } from 'zod';
5
7
  /* * */
6
8
  export const AgencySchema = DocumentSchema.extend({
9
+ alerts_map: AgencyAlertMapSchema,
10
+ code: z.string().max(20),
7
11
  contact_emails_pta: z.array(z.string().email()).default([]),
8
12
  contact_emails_pto: z.array(z.string().email()).default([]),
9
13
  fare_url: z.string().url(),
10
- financials: z.object({
11
- price_per_km: z.coerce.number(),
12
- vkm_per_month: z.array(z.coerce.number()).length(12),
13
- }),
14
+ financials: AgencyFinancialsSchema,
14
15
  name: z.string(),
15
16
  operation_start_date: OperationalDateSchema.nullable().default(null),
16
17
  phone: z.string(),
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const AgencyAlertMapSchema: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
3
+ export type AgencyAlertMap = z.infer<typeof AgencyAlertMapSchema>;
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ import { AlertCauseSchema } from '../alerts/cause.js';
3
+ import { AlertEffectSchema } from '../alerts/effect.js';
4
+ import { AlertReferenceTypeSchema } from '../alerts/reference-type.js';
5
+ import { z } from 'zod';
6
+ /* * */
7
+ export const AgencyAlertMapSchema = z.record(AlertCauseSchema, z.record(AlertEffectSchema, z.record(AlertReferenceTypeSchema, z.boolean().default(true))));
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare const AgencyFinancialsSchema: z.ZodObject<{
3
+ price_per_km: z.ZodNumber;
4
+ vkm_per_month: z.ZodArray<z.ZodNumber, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ price_per_km: number;
7
+ vkm_per_month: number[];
8
+ }, {
9
+ price_per_km: number;
10
+ vkm_per_month: number[];
11
+ }>;
12
+ export type AgencyFinancials = z.infer<typeof AgencyFinancialsSchema>;
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const AgencyFinancialsSchema = z.object({
5
+ price_per_km: z.coerce.number(),
6
+ vkm_per_month: z.array(z.coerce.number()).length(12),
7
+ });
@@ -0,0 +1,3 @@
1
+ export * from './agency.js';
2
+ export * from './alert-map.js';
3
+ export * from './financials.js';
@@ -0,0 +1,3 @@
1
+ export * from './agency.js';
2
+ export * from './alert-map.js';
3
+ export * from './financials.js';
@@ -1,5 +1,4 @@
1
1
  export * from './alert.js';
2
- export * from './cause-effect-map.js';
3
2
  export * from './cause.js';
4
3
  export * from './effect.js';
5
4
  export * from './query.js';
@@ -1,5 +1,4 @@
1
1
  export * from './alert.js';
2
- export * from './cause-effect-map.js';
3
2
  export * from './cause.js';
4
3
  export * from './effect.js';
5
4
  export * from './query.js';
@@ -67,7 +67,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
67
67
  is_passenger: boolean;
68
68
  on_board_refund_id: string | null;
69
69
  category: "prepaid" | "subscription" | "on_board_sale" | null;
70
- validation_status: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 8 | 7 | 9 | 13;
70
+ validation_status: 0 | 1 | 2 | 3 | 5 | 4 | 6 | 12 | 11 | 10 | 8 | 7 | 9 | 13;
71
71
  }, {
72
72
  _id: string;
73
73
  created_at: number;
@@ -92,7 +92,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
92
92
  is_passenger: boolean;
93
93
  on_board_refund_id: string | null;
94
94
  category: "prepaid" | "subscription" | "on_board_sale" | null;
95
- validation_status: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 8 | 7 | 9 | 13;
95
+ validation_status: 0 | 1 | 2 | 3 | 5 | 4 | 6 | 12 | 11 | 10 | 8 | 7 | 9 | 13;
96
96
  }>;
97
97
  export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
98
98
  _id: z.ZodOptional<z.ZodString>;
@@ -158,7 +158,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
158
158
  is_passenger?: boolean | undefined;
159
159
  on_board_refund_id?: string | null | undefined;
160
160
  category?: "prepaid" | "subscription" | "on_board_sale" | null | undefined;
161
- validation_status?: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 8 | 7 | 9 | 13 | undefined;
161
+ validation_status?: 0 | 1 | 2 | 3 | 5 | 4 | 6 | 12 | 11 | 10 | 8 | 7 | 9 | 13 | undefined;
162
162
  }, {
163
163
  _id?: string | undefined;
164
164
  created_at?: number | undefined;
@@ -183,7 +183,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
183
183
  is_passenger?: boolean | undefined;
184
184
  on_board_refund_id?: string | null | undefined;
185
185
  category?: "prepaid" | "subscription" | "on_board_sale" | null | undefined;
186
- validation_status?: 0 | 1 | 2 | 12 | 4 | 3 | 5 | 6 | 11 | 10 | 8 | 7 | 9 | 13 | undefined;
186
+ validation_status?: 0 | 1 | 2 | 3 | 5 | 4 | 6 | 12 | 11 | 10 | 8 | 7 | 9 | 13 | undefined;
187
187
  }>;
188
188
  /**
189
189
  * APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
@@ -197,4 +197,4 @@ export type UpdateSimplifiedApexValidationDto = z.infer<typeof UpdateSimplifiedA
197
197
  /**
198
198
  * Validation statuses that are considered valid for the card holder to travel.
199
199
  */
200
- export declare const ALLOWED_VALIDATION_STATUSES: (0 | 4 | 5 | 6)[];
200
+ export declare const ALLOWED_VALIDATION_STATUSES: (0 | 5 | 4 | 6)[];
@@ -104,7 +104,7 @@ export declare const EventSchema: z.ZodObject<{
104
104
  };
105
105
  dates: import("../_common/operational-date.js").OperationalDate[];
106
106
  kind: "event_replacement";
107
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
107
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
108
108
  year_period_ids: string[];
109
109
  lines_mode: "exclude" | "include" | "all";
110
110
  _id?: string | undefined;
@@ -120,7 +120,7 @@ export declare const EventSchema: z.ZodObject<{
120
120
  };
121
121
  dates: string[];
122
122
  kind: "event_replacement";
123
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
123
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
124
124
  year_period_ids: string[];
125
125
  lines_mode: "exclude" | "include" | "all";
126
126
  _id?: string | undefined;
@@ -188,7 +188,7 @@ export declare const EventSchema: z.ZodObject<{
188
188
  };
189
189
  dates: import("../_common/operational-date.js").OperationalDate[];
190
190
  kind: "event_replacement";
191
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
191
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
192
192
  year_period_ids: string[];
193
193
  lines_mode: "exclude" | "include" | "all";
194
194
  _id?: string | undefined;
@@ -241,7 +241,7 @@ export declare const EventSchema: z.ZodObject<{
241
241
  };
242
242
  dates: string[];
243
243
  kind: "event_replacement";
244
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
244
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
245
245
  year_period_ids: string[];
246
246
  lines_mode: "exclude" | "include" | "all";
247
247
  _id?: string | undefined;
@@ -364,7 +364,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
364
364
  };
365
365
  dates: import("../_common/operational-date.js").OperationalDate[];
366
366
  kind: "event_replacement";
367
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
367
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
368
368
  year_period_ids: string[];
369
369
  lines_mode: "exclude" | "include" | "all";
370
370
  _id?: string | undefined;
@@ -380,7 +380,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
380
380
  };
381
381
  dates: string[];
382
382
  kind: "event_replacement";
383
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
383
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
384
384
  year_period_ids: string[];
385
385
  lines_mode: "exclude" | "include" | "all";
386
386
  _id?: string | undefined;
@@ -441,7 +441,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
441
441
  };
442
442
  dates: import("../_common/operational-date.js").OperationalDate[];
443
443
  kind: "event_replacement";
444
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
444
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
445
445
  year_period_ids: string[];
446
446
  lines_mode: "exclude" | "include" | "all";
447
447
  _id?: string | undefined;
@@ -484,7 +484,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
484
484
  };
485
485
  dates: string[];
486
486
  kind: "event_replacement";
487
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
487
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
488
488
  year_period_ids: string[];
489
489
  lines_mode: "exclude" | "include" | "all";
490
490
  _id?: string | undefined;
@@ -596,7 +596,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
596
596
  };
597
597
  dates: import("../_common/operational-date.js").OperationalDate[];
598
598
  kind: "event_replacement";
599
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
599
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
600
600
  year_period_ids: string[];
601
601
  lines_mode: "exclude" | "include" | "all";
602
602
  _id?: string | undefined;
@@ -612,7 +612,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
612
612
  };
613
613
  dates: string[];
614
614
  kind: "event_replacement";
615
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
615
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
616
616
  year_period_ids: string[];
617
617
  lines_mode: "exclude" | "include" | "all";
618
618
  _id?: string | undefined;
@@ -653,7 +653,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
653
653
  };
654
654
  dates: import("../_common/operational-date.js").OperationalDate[];
655
655
  kind: "event_replacement";
656
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
656
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
657
657
  year_period_ids: string[];
658
658
  lines_mode: "exclude" | "include" | "all";
659
659
  _id?: string | undefined;
@@ -694,7 +694,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
694
694
  };
695
695
  dates: string[];
696
696
  kind: "event_replacement";
697
- weekdays: (1 | 2 | 4 | 3 | 5 | 6 | 7)[];
697
+ weekdays: (1 | 2 | 3 | 5 | 4 | 6 | 7)[];
698
698
  year_period_ids: string[];
699
699
  lines_mode: "exclude" | "include" | "all";
700
700
  _id?: string | undefined;
@@ -145,8 +145,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
145
145
  date_start: number & {
146
146
  __brand: "UnixTimestamp";
147
147
  };
148
- search?: string | null | undefined;
149
148
  agency_ids?: string[] | null | undefined;
149
+ search?: string | null | undefined;
150
150
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
151
151
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
152
152
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -160,8 +160,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
160
160
  }, {
161
161
  date_end: number;
162
162
  date_start: number;
163
- search?: string | null | undefined;
164
163
  agency_ids?: string[] | null | undefined;
164
+ search?: string | null | undefined;
165
165
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
166
166
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
167
167
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -193,8 +193,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
193
193
  date_start: number & {
194
194
  __brand: "UnixTimestamp";
195
195
  };
196
- search?: string | null | undefined;
197
196
  agency_ids?: string[] | null | undefined;
197
+ search?: string | null | undefined;
198
198
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
199
199
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
200
200
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -218,8 +218,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
218
218
  properties: {
219
219
  date_end: number;
220
220
  date_start: number;
221
- search?: string | null | undefined;
222
221
  agency_ids?: string[] | null | undefined;
222
+ search?: string | null | undefined;
223
223
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
224
224
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
225
225
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -258,8 +258,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
258
258
  statuses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["waiting", "incomplete", "complete", "error"]>, "many">>>;
259
259
  }, "strip", z.ZodTypeAny, {
260
260
  _id?: number[] | null | undefined;
261
- search?: string | null | undefined;
262
261
  agency_ids?: string[] | null | undefined;
262
+ search?: string | null | undefined;
263
263
  seen_last_at?: import("../index.js").UnixTimestamp | null | undefined;
264
264
  end_time?: import("../index.js").UnixTimestamp | null | undefined;
265
265
  start_time?: import("../index.js").UnixTimestamp | null | undefined;
@@ -270,8 +270,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
270
270
  statuses?: ("waiting" | "complete" | "error" | "incomplete")[] | null | undefined;
271
271
  }, {
272
272
  _id?: number[] | null | undefined;
273
- search?: string | null | undefined;
274
273
  agency_ids?: string[] | null | undefined;
274
+ search?: string | null | undefined;
275
275
  seen_last_at?: number | null | undefined;
276
276
  end_time?: number | null | undefined;
277
277
  start_time?: number | null | undefined;
@@ -296,8 +296,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
296
296
  processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
297
297
  properties: {
298
298
  _id?: number[] | null | undefined;
299
- search?: string | null | undefined;
300
299
  agency_ids?: string[] | null | undefined;
300
+ search?: string | null | undefined;
301
301
  seen_last_at?: import("../index.js").UnixTimestamp | null | undefined;
302
302
  end_time?: import("../index.js").UnixTimestamp | null | undefined;
303
303
  start_time?: import("../index.js").UnixTimestamp | null | undefined;
@@ -318,8 +318,8 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
318
318
  processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
319
319
  properties: {
320
320
  _id?: number[] | null | undefined;
321
- search?: string | null | undefined;
322
321
  agency_ids?: string[] | null | undefined;
322
+ search?: string | null | undefined;
323
323
  seen_last_at?: number | null | undefined;
324
324
  end_time?: number | null | undefined;
325
325
  start_time?: number | null | undefined;
@@ -224,8 +224,8 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
224
224
  date_start: number & {
225
225
  __brand: "UnixTimestamp";
226
226
  };
227
- search?: string | null | undefined;
228
227
  agency_ids?: string[] | null | undefined;
228
+ search?: string | null | undefined;
229
229
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
230
230
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
231
231
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -239,8 +239,8 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
239
239
  }, {
240
240
  date_end: number;
241
241
  date_start: number;
242
- search?: string | null | undefined;
243
242
  agency_ids?: string[] | null | undefined;
243
+ search?: string | null | undefined;
244
244
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
245
245
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
246
246
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -262,8 +262,8 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
262
262
  date_start: number & {
263
263
  __brand: "UnixTimestamp";
264
264
  };
265
- search?: string | null | undefined;
266
265
  agency_ids?: string[] | null | undefined;
266
+ search?: string | null | undefined;
267
267
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
268
268
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
269
269
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -280,8 +280,8 @@ export declare const RideExportPropertiesSchema: z.ZodObject<{
280
280
  properties: {
281
281
  date_end: number;
282
282
  date_start: number;
283
- search?: string | null | undefined;
284
283
  agency_ids?: string[] | null | undefined;
284
+ search?: string | null | undefined;
285
285
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
286
286
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
287
287
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -326,8 +326,8 @@ export declare const RideExportSchema: z.ZodObject<{
326
326
  date_start: number & {
327
327
  __brand: "UnixTimestamp";
328
328
  };
329
- search?: string | null | undefined;
330
329
  agency_ids?: string[] | null | undefined;
330
+ search?: string | null | undefined;
331
331
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
332
332
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
333
333
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -341,8 +341,8 @@ export declare const RideExportSchema: z.ZodObject<{
341
341
  }, {
342
342
  date_end: number;
343
343
  date_start: number;
344
- search?: string | null | undefined;
345
344
  agency_ids?: string[] | null | undefined;
345
+ search?: string | null | undefined;
346
346
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
347
347
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
348
348
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -374,8 +374,8 @@ export declare const RideExportSchema: z.ZodObject<{
374
374
  date_start: number & {
375
375
  __brand: "UnixTimestamp";
376
376
  };
377
- search?: string | null | undefined;
378
377
  agency_ids?: string[] | null | undefined;
378
+ search?: string | null | undefined;
379
379
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
380
380
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
381
381
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
@@ -399,8 +399,8 @@ export declare const RideExportSchema: z.ZodObject<{
399
399
  properties: {
400
400
  date_end: number;
401
401
  date_start: number;
402
- search?: string | null | undefined;
403
402
  agency_ids?: string[] | null | undefined;
403
+ search?: string | null | undefined;
404
404
  acceptance_status?: ("none" | "rejected" | "justification_required" | "under_review" | "accepted")[] | null | undefined;
405
405
  analysis_ended_at_last_stop?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;
406
406
  analysis_expected_apex_validation_interval?: ("error" | "none" | "pass" | "fail" | "skip")[] | null | undefined;