@balena/open-balena-api 26.4.1-build-v6-number-image-image-size--37c17e68c372882480223b13c497aedd91e6a65b-1 → 26.4.1-build-drop-toResource-version-suffix-d9e62d809aa9221cbdd2fe159bd986eb2aa18a5c-1
Sign up to get free protection for your applications and to get access to all the features.
@@ -83,7 +83,7 @@ export declare const checkDeviceExistsIsFrozen: import("../../infra/cache/multi-
|
|
83
83
|
installs__image?: Array<import("../../balena-model.js").ImageInstall["Read"]>;
|
84
84
|
installs__application__has__service_name?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
85
85
|
installs__service?: Array<import("../../balena-model.js").ServiceInstall["Read"]>;
|
86
|
-
}, "id" | "is_frozen"
|
86
|
+
}, "id" | "is_frozen"> | undefined>>>;
|
87
87
|
export interface ResolveDeviceInfoCustomObject {
|
88
88
|
resolvedDeviceIds: Array<Device['Read']['id']>;
|
89
89
|
}
|
package/dist/index.d.ts
CHANGED
@@ -214,9 +214,6 @@ export declare const translations: {
|
|
214
214
|
release: {
|
215
215
|
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$v7"], "release"]]];
|
216
216
|
};
|
217
|
-
image: {
|
218
|
-
'image size': ["Cast", ["ReferencedField", "image", string], string];
|
219
|
-
};
|
220
217
|
'image-is downloaded by-device': {
|
221
218
|
$toResource: string;
|
222
219
|
abstractSql: ["SelectQuery", ["Select", [["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Date"], "created at"], ["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Short Text"], string], ["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Integer"], string]]], ["Where", ["Boolean", false]]];
|
@@ -24,9 +24,6 @@ export declare const getV6Translations: (abstractSqlModel?: import("@balena/abst
|
|
24
24
|
release: {
|
25
25
|
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$v7"], "release"]]];
|
26
26
|
};
|
27
|
-
image: {
|
28
|
-
'image size': ["Cast", ["ReferencedField", "image", string], string];
|
29
|
-
};
|
30
27
|
'image-is downloaded by-device': {
|
31
28
|
$toResource: string;
|
32
29
|
abstractSql: ["SelectQuery", ["Select", [["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Date"], "created at"], ["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Short Text"], string], ["Alias", ["Cast", ["Null"], "Integer"], string], ["Alias", ["Cast", ["Null"], "Integer"], string]]], ["Where", ["Boolean", false]]];
|
@@ -17,7 +17,7 @@ export const getV6Translations = (abstractSqlModel = v6AbstractSqlModel) => {
|
|
17
17
|
const deviceFieldSet = new Set(abstractSqlModel.tables['device'].fields.map((f) => f.fieldName));
|
18
18
|
return {
|
19
19
|
'my application': {
|
20
|
-
$toResource: `application
|
20
|
+
$toResource: `application`,
|
21
21
|
abstractSql: [
|
22
22
|
'SelectQuery',
|
23
23
|
[
|
@@ -69,18 +69,10 @@ export const getV6Translations = (abstractSqlModel = v6AbstractSqlModel) => {
|
|
69
69
|
'depends on-application': ['Cast', ['Null'], 'Integer'],
|
70
70
|
},
|
71
71
|
'application-has-name': {
|
72
|
-
|
73
|
-
// TypeError: Cannot read properties of undefined (reading 'idField')
|
74
|
-
// TODO: Try removing or switching `$resin` to `$${toVersion}` after v gets fixed
|
75
|
-
// See: https://github.com/balena-io/pinejs/issues/794
|
76
|
-
$toResource: `application-has-config var name$resin`,
|
72
|
+
$toResource: `application-has-config var name`,
|
77
73
|
},
|
78
74
|
'device-has-name': {
|
79
|
-
|
80
|
-
// TypeError: Cannot read properties of undefined (reading 'idField')
|
81
|
-
// TODO: Try removing or switching `$resin` to `$${toVersion}` after v gets fixed
|
82
|
-
// See: https://github.com/balena-io/pinejs/issues/794
|
83
|
-
$toResource: `device-has-config var name$resin`,
|
75
|
+
$toResource: `device-has-config var name`,
|
84
76
|
},
|
85
77
|
device: {
|
86
78
|
'is managed by-device': ['Cast', ['Null'], 'Integer'],
|
@@ -200,22 +192,11 @@ export const getV6Translations = (abstractSqlModel = v6AbstractSqlModel) => {
|
|
200
192
|
['From', ['Alias', ['Resource', `release$${toVersion}`], 'release']],
|
201
193
|
],
|
202
194
|
},
|
203
|
-
image: {
|
204
|
-
'image size': [
|
205
|
-
// Ideally we would cast this to an Integer, so that `pg` returns a JS number instead of a string,
|
206
|
-
// but we can't do that since Posgtresql would fail on runtime while doing the case if it detects
|
207
|
-
// that the value is above Int4.
|
208
|
-
// As a hack we cast it to Real, so that `pg` parses it as a JS number.
|
209
|
-
'Cast',
|
210
|
-
['ReferencedField', 'image', 'image size'],
|
211
|
-
'Real',
|
212
|
-
],
|
213
|
-
},
|
214
195
|
'image-is downloaded by-device': {
|
215
196
|
// TODO-HACK: This redirects to the device resource as a hack because we can't redirect to no resource,
|
216
197
|
// but the redirect is only used for modification events and we have no allowlist entries for gateway_download
|
217
198
|
// writes so it should be blocked anyway
|
218
|
-
$toResource: `device
|
199
|
+
$toResource: `device`,
|
219
200
|
abstractSql: [
|
220
201
|
'SelectQuery',
|
221
202
|
[
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"v6.js","sourceRoot":"","sources":["../../../src/translations/v6/v6.ts"],"names":[],"mappings":"AACA,OAAO,EACN,WAAW,EACX,UAAU,EACV,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,gCAAgC,MAAM,+EAA+E,CAAC;AAClI,OAAO,KAAK,eAAe,MAAM,mDAAmD,CAAC;AAErF,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;AAE9B,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAwB,CACzD,IAAI,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CACnC,CAAC;AAEF,UAAU,CAAC,k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CAAC,EAAE,SAAS,CAAC,EAAE,yBAAyB,CAAC;wBACnE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,QAAQ,CAAC;wBACrD,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,mBAAmB,CAAC;wBAC7D,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC;qBACjD;iBACD;gBACD,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;aAC7B;SACD;KAC4C,CAAC;AAChD,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": "26.4.1-build-
|
4
|
+
"version": "26.4.1-build-drop-toResource-version-suffix-d9e62d809aa9221cbdd2fe159bd986eb2aa18a5c-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"@balena/env-parsing": "^1.1.12",
|
50
50
|
"@balena/es-version": "^1.0.3",
|
51
51
|
"@balena/node-metrics-gatherer": "^6.0.3",
|
52
|
-
"@balena/pinejs": "^18.
|
52
|
+
"@balena/pinejs": "^18.2.1",
|
53
53
|
"@balena/pinejs-webresource-cloudfront": "^0.1.0",
|
54
54
|
"@sentry/node": "^8.18.0",
|
55
55
|
"@types/basic-auth": "^1.1.8",
|
@@ -168,6 +168,6 @@
|
|
168
168
|
"loader": "ts-node/esm/transpile-only"
|
169
169
|
},
|
170
170
|
"versionist": {
|
171
|
-
"publishedAt": "2024-08-
|
171
|
+
"publishedAt": "2024-08-30T15:52:40.010Z"
|
172
172
|
}
|
173
173
|
}
|