How to use the @here/olp-sdk-dataservice-api.ConfigApi.getCatalogs function in @here/olp-sdk-dataservice-api

To help you get started, we’ve selected a few @here/olp-sdk-dataservice-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heremaps / here-olp-sdk-typescript / @here / olp-sdk-dataservice-read / lib / client / ConfigClient.ts View on Github external
public async getCatalogs(
        request: CatalogsRequest
    ): Promise {
        const requestBuilder = await RequestFactory.create(
            "config",
            this.apiVersion,
            this.settings
        ).catch(error => Promise.reject(error));
        return ConfigApi.getCatalogs(
            requestBuilder,
            request.getSchema()
                ? {
                      verbose: "true",
                      schemaHrn: request.getSchema(),
                      billingTag: request.getBillingTag()
                  }
                : { billingTag: request.getBillingTag() }
        );
    }
}