Skip to content

Commit e3bcf5c

Browse files
feat(api): api update
1 parent f8deb18 commit e3bcf5c

3 files changed

Lines changed: 38 additions & 44 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-162c2011b5784e2258775ec72e5da7bc86cb411d738b627f1eae6a0d56ee3aec.yml
3-
openapi_spec_hash: 2e32c25a86f9ff55bab7cfa1d9c985a7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-22e1c98416f77779b2c07db272016be0b623b94f6b55cca2d1909f9dc4032c3f.yml
3+
openapi_spec_hash: dd25fff6bc185752d92e93f6e47d3a5e
44
config_hash: 3871f5d21bb38ddd334ec04721dea64d

src/resources/stops-for-route.ts

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -33,62 +33,56 @@ export interface StopsForRouteListResponse extends Shared.ResponseWrapper {
3333

3434
export namespace StopsForRouteListResponse {
3535
export interface Data {
36-
data: Data.Data;
36+
entry: Data.Entry;
37+
38+
references: Shared.References;
3739
}
3840

3941
export namespace Data {
40-
export interface Data {
41-
entry: Data.Entry;
42+
export interface Entry {
43+
polylines?: Array<Entry.Polyline>;
4244

43-
references: Shared.References;
44-
}
45+
routeId?: string;
4546

46-
export namespace Data {
47-
export interface Entry {
48-
polylines?: Array<Entry.Polyline>;
47+
stopGroupings?: Array<Entry.StopGrouping>;
4948

50-
routeId?: string;
49+
stopIds?: Array<string>;
50+
}
5151

52-
stopGroupings?: Array<Entry.StopGrouping>;
52+
export namespace Entry {
53+
export interface Polyline {
54+
length?: number;
5355

54-
stopIds?: Array<string>;
56+
levels?: string;
57+
58+
points?: string;
5559
}
5660

57-
export namespace Entry {
58-
export interface Polyline {
59-
length?: number;
61+
export interface StopGrouping {
62+
id?: string;
6063

61-
levels?: string;
64+
name?: StopGrouping.Name;
6265

63-
points?: string;
64-
}
66+
polylines?: Array<StopGrouping.Polyline>;
6567

66-
export interface StopGrouping {
67-
id?: string;
68+
stopIds?: Array<string>;
69+
}
6870

69-
name?: StopGrouping.Name;
71+
export namespace StopGrouping {
72+
export interface Name {
73+
name?: string;
7074

71-
polylines?: Array<StopGrouping.Polyline>;
75+
names?: Array<string>;
7276

73-
stopIds?: Array<string>;
77+
type?: string;
7478
}
7579

76-
export namespace StopGrouping {
77-
export interface Name {
78-
name?: string;
79-
80-
names?: Array<string>;
81-
82-
type?: string;
83-
}
84-
85-
export interface Polyline {
86-
length?: number;
80+
export interface Polyline {
81+
length?: number;
8782

88-
levels?: string;
83+
levels?: string;
8984

90-
points?: string;
91-
}
85+
points?: string;
9286
}
9387
}
9488
}

src/resources/vehicles-for-agency.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,10 @@ export namespace VehiclesForAgencyListResponse {
4646

4747
lastUpdateTime: number;
4848

49-
location: List.Location;
50-
51-
tripId: string;
52-
53-
tripStatus: List.TripStatus;
54-
5549
vehicleId: string;
5650

51+
location?: List.Location;
52+
5753
occupancyCapacity?: number;
5854

5955
occupancyCount?: number;
@@ -63,6 +59,10 @@ export namespace VehiclesForAgencyListResponse {
6359
phase?: string;
6460

6561
status?: string;
62+
63+
tripId?: string;
64+
65+
tripStatus?: List.TripStatus;
6666
}
6767

6868
export namespace List {

0 commit comments

Comments
 (0)