@tmlmobilidade/types 20260602.2208.4 → 20260602.2322.45
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/hub/api/lines.d.ts +44 -7
- package/dist/hub/api/lines.js +19 -1
- package/dist/hub/api/shapes.d.ts +69 -4
- package/dist/hub/api/shapes.js +15 -1
- package/dist/locations/queries.d.ts +3 -3
- package/dist/offer/pattern.d.ts +14 -14
- package/dist/offer/typology.d.ts +7 -7
- package/dist/organization.d.ts +5 -5
- package/package.json +1 -1
package/dist/hub/api/lines.d.ts
CHANGED
|
@@ -1,17 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HubLineSchema: z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
agency_id: z.ZodString;
|
|
5
|
+
color: z.ZodString;
|
|
6
|
+
district_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
facilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
locality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
long_name: z.ZodString;
|
|
10
|
+
municipality_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
pattern_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
region_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
route_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
14
|
+
short_name: z.ZodString;
|
|
15
|
+
stop_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
16
|
+
text_color: z.ZodString;
|
|
17
|
+
tts_name: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
_id: string;
|
|
20
|
+
short_name: string;
|
|
2
21
|
agency_id: string;
|
|
22
|
+
municipality_ids: string[];
|
|
3
23
|
color: string;
|
|
4
|
-
|
|
24
|
+
stop_ids: string[];
|
|
25
|
+
tts_name: string;
|
|
5
26
|
facilities: string[];
|
|
6
|
-
|
|
27
|
+
district_ids: string[];
|
|
7
28
|
locality_ids: string[];
|
|
8
29
|
long_name: string;
|
|
9
|
-
municipality_ids: string[];
|
|
10
30
|
pattern_ids: string[];
|
|
11
31
|
region_ids: string[];
|
|
12
32
|
route_ids: string[];
|
|
13
|
-
short_name: string;
|
|
14
|
-
stop_ids: [];
|
|
15
33
|
text_color: string;
|
|
34
|
+
}, {
|
|
35
|
+
_id: string;
|
|
36
|
+
short_name: string;
|
|
37
|
+
agency_id: string;
|
|
38
|
+
color: string;
|
|
16
39
|
tts_name: string;
|
|
17
|
-
|
|
40
|
+
long_name: string;
|
|
41
|
+
text_color: string;
|
|
42
|
+
municipality_ids?: string[] | undefined;
|
|
43
|
+
stop_ids?: string[] | undefined;
|
|
44
|
+
facilities?: string[] | undefined;
|
|
45
|
+
district_ids?: string[] | undefined;
|
|
46
|
+
locality_ids?: string[] | undefined;
|
|
47
|
+
pattern_ids?: string[] | undefined;
|
|
48
|
+
region_ids?: string[] | undefined;
|
|
49
|
+
route_ids?: string[] | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* Publishable line data for the Hub Lines API.
|
|
53
|
+
*/
|
|
54
|
+
export type HubLine = z.infer<typeof HubLineSchema>;
|
package/dist/hub/api/lines.js
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const HubLineSchema = z.object({
|
|
5
|
+
_id: z.string(),
|
|
6
|
+
agency_id: z.string(),
|
|
7
|
+
color: z.string(),
|
|
8
|
+
district_ids: z.array(z.string()).default([]),
|
|
9
|
+
facilities: z.array(z.string()).default([]),
|
|
10
|
+
locality_ids: z.array(z.string()).default([]),
|
|
11
|
+
long_name: z.string(),
|
|
12
|
+
municipality_ids: z.array(z.string()).default([]),
|
|
13
|
+
pattern_ids: z.array(z.string()).default([]),
|
|
14
|
+
region_ids: z.array(z.string()).default([]),
|
|
15
|
+
route_ids: z.array(z.string()).default([]),
|
|
16
|
+
short_name: z.string(),
|
|
17
|
+
stop_ids: z.array(z.string()).default([]),
|
|
18
|
+
text_color: z.string(),
|
|
19
|
+
tts_name: z.string(),
|
|
20
|
+
});
|
package/dist/hub/api/shapes.d.ts
CHANGED
|
@@ -1,4 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type Feature, type LineString } from 'geojson';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const HubShapePointSchema: z.ZodObject<{
|
|
4
|
+
shape_dist_traveled: z.ZodNumber;
|
|
5
|
+
shape_pt_lat: z.ZodNumber;
|
|
6
|
+
shape_pt_lon: z.ZodNumber;
|
|
7
|
+
shape_pt_sequence: z.ZodNumber;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
shape_dist_traveled: number;
|
|
10
|
+
shape_pt_lat: number;
|
|
11
|
+
shape_pt_lon: number;
|
|
12
|
+
shape_pt_sequence: number;
|
|
13
|
+
}, {
|
|
14
|
+
shape_dist_traveled: number;
|
|
15
|
+
shape_pt_lat: number;
|
|
16
|
+
shape_pt_lon: number;
|
|
17
|
+
shape_pt_sequence: number;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Publishable shape point data for the Hub Shapes API.
|
|
21
|
+
*/
|
|
22
|
+
export type HubShapePoint = z.infer<typeof HubShapePointSchema>;
|
|
23
|
+
export declare const HubShapeSchema: z.ZodObject<{
|
|
24
|
+
_id: z.ZodString;
|
|
25
|
+
agency_id: z.ZodString;
|
|
26
|
+
extension: z.ZodNumber;
|
|
27
|
+
points: z.ZodArray<z.ZodObject<{
|
|
28
|
+
shape_dist_traveled: z.ZodNumber;
|
|
29
|
+
shape_pt_lat: z.ZodNumber;
|
|
30
|
+
shape_pt_lon: z.ZodNumber;
|
|
31
|
+
shape_pt_sequence: z.ZodNumber;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
shape_dist_traveled: number;
|
|
34
|
+
shape_pt_lat: number;
|
|
35
|
+
shape_pt_lon: number;
|
|
36
|
+
shape_pt_sequence: number;
|
|
37
|
+
}, {
|
|
38
|
+
shape_dist_traveled: number;
|
|
39
|
+
shape_pt_lat: number;
|
|
40
|
+
shape_pt_lon: number;
|
|
41
|
+
shape_pt_sequence: number;
|
|
42
|
+
}>, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
_id: string;
|
|
45
|
+
agency_id: string;
|
|
46
|
+
extension: number;
|
|
47
|
+
points: {
|
|
48
|
+
shape_dist_traveled: number;
|
|
49
|
+
shape_pt_lat: number;
|
|
50
|
+
shape_pt_lon: number;
|
|
51
|
+
shape_pt_sequence: number;
|
|
52
|
+
}[];
|
|
53
|
+
}, {
|
|
54
|
+
_id: string;
|
|
55
|
+
agency_id: string;
|
|
56
|
+
extension: number;
|
|
57
|
+
points: {
|
|
58
|
+
shape_dist_traveled: number;
|
|
59
|
+
shape_pt_lat: number;
|
|
60
|
+
shape_pt_lon: number;
|
|
61
|
+
shape_pt_sequence: number;
|
|
62
|
+
}[];
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Publishable shape data for the Hub Shapes API.
|
|
66
|
+
*/
|
|
67
|
+
export type HubShape = z.infer<typeof HubShapeSchema> & {
|
|
68
|
+
geojson: Feature<LineString>;
|
|
69
|
+
};
|
package/dist/hub/api/shapes.js
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
4
|
+
export const HubShapePointSchema = z.object({
|
|
5
|
+
shape_dist_traveled: z.number(),
|
|
6
|
+
shape_pt_lat: z.number(),
|
|
7
|
+
shape_pt_lon: z.number(),
|
|
8
|
+
shape_pt_sequence: z.number(),
|
|
9
|
+
});
|
|
10
|
+
/* * */
|
|
11
|
+
export const HubShapeSchema = z.object({
|
|
12
|
+
_id: z.string(),
|
|
13
|
+
agency_id: z.string(),
|
|
14
|
+
extension: z.number(),
|
|
15
|
+
points: z.array(HubShapePointSchema),
|
|
16
|
+
});
|
|
@@ -49,8 +49,8 @@ export declare const GetAllMunicipalitiesQuerySchema: z.ZodObject<{
|
|
|
49
49
|
geojson: boolean;
|
|
50
50
|
district_ids?: string[] | null | undefined;
|
|
51
51
|
}, {
|
|
52
|
-
geojson?: unknown;
|
|
53
52
|
district_ids?: unknown;
|
|
53
|
+
geojson?: unknown;
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* This type represents the query parameters for fetching all Municipalities
|
|
@@ -77,8 +77,8 @@ export declare const GetAllParishesQuerySchema: z.ZodObject<{
|
|
|
77
77
|
limit?: number | undefined;
|
|
78
78
|
page?: number | undefined;
|
|
79
79
|
municipality_ids?: unknown;
|
|
80
|
-
geojson?: unknown;
|
|
81
80
|
district_ids?: unknown;
|
|
81
|
+
geojson?: unknown;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
* This type represents the query parameters for fetching all Parishes
|
|
@@ -105,8 +105,8 @@ export declare const GetAllLocalitiesQuerySchema: z.ZodObject<{
|
|
|
105
105
|
limit?: number | undefined;
|
|
106
106
|
page?: number | undefined;
|
|
107
107
|
municipality_ids?: unknown;
|
|
108
|
-
geojson?: unknown;
|
|
109
108
|
district_ids?: unknown;
|
|
109
|
+
geojson?: unknown;
|
|
110
110
|
parish_ids?: unknown;
|
|
111
111
|
}>;
|
|
112
112
|
/**
|
package/dist/offer/pattern.d.ts
CHANGED
|
@@ -785,6 +785,7 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
785
785
|
properties?: {} | undefined;
|
|
786
786
|
}>;
|
|
787
787
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
extension: number;
|
|
788
789
|
geojson: {
|
|
789
790
|
type: string;
|
|
790
791
|
geometry: {
|
|
@@ -793,8 +794,8 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
793
794
|
};
|
|
794
795
|
properties?: {} | undefined;
|
|
795
796
|
};
|
|
796
|
-
extension: number;
|
|
797
797
|
}, {
|
|
798
|
+
extension: number;
|
|
798
799
|
geojson: {
|
|
799
800
|
geometry: {
|
|
800
801
|
coordinates: number[][];
|
|
@@ -803,7 +804,6 @@ export declare const ShapeSchema: z.ZodObject<{
|
|
|
803
804
|
type?: string | undefined;
|
|
804
805
|
properties?: {} | undefined;
|
|
805
806
|
};
|
|
806
|
-
extension: number;
|
|
807
807
|
}>;
|
|
808
808
|
export declare const PatternSchema: z.ZodObject<{
|
|
809
809
|
_id: z.ZodString;
|
|
@@ -2117,6 +2117,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2117
2117
|
properties?: {} | undefined;
|
|
2118
2118
|
}>;
|
|
2119
2119
|
}, "strip", z.ZodTypeAny, {
|
|
2120
|
+
extension: number;
|
|
2120
2121
|
geojson: {
|
|
2121
2122
|
type: string;
|
|
2122
2123
|
geometry: {
|
|
@@ -2125,8 +2126,8 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2125
2126
|
};
|
|
2126
2127
|
properties?: {} | undefined;
|
|
2127
2128
|
};
|
|
2128
|
-
extension: number;
|
|
2129
2129
|
}, {
|
|
2130
|
+
extension: number;
|
|
2130
2131
|
geojson: {
|
|
2131
2132
|
geometry: {
|
|
2132
2133
|
coordinates: number[][];
|
|
@@ -2135,7 +2136,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2135
2136
|
type?: string | undefined;
|
|
2136
2137
|
properties?: {} | undefined;
|
|
2137
2138
|
};
|
|
2138
|
-
extension: number;
|
|
2139
2139
|
}>>;
|
|
2140
2140
|
}, "strip", z.ZodTypeAny, {
|
|
2141
2141
|
_id: string;
|
|
@@ -2368,6 +2368,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2368
2368
|
} | null | undefined;
|
|
2369
2369
|
}[] | undefined;
|
|
2370
2370
|
shape?: {
|
|
2371
|
+
extension: number;
|
|
2371
2372
|
geojson: {
|
|
2372
2373
|
type: string;
|
|
2373
2374
|
geometry: {
|
|
@@ -2376,7 +2377,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2376
2377
|
};
|
|
2377
2378
|
properties?: {} | undefined;
|
|
2378
2379
|
};
|
|
2379
|
-
extension: number;
|
|
2380
2380
|
} | undefined;
|
|
2381
2381
|
parameters?: ({
|
|
2382
2382
|
path: {
|
|
@@ -2523,6 +2523,7 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2523
2523
|
distance_delta?: number | null | undefined;
|
|
2524
2524
|
}[] | undefined;
|
|
2525
2525
|
shape?: {
|
|
2526
|
+
extension: number;
|
|
2526
2527
|
geojson: {
|
|
2527
2528
|
geometry: {
|
|
2528
2529
|
coordinates: number[][];
|
|
@@ -2531,7 +2532,6 @@ export declare const PatternSchema: z.ZodObject<{
|
|
|
2531
2532
|
type?: string | undefined;
|
|
2532
2533
|
properties?: {} | undefined;
|
|
2533
2534
|
};
|
|
2534
|
-
extension: number;
|
|
2535
2535
|
} | undefined;
|
|
2536
2536
|
rules?: ({
|
|
2537
2537
|
_id: string;
|
|
@@ -3967,6 +3967,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3967
3967
|
properties?: {} | undefined;
|
|
3968
3968
|
}>;
|
|
3969
3969
|
}, "strip", z.ZodTypeAny, {
|
|
3970
|
+
extension: number;
|
|
3970
3971
|
geojson: {
|
|
3971
3972
|
type: string;
|
|
3972
3973
|
geometry: {
|
|
@@ -3975,8 +3976,8 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3975
3976
|
};
|
|
3976
3977
|
properties?: {} | undefined;
|
|
3977
3978
|
};
|
|
3978
|
-
extension: number;
|
|
3979
3979
|
}, {
|
|
3980
|
+
extension: number;
|
|
3980
3981
|
geojson: {
|
|
3981
3982
|
geometry: {
|
|
3982
3983
|
coordinates: number[][];
|
|
@@ -3985,7 +3986,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
3985
3986
|
type?: string | undefined;
|
|
3986
3987
|
properties?: {} | undefined;
|
|
3987
3988
|
};
|
|
3988
|
-
extension: number;
|
|
3989
3989
|
}>>;
|
|
3990
3990
|
}, "_id" | "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
3991
3991
|
created_by: string | null;
|
|
@@ -4211,6 +4211,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4211
4211
|
} | null | undefined;
|
|
4212
4212
|
}[] | undefined;
|
|
4213
4213
|
shape?: {
|
|
4214
|
+
extension: number;
|
|
4214
4215
|
geojson: {
|
|
4215
4216
|
type: string;
|
|
4216
4217
|
geometry: {
|
|
@@ -4219,7 +4220,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4219
4220
|
};
|
|
4220
4221
|
properties?: {} | undefined;
|
|
4221
4222
|
};
|
|
4222
|
-
extension: number;
|
|
4223
4223
|
} | undefined;
|
|
4224
4224
|
parameters?: ({
|
|
4225
4225
|
path: {
|
|
@@ -4363,6 +4363,7 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4363
4363
|
distance_delta?: number | null | undefined;
|
|
4364
4364
|
}[] | undefined;
|
|
4365
4365
|
shape?: {
|
|
4366
|
+
extension: number;
|
|
4366
4367
|
geojson: {
|
|
4367
4368
|
geometry: {
|
|
4368
4369
|
coordinates: number[][];
|
|
@@ -4371,7 +4372,6 @@ export declare const CreatePatternSchema: z.ZodObject<Omit<{
|
|
|
4371
4372
|
type?: string | undefined;
|
|
4372
4373
|
properties?: {} | undefined;
|
|
4373
4374
|
};
|
|
4374
|
-
extension: number;
|
|
4375
4375
|
} | undefined;
|
|
4376
4376
|
rules?: ({
|
|
4377
4377
|
_id: string;
|
|
@@ -5255,6 +5255,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5255
5255
|
properties?: {} | undefined;
|
|
5256
5256
|
}>;
|
|
5257
5257
|
}, "strip", z.ZodTypeAny, {
|
|
5258
|
+
extension: number;
|
|
5258
5259
|
geojson: {
|
|
5259
5260
|
type: string;
|
|
5260
5261
|
geometry: {
|
|
@@ -5263,8 +5264,8 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5263
5264
|
};
|
|
5264
5265
|
properties?: {} | undefined;
|
|
5265
5266
|
};
|
|
5266
|
-
extension: number;
|
|
5267
5267
|
}, {
|
|
5268
|
+
extension: number;
|
|
5268
5269
|
geojson: {
|
|
5269
5270
|
geometry: {
|
|
5270
5271
|
coordinates: number[][];
|
|
@@ -5273,7 +5274,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5273
5274
|
type?: string | undefined;
|
|
5274
5275
|
properties?: {} | undefined;
|
|
5275
5276
|
};
|
|
5276
|
-
extension: number;
|
|
5277
5277
|
}>>>;
|
|
5278
5278
|
line_id: z.ZodOptional<z.ZodString>;
|
|
5279
5279
|
headsign: z.ZodOptional<z.ZodString>;
|
|
@@ -5830,6 +5830,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5830
5830
|
} | null | undefined;
|
|
5831
5831
|
}[] | undefined;
|
|
5832
5832
|
shape?: {
|
|
5833
|
+
extension: number;
|
|
5833
5834
|
geojson: {
|
|
5834
5835
|
type: string;
|
|
5835
5836
|
geometry: {
|
|
@@ -5838,7 +5839,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
5838
5839
|
};
|
|
5839
5840
|
properties?: {} | undefined;
|
|
5840
5841
|
};
|
|
5841
|
-
extension: number;
|
|
5842
5842
|
} | undefined;
|
|
5843
5843
|
line_id?: string | undefined;
|
|
5844
5844
|
rules?: {
|
|
@@ -6038,6 +6038,7 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
6038
6038
|
distance_delta?: number | null | undefined;
|
|
6039
6039
|
}[] | undefined;
|
|
6040
6040
|
shape?: {
|
|
6041
|
+
extension: number;
|
|
6041
6042
|
geojson: {
|
|
6042
6043
|
geometry: {
|
|
6043
6044
|
coordinates: number[][];
|
|
@@ -6046,7 +6047,6 @@ export declare const UpdatePatternSchema: z.ZodObject<{
|
|
|
6046
6047
|
type?: string | undefined;
|
|
6047
6048
|
properties?: {} | undefined;
|
|
6048
6049
|
};
|
|
6049
|
-
extension: number;
|
|
6050
6050
|
} | undefined;
|
|
6051
6051
|
line_id?: string | undefined;
|
|
6052
6052
|
rules?: {
|
package/dist/offer/typology.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ export declare const TypologySchema: z.ZodObject<{
|
|
|
28
28
|
name: string;
|
|
29
29
|
agency_ids: string[];
|
|
30
30
|
color: string;
|
|
31
|
+
text_color: string;
|
|
31
32
|
default_onboard_fare_ids: string[] | null;
|
|
32
33
|
default_prepaid_fare_id: string | null;
|
|
33
|
-
text_color: string;
|
|
34
34
|
updated_by?: string | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
_id: string;
|
|
@@ -57,9 +57,9 @@ export declare const CreateTypologySchema: z.ZodObject<{
|
|
|
57
57
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
58
58
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
59
59
|
color: z.ZodOptional<z.ZodString>;
|
|
60
|
+
text_color: z.ZodOptional<z.ZodString>;
|
|
60
61
|
default_onboard_fare_ids: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
|
|
61
62
|
default_prepaid_fare_id: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
62
|
-
text_color: z.ZodOptional<z.ZodString>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
code: string;
|
|
65
65
|
name: string;
|
|
@@ -69,9 +69,9 @@ export declare const CreateTypologySchema: z.ZodObject<{
|
|
|
69
69
|
is_locked?: boolean | undefined;
|
|
70
70
|
updated_by?: string | undefined;
|
|
71
71
|
color?: string | undefined;
|
|
72
|
+
text_color?: string | undefined;
|
|
72
73
|
default_onboard_fare_ids?: string[] | null | undefined;
|
|
73
74
|
default_prepaid_fare_id?: string | null | undefined;
|
|
74
|
-
text_color?: string | undefined;
|
|
75
75
|
}, {
|
|
76
76
|
code: string;
|
|
77
77
|
name: string;
|
|
@@ -81,9 +81,9 @@ export declare const CreateTypologySchema: z.ZodObject<{
|
|
|
81
81
|
is_locked?: boolean | undefined;
|
|
82
82
|
updated_by?: string | undefined;
|
|
83
83
|
color?: string | undefined;
|
|
84
|
+
text_color?: string | undefined;
|
|
84
85
|
default_onboard_fare_ids?: string[] | null | undefined;
|
|
85
86
|
default_prepaid_fare_id?: string | null | undefined;
|
|
86
|
-
text_color?: string | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
export declare const UpdateTypologySchema: z.ZodObject<{
|
|
89
89
|
_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -93,9 +93,9 @@ export declare const UpdateTypologySchema: z.ZodObject<{
|
|
|
93
93
|
name: z.ZodOptional<z.ZodString>;
|
|
94
94
|
agency_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
95
|
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
text_color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
96
97
|
default_onboard_fare_ids: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>>;
|
|
97
98
|
default_prepaid_fare_id: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
|
|
98
|
-
text_color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
_id?: string | undefined;
|
|
101
101
|
is_locked?: boolean | undefined;
|
|
@@ -104,9 +104,9 @@ export declare const UpdateTypologySchema: z.ZodObject<{
|
|
|
104
104
|
name?: string | undefined;
|
|
105
105
|
agency_ids?: string[] | undefined;
|
|
106
106
|
color?: string | undefined;
|
|
107
|
+
text_color?: string | undefined;
|
|
107
108
|
default_onboard_fare_ids?: string[] | null | undefined;
|
|
108
109
|
default_prepaid_fare_id?: string | null | undefined;
|
|
109
|
-
text_color?: string | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
_id?: string | undefined;
|
|
112
112
|
is_locked?: boolean | undefined;
|
|
@@ -115,9 +115,9 @@ export declare const UpdateTypologySchema: z.ZodObject<{
|
|
|
115
115
|
name?: string | undefined;
|
|
116
116
|
agency_ids?: string[] | undefined;
|
|
117
117
|
color?: string | undefined;
|
|
118
|
+
text_color?: string | undefined;
|
|
118
119
|
default_onboard_fare_ids?: string[] | null | undefined;
|
|
119
120
|
default_prepaid_fare_id?: string | null | undefined;
|
|
120
|
-
text_color?: string | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
export type Typology = z.infer<typeof TypologySchema>;
|
|
123
123
|
export type CreateTypologyDto = z.infer<typeof CreateTypologySchema>;
|
package/dist/organization.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
57
57
|
__brand: "UnixTimestamp";
|
|
58
58
|
};
|
|
59
59
|
short_name: string;
|
|
60
|
+
long_name: string;
|
|
60
61
|
home_links: {
|
|
61
62
|
title: string;
|
|
62
63
|
icon: string;
|
|
@@ -66,7 +67,6 @@ export declare const OrganizationSchema: z.ZodObject<{
|
|
|
66
67
|
home_wikis: string[];
|
|
67
68
|
logo_dark: string | null;
|
|
68
69
|
logo_light: string | null;
|
|
69
|
-
long_name: string;
|
|
70
70
|
theme: string | null;
|
|
71
71
|
updated_by?: string | undefined;
|
|
72
72
|
}, {
|
|
@@ -123,6 +123,7 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
|
123
123
|
created_by: string | null;
|
|
124
124
|
is_locked: boolean;
|
|
125
125
|
short_name: string;
|
|
126
|
+
long_name: string;
|
|
126
127
|
home_links: {
|
|
127
128
|
title: string;
|
|
128
129
|
icon: string;
|
|
@@ -132,7 +133,6 @@ export declare const CreateOrganizationSchema: z.ZodObject<Omit<{
|
|
|
132
133
|
home_wikis: string[];
|
|
133
134
|
logo_dark: string | null;
|
|
134
135
|
logo_light: string | null;
|
|
135
|
-
long_name: string;
|
|
136
136
|
theme: string | null;
|
|
137
137
|
updated_by?: string | undefined;
|
|
138
138
|
}, {
|
|
@@ -156,6 +156,7 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
156
156
|
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
157
157
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
158
158
|
short_name: z.ZodOptional<z.ZodString>;
|
|
159
|
+
long_name: z.ZodOptional<z.ZodString>;
|
|
159
160
|
home_links: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
160
161
|
href: z.ZodString;
|
|
161
162
|
icon: z.ZodString;
|
|
@@ -175,12 +176,12 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
175
176
|
home_wikis: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
176
177
|
logo_dark: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
177
178
|
logo_light: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
178
|
-
long_name: z.ZodOptional<z.ZodString>;
|
|
179
179
|
theme: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
181
|
is_locked?: boolean | undefined;
|
|
182
182
|
updated_by?: string | undefined;
|
|
183
183
|
short_name?: string | undefined;
|
|
184
|
+
long_name?: string | undefined;
|
|
184
185
|
home_links?: {
|
|
185
186
|
title: string;
|
|
186
187
|
icon: string;
|
|
@@ -190,12 +191,12 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
190
191
|
home_wikis?: string[] | undefined;
|
|
191
192
|
logo_dark?: string | null | undefined;
|
|
192
193
|
logo_light?: string | null | undefined;
|
|
193
|
-
long_name?: string | undefined;
|
|
194
194
|
theme?: string | null | undefined;
|
|
195
195
|
}, {
|
|
196
196
|
is_locked?: boolean | undefined;
|
|
197
197
|
updated_by?: string | undefined;
|
|
198
198
|
short_name?: string | undefined;
|
|
199
|
+
long_name?: string | undefined;
|
|
199
200
|
home_links?: {
|
|
200
201
|
title: string;
|
|
201
202
|
icon: string;
|
|
@@ -205,7 +206,6 @@ export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
|
205
206
|
home_wikis?: string[] | undefined;
|
|
206
207
|
logo_dark?: string | null | undefined;
|
|
207
208
|
logo_light?: string | null | undefined;
|
|
208
|
-
long_name?: string | undefined;
|
|
209
209
|
theme?: string | null | undefined;
|
|
210
210
|
}>;
|
|
211
211
|
export type Organization = z.infer<typeof OrganizationSchema>;
|