@tmlmobilidade/types 20251217.1540.37 → 20251218.110.37

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.
Files changed (119) hide show
  1. package/dist/_common/comment.js +15 -6
  2. package/dist/_common/document.d.ts +3 -0
  3. package/dist/_common/document.js +4 -3
  4. package/dist/_common/status.d.ts +15 -1
  5. package/dist/_common/status.js +24 -6
  6. package/dist/_common/unix-timestamp.d.ts +1 -1
  7. package/dist/_common/unix-timestamp.js +1 -1
  8. package/dist/agency.d.ts +18 -13
  9. package/dist/agency.js +1 -1
  10. package/dist/alert.d.ts +101 -112
  11. package/dist/alert.js +18 -19
  12. package/dist/apex/simplified-apex-location.d.ts +5 -4
  13. package/dist/apex/simplified-apex-location.js +6 -4
  14. package/dist/apex/simplified-apex-on-board-refund.d.ts +5 -4
  15. package/dist/apex/simplified-apex-on-board-refund.js +6 -4
  16. package/dist/apex/simplified-apex-on-board-sale.d.ts +5 -4
  17. package/dist/apex/simplified-apex-on-board-sale.js +6 -4
  18. package/dist/apex/simplified-apex-validation.d.ts +9 -8
  19. package/dist/apex/simplified-apex-validation.js +6 -4
  20. package/dist/auth/login.d.ts +1 -1
  21. package/dist/auth/login.js +1 -1
  22. package/dist/auth/role.d.ts +260 -149
  23. package/dist/auth/role.js +1 -1
  24. package/dist/auth/session.d.ts +9 -7
  25. package/dist/auth/session.js +6 -4
  26. package/dist/auth/user.d.ts +737 -207
  27. package/dist/auth/user.js +12 -9
  28. package/dist/auth/verification-token.d.ts +9 -7
  29. package/dist/auth/verification-token.js +6 -4
  30. package/dist/dates/annotation.d.ts +94 -0
  31. package/dist/dates/annotation.js +14 -0
  32. package/dist/dates/index.d.ts +1 -0
  33. package/dist/dates/index.js +1 -0
  34. package/dist/file-exports/{common.d.ts → base.d.ts} +6 -5
  35. package/dist/file-exports/{common.js → base.js} +7 -4
  36. package/dist/file-exports/file-exports.d.ts +124 -0
  37. package/dist/file-exports/file-exports.js +7 -0
  38. package/dist/file-exports/index.d.ts +3 -126
  39. package/dist/file-exports/index.js +3 -9
  40. package/dist/file-exports/ride-export.d.ts +13 -13
  41. package/dist/file-exports/ride-export.js +5 -5
  42. package/dist/file.d.ts +3 -3
  43. package/dist/file.js +4 -2
  44. package/dist/index.d.ts +2 -1
  45. package/dist/index.js +2 -1
  46. package/dist/notification.d.ts +9 -7
  47. package/dist/notification.js +4 -2
  48. package/dist/organization.d.ts +24 -15
  49. package/dist/organization.js +3 -3
  50. package/dist/permissions/agencies.d.ts +3 -3
  51. package/dist/permissions/agencies.js +1 -1
  52. package/dist/permissions/alerts.d.ts +6 -6
  53. package/dist/permissions/alerts.js +2 -2
  54. package/dist/permissions/dates.d.ts +25 -0
  55. package/dist/permissions/dates.js +16 -0
  56. package/dist/permissions/gtfs-validations.d.ts +3 -3
  57. package/dist/permissions/gtfs-validations.js +1 -0
  58. package/dist/permissions/index.d.ts +49 -27
  59. package/dist/permissions/index.js +2 -0
  60. package/dist/permissions/organizations.d.ts +3 -3
  61. package/dist/permissions/organizations.js +1 -0
  62. package/dist/permissions/plans.d.ts +3 -3
  63. package/dist/permissions/plans.js +1 -1
  64. package/dist/permissions/roles.d.ts +3 -3
  65. package/dist/permissions/roles.js +1 -0
  66. package/dist/permissions/stops.d.ts +3 -3
  67. package/dist/permissions/stops.js +1 -1
  68. package/dist/permissions/users.d.ts +3 -3
  69. package/dist/permissions/users.js +1 -0
  70. package/dist/plans/gtfs-validation.d.ts +12 -3
  71. package/dist/plans/gtfs-validation.js +1 -1
  72. package/dist/plans/plan-app-status.js +2 -2
  73. package/dist/plans/plan-pcgi-legacy.d.ts +1 -1
  74. package/dist/plans/plan-pcgi-legacy.js +1 -1
  75. package/dist/plans/plan.d.ts +9 -9
  76. package/dist/proposed-change.d.ts +12 -3
  77. package/dist/proposed-change.js +1 -1
  78. package/dist/rides/ride-acceptance.d.ts +23 -19
  79. package/dist/rides/ride-acceptance.js +5 -3
  80. package/dist/rides/ride-analysis.d.ts +16 -16
  81. package/dist/rides/ride-analysis.js +16 -16
  82. package/dist/rides/ride-audit.d.ts +11 -11
  83. package/dist/rides/ride-audit.js +1 -1
  84. package/dist/rides/ride-overrides.d.ts +1 -1
  85. package/dist/rides/ride-overrides.js +1 -1
  86. package/dist/rides/ride.d.ts +56 -55
  87. package/dist/rides/ride.js +10 -8
  88. package/dist/sams/sam-analysis.d.ts +1 -1
  89. package/dist/sams/sam-analysis.js +4 -4
  90. package/dist/sams/sam.d.ts +13 -13
  91. package/dist/sams/sam.js +7 -5
  92. package/dist/stops/connections.d.ts +3 -0
  93. package/dist/stops/connections.js +15 -0
  94. package/dist/stops/equipment.d.ts +3 -0
  95. package/dist/stops/equipment.js +9 -0
  96. package/dist/stops/facilities.d.ts +4 -0
  97. package/dist/stops/facilities.js +16 -0
  98. package/dist/stops/index.d.ts +9 -0
  99. package/dist/stops/index.js +9 -0
  100. package/dist/stops/jurisdiction.d.ts +4 -0
  101. package/dist/stops/jurisdiction.js +10 -0
  102. package/dist/stops/name-abbreviations.d.ts +11 -0
  103. package/dist/stops/name-abbreviations.js +117 -0
  104. package/dist/stops/parent-station.d.ts +76 -0
  105. package/dist/stops/parent-station.js +11 -0
  106. package/dist/stops/road-type.d.ts +3 -0
  107. package/dist/stops/road-type.js +13 -0
  108. package/dist/stops/stop-area.d.ts +67 -0
  109. package/dist/stops/stop-area.js +10 -0
  110. package/dist/{stop.d.ts → stops/stop.d.ts} +271 -345
  111. package/dist/stops/stop.js +78 -0
  112. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +1 -21
  113. package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +4 -5
  114. package/dist/vehicle-events/simplified-vehicle-event.d.ts +4 -3
  115. package/dist/vehicle-events/simplified-vehicle-event.js +6 -4
  116. package/dist/zone.d.ts +10 -10
  117. package/dist/zone.js +1 -1
  118. package/package.json +2 -2
  119. package/dist/stop.js +0 -102
@@ -143,13 +143,14 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
143
143
  */
144
144
  readonly _13_MaxValue: 13;
145
145
  }>;
146
- export declare const SimplifiedApexValidationSchema: z.ZodObject<{
146
+ export declare const SimplifiedApexValidationSchema: z.ZodObject<Omit<{
147
147
  _id: z.ZodString;
148
148
  created_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
149
149
  created_by: z.ZodOptional<z.ZodString>;
150
+ is_locked: z.ZodDefault<z.ZodBoolean>;
150
151
  updated_at: z.ZodEffects<z.ZodNumber, import("../_common/unix-timestamp.js").UnixTimestamp, number>;
151
152
  updated_by: z.ZodOptional<z.ZodString>;
152
- } & {
153
+ }, "is_locked"> & {
153
154
  agency_id: z.ZodString;
154
155
  apex_version: z.ZodString;
155
156
  card_serial_number: z.ZodString;
@@ -241,7 +242,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
241
242
  readonly _13_MaxValue: 13;
242
243
  }>;
243
244
  vehicle_id: z.ZodNumber;
244
- }, "strict", z.ZodTypeAny, {
245
+ }, "strip", z.ZodTypeAny, {
245
246
  _id: string;
246
247
  created_at: number & {
247
248
  __brand: "UnixTimestamp";
@@ -270,7 +271,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
270
271
  event_type: number;
271
272
  product_id: string;
272
273
  units_qty: number | null;
273
- validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 11 | 6 | 7 | 8 | 9 | 10 | 13;
274
+ validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
274
275
  created_by?: string | undefined;
275
276
  updated_by?: string | undefined;
276
277
  }, {
@@ -296,7 +297,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
296
297
  event_type: number;
297
298
  product_id: string;
298
299
  units_qty: number | null;
299
- validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 11 | 6 | 7 | 8 | 9 | 10 | 13;
300
+ validation_status: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13;
300
301
  created_by?: string | undefined;
301
302
  updated_by?: string | undefined;
302
303
  }>;
@@ -397,7 +398,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
397
398
  readonly _13_MaxValue: 13;
398
399
  }>>;
399
400
  vehicle_id: z.ZodOptional<z.ZodNumber>;
400
- }, "strict", z.ZodTypeAny, {
401
+ }, "strip", z.ZodTypeAny, {
401
402
  _id?: string | undefined;
402
403
  created_at?: import("../_common/unix-timestamp.js").UnixTimestamp | undefined;
403
404
  created_by?: string | undefined;
@@ -422,7 +423,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
422
423
  event_type?: number | undefined;
423
424
  product_id?: string | undefined;
424
425
  units_qty?: number | null | undefined;
425
- validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 11 | 6 | 7 | 8 | 9 | 10 | 13 | undefined;
426
+ validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
426
427
  }, {
427
428
  _id?: string | undefined;
428
429
  created_at?: number | undefined;
@@ -448,7 +449,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
448
449
  event_type?: number | undefined;
449
450
  product_id?: string | undefined;
450
451
  units_qty?: number | null | undefined;
451
- validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 11 | 6 | 7 | 8 | 9 | 10 | 13 | undefined;
452
+ validation_status?: 0 | 1 | 2 | 12 | 5 | 4 | 3 | 6 | 11 | 7 | 8 | 9 | 10 | 13 | undefined;
452
453
  }>;
453
454
  /**
454
455
  * APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator
@@ -1,6 +1,6 @@
1
1
  /* * */
2
2
  import { DocumentSchema } from '../_common/document.js';
3
- import { unixTimeStampSchema } from '../_common/unix-timestamp.js';
3
+ import { UnixTimeStampSchema } from '../_common/unix-timestamp.js';
4
4
  import { z } from 'zod';
5
5
  /* * */
6
6
  export const ApexValidationStatus = {
@@ -77,7 +77,9 @@ export const ApexValidationStatus = {
77
77
  };
78
78
  export const ApexValidationStatusSchema = z.nativeEnum(ApexValidationStatus);
79
79
  /* * */
80
- export const SimplifiedApexValidationSchema = DocumentSchema.extend({
80
+ export const SimplifiedApexValidationSchema = DocumentSchema
81
+ .omit({ is_locked: true })
82
+ .extend({
81
83
  agency_id: z.string(),
82
84
  apex_version: z.string(),
83
85
  card_serial_number: z.string(),
@@ -92,13 +94,13 @@ export const SimplifiedApexValidationSchema = DocumentSchema.extend({
92
94
  on_board_sale_id: z.string().nullable(),
93
95
  pattern_id: z.string(),
94
96
  product_id: z.string(),
95
- received_at: unixTimeStampSchema,
97
+ received_at: UnixTimeStampSchema,
96
98
  stop_id: z.string(),
97
99
  trip_id: z.string(),
98
100
  units_qty: z.number().nullable(),
99
101
  validation_status: ApexValidationStatusSchema,
100
102
  vehicle_id: z.number(),
101
- }).strict();
103
+ });
102
104
  export const UpdateSimplifiedApexValidationSchema = SimplifiedApexValidationSchema.partial();
103
105
  /**
104
106
  * Validation statuses that are considered valid for the card holder to travel.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const LoginDtoSchema: z.ZodObject<{
3
3
  email: z.ZodString;
4
4
  password: z.ZodString;
5
- }, "strict", z.ZodTypeAny, {
5
+ }, "strip", z.ZodTypeAny, {
6
6
  email: string;
7
7
  password: string;
8
8
  }, {
@@ -4,4 +4,4 @@ import { z } from 'zod';
4
4
  export const LoginDtoSchema = z.object({
5
5
  email: z.string({ required_error: 'Email is required' }).email({ message: 'Email must be a valid email address' }),
6
6
  password: z.string({ required_error: 'Password is required' }),
7
- }).strict();
7
+ });