@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.
- package/dist/create.d.ts +156 -0
- package/dist/create.js +11 -0
- package/dist/extraction.d.ts +264 -0
- package/dist/extraction.js +11 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/modules/index.d.ts +3 -0
- package/dist/modules/index.js +3 -0
- package/dist/modules/infrastructure/index.d.ts +1 -0
- package/dist/modules/infrastructure/index.js +1 -0
- package/dist/modules/infrastructure/stops/index.d.ts +1 -0
- package/dist/modules/infrastructure/stops/index.js +1 -0
- package/dist/modules/infrastructure/stops/v1/create.d.ts +26 -0
- package/dist/modules/infrastructure/stops/v1/create.js +9 -0
- package/dist/modules/infrastructure/stops/v1/extraction.d.ts +62 -0
- package/dist/modules/infrastructure/stops/v1/extraction.js +6 -0
- package/dist/modules/infrastructure/stops/v1/index.d.ts +4 -0
- package/dist/modules/infrastructure/stops/v1/index.js +4 -0
- package/dist/modules/infrastructure/stops/v1/properties.d.ts +9 -0
- package/dist/modules/infrastructure/stops/v1/properties.js +6 -0
- package/dist/modules/infrastructure/stops/v1/version.d.ts +4 -0
- package/dist/modules/infrastructure/stops/v1/version.js +5 -0
- package/dist/modules/offer/gtfs/index.d.ts +1 -0
- package/dist/modules/offer/gtfs/index.js +1 -0
- package/dist/modules/offer/gtfs/v29/create.d.ts +92 -0
- package/dist/modules/offer/gtfs/v29/create.js +9 -0
- package/dist/modules/offer/gtfs/v29/extraction.d.ts +128 -0
- package/dist/modules/offer/gtfs/v29/extraction.js +6 -0
- package/dist/modules/offer/gtfs/v29/index.d.ts +4 -0
- package/dist/modules/offer/gtfs/v29/index.js +4 -0
- package/dist/modules/offer/gtfs/v29/properties.d.ts +47 -0
- package/dist/modules/offer/gtfs/v29/properties.js +17 -0
- package/dist/modules/offer/gtfs/v29/version.d.ts +4 -0
- package/dist/modules/offer/gtfs/v29/version.js +5 -0
- package/dist/modules/offer/index.d.ts +1 -0
- package/dist/modules/offer/index.js +1 -0
- package/dist/modules/operation/index.d.ts +1 -0
- package/dist/modules/operation/index.js +1 -0
- package/dist/modules/operation/rides/index.d.ts +1 -0
- package/dist/modules/operation/rides/index.js +1 -0
- package/dist/modules/operation/rides/v1/create.d.ts +44 -0
- package/dist/modules/operation/rides/v1/create.js +9 -0
- package/dist/modules/operation/rides/v1/extraction.d.ts +80 -0
- package/dist/modules/operation/rides/v1/extraction.js +6 -0
- package/dist/modules/operation/rides/v1/index.d.ts +4 -0
- package/dist/modules/operation/rides/v1/index.js +4 -0
- package/dist/modules/operation/rides/v1/properties.d.ts +19 -0
- package/dist/modules/operation/rides/v1/properties.js +11 -0
- package/dist/modules/operation/rides/v1/version.d.ts +4 -0
- package/dist/modules/operation/rides/v1/version.js +5 -0
- package/dist/shared/base-create.d.ts +9 -0
- package/dist/shared/base-create.js +6 -0
- package/dist/shared/base.d.ts +41 -0
- package/dist/shared/base.js +10 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/task-context.d.ts +12 -0
- package/dist/shared/task-context.js +7 -0
- package/dist/shared/task-result.d.ts +3 -0
- package/dist/shared/task-result.js +4 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +12 -0
- package/package.json +49 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OfferGtfsV29ExtractionCreateSchema: z.ZodObject<{
|
|
3
|
+
send_email_notification: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
} & {
|
|
5
|
+
properties: z.ZodObject<{
|
|
6
|
+
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
7
|
+
calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
8
|
+
calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
9
|
+
feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
10
|
+
feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
11
|
+
lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
|
|
14
|
+
numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
stop_sequence_start: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
stops_export_all: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
agency_ids: string[];
|
|
19
|
+
calendars_clip_end_date: string & {
|
|
20
|
+
__brand: "OperationalDate";
|
|
21
|
+
};
|
|
22
|
+
calendars_clip_start_date: string & {
|
|
23
|
+
__brand: "OperationalDate";
|
|
24
|
+
};
|
|
25
|
+
feed_end_date: string & {
|
|
26
|
+
__brand: "OperationalDate";
|
|
27
|
+
};
|
|
28
|
+
feed_start_date: string & {
|
|
29
|
+
__brand: "OperationalDate";
|
|
30
|
+
};
|
|
31
|
+
lines_exclude: string[];
|
|
32
|
+
lines_include: string[];
|
|
33
|
+
lines_mode: "all" | "exclude" | "include";
|
|
34
|
+
numeric_calendar_codes: boolean;
|
|
35
|
+
stop_sequence_start: number;
|
|
36
|
+
stops_export_all: boolean;
|
|
37
|
+
}, {
|
|
38
|
+
agency_ids: string[];
|
|
39
|
+
calendars_clip_end_date: string;
|
|
40
|
+
calendars_clip_start_date: string;
|
|
41
|
+
feed_end_date: string;
|
|
42
|
+
feed_start_date: string;
|
|
43
|
+
lines_exclude?: string[] | undefined;
|
|
44
|
+
lines_include?: string[] | undefined;
|
|
45
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
46
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
47
|
+
stop_sequence_start?: number | undefined;
|
|
48
|
+
stops_export_all?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
version: z.ZodLiteral<"offer-gtfs-v29">;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
send_email_notification: boolean;
|
|
53
|
+
properties: {
|
|
54
|
+
agency_ids: string[];
|
|
55
|
+
calendars_clip_end_date: string & {
|
|
56
|
+
__brand: "OperationalDate";
|
|
57
|
+
};
|
|
58
|
+
calendars_clip_start_date: string & {
|
|
59
|
+
__brand: "OperationalDate";
|
|
60
|
+
};
|
|
61
|
+
feed_end_date: string & {
|
|
62
|
+
__brand: "OperationalDate";
|
|
63
|
+
};
|
|
64
|
+
feed_start_date: string & {
|
|
65
|
+
__brand: "OperationalDate";
|
|
66
|
+
};
|
|
67
|
+
lines_exclude: string[];
|
|
68
|
+
lines_include: string[];
|
|
69
|
+
lines_mode: "all" | "exclude" | "include";
|
|
70
|
+
numeric_calendar_codes: boolean;
|
|
71
|
+
stop_sequence_start: number;
|
|
72
|
+
stops_export_all: boolean;
|
|
73
|
+
};
|
|
74
|
+
version: "offer-gtfs-v29";
|
|
75
|
+
}, {
|
|
76
|
+
properties: {
|
|
77
|
+
agency_ids: string[];
|
|
78
|
+
calendars_clip_end_date: string;
|
|
79
|
+
calendars_clip_start_date: string;
|
|
80
|
+
feed_end_date: string;
|
|
81
|
+
feed_start_date: string;
|
|
82
|
+
lines_exclude?: string[] | undefined;
|
|
83
|
+
lines_include?: string[] | undefined;
|
|
84
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
85
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
86
|
+
stop_sequence_start?: number | undefined;
|
|
87
|
+
stops_export_all?: boolean | undefined;
|
|
88
|
+
};
|
|
89
|
+
version: "offer-gtfs-v29";
|
|
90
|
+
send_email_notification?: boolean | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
export type OfferGtfsV29ExtractionCreate = z.infer<typeof OfferGtfsV29ExtractionCreateSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { ExtractionBaseCreateSchema } from '../../../../shared/base-create.js';
|
|
3
|
+
import { OfferGtfsV29ExtractionPropertiesSchema } from './properties.js';
|
|
4
|
+
import { OfferGtfsV29ExtractionVersionSchema } from './version.js';
|
|
5
|
+
/* * */
|
|
6
|
+
export const OfferGtfsV29ExtractionCreateSchema = ExtractionBaseCreateSchema.extend({
|
|
7
|
+
properties: OfferGtfsV29ExtractionPropertiesSchema,
|
|
8
|
+
version: OfferGtfsV29ExtractionVersionSchema,
|
|
9
|
+
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OfferGtfsV29ExtractionSchema: 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
|
+
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
20
|
+
calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
21
|
+
feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
22
|
+
feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
23
|
+
lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
+
lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
|
|
26
|
+
numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
stop_sequence_start: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
stops_export_all: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
agency_ids: string[];
|
|
31
|
+
calendars_clip_end_date: string & {
|
|
32
|
+
__brand: "OperationalDate";
|
|
33
|
+
};
|
|
34
|
+
calendars_clip_start_date: string & {
|
|
35
|
+
__brand: "OperationalDate";
|
|
36
|
+
};
|
|
37
|
+
feed_end_date: string & {
|
|
38
|
+
__brand: "OperationalDate";
|
|
39
|
+
};
|
|
40
|
+
feed_start_date: string & {
|
|
41
|
+
__brand: "OperationalDate";
|
|
42
|
+
};
|
|
43
|
+
lines_exclude: string[];
|
|
44
|
+
lines_include: string[];
|
|
45
|
+
lines_mode: "all" | "exclude" | "include";
|
|
46
|
+
numeric_calendar_codes: boolean;
|
|
47
|
+
stop_sequence_start: number;
|
|
48
|
+
stops_export_all: boolean;
|
|
49
|
+
}, {
|
|
50
|
+
agency_ids: string[];
|
|
51
|
+
calendars_clip_end_date: string;
|
|
52
|
+
calendars_clip_start_date: string;
|
|
53
|
+
feed_end_date: string;
|
|
54
|
+
feed_start_date: string;
|
|
55
|
+
lines_exclude?: string[] | undefined;
|
|
56
|
+
lines_include?: string[] | undefined;
|
|
57
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
58
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
59
|
+
stop_sequence_start?: number | undefined;
|
|
60
|
+
stops_export_all?: boolean | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
version: z.ZodLiteral<"offer-gtfs-v29">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
send_email_notification: boolean;
|
|
65
|
+
properties: {
|
|
66
|
+
agency_ids: string[];
|
|
67
|
+
calendars_clip_end_date: string & {
|
|
68
|
+
__brand: "OperationalDate";
|
|
69
|
+
};
|
|
70
|
+
calendars_clip_start_date: string & {
|
|
71
|
+
__brand: "OperationalDate";
|
|
72
|
+
};
|
|
73
|
+
feed_end_date: string & {
|
|
74
|
+
__brand: "OperationalDate";
|
|
75
|
+
};
|
|
76
|
+
feed_start_date: string & {
|
|
77
|
+
__brand: "OperationalDate";
|
|
78
|
+
};
|
|
79
|
+
lines_exclude: string[];
|
|
80
|
+
lines_include: string[];
|
|
81
|
+
lines_mode: "all" | "exclude" | "include";
|
|
82
|
+
numeric_calendar_codes: boolean;
|
|
83
|
+
stop_sequence_start: number;
|
|
84
|
+
stops_export_all: boolean;
|
|
85
|
+
};
|
|
86
|
+
version: "offer-gtfs-v29";
|
|
87
|
+
attachment_id: string | null;
|
|
88
|
+
downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
|
|
89
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
90
|
+
retries: number;
|
|
91
|
+
_id: string;
|
|
92
|
+
created_at: number & {
|
|
93
|
+
__brand: "UnixMilliseconds";
|
|
94
|
+
};
|
|
95
|
+
created_by: string;
|
|
96
|
+
is_locked: boolean;
|
|
97
|
+
updated_at: number & {
|
|
98
|
+
__brand: "UnixMilliseconds";
|
|
99
|
+
};
|
|
100
|
+
updated_by?: string | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
properties: {
|
|
103
|
+
agency_ids: string[];
|
|
104
|
+
calendars_clip_end_date: string;
|
|
105
|
+
calendars_clip_start_date: string;
|
|
106
|
+
feed_end_date: string;
|
|
107
|
+
feed_start_date: string;
|
|
108
|
+
lines_exclude?: string[] | undefined;
|
|
109
|
+
lines_include?: string[] | undefined;
|
|
110
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
111
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
112
|
+
stop_sequence_start?: number | undefined;
|
|
113
|
+
stops_export_all?: boolean | undefined;
|
|
114
|
+
};
|
|
115
|
+
version: "offer-gtfs-v29";
|
|
116
|
+
_id: string;
|
|
117
|
+
created_at: string | number;
|
|
118
|
+
created_by: string;
|
|
119
|
+
updated_at: string | number;
|
|
120
|
+
send_email_notification?: boolean | undefined;
|
|
121
|
+
attachment_id?: string | null | undefined;
|
|
122
|
+
downloaded_at?: string | number | null | undefined;
|
|
123
|
+
processing_status?: string | undefined;
|
|
124
|
+
retries?: number | undefined;
|
|
125
|
+
is_locked?: boolean | undefined;
|
|
126
|
+
updated_by?: string | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
export type OfferGtfsV29Extraction = z.infer<typeof OfferGtfsV29ExtractionSchema>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OfferGtfsV29ExtractionPropertiesSchema: z.ZodObject<{
|
|
3
|
+
agency_ids: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
calendars_clip_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
5
|
+
calendars_clip_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
6
|
+
feed_end_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
7
|
+
feed_start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
|
|
8
|
+
lines_exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
lines_include: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
lines_mode: z.ZodDefault<z.ZodEnum<["all", "exclude", "include"]>>;
|
|
11
|
+
numeric_calendar_codes: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
stop_sequence_start: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
stops_export_all: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
agency_ids: string[];
|
|
16
|
+
calendars_clip_end_date: string & {
|
|
17
|
+
__brand: "OperationalDate";
|
|
18
|
+
};
|
|
19
|
+
calendars_clip_start_date: string & {
|
|
20
|
+
__brand: "OperationalDate";
|
|
21
|
+
};
|
|
22
|
+
feed_end_date: string & {
|
|
23
|
+
__brand: "OperationalDate";
|
|
24
|
+
};
|
|
25
|
+
feed_start_date: string & {
|
|
26
|
+
__brand: "OperationalDate";
|
|
27
|
+
};
|
|
28
|
+
lines_exclude: string[];
|
|
29
|
+
lines_include: string[];
|
|
30
|
+
lines_mode: "all" | "exclude" | "include";
|
|
31
|
+
numeric_calendar_codes: boolean;
|
|
32
|
+
stop_sequence_start: number;
|
|
33
|
+
stops_export_all: boolean;
|
|
34
|
+
}, {
|
|
35
|
+
agency_ids: string[];
|
|
36
|
+
calendars_clip_end_date: string;
|
|
37
|
+
calendars_clip_start_date: string;
|
|
38
|
+
feed_end_date: string;
|
|
39
|
+
feed_start_date: string;
|
|
40
|
+
lines_exclude?: string[] | undefined;
|
|
41
|
+
lines_include?: string[] | undefined;
|
|
42
|
+
lines_mode?: "all" | "exclude" | "include" | undefined;
|
|
43
|
+
numeric_calendar_codes?: boolean | undefined;
|
|
44
|
+
stop_sequence_start?: number | undefined;
|
|
45
|
+
stops_export_all?: boolean | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type OfferGtfsV29ExtractionProperties = z.infer<typeof OfferGtfsV29ExtractionPropertiesSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const OfferGtfsV29ExtractionPropertiesSchema = z.object({
|
|
6
|
+
agency_ids: z.array(z.string()),
|
|
7
|
+
calendars_clip_end_date: OperationalDateSchema,
|
|
8
|
+
calendars_clip_start_date: OperationalDateSchema,
|
|
9
|
+
feed_end_date: OperationalDateSchema,
|
|
10
|
+
feed_start_date: OperationalDateSchema,
|
|
11
|
+
lines_exclude: z.array(z.string()).default([]),
|
|
12
|
+
lines_include: z.array(z.string()).default([]),
|
|
13
|
+
lines_mode: z.enum(['all', 'exclude', 'include']).default('all'),
|
|
14
|
+
numeric_calendar_codes: z.boolean().default(false),
|
|
15
|
+
stop_sequence_start: z.number().default(1),
|
|
16
|
+
stops_export_all: z.boolean().default(true),
|
|
17
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OfferGtfsV29ExtractionVersionValue = "offer-gtfs-v29";
|
|
3
|
+
export declare const OfferGtfsV29ExtractionVersionSchema: z.ZodLiteral<"offer-gtfs-v29">;
|
|
4
|
+
export type OfferGtfsV29ExtractionVersion = z.infer<typeof OfferGtfsV29ExtractionVersionSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gtfs/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gtfs/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rides/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rides/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1/index.js';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OperationRidesV1ExtractionCreateSchema: z.ZodObject<{
|
|
3
|
+
send_email_notification: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
} & {
|
|
5
|
+
properties: z.ZodObject<{
|
|
6
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
start_time_scheduled_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
8
|
+
start_time_scheduled_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
agency_ids: string[];
|
|
11
|
+
start_time_scheduled_end: number & {
|
|
12
|
+
__brand: "UnixMilliseconds";
|
|
13
|
+
};
|
|
14
|
+
start_time_scheduled_start: number & {
|
|
15
|
+
__brand: "UnixMilliseconds";
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
start_time_scheduled_end: string | number;
|
|
19
|
+
start_time_scheduled_start: string | number;
|
|
20
|
+
agency_ids?: string[] | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
version: z.ZodLiteral<"operation-rides-v1">;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
send_email_notification: boolean;
|
|
25
|
+
properties: {
|
|
26
|
+
agency_ids: string[];
|
|
27
|
+
start_time_scheduled_end: number & {
|
|
28
|
+
__brand: "UnixMilliseconds";
|
|
29
|
+
};
|
|
30
|
+
start_time_scheduled_start: number & {
|
|
31
|
+
__brand: "UnixMilliseconds";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
version: "operation-rides-v1";
|
|
35
|
+
}, {
|
|
36
|
+
properties: {
|
|
37
|
+
start_time_scheduled_end: string | number;
|
|
38
|
+
start_time_scheduled_start: string | number;
|
|
39
|
+
agency_ids?: string[] | undefined;
|
|
40
|
+
};
|
|
41
|
+
version: "operation-rides-v1";
|
|
42
|
+
send_email_notification?: boolean | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type OperationRidesV1ExtractionCreate = z.infer<typeof OperationRidesV1ExtractionCreateSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { ExtractionBaseCreateSchema } from '../../../../shared/base-create.js';
|
|
3
|
+
import { OperationRidesV1ExtractionPropertiesSchema } from './properties.js';
|
|
4
|
+
import { OperationRidesV1ExtractionVersionSchema } from './version.js';
|
|
5
|
+
/* * */
|
|
6
|
+
export const OperationRidesV1ExtractionCreateSchema = ExtractionBaseCreateSchema.extend({
|
|
7
|
+
properties: OperationRidesV1ExtractionPropertiesSchema,
|
|
8
|
+
version: OperationRidesV1ExtractionVersionSchema,
|
|
9
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OperationRidesV1ExtractionSchema: 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
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
start_time_scheduled_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
20
|
+
start_time_scheduled_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
agency_ids: string[];
|
|
23
|
+
start_time_scheduled_end: number & {
|
|
24
|
+
__brand: "UnixMilliseconds";
|
|
25
|
+
};
|
|
26
|
+
start_time_scheduled_start: number & {
|
|
27
|
+
__brand: "UnixMilliseconds";
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
start_time_scheduled_end: string | number;
|
|
31
|
+
start_time_scheduled_start: string | number;
|
|
32
|
+
agency_ids?: string[] | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
version: z.ZodLiteral<"operation-rides-v1">;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
send_email_notification: boolean;
|
|
37
|
+
properties: {
|
|
38
|
+
agency_ids: string[];
|
|
39
|
+
start_time_scheduled_end: number & {
|
|
40
|
+
__brand: "UnixMilliseconds";
|
|
41
|
+
};
|
|
42
|
+
start_time_scheduled_start: number & {
|
|
43
|
+
__brand: "UnixMilliseconds";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
version: "operation-rides-v1";
|
|
47
|
+
attachment_id: string | null;
|
|
48
|
+
downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
|
|
49
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
50
|
+
retries: number;
|
|
51
|
+
_id: string;
|
|
52
|
+
created_at: number & {
|
|
53
|
+
__brand: "UnixMilliseconds";
|
|
54
|
+
};
|
|
55
|
+
created_by: string;
|
|
56
|
+
is_locked: boolean;
|
|
57
|
+
updated_at: number & {
|
|
58
|
+
__brand: "UnixMilliseconds";
|
|
59
|
+
};
|
|
60
|
+
updated_by?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
properties: {
|
|
63
|
+
start_time_scheduled_end: string | number;
|
|
64
|
+
start_time_scheduled_start: string | number;
|
|
65
|
+
agency_ids?: string[] | undefined;
|
|
66
|
+
};
|
|
67
|
+
version: "operation-rides-v1";
|
|
68
|
+
_id: string;
|
|
69
|
+
created_at: string | number;
|
|
70
|
+
created_by: string;
|
|
71
|
+
updated_at: string | number;
|
|
72
|
+
send_email_notification?: boolean | undefined;
|
|
73
|
+
attachment_id?: string | null | undefined;
|
|
74
|
+
downloaded_at?: string | number | null | undefined;
|
|
75
|
+
processing_status?: string | undefined;
|
|
76
|
+
retries?: number | undefined;
|
|
77
|
+
is_locked?: boolean | undefined;
|
|
78
|
+
updated_by?: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export type OperationRidesV1Extraction = z.infer<typeof OperationRidesV1ExtractionSchema>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { ExtractionBaseSchema } from '../../../../shared/base.js';
|
|
3
|
+
import { OperationRidesV1ExtractionCreateSchema } from './create.js';
|
|
4
|
+
/* * */
|
|
5
|
+
export const OperationRidesV1ExtractionSchema = ExtractionBaseSchema
|
|
6
|
+
.merge(OperationRidesV1ExtractionCreateSchema);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OperationRidesV1ExtractionPropertiesSchema: z.ZodObject<{
|
|
3
|
+
agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4
|
+
start_time_scheduled_end: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
5
|
+
start_time_scheduled_start: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("@tmlmobilidade/go-types-shared").UnixMilliseconds, string | number>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
agency_ids: string[];
|
|
8
|
+
start_time_scheduled_end: number & {
|
|
9
|
+
__brand: "UnixMilliseconds";
|
|
10
|
+
};
|
|
11
|
+
start_time_scheduled_start: number & {
|
|
12
|
+
__brand: "UnixMilliseconds";
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
start_time_scheduled_end: string | number;
|
|
16
|
+
start_time_scheduled_start: string | number;
|
|
17
|
+
agency_ids?: string[] | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type OperationRidesV1ExtractionProperties = z.infer<typeof OperationRidesV1ExtractionPropertiesSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const OperationRidesV1ExtractionPropertiesSchema = z.object({
|
|
6
|
+
agency_ids: z
|
|
7
|
+
.array(z.string())
|
|
8
|
+
.default([]),
|
|
9
|
+
start_time_scheduled_end: UnixMillisecondsSchema,
|
|
10
|
+
start_time_scheduled_start: UnixMillisecondsSchema,
|
|
11
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OperationRidesV1ExtractionVersionValue = "operation-rides-v1";
|
|
3
|
+
export declare const OperationRidesV1ExtractionVersionSchema: z.ZodLiteral<"operation-rides-v1">;
|
|
4
|
+
export type OperationRidesV1ExtractionVersion = z.infer<typeof OperationRidesV1ExtractionVersionSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ExtractionBaseCreateSchema: z.ZodObject<{
|
|
3
|
+
send_email_notification: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
send_email_notification: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
send_email_notification?: boolean | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export type ExtractionBaseCreate = z.infer<typeof ExtractionBaseCreateSchema>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ExtractionBaseSchema: 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
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
attachment_id: string | null;
|
|
16
|
+
downloaded_at: import("@tmlmobilidade/go-types-shared").UnixMilliseconds | null;
|
|
17
|
+
processing_status: "waiting" | "processing" | "complete" | "error" | "skipped";
|
|
18
|
+
retries: number;
|
|
19
|
+
_id: string;
|
|
20
|
+
created_at: number & {
|
|
21
|
+
__brand: "UnixMilliseconds";
|
|
22
|
+
};
|
|
23
|
+
created_by: string;
|
|
24
|
+
is_locked: boolean;
|
|
25
|
+
updated_at: number & {
|
|
26
|
+
__brand: "UnixMilliseconds";
|
|
27
|
+
};
|
|
28
|
+
updated_by?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
_id: string;
|
|
31
|
+
created_at: string | number;
|
|
32
|
+
created_by: string;
|
|
33
|
+
updated_at: string | number;
|
|
34
|
+
attachment_id?: string | null | undefined;
|
|
35
|
+
downloaded_at?: string | number | null | undefined;
|
|
36
|
+
processing_status?: string | undefined;
|
|
37
|
+
retries?: number | undefined;
|
|
38
|
+
is_locked?: boolean | undefined;
|
|
39
|
+
updated_by?: string | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export type ExtractionBase = z.infer<typeof ExtractionBaseSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* * */
|
|
2
|
+
import { BaseDocumentSchema, ProcessingStatusSchema, UnixMillisecondsSchema } from '@tmlmobilidade/go-types-shared';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
/* * */
|
|
5
|
+
export const ExtractionBaseSchema = BaseDocumentSchema.extend({
|
|
6
|
+
attachment_id: z.string().nullable().default(null),
|
|
7
|
+
downloaded_at: UnixMillisecondsSchema.nullable().default(null),
|
|
8
|
+
processing_status: ProcessingStatusSchema.default('waiting'),
|
|
9
|
+
retries: z.number().min(0).max(3).default(0),
|
|
10
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ExtractionTaskContextSchema: z.ZodObject<{
|
|
3
|
+
attachment_name: z.ZodString;
|
|
4
|
+
output_path: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
attachment_name: string;
|
|
7
|
+
output_path: string;
|
|
8
|
+
}, {
|
|
9
|
+
attachment_name: string;
|
|
10
|
+
output_path: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type ExtractionTaskContext = z.infer<typeof ExtractionTaskContextSchema>;
|