@motis-project/motis-client 2.1.2 → 2.7.2
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/README.md +3 -1
- package/dist/{chunk-IHFNO6R3.js → chunk-FDF4H3WD.js} +11 -4
- package/dist/{chunk-7PIP6KRC.js → chunk-UREEG3GO.js} +558 -42
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -2
- package/dist/schemas.gen.d.ts +483 -11
- package/dist/schemas.gen.js +23 -1
- package/dist/services.gen.d.ts +32 -12
- package/dist/services.gen.js +3 -1
- package/dist/types.gen.d.ts +597 -57
- package/package.json +3 -3
- package/dist/chunk-CAW6R2LI.js +0 -1285
- package/dist/chunk-IYBFZNEH.js +0 -1224
- package/dist/chunk-QM2K42W7.js +0 -91
- package/dist/chunk-RM52T2X5.js +0 -1154
- package/dist/chunk-VOTN5CAZ.js +0 -91
- package/dist/chunk-ZBHU6VX2.js +0 -1291
package/README.md
CHANGED
|
@@ -8,7 +8,9 @@ For example:
|
|
|
8
8
|
const response = await stoptimes({
|
|
9
9
|
throwOnError: true,
|
|
10
10
|
baseUrl: 'https://api.transitous.org',
|
|
11
|
-
|
|
11
|
+
headers = {
|
|
12
|
+
'User-Agent': 'my-user-agent'
|
|
13
|
+
},
|
|
12
14
|
query: {
|
|
13
15
|
stopId: 'de-DELFI_de:06412:7010:1:3',
|
|
14
16
|
n: 10,
|
|
@@ -4,7 +4,7 @@ var client = createClient(createConfig());
|
|
|
4
4
|
var plan = (options) => {
|
|
5
5
|
return (options?.client ?? client).get({
|
|
6
6
|
...options,
|
|
7
|
-
url: "/api/
|
|
7
|
+
url: "/api/v5/plan"
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var oneToMany = (options) => {
|
|
@@ -34,19 +34,19 @@ var geocode = (options) => {
|
|
|
34
34
|
var trip = (options) => {
|
|
35
35
|
return (options?.client ?? client).get({
|
|
36
36
|
...options,
|
|
37
|
-
url: "/api/
|
|
37
|
+
url: "/api/v5/trip"
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
var stoptimes = (options) => {
|
|
41
41
|
return (options?.client ?? client).get({
|
|
42
42
|
...options,
|
|
43
|
-
url: "/api/
|
|
43
|
+
url: "/api/v5/stoptimes"
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
var trips = (options) => {
|
|
47
47
|
return (options?.client ?? client).get({
|
|
48
48
|
...options,
|
|
49
|
-
url: "/api/
|
|
49
|
+
url: "/api/v5/map/trips"
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
var initial = (options) => {
|
|
@@ -67,6 +67,12 @@ var levels = (options) => {
|
|
|
67
67
|
url: "/api/v1/map/levels"
|
|
68
68
|
});
|
|
69
69
|
};
|
|
70
|
+
var rentals = (options) => {
|
|
71
|
+
return (options?.client ?? client).get({
|
|
72
|
+
...options,
|
|
73
|
+
url: "/api/v1/rentals"
|
|
74
|
+
});
|
|
75
|
+
};
|
|
70
76
|
var transfers = (options) => {
|
|
71
77
|
return (options?.client ?? client).get({
|
|
72
78
|
...options,
|
|
@@ -87,5 +93,6 @@ export {
|
|
|
87
93
|
initial,
|
|
88
94
|
stops,
|
|
89
95
|
levels,
|
|
96
|
+
rentals,
|
|
90
97
|
transfers
|
|
91
98
|
};
|