@balena/open-balena-api 28.0.12-build-renovate-major-5-chai-d6dc0e320ea2053faebff644859f1d3ba40d54e7-1 → 29.0.0-build-reduce-service-install-usage-state-get-v3-dffb71831319078035c195985db399535c4be46e-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 +60 -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 +879 -2
- package/dist/features/device-state/routes/state-get-v3.js +27 -19
- package/dist/features/device-state/routes/state-get-v3.js.map +1 -1
- package/dist/features/device-state/state-get-utils.d.ts +19 -24
- package/dist/features/device-state/state-get-utils.js +2 -9
- package/dist/features/device-state/state-get-utils.js.map +1 -1
- package/package.json +3 -3
@@ -1,2 +1,62 @@
|
|
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", "contract"];
|
19
|
+
readonly $expand: {
|
20
|
+
readonly is_a_build_of__service: {
|
21
|
+
readonly $select: readonly ["id", "service_name"];
|
22
|
+
readonly $expand: {
|
23
|
+
readonly service_environment_variable: {
|
24
|
+
readonly $select: readonly ["name", "value"];
|
25
|
+
};
|
26
|
+
readonly service_label: {
|
27
|
+
readonly $select: readonly ["label_name", "value"];
|
28
|
+
};
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
readonly image_label: {
|
34
|
+
readonly $select: readonly ["label_name", "value"];
|
35
|
+
};
|
36
|
+
readonly image_environment_variable: {
|
37
|
+
readonly $select: readonly ["name", "value"];
|
38
|
+
};
|
39
|
+
};
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
readonly service: {
|
44
|
+
readonly $select: readonly ["id", "service_name"];
|
45
|
+
readonly $expand: {
|
46
|
+
readonly service_environment_variable: {
|
47
|
+
readonly $select: readonly ["name", "value"];
|
48
|
+
};
|
49
|
+
readonly service_label: {
|
50
|
+
readonly $select: readonly ["label_name", "value"];
|
51
|
+
};
|
52
|
+
readonly is_built_by__image: {
|
53
|
+
readonly $select: readonly ["id", "is_stored_at__image_location"];
|
54
|
+
};
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
export type ExpandedApplicationWithService = OptionsToResponse<Application['Read'], {
|
59
|
+
$expand: typeof fleetExpand;
|
60
|
+
}, undefined>[number];
|
2
61
|
export declare const fleetStateV3: RequestHandler;
|
62
|
+
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,CA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