Update balena-sdk from 11.18.0 to 12.10.0 (pre-req for #1153 and #1304)

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
Paulo Castro
2019-09-11 14:35:06 +01:00
parent d25ad328f3
commit f76ca1804a
4 changed files with 151 additions and 33 deletions

View File

@ -134,7 +134,9 @@ export function getArchAndDeviceType(
getApplication(applicationName),
balena.models.config.getDeviceTypes(),
function(app, deviceTypes) {
const config = _.find(deviceTypes, { slug: app.device_type });
const config = _.find<BalenaSdk.DeviceType>(deviceTypes, {
slug: app.device_type,
});
if (!config) {
throw new Error('Could not read application information!');
@ -150,7 +152,7 @@ export function getApplication(applicationName: string) {
// that off to a special handler (before importing any modules)
const match = applicationName.split('/');
const extraOptions = {
const extraOptions: BalenaSdk.PineOptionsFor<BalenaSdk.Application> = {
$expand: {
application_type: {
$select: ['name', 'slug', 'supports_multicontainer', 'is_legacy'],