@tmlmobilidade/types 20250902.1310.34 → 20250902.1443.39

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.
@@ -451,10 +451,7 @@ export declare const RideSchema: z.ZodObject<{
451
451
  apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
452
452
  apex_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
453
453
  apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
454
- apex_validations_prepaid_amount: z.ZodNullable<z.ZodNumber>;
455
- apex_validations_prepaid_qty: z.ZodNullable<z.ZodNumber>;
456
454
  apex_validations_qty: z.ZodNullable<z.ZodNumber>;
457
- apex_validations_subscription_qty: z.ZodNullable<z.ZodNumber>;
458
455
  driver_ids: z.ZodArray<z.ZodString, "many">;
459
456
  end_time_observed: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
460
457
  end_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
@@ -483,7 +480,7 @@ export declare const RideSchema: z.ZodObject<{
483
480
  system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
484
481
  trip_id: z.ZodString;
485
482
  vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
486
- }, "strict", z.ZodTypeAny, {
483
+ }, "strip", z.ZodTypeAny, {
487
484
  _id: string;
488
485
  agency_id: string;
489
486
  line_id: number;
@@ -585,10 +582,7 @@ export declare const RideSchema: z.ZodObject<{
585
582
  apex_on_board_refunds_qty: number | null;
586
583
  apex_on_board_sales_amount: number | null;
587
584
  apex_on_board_sales_qty: number | null;
588
- apex_validations_prepaid_amount: number | null;
589
- apex_validations_prepaid_qty: number | null;
590
585
  apex_validations_qty: number | null;
591
- apex_validations_subscription_qty: number | null;
592
586
  driver_ids: string[];
593
587
  end_time_observed: (number & {
594
588
  __brand: "UnixTimestamp";
@@ -737,10 +731,7 @@ export declare const RideSchema: z.ZodObject<{
737
731
  apex_on_board_refunds_qty: number | null;
738
732
  apex_on_board_sales_amount: number | null;
739
733
  apex_on_board_sales_qty: number | null;
740
- apex_validations_prepaid_amount: number | null;
741
- apex_validations_prepaid_qty: number | null;
742
734
  apex_validations_qty: number | null;
743
- apex_validations_subscription_qty: number | null;
744
735
  driver_ids: string[];
745
736
  end_time_observed: number | null;
746
737
  end_time_scheduled: number;
@@ -1221,10 +1212,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1221
1212
  apex_on_board_refunds_qty: z.ZodNullable<z.ZodNumber>;
1222
1213
  apex_on_board_sales_amount: z.ZodNullable<z.ZodNumber>;
1223
1214
  apex_on_board_sales_qty: z.ZodNullable<z.ZodNumber>;
1224
- apex_validations_prepaid_amount: z.ZodNullable<z.ZodNumber>;
1225
- apex_validations_prepaid_qty: z.ZodNullable<z.ZodNumber>;
1226
1215
  apex_validations_qty: z.ZodNullable<z.ZodNumber>;
1227
- apex_validations_subscription_qty: z.ZodNullable<z.ZodNumber>;
1228
1216
  driver_ids: z.ZodArray<z.ZodString, "many">;
1229
1217
  end_time_observed: z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
1230
1218
  end_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
@@ -1251,7 +1239,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1251
1239
  start_time_scheduled: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
1252
1240
  system_status: z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>;
1253
1241
  vehicle_ids: z.ZodArray<z.ZodNumber, "many">;
1254
- }, "created_at" | "updated_at">, "strict", z.ZodTypeAny, {
1242
+ }, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
1255
1243
  agency_id: string;
1256
1244
  line_id: number;
1257
1245
  trip_id: string;
@@ -1352,10 +1340,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1352
1340
  apex_on_board_refunds_qty: number | null;
1353
1341
  apex_on_board_sales_amount: number | null;
1354
1342
  apex_on_board_sales_qty: number | null;
1355
- apex_validations_prepaid_amount: number | null;
1356
- apex_validations_prepaid_qty: number | null;
1357
1343
  apex_validations_qty: number | null;
1358
- apex_validations_subscription_qty: number | null;
1359
1344
  driver_ids: string[];
1360
1345
  end_time_observed: (number & {
1361
1346
  __brand: "UnixTimestamp";
@@ -1498,10 +1483,7 @@ export declare const CreateRideSchema: z.ZodObject<Omit<{
1498
1483
  apex_on_board_refunds_qty: number | null;
1499
1484
  apex_on_board_sales_amount: number | null;
1500
1485
  apex_on_board_sales_qty: number | null;
1501
- apex_validations_prepaid_amount: number | null;
1502
- apex_validations_prepaid_qty: number | null;
1503
1486
  apex_validations_qty: number | null;
1504
- apex_validations_subscription_qty: number | null;
1505
1487
  driver_ids: string[];
1506
1488
  end_time_observed: number | null;
1507
1489
  end_time_scheduled: number;
@@ -1979,10 +1961,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
1979
1961
  apex_on_board_refunds_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1980
1962
  apex_on_board_sales_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1981
1963
  apex_on_board_sales_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1982
- apex_validations_prepaid_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1983
- apex_validations_prepaid_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1984
1964
  apex_validations_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1985
- apex_validations_subscription_qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1986
1965
  driver_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1987
1966
  end_time_observed: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>>;
1988
1967
  end_time_scheduled: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
@@ -2009,7 +1988,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2009
1988
  start_time_scheduled: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
2010
1989
  system_status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["waiting", "processing", "complete", "error"]>>>;
2011
1990
  vehicle_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2012
- }, "strict", z.ZodTypeAny, {
1991
+ }, "strip", z.ZodTypeAny, {
2013
1992
  _id?: string | undefined;
2014
1993
  agency_id?: string | undefined;
2015
1994
  line_id?: number | undefined;
@@ -2111,10 +2090,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2111
2090
  apex_on_board_refunds_qty?: number | null | undefined;
2112
2091
  apex_on_board_sales_amount?: number | null | undefined;
2113
2092
  apex_on_board_sales_qty?: number | null | undefined;
2114
- apex_validations_prepaid_amount?: number | null | undefined;
2115
- apex_validations_prepaid_qty?: number | null | undefined;
2116
2093
  apex_validations_qty?: number | null | undefined;
2117
- apex_validations_subscription_qty?: number | null | undefined;
2118
2094
  driver_ids?: string[] | undefined;
2119
2095
  end_time_observed?: (number & {
2120
2096
  __brand: "UnixTimestamp";
@@ -2257,10 +2233,7 @@ export declare const UpdateRideSchema: z.ZodObject<{
2257
2233
  apex_on_board_refunds_qty?: number | null | undefined;
2258
2234
  apex_on_board_sales_amount?: number | null | undefined;
2259
2235
  apex_on_board_sales_qty?: number | null | undefined;
2260
- apex_validations_prepaid_amount?: number | null | undefined;
2261
- apex_validations_prepaid_qty?: number | null | undefined;
2262
2236
  apex_validations_qty?: number | null | undefined;
2263
- apex_validations_subscription_qty?: number | null | undefined;
2264
2237
  driver_ids?: string[] | undefined;
2265
2238
  end_time_observed?: number | null | undefined;
2266
2239
  end_time_scheduled?: number | undefined;
@@ -30,10 +30,7 @@ export const RideSchema = DocumentSchema.extend({
30
30
  apex_on_board_refunds_qty: z.number().nullable(),
31
31
  apex_on_board_sales_amount: z.number().nullable(),
32
32
  apex_on_board_sales_qty: z.number().nullable(),
33
- apex_validations_prepaid_amount: z.number().nullable(),
34
- apex_validations_prepaid_qty: z.number().nullable(),
35
33
  apex_validations_qty: z.number().nullable(),
36
- apex_validations_subscription_qty: z.number().nullable(),
37
34
  driver_ids: z.array(z.string()),
38
35
  end_time_observed: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp').nullable(),
39
36
  end_time_scheduled: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp'),
@@ -62,7 +59,7 @@ export const RideSchema = DocumentSchema.extend({
62
59
  system_status: ProcessingStatusSchema.default('waiting'),
63
60
  trip_id: z.string(),
64
61
  vehicle_ids: z.array(z.number()),
65
- }).strict();
62
+ }).strip();
66
63
  export const CreateRideSchema = RideSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
67
64
  export const UpdateRideSchema = CreateRideSchema.partial();
68
65
  /* * */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20250902.1310.34",
3
+ "version": "20250902.1443.39",
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",