@tmlmobilidade/types 20250526.1908.32 → 20250528.31.35

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.
@@ -22,7 +22,7 @@ export interface PCGI_ApexTransaction_Sale_V2 {
22
22
  macVersion: number;
23
23
  raw: string;
24
24
  samModel: number;
25
- samSerialNumber: 2932387837;
25
+ samSerialNumber: number;
26
26
  samTypeVersion: number;
27
27
  samWorkingMode: number;
28
28
  transactionCounter: number;
@@ -1,64 +1,4 @@
1
1
  import { type UnixTimestamp } from '../common/unix-timestamp.js';
2
- import { z } from 'zod';
3
- export declare const SimplifiedApexLocationSchema: z.ZodObject<{
4
- _id: z.ZodString;
5
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
6
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
7
- } & {
8
- agency_id: z.ZodString;
9
- apex_transaction_type: z.ZodNumber;
10
- apex_version: z.ZodString;
11
- device_id: z.ZodString;
12
- is_valid: z.ZodBoolean;
13
- line_id: z.ZodString;
14
- mac_ase_counter_value: z.ZodNumber;
15
- mac_sam_serial_number: z.ZodNumber;
16
- pattern_id: z.ZodString;
17
- received_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
18
- stop_id: z.ZodString;
19
- trip_id: z.ZodString;
20
- vehicle_id: z.ZodString;
21
- }, "strict", z.ZodTypeAny, {
22
- _id: string;
23
- agency_id: string;
24
- apex_transaction_type: number;
25
- apex_version: string;
26
- device_id: string;
27
- is_valid: boolean;
28
- line_id: string;
29
- mac_ase_counter_value: number;
30
- mac_sam_serial_number: number;
31
- pattern_id: string;
32
- received_at: number & {
33
- __brand: "UnixTimestamp";
34
- } & z.BRAND<"UnixTimestamp">;
35
- stop_id: string;
36
- trip_id: string;
37
- vehicle_id: string;
38
- created_at?: (number & {
39
- __brand: "UnixTimestamp";
40
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
41
- updated_at?: (number & {
42
- __brand: "UnixTimestamp";
43
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
44
- }, {
45
- _id: string;
46
- agency_id: string;
47
- apex_transaction_type: number;
48
- apex_version: string;
49
- device_id: string;
50
- is_valid: boolean;
51
- line_id: string;
52
- mac_ase_counter_value: number;
53
- mac_sam_serial_number: number;
54
- pattern_id: string;
55
- received_at: number;
56
- stop_id: string;
57
- trip_id: string;
58
- vehicle_id: string;
59
- created_at?: number | null | undefined;
60
- updated_at?: number | null | undefined;
61
- }>;
62
2
  /**
63
3
  * APEX Locations are APEX transactions of type 19 that are generated every time the
64
4
  * setContext or setLocation functions are called. These functions are used to set
@@ -66,8 +6,25 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
66
6
  * of products. In summary, these transactions are generated every time the vehicle has a change
67
7
  * in the current stop ID, trip ID, route ID, pattern ID, etc.
68
8
  */
69
- export interface SimplifiedApexLocation extends Omit<z.infer<typeof SimplifiedApexLocationSchema>, 'created_at' | 'received_at' | 'updated_at'> {
70
- created_at: UnixTimestamp;
71
- received_at: UnixTimestamp;
72
- updated_at: UnixTimestamp;
9
+ export interface SimplifiedApexLocation {
10
+ _go_default__created_at: UnixTimestamp;
11
+ _go_default__updated_at: UnixTimestamp;
12
+ _id: string;
13
+ mac__ase_counter_value: number;
14
+ mac__sam_serial_number: number;
15
+ operator_info__operator_long_id: string;
16
+ transaction_info__apex_transaction_type: 6;
17
+ transaction_info__transaction_date: string;
18
+ validation_service_info__block_id: string;
19
+ validation_service_info__duty_id: string;
20
+ validation_service_info__journey_id: string;
21
+ validation_service_info__line_long_id: string;
22
+ validation_service_info__on_behalf_of_operator_long_id: string;
23
+ validation_service_info__operation_plan_id: string;
24
+ validation_service_info__out_of_bounds_type: number;
25
+ validation_service_info__pattern_long_id: string;
26
+ validation_service_info__stop_long_id: string;
27
+ validation_service_info__validator_id: number;
28
+ validation_service_info__vehicle_id: number;
29
+ version_info__apex_version: string;
73
30
  }
@@ -1,4 +1,2 @@
1
1
  /* * */
2
- import { SimplifiedApexBaseSchema } from './simplified-apex-base.js';
3
- /* * */
4
- export const SimplifiedApexLocationSchema = SimplifiedApexBaseSchema;
2
+ export {};
@@ -1,98 +1,39 @@
1
1
  import { type UnixTimestamp } from '../common/unix-timestamp.js';
2
- import { z } from 'zod';
3
- export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
4
- _id: z.ZodString;
5
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
6
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
7
- agency_id: z.ZodString;
8
- apex_transaction_type: z.ZodNumber;
9
- apex_version: z.ZodString;
10
- device_id: z.ZodString;
11
- is_valid: z.ZodBoolean;
12
- mac_ase_counter_value: z.ZodNumber;
13
- mac_sam_serial_number: z.ZodNumber;
14
- received_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
15
- } & {
16
- card_physical_type: z.ZodNumber;
17
- card_serial_number: z.ZodString;
18
- invoice_number: z.ZodOptional<z.ZodString>;
19
- on_board_sale_transaction_id: z.ZodOptional<z.ZodString>;
20
- payment_method: z.ZodNumber;
21
- price: z.ZodNumber;
22
- product_id: z.ZodString;
23
- product_qty: z.ZodNumber;
24
- validation_transaction_id: z.ZodOptional<z.ZodString>;
25
- line_id: z.ZodOptional<z.ZodString>;
26
- pattern_id: z.ZodOptional<z.ZodString>;
27
- stop_id: z.ZodOptional<z.ZodString>;
28
- trip_id: z.ZodOptional<z.ZodString>;
29
- vehicle_id: z.ZodOptional<z.ZodString>;
30
- }, "strict", z.ZodTypeAny, {
31
- _id: string;
32
- agency_id: string;
33
- apex_transaction_type: number;
34
- apex_version: string;
35
- device_id: string;
36
- is_valid: boolean;
37
- mac_ase_counter_value: number;
38
- mac_sam_serial_number: number;
39
- received_at: number & {
40
- __brand: "UnixTimestamp";
41
- } & z.BRAND<"UnixTimestamp">;
42
- card_serial_number: string;
43
- product_id: string;
44
- card_physical_type: number;
45
- payment_method: number;
46
- price: number;
47
- product_qty: number;
48
- created_at?: (number & {
49
- __brand: "UnixTimestamp";
50
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
51
- updated_at?: (number & {
52
- __brand: "UnixTimestamp";
53
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
54
- line_id?: string | undefined;
55
- pattern_id?: string | undefined;
56
- stop_id?: string | undefined;
57
- trip_id?: string | undefined;
58
- vehicle_id?: string | undefined;
59
- invoice_number?: string | undefined;
60
- on_board_sale_transaction_id?: string | undefined;
61
- validation_transaction_id?: string | undefined;
62
- }, {
63
- _id: string;
64
- agency_id: string;
65
- apex_transaction_type: number;
66
- apex_version: string;
67
- device_id: string;
68
- is_valid: boolean;
69
- mac_ase_counter_value: number;
70
- mac_sam_serial_number: number;
71
- received_at: number;
72
- card_serial_number: string;
73
- product_id: string;
74
- card_physical_type: number;
75
- payment_method: number;
76
- price: number;
77
- product_qty: number;
78
- created_at?: number | null | undefined;
79
- updated_at?: number | null | undefined;
80
- line_id?: string | undefined;
81
- pattern_id?: string | undefined;
82
- stop_id?: string | undefined;
83
- trip_id?: string | undefined;
84
- vehicle_id?: string | undefined;
85
- invoice_number?: string | undefined;
86
- on_board_sale_transaction_id?: string | undefined;
87
- validation_transaction_id?: string | undefined;
88
- }>;
89
2
  /**
90
- * APEX OnBoard Refunds are APEX transactions of type 3 that are generated whenever a refund
3
+ * APEX OnBoard Refunds are APEX transactions of type 6 that are generated whenever a refund
91
4
  * of an on-board ticket occurs. Even though refunds can be generated for any sale, here they are already filtered
92
5
  * for on-board ticket refunds inside vehicles only. Refunds are always associated with an on-board sale transaction.
93
6
  */
94
- export interface SimplifiedApexOnBoardRefund extends Omit<z.infer<typeof SimplifiedApexOnBoardRefundSchema>, 'created_at' | 'received_at' | 'updated_at'> {
95
- created_at: UnixTimestamp;
96
- received_at: UnixTimestamp;
97
- updated_at: UnixTimestamp;
7
+ export interface SimplifiedApexOnBoardRefund {
8
+ _go_correlation__on_board_sale_id: string;
9
+ _go_correlation__validation_id: string;
10
+ _go_default__created_at: UnixTimestamp;
11
+ _go_default__updated_at: UnixTimestamp;
12
+ _go_enriched__block_id: string;
13
+ _go_enriched__duty_id: string;
14
+ _go_enriched__is_valid: boolean;
15
+ _go_enriched__journey_id: string;
16
+ _go_enriched__line_long_id: string;
17
+ _go_enriched__pattern_long_id: string;
18
+ _go_enriched__stop_long_id: string;
19
+ _go_enriched__vehicle_id: string;
20
+ _id: string;
21
+ card_info__card_number: string;
22
+ card_info__card_physical_type: number;
23
+ card_info__card_serial_number: string;
24
+ card_info__card_type_id: string;
25
+ mac__ase_counter_value: number;
26
+ mac__sam_serial_number: number;
27
+ operator_info__operator_long_id: string;
28
+ payment_info__currency: number;
29
+ payment_info__invoice_number: string;
30
+ payment_info__payment_method: number;
31
+ payment_info__price: number;
32
+ payment_info__vat_number: number;
33
+ sale_load_info__product_long_id: string;
34
+ sale_load_info__product_quantity: number;
35
+ sale_load_info__units_quantity: number;
36
+ transaction_info__apex_transaction_type: 6;
37
+ transaction_info__transaction_date: string;
38
+ version_info__apex_version: string;
98
39
  }
@@ -1,21 +1,2 @@
1
1
  /* * */
2
- import { SimplifiedApexBaseSchema } from './simplified-apex-base.js';
3
- import { z } from 'zod';
4
- /* * */
5
- export const SimplifiedApexOnBoardRefundSchema = SimplifiedApexBaseSchema.extend({
6
- card_physical_type: z.number(),
7
- card_serial_number: z.string(),
8
- invoice_number: z.string().optional(),
9
- on_board_sale_transaction_id: z.string().optional(),
10
- payment_method: z.number(),
11
- price: z.number(),
12
- product_id: z.string(),
13
- product_qty: z.number(),
14
- validation_transaction_id: z.string().optional(),
15
- // Overrides
16
- line_id: z.string().optional(),
17
- pattern_id: z.string().optional(),
18
- stop_id: z.string().optional(),
19
- trip_id: z.string().optional(),
20
- vehicle_id: z.string().optional(),
21
- }).strict();
2
+ export {};
@@ -1,91 +1,4 @@
1
1
  import { type UnixTimestamp } from '../common/unix-timestamp.js';
2
- import { z } from 'zod';
3
- export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
4
- _id: z.ZodString;
5
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
6
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
7
- agency_id: z.ZodString;
8
- apex_transaction_type: z.ZodNumber;
9
- apex_version: z.ZodString;
10
- device_id: z.ZodString;
11
- is_valid: z.ZodBoolean;
12
- mac_ase_counter_value: z.ZodNumber;
13
- mac_sam_serial_number: z.ZodNumber;
14
- received_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
15
- } & {
16
- card_physical_type: z.ZodNumber;
17
- card_serial_number: z.ZodString;
18
- invoice_number: z.ZodOptional<z.ZodString>;
19
- payment_method: z.ZodNumber;
20
- price: z.ZodNumber;
21
- product_id: z.ZodString;
22
- product_qty: z.ZodNumber;
23
- refund_transaction_id: z.ZodOptional<z.ZodString>;
24
- validation_transaction_id: z.ZodOptional<z.ZodString>;
25
- line_id: z.ZodOptional<z.ZodString>;
26
- pattern_id: z.ZodOptional<z.ZodString>;
27
- stop_id: z.ZodOptional<z.ZodString>;
28
- trip_id: z.ZodOptional<z.ZodString>;
29
- vehicle_id: z.ZodOptional<z.ZodString>;
30
- }, "strict", z.ZodTypeAny, {
31
- _id: string;
32
- agency_id: string;
33
- apex_transaction_type: number;
34
- apex_version: string;
35
- device_id: string;
36
- is_valid: boolean;
37
- mac_ase_counter_value: number;
38
- mac_sam_serial_number: number;
39
- received_at: number & {
40
- __brand: "UnixTimestamp";
41
- } & z.BRAND<"UnixTimestamp">;
42
- card_serial_number: string;
43
- product_id: string;
44
- card_physical_type: number;
45
- payment_method: number;
46
- price: number;
47
- product_qty: number;
48
- created_at?: (number & {
49
- __brand: "UnixTimestamp";
50
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
51
- updated_at?: (number & {
52
- __brand: "UnixTimestamp";
53
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
54
- line_id?: string | undefined;
55
- pattern_id?: string | undefined;
56
- stop_id?: string | undefined;
57
- trip_id?: string | undefined;
58
- vehicle_id?: string | undefined;
59
- invoice_number?: string | undefined;
60
- validation_transaction_id?: string | undefined;
61
- refund_transaction_id?: string | undefined;
62
- }, {
63
- _id: string;
64
- agency_id: string;
65
- apex_transaction_type: number;
66
- apex_version: string;
67
- device_id: string;
68
- is_valid: boolean;
69
- mac_ase_counter_value: number;
70
- mac_sam_serial_number: number;
71
- received_at: number;
72
- card_serial_number: string;
73
- product_id: string;
74
- card_physical_type: number;
75
- payment_method: number;
76
- price: number;
77
- product_qty: number;
78
- created_at?: number | null | undefined;
79
- updated_at?: number | null | undefined;
80
- line_id?: string | undefined;
81
- pattern_id?: string | undefined;
82
- stop_id?: string | undefined;
83
- trip_id?: string | undefined;
84
- vehicle_id?: string | undefined;
85
- invoice_number?: string | undefined;
86
- validation_transaction_id?: string | undefined;
87
- refund_transaction_id?: string | undefined;
88
- }>;
89
2
  /**
90
3
  * APEX OnBoard Sales are APEX transactions of type 3 that are generated whenever a sale
91
4
  * of an on-board ticket occurs. Even though sales can be of anything (tickets, cards, contracts, merchandising items)
@@ -93,8 +6,36 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
93
6
  * for on-board ticket sales inside vehicles only. Sales of tickets when inside vehicles also generate a validation transaction.
94
7
  * Sales can be refunded, and refunds are also APEX transactions of type 3.
95
8
  */
96
- export interface SimplifiedApexOnBoardSale extends Omit<z.infer<typeof SimplifiedApexOnBoardSaleSchema>, 'created_at' | 'received_at' | 'updated_at'> {
97
- created_at: UnixTimestamp;
98
- received_at: UnixTimestamp;
99
- updated_at: UnixTimestamp;
9
+ export interface SimplifiedApexOnBoardSale {
10
+ _go_correlation__on_board_refund_id: string;
11
+ _go_correlation__validation_id: string;
12
+ _go_default__created_at: UnixTimestamp;
13
+ _go_default__updated_at: UnixTimestamp;
14
+ _go_enriched__block_id: string;
15
+ _go_enriched__duty_id: string;
16
+ _go_enriched__is_valid: boolean;
17
+ _go_enriched__journey_id: string;
18
+ _go_enriched__line_long_id: string;
19
+ _go_enriched__pattern_long_id: string;
20
+ _go_enriched__stop_long_id: string;
21
+ _go_enriched__vehicle_id: string;
22
+ _id: string;
23
+ card_info__card_number: string;
24
+ card_info__card_physical_type: number;
25
+ card_info__card_serial_number: string;
26
+ card_info__card_type_id: string;
27
+ mac__ase_counter_value: number;
28
+ mac__sam_serial_number: number;
29
+ operator_info__operator_long_id: string;
30
+ payment_info__currency: number;
31
+ payment_info__invoice_number: string;
32
+ payment_info__payment_method: number;
33
+ payment_info__price: number;
34
+ payment_info__vat_number: number;
35
+ sale_load_info__product_long_id: string;
36
+ sale_load_info__product_quantity: number;
37
+ sale_load_info__units_quantity: number;
38
+ transaction_info__apex_transaction_type: 3;
39
+ transaction_info__transaction_date: string;
40
+ version_info__apex_version: string;
100
41
  }
@@ -1,21 +1,2 @@
1
1
  /* * */
2
- import { SimplifiedApexBaseSchema } from './simplified-apex-base.js';
3
- import { z } from 'zod';
4
- /* * */
5
- export const SimplifiedApexOnBoardSaleSchema = SimplifiedApexBaseSchema.extend({
6
- card_physical_type: z.number(),
7
- card_serial_number: z.string(),
8
- invoice_number: z.string().optional(),
9
- payment_method: z.number(),
10
- price: z.number(),
11
- product_id: z.string(),
12
- product_qty: z.number(),
13
- refund_transaction_id: z.string().optional(),
14
- validation_transaction_id: z.string().optional(),
15
- // Overrides
16
- line_id: z.string().optional(),
17
- pattern_id: z.string().optional(),
18
- stop_id: z.string().optional(),
19
- trip_id: z.string().optional(),
20
- vehicle_id: z.string().optional(),
21
- }).strict();
2
+ export {};
@@ -1,5 +1,4 @@
1
1
  import { type UnixTimestamp } from '../common/unix-timestamp.js';
2
- import { z } from 'zod';
3
2
  export declare enum ApexValidationStatus {
4
3
  /**
5
4
  * VALID:
@@ -72,96 +71,6 @@ export declare enum ApexValidationStatus {
72
71
  */
73
72
  _13_MaxValue = 13
74
73
  }
75
- export declare const SimplifiedApexValidationSchema: z.ZodObject<{
76
- _id: z.ZodString;
77
- created_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
78
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
79
- } & {
80
- agency_id: z.ZodString;
81
- apex_transaction_type: z.ZodNumber;
82
- apex_version: z.ZodString;
83
- device_id: z.ZodString;
84
- is_valid: z.ZodBoolean;
85
- line_id: z.ZodString;
86
- mac_ase_counter_value: z.ZodNumber;
87
- mac_sam_serial_number: z.ZodNumber;
88
- pattern_id: z.ZodString;
89
- received_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
90
- stop_id: z.ZodString;
91
- trip_id: z.ZodString;
92
- vehicle_id: z.ZodString;
93
- } & {
94
- card_physical_type: z.ZodNumber;
95
- card_serial_number: z.ZodString;
96
- card_type_id: z.ZodString;
97
- event_type: z.ZodNumber;
98
- on_board_sale_transaction_id: z.ZodOptional<z.ZodString>;
99
- product_id: z.ZodString;
100
- product_type: z.ZodEnum<["monthly", "on-board-sale", "prepaid"]>;
101
- refund_transaction_id: z.ZodOptional<z.ZodString>;
102
- units_qty: z.ZodOptional<z.ZodNumber>;
103
- validation_status: z.ZodNativeEnum<typeof ApexValidationStatus>;
104
- }, "strict", z.ZodTypeAny, {
105
- _id: string;
106
- agency_id: string;
107
- apex_transaction_type: number;
108
- apex_version: string;
109
- device_id: string;
110
- is_valid: boolean;
111
- line_id: string;
112
- mac_ase_counter_value: number;
113
- mac_sam_serial_number: number;
114
- pattern_id: string;
115
- received_at: number & {
116
- __brand: "UnixTimestamp";
117
- } & z.BRAND<"UnixTimestamp">;
118
- stop_id: string;
119
- trip_id: string;
120
- vehicle_id: string;
121
- card_serial_number: string;
122
- product_id: string;
123
- card_physical_type: number;
124
- card_type_id: string;
125
- event_type: number;
126
- product_type: "monthly" | "on-board-sale" | "prepaid";
127
- validation_status: ApexValidationStatus;
128
- created_at?: (number & {
129
- __brand: "UnixTimestamp";
130
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
131
- updated_at?: (number & {
132
- __brand: "UnixTimestamp";
133
- } & z.BRAND<"UnixTimestamp">) | null | undefined;
134
- on_board_sale_transaction_id?: string | undefined;
135
- refund_transaction_id?: string | undefined;
136
- units_qty?: number | undefined;
137
- }, {
138
- _id: string;
139
- agency_id: string;
140
- apex_transaction_type: number;
141
- apex_version: string;
142
- device_id: string;
143
- is_valid: boolean;
144
- line_id: string;
145
- mac_ase_counter_value: number;
146
- mac_sam_serial_number: number;
147
- pattern_id: string;
148
- received_at: number;
149
- stop_id: string;
150
- trip_id: string;
151
- vehicle_id: string;
152
- card_serial_number: string;
153
- product_id: string;
154
- card_physical_type: number;
155
- card_type_id: string;
156
- event_type: number;
157
- product_type: "monthly" | "on-board-sale" | "prepaid";
158
- validation_status: ApexValidationStatus;
159
- created_at?: number | null | undefined;
160
- updated_at?: number | null | undefined;
161
- on_board_sale_transaction_id?: string | undefined;
162
- refund_transaction_id?: string | undefined;
163
- units_qty?: number | undefined;
164
- }>;
165
74
  /**
166
75
  * APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
167
76
  * reader (ex: bus validator, subway gate). These validation transactions represent the card holder's right to travel
@@ -169,10 +78,38 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
169
78
  * or not, and with which conditions. A validation also contains information about the card holder's card, the vehicle,
170
79
  * the validator machine, the route, and the time and location of the validation.
171
80
  */
172
- export interface SimplifiedApexValidation extends Omit<z.infer<typeof SimplifiedApexValidationSchema>, 'created_at' | 'received_at' | 'updated_at'> {
173
- created_at: UnixTimestamp;
174
- received_at: UnixTimestamp;
175
- updated_at: UnixTimestamp;
81
+ export interface SimplifiedApexValidation {
82
+ _go_correlation__on_board_refund_id: string;
83
+ _go_correlation__on_board_sale_id: string;
84
+ _go_default__created_at: UnixTimestamp;
85
+ _go_default__updated_at: UnixTimestamp;
86
+ _go_enriched__is_valid: boolean;
87
+ _id: string;
88
+ card_info__card_number: string;
89
+ card_info__card_physical_type: number;
90
+ card_info__card_serial_number: string;
91
+ card_info__card_type_id: string;
92
+ mac__ase_counter_value: number;
93
+ mac__sam_serial_number: number;
94
+ operator_info__operator_long_id: string;
95
+ service_info__block_id: string;
96
+ service_info__duty_id: string;
97
+ service_info__journey_id: string;
98
+ service_info__line_long_id: string;
99
+ service_info__on_behalf_of_operator_long_id: string;
100
+ service_info__out_of_bounds_type: number;
101
+ service_info__pattern_long_id: string;
102
+ service_info__stop_long_id: string;
103
+ service_info__validator_id: number;
104
+ service_info__vehicle_id: number;
105
+ transaction_info__apex_transaction_type: 11;
106
+ transaction_info__transaction_date: string;
107
+ validation_info__event_type: number;
108
+ validation_info__product_long_id: string;
109
+ validation_info__units_remaining: null | number;
110
+ validation_info__validation_status: ApexValidationStatus;
111
+ validation_info__validation_type: number;
112
+ version_info__apex_version: string;
176
113
  }
177
114
  /**
178
115
  * Validation statuses that are considered valid for the card holder to travel.
@@ -1,6 +1,4 @@
1
1
  /* * */
2
- import { SimplifiedApexBaseSchema } from './simplified-apex-base.js';
3
- import { z } from 'zod';
4
2
  /* * */
5
3
  export var ApexValidationStatus;
6
4
  (function (ApexValidationStatus) {
@@ -75,19 +73,6 @@ export var ApexValidationStatus;
75
73
  */
76
74
  ApexValidationStatus[ApexValidationStatus["_13_MaxValue"] = 13] = "_13_MaxValue";
77
75
  })(ApexValidationStatus || (ApexValidationStatus = {}));
78
- /* * */
79
- export const SimplifiedApexValidationSchema = SimplifiedApexBaseSchema.extend({
80
- card_physical_type: z.number(),
81
- card_serial_number: z.string(),
82
- card_type_id: z.string(),
83
- event_type: z.number(),
84
- on_board_sale_transaction_id: z.string().optional(),
85
- product_id: z.string(),
86
- product_type: z.enum(['monthly', 'on-board-sale', 'prepaid']),
87
- refund_transaction_id: z.string().optional(),
88
- units_qty: z.number().optional(),
89
- validation_status: z.nativeEnum(ApexValidationStatus),
90
- }).strict();
91
76
  /**
92
77
  * Validation statuses that are considered valid for the card holder to travel.
93
78
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250526.1908.32",
3
+ "version": "20250528.31.35",
4
4
  "author": "João de Vasconcelos & Jusi Monteiro",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "homepage": "https://github.com/tmlmobilidade/services#readme",