balena-sdk 23.2.9 → 23.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2017/balena-browser.min.js +1 -1
- package/es2017/models/application.d.ts +15 -15
- package/es2017/models/balenaos-contract.d.ts +1 -2
- package/es2017/models/balenaos-contract.js +1 -1
- package/es2017/models/device.d.ts +13 -13
- package/es2017/models/index.d.ts +40 -40
- package/es2017/models/organization-membership.d.ts +3 -3
- package/es2017/models/organization.d.ts +3 -3
- package/es2017/models/os.d.ts +4 -5
- package/es2017/models/release.d.ts +2 -2
- package/es2017/models/service.d.ts +4 -4
- package/es2017/types/contract.d.ts +3 -2
- package/es2017/types/device-state.d.ts +12 -13
- package/es2017/types/device-type-json.d.ts +2 -3
- package/es2017/types/device-type-json.js +1 -0
- package/es2017/util/dependent-resource.d.ts +6 -6
- package/es2017/util/sdk-version.js +1 -1
- package/es2018/balena-browser.min.js +1 -1
- package/es2018/models/application.d.ts +15 -15
- package/es2018/models/balenaos-contract.d.ts +1 -2
- package/es2018/models/balenaos-contract.js +1 -1
- package/es2018/models/device.d.ts +13 -13
- package/es2018/models/index.d.ts +40 -40
- package/es2018/models/organization-membership.d.ts +3 -3
- package/es2018/models/organization.d.ts +3 -3
- package/es2018/models/os.d.ts +4 -5
- package/es2018/models/release.d.ts +2 -2
- package/es2018/models/service.d.ts +4 -4
- package/es2018/types/contract.d.ts +3 -2
- package/es2018/types/device-state.d.ts +12 -13
- package/es2018/types/device-type-json.d.ts +2 -3
- package/es2018/types/device-type-json.js +1 -0
- package/es2018/util/dependent-resource.d.ts +6 -6
- package/es2018/util/sdk-version.js +1 -1
- package/package.json +2 -2
- package/typings/utils.d.ts +1 -9
|
@@ -822,7 +822,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
822
822
|
tag_key: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
823
823
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
824
824
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
825
|
-
}>>(parentParam: string | number |
|
|
825
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
826
826
|
application: {
|
|
827
827
|
__id: Application["Read"]["id"];
|
|
828
828
|
} | [Application["Read"]];
|
|
@@ -849,7 +849,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
849
849
|
* @example
|
|
850
850
|
* balena.models.application.tags.set(123, 'EDITOR', 'vim');
|
|
851
851
|
*/
|
|
852
|
-
set: (parentParam: string | number |
|
|
852
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
853
853
|
/**
|
|
854
854
|
* @summary Remove an application tag
|
|
855
855
|
* @name remove
|
|
@@ -864,7 +864,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
864
864
|
* @example
|
|
865
865
|
* balena.models.application.tags.remove('myorganization/myapp', 'EDITOR');
|
|
866
866
|
*/
|
|
867
|
-
remove: (parentParam: string | number |
|
|
867
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
868
868
|
};
|
|
869
869
|
/**
|
|
870
870
|
* @namespace balena.models.application.configVar
|
|
@@ -900,7 +900,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
900
900
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
901
901
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
902
902
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
903
|
-
}>>(parentParam: string | number |
|
|
903
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
904
904
|
application: {
|
|
905
905
|
__id: Application["Read"]["id"];
|
|
906
906
|
} | [Application["Read"]];
|
|
@@ -930,7 +930,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
930
930
|
* console.log(value);
|
|
931
931
|
* });
|
|
932
932
|
*/
|
|
933
|
-
get: (parentParam: string | number |
|
|
933
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
934
934
|
/**
|
|
935
935
|
* @summary Set the value of a specific config variable
|
|
936
936
|
* @name set
|
|
@@ -953,7 +953,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
953
953
|
* ...
|
|
954
954
|
* });
|
|
955
955
|
*/
|
|
956
|
-
set: (parentParam: string | number |
|
|
956
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
957
957
|
/**
|
|
958
958
|
* @summary Clear the value of a specific config variable
|
|
959
959
|
* @name remove
|
|
@@ -975,7 +975,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
975
975
|
* ...
|
|
976
976
|
* });
|
|
977
977
|
*/
|
|
978
|
-
remove: (parentParam: string | number |
|
|
978
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
979
979
|
};
|
|
980
980
|
/**
|
|
981
981
|
* @namespace balena.models.application.envVar
|
|
@@ -1012,7 +1012,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1012
1012
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
1013
1013
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
1014
1014
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
1015
|
-
}>>(parentParam: string | number |
|
|
1015
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
1016
1016
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1017
1017
|
application: {
|
|
1018
1018
|
__id: Application["Read"]["id"];
|
|
@@ -1043,7 +1043,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1043
1043
|
* console.log(value);
|
|
1044
1044
|
* });
|
|
1045
1045
|
*/
|
|
1046
|
-
get: (parentParam: string | number |
|
|
1046
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
1047
1047
|
/**
|
|
1048
1048
|
* @summary Set the value of a specific environment variable
|
|
1049
1049
|
* @name set
|
|
@@ -1066,7 +1066,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1066
1066
|
* ...
|
|
1067
1067
|
* });
|
|
1068
1068
|
*/
|
|
1069
|
-
set: (parentParam: string | number |
|
|
1069
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
1070
1070
|
/**
|
|
1071
1071
|
* @summary Clear the value of a specific environment variable
|
|
1072
1072
|
* @name remove
|
|
@@ -1088,7 +1088,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1088
1088
|
* ...
|
|
1089
1089
|
* });
|
|
1090
1090
|
*/
|
|
1091
|
-
remove: (parentParam: string | number |
|
|
1091
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
1092
1092
|
};
|
|
1093
1093
|
/**
|
|
1094
1094
|
* @namespace balena.models.application.buildVar
|
|
@@ -1125,7 +1125,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1125
1125
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
1126
1126
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
1127
1127
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
1128
|
-
}>>(parentParam: string | number |
|
|
1128
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
1129
1129
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1130
1130
|
application: {
|
|
1131
1131
|
__id: Application["Read"]["id"];
|
|
@@ -1156,7 +1156,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1156
1156
|
* console.log(value);
|
|
1157
1157
|
* });
|
|
1158
1158
|
*/
|
|
1159
|
-
get: (parentParam: string | number |
|
|
1159
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
1160
1160
|
/**
|
|
1161
1161
|
* @summary Set the value of a specific build environment variable
|
|
1162
1162
|
* @name set
|
|
@@ -1179,7 +1179,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1179
1179
|
* ...
|
|
1180
1180
|
* });
|
|
1181
1181
|
*/
|
|
1182
|
-
set: (parentParam: string | number |
|
|
1182
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
1183
1183
|
/**
|
|
1184
1184
|
* @summary Clear the value of a specific build environment variable
|
|
1185
1185
|
* @name remove
|
|
@@ -1201,7 +1201,7 @@ declare const getApplicationModel: (deps: InjectedDependenciesParam, opts: Injec
|
|
|
1201
1201
|
* ...
|
|
1202
1202
|
* });
|
|
1203
1203
|
*/
|
|
1204
|
-
remove: (parentParam: string | number |
|
|
1204
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
1205
1205
|
};
|
|
1206
1206
|
/**
|
|
1207
1207
|
* @namespace balena.models.application.membership
|
|
@@ -43,7 +43,7 @@ exports.BalenaOS = {
|
|
|
43
43
|
`To provision {{deviceType.name}}, follow the instructions using our [Jetson Flash tool](https://github.com/balena-os/jetson-flash/blob/master/docs/{{deviceType.slug}}.md) to make the process more streamlined.`,
|
|
44
44
|
],
|
|
45
45
|
usbMassStorage: [
|
|
46
|
-
`{{#each deviceType.partials.instructions}}{{{this}}}
|
|
46
|
+
`{{#each deviceType.partials.instructions}}{{{this}}}
|
|
47
47
|
{{/each}}`,
|
|
48
48
|
],
|
|
49
49
|
edisonFlash: {
|
|
@@ -6,7 +6,7 @@ import type { OsUpdateActionResult } from '../util/device-actions/os-update';
|
|
|
6
6
|
import { type MergePineOptions } from '../util';
|
|
7
7
|
import { getCurrentServiceDetailsPineExpand } from '../util/device-service-details';
|
|
8
8
|
import { LOCAL_MODE_SUPPORT_PROPERTIES } from '../util/local-mode';
|
|
9
|
-
import type { AtLeast
|
|
9
|
+
import type { AtLeast } from '../../typings/utils';
|
|
10
10
|
import type { DeviceType } from '../types/models';
|
|
11
11
|
import type { ODataOptionsWithoutCount, OptionsToResponse } from 'pinejs-client-core';
|
|
12
12
|
export * as DeviceState from '../types/device-state';
|
|
@@ -624,7 +624,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
624
624
|
}): Promise<OsUpdateActionResult>;
|
|
625
625
|
(uuidOrUuids: string[], targetOsVersion: string, options?: {
|
|
626
626
|
runDetached?: boolean;
|
|
627
|
-
}): Promise<
|
|
627
|
+
}): Promise<Record<string, OsUpdateActionResult>>;
|
|
628
628
|
};
|
|
629
629
|
/**
|
|
630
630
|
* @summary Mark a specific device to be updated to a particular OS release
|
|
@@ -702,7 +702,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
702
702
|
tag_key: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
703
703
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
704
704
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
705
|
-
}>>(parentParam: string | number |
|
|
705
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
706
706
|
device: {
|
|
707
707
|
__id: Device["Read"]["id"];
|
|
708
708
|
} | [Device["Read"]];
|
|
@@ -729,7 +729,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
729
729
|
* @example
|
|
730
730
|
* balena.models.device.tags.set(123, 'EDITOR', 'vim');
|
|
731
731
|
*/
|
|
732
|
-
set: (parentParam: string | number |
|
|
732
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
733
733
|
/**
|
|
734
734
|
* @summary Remove a device tag
|
|
735
735
|
* @name remove
|
|
@@ -744,7 +744,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
744
744
|
* @example
|
|
745
745
|
* balena.models.device.tags.remove('7cf02a69e4d34c9da573914963cf54fd', 'EDITOR');
|
|
746
746
|
*/
|
|
747
|
-
remove: (parentParam: string | number |
|
|
747
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
748
748
|
};
|
|
749
749
|
/**
|
|
750
750
|
* @namespace balena.models.device.configVar
|
|
@@ -780,7 +780,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
780
780
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
781
781
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
782
782
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
783
|
-
}>>(parentParam: string | number |
|
|
783
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
784
784
|
device: {
|
|
785
785
|
__id: Device["Read"]["id"];
|
|
786
786
|
} | [Device["Read"]];
|
|
@@ -833,7 +833,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
833
833
|
* console.log(value);
|
|
834
834
|
* });
|
|
835
835
|
*/
|
|
836
|
-
get: (parentParam: string | number |
|
|
836
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
837
837
|
/**
|
|
838
838
|
* @summary Set the value of a specific config variable
|
|
839
839
|
* @name set
|
|
@@ -856,7 +856,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
856
856
|
* ...
|
|
857
857
|
* });
|
|
858
858
|
*/
|
|
859
|
-
set: (parentParam: string | number |
|
|
859
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
860
860
|
/**
|
|
861
861
|
* @summary Clear the value of a specific config variable
|
|
862
862
|
* @name remove
|
|
@@ -878,7 +878,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
878
878
|
* ...
|
|
879
879
|
* });
|
|
880
880
|
*/
|
|
881
|
-
remove: (parentParam: string | number |
|
|
881
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
882
882
|
};
|
|
883
883
|
/**
|
|
884
884
|
* @namespace balena.models.device.envVar
|
|
@@ -915,7 +915,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
915
915
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
916
916
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
917
917
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
918
|
-
}>>(parentParam: string | number |
|
|
918
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
919
919
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
920
920
|
device: {
|
|
921
921
|
__id: Device["Read"]["id"];
|
|
@@ -969,7 +969,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
969
969
|
* console.log(value);
|
|
970
970
|
* });
|
|
971
971
|
*/
|
|
972
|
-
get: (parentParam: string | number |
|
|
972
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
973
973
|
/**
|
|
974
974
|
* @summary Set the value of a specific environment variable
|
|
975
975
|
* @name set
|
|
@@ -992,7 +992,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
992
992
|
* ...
|
|
993
993
|
* });
|
|
994
994
|
*/
|
|
995
|
-
set: (parentParam: string | number |
|
|
995
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
996
996
|
/**
|
|
997
997
|
* @summary Clear the value of a specific environment variable
|
|
998
998
|
* @name remove
|
|
@@ -1014,7 +1014,7 @@ declare const getDeviceModel: (deps: InjectedDependenciesParam, opts: InjectedOp
|
|
|
1014
1014
|
* ...
|
|
1015
1015
|
* });
|
|
1016
1016
|
*/
|
|
1017
|
-
remove: (parentParam: string | number |
|
|
1017
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
1018
1018
|
};
|
|
1019
1019
|
/**
|
|
1020
1020
|
* @namespace balena.models.device.serviceVar
|
package/es2017/models/index.d.ts
CHANGED
|
@@ -258,7 +258,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
258
258
|
tag_key: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
259
259
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
260
260
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
261
|
-
}>>(parentParam: string | number |
|
|
261
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
262
262
|
application: {
|
|
263
263
|
__id: import("..").Application["Read"]["id"];
|
|
264
264
|
} | [import("..").Application["Read"]];
|
|
@@ -266,8 +266,8 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
266
266
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
267
267
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
268
268
|
}, O, undefined>>;
|
|
269
|
-
set: (parentParam: string | number |
|
|
270
|
-
remove: (parentParam: string | number |
|
|
269
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
270
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
271
271
|
};
|
|
272
272
|
configVar: {
|
|
273
273
|
getAllByApplication: <O extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -277,7 +277,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
277
277
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
278
278
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
279
279
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
280
|
-
}>>(parentParam: string | number |
|
|
280
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
281
281
|
application: {
|
|
282
282
|
__id: import("..").Application["Read"]["id"];
|
|
283
283
|
} | [import("..").Application["Read"]];
|
|
@@ -285,9 +285,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
285
285
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
286
286
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
287
287
|
}, O, undefined>>;
|
|
288
|
-
get: (parentParam: string | number |
|
|
289
|
-
set: (parentParam: string | number |
|
|
290
|
-
remove: (parentParam: string | number |
|
|
288
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
289
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
290
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
291
291
|
};
|
|
292
292
|
envVar: {
|
|
293
293
|
getAllByApplication: <O extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -298,7 +298,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
298
298
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
299
299
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
300
300
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
301
|
-
}>>(parentParam: string | number |
|
|
301
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
302
302
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
303
303
|
application: {
|
|
304
304
|
__id: import("..").Application["Read"]["id"];
|
|
@@ -307,9 +307,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
307
307
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
308
308
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
309
309
|
}, O, undefined>>;
|
|
310
|
-
get: (parentParam: string | number |
|
|
311
|
-
set: (parentParam: string | number |
|
|
312
|
-
remove: (parentParam: string | number |
|
|
310
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
311
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
312
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
313
313
|
};
|
|
314
314
|
buildVar: {
|
|
315
315
|
getAllByApplication: <O extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -320,7 +320,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
320
320
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
321
321
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
322
322
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
323
|
-
}>>(parentParam: string | number |
|
|
323
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
324
324
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
325
325
|
application: {
|
|
326
326
|
__id: import("..").Application["Read"]["id"];
|
|
@@ -329,9 +329,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
329
329
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
330
330
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
331
331
|
}, O, undefined>>;
|
|
332
|
-
get: (parentParam: string | number |
|
|
333
|
-
set: (parentParam: string | number |
|
|
334
|
-
remove: (parentParam: string | number |
|
|
332
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
333
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
334
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
335
335
|
};
|
|
336
336
|
membership: {
|
|
337
337
|
get<T extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -652,7 +652,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
652
652
|
}): Promise<import("..").OsUpdateActionResult>;
|
|
653
653
|
(uuidOrUuids: string[], targetOsVersion: string, options?: {
|
|
654
654
|
runDetached?: boolean;
|
|
655
|
-
}): Promise<
|
|
655
|
+
}): Promise<Record<string, import("..").OsUpdateActionResult>>;
|
|
656
656
|
};
|
|
657
657
|
pinToOsRelease(uuidOrIdOrArray: string | string[] | number | number[], osVersionOrId: string | number): Promise<void>;
|
|
658
658
|
tags: {
|
|
@@ -664,7 +664,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
664
664
|
tag_key: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
665
665
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
666
666
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
667
|
-
}>>(parentParam: string | number |
|
|
667
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
668
668
|
device: {
|
|
669
669
|
__id: import("..").Device["Read"]["id"];
|
|
670
670
|
} | [import("..").Device["Read"]];
|
|
@@ -672,8 +672,8 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
672
672
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
673
673
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
674
674
|
}, O, undefined>>;
|
|
675
|
-
set: (parentParam: string | number |
|
|
676
|
-
remove: (parentParam: string | number |
|
|
675
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
676
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
677
677
|
};
|
|
678
678
|
configVar: {
|
|
679
679
|
getAllByDevice: <O extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -683,7 +683,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
683
683
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
684
684
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
685
685
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
686
|
-
}>>(parentParam: string | number |
|
|
686
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
687
687
|
device: {
|
|
688
688
|
__id: import("..").Device["Read"]["id"];
|
|
689
689
|
} | [import("..").Device["Read"]];
|
|
@@ -692,9 +692,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
692
692
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
693
693
|
}, O, undefined>>;
|
|
694
694
|
getAllByApplication<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").DeviceConfigVariable["Read"]>>(slugOrUuidOrId: string | number, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").DeviceConfigVariable["Read"], T, undefined>>;
|
|
695
|
-
get: (parentParam: string | number |
|
|
696
|
-
set: (parentParam: string | number |
|
|
697
|
-
remove: (parentParam: string | number |
|
|
695
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
696
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
697
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
698
698
|
};
|
|
699
699
|
envVar: {
|
|
700
700
|
getAllByDevice: <O extends import("pinejs-client-core").ODataOptionsWithoutCount<{
|
|
@@ -705,7 +705,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
705
705
|
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
|
706
706
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
707
707
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
708
|
-
}>>(parentParam: string | number |
|
|
708
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
709
709
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
710
710
|
device: {
|
|
711
711
|
__id: import("..").Device["Read"]["id"];
|
|
@@ -715,9 +715,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
715
715
|
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
|
716
716
|
}, O, undefined>>;
|
|
717
717
|
getAllByApplication<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").DeviceEnvironmentVariable["Read"]>>(slugOrUuidOrId: string | number, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").DeviceEnvironmentVariable["Read"], T, undefined>>;
|
|
718
|
-
get: (parentParam: string | number |
|
|
719
|
-
set: (parentParam: string | number |
|
|
720
|
-
remove: (parentParam: string | number |
|
|
718
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
719
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
720
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
721
721
|
};
|
|
722
722
|
serviceVar: {
|
|
723
723
|
getAllByDevice<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").DeviceServiceEnvironmentVariable["Read"]>>(uuidOrId: string | number, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").DeviceServiceEnvironmentVariable["Read"], T, undefined>>;
|
|
@@ -947,7 +947,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
947
947
|
user__is_member_of__organization: {
|
|
948
948
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
949
949
|
} | [import("..").OrganizationMembership["Read"]];
|
|
950
|
-
}>>(parentParam: string | number |
|
|
950
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
951
951
|
organization_membership: {
|
|
952
952
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
953
953
|
} | [import("..").OrganizationMembership["Read"]];
|
|
@@ -958,8 +958,8 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
958
958
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
959
959
|
} | [import("..").OrganizationMembership["Read"]];
|
|
960
960
|
}, O, undefined>>;
|
|
961
|
-
set: (parentParam: string | number |
|
|
962
|
-
remove: (parentParam: string | number |
|
|
961
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
962
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
965
|
invite: {
|
|
@@ -1124,7 +1124,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1124
1124
|
OsTypes: typeof import("./os").OsTypes;
|
|
1125
1125
|
getAllOsVersions: {
|
|
1126
1126
|
(deviceType: string, options?: undefined): Promise<import("./os").OsVersion[]>;
|
|
1127
|
-
(deviceType: string[], options?: undefined): Promise<
|
|
1127
|
+
(deviceType: string[], options?: undefined): Promise<Record<string, import("./os").OsVersion[]>>;
|
|
1128
1128
|
<TP extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").Release["Read"]>>(deviceType: string, options?: TP): Promise<(import("pinejs-client-core").OptionsToResponse<{
|
|
1129
1129
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1130
1130
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
@@ -1183,7 +1183,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1183
1183
|
osType: string;
|
|
1184
1184
|
line?: import("./os").OsLines;
|
|
1185
1185
|
})[]>;
|
|
1186
|
-
<TP extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").Release["Read"]>>(deviceTypes: string[], options?: TP): Promise<
|
|
1186
|
+
<TP extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").Release["Read"]>>(deviceTypes: string[], options?: TP): Promise<Record<string, (import("pinejs-client-core").OptionsToResponse<{
|
|
1187
1187
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1188
1188
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
1189
1189
|
belongs_to__application: {
|
|
@@ -1245,7 +1245,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1245
1245
|
getAvailableOsVersions: {
|
|
1246
1246
|
<DT extends string | string[]>(deviceType: DT, pineOptions?: undefined, extraOptions?: {
|
|
1247
1247
|
includeDraft?: boolean;
|
|
1248
|
-
}): Promise<DT extends string ? import("./os").OsVersion[] :
|
|
1248
|
+
}): Promise<DT extends string ? import("./os").OsVersion[] : Record<string, import("./os").OsVersion[]>>;
|
|
1249
1249
|
<DT extends string | string[], TP extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").Release["Read"]>>(deviceType: DT, pineOptions: TP, extraOptions?: {
|
|
1250
1250
|
includeDraft?: boolean;
|
|
1251
1251
|
}): Promise<DT extends string ? (import("pinejs-client-core").OptionsToResponse<{
|
|
@@ -1305,7 +1305,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1305
1305
|
basedOnVersion?: string;
|
|
1306
1306
|
osType: string;
|
|
1307
1307
|
line?: import("./os").OsLines;
|
|
1308
|
-
})[] :
|
|
1308
|
+
})[] : Record<string, (import("pinejs-client-core").OptionsToResponse<{
|
|
1309
1309
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1310
1310
|
id: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
|
1311
1311
|
belongs_to__application: {
|
|
@@ -1528,8 +1528,8 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1528
1528
|
tags: {
|
|
1529
1529
|
getAllByApplication<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").ReleaseTag["Read"]>>(slugOrUuidOrId: string | number, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").ReleaseTag["Read"], T, undefined>>;
|
|
1530
1530
|
getAllByRelease<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").ReleaseTag["Read"]>>(commitOrIdOrRawVersion: string | number | import("./release").ReleaseRawVersionApplicationPair, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").ReleaseTag["Read"], T, undefined>>;
|
|
1531
|
-
set: (parentParam: string | number |
|
|
1532
|
-
remove: (parentParam: string | number |
|
|
1531
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
1532
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
1533
1533
|
};
|
|
1534
1534
|
asset: {
|
|
1535
1535
|
getAllByRelease: <T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").ReleaseAsset["Read"]>>(commitOrIdOrRawVersion: string | number | import("./release").ReleaseRawVersionApplicationPair, options?: T) => Promise<import("pinejs-client-core").OptionsToResponse<import("..").ReleaseAsset["Read"], T, undefined>>;
|
|
@@ -1583,7 +1583,7 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1583
1583
|
application__has__service_name: {
|
|
1584
1584
|
__id: import("..").Service["Read"]["id"];
|
|
1585
1585
|
} | [import("..").Service["Read"]];
|
|
1586
|
-
}>>(parentParam: string | number |
|
|
1586
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<import("pinejs-client-core").OptionsToResponse<{
|
|
1587
1587
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
|
1588
1588
|
service: {
|
|
1589
1589
|
__id: import("..").Service["Read"]["id"];
|
|
@@ -1596,9 +1596,9 @@ declare const _default: (deps: InjectedDependenciesParam, opts: InjectedOptionsP
|
|
|
1596
1596
|
} | [import("..").Service["Read"]];
|
|
1597
1597
|
}, O, undefined>>;
|
|
1598
1598
|
getAllByApplication<T extends import("pinejs-client-core").ODataOptionsWithoutCount<import("..").ServiceEnvironmentVariable["Read"]>>(slugOrUuidOrId: string | number, options?: T): Promise<import("pinejs-client-core").OptionsToResponse<import("..").ServiceEnvironmentVariable["Read"], T, undefined>>;
|
|
1599
|
-
get: (parentParam: string | number |
|
|
1600
|
-
set: (parentParam: string | number |
|
|
1601
|
-
remove: (parentParam: string | number |
|
|
1599
|
+
get: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<string | undefined>;
|
|
1600
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
1601
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
1602
1602
|
};
|
|
1603
1603
|
};
|
|
1604
1604
|
image: {
|
|
@@ -178,7 +178,7 @@ declare const getOrganizationMembershipModel: (deps: InjectedDependenciesParam,
|
|
|
178
178
|
user__is_member_of__organization: {
|
|
179
179
|
__id: OrganizationMembership["Read"]["id"];
|
|
180
180
|
} | [OrganizationMembership["Read"]];
|
|
181
|
-
}>>(parentParam: string | number |
|
|
181
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
182
182
|
organization_membership: {
|
|
183
183
|
__id: OrganizationMembership["Read"]["id"];
|
|
184
184
|
} | [OrganizationMembership["Read"]];
|
|
@@ -205,7 +205,7 @@ declare const getOrganizationMembershipModel: (deps: InjectedDependenciesParam,
|
|
|
205
205
|
* @example
|
|
206
206
|
* balena.models.organization.memberships.tags.set(5, 'EDITOR', 'vim');
|
|
207
207
|
*/
|
|
208
|
-
set: (parentParam: string | number |
|
|
208
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
209
209
|
/**
|
|
210
210
|
* @summary Remove an organization membership tag
|
|
211
211
|
* @name remove
|
|
@@ -220,7 +220,7 @@ declare const getOrganizationMembershipModel: (deps: InjectedDependenciesParam,
|
|
|
220
220
|
* @example
|
|
221
221
|
* balena.models.organization.memberships.tags.remove(5, 'EDITOR');
|
|
222
222
|
*/
|
|
223
|
-
remove: (parentParam: string | number |
|
|
223
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
export default getOrganizationMembershipModel;
|
|
@@ -133,7 +133,7 @@ declare const getOrganizationModel: (deps: InjectedDependenciesParam, opts: Inje
|
|
|
133
133
|
user__is_member_of__organization: {
|
|
134
134
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
135
135
|
} | [import("..").OrganizationMembership["Read"]];
|
|
136
|
-
}>>(parentParam: string | number |
|
|
136
|
+
}>>(parentParam: string | number | Record<string, unknown>, options?: O | undefined) => Promise<OptionsToResponse<{
|
|
137
137
|
organization_membership: {
|
|
138
138
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
139
139
|
} | [import("..").OrganizationMembership["Read"]];
|
|
@@ -144,8 +144,8 @@ declare const getOrganizationModel: (deps: InjectedDependenciesParam, opts: Inje
|
|
|
144
144
|
__id: import("..").OrganizationMembership["Read"]["id"];
|
|
145
145
|
} | [import("..").OrganizationMembership["Read"]];
|
|
146
146
|
}, O, undefined>>;
|
|
147
|
-
set: (parentParam: string | number |
|
|
148
|
-
remove: (parentParam: string | number |
|
|
147
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
148
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
/**
|
package/es2017/models/os.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { BalenaRequestStreamResult } from 'balena-request';
|
|
2
|
-
import type { Dictionary } from '../../typings/utils';
|
|
3
2
|
import type { Release, ReleaseTag } from '../types/models';
|
|
4
3
|
import type { InjectedDependenciesParam, InjectedOptionsParam } from '..';
|
|
5
4
|
import type { ODataOptionsWithoutCount, OptionsToResponse } from 'pinejs-client-core';
|
|
@@ -64,17 +63,17 @@ declare const getOsModel: (deps: InjectedDependenciesParam, opts: InjectedOption
|
|
|
64
63
|
OsTypes: typeof OsTypes;
|
|
65
64
|
getAllOsVersions: {
|
|
66
65
|
(deviceType: string, options?: undefined): Promise<OsVersion[]>;
|
|
67
|
-
(deviceType: string[], options?: undefined): Promise<
|
|
66
|
+
(deviceType: string[], options?: undefined): Promise<Record<string, OsVersion[]>>;
|
|
68
67
|
<TP extends ODataOptionsWithoutCount<Release["Read"]>>(deviceType: string, options?: TP): Promise<OsVersionResponse<NonNullable<TP>>>;
|
|
69
|
-
<TP extends ODataOptionsWithoutCount<Release["Read"]>>(deviceTypes: string[], options?: TP): Promise<
|
|
68
|
+
<TP extends ODataOptionsWithoutCount<Release["Read"]>>(deviceTypes: string[], options?: TP): Promise<Record<string, OsVersionResponse<NonNullable<TP>>>>;
|
|
70
69
|
};
|
|
71
70
|
getAvailableOsVersions: {
|
|
72
71
|
<DT extends string | string[]>(deviceType: DT, pineOptions?: undefined, extraOptions?: {
|
|
73
72
|
includeDraft?: boolean;
|
|
74
|
-
}): Promise<DT extends string ? OsVersion[] :
|
|
73
|
+
}): Promise<DT extends string ? OsVersion[] : Record<string, OsVersion[]>>;
|
|
75
74
|
<DT extends string | string[], TP extends ODataOptionsWithoutCount<Release["Read"]>>(deviceType: DT, pineOptions: TP, extraOptions?: {
|
|
76
75
|
includeDraft?: boolean;
|
|
77
|
-
}): Promise<DT extends string ? OsVersionResponse<TP> :
|
|
76
|
+
}): Promise<DT extends string ? OsVersionResponse<TP> : Record<string, OsVersionResponse<TP>>>;
|
|
78
77
|
};
|
|
79
78
|
getMaxSatisfyingVersion: (deviceType: string, versionOrRange?: string, osType?: "default" | "esr") => Promise<string | null>;
|
|
80
79
|
getDownloadSize: (deviceType: string, version?: string) => Promise<number>;
|
|
@@ -101,7 +101,7 @@ declare const getReleaseModel: (deps: InjectedDependenciesParam, opts: InjectedO
|
|
|
101
101
|
* @example
|
|
102
102
|
* balena.models.release.tags.set({application: 456, rawVersion: '0.0.0'}, 'EDITOR', 'vim');
|
|
103
103
|
*/
|
|
104
|
-
set: (parentParam: string | number |
|
|
104
|
+
set: (parentParam: string | number | Record<string, unknown>, key: string, value: string) => Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* @summary Remove a release tag
|
|
107
107
|
* @name remove
|
|
@@ -122,7 +122,7 @@ declare const getReleaseModel: (deps: InjectedDependenciesParam, opts: InjectedO
|
|
|
122
122
|
* @example
|
|
123
123
|
* balena.models.release.tags.remove({application: 456, rawVersion: '0.0.0'}, 'EDITOR');
|
|
124
124
|
*/
|
|
125
|
-
remove: (parentParam: string | number |
|
|
125
|
+
remove: (parentParam: string | number | Record<string, unknown>, key: string) => Promise<void>;
|
|
126
126
|
};
|
|
127
127
|
asset: {
|
|
128
128
|
/**
|