hvv-client 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,11 @@
1
1
  import { z } from 'zod';
2
- export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const gtiCheckNameResponseSchema: z.ZodObject<{
3
3
  returnCode: z.ZodLiteral<"OK">;
4
- }, {
5
- results: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
4
+ } & {
5
+ results: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  city: z.ZodString;
8
8
  combinedName: z.ZodString;
9
- coordinate: z.ZodObject<{
10
- x: z.ZodNumber;
11
- y: z.ZodNumber;
12
- }, "strip", z.ZodTypeAny, {
13
- x: number;
14
- y: number;
15
- }, {
16
- x: number;
17
- y: number;
18
- }>;
19
- layer: z.ZodOptional<z.ZodNumber>;
20
9
  tariffDetails: z.ZodOptional<z.ZodObject<{
21
10
  innerCity: z.ZodBoolean;
22
11
  cityTraffic: z.ZodBoolean;
@@ -57,7 +46,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
57
46
  fareStageNumber: number;
58
47
  tariffNames: string[];
59
48
  }>>;
60
- }, {
49
+ } & {
61
50
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.STATION>;
62
51
  id: z.ZodString;
63
52
  globalId: z.ZodOptional<z.ZodString>;
@@ -75,7 +64,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
75
64
  hasStationInformation: z.ZodOptional<z.ZodBoolean>;
76
65
  serviceTypes: z.ZodArray<z.ZodEnum<["a", "s", "u", "r", "bus", "ship", "ast", "train"]>, "many">;
77
66
  provider: z.ZodOptional<z.ZodString>;
78
- }>, "strip", z.ZodTypeAny, {
67
+ }, "strip", z.ZodTypeAny, {
79
68
  type: import("../gtiSDName").GtiSDType.STATION;
80
69
  id: string;
81
70
  name: string;
@@ -133,7 +122,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
133
122
  globalId?: string | undefined;
134
123
  hasStationInformation?: boolean | undefined;
135
124
  provider?: string | undefined;
136
- }>, z.ZodObject<z.objectUtil.extendShape<{
125
+ }>, z.ZodObject<{
137
126
  name: z.ZodString;
138
127
  city: z.ZodString;
139
128
  combinedName: z.ZodString;
@@ -188,10 +177,10 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
188
177
  fareStageNumber: number;
189
178
  tariffNames: string[];
190
179
  }>>;
191
- }, {
180
+ } & {
192
181
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.ADDRESS>;
193
182
  id: z.ZodString;
194
- }>, "strip", z.ZodTypeAny, {
183
+ }, "strip", z.ZodTypeAny, {
195
184
  type: import("../gtiSDName").GtiSDType.ADDRESS;
196
185
  id: string;
197
186
  name: string;
@@ -241,7 +230,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
241
230
  fareStageNumber: number;
242
231
  tariffNames: string[];
243
232
  } | undefined;
244
- }>, z.ZodObject<z.objectUtil.extendShape<{
233
+ }>, z.ZodObject<{
245
234
  name: z.ZodString;
246
235
  city: z.ZodString;
247
236
  combinedName: z.ZodString;
@@ -296,11 +285,11 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
296
285
  fareStageNumber: number;
297
286
  tariffNames: string[];
298
287
  }>>;
299
- }, {
288
+ } & {
300
289
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.POI>;
301
290
  id: z.ZodString;
302
291
  address: z.ZodString;
303
- }>, "strip", z.ZodTypeAny, {
292
+ }, "strip", z.ZodTypeAny, {
304
293
  type: import("../gtiSDName").GtiSDType.POI;
305
294
  id: string;
306
295
  name: string;
@@ -352,7 +341,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
352
341
  fareStageNumber: number;
353
342
  tariffNames: string[];
354
343
  } | undefined;
355
- }>, z.ZodObject<z.objectUtil.extendShape<{
344
+ }>, z.ZodObject<{
356
345
  name: z.ZodString;
357
346
  city: z.ZodString;
358
347
  combinedName: z.ZodString;
@@ -407,9 +396,9 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
407
396
  fareStageNumber: number;
408
397
  tariffNames: string[];
409
398
  }>>;
410
- }, {
399
+ } & {
411
400
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.COORDINATE>;
412
- }>, "strip", z.ZodTypeAny, {
401
+ }, "strip", z.ZodTypeAny, {
413
402
  type: import("../gtiSDName").GtiSDType.COORDINATE;
414
403
  name: string;
415
404
  combinedName: string;
@@ -457,7 +446,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
457
446
  fareStageNumber: number;
458
447
  tariffNames: string[];
459
448
  } | undefined;
460
- }>, z.ZodObject<z.objectUtil.extendShape<{
449
+ }>, z.ZodObject<{
461
450
  name: z.ZodString;
462
451
  city: z.ZodString;
463
452
  combinedName: z.ZodString;
@@ -512,9 +501,9 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
512
501
  fareStageNumber: number;
513
502
  tariffNames: string[];
514
503
  }>>;
515
- }, {
504
+ } & {
516
505
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.UNKNOWN>;
517
- }>, "strip", z.ZodTypeAny, {
506
+ }, "strip", z.ZodTypeAny, {
518
507
  type: import("../gtiSDName").GtiSDType.UNKNOWN;
519
508
  name: string;
520
509
  combinedName: string;
@@ -563,7 +552,7 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
563
552
  tariffNames: string[];
564
553
  } | undefined;
565
554
  }>]>, "many">;
566
- }>, "strip", z.ZodTypeAny, {
555
+ }, "strip", z.ZodTypeAny, {
567
556
  returnCode: "OK";
568
557
  results: ({
569
558
  type: import("../gtiSDName").GtiSDType.STATION;
@@ -826,24 +815,13 @@ export declare const gtiCheckNameResponseSchema: z.ZodObject<z.objectUtil.extend
826
815
  } | undefined;
827
816
  })[];
828
817
  }>;
829
- export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
818
+ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<{
830
819
  returnCode: z.ZodLiteral<"OK">;
831
- }, {
832
- results: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
820
+ } & {
821
+ results: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
833
822
  name: z.ZodString;
834
823
  city: z.ZodString;
835
824
  combinedName: z.ZodString;
836
- coordinate: z.ZodObject<{
837
- x: z.ZodNumber;
838
- y: z.ZodNumber;
839
- }, "strip", z.ZodTypeAny, {
840
- x: number;
841
- y: number;
842
- }, {
843
- x: number;
844
- y: number;
845
- }>;
846
- layer: z.ZodOptional<z.ZodNumber>;
847
825
  tariffDetails: z.ZodOptional<z.ZodObject<{
848
826
  innerCity: z.ZodBoolean;
849
827
  cityTraffic: z.ZodBoolean;
@@ -884,7 +862,7 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
884
862
  fareStageNumber: number;
885
863
  tariffNames: string[];
886
864
  }>>;
887
- }, {
865
+ } & {
888
866
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.STATION>;
889
867
  id: z.ZodString;
890
868
  globalId: z.ZodOptional<z.ZodString>;
@@ -902,10 +880,10 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
902
880
  hasStationInformation: z.ZodOptional<z.ZodBoolean>;
903
881
  serviceTypes: z.ZodArray<z.ZodEnum<["a", "s", "u", "r", "bus", "ship", "ast", "train"]>, "many">;
904
882
  provider: z.ZodOptional<z.ZodString>;
905
- }>, {
883
+ } & {
906
884
  distance: z.ZodNumber;
907
885
  time: z.ZodNumber;
908
- }>, "strip", z.ZodTypeAny, {
886
+ }, "strip", z.ZodTypeAny, {
909
887
  time: number;
910
888
  type: import("../gtiSDName").GtiSDType.STATION;
911
889
  id: string;
@@ -967,7 +945,7 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
967
945
  globalId?: string | undefined;
968
946
  hasStationInformation?: boolean | undefined;
969
947
  provider?: string | undefined;
970
- }>, z.ZodObject<z.objectUtil.extendShape<{
948
+ }>, z.ZodObject<{
971
949
  name: z.ZodString;
972
950
  city: z.ZodString;
973
951
  combinedName: z.ZodString;
@@ -1022,10 +1000,10 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
1022
1000
  fareStageNumber: number;
1023
1001
  tariffNames: string[];
1024
1002
  }>>;
1025
- }, {
1003
+ } & {
1026
1004
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.ADDRESS>;
1027
1005
  id: z.ZodString;
1028
- }>, "strip", z.ZodTypeAny, {
1006
+ }, "strip", z.ZodTypeAny, {
1029
1007
  type: import("../gtiSDName").GtiSDType.ADDRESS;
1030
1008
  id: string;
1031
1009
  name: string;
@@ -1075,7 +1053,7 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
1075
1053
  fareStageNumber: number;
1076
1054
  tariffNames: string[];
1077
1055
  } | undefined;
1078
- }>, z.ZodObject<z.objectUtil.extendShape<{
1056
+ }>, z.ZodObject<{
1079
1057
  name: z.ZodString;
1080
1058
  city: z.ZodString;
1081
1059
  combinedName: z.ZodString;
@@ -1130,11 +1108,11 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
1130
1108
  fareStageNumber: number;
1131
1109
  tariffNames: string[];
1132
1110
  }>>;
1133
- }, {
1111
+ } & {
1134
1112
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.POI>;
1135
1113
  id: z.ZodString;
1136
1114
  address: z.ZodString;
1137
- }>, "strip", z.ZodTypeAny, {
1115
+ }, "strip", z.ZodTypeAny, {
1138
1116
  type: import("../gtiSDName").GtiSDType.POI;
1139
1117
  id: string;
1140
1118
  name: string;
@@ -1187,7 +1165,7 @@ export declare const gtiCheckNameCoordinatesResponseSchema: z.ZodObject<z.object
1187
1165
  tariffNames: string[];
1188
1166
  } | undefined;
1189
1167
  }>]>, "many">;
1190
- }>, "strip", z.ZodTypeAny, {
1168
+ }, "strip", z.ZodTypeAny, {
1191
1169
  returnCode: "OK";
1192
1170
  results: ({
1193
1171
  type: import("../gtiSDName").GtiSDType.ADDRESS;
@@ -1,23 +1,12 @@
1
1
  import { z } from 'zod';
2
- export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<{
3
3
  returnCode: z.ZodLiteral<"OK">;
4
- }, {
4
+ } & {
5
5
  courseElements: z.ZodArray<z.ZodObject<{
6
- fromStation: z.ZodObject<z.objectUtil.extendShape<{
6
+ fromStation: z.ZodObject<{
7
7
  name: z.ZodString;
8
8
  city: z.ZodString;
9
9
  combinedName: z.ZodString;
10
- coordinate: z.ZodObject<{
11
- x: z.ZodNumber;
12
- y: z.ZodNumber;
13
- }, "strip", z.ZodTypeAny, {
14
- x: number;
15
- y: number;
16
- }, {
17
- x: number;
18
- y: number;
19
- }>;
20
- layer: z.ZodOptional<z.ZodNumber>;
21
10
  tariffDetails: z.ZodOptional<z.ZodObject<{
22
11
  innerCity: z.ZodBoolean;
23
12
  cityTraffic: z.ZodBoolean;
@@ -58,7 +47,7 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
58
47
  fareStageNumber: number;
59
48
  tariffNames: string[];
60
49
  }>>;
61
- }, {
50
+ } & {
62
51
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.STATION>;
63
52
  id: z.ZodString;
64
53
  globalId: z.ZodOptional<z.ZodString>;
@@ -76,7 +65,7 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
76
65
  hasStationInformation: z.ZodOptional<z.ZodBoolean>;
77
66
  serviceTypes: z.ZodArray<z.ZodEnum<["a", "s", "u", "r", "bus", "ship", "ast", "train"]>, "many">;
78
67
  provider: z.ZodOptional<z.ZodString>;
79
- }>, "strip", z.ZodTypeAny, {
68
+ }, "strip", z.ZodTypeAny, {
80
69
  type: import("../gtiSDName").GtiSDType.STATION;
81
70
  id: string;
82
71
  name: string;
@@ -136,21 +125,10 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
136
125
  provider?: string | undefined;
137
126
  }>;
138
127
  fromPlatform: z.ZodOptional<z.ZodString>;
139
- toStation: z.ZodObject<z.objectUtil.extendShape<{
128
+ toStation: z.ZodObject<{
140
129
  name: z.ZodString;
141
130
  city: z.ZodString;
142
131
  combinedName: z.ZodString;
143
- coordinate: z.ZodObject<{
144
- x: z.ZodNumber;
145
- y: z.ZodNumber;
146
- }, "strip", z.ZodTypeAny, {
147
- x: number;
148
- y: number;
149
- }, {
150
- x: number;
151
- y: number;
152
- }>;
153
- layer: z.ZodOptional<z.ZodNumber>;
154
132
  tariffDetails: z.ZodOptional<z.ZodObject<{
155
133
  innerCity: z.ZodBoolean;
156
134
  cityTraffic: z.ZodBoolean;
@@ -191,7 +169,7 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
191
169
  fareStageNumber: number;
192
170
  tariffNames: string[];
193
171
  }>>;
194
- }, {
172
+ } & {
195
173
  type: z.ZodLiteral<import("../gtiSDName").GtiSDType.STATION>;
196
174
  id: z.ZodString;
197
175
  globalId: z.ZodOptional<z.ZodString>;
@@ -209,7 +187,7 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
209
187
  hasStationInformation: z.ZodOptional<z.ZodBoolean>;
210
188
  serviceTypes: z.ZodArray<z.ZodEnum<["a", "s", "u", "r", "bus", "ship", "ast", "train"]>, "many">;
211
189
  provider: z.ZodOptional<z.ZodString>;
212
- }>, "strip", z.ZodTypeAny, {
190
+ }, "strip", z.ZodTypeAny, {
213
191
  type: import("../gtiSDName").GtiSDType.STATION;
214
192
  id: string;
215
193
  name: string;
@@ -492,7 +470,7 @@ export declare const gtiDepartureCourseResponseSchema: z.ZodObject<z.objectUtil.
492
470
  toRealtimePlatform?: string | undefined;
493
471
  }>, "many">;
494
472
  cancelled: z.ZodOptional<z.ZodBoolean>;
495
- }>, "strip", z.ZodTypeAny, {
473
+ }, "strip", z.ZodTypeAny, {
496
474
  returnCode: "OK";
497
475
  courseElements: {
498
476
  model: string;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- export declare const gtiDepartureListResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const gtiDepartureListResponseSchema: z.ZodObject<{
3
3
  returnCode: z.ZodLiteral<"OK">;
4
- }, {
4
+ } & {
5
5
  filter: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
6
  serviceID: z.ZodString;
7
7
  stationIDs: z.ZodString;
@@ -20,7 +20,7 @@ export declare const gtiDepartureListResponseSchema: z.ZodObject<z.objectUtil.ex
20
20
  }>, "many">>;
21
21
  serviceTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["ZUG", "UBAHN", "SBAHN", "AKN", "RBAHN", "FERNBAHN", "BUS", "STADTBUS", "METROBUS", "SCHNELLBUS", "NACHTBUS", "XPRESSBUS", "AST", "FAEHRE"]>, "many">>;
22
22
  departures: z.ZodArray<z.ZodObject<{
23
- line: z.ZodObject<Omit<z.objectUtil.extendShape<{
23
+ line: z.ZodObject<Omit<{
24
24
  type: z.ZodObject<{
25
25
  simpleType: z.ZodEnum<[import("../gtiSimpleServiceType").GtiSimpleServiceType.BUS, import("../gtiSimpleServiceType").GtiSimpleServiceType.TRAIN, import("../gtiSimpleServiceType").GtiSimpleServiceType.SHIP]>;
26
26
  shortInfo: z.ZodString;
@@ -42,11 +42,11 @@ export declare const gtiDepartureListResponseSchema: z.ZodObject<z.objectUtil.ex
42
42
  name: z.ZodString;
43
43
  origin: z.ZodString;
44
44
  direction: z.ZodString;
45
- }, {
45
+ } & {
46
46
  directionId: z.ZodNativeEnum<typeof import("../gtiDirectionId").GtiDirectionId>;
47
47
  carrierNameShort: z.ZodOptional<z.ZodString>;
48
48
  carrierNameLong: z.ZodOptional<z.ZodString>;
49
- }>, "directionId">, "strip", z.ZodTypeAny, {
49
+ }, "directionId">, "strip", z.ZodTypeAny, {
50
50
  type: {
51
51
  simpleType: import("../gtiSimpleServiceType").GtiSimpleServiceType.BUS | import("../gtiSimpleServiceType").GtiSimpleServiceType.TRAIN | import("../gtiSimpleServiceType").GtiSimpleServiceType.SHIP;
52
52
  shortInfo: string;
@@ -178,7 +178,7 @@ export declare const gtiDepartureListResponseSchema: z.ZodObject<z.objectUtil.ex
178
178
  id?: string | undefined;
179
179
  }[] | undefined;
180
180
  }>, "many">;
181
- }>, "strip", z.ZodTypeAny, {
181
+ }, "strip", z.ZodTypeAny, {
182
182
  returnCode: "OK";
183
183
  departures: {
184
184
  directionId: import("../gtiDirectionId").GtiDirectionId;