Skip to content

Commit

Permalink
Merge pull request #111 from OneBusAway/release-please--branches--mai…
Browse files Browse the repository at this point in the history
…n--changes--next--components--onebusaway-sdk

release: 0.1.0-alpha.25
  • Loading branch information
Ahmedhossamdev authored Jul 22, 2024
2 parents 47d715f + 999528e commit 05b6185
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.24"
".": "0.1.0-alpha.25"
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.1.0-alpha.25 (2024-07-22)

Full Changelog: [v0.1.0-alpha.24...v0.1.0-alpha.25](https://github.com/OneBusAway/js-sdk/compare/v0.1.0-alpha.24...v0.1.0-alpha.25)

### Features

* **api:** OpenAPI spec update via Stainless API ([#110](https://github.com/OneBusAway/js-sdk/issues/110)) ([f6334b2](https://github.com/OneBusAway/js-sdk/commit/f6334b28c221fdb076f31e2b0149a8f1f393d12c))
* **api:** OpenAPI spec update via Stainless API ([#112](https://github.com/OneBusAway/js-sdk/issues/112)) ([8d2ba6a](https://github.com/OneBusAway/js-sdk/commit/8d2ba6ae143f27c69bd6ada365392d84cbacf817))
* **api:** OpenAPI spec update via Stainless API ([#113](https://github.com/OneBusAway/js-sdk/issues/113)) ([d556fec](https://github.com/OneBusAway/js-sdk/commit/d556fecf29286c09450db776f952b4b1cb45b6db))

## 0.1.0-alpha.24 (2024-07-19)

Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/OneBusAway/js-sdk/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
Expand Down
16 changes: 16 additions & 0 deletions examples/stop-for-route.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import onebusaway from '../dist/index.mjs';

const oba = new onebusaway({
apiKey: 'TEST',
});

async function main() {
const routeId = '1_100224';
const response = await oba.stopsForRoute.list(routeId);

if (response?.data) {
console.log(response.data);
}
}

main();
13 changes: 13 additions & 0 deletions examples/trip-details.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import onebusaway from '../dist/index.mjs';

const oba = new onebusaway({
apiKey: 'TEST',
});

async function main() {
const tripId = '40_608344966';
const response = await oba.tripDetails.retrieve(tripId);
console.log(response.data);
}

main();
13 changes: 13 additions & 0 deletions examples/trip.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import onebusaway from '../dist/index.mjs';

const oba = new onebusaway({
apiKey: 'TEST',
});

async function main() {
const tripId = '40_608344966';
const response = await oba.trip.retrieve(tripId);
console.log(response.data);
}

main();
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onebusaway-sdk",
"version": "0.1.0-alpha.24",
"version": "0.1.0-alpha.25",
"description": "The official TypeScript library for the Onebusaway SDK API",
"author": "Onebusaway SDK <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/resources/stops-for-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class StopsForRoute extends APIResource {
if (isRequestOptions(query)) {
return this.list(routeId, {}, query);
}
return this._client.get(`/api/where/stops-for-route/routeID.json`, { query, ...options });
return this._client.get(`/api/where/stops-for-route/${routeId}.json`, { query, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/trip-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TripDetails extends APIResource {
if (isRequestOptions(query)) {
return this.retrieve(tripId, {}, query);
}
return this._client.get(`/api/where/trip-details/tripID.json`, { query, ...options });
return this._client.get(`/api/where/trip-details/${tripId}.json`, { query, ...options });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/resources/trip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class Trip extends APIResource {
* Get details of a specific trip
*/
retrieve(tripId: string, options?: Core.RequestOptions): Core.APIPromise<TripRetrieveResponse> {
return this._client.get(`/api/where/trip/tripID.json`, options);
return this._client.get(`/api/where/trip/${tripId}.json`, options);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.24'; // x-release-please-version
export const VERSION = '0.1.0-alpha.25'; // x-release-please-version

0 comments on commit 05b6185

Please sign in to comment.