@tmlmobilidade/go-types-operation 20260906.1643.56 → 20260906.2355.3

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.
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ export declare const PlanAppsSchema: z.ZodDefault<z.ZodObject<{
3
+ hub_publish_gtfs: z.ZodDefault<z.ZodObject<{
4
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
6
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
9
+ message: string | null;
10
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
11
+ }, {
12
+ status?: string | undefined;
13
+ message?: string | null | undefined;
14
+ timestamp?: string | number | null | undefined;
15
+ }>>;
16
+ hub_publish_gtfs_cm: z.ZodDefault<z.ZodObject<{
17
+ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
18
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
19
+ metadata_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
20
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
21
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
24
+ message: string | null;
25
+ last_hash: string | null;
26
+ metadata_hash: string | null;
27
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
28
+ }, {
29
+ status?: string | undefined;
30
+ message?: string | null | undefined;
31
+ last_hash?: string | null | undefined;
32
+ metadata_hash?: string | null | undefined;
33
+ timestamp?: string | number | null | undefined;
34
+ }>>;
35
+ organizer: z.ZodDefault<z.ZodObject<{
36
+ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
37
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
+ metadata_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
39
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
40
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
43
+ message: string | null;
44
+ last_hash: string | null;
45
+ metadata_hash: string | null;
46
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
47
+ }, {
48
+ status?: string | undefined;
49
+ message?: string | null | undefined;
50
+ last_hash?: string | null | undefined;
51
+ metadata_hash?: string | null | undefined;
52
+ timestamp?: string | number | null | undefined;
53
+ }>>;
54
+ rides_feeder: z.ZodDefault<z.ZodObject<{
55
+ last_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
56
+ message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
57
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
58
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
61
+ message: string | null;
62
+ last_hash: string | null;
63
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
64
+ }, {
65
+ status?: string | undefined;
66
+ message?: string | null | undefined;
67
+ last_hash?: string | null | undefined;
68
+ timestamp?: string | number | null | undefined;
69
+ }>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ hub_publish_gtfs: {
72
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
73
+ message: string | null;
74
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
75
+ };
76
+ hub_publish_gtfs_cm: {
77
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
78
+ message: string | null;
79
+ last_hash: string | null;
80
+ metadata_hash: string | null;
81
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
82
+ };
83
+ organizer: {
84
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
85
+ message: string | null;
86
+ last_hash: string | null;
87
+ metadata_hash: string | null;
88
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
89
+ };
90
+ rides_feeder: {
91
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
92
+ message: string | null;
93
+ last_hash: string | null;
94
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
95
+ };
96
+ }, {
97
+ hub_publish_gtfs?: {
98
+ status?: string | undefined;
99
+ message?: string | null | undefined;
100
+ timestamp?: string | number | null | undefined;
101
+ } | undefined;
102
+ hub_publish_gtfs_cm?: {
103
+ status?: string | undefined;
104
+ message?: string | null | undefined;
105
+ last_hash?: string | null | undefined;
106
+ metadata_hash?: string | null | undefined;
107
+ timestamp?: string | number | null | undefined;
108
+ } | undefined;
109
+ organizer?: {
110
+ status?: string | undefined;
111
+ message?: string | null | undefined;
112
+ last_hash?: string | null | undefined;
113
+ metadata_hash?: string | null | undefined;
114
+ timestamp?: string | number | null | undefined;
115
+ } | undefined;
116
+ rides_feeder?: {
117
+ status?: string | undefined;
118
+ message?: string | null | undefined;
119
+ last_hash?: string | null | undefined;
120
+ timestamp?: string | number | null | undefined;
121
+ } | undefined;
122
+ }>>;
123
+ export type PlanApps = z.infer<typeof PlanAppsSchema>;
@@ -0,0 +1,13 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ import { PlanAppHubPublishGtfsCmSchema } from './app-hub-publish-gtfs-cm.js';
4
+ import { PlanAppHubPublishGtfsSchema } from './app-hub-publish-gtfs.js';
5
+ import { PlanAppOrganizerSchema } from './app-organizer.js';
6
+ import { PlanAppRidesFeederSchema } from './app-rides-feeder.js';
7
+ /* * */
8
+ export const PlanAppsSchema = z.object({
9
+ hub_publish_gtfs: PlanAppHubPublishGtfsSchema,
10
+ hub_publish_gtfs_cm: PlanAppHubPublishGtfsCmSchema,
11
+ organizer: PlanAppOrganizerSchema,
12
+ rides_feeder: PlanAppRidesFeederSchema,
13
+ }).default({});
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const PlanAttachmentsSchema: z.ZodDefault<z.ZodObject<{
3
+ apex_config: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4
+ operation_gtfs: z.ZodDefault<z.ZodNullable<z.ZodString>>;
5
+ operation_gtfs_normalized: z.ZodDefault<z.ZodNullable<z.ZodString>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ apex_config: string | null;
8
+ operation_gtfs: string | null;
9
+ operation_gtfs_normalized: string | null;
10
+ }, {
11
+ apex_config?: string | null | undefined;
12
+ operation_gtfs?: string | null | undefined;
13
+ operation_gtfs_normalized?: string | null | undefined;
14
+ }>>;
15
+ export type PlanAttachments = z.infer<typeof PlanAttachmentsSchema>;
@@ -0,0 +1,8 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const PlanAttachmentsSchema = z.object({
5
+ apex_config: z.string().nullable().default(null),
6
+ operation_gtfs: z.string().nullable().default(null),
7
+ operation_gtfs_normalized: z.string().nullable().default(null),
8
+ }).default({});
@@ -9,7 +9,6 @@ export declare const PlanSchema: z.ZodObject<{
9
9
  active_from: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
10
10
  active_until: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
11
11
  agency_id: z.ZodString;
12
- apex_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
13
12
  apps: z.ZodDefault<z.ZodObject<{
14
13
  hub_publish_gtfs: z.ZodDefault<z.ZodObject<{
15
14
  message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -131,9 +130,21 @@ export declare const PlanSchema: z.ZodObject<{
131
130
  timestamp?: string | number | null | undefined;
132
131
  } | undefined;
133
132
  }>>;
133
+ attachments: z.ZodDefault<z.ZodObject<{
134
+ apex_config: z.ZodDefault<z.ZodNullable<z.ZodString>>;
135
+ operation_gtfs: z.ZodDefault<z.ZodNullable<z.ZodString>>;
136
+ operation_gtfs_normalized: z.ZodDefault<z.ZodNullable<z.ZodString>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ apex_config: string | null;
139
+ operation_gtfs: string | null;
140
+ operation_gtfs_normalized: string | null;
141
+ }, {
142
+ apex_config?: string | null | undefined;
143
+ operation_gtfs?: string | null | undefined;
144
+ operation_gtfs_normalized?: string | null | undefined;
145
+ }>>;
134
146
  hash: z.ZodString;
135
147
  is_locked: z.ZodDefault<z.ZodBoolean>;
136
- operation_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
137
148
  }, "strip", z.ZodTypeAny, {
138
149
  agency_id: string;
139
150
  _id: string;
@@ -151,7 +162,6 @@ export declare const PlanSchema: z.ZodObject<{
151
162
  active_until: number & {
152
163
  __brand: "OperationalDateInt";
153
164
  };
154
- apex_file_id: string | null;
155
165
  apps: {
156
166
  hub_publish_gtfs: {
157
167
  status: "waiting" | "processing" | "complete" | "error" | "skipped";
@@ -179,8 +189,12 @@ export declare const PlanSchema: z.ZodObject<{
179
189
  timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
180
190
  };
181
191
  };
192
+ attachments: {
193
+ apex_config: string | null;
194
+ operation_gtfs: string | null;
195
+ operation_gtfs_normalized: string | null;
196
+ };
182
197
  hash: string;
183
- operation_file_id: string | null;
184
198
  updated_by?: string | undefined;
185
199
  }, {
186
200
  agency_id: string;
@@ -193,7 +207,6 @@ export declare const PlanSchema: z.ZodObject<{
193
207
  created_by?: string | null | undefined;
194
208
  is_locked?: boolean | undefined;
195
209
  updated_by?: string | undefined;
196
- apex_file_id?: string | null | undefined;
197
210
  apps?: {
198
211
  hub_publish_gtfs?: {
199
212
  status?: string | undefined;
@@ -221,7 +234,11 @@ export declare const PlanSchema: z.ZodObject<{
221
234
  timestamp?: string | number | null | undefined;
222
235
  } | undefined;
223
236
  } | undefined;
224
- operation_file_id?: string | null | undefined;
237
+ attachments?: {
238
+ apex_config?: string | null | undefined;
239
+ operation_gtfs?: string | null | undefined;
240
+ operation_gtfs_normalized?: string | null | undefined;
241
+ } | undefined;
225
242
  }>;
226
243
  export declare const CreatePlanSchema: z.ZodObject<Omit<{
227
244
  _id: z.ZodString;
@@ -233,7 +250,6 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
233
250
  active_from: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
234
251
  active_until: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
235
252
  agency_id: z.ZodString;
236
- apex_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
237
253
  apps: z.ZodDefault<z.ZodObject<{
238
254
  hub_publish_gtfs: z.ZodDefault<z.ZodObject<{
239
255
  message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -355,9 +371,21 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
355
371
  timestamp?: string | number | null | undefined;
356
372
  } | undefined;
357
373
  }>>;
374
+ attachments: z.ZodDefault<z.ZodObject<{
375
+ apex_config: z.ZodDefault<z.ZodNullable<z.ZodString>>;
376
+ operation_gtfs: z.ZodDefault<z.ZodNullable<z.ZodString>>;
377
+ operation_gtfs_normalized: z.ZodDefault<z.ZodNullable<z.ZodString>>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ apex_config: string | null;
380
+ operation_gtfs: string | null;
381
+ operation_gtfs_normalized: string | null;
382
+ }, {
383
+ apex_config?: string | null | undefined;
384
+ operation_gtfs?: string | null | undefined;
385
+ operation_gtfs_normalized?: string | null | undefined;
386
+ }>>;
358
387
  hash: z.ZodString;
359
388
  is_locked: z.ZodDefault<z.ZodBoolean>;
360
- operation_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
361
389
  }, "_id" | "updated_at">, "strip", z.ZodTypeAny, {
362
390
  agency_id: string;
363
391
  created_at: number & {
@@ -371,7 +399,6 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
371
399
  active_until: number & {
372
400
  __brand: "OperationalDateInt";
373
401
  };
374
- apex_file_id: string | null;
375
402
  apps: {
376
403
  hub_publish_gtfs: {
377
404
  status: "waiting" | "processing" | "complete" | "error" | "skipped";
@@ -399,8 +426,12 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
399
426
  timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
400
427
  };
401
428
  };
429
+ attachments: {
430
+ apex_config: string | null;
431
+ operation_gtfs: string | null;
432
+ operation_gtfs_normalized: string | null;
433
+ };
402
434
  hash: string;
403
- operation_file_id: string | null;
404
435
  updated_by?: string | undefined;
405
436
  }, {
406
437
  agency_id: string;
@@ -411,7 +442,6 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
411
442
  created_by?: string | null | undefined;
412
443
  is_locked?: boolean | undefined;
413
444
  updated_by?: string | undefined;
414
- apex_file_id?: string | null | undefined;
415
445
  apps?: {
416
446
  hub_publish_gtfs?: {
417
447
  status?: string | undefined;
@@ -439,7 +469,11 @@ export declare const CreatePlanSchema: z.ZodObject<Omit<{
439
469
  timestamp?: string | number | null | undefined;
440
470
  } | undefined;
441
471
  } | undefined;
442
- operation_file_id?: string | null | undefined;
472
+ attachments?: {
473
+ apex_config?: string | null | undefined;
474
+ operation_gtfs?: string | null | undefined;
475
+ operation_gtfs_normalized?: string | null | undefined;
476
+ } | undefined;
443
477
  }>;
444
478
  export declare const UpdatePlanSchema: z.ZodObject<{
445
479
  agency_id: z.ZodOptional<z.ZodString>;
@@ -447,7 +481,6 @@ export declare const UpdatePlanSchema: z.ZodObject<{
447
481
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
448
482
  active_from: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>>;
449
483
  active_until: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>>;
450
- apex_file_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
451
484
  apps: z.ZodOptional<z.ZodDefault<z.ZodObject<{
452
485
  hub_publish_gtfs: z.ZodDefault<z.ZodObject<{
453
486
  message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -569,15 +602,26 @@ export declare const UpdatePlanSchema: z.ZodObject<{
569
602
  timestamp?: string | number | null | undefined;
570
603
  } | undefined;
571
604
  }>>>;
605
+ attachments: z.ZodOptional<z.ZodDefault<z.ZodObject<{
606
+ apex_config: z.ZodDefault<z.ZodNullable<z.ZodString>>;
607
+ operation_gtfs: z.ZodDefault<z.ZodNullable<z.ZodString>>;
608
+ operation_gtfs_normalized: z.ZodDefault<z.ZodNullable<z.ZodString>>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ apex_config: string | null;
611
+ operation_gtfs: string | null;
612
+ operation_gtfs_normalized: string | null;
613
+ }, {
614
+ apex_config?: string | null | undefined;
615
+ operation_gtfs?: string | null | undefined;
616
+ operation_gtfs_normalized?: string | null | undefined;
617
+ }>>>;
572
618
  hash: z.ZodOptional<z.ZodString>;
573
- operation_file_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
574
619
  }, "strip", z.ZodTypeAny, {
575
620
  agency_id?: string | undefined;
576
621
  is_locked?: boolean | undefined;
577
622
  updated_by?: string | undefined;
578
623
  active_from?: import("@tmlmobilidade/go-types-shared").OperationalDateInt | undefined;
579
624
  active_until?: import("@tmlmobilidade/go-types-shared").OperationalDateInt | undefined;
580
- apex_file_id?: string | null | undefined;
581
625
  apps?: {
582
626
  hub_publish_gtfs: {
583
627
  status: "waiting" | "processing" | "complete" | "error" | "skipped";
@@ -605,15 +649,18 @@ export declare const UpdatePlanSchema: z.ZodObject<{
605
649
  timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
606
650
  };
607
651
  } | undefined;
652
+ attachments?: {
653
+ apex_config: string | null;
654
+ operation_gtfs: string | null;
655
+ operation_gtfs_normalized: string | null;
656
+ } | undefined;
608
657
  hash?: string | undefined;
609
- operation_file_id?: string | null | undefined;
610
658
  }, {
611
659
  agency_id?: string | undefined;
612
660
  is_locked?: boolean | undefined;
613
661
  updated_by?: string | undefined;
614
662
  active_from?: string | number | undefined;
615
663
  active_until?: string | number | undefined;
616
- apex_file_id?: string | null | undefined;
617
664
  apps?: {
618
665
  hub_publish_gtfs?: {
619
666
  status?: string | undefined;
@@ -641,8 +688,12 @@ export declare const UpdatePlanSchema: z.ZodObject<{
641
688
  timestamp?: string | number | null | undefined;
642
689
  } | undefined;
643
690
  } | undefined;
691
+ attachments?: {
692
+ apex_config?: string | null | undefined;
693
+ operation_gtfs?: string | null | undefined;
694
+ operation_gtfs_normalized?: string | null | undefined;
695
+ } | undefined;
644
696
  hash?: string | undefined;
645
- operation_file_id?: string | null | undefined;
646
697
  }>;
647
698
  export type Plan = z.infer<typeof PlanSchema>;
648
699
  export type CreatePlanDto = z.infer<typeof CreatePlanSchema>;
@@ -657,7 +708,6 @@ export declare const HashablePlanMetadataSchema: z.ZodObject<Pick<{
657
708
  active_from: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
658
709
  active_until: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string, string | number>, string, string | number>, import("@tmlmobilidade/go-types-shared").OperationalDateInt, string | number>;
659
710
  agency_id: z.ZodString;
660
- apex_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
661
711
  apps: z.ZodDefault<z.ZodObject<{
662
712
  hub_publish_gtfs: z.ZodDefault<z.ZodObject<{
663
713
  message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -779,11 +829,24 @@ export declare const HashablePlanMetadataSchema: z.ZodObject<Pick<{
779
829
  timestamp?: string | number | null | undefined;
780
830
  } | undefined;
781
831
  }>>;
832
+ attachments: z.ZodDefault<z.ZodObject<{
833
+ apex_config: z.ZodDefault<z.ZodNullable<z.ZodString>>;
834
+ operation_gtfs: z.ZodDefault<z.ZodNullable<z.ZodString>>;
835
+ operation_gtfs_normalized: z.ZodDefault<z.ZodNullable<z.ZodString>>;
836
+ }, "strip", z.ZodTypeAny, {
837
+ apex_config: string | null;
838
+ operation_gtfs: string | null;
839
+ operation_gtfs_normalized: string | null;
840
+ }, {
841
+ apex_config?: string | null | undefined;
842
+ operation_gtfs?: string | null | undefined;
843
+ operation_gtfs_normalized?: string | null | undefined;
844
+ }>>;
782
845
  hash: z.ZodString;
783
846
  is_locked: z.ZodDefault<z.ZodBoolean>;
784
- operation_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
785
- }, "_id" | "active_from" | "active_until" | "operation_file_id"> & {
786
- operation_file_hash: z.ZodString;
847
+ }, "_id" | "active_from" | "active_until"> & {
848
+ operation_gtfs_hash: z.ZodString;
849
+ operation_gtfs_normalized_hash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
787
850
  }, "strip", z.ZodTypeAny, {
788
851
  _id: string;
789
852
  active_from: number & {
@@ -792,13 +855,13 @@ export declare const HashablePlanMetadataSchema: z.ZodObject<Pick<{
792
855
  active_until: number & {
793
856
  __brand: "OperationalDateInt";
794
857
  };
795
- operation_file_id: string | null;
796
- operation_file_hash: string;
858
+ operation_gtfs_hash: string;
859
+ operation_gtfs_normalized_hash: string | null;
797
860
  }, {
798
861
  _id: string;
799
862
  active_from: string | number;
800
863
  active_until: string | number;
801
- operation_file_hash: string;
802
- operation_file_id?: string | null | undefined;
864
+ operation_gtfs_hash: string;
865
+ operation_gtfs_normalized_hash?: string | null | undefined;
803
866
  }>;
804
867
  export type HashablePlanMetadata = z.infer<typeof HashablePlanMetadataSchema>;
@@ -1,25 +1,17 @@
1
1
  /* * */
2
2
  import { BaseDocumentSchema, OperationalDateIntSchema } from '@tmlmobilidade/go-types-shared';
3
3
  import { z } from 'zod';
4
- import { PlanAppHubPublishGtfsCmSchema } from './app-hub-publish-gtfs-cm.js';
5
- import { PlanAppHubPublishGtfsSchema } from './app-hub-publish-gtfs.js';
6
- import { PlanAppOrganizerSchema } from './app-organizer.js';
7
- import { PlanAppRidesFeederSchema } from './app-rides-feeder.js';
4
+ import { PlanAppsSchema } from './apps.js';
5
+ import { PlanAttachmentsSchema } from './attachments.js';
8
6
  /* * */
9
7
  export const PlanSchema = BaseDocumentSchema.extend({
10
8
  active_from: OperationalDateIntSchema,
11
9
  active_until: OperationalDateIntSchema,
12
10
  agency_id: z.string(),
13
- apex_file_id: z.string().nullable().default(null),
14
- apps: z.object({
15
- hub_publish_gtfs: PlanAppHubPublishGtfsSchema,
16
- hub_publish_gtfs_cm: PlanAppHubPublishGtfsCmSchema,
17
- organizer: PlanAppOrganizerSchema,
18
- rides_feeder: PlanAppRidesFeederSchema,
19
- }).default({}),
11
+ apps: PlanAppsSchema,
12
+ attachments: PlanAttachmentsSchema,
20
13
  hash: z.string(),
21
14
  is_locked: z.boolean().default(false),
22
- operation_file_id: z.string().nullable().default(null),
23
15
  });
24
16
  export const CreatePlanSchema = PlanSchema.omit({ _id: true, updated_at: true });
25
17
  export const UpdatePlanSchema = CreatePlanSchema.omit({ created_at: true, created_by: true }).partial();
@@ -28,7 +20,7 @@ export const HashablePlanMetadataSchema = PlanSchema.pick({
28
20
  _id: true,
29
21
  active_from: true,
30
22
  active_until: true,
31
- operation_file_id: true,
32
23
  }).extend({
33
- operation_file_hash: z.string(),
24
+ operation_gtfs_hash: z.string(),
25
+ operation_gtfs_normalized_hash: z.string().nullable().default(null),
34
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-operation",
3
- "version": "20260906.1643.56",
3
+ "version": "20260906.2355.3",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"