Constructors
constructor
- new IconApi(opts): IconApi
Parameters
- opts: {
getMediaBaseUrl: (() => Promise<string>);
iconDataStore: DataStore<"config",
| "translation"
| "projectSettings"
| "preset"
| "icon"
| "field"
| "deviceInfo">;
iconDataType: DataType<DataStore<"config",
| "translation"
| "projectSettings"
| "preset"
| "icon"
| "field"
| "deviceInfo">, SQLiteTableWithColumns<{}>, "icon", {}, {}>;
}getMediaBaseUrl: (() => Promise<string>)
- (): Promise<string>
Returns Promise<string>
iconDataStore: DataStore<"config",
| "translation"
| "projectSettings"
| "preset"
| "icon"
| "field"
| "deviceInfo">
iconDataType: DataType<DataStore<"config",
| "translation"
| "projectSettings"
| "preset"
| "icon"
| "field"
| "deviceInfo">, SQLiteTableWithColumns<{}>, "icon", {}, {}>
Methods
[kGetIconBlob]
- [kGetIconBlob](iconId, opts): Promise<Buffer>
Returns Promise<Buffer>
create
- create(icon): Promise<{}>
Returns Promise<{}>
getIconUrl
- getIconUrl(iconId, opts): Promise<string>
Returns Promise<string>