@balena/open-balena-api 31.2.9-build-v2-state-get-wo-si-879b6c7917b1ce1d0c7a5f1550333ad866e8bbf7-2 → 31.2.9
Sign up to get free protection for your applications and to get access to all the features.
package/dist/balena-model.d.ts
CHANGED
@@ -596,13 +596,13 @@ export interface Service {
|
|
596
596
|
device__installs__application__has__service_name?: Array<ServiceInstall['Read']>;
|
597
597
|
device__installs__service?: Array<ServiceInstall['Read']>;
|
598
598
|
service_install?: Array<ServiceInstall['Read']>;
|
599
|
-
device__installs__application__has__service_name__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
600
|
-
device__installs__service__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
601
|
-
device__installs__service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
602
|
-
service_install__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
603
|
-
device_service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
604
599
|
is_installed_on__device?: Array<ServiceInstall['Read']>;
|
605
600
|
is_built_by__image?: Array<Image['Read']>;
|
601
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
602
|
+
is_of__device__installs__service__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
603
|
+
is_of__device__installs__service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
604
|
+
is_of__service_install__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
605
|
+
is_of__device_service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
606
606
|
};
|
607
607
|
Write: {
|
608
608
|
created_at: Types['Date Time']['Write'];
|
@@ -759,14 +759,14 @@ export interface Device {
|
|
759
759
|
device__installs__application__has__service_name?: Array<ServiceInstall['Read']>;
|
760
760
|
device__installs__service?: Array<ServiceInstall['Read']>;
|
761
761
|
service_install?: Array<ServiceInstall['Read']>;
|
762
|
-
device__installs__application__has__service_name__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
763
|
-
device__installs__service__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
764
|
-
device__installs__service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
765
|
-
service_install__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
766
|
-
device_service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
767
762
|
installs__image?: Array<ImageInstall['Read']>;
|
768
763
|
installs__application__has__service_name?: Array<ServiceInstall['Read']>;
|
769
764
|
installs__service?: Array<ServiceInstall['Read']>;
|
765
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
766
|
+
is_of__device__installs__service__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
767
|
+
is_of__device__installs__service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
768
|
+
is_of__service_install__has__name?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
769
|
+
is_of__device_service_environment_variable?: Array<DeviceServiceEnvironmentVariable['Read']>;
|
770
770
|
};
|
771
771
|
Write: {
|
772
772
|
created_at: Types['Date Time']['Write'];
|
package/dist/balena.sbvr
CHANGED
@@ -395,8 +395,6 @@ Term: device
|
|
395
395
|
Term Form: service install
|
396
396
|
Database Table Name: service install
|
397
397
|
|
398
|
-
-- Target form for this table is:
|
399
|
-
-- Fact type: device has service has env var name
|
400
398
|
Fact type: service install has name (Auth)
|
401
399
|
Term Form: device service environment variable
|
402
400
|
Database Table Name: device service environment variable
|
@@ -816,14 +814,8 @@ Fact type: device service environment variable has value
|
|
816
814
|
Necessity: each device service environment variable has exactly one value.
|
817
815
|
Fact type: device service environment variable has service
|
818
816
|
Necessity: each device service environment variable has exactly one service.
|
819
|
-
-- This is the default name that will be given to the synonymous form
|
820
|
-
-- once the device service environment variable origin fact type changes
|
821
|
-
Synonymous form: service has device service environment variable
|
822
817
|
Fact type: device service environment variable has device
|
823
818
|
Necessity: each device service environment variable has exactly one device.
|
824
|
-
-- This is the default name that will be given to the synonymous form
|
825
|
-
-- once the device service environment variable origin fact type changes
|
826
|
-
Synonymous form: device has device service environment variable
|
827
819
|
|
828
820
|
|
829
821
|
-- application tag
|
@@ -23,13 +23,16 @@ function buildAppFromRelease(device, application, release, config) {
|
|
23
23
|
for (const ipr of release.release_image) {
|
24
24
|
// extract the per-image information
|
25
25
|
const image = ipr.image[0];
|
26
|
+
const si = device.service_install.find(({ service }) => service.__id === image.is_a_build_of__service[0].id);
|
26
27
|
const svc = image.is_a_build_of__service[0];
|
27
28
|
const environment = {};
|
28
29
|
varListInsert(ipr.image_environment_variable, environment);
|
29
30
|
varListInsert(application.application_environment_variable, environment);
|
30
31
|
varListInsert(svc.service_environment_variable, environment);
|
31
32
|
varListInsert(device.device_environment_variable, environment);
|
32
|
-
|
33
|
+
if (si != null) {
|
34
|
+
varListInsert(si.device_service_environment_variable, environment);
|
35
|
+
}
|
33
36
|
const labels = {};
|
34
37
|
for (const { label_name, value } of [
|
35
38
|
...ipr.image_label,
|
@@ -109,9 +112,6 @@ const stateQuery = _.once(() => api.resin.prepare({
|
|
109
112
|
is_a_build_of__service: {
|
110
113
|
$select: ['id', 'service_name'],
|
111
114
|
$expand: {
|
112
|
-
device_service_environment_variable: {
|
113
|
-
$select: ['name', 'value'],
|
114
|
-
},
|
115
115
|
service_environment_variable: {
|
116
116
|
$select: ['name', 'value'],
|
117
117
|
},
|
@@ -132,6 +132,14 @@ const stateQuery = _.once(() => api.resin.prepare({
|
|
132
132
|
},
|
133
133
|
},
|
134
134
|
},
|
135
|
+
service_install: {
|
136
|
+
$select: ['id', 'service'],
|
137
|
+
$expand: {
|
138
|
+
device_service_environment_variable: {
|
139
|
+
$select: ['name', 'value'],
|
140
|
+
},
|
141
|
+
},
|
142
|
+
},
|
135
143
|
belongs_to__application: {
|
136
144
|
$select: ['id', 'app_name'],
|
137
145
|
$expand: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-get-v2.js","sourceRoot":"","sources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kB,GAAG,CAC1B,MAAsB,EACtB,MAA0B,EACV,EAAE;IAClB,MAAM,cAAc,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAEzD,iEAAiE;IACjE,MAAM,OAAO,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAErD,uCAAuC;IACvC,OAAO,OAAO,IAAI,IAAI;QACrB,CAAC,CAAC;YACA,IAAI,EAAE,cAAc,CAAC,QAAQ;YAC7B,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACX;QACF,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC,CAAC"}
|
@@ -186,14 +186,14 @@ declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.j
|
|
186
186
|
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
187
187
|
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
188
188
|
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
189
|
-
device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
190
|
-
device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
191
|
-
device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
192
|
-
service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
193
|
-
device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
194
189
|
installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
195
190
|
installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
196
191
|
installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
192
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
193
|
+
is_of__device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
194
|
+
is_of__device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
195
|
+
is_of__service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
196
|
+
is_of__device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
197
197
|
}, "id" | "status" | "created_at" | "modified_at" | "api_heartbeat_state" | "changed_api_heartbeat_state_on__date" | "uuid" | "local_id" | "device_name" | "note" | "is_online" | "last_connectivity_event" | "is_connected_to_vpn" | "last_vpn_event" | "is_locked_until__date" | "public_address" | "ip_address" | "mac_address" | "memory_usage" | "memory_total" | "storage_block_device" | "storage_usage" | "storage_total" | "cpu_usage" | "cpu_temp" | "is_undervolted" | "cpu_id" | "download_progress" | "os_version" | "os_variant" | "supervisor_version" | "provisioning_progress" | "provisioning_state" | "api_port" | "api_secret" | "update_status" | "last_update_status_event" | "is_web_accessible" | "is_frozen" | "overall_status" | "overall_progress"> & {
|
198
198
|
readonly device_config_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
199
199
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
@@ -335,13 +335,13 @@ declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.j
|
|
335
335
|
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
336
336
|
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
337
337
|
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
338
|
-
device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
339
|
-
device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
340
|
-
device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
341
|
-
service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
342
|
-
device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
343
338
|
is_installed_on__device?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
344
339
|
is_built_by__image?: Array<import("../../../balena-model.js").Image["Read"]>;
|
340
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
341
|
+
is_of__device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
342
|
+
is_of__device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
343
|
+
is_of__service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
344
|
+
is_of__device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
345
345
|
}, "id" | "service_name"> & {
|
346
346
|
readonly service_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
347
347
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
@@ -683,13 +683,13 @@ declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.j
|
|
683
683
|
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
684
684
|
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
685
685
|
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
686
|
-
device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
687
|
-
device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
688
|
-
device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
689
|
-
service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
690
|
-
device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
691
686
|
is_installed_on__device?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
692
687
|
is_built_by__image?: Array<import("../../../balena-model.js").Image["Read"]>;
|
688
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
689
|
+
is_of__device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
690
|
+
is_of__device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
691
|
+
is_of__service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
692
|
+
is_of__device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
693
693
|
}, "id" | "service_name"> & {
|
694
694
|
readonly service_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
695
695
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
@@ -917,13 +917,13 @@ declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.j
|
|
917
917
|
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
918
918
|
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
919
919
|
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
920
|
-
device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
921
|
-
device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
922
|
-
device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
923
|
-
service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
924
|
-
device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
925
920
|
is_installed_on__device?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
926
921
|
is_built_by__image?: Array<import("../../../balena-model.js").Image["Read"]>;
|
922
|
+
is_of__device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
923
|
+
is_of__device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
924
|
+
is_of__device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
925
|
+
is_of__service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
926
|
+
is_of__device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
927
927
|
}, "id" | "service_name"> & {
|
928
928
|
readonly service_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
929
929
|
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@balena/open-balena-api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "31.2.9
|
4
|
+
"version": "31.2.9",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -166,6 +166,6 @@
|
|
166
166
|
"loader": "ts-node/esm/transpile-only"
|
167
167
|
},
|
168
168
|
"versionist": {
|
169
|
-
"publishedAt": "2024-11-
|
169
|
+
"publishedAt": "2024-11-21T23:57:21.976Z"
|
170
170
|
}
|
171
171
|
}
|