@balena/open-balena-api 30.0.0-build-multi-level-store-de079c541a7f68655f7d501ff625cb57cddce510-1 → 30.0.0-build-multi-level-store-39052773954dcefc541a49a90e40bcec1d88de12-1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,90 +1,7 @@
|
|
1
1
|
import type { RequestHandler } from 'express';
|
2
2
|
import type { Device } from '../../balena-model.js';
|
3
3
|
import type { Request } from 'express-serve-static-core';
|
4
|
-
export declare const checkDeviceExistsIsFrozen: import("../../infra/cache/multi-level-memoizee.js").MemoizedFn<(uuid: string) => Promise<
|
5
|
-
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
6
|
-
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
7
|
-
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
8
|
-
actor: {
|
9
|
-
__id: import("../../balena-model.js").Actor["Read"]["id"];
|
10
|
-
} | [import("../../balena-model.js").Actor["Read"]];
|
11
|
-
api_heartbeat_state: "online" | "offline" | "timeout" | "unknown";
|
12
|
-
changed_api_heartbeat_state_on__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
13
|
-
uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
|
14
|
-
local_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
15
|
-
device_name: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
16
|
-
note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
17
|
-
is_of__device_type: {
|
18
|
-
__id: import("../../balena-model.js").DeviceType["Read"]["id"];
|
19
|
-
} | [import("../../balena-model.js").DeviceType["Read"]];
|
20
|
-
belongs_to__application: {
|
21
|
-
__id: import("../../balena-model.js").Application["Read"]["id"];
|
22
|
-
} | [import("../../balena-model.js").Application["Read"]] | [] | null;
|
23
|
-
is_online: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
24
|
-
last_connectivity_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
25
|
-
is_connected_to_vpn: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
26
|
-
last_vpn_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
27
|
-
is_locked_until__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
28
|
-
public_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
29
|
-
ip_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
30
|
-
mac_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
31
|
-
memory_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
32
|
-
memory_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
33
|
-
storage_block_device: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
34
|
-
storage_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
35
|
-
storage_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
36
|
-
cpu_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
37
|
-
cpu_temp: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
38
|
-
is_undervolted: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
39
|
-
cpu_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
40
|
-
is_running__release: {
|
41
|
-
__id: import("../../balena-model.js").Release["Read"]["id"];
|
42
|
-
} | [import("../../balena-model.js").Release["Read"]] | [] | null;
|
43
|
-
download_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
44
|
-
status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
45
|
-
os_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
46
|
-
os_variant: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
47
|
-
supervisor_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
48
|
-
provisioning_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
49
|
-
provisioning_state: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
50
|
-
api_port: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
51
|
-
api_secret: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
52
|
-
is_managed_by__service_instance: {
|
53
|
-
__id: import("../../balena-model.js").ServiceInstance["Read"]["id"];
|
54
|
-
} | [import("../../balena-model.js").ServiceInstance["Read"]] | [] | null;
|
55
|
-
is_pinned_on__release: {
|
56
|
-
__id: import("../../balena-model.js").Release["Read"]["id"];
|
57
|
-
} | [import("../../balena-model.js").Release["Read"]] | [] | null;
|
58
|
-
should_be_running__release: {
|
59
|
-
__id: import("../../balena-model.js").Release["Read"]["id"];
|
60
|
-
} | [import("../../balena-model.js").Release["Read"]] | [] | null;
|
61
|
-
should_be_operated_by__release: {
|
62
|
-
__id: import("../../balena-model.js").Release["Read"]["id"];
|
63
|
-
} | [import("../../balena-model.js").Release["Read"]] | [] | null;
|
64
|
-
should_be_managed_by__release: {
|
65
|
-
__id: import("../../balena-model.js").Release["Read"]["id"];
|
66
|
-
} | [import("../../balena-model.js").Release["Read"]] | [] | null;
|
67
|
-
update_status: "rejected" | "downloading" | "downloaded" | "applying changes" | "aborted" | "done" | null;
|
68
|
-
last_update_status_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
69
|
-
is_web_accessible: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
|
70
|
-
is_frozen: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
|
71
|
-
overall_status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
72
|
-
overall_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
73
|
-
device__has__env_var_name?: Array<import("../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
|
74
|
-
device_environment_variable?: Array<import("../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
|
75
|
-
device__has__config_var_name?: Array<import("../../balena-model.js").DeviceConfigVariable["Read"]>;
|
76
|
-
device_config_variable?: Array<import("../../balena-model.js").DeviceConfigVariable["Read"]>;
|
77
|
-
device__has__tag_key?: Array<import("../../balena-model.js").DeviceTag["Read"]>;
|
78
|
-
device_tag?: Array<import("../../balena-model.js").DeviceTag["Read"]>;
|
79
|
-
device__installs__image?: Array<import("../../balena-model.js").ImageInstall["Read"]>;
|
80
|
-
image_install?: Array<import("../../balena-model.js").ImageInstall["Read"]>;
|
81
|
-
device__installs__application__has__service_name?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
82
|
-
device__installs__service?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
83
|
-
service_install?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
84
|
-
installs__image?: Array<import("../../balena-model.js").ImageInstall["Read"]>;
|
85
|
-
installs__application__has__service_name?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
86
|
-
installs__service?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
87
|
-
}, "id" | "is_frozen"> | undefined>>>;
|
4
|
+
export declare const checkDeviceExistsIsFrozen: import("../../infra/cache/multi-level-memoizee.js").MemoizedFn<(uuid: string) => Promise<Pick<Device["Read"], "id" | "is_frozen"> | undefined>>;
|
88
5
|
export interface ResolveDeviceInfoCustomObject {
|
89
6
|
resolvedDeviceIds: Array<Device['Read']['id']>;
|
90
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/features/device-state/middleware.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClD,GAAG,CAAC,KAAK,CAAC,OAAO,CAChB;IACC,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,EAAE;IACtC,EAAE,EAAE;QACH,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE;KACrB;IACD,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC;KAC5B;CACD,EACD,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CACpB,CACD,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAC1D,KAAK,
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/features/device-state/middleware.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClD,GAAG,CAAC,KAAK,CAAC,OAAO,CAChB;IACC,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,EAAE,GAAG,EAAE,WAAW,CAAC,IAAI,EAAE;IACtC,EAAE,EAAE;QACH,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE;KACrB;IACD,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC;KAC5B;CACD,EACD,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,CACpB,CACD,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAC1D,KAAK,EACJ,IAAY,EACoD,EAA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AClC,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,GAAG,EAAE,CAAC;gBACpC,OAAO;YACR,CAAC;YACD,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,iCAAiC;gBACjC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,CAAC;gBACnC,OAAO;YACR,CAAC;YACD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC;QACD,GAAG,CAAC,MAAM,KAAK,EAAE,CAAC;QACjB,GAAG,CAAC,MAAwC,CAAC,iBAAiB,GAAG,SAAS,CAAC;QAC5E,IAAI,EAAE,CAAC;IACR,CAAC,CAAC;AACH,CAAC,CAAC"}
|
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": "30.0.0-build-multi-level-store-
|
4
|
+
"version": "30.0.0-build-multi-level-store-39052773954dcefc541a49a90e40bcec1d88de12-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -168,6 +168,6 @@
|
|
168
168
|
"loader": "ts-node/esm/transpile-only"
|
169
169
|
},
|
170
170
|
"versionist": {
|
171
|
-
"publishedAt": "2024-10-
|
171
|
+
"publishedAt": "2024-10-16T14:16:24.307Z"
|
172
172
|
}
|
173
173
|
}
|