@tmlmobilidade/go-types-core 20261029.1015.24 → 20261102.1501.57

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.
@@ -48,17 +48,14 @@ export declare const AgencySchema: z.ZodObject<{
48
48
  }>;
49
49
  services: z.ZodObject<{
50
50
  eta_enabled: z.ZodDefault<z.ZodBoolean>;
51
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
52
51
  positions_enabled: z.ZodDefault<z.ZodBoolean>;
53
52
  service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
54
53
  }, "strip", z.ZodTypeAny, {
55
54
  eta_enabled: boolean;
56
- gtfs_enabled: boolean;
57
55
  positions_enabled: boolean;
58
56
  service_alerts_enabled: boolean;
59
57
  }, {
60
58
  eta_enabled?: boolean | undefined;
61
- gtfs_enabled?: boolean | undefined;
62
59
  positions_enabled?: boolean | undefined;
63
60
  service_alerts_enabled?: boolean | undefined;
64
61
  }>;
@@ -72,7 +69,6 @@ export declare const AgencySchema: z.ZodObject<{
72
69
  };
73
70
  services: {
74
71
  eta_enabled: boolean;
75
- gtfs_enabled: boolean;
76
72
  positions_enabled: boolean;
77
73
  service_alerts_enabled: boolean;
78
74
  };
@@ -86,7 +82,6 @@ export declare const AgencySchema: z.ZodObject<{
86
82
  };
87
83
  services: {
88
84
  eta_enabled?: boolean | undefined;
89
- gtfs_enabled?: boolean | undefined;
90
85
  positions_enabled?: boolean | undefined;
91
86
  service_alerts_enabled?: boolean | undefined;
92
87
  };
@@ -131,7 +126,6 @@ export declare const AgencySchema: z.ZodObject<{
131
126
  };
132
127
  services: {
133
128
  eta_enabled: boolean;
134
- gtfs_enabled: boolean;
135
129
  positions_enabled: boolean;
136
130
  service_alerts_enabled: boolean;
137
131
  };
@@ -176,7 +170,6 @@ export declare const AgencySchema: z.ZodObject<{
176
170
  };
177
171
  services: {
178
172
  eta_enabled?: boolean | undefined;
179
- gtfs_enabled?: boolean | undefined;
180
173
  positions_enabled?: boolean | undefined;
181
174
  service_alerts_enabled?: boolean | undefined;
182
175
  };
@@ -247,17 +240,14 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
247
240
  }>;
248
241
  services: z.ZodObject<{
249
242
  eta_enabled: z.ZodDefault<z.ZodBoolean>;
250
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
251
243
  positions_enabled: z.ZodDefault<z.ZodBoolean>;
252
244
  service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
253
245
  }, "strip", z.ZodTypeAny, {
254
246
  eta_enabled: boolean;
255
- gtfs_enabled: boolean;
256
247
  positions_enabled: boolean;
257
248
  service_alerts_enabled: boolean;
258
249
  }, {
259
250
  eta_enabled?: boolean | undefined;
260
- gtfs_enabled?: boolean | undefined;
261
251
  positions_enabled?: boolean | undefined;
262
252
  service_alerts_enabled?: boolean | undefined;
263
253
  }>;
@@ -271,7 +261,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
271
261
  };
272
262
  services: {
273
263
  eta_enabled: boolean;
274
- gtfs_enabled: boolean;
275
264
  positions_enabled: boolean;
276
265
  service_alerts_enabled: boolean;
277
266
  };
@@ -285,7 +274,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
285
274
  };
286
275
  services: {
287
276
  eta_enabled?: boolean | undefined;
288
- gtfs_enabled?: boolean | undefined;
289
277
  positions_enabled?: boolean | undefined;
290
278
  service_alerts_enabled?: boolean | undefined;
291
279
  };
@@ -330,7 +318,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
330
318
  };
331
319
  services: {
332
320
  eta_enabled: boolean;
333
- gtfs_enabled: boolean;
334
321
  positions_enabled: boolean;
335
322
  service_alerts_enabled: boolean;
336
323
  };
@@ -369,7 +356,6 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
369
356
  };
370
357
  services: {
371
358
  eta_enabled?: boolean | undefined;
372
- gtfs_enabled?: boolean | undefined;
373
359
  positions_enabled?: boolean | undefined;
374
360
  service_alerts_enabled?: boolean | undefined;
375
361
  };
@@ -431,17 +417,14 @@ export declare const UpdateAgencySchema: z.ZodObject<{
431
417
  }>;
432
418
  services: z.ZodObject<{
433
419
  eta_enabled: z.ZodDefault<z.ZodBoolean>;
434
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
435
420
  positions_enabled: z.ZodDefault<z.ZodBoolean>;
436
421
  service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
437
422
  }, "strip", z.ZodTypeAny, {
438
423
  eta_enabled: boolean;
439
- gtfs_enabled: boolean;
440
424
  positions_enabled: boolean;
441
425
  service_alerts_enabled: boolean;
442
426
  }, {
443
427
  eta_enabled?: boolean | undefined;
444
- gtfs_enabled?: boolean | undefined;
445
428
  positions_enabled?: boolean | undefined;
446
429
  service_alerts_enabled?: boolean | undefined;
447
430
  }>;
@@ -455,7 +438,6 @@ export declare const UpdateAgencySchema: z.ZodObject<{
455
438
  };
456
439
  services: {
457
440
  eta_enabled: boolean;
458
- gtfs_enabled: boolean;
459
441
  positions_enabled: boolean;
460
442
  service_alerts_enabled: boolean;
461
443
  };
@@ -469,7 +451,6 @@ export declare const UpdateAgencySchema: z.ZodObject<{
469
451
  };
470
452
  services: {
471
453
  eta_enabled?: boolean | undefined;
472
- gtfs_enabled?: boolean | undefined;
473
454
  positions_enabled?: boolean | undefined;
474
455
  service_alerts_enabled?: boolean | undefined;
475
456
  };
@@ -517,7 +498,6 @@ export declare const UpdateAgencySchema: z.ZodObject<{
517
498
  };
518
499
  services: {
519
500
  eta_enabled: boolean;
520
- gtfs_enabled: boolean;
521
501
  positions_enabled: boolean;
522
502
  service_alerts_enabled: boolean;
523
503
  };
@@ -555,7 +535,6 @@ export declare const UpdateAgencySchema: z.ZodObject<{
555
535
  };
556
536
  services: {
557
537
  eta_enabled?: boolean | undefined;
558
- gtfs_enabled?: boolean | undefined;
559
538
  positions_enabled?: boolean | undefined;
560
539
  service_alerts_enabled?: boolean | undefined;
561
540
  };
@@ -21,17 +21,14 @@ export declare const AgencyOpenDataSchema: z.ZodObject<{
21
21
  }>;
22
22
  services: z.ZodObject<{
23
23
  eta_enabled: z.ZodDefault<z.ZodBoolean>;
24
- gtfs_enabled: z.ZodDefault<z.ZodBoolean>;
25
24
  positions_enabled: z.ZodDefault<z.ZodBoolean>;
26
25
  service_alerts_enabled: z.ZodDefault<z.ZodBoolean>;
27
26
  }, "strip", z.ZodTypeAny, {
28
27
  eta_enabled: boolean;
29
- gtfs_enabled: boolean;
30
28
  positions_enabled: boolean;
31
29
  service_alerts_enabled: boolean;
32
30
  }, {
33
31
  eta_enabled?: boolean | undefined;
34
- gtfs_enabled?: boolean | undefined;
35
32
  positions_enabled?: boolean | undefined;
36
33
  service_alerts_enabled?: boolean | undefined;
37
34
  }>;
@@ -45,7 +42,6 @@ export declare const AgencyOpenDataSchema: z.ZodObject<{
45
42
  };
46
43
  services: {
47
44
  eta_enabled: boolean;
48
- gtfs_enabled: boolean;
49
45
  positions_enabled: boolean;
50
46
  service_alerts_enabled: boolean;
51
47
  };
@@ -59,7 +55,6 @@ export declare const AgencyOpenDataSchema: z.ZodObject<{
59
55
  };
60
56
  services: {
61
57
  eta_enabled?: boolean | undefined;
62
- gtfs_enabled?: boolean | undefined;
63
58
  positions_enabled?: boolean | undefined;
64
59
  service_alerts_enabled?: boolean | undefined;
65
60
  };
@@ -11,7 +11,6 @@ export const AgencyOpenDataSchema = z.object({
11
11
  }),
12
12
  services: z.object({
13
13
  eta_enabled: z.boolean().default(false),
14
- gtfs_enabled: z.boolean().default(false),
15
14
  positions_enabled: z.boolean().default(false),
16
15
  service_alerts_enabled: z.boolean().default(false),
17
16
  }),
@@ -1 +1,2 @@
1
+ export * from './open-data.js';
1
2
  export * from './organization.js';
@@ -1 +1,2 @@
1
+ export * from './open-data.js';
1
2
  export * from './organization.js';
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare const OrganizationOpenDataSchema: z.ZodDefault<z.ZodObject<{
3
+ enabled: z.ZodDefault<z.ZodBoolean>;
4
+ plans: z.ZodDefault<z.ZodObject<{
5
+ hashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
7
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
10
+ hashes: string[];
11
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
12
+ }, {
13
+ status?: string | undefined;
14
+ hashes?: string[] | undefined;
15
+ timestamp?: string | number | null | undefined;
16
+ }>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ plans: {
19
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
20
+ hashes: string[];
21
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
22
+ };
23
+ enabled: boolean;
24
+ }, {
25
+ plans?: {
26
+ status?: string | undefined;
27
+ hashes?: string[] | undefined;
28
+ timestamp?: string | number | null | undefined;
29
+ } | undefined;
30
+ enabled?: boolean | undefined;
31
+ }>>;
32
+ export type OrganizationOpenData = z.infer<typeof OrganizationOpenDataSchema>;
@@ -0,0 +1,12 @@
1
+ /* * */
2
+ import { ProcessingStatusSchema, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
3
+ import { z } from 'zod';
4
+ /* * */
5
+ export const OrganizationOpenDataSchema = z.object({
6
+ enabled: z.boolean().default(false),
7
+ plans: z.object({
8
+ hashes: z.array(z.string()).default([]),
9
+ status: ProcessingStatusSchema.default('skipped'),
10
+ timestamp: UnixMillisecondsSchema.nullable().default(null),
11
+ }).default({ hashes: [], status: 'skipped', timestamp: null }),
12
+ }).default({ enabled: false, plans: { hashes: [], status: 'skipped', timestamp: null } });
@@ -7,6 +7,7 @@ export declare const OrganizationSchema: z.ZodObject<{
7
7
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
8
8
  updated_by: z.ZodOptional<z.ZodString>;
9
9
  } & {
10
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10
11
  home_links: z.ZodDefault<z.ZodArray<z.ZodObject<{
11
12
  href: z.ZodString;
12
13
  icon: z.ZodString;
@@ -27,9 +28,47 @@ export declare const OrganizationSchema: z.ZodObject<{
27
28
  logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
29
  logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
30
  long_name: z.ZodString;
31
+ open_data: z.ZodDefault<z.ZodObject<{
32
+ enabled: z.ZodDefault<z.ZodBoolean>;
33
+ plans: z.ZodDefault<z.ZodObject<{
34
+ hashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
35
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
36
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
39
+ hashes: string[];
40
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
41
+ }, {
42
+ status?: string | undefined;
43
+ hashes?: string[] | undefined;
44
+ timestamp?: string | number | null | undefined;
45
+ }>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ plans: {
48
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
49
+ hashes: string[];
50
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
51
+ };
52
+ enabled: boolean;
53
+ }, {
54
+ plans?: {
55
+ status?: string | undefined;
56
+ hashes?: string[] | undefined;
57
+ timestamp?: string | number | null | undefined;
58
+ } | undefined;
59
+ enabled?: boolean | undefined;
60
+ }>>;
30
61
  short_name: z.ZodString;
31
62
  theme: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
63
  }, "strip", z.ZodTypeAny, {
64
+ open_data: {
65
+ plans: {
66
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
67
+ hashes: string[];
68
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
69
+ };
70
+ enabled: boolean;
71
+ };
33
72
  short_name: string;
34
73
  _id: string;
35
74
  created_at: number & {
@@ -40,6 +79,7 @@ export declare const OrganizationSchema: z.ZodObject<{
40
79
  updated_at: number & {
41
80
  __brand: "UnixMilliseconds";
42
81
  };
82
+ agency_ids: string[];
43
83
  home_links: {
44
84
  title: string;
45
85
  href: string;
@@ -59,8 +99,17 @@ export declare const OrganizationSchema: z.ZodObject<{
59
99
  created_by: string;
60
100
  updated_at: string | number;
61
101
  long_name: string;
102
+ open_data?: {
103
+ plans?: {
104
+ status?: string | undefined;
105
+ hashes?: string[] | undefined;
106
+ timestamp?: string | number | null | undefined;
107
+ } | undefined;
108
+ enabled?: boolean | undefined;
109
+ } | undefined;
62
110
  is_locked?: boolean | undefined;
63
111
  updated_by?: string | undefined;
112
+ agency_ids?: string[] | undefined;
64
113
  home_links?: {
65
114
  title: string;
66
115
  href: string;
@@ -80,6 +129,7 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
80
129
  updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
81
130
  updated_by: z.ZodOptional<z.ZodString>;
82
131
  } & {
132
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
83
133
  home_links: z.ZodDefault<z.ZodArray<z.ZodObject<{
84
134
  href: z.ZodString;
85
135
  icon: z.ZodString;
@@ -100,12 +150,51 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
100
150
  logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
101
151
  logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
102
152
  long_name: z.ZodString;
153
+ open_data: z.ZodDefault<z.ZodObject<{
154
+ enabled: z.ZodDefault<z.ZodBoolean>;
155
+ plans: z.ZodDefault<z.ZodObject<{
156
+ hashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
157
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
158
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
161
+ hashes: string[];
162
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
163
+ }, {
164
+ status?: string | undefined;
165
+ hashes?: string[] | undefined;
166
+ timestamp?: string | number | null | undefined;
167
+ }>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ plans: {
170
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
171
+ hashes: string[];
172
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
173
+ };
174
+ enabled: boolean;
175
+ }, {
176
+ plans?: {
177
+ status?: string | undefined;
178
+ hashes?: string[] | undefined;
179
+ timestamp?: string | number | null | undefined;
180
+ } | undefined;
181
+ enabled?: boolean | undefined;
182
+ }>>;
103
183
  short_name: z.ZodString;
104
184
  theme: z.ZodDefault<z.ZodNullable<z.ZodString>>;
105
185
  }, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
186
+ open_data: {
187
+ plans: {
188
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
189
+ hashes: string[];
190
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
191
+ };
192
+ enabled: boolean;
193
+ };
106
194
  short_name: string;
107
195
  created_by: string;
108
196
  is_locked: boolean;
197
+ agency_ids: string[];
109
198
  home_links: {
110
199
  title: string;
111
200
  href: string;
@@ -122,8 +211,17 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
122
211
  short_name: string;
123
212
  created_by: string;
124
213
  long_name: string;
214
+ open_data?: {
215
+ plans?: {
216
+ status?: string | undefined;
217
+ hashes?: string[] | undefined;
218
+ timestamp?: string | number | null | undefined;
219
+ } | undefined;
220
+ enabled?: boolean | undefined;
221
+ } | undefined;
125
222
  is_locked?: boolean | undefined;
126
223
  updated_by?: string | undefined;
224
+ agency_ids?: string[] | undefined;
127
225
  home_links?: {
128
226
  title: string;
129
227
  href: string;
@@ -136,9 +234,40 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
136
234
  theme?: string | null | undefined;
137
235
  }>;
138
236
  export declare const UpdateOrganizationSchema: z.ZodObject<{
237
+ open_data: z.ZodOptional<z.ZodDefault<z.ZodObject<{
238
+ enabled: z.ZodDefault<z.ZodBoolean>;
239
+ plans: z.ZodDefault<z.ZodObject<{
240
+ hashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
241
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
242
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
245
+ hashes: string[];
246
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
247
+ }, {
248
+ status?: string | undefined;
249
+ hashes?: string[] | undefined;
250
+ timestamp?: string | number | null | undefined;
251
+ }>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ plans: {
254
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
255
+ hashes: string[];
256
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
257
+ };
258
+ enabled: boolean;
259
+ }, {
260
+ plans?: {
261
+ status?: string | undefined;
262
+ hashes?: string[] | undefined;
263
+ timestamp?: string | number | null | undefined;
264
+ } | undefined;
265
+ enabled?: boolean | undefined;
266
+ }>>>;
139
267
  short_name: z.ZodOptional<z.ZodString>;
140
268
  is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
141
269
  updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
270
+ agency_ids: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
142
271
  home_links: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
143
272
  href: z.ZodString;
144
273
  icon: z.ZodString;
@@ -161,9 +290,18 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
161
290
  long_name: z.ZodOptional<z.ZodString>;
162
291
  theme: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
163
292
  }, "strip", z.ZodTypeAny, {
293
+ open_data?: {
294
+ plans: {
295
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
296
+ hashes: string[];
297
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
298
+ };
299
+ enabled: boolean;
300
+ } | undefined;
164
301
  short_name?: string | undefined;
165
302
  is_locked?: boolean | undefined;
166
303
  updated_by?: string | undefined;
304
+ agency_ids?: string[] | undefined;
167
305
  home_links?: {
168
306
  title: string;
169
307
  href: string;
@@ -176,9 +314,18 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
176
314
  long_name?: string | undefined;
177
315
  theme?: string | null | undefined;
178
316
  }, {
317
+ open_data?: {
318
+ plans?: {
319
+ status?: string | undefined;
320
+ hashes?: string[] | undefined;
321
+ timestamp?: string | number | null | undefined;
322
+ } | undefined;
323
+ enabled?: boolean | undefined;
324
+ } | undefined;
179
325
  short_name?: string | undefined;
180
326
  is_locked?: boolean | undefined;
181
327
  updated_by?: string | undefined;
328
+ agency_ids?: string[] | undefined;
182
329
  home_links?: {
183
330
  title: string;
184
331
  href: string;
@@ -2,13 +2,16 @@
2
2
  import { HomeQuickLinkSchema } from '../home/quick-link.js';
3
3
  import { BaseDocumentSchema } from '@tmlmobilidade/go-types-shared';
4
4
  import { z } from 'zod';
5
+ import { OrganizationOpenDataSchema } from './open-data.js';
5
6
  /* * */
6
7
  export const OrganizationSchema = BaseDocumentSchema.extend({
8
+ agency_ids: z.array(z.string()).default([]),
7
9
  home_links: z.array(HomeQuickLinkSchema).default([]),
8
10
  home_wikis: z.array(z.string()).default([]),
9
11
  logo_dark: z.string().nullable().default(null),
10
12
  logo_light: z.string().nullable().default(null),
11
13
  long_name: z.string().min(1),
14
+ open_data: OrganizationOpenDataSchema,
12
15
  short_name: z.string().min(1).max(6),
13
16
  theme: z.string().nullable().default(null),
14
17
  });
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ export declare const AgencyOrganizationSchema: z.ZodObject<Pick<{
3
+ _id: z.ZodString;
4
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
5
+ created_by: z.ZodString;
6
+ is_locked: z.ZodDefault<z.ZodBoolean>;
7
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
8
+ updated_by: z.ZodOptional<z.ZodString>;
9
+ } & {
10
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
11
+ home_links: z.ZodDefault<z.ZodArray<z.ZodObject<{
12
+ href: z.ZodString;
13
+ icon: z.ZodString;
14
+ order: z.ZodNumber;
15
+ title: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ title: string;
18
+ href: string;
19
+ icon: string;
20
+ order: number;
21
+ }, {
22
+ title: string;
23
+ href: string;
24
+ icon: string;
25
+ order: number;
26
+ }>, "many">>;
27
+ home_wikis: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
+ logo_dark: z.ZodDefault<z.ZodNullable<z.ZodString>>;
29
+ logo_light: z.ZodDefault<z.ZodNullable<z.ZodString>>;
30
+ long_name: z.ZodString;
31
+ open_data: z.ZodDefault<z.ZodObject<{
32
+ enabled: z.ZodDefault<z.ZodBoolean>;
33
+ plans: z.ZodDefault<z.ZodObject<{
34
+ hashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
35
+ status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
36
+ timestamp: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
39
+ hashes: string[];
40
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
41
+ }, {
42
+ status?: string | undefined;
43
+ hashes?: string[] | undefined;
44
+ timestamp?: string | number | null | undefined;
45
+ }>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ plans: {
48
+ status: "waiting" | "processing" | "complete" | "error" | "skipped";
49
+ hashes: string[];
50
+ timestamp: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
51
+ };
52
+ enabled: boolean;
53
+ }, {
54
+ plans?: {
55
+ status?: string | undefined;
56
+ hashes?: string[] | undefined;
57
+ timestamp?: string | number | null | undefined;
58
+ } | undefined;
59
+ enabled?: boolean | undefined;
60
+ }>>;
61
+ short_name: z.ZodString;
62
+ theme: z.ZodDefault<z.ZodNullable<z.ZodString>>;
63
+ }, "short_name" | "_id" | "agency_ids" | "long_name">, "strip", z.ZodTypeAny, {
64
+ short_name: string;
65
+ _id: string;
66
+ agency_ids: string[];
67
+ long_name: string;
68
+ }, {
69
+ short_name: string;
70
+ _id: string;
71
+ long_name: string;
72
+ agency_ids?: string[] | undefined;
73
+ }>;
74
+ export type AgencyOrganization = z.infer<typeof AgencyOrganizationSchema>;
@@ -0,0 +1,9 @@
1
+ /* * */
2
+ import { OrganizationSchema } from '../organizations/organization.js';
3
+ /* * */
4
+ export const AgencyOrganizationSchema = OrganizationSchema.pick({
5
+ _id: true,
6
+ agency_ids: true,
7
+ long_name: true,
8
+ short_name: true,
9
+ });
@@ -1,2 +1,3 @@
1
+ export * from './agency-organization.js';
1
2
  export * from './me/index.js';
2
3
  export * from './sidebar-logo/index.js';
@@ -1,2 +1,3 @@
1
+ export * from './agency-organization.js';
1
2
  export * from './me/index.js';
2
3
  export * from './sidebar-logo/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-core",
3
- "version": "20261029.1015.24",
3
+ "version": "20261102.1501.57",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"