-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute.ts
54 lines (38 loc) · 1.15 KB
/
route.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as Shared from './shared';
export class Route extends APIResource {
/**
* Retrieve information for a specific route identified by its unique ID.
*/
retrieve(routeId: string, options?: Core.RequestOptions): Core.APIPromise<RouteRetrieveResponse> {
return this._client.get(`/api/where/route/${routeId}.json`, options);
}
}
export interface RouteRetrieveResponse extends Shared.ResponseWrapper {
data: RouteRetrieveResponse.Data;
}
export namespace RouteRetrieveResponse {
export interface Data {
entry: Data.Entry;
references: Shared.References;
}
export namespace Data {
export interface Entry {
id: string;
agencyId: string;
type: number;
color?: string;
description?: string;
longName?: string;
nullSafeShortName?: string;
shortName?: string;
textColor?: string;
url?: string;
}
}
}
export declare namespace Route {
export { type RouteRetrieveResponse as RouteRetrieveResponse };
}