Appearance
hailer.app
Operations on the running app itself: its config and its marketplace product.
hailer.app.config
| Method | Host op | Returns |
|---|---|---|
update(config, option?) | app.config.update | Promise<void> |
ts
await hailer.app.config.update({ apiBase: 'https://example.com' });Updates the app's config values. Only keys declared in the app manifest's config.fields are accepted, and each value is a string of at most 4096 characters. option.appId defaults to the running app; a workspace app can only update its own config.
The current config is delivered through the config callback on init and whenever it changes.
hailer.app.product
Marketplace lookups for the running app.
| Method | Host op | Returns |
|---|---|---|
isProductInstalled(productId, workspaceId) | app.product.isProductInstalled | Promise<boolean> |
get(id) | app.product.get | Promise<ProductVersion | undefined> |
install(productId, workspaceId) | app.product.install | Promise<boolean> |
getInstalledVersion(id) | app.product.getInstalledVersion | Promise<Version> |
getManifest(id) | app.product.getManifest | Promise<any> |
ts
const installed = await hailer.app.product.isProductInstalled(productId, workspaceId);
const version = await hailer.app.product.getInstalledVersion(productId);See ProductVersion / Version. For managing your own products, see hailer.product.