@tmlmobilidade/go-types-extractions 20260914.1727.46

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 (63) hide show
  1. package/dist/create.d.ts +156 -0
  2. package/dist/create.js +11 -0
  3. package/dist/extraction.d.ts +264 -0
  4. package/dist/extraction.js +11 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.js +5 -0
  7. package/dist/modules/index.d.ts +3 -0
  8. package/dist/modules/index.js +3 -0
  9. package/dist/modules/infrastructure/index.d.ts +1 -0
  10. package/dist/modules/infrastructure/index.js +1 -0
  11. package/dist/modules/infrastructure/stops/index.d.ts +1 -0
  12. package/dist/modules/infrastructure/stops/index.js +1 -0
  13. package/dist/modules/infrastructure/stops/v1/create.d.ts +26 -0
  14. package/dist/modules/infrastructure/stops/v1/create.js +9 -0
  15. package/dist/modules/infrastructure/stops/v1/extraction.d.ts +62 -0
  16. package/dist/modules/infrastructure/stops/v1/extraction.js +6 -0
  17. package/dist/modules/infrastructure/stops/v1/index.d.ts +4 -0
  18. package/dist/modules/infrastructure/stops/v1/index.js +4 -0
  19. package/dist/modules/infrastructure/stops/v1/properties.d.ts +9 -0
  20. package/dist/modules/infrastructure/stops/v1/properties.js +6 -0
  21. package/dist/modules/infrastructure/stops/v1/version.d.ts +4 -0
  22. package/dist/modules/infrastructure/stops/v1/version.js +5 -0
  23. package/dist/modules/offer/gtfs/index.d.ts +1 -0
  24. package/dist/modules/offer/gtfs/index.js +1 -0
  25. package/dist/modules/offer/gtfs/v29/create.d.ts +92 -0
  26. package/dist/modules/offer/gtfs/v29/create.js +9 -0
  27. package/dist/modules/offer/gtfs/v29/extraction.d.ts +128 -0
  28. package/dist/modules/offer/gtfs/v29/extraction.js +6 -0
  29. package/dist/modules/offer/gtfs/v29/index.d.ts +4 -0
  30. package/dist/modules/offer/gtfs/v29/index.js +4 -0
  31. package/dist/modules/offer/gtfs/v29/properties.d.ts +47 -0
  32. package/dist/modules/offer/gtfs/v29/properties.js +17 -0
  33. package/dist/modules/offer/gtfs/v29/version.d.ts +4 -0
  34. package/dist/modules/offer/gtfs/v29/version.js +5 -0
  35. package/dist/modules/offer/index.d.ts +1 -0
  36. package/dist/modules/offer/index.js +1 -0
  37. package/dist/modules/operation/index.d.ts +1 -0
  38. package/dist/modules/operation/index.js +1 -0
  39. package/dist/modules/operation/rides/index.d.ts +1 -0
  40. package/dist/modules/operation/rides/index.js +1 -0
  41. package/dist/modules/operation/rides/v1/create.d.ts +44 -0
  42. package/dist/modules/operation/rides/v1/create.js +9 -0
  43. package/dist/modules/operation/rides/v1/extraction.d.ts +80 -0
  44. package/dist/modules/operation/rides/v1/extraction.js +6 -0
  45. package/dist/modules/operation/rides/v1/index.d.ts +4 -0
  46. package/dist/modules/operation/rides/v1/index.js +4 -0
  47. package/dist/modules/operation/rides/v1/properties.d.ts +19 -0
  48. package/dist/modules/operation/rides/v1/properties.js +11 -0
  49. package/dist/modules/operation/rides/v1/version.d.ts +4 -0
  50. package/dist/modules/operation/rides/v1/version.js +5 -0
  51. package/dist/shared/base-create.d.ts +9 -0
  52. package/dist/shared/base-create.js +6 -0
  53. package/dist/shared/base.d.ts +41 -0
  54. package/dist/shared/base.js +10 -0
  55. package/dist/shared/index.d.ts +4 -0
  56. package/dist/shared/index.js +4 -0
  57. package/dist/shared/task-context.d.ts +12 -0
  58. package/dist/shared/task-context.js +7 -0
  59. package/dist/shared/task-result.d.ts +3 -0
  60. package/dist/shared/task-result.js +4 -0
  61. package/dist/version.d.ts +4 -0
  62. package/dist/version.js +12 -0
  63. package/package.json +49 -0
@@ -0,0 +1,156 @@
1
+ import { z } from 'zod';
2
+ export declare const ExtractionCreateSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
3
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
4
+ } & {
5
+ properties: z.ZodObject<{
6
+ municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ municipality_ids?: string[] | undefined;
9
+ }, {
10
+ municipality_ids?: string[] | undefined;
11
+ }>;
12
+ version: z.ZodLiteral<"infrastructure-stops-v1">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ send_email_notification: boolean;
15
+ properties: {
16
+ municipality_ids?: string[] | undefined;
17
+ };
18
+ version: "infrastructure-stops-v1";
19
+ }, {
20
+ properties: {
21
+ municipality_ids?: string[] | undefined;
22
+ };
23
+ version: "infrastructure-stops-v1";
24
+ send_email_notification?: boolean | undefined;
25
+ }>, z.ZodObject<{
26
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
27
+ } & {
28
+ properties: z.ZodObject<{
29
+ agency_ids: z.ZodArray<z.ZodString, "many">;
30
+ calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
31
+ calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
32
+ feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
33
+ feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
34
+ lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
35
+ lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
36
+ lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
37
+ numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
38
+ stop_sequence_start: z.ZodDefault<z.ZodNumber>;
39
+ stops_export_all: z.ZodDefault<z.ZodBoolean>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ agency_ids: string[];
42
+ calendars_clip_end_date: string & {
43
+ __brand: "OperationalDate";
44
+ };
45
+ calendars_clip_start_date: string & {
46
+ __brand: "OperationalDate";
47
+ };
48
+ feed_end_date: string & {
49
+ __brand: "OperationalDate";
50
+ };
51
+ feed_start_date: string & {
52
+ __brand: "OperationalDate";
53
+ };
54
+ lines_exclude: string[];
55
+ lines_include: string[];
56
+ lines_mode: "all" | "exclude" | "include";
57
+ numeric_calendar_codes: boolean;
58
+ stop_sequence_start: number;
59
+ stops_export_all: boolean;
60
+ }, {
61
+ agency_ids: string[];
62
+ calendars_clip_end_date: string;
63
+ calendars_clip_start_date: string;
64
+ feed_end_date: string;
65
+ feed_start_date: string;
66
+ lines_exclude?: string[] | undefined;
67
+ lines_include?: string[] | undefined;
68
+ lines_mode?: "all" | "exclude" | "include" | undefined;
69
+ numeric_calendar_codes?: boolean | undefined;
70
+ stop_sequence_start?: number | undefined;
71
+ stops_export_all?: boolean | undefined;
72
+ }>;
73
+ version: z.ZodLiteral<"offer-gtfs-v29">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ send_email_notification: boolean;
76
+ properties: {
77
+ agency_ids: string[];
78
+ calendars_clip_end_date: string & {
79
+ __brand: "OperationalDate";
80
+ };
81
+ calendars_clip_start_date: string & {
82
+ __brand: "OperationalDate";
83
+ };
84
+ feed_end_date: string & {
85
+ __brand: "OperationalDate";
86
+ };
87
+ feed_start_date: string & {
88
+ __brand: "OperationalDate";
89
+ };
90
+ lines_exclude: string[];
91
+ lines_include: string[];
92
+ lines_mode: "all" | "exclude" | "include";
93
+ numeric_calendar_codes: boolean;
94
+ stop_sequence_start: number;
95
+ stops_export_all: boolean;
96
+ };
97
+ version: "offer-gtfs-v29";
98
+ }, {
99
+ properties: {
100
+ agency_ids: string[];
101
+ calendars_clip_end_date: string;
102
+ calendars_clip_start_date: string;
103
+ feed_end_date: string;
104
+ feed_start_date: string;
105
+ lines_exclude?: string[] | undefined;
106
+ lines_include?: string[] | undefined;
107
+ lines_mode?: "all" | "exclude" | "include" | undefined;
108
+ numeric_calendar_codes?: boolean | undefined;
109
+ stop_sequence_start?: number | undefined;
110
+ stops_export_all?: boolean | undefined;
111
+ };
112
+ version: "offer-gtfs-v29";
113
+ send_email_notification?: boolean | undefined;
114
+ }>, z.ZodObject<{
115
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
116
+ } & {
117
+ properties: z.ZodObject<{
118
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
119
+ start_time_scheduled_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
120
+ start_time_scheduled_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ agency_ids: string[];
123
+ start_time_scheduled_end: number & {
124
+ __brand: "UnixMilliseconds";
125
+ };
126
+ start_time_scheduled_start: number & {
127
+ __brand: "UnixMilliseconds";
128
+ };
129
+ }, {
130
+ start_time_scheduled_end: string | number;
131
+ start_time_scheduled_start: string | number;
132
+ agency_ids?: string[] | undefined;
133
+ }>;
134
+ version: z.ZodLiteral<"operation-rides-v1">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ send_email_notification: boolean;
137
+ properties: {
138
+ agency_ids: string[];
139
+ start_time_scheduled_end: number & {
140
+ __brand: "UnixMilliseconds";
141
+ };
142
+ start_time_scheduled_start: number & {
143
+ __brand: "UnixMilliseconds";
144
+ };
145
+ };
146
+ version: "operation-rides-v1";
147
+ }, {
148
+ properties: {
149
+ start_time_scheduled_end: string | number;
150
+ start_time_scheduled_start: string | number;
151
+ agency_ids?: string[] | undefined;
152
+ };
153
+ version: "operation-rides-v1";
154
+ send_email_notification?: boolean | undefined;
155
+ }>]>;
156
+ export type ExtractionCreate = z.infer<typeof ExtractionCreateSchema>;
package/dist/create.js ADDED
@@ -0,0 +1,11 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ import { InfrastructureStopsV1ExtractionCreateSchema } from './modules/infrastructure/stops/v1/create.js';
4
+ import { OfferGtfsV29ExtractionCreateSchema } from './modules/offer/gtfs/v29/create.js';
5
+ import { OperationRidesV1ExtractionCreateSchema } from './modules/operation/rides/v1/create.js';
6
+ /* * */
7
+ export const ExtractionCreateSchema = z.discriminatedUnion('version', [
8
+ InfrastructureStopsV1ExtractionCreateSchema,
9
+ OfferGtfsV29ExtractionCreateSchema,
10
+ OperationRidesV1ExtractionCreateSchema,
11
+ ]);
@@ -0,0 +1,264 @@
1
+ import { z } from 'zod';
2
+ export declare const ExtractionSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
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
+ attachment_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11
+ downloaded_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
12
+ processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
13
+ retries: z.ZodDefault<z.ZodNumber>;
14
+ } & {
15
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
16
+ } & {
17
+ properties: z.ZodObject<{
18
+ municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ municipality_ids?: string[] | undefined;
21
+ }, {
22
+ municipality_ids?: string[] | undefined;
23
+ }>;
24
+ version: z.ZodLiteral<"infrastructure-stops-v1">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ send_email_notification: boolean;
27
+ properties: {
28
+ municipality_ids?: string[] | undefined;
29
+ };
30
+ version: "infrastructure-stops-v1";
31
+ attachment_id: string | null;
32
+ downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
33
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
34
+ retries: number;
35
+ _id: string;
36
+ created_at: number & {
37
+ __brand: "UnixMilliseconds";
38
+ };
39
+ created_by: string;
40
+ is_locked: boolean;
41
+ updated_at: number & {
42
+ __brand: "UnixMilliseconds";
43
+ };
44
+ updated_by?: string | undefined;
45
+ }, {
46
+ properties: {
47
+ municipality_ids?: string[] | undefined;
48
+ };
49
+ version: "infrastructure-stops-v1";
50
+ _id: string;
51
+ created_at: string | number;
52
+ created_by: string;
53
+ updated_at: string | number;
54
+ send_email_notification?: boolean | undefined;
55
+ attachment_id?: string | null | undefined;
56
+ downloaded_at?: string | number | null | undefined;
57
+ processing_status?: string | undefined;
58
+ retries?: number | undefined;
59
+ is_locked?: boolean | undefined;
60
+ updated_by?: string | undefined;
61
+ }>, z.ZodObject<{
62
+ _id: z.ZodString;
63
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
64
+ created_by: z.ZodString;
65
+ is_locked: z.ZodDefault<z.ZodBoolean>;
66
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
67
+ updated_by: z.ZodOptional<z.ZodString>;
68
+ } & {
69
+ attachment_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
70
+ downloaded_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
71
+ processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
72
+ retries: z.ZodDefault<z.ZodNumber>;
73
+ } & {
74
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
75
+ } & {
76
+ properties: z.ZodObject<{
77
+ agency_ids: z.ZodArray<z.ZodString, "many">;
78
+ calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
79
+ calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
80
+ feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
81
+ feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
82
+ lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
83
+ lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
84
+ lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
85
+ numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
86
+ stop_sequence_start: z.ZodDefault<z.ZodNumber>;
87
+ stops_export_all: z.ZodDefault<z.ZodBoolean>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ agency_ids: string[];
90
+ calendars_clip_end_date: string & {
91
+ __brand: "OperationalDate";
92
+ };
93
+ calendars_clip_start_date: string & {
94
+ __brand: "OperationalDate";
95
+ };
96
+ feed_end_date: string & {
97
+ __brand: "OperationalDate";
98
+ };
99
+ feed_start_date: string & {
100
+ __brand: "OperationalDate";
101
+ };
102
+ lines_exclude: string[];
103
+ lines_include: string[];
104
+ lines_mode: "all" | "exclude" | "include";
105
+ numeric_calendar_codes: boolean;
106
+ stop_sequence_start: number;
107
+ stops_export_all: boolean;
108
+ }, {
109
+ agency_ids: string[];
110
+ calendars_clip_end_date: string;
111
+ calendars_clip_start_date: string;
112
+ feed_end_date: string;
113
+ feed_start_date: string;
114
+ lines_exclude?: string[] | undefined;
115
+ lines_include?: string[] | undefined;
116
+ lines_mode?: "all" | "exclude" | "include" | undefined;
117
+ numeric_calendar_codes?: boolean | undefined;
118
+ stop_sequence_start?: number | undefined;
119
+ stops_export_all?: boolean | undefined;
120
+ }>;
121
+ version: z.ZodLiteral<"offer-gtfs-v29">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ send_email_notification: boolean;
124
+ properties: {
125
+ agency_ids: string[];
126
+ calendars_clip_end_date: string & {
127
+ __brand: "OperationalDate";
128
+ };
129
+ calendars_clip_start_date: string & {
130
+ __brand: "OperationalDate";
131
+ };
132
+ feed_end_date: string & {
133
+ __brand: "OperationalDate";
134
+ };
135
+ feed_start_date: string & {
136
+ __brand: "OperationalDate";
137
+ };
138
+ lines_exclude: string[];
139
+ lines_include: string[];
140
+ lines_mode: "all" | "exclude" | "include";
141
+ numeric_calendar_codes: boolean;
142
+ stop_sequence_start: number;
143
+ stops_export_all: boolean;
144
+ };
145
+ version: "offer-gtfs-v29";
146
+ attachment_id: string | null;
147
+ downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
148
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
149
+ retries: number;
150
+ _id: string;
151
+ created_at: number & {
152
+ __brand: "UnixMilliseconds";
153
+ };
154
+ created_by: string;
155
+ is_locked: boolean;
156
+ updated_at: number & {
157
+ __brand: "UnixMilliseconds";
158
+ };
159
+ updated_by?: string | undefined;
160
+ }, {
161
+ properties: {
162
+ agency_ids: string[];
163
+ calendars_clip_end_date: string;
164
+ calendars_clip_start_date: string;
165
+ feed_end_date: string;
166
+ feed_start_date: string;
167
+ lines_exclude?: string[] | undefined;
168
+ lines_include?: string[] | undefined;
169
+ lines_mode?: "all" | "exclude" | "include" | undefined;
170
+ numeric_calendar_codes?: boolean | undefined;
171
+ stop_sequence_start?: number | undefined;
172
+ stops_export_all?: boolean | undefined;
173
+ };
174
+ version: "offer-gtfs-v29";
175
+ _id: string;
176
+ created_at: string | number;
177
+ created_by: string;
178
+ updated_at: string | number;
179
+ send_email_notification?: boolean | undefined;
180
+ attachment_id?: string | null | undefined;
181
+ downloaded_at?: string | number | null | undefined;
182
+ processing_status?: string | undefined;
183
+ retries?: number | undefined;
184
+ is_locked?: boolean | undefined;
185
+ updated_by?: string | undefined;
186
+ }>, z.ZodObject<{
187
+ _id: z.ZodString;
188
+ created_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
189
+ created_by: z.ZodString;
190
+ is_locked: z.ZodDefault<z.ZodBoolean>;
191
+ updated_at: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
192
+ updated_by: z.ZodOptional<z.ZodString>;
193
+ } & {
194
+ attachment_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
195
+ downloaded_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
196
+ processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
197
+ retries: z.ZodDefault<z.ZodNumber>;
198
+ } & {
199
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
200
+ } & {
201
+ properties: z.ZodObject<{
202
+ agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
203
+ start_time_scheduled_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
204
+ start_time_scheduled_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ agency_ids: string[];
207
+ start_time_scheduled_end: number & {
208
+ __brand: "UnixMilliseconds";
209
+ };
210
+ start_time_scheduled_start: number & {
211
+ __brand: "UnixMilliseconds";
212
+ };
213
+ }, {
214
+ start_time_scheduled_end: string | number;
215
+ start_time_scheduled_start: string | number;
216
+ agency_ids?: string[] | undefined;
217
+ }>;
218
+ version: z.ZodLiteral<"operation-rides-v1">;
219
+ }, "strip", z.ZodTypeAny, {
220
+ send_email_notification: boolean;
221
+ properties: {
222
+ agency_ids: string[];
223
+ start_time_scheduled_end: number & {
224
+ __brand: "UnixMilliseconds";
225
+ };
226
+ start_time_scheduled_start: number & {
227
+ __brand: "UnixMilliseconds";
228
+ };
229
+ };
230
+ version: "operation-rides-v1";
231
+ attachment_id: string | null;
232
+ downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
233
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
234
+ retries: number;
235
+ _id: string;
236
+ created_at: number & {
237
+ __brand: "UnixMilliseconds";
238
+ };
239
+ created_by: string;
240
+ is_locked: boolean;
241
+ updated_at: number & {
242
+ __brand: "UnixMilliseconds";
243
+ };
244
+ updated_by?: string | undefined;
245
+ }, {
246
+ properties: {
247
+ start_time_scheduled_end: string | number;
248
+ start_time_scheduled_start: string | number;
249
+ agency_ids?: string[] | undefined;
250
+ };
251
+ version: "operation-rides-v1";
252
+ _id: string;
253
+ created_at: string | number;
254
+ created_by: string;
255
+ updated_at: string | number;
256
+ send_email_notification?: boolean | undefined;
257
+ attachment_id?: string | null | undefined;
258
+ downloaded_at?: string | number | null | undefined;
259
+ processing_status?: string | undefined;
260
+ retries?: number | undefined;
261
+ is_locked?: boolean | undefined;
262
+ updated_by?: string | undefined;
263
+ }>]>;
264
+ export type Extraction = z.infer<typeof ExtractionSchema>;
@@ -0,0 +1,11 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ import { InfrastructureStopsV1ExtractionSchema } from './modules/infrastructure/stops/v1/extraction.js';
4
+ import { OfferGtfsV29ExtractionSchema } from './modules/offer/gtfs/v29/extraction.js';
5
+ import { OperationRidesV1ExtractionSchema } from './modules/operation/rides/v1/extraction.js';
6
+ /* * */
7
+ export const ExtractionSchema = z.discriminatedUnion('version', [
8
+ InfrastructureStopsV1ExtractionSchema,
9
+ OfferGtfsV29ExtractionSchema,
10
+ OperationRidesV1ExtractionSchema,
11
+ ]);
@@ -0,0 +1,5 @@
1
+ export * from './create.js';
2
+ export * from './extraction.js';
3
+ export * from './modules/index.js';
4
+ export * from './shared/index.js';
5
+ export * from './version.js';
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from './create.js';
2
+ export * from './extraction.js';
3
+ export * from './modules/index.js';
4
+ export * from './shared/index.js';
5
+ export * from './version.js';
@@ -0,0 +1,3 @@
1
+ export * from './infrastructure/index.js';
2
+ export * from './offer/index.js';
3
+ export * from './operation/index.js';
@@ -0,0 +1,3 @@
1
+ export * from './infrastructure/index.js';
2
+ export * from './offer/index.js';
3
+ export * from './operation/index.js';
@@ -0,0 +1 @@
1
+ export * from './stops/index.js';
@@ -0,0 +1 @@
1
+ export * from './stops/index.js';
@@ -0,0 +1 @@
1
+ export * from './v1/index.js';
@@ -0,0 +1 @@
1
+ export * from './v1/index.js';
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ export declare const InfrastructureStopsV1ExtractionCreateSchema: z.ZodObject<{
3
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
4
+ } & {
5
+ properties: z.ZodObject<{
6
+ municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ municipality_ids?: string[] | undefined;
9
+ }, {
10
+ municipality_ids?: string[] | undefined;
11
+ }>;
12
+ version: z.ZodLiteral<"infrastructure-stops-v1">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ send_email_notification: boolean;
15
+ properties: {
16
+ municipality_ids?: string[] | undefined;
17
+ };
18
+ version: "infrastructure-stops-v1";
19
+ }, {
20
+ properties: {
21
+ municipality_ids?: string[] | undefined;
22
+ };
23
+ version: "infrastructure-stops-v1";
24
+ send_email_notification?: boolean | undefined;
25
+ }>;
26
+ export type InfrastructureStopsV1ExtractionCreate = z.infer<typeof InfrastructureStopsV1ExtractionCreateSchema>;
@@ -0,0 +1,9 @@
1
+ /* * */
2
+ import { ExtractionBaseCreateSchema } from '../../../../shared/base-create.js';
3
+ import { InfrastructureStopsV1ExtractionPropertiesSchema } from './properties.js';
4
+ import { InfrastructureStopsV1ExtractionVersionSchema } from './version.js';
5
+ /* * */
6
+ export const InfrastructureStopsV1ExtractionCreateSchema = ExtractionBaseCreateSchema.extend({
7
+ properties: InfrastructureStopsV1ExtractionPropertiesSchema,
8
+ version: InfrastructureStopsV1ExtractionVersionSchema,
9
+ });
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod';
2
+ export declare const InfrastructureStopsV1ExtractionSchema: z.ZodObject<{
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
+ attachment_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
11
+ downloaded_at: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>>>;
12
+ processing_status: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>>>;
13
+ retries: z.ZodDefault<z.ZodNumber>;
14
+ } & {
15
+ send_email_notification: z.ZodDefault<z.ZodBoolean>;
16
+ } & {
17
+ properties: z.ZodObject<{
18
+ municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ municipality_ids?: string[] | undefined;
21
+ }, {
22
+ municipality_ids?: string[] | undefined;
23
+ }>;
24
+ version: z.ZodLiteral<"infrastructure-stops-v1">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ send_email_notification: boolean;
27
+ properties: {
28
+ municipality_ids?: string[] | undefined;
29
+ };
30
+ version: "infrastructure-stops-v1";
31
+ attachment_id: string | null;
32
+ downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
33
+ processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
34
+ retries: number;
35
+ _id: string;
36
+ created_at: number & {
37
+ __brand: "UnixMilliseconds";
38
+ };
39
+ created_by: string;
40
+ is_locked: boolean;
41
+ updated_at: number & {
42
+ __brand: "UnixMilliseconds";
43
+ };
44
+ updated_by?: string | undefined;
45
+ }, {
46
+ properties: {
47
+ municipality_ids?: string[] | undefined;
48
+ };
49
+ version: "infrastructure-stops-v1";
50
+ _id: string;
51
+ created_at: string | number;
52
+ created_by: string;
53
+ updated_at: string | number;
54
+ send_email_notification?: boolean | undefined;
55
+ attachment_id?: string | null | undefined;
56
+ downloaded_at?: string | number | null | undefined;
57
+ processing_status?: string | undefined;
58
+ retries?: number | undefined;
59
+ is_locked?: boolean | undefined;
60
+ updated_by?: string | undefined;
61
+ }>;
62
+ export type InfrastructureStopsV1Extraction = z.infer<typeof InfrastructureStopsV1ExtractionSchema>;
@@ -0,0 +1,6 @@
1
+ /* * */
2
+ import { ExtractionBaseSchema } from '../../../../shared/base.js';
3
+ import { InfrastructureStopsV1ExtractionCreateSchema } from './create.js';
4
+ /* * */
5
+ export const InfrastructureStopsV1ExtractionSchema = ExtractionBaseSchema
6
+ .merge(InfrastructureStopsV1ExtractionCreateSchema);
@@ -0,0 +1,4 @@
1
+ export * from './create.js';
2
+ export * from './extraction.js';
3
+ export * from './properties.js';
4
+ export * from './version.js';
@@ -0,0 +1,4 @@
1
+ export * from './create.js';
2
+ export * from './extraction.js';
3
+ export * from './properties.js';
4
+ export * from './version.js';
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const InfrastructureStopsV1ExtractionPropertiesSchema: z.ZodObject<{
3
+ municipality_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ municipality_ids?: string[] | undefined;
6
+ }, {
7
+ municipality_ids?: string[] | undefined;
8
+ }>;
9
+ export type InfrastructureStopsV1ExtractionProperties = z.infer<typeof InfrastructureStopsV1ExtractionPropertiesSchema>;
@@ -0,0 +1,6 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const InfrastructureStopsV1ExtractionPropertiesSchema = z.object({
5
+ municipality_ids: z.array(z.string()).optional(),
6
+ });
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const InfrastructureStopsV1ExtractionVersionValue = "infrastructure-stops-v1";
3
+ export declare const InfrastructureStopsV1ExtractionVersionSchema: z.ZodLiteral<"infrastructure-stops-v1">;
4
+ export type InfrastructureStopsV1ExtractionVersion = z.infer<typeof InfrastructureStopsV1ExtractionVersionSchema>;
@@ -0,0 +1,5 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const InfrastructureStopsV1ExtractionVersionValue = 'infrastructure-stops-v1';
5
+ export const InfrastructureStopsV1ExtractionVersionSchema = z.literal(InfrastructureStopsV1ExtractionVersionValue);
@@ -0,0 +1 @@
1
+ export * from './v29/index.js';
@@ -0,0 +1 @@
1
+ export * from './v29/index.js';