@tmlmobilidade/types 20260615.1002.3 → 20260615.1437.21
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.
- package/dist/dates/common.d.ts +1 -3
- package/dist/dates/common.js +7 -4
- package/dist/dates/event.d.ts +18 -18
- package/dist/file-exports/file-exports.d.ts +3 -3
- package/dist/file-exports/ride-export.d.ts +6 -6
- package/dist/file-exports/sams-analysis-export.d.ts +10 -10
- package/dist/file-exports/stop-export.d.ts +8 -8
- package/dist/gtfs-new/stop-times.d.ts +2 -2
- package/dist/gtfs-new/trips.d.ts +3 -3
- package/dist/gtfs-rt/alert.d.ts +10 -10
- package/dist/gtfs-rt/entity-selector.d.ts +6 -6
- package/dist/gtfs-rt/feed-entity.d.ts +20 -20
- package/dist/gtfs-rt/feed-message.d.ts +26 -26
- package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
- package/dist/gtfs-rt/vehicle-position.d.ts +4 -4
- package/dist/gtfs-tml/fares.d.ts +4 -4
- package/dist/gtfs-tml/stop-times.d.ts +2 -2
- package/dist/gtfs-tml/trips.d.ts +3 -3
- package/dist/hub/api/network/pattern.d.ts +2 -2
- package/dist/hub/api/network/route.d.ts +2 -2
- package/dist/hub/api/network/stop.d.ts +2 -2
- package/dist/hub/api/realtime/vehicle-position.d.ts +7 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/metrics/demand/demand_by_category.d.ts +36 -36
- package/dist/metrics/index.d.ts +36 -36
- package/dist/notification.d.ts +10 -10
- package/dist/offer/fare.d.ts +16 -16
- package/dist/offer/parameters.d.ts +8 -8
- package/dist/offer/pattern.d.ts +108 -108
- package/dist/offer/route.d.ts +6 -6
- package/dist/offer/rules.d.ts +42 -42
- package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
- package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
- package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
- package/dist/operation/lines/operational-line.d.ts +4 -4
- package/dist/operation/rides/ride-normalized.d.ts +6 -6
- package/dist/operation/rides/ride.d.ts +24 -24
- package/dist/operation/stops/operational-stop.d.ts +5 -5
- package/dist/sams/sam-analysis.d.ts +10 -10
- package/dist/sams/sam-analysis.js +1 -1
- package/dist/sams/sam.d.ts +60 -60
- package/dist/stops/flag.d.ts +1 -1
- package/dist/stops/stop.d.ts +12 -12
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
- package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/fertagus/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/mobi/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +50 -50
- package/dist/vehicle-events/raw/tcb/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
- package/package.json +2 -1
- package/dist/apex/index.d.ts +0 -2
- package/dist/apex/index.js +0 -2
- package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +0 -669
- package/dist/apex/raw/banking-taps/banking-tap-v40.js +0 -65
- package/dist/apex/raw/banking-taps/index.d.ts +0 -1
- package/dist/apex/raw/banking-taps/index.js +0 -1
- package/dist/apex/raw/index.d.ts +0 -7
- package/dist/apex/raw/index.js +0 -7
- package/dist/apex/raw/inspections/index.d.ts +0 -2
- package/dist/apex/raw/inspections/index.js +0 -2
- package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +0 -481
- package/dist/apex/raw/inspections/inspection-decision-v20.js +0 -49
- package/dist/apex/raw/inspections/inspection-v20.d.ts +0 -961
- package/dist/apex/raw/inspections/inspection-v20.js +0 -89
- package/dist/apex/raw/locations/index.d.ts +0 -1
- package/dist/apex/raw/locations/index.js +0 -1
- package/dist/apex/raw/locations/location-v30.d.ts +0 -645
- package/dist/apex/raw/locations/location-v30.js +0 -63
- package/dist/apex/raw/raw-apex-transaction-base.d.ts +0 -30
- package/dist/apex/raw/raw-apex-transaction-base.js +0 -13
- package/dist/apex/raw/raw-apex-transaction.d.ts +0 -3662
- package/dist/apex/raw/raw-apex-transaction.js +0 -21
- package/dist/apex/raw/sales/index.d.ts +0 -2
- package/dist/apex/raw/sales/index.js +0 -2
- package/dist/apex/raw/sales/refund-v30.d.ts +0 -769
- package/dist/apex/raw/sales/refund-v30.js +0 -74
- package/dist/apex/raw/sales/sale-v30.d.ts +0 -757
- package/dist/apex/raw/sales/sale-v30.js +0 -73
- package/dist/apex/raw/validations/index.d.ts +0 -2
- package/dist/apex/raw/validations/index.js +0 -2
- package/dist/apex/raw/validations/validation-v20.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v20.js +0 -85
- package/dist/apex/raw/validations/validation-v30.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v30.js +0 -85
- package/dist/apex/simplified/any-simplified-apex.d.ts +0 -8
- package/dist/apex/simplified/any-simplified-apex.js +0 -2
- package/dist/apex/simplified/apex-validation-status.d.ts +0 -145
- package/dist/apex/simplified/apex-validation-status.js +0 -76
- package/dist/apex/simplified/index.d.ts +0 -10
- package/dist/apex/simplified/index.js +0 -10
- package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +0 -81
- package/dist/apex/simplified/simplified-apex-banking-taps.js +0 -27
- package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +0 -55
- package/dist/apex/simplified/simplified-apex-inspection-decision.js +0 -18
- package/dist/apex/simplified/simplified-apex-inspection.d.ts +0 -82
- package/dist/apex/simplified/simplified-apex-inspection.js +0 -27
- package/dist/apex/simplified/simplified-apex-location.d.ts +0 -112
- package/dist/apex/simplified/simplified-apex-location.js +0 -20
- package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +0 -172
- package/dist/apex/simplified/simplified-apex-on-board-refund.js +0 -30
- package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +0 -178
- package/dist/apex/simplified/simplified-apex-on-board-sale.js +0 -31
- package/dist/apex/simplified/simplified-apex-type.d.ts +0 -9
- package/dist/apex/simplified/simplified-apex-type.js +0 -5
- package/dist/apex/simplified/simplified-apex-validation.d.ts +0 -200
- package/dist/apex/simplified/simplified-apex-validation.js +0 -41
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SimplifiedApexLocationSchema: z.ZodObject<Omit<{
|
|
3
|
-
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
10
|
-
agency_id: z.ZodString;
|
|
11
|
-
apex_version: z.ZodString;
|
|
12
|
-
device_id: z.ZodString;
|
|
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.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
18
|
-
stop_id: z.ZodString;
|
|
19
|
-
trip_id: z.ZodString;
|
|
20
|
-
vehicle_id: z.ZodNumber;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
_id: string;
|
|
23
|
-
created_at: number & {
|
|
24
|
-
__brand: "UnixTimestamp";
|
|
25
|
-
};
|
|
26
|
-
updated_at: number & {
|
|
27
|
-
__brand: "UnixTimestamp";
|
|
28
|
-
};
|
|
29
|
-
agency_id: string;
|
|
30
|
-
received_at: number & {
|
|
31
|
-
__brand: "UnixTimestamp";
|
|
32
|
-
};
|
|
33
|
-
apex_version: string;
|
|
34
|
-
device_id: string;
|
|
35
|
-
line_id: string;
|
|
36
|
-
mac_ase_counter_value: number;
|
|
37
|
-
mac_sam_serial_number: number;
|
|
38
|
-
pattern_id: string;
|
|
39
|
-
stop_id: string;
|
|
40
|
-
trip_id: string;
|
|
41
|
-
vehicle_id: number;
|
|
42
|
-
}, {
|
|
43
|
-
_id: string;
|
|
44
|
-
created_at: number;
|
|
45
|
-
updated_at: number;
|
|
46
|
-
agency_id: string;
|
|
47
|
-
received_at: number;
|
|
48
|
-
apex_version: string;
|
|
49
|
-
device_id: string;
|
|
50
|
-
line_id: string;
|
|
51
|
-
mac_ase_counter_value: number;
|
|
52
|
-
mac_sam_serial_number: number;
|
|
53
|
-
pattern_id: string;
|
|
54
|
-
stop_id: string;
|
|
55
|
-
trip_id: string;
|
|
56
|
-
vehicle_id: number;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
|
|
59
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
60
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
61
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
62
|
-
agency_id: z.ZodOptional<z.ZodString>;
|
|
63
|
-
apex_version: z.ZodOptional<z.ZodString>;
|
|
64
|
-
device_id: z.ZodOptional<z.ZodString>;
|
|
65
|
-
line_id: z.ZodOptional<z.ZodString>;
|
|
66
|
-
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
68
|
-
pattern_id: z.ZodOptional<z.ZodString>;
|
|
69
|
-
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
70
|
-
stop_id: z.ZodOptional<z.ZodString>;
|
|
71
|
-
trip_id: z.ZodOptional<z.ZodString>;
|
|
72
|
-
vehicle_id: z.ZodOptional<z.ZodNumber>;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
_id?: string | undefined;
|
|
75
|
-
created_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
76
|
-
updated_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
77
|
-
agency_id?: string | undefined;
|
|
78
|
-
received_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
79
|
-
apex_version?: string | undefined;
|
|
80
|
-
device_id?: string | undefined;
|
|
81
|
-
line_id?: string | undefined;
|
|
82
|
-
mac_ase_counter_value?: number | undefined;
|
|
83
|
-
mac_sam_serial_number?: number | undefined;
|
|
84
|
-
pattern_id?: string | undefined;
|
|
85
|
-
stop_id?: string | undefined;
|
|
86
|
-
trip_id?: string | undefined;
|
|
87
|
-
vehicle_id?: number | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
_id?: string | undefined;
|
|
90
|
-
created_at?: number | undefined;
|
|
91
|
-
updated_at?: number | undefined;
|
|
92
|
-
agency_id?: string | undefined;
|
|
93
|
-
received_at?: number | undefined;
|
|
94
|
-
apex_version?: string | undefined;
|
|
95
|
-
device_id?: string | undefined;
|
|
96
|
-
line_id?: string | undefined;
|
|
97
|
-
mac_ase_counter_value?: number | undefined;
|
|
98
|
-
mac_sam_serial_number?: number | undefined;
|
|
99
|
-
pattern_id?: string | undefined;
|
|
100
|
-
stop_id?: string | undefined;
|
|
101
|
-
trip_id?: string | undefined;
|
|
102
|
-
vehicle_id?: number | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* APEX Locations are APEX transactions of type 19 that are generated every time the
|
|
106
|
-
* setContext or setLocation functions are called. These functions are used to set
|
|
107
|
-
* the service context of the validator machine, allowing for the correct sale and validation
|
|
108
|
-
* of products. In summary, these transactions are generated every time the vehicle has a change
|
|
109
|
-
* in the current stop ID, trip ID, route ID, pattern ID, etc.
|
|
110
|
-
*/
|
|
111
|
-
export type SimplifiedApexLocation = z.infer<typeof SimplifiedApexLocationSchema>;
|
|
112
|
-
export type UpdateSimplifiedApexLocationDto = z.infer<typeof UpdateSimplifiedApexLocationSchema>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { DocumentSchema, UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const SimplifiedApexLocationSchema = DocumentSchema
|
|
6
|
-
.omit({ created_by: true, is_locked: true, updated_by: true })
|
|
7
|
-
.extend({
|
|
8
|
-
agency_id: z.string(),
|
|
9
|
-
apex_version: z.string(),
|
|
10
|
-
device_id: z.string(),
|
|
11
|
-
line_id: z.string(),
|
|
12
|
-
mac_ase_counter_value: z.number(),
|
|
13
|
-
mac_sam_serial_number: z.number(),
|
|
14
|
-
pattern_id: z.string(),
|
|
15
|
-
received_at: UnixTimestampSchema,
|
|
16
|
-
stop_id: z.string(),
|
|
17
|
-
trip_id: z.string(),
|
|
18
|
-
vehicle_id: z.number(),
|
|
19
|
-
});
|
|
20
|
-
export const UpdateSimplifiedApexLocationSchema = SimplifiedApexLocationSchema.partial();
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<Omit<{
|
|
3
|
-
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
10
|
-
agency_id: z.ZodString;
|
|
11
|
-
apex_version: z.ZodString;
|
|
12
|
-
block_id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
card_physical_type: z.ZodNumber;
|
|
14
|
-
card_serial_number: z.ZodString;
|
|
15
|
-
device_id: z.ZodString;
|
|
16
|
-
duty_id: z.ZodNullable<z.ZodString>;
|
|
17
|
-
line_id: z.ZodNullable<z.ZodString>;
|
|
18
|
-
mac_ase_counter_value: z.ZodNumber;
|
|
19
|
-
mac_sam_serial_number: z.ZodNumber;
|
|
20
|
-
on_board_sale_id: z.ZodNullable<z.ZodString>;
|
|
21
|
-
pattern_id: z.ZodNullable<z.ZodString>;
|
|
22
|
-
payment_method: z.ZodNumber;
|
|
23
|
-
price: z.ZodNumber;
|
|
24
|
-
product_long_id: z.ZodString;
|
|
25
|
-
product_quantity: z.ZodNumber;
|
|
26
|
-
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
27
|
-
stop_id: z.ZodNullable<z.ZodString>;
|
|
28
|
-
trip_id: z.ZodNullable<z.ZodString>;
|
|
29
|
-
validation_id: z.ZodNullable<z.ZodString>;
|
|
30
|
-
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
_id: string;
|
|
33
|
-
created_at: number & {
|
|
34
|
-
__brand: "UnixTimestamp";
|
|
35
|
-
};
|
|
36
|
-
updated_at: number & {
|
|
37
|
-
__brand: "UnixTimestamp";
|
|
38
|
-
};
|
|
39
|
-
agency_id: string;
|
|
40
|
-
received_at: number & {
|
|
41
|
-
__brand: "UnixTimestamp";
|
|
42
|
-
};
|
|
43
|
-
price: number;
|
|
44
|
-
apex_version: string;
|
|
45
|
-
device_id: string;
|
|
46
|
-
line_id: string | null;
|
|
47
|
-
mac_ase_counter_value: number;
|
|
48
|
-
mac_sam_serial_number: number;
|
|
49
|
-
pattern_id: string | null;
|
|
50
|
-
stop_id: string | null;
|
|
51
|
-
trip_id: string | null;
|
|
52
|
-
vehicle_id: number | null;
|
|
53
|
-
card_serial_number: string;
|
|
54
|
-
block_id: string | null;
|
|
55
|
-
card_physical_type: number;
|
|
56
|
-
duty_id: string | null;
|
|
57
|
-
on_board_sale_id: string | null;
|
|
58
|
-
payment_method: number;
|
|
59
|
-
product_long_id: string;
|
|
60
|
-
product_quantity: number;
|
|
61
|
-
validation_id: string | null;
|
|
62
|
-
}, {
|
|
63
|
-
_id: string;
|
|
64
|
-
created_at: number;
|
|
65
|
-
updated_at: number;
|
|
66
|
-
agency_id: string;
|
|
67
|
-
received_at: number;
|
|
68
|
-
price: number;
|
|
69
|
-
apex_version: string;
|
|
70
|
-
device_id: string;
|
|
71
|
-
line_id: string | null;
|
|
72
|
-
mac_ase_counter_value: number;
|
|
73
|
-
mac_sam_serial_number: number;
|
|
74
|
-
pattern_id: string | null;
|
|
75
|
-
stop_id: string | null;
|
|
76
|
-
trip_id: string | null;
|
|
77
|
-
vehicle_id: number | null;
|
|
78
|
-
card_serial_number: string;
|
|
79
|
-
block_id: string | null;
|
|
80
|
-
card_physical_type: number;
|
|
81
|
-
duty_id: string | null;
|
|
82
|
-
on_board_sale_id: string | null;
|
|
83
|
-
payment_method: number;
|
|
84
|
-
product_long_id: string;
|
|
85
|
-
product_quantity: number;
|
|
86
|
-
validation_id: string | null;
|
|
87
|
-
}>;
|
|
88
|
-
export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
|
|
89
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
90
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
91
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
92
|
-
agency_id: z.ZodOptional<z.ZodString>;
|
|
93
|
-
apex_version: z.ZodOptional<z.ZodString>;
|
|
94
|
-
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
-
card_physical_type: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
97
|
-
device_id: z.ZodOptional<z.ZodString>;
|
|
98
|
-
duty_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
-
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
101
|
-
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
on_board_sale_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
-
pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
payment_method: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
price: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
product_long_id: z.ZodOptional<z.ZodString>;
|
|
107
|
-
product_quantity: z.ZodOptional<z.ZodNumber>;
|
|
108
|
-
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
109
|
-
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
-
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
_id?: string | undefined;
|
|
115
|
-
created_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
116
|
-
updated_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
117
|
-
agency_id?: string | undefined;
|
|
118
|
-
received_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
119
|
-
price?: number | undefined;
|
|
120
|
-
apex_version?: string | undefined;
|
|
121
|
-
device_id?: string | undefined;
|
|
122
|
-
line_id?: string | null | undefined;
|
|
123
|
-
mac_ase_counter_value?: number | undefined;
|
|
124
|
-
mac_sam_serial_number?: number | undefined;
|
|
125
|
-
pattern_id?: string | null | undefined;
|
|
126
|
-
stop_id?: string | null | undefined;
|
|
127
|
-
trip_id?: string | null | undefined;
|
|
128
|
-
vehicle_id?: number | null | undefined;
|
|
129
|
-
card_serial_number?: string | undefined;
|
|
130
|
-
block_id?: string | null | undefined;
|
|
131
|
-
card_physical_type?: number | undefined;
|
|
132
|
-
duty_id?: string | null | undefined;
|
|
133
|
-
on_board_sale_id?: string | null | undefined;
|
|
134
|
-
payment_method?: number | undefined;
|
|
135
|
-
product_long_id?: string | undefined;
|
|
136
|
-
product_quantity?: number | undefined;
|
|
137
|
-
validation_id?: string | null | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
_id?: string | undefined;
|
|
140
|
-
created_at?: number | undefined;
|
|
141
|
-
updated_at?: number | undefined;
|
|
142
|
-
agency_id?: string | undefined;
|
|
143
|
-
received_at?: number | undefined;
|
|
144
|
-
price?: number | undefined;
|
|
145
|
-
apex_version?: string | undefined;
|
|
146
|
-
device_id?: string | undefined;
|
|
147
|
-
line_id?: string | null | undefined;
|
|
148
|
-
mac_ase_counter_value?: number | undefined;
|
|
149
|
-
mac_sam_serial_number?: number | undefined;
|
|
150
|
-
pattern_id?: string | null | undefined;
|
|
151
|
-
stop_id?: string | null | undefined;
|
|
152
|
-
trip_id?: string | null | undefined;
|
|
153
|
-
vehicle_id?: number | null | undefined;
|
|
154
|
-
card_serial_number?: string | undefined;
|
|
155
|
-
block_id?: string | null | undefined;
|
|
156
|
-
card_physical_type?: number | undefined;
|
|
157
|
-
duty_id?: string | null | undefined;
|
|
158
|
-
on_board_sale_id?: string | null | undefined;
|
|
159
|
-
payment_method?: number | undefined;
|
|
160
|
-
product_long_id?: string | undefined;
|
|
161
|
-
product_quantity?: number | undefined;
|
|
162
|
-
validation_id?: string | null | undefined;
|
|
163
|
-
}>;
|
|
164
|
-
/**
|
|
165
|
-
* APEX OnBoard Refunds are APEX transactions of type 3 that are generated whenever a sale
|
|
166
|
-
* of an on-board ticket occurs. Even though sales can be of anything (tickets, cards, contracts, merchandising items)
|
|
167
|
-
* and anywhere (inside vehicles, at vending machines, at ticket offices or online), here they are already filtered
|
|
168
|
-
* for on-board ticket sales inside vehicles only. Refunds of tickets when inside vehicles also generate a validation transaction.
|
|
169
|
-
* Refunds can be refunded, and refunds are also APEX transactions of type 3.
|
|
170
|
-
*/
|
|
171
|
-
export type SimplifiedApexOnBoardRefund = z.infer<typeof SimplifiedApexOnBoardRefundSchema>;
|
|
172
|
-
export type UpdateSimplifiedApexOnBoardRefundDto = z.infer<typeof UpdateSimplifiedApexOnBoardRefundSchema>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { DocumentSchema, UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const SimplifiedApexOnBoardRefundSchema = DocumentSchema
|
|
6
|
-
.omit({ created_by: true, is_locked: true, updated_by: true })
|
|
7
|
-
.extend({
|
|
8
|
-
agency_id: z.string(),
|
|
9
|
-
apex_version: z.string(),
|
|
10
|
-
block_id: z.string().nullable(),
|
|
11
|
-
card_physical_type: z.number(),
|
|
12
|
-
card_serial_number: z.string(),
|
|
13
|
-
device_id: z.string(),
|
|
14
|
-
duty_id: z.string().nullable(),
|
|
15
|
-
line_id: z.string().nullable(),
|
|
16
|
-
mac_ase_counter_value: z.number(),
|
|
17
|
-
mac_sam_serial_number: z.number(),
|
|
18
|
-
on_board_sale_id: z.string().nullable(),
|
|
19
|
-
pattern_id: z.string().nullable(),
|
|
20
|
-
payment_method: z.number(),
|
|
21
|
-
price: z.number(),
|
|
22
|
-
product_long_id: z.string(),
|
|
23
|
-
product_quantity: z.number(),
|
|
24
|
-
received_at: UnixTimestampSchema,
|
|
25
|
-
stop_id: z.string().nullable(),
|
|
26
|
-
trip_id: z.string().nullable(),
|
|
27
|
-
validation_id: z.string().nullable(),
|
|
28
|
-
vehicle_id: z.number().nullable(),
|
|
29
|
-
});
|
|
30
|
-
export const UpdateSimplifiedApexOnBoardRefundSchema = SimplifiedApexOnBoardRefundSchema.partial();
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<Omit<{
|
|
3
|
-
_id: z.ZodString;
|
|
4
|
-
created_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
5
|
-
created_by: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6
|
-
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
-
updated_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
8
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "created_by" | "is_locked" | "updated_by"> & {
|
|
10
|
-
agency_id: z.ZodString;
|
|
11
|
-
apex_version: z.ZodString;
|
|
12
|
-
block_id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
card_physical_type: z.ZodNumber;
|
|
14
|
-
card_serial_number: z.ZodString;
|
|
15
|
-
device_id: z.ZodString;
|
|
16
|
-
duty_id: z.ZodNullable<z.ZodString>;
|
|
17
|
-
is_passenger: z.ZodBoolean;
|
|
18
|
-
line_id: z.ZodNullable<z.ZodString>;
|
|
19
|
-
mac_ase_counter_value: z.ZodNumber;
|
|
20
|
-
mac_sam_serial_number: z.ZodNumber;
|
|
21
|
-
on_board_refund_id: z.ZodNullable<z.ZodString>;
|
|
22
|
-
pattern_id: z.ZodNullable<z.ZodString>;
|
|
23
|
-
payment_method: z.ZodNumber;
|
|
24
|
-
price: z.ZodNumber;
|
|
25
|
-
product_long_id: z.ZodString;
|
|
26
|
-
product_quantity: z.ZodNumber;
|
|
27
|
-
received_at: z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>;
|
|
28
|
-
stop_id: z.ZodNullable<z.ZodString>;
|
|
29
|
-
trip_id: z.ZodNullable<z.ZodString>;
|
|
30
|
-
validation_id: z.ZodNullable<z.ZodString>;
|
|
31
|
-
vehicle_id: z.ZodNullable<z.ZodNumber>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
_id: string;
|
|
34
|
-
created_at: number & {
|
|
35
|
-
__brand: "UnixTimestamp";
|
|
36
|
-
};
|
|
37
|
-
updated_at: number & {
|
|
38
|
-
__brand: "UnixTimestamp";
|
|
39
|
-
};
|
|
40
|
-
agency_id: string;
|
|
41
|
-
received_at: number & {
|
|
42
|
-
__brand: "UnixTimestamp";
|
|
43
|
-
};
|
|
44
|
-
price: number;
|
|
45
|
-
apex_version: string;
|
|
46
|
-
device_id: string;
|
|
47
|
-
line_id: string | null;
|
|
48
|
-
mac_ase_counter_value: number;
|
|
49
|
-
mac_sam_serial_number: number;
|
|
50
|
-
pattern_id: string | null;
|
|
51
|
-
stop_id: string | null;
|
|
52
|
-
trip_id: string | null;
|
|
53
|
-
vehicle_id: number | null;
|
|
54
|
-
card_serial_number: string;
|
|
55
|
-
block_id: string | null;
|
|
56
|
-
card_physical_type: number;
|
|
57
|
-
duty_id: string | null;
|
|
58
|
-
payment_method: number;
|
|
59
|
-
product_long_id: string;
|
|
60
|
-
product_quantity: number;
|
|
61
|
-
validation_id: string | null;
|
|
62
|
-
is_passenger: boolean;
|
|
63
|
-
on_board_refund_id: string | null;
|
|
64
|
-
}, {
|
|
65
|
-
_id: string;
|
|
66
|
-
created_at: number;
|
|
67
|
-
updated_at: number;
|
|
68
|
-
agency_id: string;
|
|
69
|
-
received_at: number;
|
|
70
|
-
price: number;
|
|
71
|
-
apex_version: string;
|
|
72
|
-
device_id: string;
|
|
73
|
-
line_id: string | null;
|
|
74
|
-
mac_ase_counter_value: number;
|
|
75
|
-
mac_sam_serial_number: number;
|
|
76
|
-
pattern_id: string | null;
|
|
77
|
-
stop_id: string | null;
|
|
78
|
-
trip_id: string | null;
|
|
79
|
-
vehicle_id: number | null;
|
|
80
|
-
card_serial_number: string;
|
|
81
|
-
block_id: string | null;
|
|
82
|
-
card_physical_type: number;
|
|
83
|
-
duty_id: string | null;
|
|
84
|
-
payment_method: number;
|
|
85
|
-
product_long_id: string;
|
|
86
|
-
product_quantity: number;
|
|
87
|
-
validation_id: string | null;
|
|
88
|
-
is_passenger: boolean;
|
|
89
|
-
on_board_refund_id: string | null;
|
|
90
|
-
}>;
|
|
91
|
-
export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
|
|
92
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
93
|
-
created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
94
|
-
updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
95
|
-
agency_id: z.ZodOptional<z.ZodString>;
|
|
96
|
-
apex_version: z.ZodOptional<z.ZodString>;
|
|
97
|
-
block_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
card_physical_type: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
card_serial_number: z.ZodOptional<z.ZodString>;
|
|
100
|
-
device_id: z.ZodOptional<z.ZodString>;
|
|
101
|
-
duty_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
-
is_passenger: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
mac_ase_counter_value: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
mac_sam_serial_number: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
on_board_refund_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
-
pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
-
payment_method: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
price: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
product_long_id: z.ZodOptional<z.ZodString>;
|
|
111
|
-
product_quantity: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
received_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, import("@tmlmobilidade/go-types-shared").UnixTimestamp, number>>;
|
|
113
|
-
stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
-
vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
117
|
-
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
_id?: string | undefined;
|
|
119
|
-
created_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
120
|
-
updated_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
121
|
-
agency_id?: string | undefined;
|
|
122
|
-
received_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | undefined;
|
|
123
|
-
price?: number | undefined;
|
|
124
|
-
apex_version?: string | undefined;
|
|
125
|
-
device_id?: string | undefined;
|
|
126
|
-
line_id?: string | null | undefined;
|
|
127
|
-
mac_ase_counter_value?: number | undefined;
|
|
128
|
-
mac_sam_serial_number?: number | undefined;
|
|
129
|
-
pattern_id?: string | null | undefined;
|
|
130
|
-
stop_id?: string | null | undefined;
|
|
131
|
-
trip_id?: string | null | undefined;
|
|
132
|
-
vehicle_id?: number | null | undefined;
|
|
133
|
-
card_serial_number?: string | undefined;
|
|
134
|
-
block_id?: string | null | undefined;
|
|
135
|
-
card_physical_type?: number | undefined;
|
|
136
|
-
duty_id?: string | null | undefined;
|
|
137
|
-
payment_method?: number | undefined;
|
|
138
|
-
product_long_id?: string | undefined;
|
|
139
|
-
product_quantity?: number | undefined;
|
|
140
|
-
validation_id?: string | null | undefined;
|
|
141
|
-
is_passenger?: boolean | undefined;
|
|
142
|
-
on_board_refund_id?: string | null | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
_id?: string | undefined;
|
|
145
|
-
created_at?: number | undefined;
|
|
146
|
-
updated_at?: number | undefined;
|
|
147
|
-
agency_id?: string | undefined;
|
|
148
|
-
received_at?: number | undefined;
|
|
149
|
-
price?: number | undefined;
|
|
150
|
-
apex_version?: string | undefined;
|
|
151
|
-
device_id?: string | undefined;
|
|
152
|
-
line_id?: string | null | undefined;
|
|
153
|
-
mac_ase_counter_value?: number | undefined;
|
|
154
|
-
mac_sam_serial_number?: number | undefined;
|
|
155
|
-
pattern_id?: string | null | undefined;
|
|
156
|
-
stop_id?: string | null | undefined;
|
|
157
|
-
trip_id?: string | null | undefined;
|
|
158
|
-
vehicle_id?: number | null | undefined;
|
|
159
|
-
card_serial_number?: string | undefined;
|
|
160
|
-
block_id?: string | null | undefined;
|
|
161
|
-
card_physical_type?: number | undefined;
|
|
162
|
-
duty_id?: string | null | undefined;
|
|
163
|
-
payment_method?: number | undefined;
|
|
164
|
-
product_long_id?: string | undefined;
|
|
165
|
-
product_quantity?: number | undefined;
|
|
166
|
-
validation_id?: string | null | undefined;
|
|
167
|
-
is_passenger?: boolean | undefined;
|
|
168
|
-
on_board_refund_id?: string | null | undefined;
|
|
169
|
-
}>;
|
|
170
|
-
/**
|
|
171
|
-
* APEX OnBoard Sales are APEX transactions of type 3 that are generated whenever a sale
|
|
172
|
-
* of an on-board ticket occurs. Even though sales can be of anything (tickets, cards, contracts, merchandising items)
|
|
173
|
-
* and anywhere (inside vehicles, at vending machines, at ticket offices or online), here they are already filtered
|
|
174
|
-
* for on-board ticket sales inside vehicles only. Sales of tickets when inside vehicles also generate a validation transaction.
|
|
175
|
-
* Sales can be refunded, and refunds are also APEX transactions of type 3.
|
|
176
|
-
*/
|
|
177
|
-
export type SimplifiedApexOnBoardSale = z.infer<typeof SimplifiedApexOnBoardSaleSchema>;
|
|
178
|
-
export type UpdateSimplifiedApexOnBoardSaleDto = z.infer<typeof UpdateSimplifiedApexOnBoardSaleSchema>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* * */
|
|
2
|
-
import { DocumentSchema, UnixTimestampSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
/* * */
|
|
5
|
-
export const SimplifiedApexOnBoardSaleSchema = DocumentSchema
|
|
6
|
-
.omit({ created_by: true, is_locked: true, updated_by: true })
|
|
7
|
-
.extend({
|
|
8
|
-
agency_id: z.string(),
|
|
9
|
-
apex_version: z.string(),
|
|
10
|
-
block_id: z.string().nullable(),
|
|
11
|
-
card_physical_type: z.number(),
|
|
12
|
-
card_serial_number: z.string(),
|
|
13
|
-
device_id: z.string(),
|
|
14
|
-
duty_id: z.string().nullable(),
|
|
15
|
-
is_passenger: z.boolean(),
|
|
16
|
-
line_id: z.string().nullable(),
|
|
17
|
-
mac_ase_counter_value: z.number(),
|
|
18
|
-
mac_sam_serial_number: z.number(),
|
|
19
|
-
on_board_refund_id: z.string().nullable(),
|
|
20
|
-
pattern_id: z.string().nullable(),
|
|
21
|
-
payment_method: z.number(),
|
|
22
|
-
price: z.number(),
|
|
23
|
-
product_long_id: z.string(),
|
|
24
|
-
product_quantity: z.number(),
|
|
25
|
-
received_at: UnixTimestampSchema,
|
|
26
|
-
stop_id: z.string().nullable(),
|
|
27
|
-
trip_id: z.string().nullable(),
|
|
28
|
-
validation_id: z.string().nullable(),
|
|
29
|
-
vehicle_id: z.number().nullable(),
|
|
30
|
-
});
|
|
31
|
-
export const UpdateSimplifiedApexOnBoardSaleSchema = SimplifiedApexOnBoardSaleSchema.partial();
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SIMPLIFIED_APEX_TYPE_OPTIONS: readonly ["location", "on_board_refund", "on_board_sale", "validation"];
|
|
3
|
-
export declare const SimplifiedApexTypeSchema: z.ZodEnum<["location", "on_board_refund", "on_board_sale", "validation"]>;
|
|
4
|
-
/**
|
|
5
|
-
* This type should be used to represent the processing status
|
|
6
|
-
* of various operations. It can be used in APIs, database operations,
|
|
7
|
-
* or any other context where a processing status needs to be communicated.
|
|
8
|
-
*/
|
|
9
|
-
export type SimplifiedApexType = z.infer<typeof SimplifiedApexTypeSchema>;
|