@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 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
- userAgent: 'my-user-agent',
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/v3/plan"
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/v2/trip"
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/v1/stoptimes"
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/v1/map/trips"
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
  };