Skip to content

Commit

Permalink
Route required fields: part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alankashiwa authored and andykao1213 committed Aug 24, 2022
1 parent 2249947 commit ad9362d
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 121 deletions.
55 changes: 13 additions & 42 deletions sdk/maps/maps-route/src/generated/models/index.ts

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

65 changes: 8 additions & 57 deletions sdk/maps/maps-route/src/generated/models/mappers.ts

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

1 change: 0 additions & 1 deletion sdk/maps/maps-route/src/models/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export {
EffectiveSetting,
ErrorResponse,
ErrorDetail,
ErrorAdditionalInfo,
RouteLegSummary,
RouteSection,
RouteSummary,
Expand Down
8 changes: 4 additions & 4 deletions sdk/maps/maps-route/src/models/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ export interface RouteRangeResult {
*/
readonly formatVersion?: string;
/** Reachable Range */
reachableRange?: RouteRange;
reachableRange: RouteRange;
/** Reports the effective settings used in the current call. */
report?: RouteReport;
}

/** Reachable Range */
export interface RouteRange {
/** Center point of the reachable range */
center?: LatLon;
center: LatLon;
/**
* Polygon boundary of the reachable range represented as a list of points.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly boundary?: LatLon[];
readonly boundary: LatLon[];
}

/** This object is returned from a successful Route Directions call */
Expand Down Expand Up @@ -252,5 +252,5 @@ export interface BatchItem<TResult> {
/** HTTP request status code. */
readonly statusCode?: number;
/** The result of the query. TResult if the query completed successfully, ErrorResponse otherwise. */
readonly response?: TResult & ErrorResponse;
readonly response?: TResult | ErrorResponse;
}
Loading

0 comments on commit ad9362d

Please sign in to comment.