@balena/open-balena-api 28.0.12 → 28.0.13-build-improve-typings-state-get-v3-5073c7cd98742632e713b69205a28fcdfda0b11c-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/features/device-state/routes/fleet-state-get-v3.d.ts +47 -0
- package/dist/features/device-state/routes/fleet-state-get-v3.js.map +1 -1
- package/dist/features/device-state/routes/state-get-v3.d.ts +768 -1
- package/dist/features/device-state/routes/state-get-v3.js +13 -6
- package/dist/features/device-state/routes/state-get-v3.js.map +1 -1
- package/dist/features/device-state/state-get-utils.d.ts +9 -0
- package/dist/features/device-state/state-get-utils.js.map +1 -1
- package/package.json +2 -2
@@ -1,2 +1,49 @@
|
|
1
1
|
import type { RequestHandler } from 'express';
|
2
|
+
import type { OptionsToResponse } from 'pinejs-client-core';
|
3
|
+
import type { Application } from '../../../balena-model.js';
|
4
|
+
declare const fleetExpand: {
|
5
|
+
readonly application_config_variable: {
|
6
|
+
readonly $select: readonly ["name", "value"];
|
7
|
+
};
|
8
|
+
readonly application_environment_variable: {
|
9
|
+
readonly $select: readonly ["name", "value"];
|
10
|
+
};
|
11
|
+
readonly should_be_running__release: {
|
12
|
+
readonly $select: readonly ["id", "commit", "composition"];
|
13
|
+
readonly $expand: {
|
14
|
+
readonly contains__image: {
|
15
|
+
readonly $select: "id";
|
16
|
+
readonly $expand: {
|
17
|
+
readonly image: {
|
18
|
+
readonly $select: readonly ["id", "is_stored_at__image_location", "content_hash", "is_a_build_of__service", "contract"];
|
19
|
+
};
|
20
|
+
readonly image_label: {
|
21
|
+
readonly $select: readonly ["label_name", "value"];
|
22
|
+
};
|
23
|
+
readonly image_environment_variable: {
|
24
|
+
readonly $select: readonly ["name", "value"];
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
};
|
30
|
+
readonly service: {
|
31
|
+
readonly $select: readonly ["id", "service_name"];
|
32
|
+
readonly $expand: {
|
33
|
+
readonly service_environment_variable: {
|
34
|
+
readonly $select: readonly ["name", "value"];
|
35
|
+
};
|
36
|
+
readonly service_label: {
|
37
|
+
readonly $select: readonly ["label_name", "value"];
|
38
|
+
};
|
39
|
+
readonly is_built_by__image: {
|
40
|
+
readonly $select: readonly ["id", "is_stored_at__image_location"];
|
41
|
+
};
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
45
|
+
export type ExpandedApplicationWithService = NonNullable<OptionsToResponse<Application['Read'], {
|
46
|
+
$expand: typeof fleetExpand;
|
47
|
+
}, number>>;
|
2
48
|
export declare const fleetStateV3: RequestHandler;
|
49
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fleet-state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/fleet-state-get-v3.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"fleet-state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/fleet-state-get-v3.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvE,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAC1B,MAAM,EAAE,iBAAiB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IAAI,CAAC;QACJ,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,GAAG,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QACjE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;YACrC,OAAO;QACR,CAAC;QACD,gBAAgB,CAAC,GAAG,EAAE,kCAAkC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;QACnE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC;AACF,CAAC,CAAC"}
|
@@ -1,6 +1,16 @@
|
|
1
1
|
import type { RequestHandler } from 'express';
|
2
|
+
import type { OptionsToResponse } from 'pinejs-client-core';
|
3
|
+
import type { Application } from '../../../balena-model.js';
|
4
|
+
import type { ExpandedApplicationWithService } from './fleet-state-get-v3.js';
|
2
5
|
type LocalStateApp = StateV3[string]['apps'][string];
|
3
6
|
type ServiceComposition = AnyObject;
|
7
|
+
type ExpandedDevice = Awaited<ReturnType<typeof getDevice>>;
|
8
|
+
type ExpandedApplication = NonNullable<OptionsToResponse<Application['Read'], {
|
9
|
+
$select: typeof appSelect;
|
10
|
+
$expand: typeof appExpand;
|
11
|
+
}, number>>;
|
12
|
+
type TargetReleaseField = 'should_be_running__release' | 'should_be_managed_by__release' | 'should_be_operated_by__release';
|
13
|
+
export type ExpandedRelease = ExpandedDevice[TargetReleaseField][number];
|
4
14
|
export type StateV3 = {
|
5
15
|
[uuid: string]: {
|
6
16
|
name: string;
|
@@ -55,7 +65,8 @@ export type StateV3 = {
|
|
55
65
|
};
|
56
66
|
};
|
57
67
|
};
|
58
|
-
export declare function buildAppFromRelease(device:
|
68
|
+
export declare function buildAppFromRelease(device: undefined, application: ExpandedApplicationWithService, release: ExpandedRelease, config: Dictionary<string>, defaultLabels?: Dictionary<string>): NonNullable<LocalStateApp['releases']>;
|
69
|
+
export declare function buildAppFromRelease(device: ExpandedDevice, application: ExpandedApplication, release: ExpandedRelease, config: Dictionary<string>, defaultLabels?: Dictionary<string>): NonNullable<LocalStateApp['releases']>;
|
59
70
|
export declare const releaseExpand: {
|
60
71
|
readonly $select: readonly ["id", "commit", "composition"];
|
61
72
|
readonly $expand: {
|
@@ -75,5 +86,761 @@ export declare const releaseExpand: {
|
|
75
86
|
};
|
76
87
|
};
|
77
88
|
};
|
89
|
+
declare const appSelect: readonly ["id", "uuid", "app_name", "is_host", "is_of__class"];
|
90
|
+
declare const appExpand: {
|
91
|
+
readonly application_environment_variable: {
|
92
|
+
readonly $select: readonly ["name", "value"];
|
93
|
+
};
|
94
|
+
};
|
78
95
|
export declare const stateV3: RequestHandler;
|
96
|
+
declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.js").PermissionReq, uuid: string) => Promise<import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
97
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
98
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
99
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
100
|
+
actor: {
|
101
|
+
__id: import("../../../balena-model.js").Actor["Read"]["id"];
|
102
|
+
} | [import("../../../balena-model.js").Actor["Read"]];
|
103
|
+
api_heartbeat_state: "online" | "offline" | "timeout" | "unknown";
|
104
|
+
changed_api_heartbeat_state_on__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
105
|
+
uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
|
106
|
+
local_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
107
|
+
device_name: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
108
|
+
note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
109
|
+
is_of__device_type: {
|
110
|
+
__id: import("../../../balena-model.js").DeviceType["Read"]["id"];
|
111
|
+
} | [import("../../../balena-model.js").DeviceType["Read"]];
|
112
|
+
belongs_to__application: {
|
113
|
+
__id: Application["Read"]["id"];
|
114
|
+
} | [Application["Read"]] | [] | null;
|
115
|
+
is_online: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
116
|
+
last_connectivity_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
117
|
+
is_connected_to_vpn: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
118
|
+
last_vpn_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
119
|
+
is_locked_until__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
120
|
+
public_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
121
|
+
ip_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
122
|
+
mac_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
123
|
+
memory_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
124
|
+
memory_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
125
|
+
storage_block_device: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
126
|
+
storage_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
127
|
+
storage_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
128
|
+
cpu_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
129
|
+
cpu_temp: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
130
|
+
is_undervolted: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
131
|
+
cpu_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
132
|
+
is_running__release: {
|
133
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
134
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
135
|
+
download_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
136
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
137
|
+
os_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
138
|
+
os_variant: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
139
|
+
supervisor_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
140
|
+
provisioning_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
141
|
+
provisioning_state: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
142
|
+
api_port: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
143
|
+
api_secret: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
144
|
+
is_managed_by__service_instance: {
|
145
|
+
__id: import("../../../balena-model.js").ServiceInstance["Read"]["id"];
|
146
|
+
} | [import("../../../balena-model.js").ServiceInstance["Read"]] | [] | null;
|
147
|
+
is_pinned_on__release: {
|
148
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
149
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
150
|
+
should_be_running__release: {
|
151
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
152
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
153
|
+
should_be_operated_by__release: {
|
154
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
155
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
156
|
+
should_be_managed_by__release: {
|
157
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
158
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
159
|
+
update_status: "rejected" | "downloading" | "downloaded" | "applying changes" | "aborted" | "done" | null;
|
160
|
+
last_update_status_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
161
|
+
is_web_accessible: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
|
162
|
+
is_frozen: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
|
163
|
+
overall_status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
164
|
+
overall_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
165
|
+
device__has__env_var_name?: Array<import("../../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
|
166
|
+
device_environment_variable?: Array<import("../../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
|
167
|
+
device__has__config_var_name?: Array<import("../../../balena-model.js").DeviceConfigVariable["Read"]>;
|
168
|
+
device_config_variable?: Array<import("../../../balena-model.js").DeviceConfigVariable["Read"]>;
|
169
|
+
device__has__tag_key?: Array<import("../../../balena-model.js").DeviceTag["Read"]>;
|
170
|
+
device_tag?: Array<import("../../../balena-model.js").DeviceTag["Read"]>;
|
171
|
+
device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
172
|
+
image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
173
|
+
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
174
|
+
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
175
|
+
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
176
|
+
installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
177
|
+
installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
178
|
+
installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
179
|
+
}, "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"> & {
|
180
|
+
readonly device_config_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
181
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
182
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
183
|
+
device: {
|
184
|
+
__id: import("../../../balena-model.js").Device["Read"]["id"];
|
185
|
+
} | [import("../../../balena-model.js").Device["Read"]];
|
186
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
187
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
188
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
189
|
+
}, "name" | "value">[];
|
190
|
+
readonly device_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
191
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
192
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
193
|
+
device: {
|
194
|
+
__id: import("../../../balena-model.js").Device["Read"]["id"];
|
195
|
+
} | [import("../../../balena-model.js").Device["Read"]];
|
196
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
197
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
198
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
199
|
+
}, "name" | "value">[];
|
200
|
+
readonly should_be_running__release: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
201
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
202
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
203
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
204
|
+
belongs_to__application: {
|
205
|
+
__id: Application["Read"]["id"];
|
206
|
+
} | [Application["Read"]];
|
207
|
+
commit: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
208
|
+
composition: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
209
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
210
|
+
source: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
211
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
212
|
+
is_invalidated: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
213
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
214
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
215
|
+
update_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
216
|
+
release_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
217
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
218
|
+
is_passing_tests: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
219
|
+
is_finalized_at__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
220
|
+
phase: "next" | "current" | "sunset" | "end-of-life" | null;
|
221
|
+
semver_major: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
222
|
+
semver_minor: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
223
|
+
semver_patch: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
224
|
+
semver_prerelease: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
225
|
+
semver_build: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
226
|
+
variant: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
227
|
+
revision: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
228
|
+
known_issue_list: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
229
|
+
note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
230
|
+
invalidation_reason: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
231
|
+
is_final: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
232
|
+
semver: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
233
|
+
raw_version: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
234
|
+
version: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
235
|
+
release__has__tag_key?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
236
|
+
release_tag?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
237
|
+
release__has__asset_key?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
238
|
+
release_asset?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
239
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
240
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
241
|
+
contains__image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
242
|
+
should_be_running_on__application?: Array<Application["Read"]>;
|
243
|
+
should_be_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
244
|
+
is_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
245
|
+
is_pinned_to__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
246
|
+
should_operate__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
247
|
+
should_manage__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
248
|
+
provides__device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
249
|
+
provides__image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
250
|
+
}, "id" | "commit" | "composition"> & {
|
251
|
+
readonly contains__image: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
252
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
253
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
254
|
+
image: {
|
255
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
256
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
257
|
+
is_part_of__release: {
|
258
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
259
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
260
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
261
|
+
image__is_part_of__release__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
262
|
+
release_image__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
263
|
+
image_label?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
264
|
+
image__is_part_of__release__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
265
|
+
release_image__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
266
|
+
image_environment_variable?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
267
|
+
release: {
|
268
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
269
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
270
|
+
contains__image: {
|
271
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
272
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
273
|
+
}, "id"> & {
|
274
|
+
readonly image: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
275
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
276
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
277
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
278
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
279
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
280
|
+
dockerfile: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
281
|
+
is_a_build_of__service: {
|
282
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
283
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
284
|
+
image_size: import("@balena/sbvr-types").Types["Big Integer"]["Read"] | null;
|
285
|
+
is_stored_at__image_location: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
286
|
+
project_type: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
287
|
+
error_message: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
288
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
289
|
+
push_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
290
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
291
|
+
content_hash: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
292
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
293
|
+
device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
294
|
+
image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
295
|
+
is_installed_on__device?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
296
|
+
is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
297
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
298
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
299
|
+
is_a_build_of__application__has__service_name: {
|
300
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
301
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
302
|
+
}, "id" | "contract" | "is_a_build_of__service" | "is_stored_at__image_location" | "content_hash">[];
|
303
|
+
readonly image_label: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
304
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
305
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
306
|
+
release_image: {
|
307
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
308
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
309
|
+
label_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
310
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
311
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
312
|
+
image__is_part_of__release: {
|
313
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
314
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
315
|
+
}, "value" | "label_name">[];
|
316
|
+
readonly image_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
317
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
318
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
319
|
+
release_image: {
|
320
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
321
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
322
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
323
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
324
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
325
|
+
image__is_part_of__release: {
|
326
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
327
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
328
|
+
}, "name" | "value">[];
|
329
|
+
})[];
|
330
|
+
})[];
|
331
|
+
readonly service_install: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
332
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
333
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
334
|
+
device: {
|
335
|
+
__id: import("../../../balena-model.js").Device["Read"]["id"];
|
336
|
+
} | [import("../../../balena-model.js").Device["Read"]];
|
337
|
+
installs__service: {
|
338
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
339
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
340
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
341
|
+
device__installs__application__has__service_name__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
342
|
+
device__installs__service__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
343
|
+
device__installs__service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
344
|
+
service_install__has__name?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
345
|
+
device_service_environment_variable?: Array<import("../../../balena-model.js").DeviceServiceEnvironmentVariable["Read"]>;
|
346
|
+
application__has__service_name: {
|
347
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
348
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
349
|
+
service: {
|
350
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
351
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
352
|
+
installs__application__has__service_name: {
|
353
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
354
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
355
|
+
is_installed_on__device: {
|
356
|
+
__id: import("../../../balena-model.js").Device["Read"]["id"];
|
357
|
+
} | [import("../../../balena-model.js").Device["Read"]];
|
358
|
+
}, "id"> & {
|
359
|
+
readonly service: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
360
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
361
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
362
|
+
application: {
|
363
|
+
__id: Application["Read"]["id"];
|
364
|
+
} | [Application["Read"]];
|
365
|
+
service_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
366
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
367
|
+
application__has__service_name__has__label_name?: Array<import("../../../balena-model.js").ServiceLabel["Read"]>;
|
368
|
+
service__has__label_name?: Array<import("../../../balena-model.js").ServiceLabel["Read"]>;
|
369
|
+
service_label?: Array<import("../../../balena-model.js").ServiceLabel["Read"]>;
|
370
|
+
application__has__service_name__has__name?: Array<import("../../../balena-model.js").ServiceEnvironmentVariable["Read"]>;
|
371
|
+
service__has__name?: Array<import("../../../balena-model.js").ServiceEnvironmentVariable["Read"]>;
|
372
|
+
service_environment_variable?: Array<import("../../../balena-model.js").ServiceEnvironmentVariable["Read"]>;
|
373
|
+
device__installs__application__has__service_name?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
374
|
+
device__installs__service?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
375
|
+
service_install?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
376
|
+
is_installed_on__device?: Array<import("../../../balena-model.js").ServiceInstall["Read"]>;
|
377
|
+
is_built_by__image?: Array<import("../../../balena-model.js").Image["Read"]>;
|
378
|
+
}, "id" | "service_name"> & {
|
379
|
+
readonly service_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
380
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
381
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
382
|
+
service: {
|
383
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
384
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
385
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
386
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
387
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
388
|
+
application__has__service_name: {
|
389
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
390
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
391
|
+
}, "name" | "value">[];
|
392
|
+
readonly service_label: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
393
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
394
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
395
|
+
service: {
|
396
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
397
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
398
|
+
label_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
399
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
400
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
401
|
+
application__has__service_name: {
|
402
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
403
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
404
|
+
}, "value" | "label_name">[];
|
405
|
+
})[];
|
406
|
+
readonly device_service_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
407
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
408
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
409
|
+
service_install: {
|
410
|
+
__id: import("../../../balena-model.js").ServiceInstall["Read"]["id"];
|
411
|
+
} | [import("../../../balena-model.js").ServiceInstall["Read"]];
|
412
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
413
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
414
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
415
|
+
device__installs__application__has__service_name: {
|
416
|
+
__id: import("../../../balena-model.js").ServiceInstall["Read"]["id"];
|
417
|
+
} | [import("../../../balena-model.js").ServiceInstall["Read"]];
|
418
|
+
device__installs__service: {
|
419
|
+
__id: import("../../../balena-model.js").ServiceInstall["Read"]["id"];
|
420
|
+
} | [import("../../../balena-model.js").ServiceInstall["Read"]];
|
421
|
+
}, "name" | "value">[];
|
422
|
+
})[];
|
423
|
+
readonly belongs_to__application: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
424
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
425
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
426
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
427
|
+
actor: {
|
428
|
+
__id: import("../../../balena-model.js").Actor["Read"]["id"];
|
429
|
+
} | [import("../../../balena-model.js").Actor["Read"]];
|
430
|
+
should_track_latest_release: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
431
|
+
is_of__class: "fleet" | "block" | "app";
|
432
|
+
organization: {
|
433
|
+
__id: import("../../../balena-model.js").Organization["Read"]["id"];
|
434
|
+
} | [import("../../../balena-model.js").Organization["Read"]];
|
435
|
+
app_name: import("@balena/sbvr-types").Types["Text"]["Read"];
|
436
|
+
slug: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
437
|
+
is_for__device_type: {
|
438
|
+
__id: import("../../../balena-model.js").DeviceType["Read"]["id"];
|
439
|
+
} | [import("../../../balena-model.js").DeviceType["Read"]];
|
440
|
+
should_be_running__release: {
|
441
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
442
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
443
|
+
application_type: {
|
444
|
+
__id: import("../../../balena-model.js").ApplicationType["Read"]["id"];
|
445
|
+
} | [import("../../../balena-model.js").ApplicationType["Read"]];
|
446
|
+
is_host: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
447
|
+
is_archived: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
448
|
+
uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
|
449
|
+
is_public: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
450
|
+
application__has__env_var_name?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
451
|
+
application_environment_variable?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
452
|
+
application__has__config_var_name?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
453
|
+
application_config_variable?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
454
|
+
application__has__service_name?: Array<import("../../../balena-model.js").Service["Read"]>;
|
455
|
+
service?: Array<import("../../../balena-model.js").Service["Read"]>;
|
456
|
+
application__has__tag_key?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
457
|
+
application_tag?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
458
|
+
owns__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
459
|
+
owns__release?: Array<import("../../../balena-model.js").Release["Read"]>;
|
460
|
+
is_directly_accessible_by__user?: Array<import("../../../balena-model.js").UserHasDirectAccessToApplication["Read"]>;
|
461
|
+
}, "id" | "is_of__class" | "app_name" | "uuid" | "is_host"> & {
|
462
|
+
readonly application_config_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
463
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
464
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
465
|
+
application: {
|
466
|
+
__id: Application["Read"]["id"];
|
467
|
+
} | [Application["Read"]];
|
468
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
469
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
470
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
471
|
+
}, "name" | "value">[];
|
472
|
+
readonly application_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
473
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
474
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
475
|
+
application: {
|
476
|
+
__id: Application["Read"]["id"];
|
477
|
+
} | [Application["Read"]];
|
478
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
479
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
480
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
481
|
+
}, "name" | "value">[];
|
482
|
+
})[];
|
483
|
+
readonly should_be_managed_by__release: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
484
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
485
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
486
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
487
|
+
belongs_to__application: {
|
488
|
+
__id: Application["Read"]["id"];
|
489
|
+
} | [Application["Read"]];
|
490
|
+
commit: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
491
|
+
composition: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
492
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
493
|
+
source: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
494
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
495
|
+
is_invalidated: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
496
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
497
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
498
|
+
update_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
499
|
+
release_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
500
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
501
|
+
is_passing_tests: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
502
|
+
is_finalized_at__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
503
|
+
phase: "next" | "current" | "sunset" | "end-of-life" | null;
|
504
|
+
semver_major: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
505
|
+
semver_minor: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
506
|
+
semver_patch: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
507
|
+
semver_prerelease: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
508
|
+
semver_build: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
509
|
+
variant: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
510
|
+
revision: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
511
|
+
known_issue_list: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
512
|
+
note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
513
|
+
invalidation_reason: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
514
|
+
is_final: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
515
|
+
semver: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
516
|
+
raw_version: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
517
|
+
version: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
518
|
+
release__has__tag_key?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
519
|
+
release_tag?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
520
|
+
release__has__asset_key?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
521
|
+
release_asset?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
522
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
523
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
524
|
+
contains__image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
525
|
+
should_be_running_on__application?: Array<Application["Read"]>;
|
526
|
+
should_be_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
527
|
+
is_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
528
|
+
is_pinned_to__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
529
|
+
should_operate__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
530
|
+
should_manage__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
531
|
+
provides__device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
532
|
+
provides__image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
533
|
+
}, "id" | "commit" | "composition"> & {
|
534
|
+
readonly belongs_to__application: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
535
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
536
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
537
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
538
|
+
actor: {
|
539
|
+
__id: import("../../../balena-model.js").Actor["Read"]["id"];
|
540
|
+
} | [import("../../../balena-model.js").Actor["Read"]];
|
541
|
+
should_track_latest_release: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
542
|
+
is_of__class: "fleet" | "block" | "app";
|
543
|
+
organization: {
|
544
|
+
__id: import("../../../balena-model.js").Organization["Read"]["id"];
|
545
|
+
} | [import("../../../balena-model.js").Organization["Read"]];
|
546
|
+
app_name: import("@balena/sbvr-types").Types["Text"]["Read"];
|
547
|
+
slug: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
548
|
+
is_for__device_type: {
|
549
|
+
__id: import("../../../balena-model.js").DeviceType["Read"]["id"];
|
550
|
+
} | [import("../../../balena-model.js").DeviceType["Read"]];
|
551
|
+
should_be_running__release: {
|
552
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
553
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
554
|
+
application_type: {
|
555
|
+
__id: import("../../../balena-model.js").ApplicationType["Read"]["id"];
|
556
|
+
} | [import("../../../balena-model.js").ApplicationType["Read"]];
|
557
|
+
is_host: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
558
|
+
is_archived: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
559
|
+
uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
|
560
|
+
is_public: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
561
|
+
application__has__env_var_name?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
562
|
+
application_environment_variable?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
563
|
+
application__has__config_var_name?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
564
|
+
application_config_variable?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
565
|
+
application__has__service_name?: Array<import("../../../balena-model.js").Service["Read"]>;
|
566
|
+
service?: Array<import("../../../balena-model.js").Service["Read"]>;
|
567
|
+
application__has__tag_key?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
568
|
+
application_tag?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
569
|
+
owns__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
570
|
+
owns__release?: Array<import("../../../balena-model.js").Release["Read"]>;
|
571
|
+
is_directly_accessible_by__user?: Array<import("../../../balena-model.js").UserHasDirectAccessToApplication["Read"]>;
|
572
|
+
}, "id" | "is_of__class" | "app_name" | "uuid" | "is_host"> & {
|
573
|
+
readonly application_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
574
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
575
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
576
|
+
application: {
|
577
|
+
__id: Application["Read"]["id"];
|
578
|
+
} | [Application["Read"]];
|
579
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
580
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
581
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
582
|
+
}, "name" | "value">[];
|
583
|
+
})[];
|
584
|
+
readonly contains__image: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
585
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
586
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
587
|
+
image: {
|
588
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
589
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
590
|
+
is_part_of__release: {
|
591
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
592
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
593
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
594
|
+
image__is_part_of__release__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
595
|
+
release_image__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
596
|
+
image_label?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
597
|
+
image__is_part_of__release__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
598
|
+
release_image__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
599
|
+
image_environment_variable?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
600
|
+
release: {
|
601
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
602
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
603
|
+
contains__image: {
|
604
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
605
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
606
|
+
}, "id"> & {
|
607
|
+
readonly image: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
608
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
609
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
610
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
611
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
612
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
613
|
+
dockerfile: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
614
|
+
is_a_build_of__service: {
|
615
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
616
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
617
|
+
image_size: import("@balena/sbvr-types").Types["Big Integer"]["Read"] | null;
|
618
|
+
is_stored_at__image_location: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
619
|
+
project_type: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
620
|
+
error_message: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
621
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
622
|
+
push_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
623
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
624
|
+
content_hash: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
625
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
626
|
+
device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
627
|
+
image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
628
|
+
is_installed_on__device?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
629
|
+
is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
630
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
631
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
632
|
+
is_a_build_of__application__has__service_name: {
|
633
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
634
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
635
|
+
}, "id" | "contract" | "is_a_build_of__service" | "is_stored_at__image_location" | "content_hash">[];
|
636
|
+
readonly image_label: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
637
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
638
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
639
|
+
release_image: {
|
640
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
641
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
642
|
+
label_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
643
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
644
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
645
|
+
image__is_part_of__release: {
|
646
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
647
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
648
|
+
}, "value" | "label_name">[];
|
649
|
+
readonly image_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
650
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
651
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
652
|
+
release_image: {
|
653
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
654
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
655
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
656
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
657
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
658
|
+
image__is_part_of__release: {
|
659
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
660
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
661
|
+
}, "name" | "value">[];
|
662
|
+
})[];
|
663
|
+
})[];
|
664
|
+
readonly should_be_operated_by__release: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
665
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
666
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
667
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
668
|
+
belongs_to__application: {
|
669
|
+
__id: Application["Read"]["id"];
|
670
|
+
} | [Application["Read"]];
|
671
|
+
commit: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
672
|
+
composition: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
673
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
674
|
+
source: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
675
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
676
|
+
is_invalidated: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
677
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
678
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
679
|
+
update_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
680
|
+
release_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
681
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
682
|
+
is_passing_tests: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
683
|
+
is_finalized_at__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
684
|
+
phase: "next" | "current" | "sunset" | "end-of-life" | null;
|
685
|
+
semver_major: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
686
|
+
semver_minor: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
687
|
+
semver_patch: import("@balena/sbvr-types").Types["Integer"]["Read"];
|
688
|
+
semver_prerelease: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
689
|
+
semver_build: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
690
|
+
variant: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
691
|
+
revision: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
|
692
|
+
known_issue_list: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
693
|
+
note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
694
|
+
invalidation_reason: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
695
|
+
is_final: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
696
|
+
semver: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
697
|
+
raw_version: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
698
|
+
version: import("@balena/sbvr-types").Types["JSON"]["Read"];
|
699
|
+
release__has__tag_key?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
700
|
+
release_tag?: Array<import("../../../balena-model.js").ReleaseTag["Read"]>;
|
701
|
+
release__has__asset_key?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
702
|
+
release_asset?: Array<import("../../../balena-model.js").ReleaseAsset["Read"]>;
|
703
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
704
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
705
|
+
contains__image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
706
|
+
should_be_running_on__application?: Array<Application["Read"]>;
|
707
|
+
should_be_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
708
|
+
is_running_on__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
709
|
+
is_pinned_to__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
710
|
+
should_operate__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
711
|
+
should_manage__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
712
|
+
provides__device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
713
|
+
provides__image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
714
|
+
}, "id" | "commit" | "composition"> & {
|
715
|
+
readonly belongs_to__application: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
716
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
717
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
718
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
719
|
+
actor: {
|
720
|
+
__id: import("../../../balena-model.js").Actor["Read"]["id"];
|
721
|
+
} | [import("../../../balena-model.js").Actor["Read"]];
|
722
|
+
should_track_latest_release: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
723
|
+
is_of__class: "fleet" | "block" | "app";
|
724
|
+
organization: {
|
725
|
+
__id: import("../../../balena-model.js").Organization["Read"]["id"];
|
726
|
+
} | [import("../../../balena-model.js").Organization["Read"]];
|
727
|
+
app_name: import("@balena/sbvr-types").Types["Text"]["Read"];
|
728
|
+
slug: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
729
|
+
is_for__device_type: {
|
730
|
+
__id: import("../../../balena-model.js").DeviceType["Read"]["id"];
|
731
|
+
} | [import("../../../balena-model.js").DeviceType["Read"]];
|
732
|
+
should_be_running__release: {
|
733
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
734
|
+
} | [import("../../../balena-model.js").Release["Read"]] | [] | null;
|
735
|
+
application_type: {
|
736
|
+
__id: import("../../../balena-model.js").ApplicationType["Read"]["id"];
|
737
|
+
} | [import("../../../balena-model.js").ApplicationType["Read"]];
|
738
|
+
is_host: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
739
|
+
is_archived: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
740
|
+
uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
|
741
|
+
is_public: import("@balena/sbvr-types").Types["Boolean"]["Read"];
|
742
|
+
application__has__env_var_name?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
743
|
+
application_environment_variable?: Array<import("../../../balena-model.js").ApplicationEnvironmentVariable["Read"]>;
|
744
|
+
application__has__config_var_name?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
745
|
+
application_config_variable?: Array<import("../../../balena-model.js").ApplicationConfigVariable["Read"]>;
|
746
|
+
application__has__service_name?: Array<import("../../../balena-model.js").Service["Read"]>;
|
747
|
+
service?: Array<import("../../../balena-model.js").Service["Read"]>;
|
748
|
+
application__has__tag_key?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
749
|
+
application_tag?: Array<import("../../../balena-model.js").ApplicationTag["Read"]>;
|
750
|
+
owns__device?: Array<import("../../../balena-model.js").Device["Read"]>;
|
751
|
+
owns__release?: Array<import("../../../balena-model.js").Release["Read"]>;
|
752
|
+
is_directly_accessible_by__user?: Array<import("../../../balena-model.js").UserHasDirectAccessToApplication["Read"]>;
|
753
|
+
}, "id" | "is_of__class" | "app_name" | "uuid" | "is_host"> & {
|
754
|
+
readonly application_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
755
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
756
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
757
|
+
application: {
|
758
|
+
__id: Application["Read"]["id"];
|
759
|
+
} | [Application["Read"]];
|
760
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
761
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
762
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
763
|
+
}, "name" | "value">[];
|
764
|
+
})[];
|
765
|
+
readonly contains__image: (import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
766
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
767
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
768
|
+
image: {
|
769
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
770
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
771
|
+
is_part_of__release: {
|
772
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
773
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
774
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
775
|
+
image__is_part_of__release__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
776
|
+
release_image__has__label_name?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
777
|
+
image_label?: Array<import("../../../balena-model.js").ImageLabel["Read"]>;
|
778
|
+
image__is_part_of__release__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
779
|
+
release_image__has__name?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
780
|
+
image_environment_variable?: Array<import("../../../balena-model.js").ImageEnvironmentVariable["Read"]>;
|
781
|
+
release: {
|
782
|
+
__id: import("../../../balena-model.js").Release["Read"]["id"];
|
783
|
+
} | [import("../../../balena-model.js").Release["Read"]];
|
784
|
+
contains__image: {
|
785
|
+
__id: import("../../../balena-model.js").Image["Read"]["id"];
|
786
|
+
} | [import("../../../balena-model.js").Image["Read"]];
|
787
|
+
}, "id"> & {
|
788
|
+
readonly image: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
789
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
790
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
791
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
792
|
+
start_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
793
|
+
end_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
794
|
+
dockerfile: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
795
|
+
is_a_build_of__service: {
|
796
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
797
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
798
|
+
image_size: import("@balena/sbvr-types").Types["Big Integer"]["Read"] | null;
|
799
|
+
is_stored_at__image_location: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
800
|
+
project_type: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
801
|
+
error_message: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
802
|
+
build_log: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
|
803
|
+
push_timestamp: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
|
804
|
+
status: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
805
|
+
content_hash: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
|
806
|
+
contract: import("@balena/sbvr-types").Types["JSON"]["Read"] | null;
|
807
|
+
device__installs__image?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
808
|
+
image_install?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
809
|
+
is_installed_on__device?: Array<import("../../../balena-model.js").ImageInstall["Read"]>;
|
810
|
+
is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
811
|
+
image__is_part_of__release?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
812
|
+
release_image?: Array<import("../../../balena-model.js").ImageIsPartOfRelease["Read"]>;
|
813
|
+
is_a_build_of__application__has__service_name: {
|
814
|
+
__id: import("../../../balena-model.js").Service["Read"]["id"];
|
815
|
+
} | [import("../../../balena-model.js").Service["Read"]];
|
816
|
+
}, "id" | "contract" | "is_a_build_of__service" | "is_stored_at__image_location" | "content_hash">[];
|
817
|
+
readonly image_label: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
818
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
819
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
820
|
+
release_image: {
|
821
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
822
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
823
|
+
label_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
824
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
825
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
826
|
+
image__is_part_of__release: {
|
827
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
828
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
829
|
+
}, "value" | "label_name">[];
|
830
|
+
readonly image_environment_variable: import("@balena/abstract-sql-to-typescript").PickDeferred<{
|
831
|
+
created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
832
|
+
modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
|
833
|
+
release_image: {
|
834
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
835
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
836
|
+
name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
|
837
|
+
id: import("@balena/sbvr-types").Types["Serial"]["Read"];
|
838
|
+
value: import("@balena/sbvr-types").Types["Text"]["Read"];
|
839
|
+
image__is_part_of__release: {
|
840
|
+
__id: import("../../../balena-model.js").ImageIsPartOfRelease["Read"]["id"];
|
841
|
+
} | [import("../../../balena-model.js").ImageIsPartOfRelease["Read"]];
|
842
|
+
}, "name" | "value">[];
|
843
|
+
})[];
|
844
|
+
})[];
|
845
|
+
}>;
|
79
846
|
export {};
|
@@ -25,11 +25,11 @@ export function buildAppFromRelease(device, application, release, config, defaul
|
|
25
25
|
const image = ipr.image[0];
|
26
26
|
const si = serviceInstallFromImage(device ?? application, image);
|
27
27
|
if (si == null) {
|
28
|
-
throw new Error(`Could not find service install for device or application: '${application.uuid}', image: '${image?.id}', service: '${JSON.stringify(image?.is_a_build_of__service)}', service: '${device
|
28
|
+
throw new Error(`Could not find service install for device or application: '${application.uuid}', image: '${image?.id}', service: '${JSON.stringify(image?.is_a_build_of__service)}', service: '${device != null
|
29
29
|
? JSON.stringify(device.service_install)
|
30
30
|
: JSON.stringify(application.service)}'`);
|
31
31
|
}
|
32
|
-
const svc = si.service
|
32
|
+
const svc = 'service' in si ? si.service[0] : si;
|
33
33
|
const environment = {};
|
34
34
|
varListInsert(ipr.image_environment_variable, environment);
|
35
35
|
varListInsert(application.application_environment_variable, environment);
|
@@ -37,7 +37,7 @@ export function buildAppFromRelease(device, application, release, config, defaul
|
|
37
37
|
if (device?.device_environment_variable) {
|
38
38
|
varListInsert(device.device_environment_variable, environment);
|
39
39
|
}
|
40
|
-
if (si
|
40
|
+
if ('device_service_environment_variable' in si) {
|
41
41
|
varListInsert(si.device_service_environment_variable, environment);
|
42
42
|
}
|
43
43
|
const labels = {
|
@@ -111,6 +111,13 @@ export const releaseExpand = {
|
|
111
111
|
},
|
112
112
|
},
|
113
113
|
};
|
114
|
+
const appSelect = [
|
115
|
+
'id',
|
116
|
+
'uuid',
|
117
|
+
'app_name',
|
118
|
+
'is_host',
|
119
|
+
'is_of__class',
|
120
|
+
];
|
114
121
|
const appExpand = {
|
115
122
|
application_environment_variable: {
|
116
123
|
$select: ['name', 'value'],
|
@@ -145,7 +152,7 @@ const deviceExpand = {
|
|
145
152
|
},
|
146
153
|
},
|
147
154
|
belongs_to__application: {
|
148
|
-
$select:
|
155
|
+
$select: appSelect,
|
149
156
|
$expand: {
|
150
157
|
...appExpand,
|
151
158
|
application_config_variable: {
|
@@ -158,7 +165,7 @@ const deviceExpand = {
|
|
158
165
|
$expand: {
|
159
166
|
...releaseExpand.$expand,
|
160
167
|
belongs_to__application: {
|
161
|
-
$select:
|
168
|
+
$select: appSelect,
|
162
169
|
$expand: appExpand,
|
163
170
|
},
|
164
171
|
},
|
@@ -168,7 +175,7 @@ const deviceExpand = {
|
|
168
175
|
$expand: {
|
169
176
|
...releaseExpand.$expand,
|
170
177
|
belongs_to__application: {
|
171
|
-
$select:
|
178
|
+
$select: appSelect,
|
172
179
|
$expand: appExpand,
|
173
180
|
},
|
174
181
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v3.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,yBAAyB,EACzB,mBAAmB,EACnB,SAAS,EACT,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,uBAAuB,EACvB,aAAa,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
1
|
+
{"version":3,"file":"state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v3.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ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AM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;QACb,CAAC;QACD,WAAW,GACV,OAGA,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACN,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACnB,EAAE,EAAE,WAAW,CAAC,EAAE;YAClB,IAAI,EAAE,WAAW,CAAC,QAAQ;YAC1B,OAAO,EAAE,WAAW,CAAC,OAAO;YAC5B,KAAK,EAAE,WAAW,CAAC,YAAY;YAC/B,GAAG,CAAC,OAAO,IAAI,IAAI,IAAI;gBACtB,QAAQ,EAAE,mBAAmB,CAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,MAAM,EACN,aAAa,CACb;aACD,CAAC;SACF;KACD,CAAC;AACH,CAAC,CAAC"}
|
@@ -39,6 +39,15 @@ export declare function serviceInstallFromImage(deviceOrFleet: {
|
|
39
39
|
__id: number;
|
40
40
|
};
|
41
41
|
}): ExpandedService | undefined;
|
42
|
+
export declare function serviceInstallFromImage(deviceOrFleet: {
|
43
|
+
service_install: ExpandedServiceInstall[];
|
44
|
+
} | {
|
45
|
+
service: ExpandedService[];
|
46
|
+
}, image?: {
|
47
|
+
is_a_build_of__service: number | {
|
48
|
+
__id: number;
|
49
|
+
};
|
50
|
+
}): ExpandedServiceInstall | ExpandedService | undefined;
|
42
51
|
/** @deprecated Use the strongly-typed overloads with `{ service_install }` or `{ service }` instead */
|
43
52
|
export declare function serviceInstallFromImage(deviceOrFleet: AnyObject, image?: AnyObject): undefined | AnyObject;
|
44
53
|
export declare const formatImageLocation: (imageLocation: string) => string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state-get-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-get-utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAA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Z,aAAa,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IACtE,CAAC;IAED,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC3B,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAElC,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"state-get-utils.js","sourceRoot":"","sources":["../../../src/features/device-state/state-get-utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAGvB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACN,gCAAgC,EAChC,oCAAoC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,qBAAqB,EACrB,uBAAuB,GACvB,MAAM,4BAA4B,CAAC;AAGpC,MAAM,CAAC,MAAM,6BAA6B,GAEtC,EAAE,CAAC;AAEP,MAAM,wBAAwB,GAAgD;IAC7E,SAAS,kBAAkB,CAAC,MAAM;QACjC,MAAM,YAAY,GACjB,MAAM,CAAC,8BAA8B,IAAI,IAAI;YAC5C,CAAC,CAAC,CAAC;YACH,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;QACxD,sEAAsE;QACtE,MAAM,CAAC,8BAA8B;YACpC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,gCAAgC,CAAC,CAAC;IAChE,CAAC;CACD,CAAC;AACF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,EAA6C,EAC5C,EAAE;IACH,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAQ,EAAE;IAC7E,KAAK,MAAM,EAAE,IAAI,wBAAwB,EAAE,CAAC;QAC3C,EAAE,CAAC,MAAM,CAAC,CAAC;IACZ,CAAC;A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api",
|
3
3
|
"description": "Internet of things, Made Simple",
|
4
|
-
"version": "28.0.
|
4
|
+
"version": "28.0.13-build-improve-typings-state-get-v3-5073c7cd98742632e713b69205a28fcdfda0b11c-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-09-
|
171
|
+
"publishedAt": "2024-09-30T13:20:46.301Z"
|
172
172
|
}
|
173
173
|
}
|