Skip to content

Commit

Permalink
Merge pull request #876 from Esri/b/export-getAllLayersAndTables
Browse files Browse the repository at this point in the history
export getAllLayersAndTables
  • Loading branch information
tomwayson authored Jul 9, 2021
2 parents 78cbd38 + 67f4e8a commit ba36200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export interface IAllLayersAndTablesResponse {
* ```
* Fetches all the layers and tables associated with a given layer service.
* Wrapper for https://developers.arcgis.com/rest/services-reference/all-layers-and-tables.htm
* TODO: should we expand this to support other valid params of the endpoint?
*
* @param options - Request options, including the url for the layer service
* @returns A Promise that will resolve with the layers and tables for the given service
*/
// TODO: should we expand this to support other valid params of the endpoint?
export function getAllLayersAndTables(options: IGetLayerOptions): Promise<IAllLayersAndTablesResponse> {
const { url, ...requestOptions } = options;
const layersUrl = `${parseServiceUrl(url)}/layers`;
Expand Down
1 change: 1 addition & 0 deletions packages/arcgis-rest-feature-layer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from "./add";
export * from "./update";
export * from "./delete";
export * from "./applyEdits";
export * from "./getAllLayersAndTables";
export * from "./getAttachments";
export * from "./addAttachment";
export * from "./updateAttachment";
Expand Down

0 comments on commit ba36200

Please sign in to comment.