@tmlmobilidade/types 20260618.2106.1 → 20260620.940.32

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.
@@ -5,10 +5,10 @@ export declare const FlatSamsAnalysisExportAnalysisSchema: z.ZodObject<{
5
5
  end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
6
6
  first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
7
7
  first_transaction_id: z.ZodNullable<z.ZodString>;
8
- first_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
8
+ first_transaction_type: z.ZodNullable<z.ZodString>;
9
9
  last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
10
10
  last_transaction_id: z.ZodNullable<z.ZodString>;
11
- last_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
11
+ last_transaction_type: z.ZodNullable<z.ZodString>;
12
12
  start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
13
13
  transactions_expected: z.ZodNumber;
14
14
  transactions_found: z.ZodNumber;
@@ -24,10 +24,10 @@ export declare const FlatSamsAnalysisExportAnalysisSchema: z.ZodObject<{
24
24
  device_id: string | null;
25
25
  first_transaction_ase_counter_value: number | null;
26
26
  first_transaction_id: string | null;
27
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
27
+ first_transaction_type: string | null;
28
28
  last_transaction_ase_counter_value: number | null;
29
29
  last_transaction_id: string | null;
30
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
30
+ last_transaction_type: string | null;
31
31
  transactions_expected: number;
32
32
  transactions_found: number;
33
33
  transactions_missing: number;
@@ -41,10 +41,10 @@ export declare const FlatSamsAnalysisExportAnalysisSchema: z.ZodObject<{
41
41
  device_id: string | null;
42
42
  first_transaction_ase_counter_value: number | null;
43
43
  first_transaction_id: string | null;
44
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
44
+ first_transaction_type: string | null;
45
45
  last_transaction_ase_counter_value: number | null;
46
46
  last_transaction_id: string | null;
47
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
47
+ last_transaction_type: string | null;
48
48
  transactions_expected: number;
49
49
  transactions_found: number;
50
50
  transactions_missing: number;
package/dist/index.d.ts CHANGED
@@ -18,7 +18,6 @@ export * from './notification.js';
18
18
  export * from './offer/index.js';
19
19
  export * from './operation/index.js';
20
20
  export * from './organization.js';
21
- export * from './pcgi/index.js';
22
21
  export * from './permissions/index.js';
23
22
  export * from './plans/index.js';
24
23
  export * from './proposed-change.js';
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ export * from './notification.js';
18
18
  export * from './offer/index.js';
19
19
  export * from './operation/index.js';
20
20
  export * from './organization.js';
21
- export * from './pcgi/index.js';
22
21
  export * from './permissions/index.js';
23
22
  export * from './plans/index.js';
24
23
  export * from './proposed-change.js';
@@ -28,10 +28,10 @@ export declare const DemandByCategoryByAgencyByDaySchema: z.ZodObject<{
28
28
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  agency_id: string;
31
- category: "on_board_sale" | "prepaid" | "subscription";
31
+ category: "prepaid" | "subscription" | "on_board_sale";
32
32
  }, {
33
33
  agency_id: string;
34
- category: "on_board_sale" | "prepaid" | "subscription";
34
+ category: "prepaid" | "subscription" | "on_board_sale";
35
35
  }>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  data: Record<string, {
@@ -43,7 +43,7 @@ export declare const DemandByCategoryByAgencyByDaySchema: z.ZodObject<{
43
43
  }>;
44
44
  properties: {
45
45
  agency_id: string;
46
- category: "on_board_sale" | "prepaid" | "subscription";
46
+ category: "prepaid" | "subscription" | "on_board_sale";
47
47
  };
48
48
  generated_at: Date;
49
49
  metric: "demand_by_category_by_agency_by_day";
@@ -58,7 +58,7 @@ export declare const DemandByCategoryByAgencyByDaySchema: z.ZodObject<{
58
58
  }>;
59
59
  properties: {
60
60
  agency_id: string;
61
- category: "on_board_sale" | "prepaid" | "subscription";
61
+ category: "prepaid" | "subscription" | "on_board_sale";
62
62
  };
63
63
  generated_at: Date;
64
64
  metric: "demand_by_category_by_agency_by_day";
@@ -81,10 +81,10 @@ export declare const DemandByCategoryByAgencyByMonthSchema: z.ZodObject<{
81
81
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  agency_id: string;
84
- category: "on_board_sale" | "prepaid" | "subscription";
84
+ category: "prepaid" | "subscription" | "on_board_sale";
85
85
  }, {
86
86
  agency_id: string;
87
- category: "on_board_sale" | "prepaid" | "subscription";
87
+ category: "prepaid" | "subscription" | "on_board_sale";
88
88
  }>;
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  data: Record<string, {
@@ -92,7 +92,7 @@ export declare const DemandByCategoryByAgencyByMonthSchema: z.ZodObject<{
92
92
  }>;
93
93
  properties: {
94
94
  agency_id: string;
95
- category: "on_board_sale" | "prepaid" | "subscription";
95
+ category: "prepaid" | "subscription" | "on_board_sale";
96
96
  };
97
97
  generated_at: Date;
98
98
  metric: "demand_by_category_by_agency_by_month";
@@ -103,7 +103,7 @@ export declare const DemandByCategoryByAgencyByMonthSchema: z.ZodObject<{
103
103
  }>;
104
104
  properties: {
105
105
  agency_id: string;
106
- category: "on_board_sale" | "prepaid" | "subscription";
106
+ category: "prepaid" | "subscription" | "on_board_sale";
107
107
  };
108
108
  generated_at: Date;
109
109
  metric: "demand_by_category_by_agency_by_month";
@@ -126,10 +126,10 @@ export declare const DemandByCategoryByAgencyByYearSchema: z.ZodObject<{
126
126
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
127
127
  }, "strip", z.ZodTypeAny, {
128
128
  agency_id: string;
129
- category: "on_board_sale" | "prepaid" | "subscription";
129
+ category: "prepaid" | "subscription" | "on_board_sale";
130
130
  }, {
131
131
  agency_id: string;
132
- category: "on_board_sale" | "prepaid" | "subscription";
132
+ category: "prepaid" | "subscription" | "on_board_sale";
133
133
  }>;
134
134
  }, "strip", z.ZodTypeAny, {
135
135
  data: Record<string, {
@@ -137,7 +137,7 @@ export declare const DemandByCategoryByAgencyByYearSchema: z.ZodObject<{
137
137
  }>;
138
138
  properties: {
139
139
  agency_id: string;
140
- category: "on_board_sale" | "prepaid" | "subscription";
140
+ category: "prepaid" | "subscription" | "on_board_sale";
141
141
  };
142
142
  generated_at: Date;
143
143
  metric: "demand_by_category_by_agency_by_year";
@@ -148,7 +148,7 @@ export declare const DemandByCategoryByAgencyByYearSchema: z.ZodObject<{
148
148
  }>;
149
149
  properties: {
150
150
  agency_id: string;
151
- category: "on_board_sale" | "prepaid" | "subscription";
151
+ category: "prepaid" | "subscription" | "on_board_sale";
152
152
  };
153
153
  generated_at: Date;
154
154
  metric: "demand_by_category_by_agency_by_year";
@@ -183,10 +183,10 @@ export declare const DemandByCategoryByLineByDaySchema: z.ZodObject<{
183
183
  line_id: z.ZodString;
184
184
  }, "strip", z.ZodTypeAny, {
185
185
  line_id: string;
186
- category: "on_board_sale" | "prepaid" | "subscription";
186
+ category: "prepaid" | "subscription" | "on_board_sale";
187
187
  }, {
188
188
  line_id: string;
189
- category: "on_board_sale" | "prepaid" | "subscription";
189
+ category: "prepaid" | "subscription" | "on_board_sale";
190
190
  }>;
191
191
  }, "strip", z.ZodTypeAny, {
192
192
  data: Record<string, {
@@ -198,7 +198,7 @@ export declare const DemandByCategoryByLineByDaySchema: z.ZodObject<{
198
198
  }>;
199
199
  properties: {
200
200
  line_id: string;
201
- category: "on_board_sale" | "prepaid" | "subscription";
201
+ category: "prepaid" | "subscription" | "on_board_sale";
202
202
  };
203
203
  generated_at: Date;
204
204
  metric: "demand_by_category_by_line_by_day";
@@ -213,7 +213,7 @@ export declare const DemandByCategoryByLineByDaySchema: z.ZodObject<{
213
213
  }>;
214
214
  properties: {
215
215
  line_id: string;
216
- category: "on_board_sale" | "prepaid" | "subscription";
216
+ category: "prepaid" | "subscription" | "on_board_sale";
217
217
  };
218
218
  generated_at: Date;
219
219
  metric: "demand_by_category_by_line_by_day";
@@ -236,10 +236,10 @@ export declare const DemandByCategoryByLineByMonthSchema: z.ZodObject<{
236
236
  line_id: z.ZodString;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  line_id: string;
239
- category: "on_board_sale" | "prepaid" | "subscription";
239
+ category: "prepaid" | "subscription" | "on_board_sale";
240
240
  }, {
241
241
  line_id: string;
242
- category: "on_board_sale" | "prepaid" | "subscription";
242
+ category: "prepaid" | "subscription" | "on_board_sale";
243
243
  }>;
244
244
  }, "strip", z.ZodTypeAny, {
245
245
  data: Record<string, {
@@ -247,7 +247,7 @@ export declare const DemandByCategoryByLineByMonthSchema: z.ZodObject<{
247
247
  }>;
248
248
  properties: {
249
249
  line_id: string;
250
- category: "on_board_sale" | "prepaid" | "subscription";
250
+ category: "prepaid" | "subscription" | "on_board_sale";
251
251
  };
252
252
  generated_at: Date;
253
253
  metric: "demand_by_category_by_line_by_month";
@@ -258,7 +258,7 @@ export declare const DemandByCategoryByLineByMonthSchema: z.ZodObject<{
258
258
  }>;
259
259
  properties: {
260
260
  line_id: string;
261
- category: "on_board_sale" | "prepaid" | "subscription";
261
+ category: "prepaid" | "subscription" | "on_board_sale";
262
262
  };
263
263
  generated_at: Date;
264
264
  metric: "demand_by_category_by_line_by_month";
@@ -281,10 +281,10 @@ export declare const DemandByCategoryByLineByYearSchema: z.ZodObject<{
281
281
  line_id: z.ZodString;
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  line_id: string;
284
- category: "on_board_sale" | "prepaid" | "subscription";
284
+ category: "prepaid" | "subscription" | "on_board_sale";
285
285
  }, {
286
286
  line_id: string;
287
- category: "on_board_sale" | "prepaid" | "subscription";
287
+ category: "prepaid" | "subscription" | "on_board_sale";
288
288
  }>;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  data: Record<string, {
@@ -292,7 +292,7 @@ export declare const DemandByCategoryByLineByYearSchema: z.ZodObject<{
292
292
  }>;
293
293
  properties: {
294
294
  line_id: string;
295
- category: "on_board_sale" | "prepaid" | "subscription";
295
+ category: "prepaid" | "subscription" | "on_board_sale";
296
296
  };
297
297
  generated_at: Date;
298
298
  metric: "demand_by_category_by_line_by_year";
@@ -303,7 +303,7 @@ export declare const DemandByCategoryByLineByYearSchema: z.ZodObject<{
303
303
  }>;
304
304
  properties: {
305
305
  line_id: string;
306
- category: "on_board_sale" | "prepaid" | "subscription";
306
+ category: "prepaid" | "subscription" | "on_board_sale";
307
307
  };
308
308
  generated_at: Date;
309
309
  metric: "demand_by_category_by_line_by_year";
@@ -338,10 +338,10 @@ export declare const DemandByCategoryByPatternByDaySchema: z.ZodObject<{
338
338
  pattern_id: z.ZodString;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  pattern_id: string;
341
- category: "on_board_sale" | "prepaid" | "subscription";
341
+ category: "prepaid" | "subscription" | "on_board_sale";
342
342
  }, {
343
343
  pattern_id: string;
344
- category: "on_board_sale" | "prepaid" | "subscription";
344
+ category: "prepaid" | "subscription" | "on_board_sale";
345
345
  }>;
346
346
  }, "strip", z.ZodTypeAny, {
347
347
  data: Record<string, {
@@ -353,7 +353,7 @@ export declare const DemandByCategoryByPatternByDaySchema: z.ZodObject<{
353
353
  }>;
354
354
  properties: {
355
355
  pattern_id: string;
356
- category: "on_board_sale" | "prepaid" | "subscription";
356
+ category: "prepaid" | "subscription" | "on_board_sale";
357
357
  };
358
358
  generated_at: Date;
359
359
  metric: "demand_by_category_by_pattern_by_day";
@@ -368,7 +368,7 @@ export declare const DemandByCategoryByPatternByDaySchema: z.ZodObject<{
368
368
  }>;
369
369
  properties: {
370
370
  pattern_id: string;
371
- category: "on_board_sale" | "prepaid" | "subscription";
371
+ category: "prepaid" | "subscription" | "on_board_sale";
372
372
  };
373
373
  generated_at: Date;
374
374
  metric: "demand_by_category_by_pattern_by_day";
@@ -391,10 +391,10 @@ export declare const DemandByCategoryByPatternByMonthSchema: z.ZodObject<{
391
391
  pattern_id: z.ZodString;
392
392
  }, "strip", z.ZodTypeAny, {
393
393
  pattern_id: string;
394
- category: "on_board_sale" | "prepaid" | "subscription";
394
+ category: "prepaid" | "subscription" | "on_board_sale";
395
395
  }, {
396
396
  pattern_id: string;
397
- category: "on_board_sale" | "prepaid" | "subscription";
397
+ category: "prepaid" | "subscription" | "on_board_sale";
398
398
  }>;
399
399
  }, "strip", z.ZodTypeAny, {
400
400
  data: Record<string, {
@@ -402,7 +402,7 @@ export declare const DemandByCategoryByPatternByMonthSchema: z.ZodObject<{
402
402
  }>;
403
403
  properties: {
404
404
  pattern_id: string;
405
- category: "on_board_sale" | "prepaid" | "subscription";
405
+ category: "prepaid" | "subscription" | "on_board_sale";
406
406
  };
407
407
  generated_at: Date;
408
408
  metric: "demand_by_category_by_pattern_by_month";
@@ -413,7 +413,7 @@ export declare const DemandByCategoryByPatternByMonthSchema: z.ZodObject<{
413
413
  }>;
414
414
  properties: {
415
415
  pattern_id: string;
416
- category: "on_board_sale" | "prepaid" | "subscription";
416
+ category: "prepaid" | "subscription" | "on_board_sale";
417
417
  };
418
418
  generated_at: Date;
419
419
  metric: "demand_by_category_by_pattern_by_month";
@@ -436,10 +436,10 @@ export declare const DemandByCategoryByPatternByYearSchema: z.ZodObject<{
436
436
  pattern_id: z.ZodString;
437
437
  }, "strip", z.ZodTypeAny, {
438
438
  pattern_id: string;
439
- category: "on_board_sale" | "prepaid" | "subscription";
439
+ category: "prepaid" | "subscription" | "on_board_sale";
440
440
  }, {
441
441
  pattern_id: string;
442
- category: "on_board_sale" | "prepaid" | "subscription";
442
+ category: "prepaid" | "subscription" | "on_board_sale";
443
443
  }>;
444
444
  }, "strip", z.ZodTypeAny, {
445
445
  data: Record<string, {
@@ -447,7 +447,7 @@ export declare const DemandByCategoryByPatternByYearSchema: z.ZodObject<{
447
447
  }>;
448
448
  properties: {
449
449
  pattern_id: string;
450
- category: "on_board_sale" | "prepaid" | "subscription";
450
+ category: "prepaid" | "subscription" | "on_board_sale";
451
451
  };
452
452
  generated_at: Date;
453
453
  metric: "demand_by_category_by_pattern_by_year";
@@ -458,7 +458,7 @@ export declare const DemandByCategoryByPatternByYearSchema: z.ZodObject<{
458
458
  }>;
459
459
  properties: {
460
460
  pattern_id: string;
461
- category: "on_board_sale" | "prepaid" | "subscription";
461
+ category: "prepaid" | "subscription" | "on_board_sale";
462
462
  };
463
463
  generated_at: Date;
464
464
  metric: "demand_by_category_by_pattern_by_year";
@@ -1145,10 +1145,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1145
1145
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
1146
1146
  }, "strip", z.ZodTypeAny, {
1147
1147
  agency_id: string;
1148
- category: "on_board_sale" | "prepaid" | "subscription";
1148
+ category: "prepaid" | "subscription" | "on_board_sale";
1149
1149
  }, {
1150
1150
  agency_id: string;
1151
- category: "on_board_sale" | "prepaid" | "subscription";
1151
+ category: "prepaid" | "subscription" | "on_board_sale";
1152
1152
  }>;
1153
1153
  }, "strip", z.ZodTypeAny, {
1154
1154
  data: Record<string, {
@@ -1160,7 +1160,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1160
1160
  }>;
1161
1161
  properties: {
1162
1162
  agency_id: string;
1163
- category: "on_board_sale" | "prepaid" | "subscription";
1163
+ category: "prepaid" | "subscription" | "on_board_sale";
1164
1164
  };
1165
1165
  generated_at: Date;
1166
1166
  metric: "demand_by_category_by_agency_by_day";
@@ -1175,7 +1175,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1175
1175
  }>;
1176
1176
  properties: {
1177
1177
  agency_id: string;
1178
- category: "on_board_sale" | "prepaid" | "subscription";
1178
+ category: "prepaid" | "subscription" | "on_board_sale";
1179
1179
  };
1180
1180
  generated_at: Date;
1181
1181
  metric: "demand_by_category_by_agency_by_day";
@@ -1197,10 +1197,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1197
1197
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
1198
1198
  }, "strip", z.ZodTypeAny, {
1199
1199
  agency_id: string;
1200
- category: "on_board_sale" | "prepaid" | "subscription";
1200
+ category: "prepaid" | "subscription" | "on_board_sale";
1201
1201
  }, {
1202
1202
  agency_id: string;
1203
- category: "on_board_sale" | "prepaid" | "subscription";
1203
+ category: "prepaid" | "subscription" | "on_board_sale";
1204
1204
  }>;
1205
1205
  }, "strip", z.ZodTypeAny, {
1206
1206
  data: Record<string, {
@@ -1208,7 +1208,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1208
1208
  }>;
1209
1209
  properties: {
1210
1210
  agency_id: string;
1211
- category: "on_board_sale" | "prepaid" | "subscription";
1211
+ category: "prepaid" | "subscription" | "on_board_sale";
1212
1212
  };
1213
1213
  generated_at: Date;
1214
1214
  metric: "demand_by_category_by_agency_by_month";
@@ -1219,7 +1219,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1219
1219
  }>;
1220
1220
  properties: {
1221
1221
  agency_id: string;
1222
- category: "on_board_sale" | "prepaid" | "subscription";
1222
+ category: "prepaid" | "subscription" | "on_board_sale";
1223
1223
  };
1224
1224
  generated_at: Date;
1225
1225
  metric: "demand_by_category_by_agency_by_month";
@@ -1241,10 +1241,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1241
1241
  category: z.ZodEnum<["prepaid", "subscription", "on_board_sale"]>;
1242
1242
  }, "strip", z.ZodTypeAny, {
1243
1243
  agency_id: string;
1244
- category: "on_board_sale" | "prepaid" | "subscription";
1244
+ category: "prepaid" | "subscription" | "on_board_sale";
1245
1245
  }, {
1246
1246
  agency_id: string;
1247
- category: "on_board_sale" | "prepaid" | "subscription";
1247
+ category: "prepaid" | "subscription" | "on_board_sale";
1248
1248
  }>;
1249
1249
  }, "strip", z.ZodTypeAny, {
1250
1250
  data: Record<string, {
@@ -1252,7 +1252,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1252
1252
  }>;
1253
1253
  properties: {
1254
1254
  agency_id: string;
1255
- category: "on_board_sale" | "prepaid" | "subscription";
1255
+ category: "prepaid" | "subscription" | "on_board_sale";
1256
1256
  };
1257
1257
  generated_at: Date;
1258
1258
  metric: "demand_by_category_by_agency_by_year";
@@ -1263,7 +1263,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1263
1263
  }>;
1264
1264
  properties: {
1265
1265
  agency_id: string;
1266
- category: "on_board_sale" | "prepaid" | "subscription";
1266
+ category: "prepaid" | "subscription" | "on_board_sale";
1267
1267
  };
1268
1268
  generated_at: Date;
1269
1269
  metric: "demand_by_category_by_agency_by_year";
@@ -1297,10 +1297,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1297
1297
  line_id: z.ZodString;
1298
1298
  }, "strip", z.ZodTypeAny, {
1299
1299
  line_id: string;
1300
- category: "on_board_sale" | "prepaid" | "subscription";
1300
+ category: "prepaid" | "subscription" | "on_board_sale";
1301
1301
  }, {
1302
1302
  line_id: string;
1303
- category: "on_board_sale" | "prepaid" | "subscription";
1303
+ category: "prepaid" | "subscription" | "on_board_sale";
1304
1304
  }>;
1305
1305
  }, "strip", z.ZodTypeAny, {
1306
1306
  data: Record<string, {
@@ -1312,7 +1312,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1312
1312
  }>;
1313
1313
  properties: {
1314
1314
  line_id: string;
1315
- category: "on_board_sale" | "prepaid" | "subscription";
1315
+ category: "prepaid" | "subscription" | "on_board_sale";
1316
1316
  };
1317
1317
  generated_at: Date;
1318
1318
  metric: "demand_by_category_by_line_by_day";
@@ -1327,7 +1327,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1327
1327
  }>;
1328
1328
  properties: {
1329
1329
  line_id: string;
1330
- category: "on_board_sale" | "prepaid" | "subscription";
1330
+ category: "prepaid" | "subscription" | "on_board_sale";
1331
1331
  };
1332
1332
  generated_at: Date;
1333
1333
  metric: "demand_by_category_by_line_by_day";
@@ -1349,10 +1349,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1349
1349
  line_id: z.ZodString;
1350
1350
  }, "strip", z.ZodTypeAny, {
1351
1351
  line_id: string;
1352
- category: "on_board_sale" | "prepaid" | "subscription";
1352
+ category: "prepaid" | "subscription" | "on_board_sale";
1353
1353
  }, {
1354
1354
  line_id: string;
1355
- category: "on_board_sale" | "prepaid" | "subscription";
1355
+ category: "prepaid" | "subscription" | "on_board_sale";
1356
1356
  }>;
1357
1357
  }, "strip", z.ZodTypeAny, {
1358
1358
  data: Record<string, {
@@ -1360,7 +1360,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1360
1360
  }>;
1361
1361
  properties: {
1362
1362
  line_id: string;
1363
- category: "on_board_sale" | "prepaid" | "subscription";
1363
+ category: "prepaid" | "subscription" | "on_board_sale";
1364
1364
  };
1365
1365
  generated_at: Date;
1366
1366
  metric: "demand_by_category_by_line_by_month";
@@ -1371,7 +1371,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1371
1371
  }>;
1372
1372
  properties: {
1373
1373
  line_id: string;
1374
- category: "on_board_sale" | "prepaid" | "subscription";
1374
+ category: "prepaid" | "subscription" | "on_board_sale";
1375
1375
  };
1376
1376
  generated_at: Date;
1377
1377
  metric: "demand_by_category_by_line_by_month";
@@ -1393,10 +1393,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1393
1393
  line_id: z.ZodString;
1394
1394
  }, "strip", z.ZodTypeAny, {
1395
1395
  line_id: string;
1396
- category: "on_board_sale" | "prepaid" | "subscription";
1396
+ category: "prepaid" | "subscription" | "on_board_sale";
1397
1397
  }, {
1398
1398
  line_id: string;
1399
- category: "on_board_sale" | "prepaid" | "subscription";
1399
+ category: "prepaid" | "subscription" | "on_board_sale";
1400
1400
  }>;
1401
1401
  }, "strip", z.ZodTypeAny, {
1402
1402
  data: Record<string, {
@@ -1404,7 +1404,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1404
1404
  }>;
1405
1405
  properties: {
1406
1406
  line_id: string;
1407
- category: "on_board_sale" | "prepaid" | "subscription";
1407
+ category: "prepaid" | "subscription" | "on_board_sale";
1408
1408
  };
1409
1409
  generated_at: Date;
1410
1410
  metric: "demand_by_category_by_line_by_year";
@@ -1415,7 +1415,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1415
1415
  }>;
1416
1416
  properties: {
1417
1417
  line_id: string;
1418
- category: "on_board_sale" | "prepaid" | "subscription";
1418
+ category: "prepaid" | "subscription" | "on_board_sale";
1419
1419
  };
1420
1420
  generated_at: Date;
1421
1421
  metric: "demand_by_category_by_line_by_year";
@@ -1449,10 +1449,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1449
1449
  pattern_id: z.ZodString;
1450
1450
  }, "strip", z.ZodTypeAny, {
1451
1451
  pattern_id: string;
1452
- category: "on_board_sale" | "prepaid" | "subscription";
1452
+ category: "prepaid" | "subscription" | "on_board_sale";
1453
1453
  }, {
1454
1454
  pattern_id: string;
1455
- category: "on_board_sale" | "prepaid" | "subscription";
1455
+ category: "prepaid" | "subscription" | "on_board_sale";
1456
1456
  }>;
1457
1457
  }, "strip", z.ZodTypeAny, {
1458
1458
  data: Record<string, {
@@ -1464,7 +1464,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1464
1464
  }>;
1465
1465
  properties: {
1466
1466
  pattern_id: string;
1467
- category: "on_board_sale" | "prepaid" | "subscription";
1467
+ category: "prepaid" | "subscription" | "on_board_sale";
1468
1468
  };
1469
1469
  generated_at: Date;
1470
1470
  metric: "demand_by_category_by_pattern_by_day";
@@ -1479,7 +1479,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1479
1479
  }>;
1480
1480
  properties: {
1481
1481
  pattern_id: string;
1482
- category: "on_board_sale" | "prepaid" | "subscription";
1482
+ category: "prepaid" | "subscription" | "on_board_sale";
1483
1483
  };
1484
1484
  generated_at: Date;
1485
1485
  metric: "demand_by_category_by_pattern_by_day";
@@ -1501,10 +1501,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1501
1501
  pattern_id: z.ZodString;
1502
1502
  }, "strip", z.ZodTypeAny, {
1503
1503
  pattern_id: string;
1504
- category: "on_board_sale" | "prepaid" | "subscription";
1504
+ category: "prepaid" | "subscription" | "on_board_sale";
1505
1505
  }, {
1506
1506
  pattern_id: string;
1507
- category: "on_board_sale" | "prepaid" | "subscription";
1507
+ category: "prepaid" | "subscription" | "on_board_sale";
1508
1508
  }>;
1509
1509
  }, "strip", z.ZodTypeAny, {
1510
1510
  data: Record<string, {
@@ -1512,7 +1512,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1512
1512
  }>;
1513
1513
  properties: {
1514
1514
  pattern_id: string;
1515
- category: "on_board_sale" | "prepaid" | "subscription";
1515
+ category: "prepaid" | "subscription" | "on_board_sale";
1516
1516
  };
1517
1517
  generated_at: Date;
1518
1518
  metric: "demand_by_category_by_pattern_by_month";
@@ -1523,7 +1523,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1523
1523
  }>;
1524
1524
  properties: {
1525
1525
  pattern_id: string;
1526
- category: "on_board_sale" | "prepaid" | "subscription";
1526
+ category: "prepaid" | "subscription" | "on_board_sale";
1527
1527
  };
1528
1528
  generated_at: Date;
1529
1529
  metric: "demand_by_category_by_pattern_by_month";
@@ -1545,10 +1545,10 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1545
1545
  pattern_id: z.ZodString;
1546
1546
  }, "strip", z.ZodTypeAny, {
1547
1547
  pattern_id: string;
1548
- category: "on_board_sale" | "prepaid" | "subscription";
1548
+ category: "prepaid" | "subscription" | "on_board_sale";
1549
1549
  }, {
1550
1550
  pattern_id: string;
1551
- category: "on_board_sale" | "prepaid" | "subscription";
1551
+ category: "prepaid" | "subscription" | "on_board_sale";
1552
1552
  }>;
1553
1553
  }, "strip", z.ZodTypeAny, {
1554
1554
  data: Record<string, {
@@ -1556,7 +1556,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1556
1556
  }>;
1557
1557
  properties: {
1558
1558
  pattern_id: string;
1559
- category: "on_board_sale" | "prepaid" | "subscription";
1559
+ category: "prepaid" | "subscription" | "on_board_sale";
1560
1560
  };
1561
1561
  generated_at: Date;
1562
1562
  metric: "demand_by_category_by_pattern_by_year";
@@ -1567,7 +1567,7 @@ export declare const MetricSchema: z.ZodDiscriminatedUnion<"metric", [z.ZodObjec
1567
1567
  }>;
1568
1568
  properties: {
1569
1569
  pattern_id: string;
1570
- category: "on_board_sale" | "prepaid" | "subscription";
1570
+ category: "prepaid" | "subscription" | "on_board_sale";
1571
1571
  };
1572
1572
  generated_at: Date;
1573
1573
  metric: "demand_by_category_by_pattern_by_year";
@@ -5,10 +5,10 @@ export declare const SamAnalysisSchema: z.ZodObject<{
5
5
  end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
6
6
  first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
7
7
  first_transaction_id: z.ZodNullable<z.ZodString>;
8
- first_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
8
+ first_transaction_type: z.ZodNullable<z.ZodString>;
9
9
  last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
10
10
  last_transaction_id: z.ZodNullable<z.ZodString>;
11
- last_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
11
+ last_transaction_type: z.ZodNullable<z.ZodString>;
12
12
  start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
13
13
  transactions_expected: z.ZodNumber;
14
14
  transactions_found: z.ZodNumber;
@@ -21,10 +21,10 @@ export declare const SamAnalysisSchema: z.ZodObject<{
21
21
  device_id: string | null;
22
22
  first_transaction_ase_counter_value: number | null;
23
23
  first_transaction_id: string | null;
24
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
24
+ first_transaction_type: string | null;
25
25
  last_transaction_ase_counter_value: number | null;
26
26
  last_transaction_id: string | null;
27
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
27
+ last_transaction_type: string | null;
28
28
  transactions_expected: number;
29
29
  transactions_found: number;
30
30
  transactions_missing: number;
@@ -36,10 +36,10 @@ export declare const SamAnalysisSchema: z.ZodObject<{
36
36
  device_id: string | null;
37
37
  first_transaction_ase_counter_value: number | null;
38
38
  first_transaction_id: string | null;
39
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
39
+ first_transaction_type: string | null;
40
40
  last_transaction_ase_counter_value: number | null;
41
41
  last_transaction_id: string | null;
42
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
42
+ last_transaction_type: string | null;
43
43
  transactions_expected: number;
44
44
  transactions_found: number;
45
45
  transactions_missing: number;
@@ -1,5 +1,4 @@
1
1
  /* * */
2
- import { SimplifiedApexTypeSchema } from '@tmlmobilidade/go-types-apex';
3
2
  import { UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
4
3
  import { z } from 'zod';
5
4
  /* * */
@@ -9,10 +8,10 @@ export const SamAnalysisSchema = z.object({
9
8
  end_time: UnixTimestampSchema.nullable(),
10
9
  first_transaction_ase_counter_value: z.number().nullable(),
11
10
  first_transaction_id: z.string().nullable(),
12
- first_transaction_type: SimplifiedApexTypeSchema.nullable(),
11
+ first_transaction_type: z.string().nullable(), // SimplifiedApexTypeSchema
13
12
  last_transaction_ase_counter_value: z.number().nullable(),
14
13
  last_transaction_id: z.string().nullable(),
15
- last_transaction_type: SimplifiedApexTypeSchema.nullable(),
14
+ last_transaction_type: z.string().nullable(), // SimplifiedApexTypeSchema
16
15
  start_time: UnixTimestampSchema.nullable(),
17
16
  transactions_expected: z.number(),
18
17
  transactions_found: z.number(),
@@ -11,10 +11,10 @@ export declare const SamSchema: z.ZodObject<{
11
11
  end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
12
12
  first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
13
13
  first_transaction_id: z.ZodNullable<z.ZodString>;
14
- first_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
14
+ first_transaction_type: z.ZodNullable<z.ZodString>;
15
15
  last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
16
16
  last_transaction_id: z.ZodNullable<z.ZodString>;
17
- last_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
17
+ last_transaction_type: z.ZodNullable<z.ZodString>;
18
18
  start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
19
19
  transactions_expected: z.ZodNumber;
20
20
  transactions_found: z.ZodNumber;
@@ -27,10 +27,10 @@ export declare const SamSchema: z.ZodObject<{
27
27
  device_id: string | null;
28
28
  first_transaction_ase_counter_value: number | null;
29
29
  first_transaction_id: string | null;
30
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
30
+ first_transaction_type: string | null;
31
31
  last_transaction_ase_counter_value: number | null;
32
32
  last_transaction_id: string | null;
33
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
33
+ last_transaction_type: string | null;
34
34
  transactions_expected: number;
35
35
  transactions_found: number;
36
36
  transactions_missing: number;
@@ -42,10 +42,10 @@ export declare const SamSchema: z.ZodObject<{
42
42
  device_id: string | null;
43
43
  first_transaction_ase_counter_value: number | null;
44
44
  first_transaction_id: string | null;
45
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
45
+ first_transaction_type: string | null;
46
46
  last_transaction_ase_counter_value: number | null;
47
47
  last_transaction_id: string | null;
48
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
48
+ last_transaction_type: string | null;
49
49
  transactions_expected: number;
50
50
  transactions_found: number;
51
51
  transactions_missing: number;
@@ -125,10 +125,10 @@ export declare const SamSchema: z.ZodObject<{
125
125
  device_id: string | null;
126
126
  first_transaction_ase_counter_value: number | null;
127
127
  first_transaction_id: string | null;
128
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
128
+ first_transaction_type: string | null;
129
129
  last_transaction_ase_counter_value: number | null;
130
130
  last_transaction_id: string | null;
131
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
131
+ last_transaction_type: string | null;
132
132
  transactions_expected: number;
133
133
  transactions_found: number;
134
134
  transactions_missing: number;
@@ -166,10 +166,10 @@ export declare const SamSchema: z.ZodObject<{
166
166
  device_id: string | null;
167
167
  first_transaction_ase_counter_value: number | null;
168
168
  first_transaction_id: string | null;
169
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
169
+ first_transaction_type: string | null;
170
170
  last_transaction_ase_counter_value: number | null;
171
171
  last_transaction_id: string | null;
172
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
172
+ last_transaction_type: string | null;
173
173
  transactions_expected: number;
174
174
  transactions_found: number;
175
175
  transactions_missing: number;
@@ -201,10 +201,10 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
201
201
  end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
202
202
  first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
203
203
  first_transaction_id: z.ZodNullable<z.ZodString>;
204
- first_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
204
+ first_transaction_type: z.ZodNullable<z.ZodString>;
205
205
  last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
206
206
  last_transaction_id: z.ZodNullable<z.ZodString>;
207
- last_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
207
+ last_transaction_type: z.ZodNullable<z.ZodString>;
208
208
  start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
209
209
  transactions_expected: z.ZodNumber;
210
210
  transactions_found: z.ZodNumber;
@@ -217,10 +217,10 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
217
217
  device_id: string | null;
218
218
  first_transaction_ase_counter_value: number | null;
219
219
  first_transaction_id: string | null;
220
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
220
+ first_transaction_type: string | null;
221
221
  last_transaction_ase_counter_value: number | null;
222
222
  last_transaction_id: string | null;
223
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
223
+ last_transaction_type: string | null;
224
224
  transactions_expected: number;
225
225
  transactions_found: number;
226
226
  transactions_missing: number;
@@ -232,10 +232,10 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
232
232
  device_id: string | null;
233
233
  first_transaction_ase_counter_value: number | null;
234
234
  first_transaction_id: string | null;
235
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
235
+ first_transaction_type: string | null;
236
236
  last_transaction_ase_counter_value: number | null;
237
237
  last_transaction_id: string | null;
238
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
238
+ last_transaction_type: string | null;
239
239
  transactions_expected: number;
240
240
  transactions_found: number;
241
241
  transactions_missing: number;
@@ -309,10 +309,10 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
309
309
  device_id: string | null;
310
310
  first_transaction_ase_counter_value: number | null;
311
311
  first_transaction_id: string | null;
312
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
312
+ first_transaction_type: string | null;
313
313
  last_transaction_ase_counter_value: number | null;
314
314
  last_transaction_id: string | null;
315
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
315
+ last_transaction_type: string | null;
316
316
  transactions_expected: number;
317
317
  transactions_found: number;
318
318
  transactions_missing: number;
@@ -348,10 +348,10 @@ export declare const CreateSamSchema: z.ZodObject<Omit<{
348
348
  device_id: string | null;
349
349
  first_transaction_ase_counter_value: number | null;
350
350
  first_transaction_id: string | null;
351
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
351
+ first_transaction_type: string | null;
352
352
  last_transaction_ase_counter_value: number | null;
353
353
  last_transaction_id: string | null;
354
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
354
+ last_transaction_type: string | null;
355
355
  transactions_expected: number;
356
356
  transactions_found: number;
357
357
  transactions_missing: number;
@@ -385,10 +385,10 @@ export declare const UpdateSamSchema: z.ZodObject<{
385
385
  end_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
386
386
  first_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
387
387
  first_transaction_id: z.ZodNullable<z.ZodString>;
388
- first_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
388
+ first_transaction_type: z.ZodNullable<z.ZodString>;
389
389
  last_transaction_ase_counter_value: z.ZodNullable<z.ZodNumber>;
390
390
  last_transaction_id: z.ZodNullable<z.ZodString>;
391
- last_transaction_type: z.ZodNullable<z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>>;
391
+ last_transaction_type: z.ZodNullable<z.ZodString>;
392
392
  start_time: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
393
393
  transactions_expected: z.ZodNumber;
394
394
  transactions_found: z.ZodNumber;
@@ -401,10 +401,10 @@ export declare const UpdateSamSchema: z.ZodObject<{
401
401
  device_id: string | null;
402
402
  first_transaction_ase_counter_value: number | null;
403
403
  first_transaction_id: string | null;
404
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
404
+ first_transaction_type: string | null;
405
405
  last_transaction_ase_counter_value: number | null;
406
406
  last_transaction_id: string | null;
407
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
407
+ last_transaction_type: string | null;
408
408
  transactions_expected: number;
409
409
  transactions_found: number;
410
410
  transactions_missing: number;
@@ -416,10 +416,10 @@ export declare const UpdateSamSchema: z.ZodObject<{
416
416
  device_id: string | null;
417
417
  first_transaction_ase_counter_value: number | null;
418
418
  first_transaction_id: string | null;
419
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
419
+ first_transaction_type: string | null;
420
420
  last_transaction_ase_counter_value: number | null;
421
421
  last_transaction_id: string | null;
422
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
422
+ last_transaction_type: string | null;
423
423
  transactions_expected: number;
424
424
  transactions_found: number;
425
425
  transactions_missing: number;
@@ -488,10 +488,10 @@ export declare const UpdateSamSchema: z.ZodObject<{
488
488
  device_id: string | null;
489
489
  first_transaction_ase_counter_value: number | null;
490
490
  first_transaction_id: string | null;
491
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
491
+ first_transaction_type: string | null;
492
492
  last_transaction_ase_counter_value: number | null;
493
493
  last_transaction_id: string | null;
494
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
494
+ last_transaction_type: string | null;
495
495
  transactions_expected: number;
496
496
  transactions_found: number;
497
497
  transactions_missing: number;
@@ -526,10 +526,10 @@ export declare const UpdateSamSchema: z.ZodObject<{
526
526
  device_id: string | null;
527
527
  first_transaction_ase_counter_value: number | null;
528
528
  first_transaction_id: string | null;
529
- first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
529
+ first_transaction_type: string | null;
530
530
  last_transaction_ase_counter_value: number | null;
531
531
  last_transaction_id: string | null;
532
- last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
532
+ last_transaction_type: string | null;
533
533
  transactions_expected: number;
534
534
  transactions_found: number;
535
535
  transactions_missing: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260618.2106.1",
3
+ "version": "20260620.940.32",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -36,7 +36,6 @@
36
36
  "watch": "tsc-watch --onSuccess 'resolve-tspaths'"
37
37
  },
38
38
  "dependencies": {
39
- "@tmlmobilidade/go-types-apex": "*",
40
39
  "@tmlmobilidade/go-types-shared": "*",
41
40
  "@types/geojson": "7946.0.16",
42
41
  "gtfs-types": "5.1.0",
@@ -1,6 +0,0 @@
1
- export * from './pcgi-apex-location.js';
2
- export * from './pcgi-apex-refund.js';
3
- export * from './pcgi-apex-sale.js';
4
- export * from './pcgi-apex-validation.js';
5
- export * from './pcgi-transaction-entity.js';
6
- export * from './pcgi-vehicle-event.js';
@@ -1,6 +0,0 @@
1
- export * from './pcgi-apex-location.js';
2
- export * from './pcgi-apex-refund.js';
3
- export * from './pcgi-apex-sale.js';
4
- export * from './pcgi-apex-validation.js';
5
- export * from './pcgi-transaction-entity.js';
6
- export * from './pcgi-vehicle-event.js';
@@ -1,62 +0,0 @@
1
- /**
2
- * APEX Locations
3
- */
4
- export type PCGI_ApexTransaction_Location = PCGI_ApexTransaction_Location_V3;
5
- /**
6
- * APEX Locations
7
- */
8
- export interface PCGI_ApexTransaction_Location_V3 {
9
- countersInfo: {
10
- countersTransactionContext: number;
11
- paperSaleAckCounter: number;
12
- paperSaleCounter: number;
13
- validationCounter: number;
14
- };
15
- mac: {
16
- aseCounterValue: number;
17
- binaryDataMask: number;
18
- fullMacFlag: number;
19
- interruptedStatus: number;
20
- macVersion: number;
21
- raw: string;
22
- samModel: number;
23
- samSerialNumber: number;
24
- samTypeVersion: number;
25
- samWorkingMode: number;
26
- transactionCounter: number;
27
- };
28
- operatorInfo: {
29
- channelID: string;
30
- deviceID: string;
31
- networkID: string;
32
- operatorLongID: string;
33
- };
34
- transactionInfo: {
35
- apexTransactionType: 19;
36
- apexTransactionVersion: string;
37
- transactionDate: string;
38
- transactionGroupId: string;
39
- transactionId: string;
40
- };
41
- validationServiceInfo: {
42
- blockID: string;
43
- dutyID: string;
44
- journeyID: string;
45
- lineLongID: string;
46
- onBehalfOfOperatorLongID: string;
47
- operationPlanID: string;
48
- outOfBoundsType: number;
49
- patternLongID: string;
50
- stopLongID: string;
51
- validatorID: number;
52
- vehicleID: number;
53
- };
54
- versionInfo: {
55
- actionListsVersion: string;
56
- apexVersion: string;
57
- commercialOfferVersion: string;
58
- networkVersion: string;
59
- technicalParametersVersion: string;
60
- vivaVersion: string;
61
- };
62
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};
@@ -1,69 +0,0 @@
1
- /**
2
- * APEX Refund
3
- */
4
- export type PCGI_ApexTransaction_Refund = PCGI_ApexTransaction_Refund_V2;
5
- /**
6
- * APEX Refund
7
- */
8
- export interface PCGI_ApexTransaction_Refund_V2 {
9
- cardInfo: {
10
- cardNetworkID: string;
11
- cardPhysicalType: number;
12
- cardSerialNumber: string;
13
- };
14
- loadCorrInfo: {
15
- corrTickLoadDate: string;
16
- corrTickLoadMachCode: number;
17
- corrTickLoadNumbDaily: number;
18
- corrTransactionId: string;
19
- };
20
- mac: {
21
- aseCounterValue: number;
22
- binaryDataMask: number;
23
- fullMacFlag: number;
24
- interruptedStatus: number;
25
- macVersion: number;
26
- raw: string;
27
- samModel: number;
28
- samSerialNumber: number;
29
- samTypeVersion: number;
30
- samWorkingMode: number;
31
- transactionCounter: number;
32
- };
33
- operatorInfo: {
34
- channelID: string;
35
- deviceID: string;
36
- networkID: string;
37
- operatorLongID: string;
38
- };
39
- paymentInfo: {
40
- currency: number;
41
- paymentMethod: number;
42
- price: number;
43
- };
44
- saleLoadInfo: {
45
- contractNumber: number;
46
- productLongID: string;
47
- productQuantity: number;
48
- salesPackageID: string;
49
- tickLoadDate: string;
50
- tickLoadMachCode: number;
51
- tickLoadNumbDaily: number;
52
- unitsQuantity: number;
53
- };
54
- transactionInfo: {
55
- apexTransactionType: 6;
56
- apexTransactionVersion: '2.0';
57
- transactionDate: string;
58
- transactionGroupId: string;
59
- transactionId: string;
60
- };
61
- versionInfo: {
62
- actionListsVersion: string;
63
- apexVersion: string;
64
- commercialOfferVersion: string;
65
- networkVersion: string;
66
- technicalParametersVersion: string;
67
- vivaVersion: string;
68
- };
69
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};
@@ -1,89 +0,0 @@
1
- /**
2
- * APEX Sales or Refunds
3
- */
4
- export type PCGI_ApexTransaction_Sale = PCGI_ApexTransaction_Sale_V2;
5
- /**
6
- * APEX Sales or Refunds
7
- */
8
- export interface PCGI_ApexTransaction_Sale_V2 {
9
- cardInfo: {
10
- cardIssuer: number;
11
- cardNetworkID: string;
12
- cardNumber: number;
13
- cardPhysicalType: number;
14
- cardSerialNumber: string;
15
- cardTypeID: string;
16
- };
17
- mac: {
18
- aseCounterValue: number;
19
- binaryDataMask: number;
20
- fullMacFlag: number;
21
- interruptedStatus: number;
22
- macVersion: number;
23
- raw: string;
24
- samModel: number;
25
- samSerialNumber: number;
26
- samTypeVersion: number;
27
- samWorkingMode: number;
28
- transactionCounter: number;
29
- };
30
- operatorInfo: {
31
- channelID: string;
32
- deviceID: string;
33
- networkID: string;
34
- operatorLongID: string;
35
- };
36
- paymentInfo: {
37
- currency: number;
38
- invoiceNumber: string;
39
- paymentMethod: number;
40
- price: number;
41
- usageDays: number;
42
- usageValue: number;
43
- vatNumber: number;
44
- };
45
- saleLoadInfo: {
46
- contractNumber: number;
47
- greenlistItemID: string;
48
- greylistItemID: string;
49
- productLongID: string;
50
- productQuantity: number;
51
- profilesUsedCount: number;
52
- profilesUsedData: {
53
- profileLongID: string;
54
- }[];
55
- salesPackageID: string;
56
- SpatialValidityCount: number;
57
- spatialValidityDetail: {
58
- productMatrixElementID: string;
59
- spatialValidityLongID: string;
60
- zonesCount: number;
61
- }[];
62
- tickLoadDate: string;
63
- tickLoadMachCode: number;
64
- tickLoadNumbDaily: number;
65
- unitsQuantity: number;
66
- voucherNr: string;
67
- };
68
- signedData: {
69
- contractBinaryRead: string;
70
- eventBinaryRead: string;
71
- eventBinaryWritten: string;
72
- raw: string;
73
- };
74
- transactionInfo: {
75
- apexTransactionType: 3;
76
- apexTransactionVersion: '2.0';
77
- transactionDate: string;
78
- transactionGroupId: string;
79
- transactionId: string;
80
- };
81
- versionInfo: {
82
- actionListsVersion: string;
83
- apexVersion: string;
84
- commercialOfferVersion: string;
85
- networkVersion: string;
86
- technicalParametersVersion: string;
87
- vivaVersion: string;
88
- };
89
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};
@@ -1,88 +0,0 @@
1
- /**
2
- * APEX Validations
3
- */
4
- export type PCGI_ApexTransaction_Validation = PCGI_ApexTransaction_Validation_V3;
5
- /**
6
- * APEX Validations
7
- */
8
- export interface PCGI_ApexTransaction_Validation_V3 {
9
- cardInfo: {
10
- cardIssuer: number;
11
- cardNetworkID: string;
12
- cardNumber: number;
13
- cardPhysicalType: number;
14
- cardSerialNumber: string;
15
- cardTypeID: string;
16
- };
17
- mac: {
18
- aseCounterValue: number;
19
- binaryDataMask: number;
20
- fullMacFlag: number;
21
- interruptedStatus: number;
22
- macVersion: number;
23
- raw: string;
24
- samModel: number;
25
- samSerialNumber: number;
26
- samTypeVersion: number;
27
- samWorkingMode: number;
28
- transactionCounter: number;
29
- };
30
- operatorInfo: {
31
- channelID: string;
32
- deviceID: string;
33
- networkID: string;
34
- operatorLongID: string;
35
- };
36
- serviceInfo: {
37
- blockID: string;
38
- dutyID: string;
39
- journeyID: string;
40
- lineLongID: string;
41
- onBehalfOfOperatorLongID: string;
42
- outOfBoundsType: number;
43
- patternLongID: string;
44
- stopLongID: string;
45
- validatorID: number;
46
- vehicleID: number;
47
- zoneLongID: string;
48
- };
49
- signedData: {
50
- contractBinaryRead: string;
51
- eventBinaryRead: string;
52
- eventBinaryWritten: string;
53
- raw: string;
54
- };
55
- transactionInfo: {
56
- apexTransactionType: 11;
57
- apexTransactionVersion: '3.0';
58
- transactionDate: string;
59
- transactionGroupId: string;
60
- transactionId: string;
61
- };
62
- validationInfo: {
63
- calendarID: string;
64
- contractNumber: number;
65
- eventType: number;
66
- greylistItemsData: [];
67
- productLongID: string;
68
- profilesUsedData: {
69
- profileLongID: string;
70
- }[];
71
- spatialValidityLongID: string;
72
- tickLoadDate: string;
73
- tickLoadMachCode: number;
74
- tickLoadNumbDaily: number;
75
- unitsRemaining: number;
76
- validationStatus: number;
77
- validationType: number;
78
- validityPeriodID: string;
79
- };
80
- versionInfo: {
81
- actionListsVersion: string;
82
- apexVersion: string;
83
- commercialOfferVersion: string;
84
- networkVersion: string;
85
- technicalParametersVersion: string;
86
- vivaVersion: string;
87
- };
88
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};
@@ -1,23 +0,0 @@
1
- export interface PCGI_TransactionEntity {
2
- _id: string;
3
- cardSerialNumber: string;
4
- createdAt: string;
5
- csvValue: string;
6
- decodeValue: string;
7
- duplicated: boolean;
8
- fileId: string;
9
- isBeingACK: boolean;
10
- isDecoded: true;
11
- isOK: boolean;
12
- isReprocessed: boolean;
13
- operatorLongId: string;
14
- respondedAt: string;
15
- status: boolean;
16
- transaction: string;
17
- transactionId: string;
18
- transactionstring: string;
19
- transactionType: number;
20
- updatedAt: string;
21
- validatedAt: string;
22
- verified: boolean;
23
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};
@@ -1,49 +0,0 @@
1
- /**
2
- * PCGI Vehicle Event
3
- */
4
- export interface PcgiVehicleEvent {
5
- _id: string;
6
- content: {
7
- entity: {
8
- _id: string;
9
- vehicle: {
10
- agencyId: string;
11
- currentStatus: string;
12
- occupancyStatus: string;
13
- operationPlanId: string;
14
- position: {
15
- bearing: number;
16
- latitude: number;
17
- longitude: number;
18
- odometer: number;
19
- speed: number;
20
- };
21
- stopId: string;
22
- timestamp: number;
23
- trigger: {
24
- activity: string;
25
- door: string;
26
- };
27
- trip: {
28
- lineId: string;
29
- patternId: string;
30
- routeId: string;
31
- scheduleRelationship: string;
32
- tripId: string;
33
- };
34
- vehicle: {
35
- _id: string;
36
- blockId: string;
37
- driverId: string;
38
- shiftId: string;
39
- };
40
- };
41
- }[];
42
- header: {
43
- gtfsRealtimeVersion: string;
44
- incrementality: string;
45
- timestamp: number;
46
- };
47
- };
48
- millis: number;
49
- }
@@ -1,2 +0,0 @@
1
- /* * */
2
- export {};