@tmlmobilidade/types 20251016.1108.21 → 20251017.932.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,20 @@
1
- import { DemandByLineByMonthSchema, DemandByLineByYearSchema } from './demand.js';
1
+ import { DemandByAgencyByDaySchema, DemandByAgencyByMonthSchema, DemandByAgencyByYearSchema, DemandByLineByDaySchema, DemandByLineByMonthSchema, DemandByLineByYearSchema, DemandByPatternByDaySchema, DemandByPatternByMonthSchema, DemandByPatternByYearSchema, DemandByPatternHourByMonthSchema, DemandByPatternHourByYearSchema, MeanDemandByLineByMonthSchema, TopDemandByAgencySchema, TopMeanDemandByLineByMonthSchema } from './demand.js';
2
2
  import { z } from 'zod';
3
3
  /* * */
4
4
  export const MetricSchema = z.discriminatedUnion('metric', [
5
5
  DemandByLineByYearSchema,
6
6
  DemandByLineByMonthSchema,
7
+ DemandByLineByDaySchema,
8
+ DemandByPatternByYearSchema,
9
+ DemandByPatternByMonthSchema,
10
+ DemandByPatternByDaySchema,
11
+ DemandByPatternHourByYearSchema,
12
+ DemandByPatternHourByMonthSchema,
13
+ DemandByAgencyByYearSchema,
14
+ DemandByAgencyByMonthSchema,
15
+ DemandByAgencyByDaySchema,
16
+ TopDemandByAgencySchema,
17
+ MeanDemandByLineByMonthSchema,
18
+ TopMeanDemandByLineByMonthSchema,
7
19
  ]);
20
+ export { MetricBasePropertiesSchema } from './common.js';
@@ -489,6 +489,7 @@ export declare const RideSchema: z.ZodObject<{
489
489
  };
490
490
  agency_id: string;
491
491
  line_id: number;
492
+ pattern_id: string;
492
493
  analysis: {
493
494
  EXPECTED_DRIVER_ID_QTY: {
494
495
  value: number | null;
@@ -607,7 +608,6 @@ export declare const RideSchema: z.ZodObject<{
607
608
  passengers_observed_prepaid_amount: number | null;
608
609
  passengers_observed_prepaid_qty: number | null;
609
610
  passengers_observed_subscription_qty: number | null;
610
- pattern_id: string;
611
611
  plan_id: string;
612
612
  route_id: string;
613
613
  seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
@@ -627,6 +627,7 @@ export declare const RideSchema: z.ZodObject<{
627
627
  updated_at: number;
628
628
  agency_id: string;
629
629
  line_id: number;
630
+ pattern_id: string;
630
631
  analysis: {
631
632
  EXPECTED_DRIVER_ID_QTY: {
632
633
  value: number | null;
@@ -741,7 +742,6 @@ export declare const RideSchema: z.ZodObject<{
741
742
  passengers_observed_prepaid_amount: number | null;
742
743
  passengers_observed_prepaid_qty: number | null;
743
744
  passengers_observed_subscription_qty: number | null;
744
- pattern_id: string;
745
745
  plan_id: string;
746
746
  route_id: string;
747
747
  seen_first_at: number | null;
@@ -762,6 +762,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
762
762
  updated_by: z.ZodOptional<z.ZodString>;
763
763
  agency_id: z.ZodString;
764
764
  line_id: z.ZodNumber;
765
+ pattern_id: z.ZodString;
765
766
  analysis: z.ZodNullable<z.ZodObject<{
766
767
  AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
767
768
  error_message: z.ZodOptional<z.ZodString>;
@@ -1223,7 +1224,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1223
1224
  passengers_observed_prepaid_amount: z.ZodNullable<z.ZodNumber>;
1224
1225
  passengers_observed_prepaid_qty: z.ZodNullable<z.ZodNumber>;
1225
1226
  passengers_observed_subscription_qty: z.ZodNullable<z.ZodNumber>;
1226
- pattern_id: z.ZodString;
1227
1227
  plan_id: z.ZodString;
1228
1228
  route_id: z.ZodString;
1229
1229
  seen_first_at: z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>;
@@ -1236,6 +1236,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1236
1236
  }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
1237
1237
  agency_id: string;
1238
1238
  line_id: number;
1239
+ pattern_id: string;
1239
1240
  analysis: {
1240
1241
  EXPECTED_DRIVER_ID_QTY: {
1241
1242
  value: number | null;
@@ -1354,7 +1355,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1354
1355
  passengers_observed_prepaid_amount: number | null;
1355
1356
  passengers_observed_prepaid_qty: number | null;
1356
1357
  passengers_observed_subscription_qty: number | null;
1357
- pattern_id: string;
1358
1358
  plan_id: string;
1359
1359
  route_id: string;
1360
1360
  seen_first_at: import("../_common/unix-timestamp.js").UnixTimestamp | null;
@@ -1372,6 +1372,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1372
1372
  }, {
1373
1373
  agency_id: string;
1374
1374
  line_id: number;
1375
+ pattern_id: string;
1375
1376
  analysis: {
1376
1377
  EXPECTED_DRIVER_ID_QTY: {
1377
1378
  value: number | null;
@@ -1486,7 +1487,6 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1486
1487
  passengers_observed_prepaid_amount: number | null;
1487
1488
  passengers_observed_prepaid_qty: number | null;
1488
1489
  passengers_observed_subscription_qty: number | null;
1489
- pattern_id: string;
1490
1490
  plan_id: string;
1491
1491
  route_id: string;
1492
1492
  seen_first_at: number | null;
@@ -1505,6 +1505,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1505
1505
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1506
1506
  agency_id: z.ZodOptional<z.ZodString>;
1507
1507
  line_id: z.ZodOptional<z.ZodNumber>;
1508
+ pattern_id: z.ZodOptional<z.ZodString>;
1508
1509
  analysis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1509
1510
  AT_LEAST_ONE_VEHICLE_EVENT_ON_FIRST_STOP: z.ZodObject<{
1510
1511
  error_message: z.ZodOptional<z.ZodString>;
@@ -1966,7 +1967,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
1966
1967
  passengers_observed_prepaid_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1967
1968
  passengers_observed_prepaid_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1968
1969
  passengers_observed_subscription_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1969
- pattern_id: z.ZodOptional<z.ZodString>;
1970
1970
  plan_id: z.ZodOptional<z.ZodString>;
1971
1971
  route_id: z.ZodOptional<z.ZodString>;
1972
1972
  seen_first_at: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>>>;
@@ -1981,6 +1981,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1981
1981
  updated_by?: string | undefined;
1982
1982
  agency_id?: string | undefined;
1983
1983
  line_id?: number | undefined;
1984
+ pattern_id?: string | undefined;
1984
1985
  analysis?: {
1985
1986
  EXPECTED_DRIVER_ID_QTY: {
1986
1987
  value: number | null;
@@ -2095,7 +2096,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
2095
2096
  passengers_observed_prepaid_amount?: number | null | undefined;
2096
2097
  passengers_observed_prepaid_qty?: number | null | undefined;
2097
2098
  passengers_observed_subscription_qty?: number | null | undefined;
2098
- pattern_id?: string | undefined;
2099
2099
  plan_id?: string | undefined;
2100
2100
  route_id?: string | undefined;
2101
2101
  seen_first_at?: import("../_common/unix-timestamp.js").UnixTimestamp | null | undefined;
@@ -2110,6 +2110,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2110
2110
  updated_by?: string | undefined;
2111
2111
  agency_id?: string | undefined;
2112
2112
  line_id?: number | undefined;
2113
+ pattern_id?: string | undefined;
2113
2114
  analysis?: {
2114
2115
  EXPECTED_DRIVER_ID_QTY: {
2115
2116
  value: number | null;
@@ -2224,7 +2225,6 @@ export declare const UpdateRideSchema: z.ZodObject<{
2224
2225
  passengers_observed_prepaid_amount?: number | null | undefined;
2225
2226
  passengers_observed_prepaid_qty?: number | null | undefined;
2226
2227
  passengers_observed_subscription_qty?: number | null | undefined;
2227
- pattern_id?: string | undefined;
2228
2228
  plan_id?: string | undefined;
2229
2229
  route_id?: string | undefined;
2230
2230
  seen_first_at?: number | null | undefined;
@@ -37,8 +37,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
37
37
  };
38
38
  agency_id: string;
39
39
  line_id: string | null;
40
- validation_id: string | null;
41
40
  pattern_id: string | null;
41
+ validation_id: string | null;
42
42
  trip_id: string | null;
43
43
  apex_version: string;
44
44
  device_id: string;
@@ -66,8 +66,8 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
66
66
  updated_at: number;
67
67
  agency_id: string;
68
68
  line_id: string | null;
69
- validation_id: string | null;
70
69
  pattern_id: string | null;
70
+ validation_id: string | null;
71
71
  trip_id: string | null;
72
72
  apex_version: string;
73
73
  device_id: string;
@@ -123,8 +123,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
123
123
  updated_by?: string | undefined;
124
124
  agency_id?: string | undefined;
125
125
  line_id?: string | null | undefined;
126
- validation_id?: string | null | undefined;
127
126
  pattern_id?: string | null | undefined;
127
+ validation_id?: string | null | undefined;
128
128
  trip_id?: string | null | undefined;
129
129
  apex_version?: string | undefined;
130
130
  device_id?: string | undefined;
@@ -150,8 +150,8 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
150
150
  updated_by?: string | undefined;
151
151
  agency_id?: string | undefined;
152
152
  line_id?: string | null | undefined;
153
- validation_id?: string | null | undefined;
154
153
  pattern_id?: string | null | undefined;
154
+ validation_id?: string | null | undefined;
155
155
  trip_id?: string | null | undefined;
156
156
  apex_version?: string | undefined;
157
157
  device_id?: string | undefined;
@@ -38,8 +38,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
38
38
  };
39
39
  agency_id: string;
40
40
  line_id: string | null;
41
- validation_id: string | null;
42
41
  pattern_id: string | null;
42
+ validation_id: string | null;
43
43
  trip_id: string | null;
44
44
  apex_version: string;
45
45
  device_id: string;
@@ -68,8 +68,8 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
68
68
  updated_at: number;
69
69
  agency_id: string;
70
70
  line_id: string | null;
71
- validation_id: string | null;
72
71
  pattern_id: string | null;
72
+ validation_id: string | null;
73
73
  trip_id: string | null;
74
74
  apex_version: string;
75
75
  device_id: string;
@@ -98,8 +98,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
98
98
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
99
99
  agency_id: z.ZodOptional<z.ZodString>;
100
100
  line_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
101
  pattern_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ validation_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
103
  trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
104
  apex_version: z.ZodOptional<z.ZodString>;
105
105
  device_id: z.ZodOptional<z.ZodString>;
@@ -125,8 +125,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
125
125
  updated_by?: string | undefined;
126
126
  agency_id?: string | undefined;
127
127
  line_id?: string | null | undefined;
128
- validation_id?: string | null | undefined;
129
128
  pattern_id?: string | null | undefined;
129
+ validation_id?: string | null | undefined;
130
130
  trip_id?: string | null | undefined;
131
131
  apex_version?: string | undefined;
132
132
  device_id?: string | undefined;
@@ -152,8 +152,8 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
152
152
  updated_by?: string | undefined;
153
153
  agency_id?: string | undefined;
154
154
  line_id?: string | null | undefined;
155
- validation_id?: string | null | undefined;
156
155
  pattern_id?: string | null | undefined;
156
+ validation_id?: string | null | undefined;
157
157
  trip_id?: string | null | undefined;
158
158
  apex_version?: string | undefined;
159
159
  device_id?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20251016.1108.21",
3
+ "version": "20251017.932.51",
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",