@balena/open-balena-api 26.3.3-build-renovate-balena-open-balena-base-18-0-x-7e48e3de75364c0410dc6f84981d6d003082ea62-1 → 26.4.0-build-v7-a51f656adca7a764ddda4caa26b14f1dafd87b60-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +1 -0
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/translations/v6/v6.d.ts +4 -4
- package/dist/translations/v6/v6.js +11 -3
- package/dist/translations/v6/v6.js.map +1 -1
- package/dist/translations/v7/hooks.d.ts +1 -0
- package/dist/translations/v7/hooks.js +2 -0
- package/dist/translations/v7/hooks.js.map +1 -0
- package/dist/translations/v7/v7.d.ts +3 -0
- package/dist/translations/v7/v7.js +12 -0
- package/dist/translations/v7/v7.js.map +1 -0
- package/dist/translations/v7/v7.sbvr +881 -0
- package/package.json +4 -3
package/dist/hooks.d.ts
CHANGED
package/dist/hooks.js
CHANGED
@@ -15,5 +15,6 @@ import './features/supervisor-app/hooks/index.js';
|
|
15
15
|
import './features/tags/hooks.js';
|
16
16
|
import './features/vars-schema/hooks/index.js';
|
17
17
|
import './features/vpn/hooks.js';
|
18
|
+
import './translations/v7/hooks.js';
|
18
19
|
import './translations/v6/hooks.js';
|
19
20
|
//# sourceMappingURL=hooks.js.map
|
package/dist/hooks.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,wCAAwC,CAAC;AAChD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+CAA+C,CAAC;AACvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,wCAAwC,CAAC;AAChD,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yCAAyC,CAAC;AACjD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,0CAA0C,CAAC;AAClD,OAAO,0BAA0B,CAAC;AAClC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC"}
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,wCAAwC,CAAC;AAChD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,iCAAiC,CAAC;AACzC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,mCAAmC,CAAC;AAC3C,OAAO,+CAA+C,CAAC;AACvD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,wCAAwC,CAAC;AAChD,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yCAAyC,CAAC;AACjD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,0CAA0C,CAAC;AAClD,OAAO,0BAA0B,CAAC;AAClC,OAAO,uCAAuC,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -185,11 +185,15 @@ export declare const envVarsConfig: {
|
|
185
185
|
}[];
|
186
186
|
};
|
187
187
|
export declare const translations: {
|
188
|
+
v7: {
|
189
|
+
getTranslations: (_abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {};
|
190
|
+
loadHooks: () => Promise<typeof import("./translations/v7/hooks.js")>;
|
191
|
+
};
|
188
192
|
v6: {
|
189
193
|
getTranslations: (abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {
|
190
194
|
'my application': {
|
191
195
|
$toResource: string;
|
192
|
-
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "application$
|
196
|
+
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "application$v7"], "application"]], ["Where", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "user-has direct access to-application$v7"], "user-has direct access to-application"]], ["Where", ["Equals", ["ReferencedField", "user-has direct access to-application", "has direct access to-application"], ["ReferencedField", "application", string]]]]]]];
|
193
197
|
};
|
194
198
|
application: {
|
195
199
|
'depends on-application': ["Cast", ["Null"], string];
|
@@ -205,10 +209,10 @@ export declare const translations: {
|
|
205
209
|
'logs channel': ["Cast", ["Null"], string];
|
206
210
|
'vpn address': ["Cast", ["Null"], string];
|
207
211
|
'should be running-release': string;
|
208
|
-
'overall status': ["Case", ["When", import("@balena/abstract-sql-compiler").BooleanTypeNodes, ["EmbeddedText", "inactive"]], ["When", import("@balena/abstract-sql-compiler").EqualsNode, ["EmbeddedText", "post-provisioning"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "configuring"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "offline"]], ["When", ["And", ["Exists", ["ReferencedField", "device", "download progress"]], ["Equals", ["ReferencedField", "device", "status"], ["EmbeddedText", "Downloading"]]], ["EmbeddedText", "updating"]], ["When", ["Exists", ["ReferencedField", "device", "provisioning progress"]], ["EmbeddedText", "configuring"]], ["When", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "device-installs-image$
|
212
|
+
'overall status': ["Case", ["When", import("@balena/abstract-sql-compiler").BooleanTypeNodes, ["EmbeddedText", "inactive"]], ["When", import("@balena/abstract-sql-compiler").EqualsNode, ["EmbeddedText", "post-provisioning"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "configuring"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "offline"]], ["When", ["And", ["Exists", ["ReferencedField", "device", "download progress"]], ["Equals", ["ReferencedField", "device", "status"], ["EmbeddedText", "Downloading"]]], ["EmbeddedText", "updating"]], ["When", ["Exists", ["ReferencedField", "device", "provisioning progress"]], ["EmbeddedText", "configuring"]], ["When", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "device-installs-image$v7$bypass"], "image install"]], ["Where", ["And", ["Equals", ["ReferencedField", "image install", "device"], ["ReferencedField", "device", string]], ["Exists", ["ReferencedField", "image install", "download progress"]], ["Equals", ["ReferencedField", "image install", "status"], ["EmbeddedText", "Downloading"]]]]]], ["EmbeddedText", "updating"]], ["Else", ["EmbeddedText", "idle"]]];
|
209
213
|
};
|
210
214
|
release: {
|
211
|
-
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$
|
215
|
+
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$v7"], "release"]]];
|
212
216
|
};
|
213
217
|
'image-is downloaded by-device': {
|
214
218
|
$toResource: string;
|
package/dist/index.js
CHANGED
@@ -53,6 +53,7 @@ import * as deviceAdditions from './features/devices/models/device-additions.js'
|
|
53
53
|
import { addToModel as addReleaseAdditionsToModel } from './features/ci-cd/models/release-additions.js';
|
54
54
|
import { model as balenaModel } from './balena.js';
|
55
55
|
import { getV6Translations } from './translations/v6/v6.js';
|
56
|
+
import { getV7Translations } from './translations/v7/v7.js';
|
56
57
|
export * as tags from './features/tags/validation.js';
|
57
58
|
export * as request from './infra/request-promise/index.js';
|
58
59
|
export * as redis from './infra/redis/index.js';
|
@@ -151,6 +152,10 @@ export const envVarsConfig = {
|
|
151
152
|
DEVICE_TYPE_SPECIFIC_CONFIG_VAR_PROPERTIES,
|
152
153
|
};
|
153
154
|
export const translations = {
|
155
|
+
v7: {
|
156
|
+
getTranslations: getV7Translations,
|
157
|
+
loadHooks: () => import('./translations/v7/hooks.js'),
|
158
|
+
},
|
154
159
|
v6: {
|
155
160
|
getTranslations: getV6Translations,
|
156
161
|
loadHooks: () => import('./translations/v6/hooks.js'),
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAG3C,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAO3C,OAAO,KAAK,GAAG,MAAM,8BAA8B,CAAC;AAEpD,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AAE1B,iCAAiC;AACjC,QAAQ,CAAC,GAAG,CACX,GAAG,CAAC,cAAc,CACjB,KAAK,EAAE,EAAU,EAAE,EAAE,CACpB,MAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;IACnB,QAAQ,EAAE,MAAM;IAChB,EAAE;IACF,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;IAC3C,OAAO,EAAE;QACR,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;KAChC;CACD,CAAC,CACH,CACD,CAAC;AAEF,OAAO,EACN,QAAQ,EACR,qBAAqB,EACrB,YAAY,EACZ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ACnD,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;IAC1B,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IAC/B,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;IAErE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAExB,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AACxC,CAAC;AAED,KAAK,UAAU,WAAW,CACzB,GAAgB,EAChB,IAAqB;IAErB,IAAI,MAAc,CAAC;IACnB,+CAA+C;IAC/C,mDAAmD;IACnD,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE;QAC9B,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IACH,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE;QAClC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,EAA8B,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAC1E,OAAO,MAAO,CAAC;AAChB,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export declare const toVersion = "
|
1
|
+
export declare const toVersion = "v7";
|
2
2
|
export declare const v6AbstractSqlModel: import("@balena/abstract-sql-compiler").AbstractSqlModel;
|
3
3
|
export declare const getV6Translations: (abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {
|
4
4
|
'my application': {
|
5
5
|
$toResource: string;
|
6
|
-
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "application$
|
6
|
+
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "application$v7"], "application"]], ["Where", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "user-has direct access to-application$v7"], "user-has direct access to-application"]], ["Where", ["Equals", ["ReferencedField", "user-has direct access to-application", "has direct access to-application"], ["ReferencedField", "application", string]]]]]]];
|
7
7
|
};
|
8
8
|
application: {
|
9
9
|
'depends on-application': ["Cast", ["Null"], string];
|
@@ -19,10 +19,10 @@ export declare const getV6Translations: (abstractSqlModel?: import("@balena/abst
|
|
19
19
|
'logs channel': ["Cast", ["Null"], string];
|
20
20
|
'vpn address': ["Cast", ["Null"], string];
|
21
21
|
'should be running-release': string;
|
22
|
-
'overall status': ["Case", ["When", import("@balena/abstract-sql-compiler").BooleanTypeNodes, ["EmbeddedText", "inactive"]], ["When", import("@balena/abstract-sql-compiler").EqualsNode, ["EmbeddedText", "post-provisioning"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "configuring"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "offline"]], ["When", ["And", ["Exists", ["ReferencedField", "device", "download progress"]], ["Equals", ["ReferencedField", "device", "status"], ["EmbeddedText", "Downloading"]]], ["EmbeddedText", "updating"]], ["When", ["Exists", ["ReferencedField", "device", "provisioning progress"]], ["EmbeddedText", "configuring"]], ["When", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "device-installs-image$
|
22
|
+
'overall status': ["Case", ["When", import("@balena/abstract-sql-compiler").BooleanTypeNodes, ["EmbeddedText", "inactive"]], ["When", import("@balena/abstract-sql-compiler").EqualsNode, ["EmbeddedText", "post-provisioning"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "configuring"]], ["When", import("@balena/abstract-sql-compiler").AndNode, ["EmbeddedText", "offline"]], ["When", ["And", ["Exists", ["ReferencedField", "device", "download progress"]], ["Equals", ["ReferencedField", "device", "status"], ["EmbeddedText", "Downloading"]]], ["EmbeddedText", "updating"]], ["When", ["Exists", ["ReferencedField", "device", "provisioning progress"]], ["EmbeddedText", "configuring"]], ["When", ["Exists", ["SelectQuery", ["Select", []], ["From", ["Alias", ["Resource", "device-installs-image$v7$bypass"], "image install"]], ["Where", ["And", ["Equals", ["ReferencedField", "image install", "device"], ["ReferencedField", "device", string]], ["Exists", ["ReferencedField", "image install", "download progress"]], ["Equals", ["ReferencedField", "image install", "status"], ["EmbeddedText", "Downloading"]]]]]], ["EmbeddedText", "updating"]], ["Else", ["EmbeddedText", "idle"]]];
|
23
23
|
};
|
24
24
|
release: {
|
25
|
-
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$
|
25
|
+
abstractSql: ["SelectQuery", ["Select", import("@balena/abstract-sql-compiler").AnyTypeNodes[]], ["From", ["Alias", ["Resource", "release$v7"], "release"]]];
|
26
26
|
};
|
27
27
|
'image-is downloaded by-device': {
|
28
28
|
$toResource: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { aliasFields, aliasTable, generateAbstractSqlModel, overrideFieldType, renameResourceField, } from '../../abstract-sql-utils.js';
|
2
2
|
import * as userHasDirectAccessToApplication from '../../features/applications/models/user__has_direct_access_to__application.js';
|
3
3
|
import * as DeviceAdditions from '../../features/devices/models/device-additions.js';
|
4
|
-
export const toVersion = '
|
4
|
+
export const toVersion = 'v7';
|
5
5
|
export const v6AbstractSqlModel = generateAbstractSqlModel(new URL('v6.sbvr', import.meta.url));
|
6
6
|
aliasTable(v6AbstractSqlModel, 'application', 'my application');
|
7
7
|
userHasDirectAccessToApplication.addToModel(v6AbstractSqlModel);
|
@@ -69,10 +69,18 @@ export const getV6Translations = (abstractSqlModel = v6AbstractSqlModel) => {
|
|
69
69
|
'depends on-application': ['Cast', ['Null'], 'Integer'],
|
70
70
|
},
|
71
71
|
'application-has-name': {
|
72
|
-
|
72
|
+
// W/o skipping v7 w/ a direct `$resin` translation, POSTs fail with a 500 with:
|
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`,
|
73
77
|
},
|
74
78
|
'device-has-name': {
|
75
|
-
|
79
|
+
// W/o skipping v7 w/ a direct `$resin` translation, POSTs fail with a 500 with:
|
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`,
|
76
84
|
},
|
77
85
|
device: {
|
78
86
|
'is managed by-device': ['Cast', ['Null'], 'Integer'],
|
@@ -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,
|
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;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9C,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC;wBACnD,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/translations/v7/hooks.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { generateAbstractSqlModel, overrideFieldType, renameVarResourcesName, } from '../../abstract-sql-utils.js';
|
2
|
+
import * as userHasDirectAccessToApplication from '../../features/applications/models/user__has_direct_access_to__application.js';
|
3
|
+
export const toVersion = 'resin';
|
4
|
+
export const v7AbstractSqlModel = generateAbstractSqlModel(new URL('v7.sbvr', import.meta.url));
|
5
|
+
renameVarResourcesName(v7AbstractSqlModel);
|
6
|
+
overrideFieldType(v7AbstractSqlModel, 'release', 'version', 'JSON');
|
7
|
+
userHasDirectAccessToApplication.addToModel(v7AbstractSqlModel);
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- So that the interface is already well defined.
|
9
|
+
export const getV7Translations = (_abstractSqlModel = v7AbstractSqlModel) => {
|
10
|
+
return {};
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=v7.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"v7.js","sourceRoot":"","sources":["../../../src/translations/v7/v7.ts"],"names":[],"mappings":"AACA,OAAO,EACN,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,gCAAgC,MAAM,+EAA+E,CAAC;AAElI,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAwB,CACzD,IAAI,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CACnC,CAAC;AAEF,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;AAE3C,iBAAiB,CAAC,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAEpE,gCAAgC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAChE,+GAA+G;AAC/G,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,iBAAiB,GAAG,kBAAkB,EAAE,EAAE;IAC3E,OAAO,EAA+C,CAAC;AACxD,CAAC,CAAC"}
|
@@ -0,0 +1,881 @@
|
|
1
|
+
Vocabulary: Auth
|
2
|
+
|
3
|
+
Term: jwt secret
|
4
|
+
Concept Type: Short Text (Type)
|
5
|
+
|
6
|
+
Term: name
|
7
|
+
Concept Type: Short Text (Type)
|
8
|
+
|
9
|
+
Term: username
|
10
|
+
Concept Type: Short Text (Type)
|
11
|
+
|
12
|
+
Term: password
|
13
|
+
Concept Type: Hashed (Type)
|
14
|
+
|
15
|
+
Term: expiry date
|
16
|
+
Concept Type: Date Time (Type)
|
17
|
+
|
18
|
+
Term: key
|
19
|
+
Concept Type: Short Text (Type)
|
20
|
+
|
21
|
+
Term: description
|
22
|
+
Concept Type: Text (Type)
|
23
|
+
|
24
|
+
Term: actor
|
25
|
+
|
26
|
+
Term: permission
|
27
|
+
Reference Scheme: name
|
28
|
+
Fact type: permission has name
|
29
|
+
Necessity: Each permission has exactly one name.
|
30
|
+
Necessity: Each name is of exactly one permission.
|
31
|
+
|
32
|
+
Term: role
|
33
|
+
Reference Scheme: name
|
34
|
+
Fact type: role has name
|
35
|
+
Necessity: Each role has exactly one name.
|
36
|
+
Necessity: Each name is of exactly one role.
|
37
|
+
Fact type: role has permission
|
38
|
+
|
39
|
+
Term: user
|
40
|
+
Reference Scheme: username
|
41
|
+
Concept Type: actor
|
42
|
+
Fact type: user has username
|
43
|
+
Necessity: Each user has exactly one username.
|
44
|
+
Necessity: Each username is of exactly one user.
|
45
|
+
Fact type: user has password
|
46
|
+
Necessity: Each user has at most one password.
|
47
|
+
Fact type: user has jwt secret
|
48
|
+
Necessity: Each user has at most one jwt secret.
|
49
|
+
Fact type: user has role
|
50
|
+
Term Form: user role
|
51
|
+
Fact type: user role has expiry date
|
52
|
+
Necessity: Each user role has at most one expiry date.
|
53
|
+
Fact type: user has permission
|
54
|
+
Term Form: user permission
|
55
|
+
Fact type: user permission has expiry date
|
56
|
+
Necessity: Each user permission has at most one expiry date.
|
57
|
+
|
58
|
+
Term: api key
|
59
|
+
Reference Scheme: key
|
60
|
+
Fact type: api key has key
|
61
|
+
Necessity: each api key has exactly one key
|
62
|
+
Necessity: each key is of exactly one api key
|
63
|
+
Fact type: api key has expiry date
|
64
|
+
Necessity: each api key has at most one expiry date.
|
65
|
+
Fact type: api key has role
|
66
|
+
Note: An 'api key' will inherit all the 'permissions' that the 'role' has.
|
67
|
+
Fact type: api key has permission
|
68
|
+
Fact type: api key is of actor
|
69
|
+
Necessity: each api key is of exactly one actor
|
70
|
+
Fact type: api key has name
|
71
|
+
Necessity: Each api key has at most one name.
|
72
|
+
Fact type: api key has description
|
73
|
+
Necessity: Each api key has at most one description.
|
74
|
+
|
75
|
+
|
76
|
+
Vocabulary: balena
|
77
|
+
|
78
|
+
-- Primitive terms (in AZ order)
|
79
|
+
Term: alias
|
80
|
+
Concept Type: Short Text (Type)
|
81
|
+
|
82
|
+
Term: api heartbeat state
|
83
|
+
Concept Type: Short Text (Type)
|
84
|
+
|
85
|
+
Term: api port
|
86
|
+
Concept Type: Integer (Type)
|
87
|
+
|
88
|
+
Term: api secret
|
89
|
+
Concept Type: Short Text (Type)
|
90
|
+
|
91
|
+
Term: app name
|
92
|
+
Concept Type: Text (Type)
|
93
|
+
|
94
|
+
Term: build log
|
95
|
+
Concept Type: Text (Type)
|
96
|
+
|
97
|
+
Term: class
|
98
|
+
Concept Type: Short Text (Type)
|
99
|
+
|
100
|
+
Term: commit
|
101
|
+
Concept Type: Short Text (Type)
|
102
|
+
|
103
|
+
Term: composition
|
104
|
+
Concept Type: JSON (Type)
|
105
|
+
|
106
|
+
Term: config var name
|
107
|
+
Concept Type: Short Text (Type)
|
108
|
+
|
109
|
+
Term: content hash
|
110
|
+
Concept Type: Short Text (Type)
|
111
|
+
|
112
|
+
Term: contract
|
113
|
+
Concept Type: JSON (Type)
|
114
|
+
|
115
|
+
Term: date
|
116
|
+
Concept Type: Date Time (Type)
|
117
|
+
|
118
|
+
Term: device name
|
119
|
+
Concept Type: Short Text (Type)
|
120
|
+
|
121
|
+
Term: dockerfile
|
122
|
+
Concept Type: Text (Type)
|
123
|
+
|
124
|
+
Term: download progress
|
125
|
+
Concept Type: Integer (Type)
|
126
|
+
|
127
|
+
Term: email
|
128
|
+
Concept Type: Text (Type)
|
129
|
+
|
130
|
+
Term: end timestamp
|
131
|
+
Concept Type: Date Time (Type)
|
132
|
+
|
133
|
+
Term: env var name
|
134
|
+
Concept Type: Short Text (Type)
|
135
|
+
|
136
|
+
Term: error message
|
137
|
+
Concept Type: Text (Type)
|
138
|
+
|
139
|
+
Term: handle
|
140
|
+
Concept Type: Short Text (Type)
|
141
|
+
|
142
|
+
Term: image location
|
143
|
+
Concept Type: Short Text (Type)
|
144
|
+
|
145
|
+
Term: image size
|
146
|
+
Concept Type: Big Integer (Type)
|
147
|
+
|
148
|
+
Term: install date
|
149
|
+
Concept Type: Date Time (Type)
|
150
|
+
|
151
|
+
Term: invalidation reason
|
152
|
+
Concept Type: Text (Type)
|
153
|
+
|
154
|
+
Term: ip address
|
155
|
+
Concept Type: Short Text (Type)
|
156
|
+
|
157
|
+
Term: known issue list
|
158
|
+
Concept Type: Text (Type)
|
159
|
+
|
160
|
+
Term: label name
|
161
|
+
Concept Type: Short Text (Type)
|
162
|
+
|
163
|
+
Term: last connectivity event
|
164
|
+
Concept Type: Date Time (Type)
|
165
|
+
|
166
|
+
Term: last heartbeat
|
167
|
+
Concept Type: Date Time (Type)
|
168
|
+
|
169
|
+
Term: last update status event
|
170
|
+
Concept Type: Date Time (Type)
|
171
|
+
|
172
|
+
Term: last vpn event
|
173
|
+
Concept Type: Date Time (Type)
|
174
|
+
|
175
|
+
Term: local id
|
176
|
+
Concept Type: Short Text (Type)
|
177
|
+
|
178
|
+
Term: logo
|
179
|
+
Concept Type: Text (Type)
|
180
|
+
|
181
|
+
Term: mac address
|
182
|
+
Concept Type: Short Text (Type)
|
183
|
+
|
184
|
+
Term: memory usage
|
185
|
+
Concept Type: Integer (Type)
|
186
|
+
|
187
|
+
Term: memory total
|
188
|
+
Concept Type: Integer (Type)
|
189
|
+
|
190
|
+
Term: storage block device
|
191
|
+
Concept Type: Short Text (Type)
|
192
|
+
|
193
|
+
Term: storage usage
|
194
|
+
Concept Type: Integer (Type)
|
195
|
+
|
196
|
+
Term: storage total
|
197
|
+
Concept Type: Integer (Type)
|
198
|
+
|
199
|
+
Term: cpu usage
|
200
|
+
Concept Type: Integer (Type)
|
201
|
+
|
202
|
+
Term: cpu temp
|
203
|
+
Concept Type: Integer (Type)
|
204
|
+
|
205
|
+
Term: cpu id
|
206
|
+
Concept Type: Short Text (Type)
|
207
|
+
|
208
|
+
Term: maximum device count
|
209
|
+
Concept Type: Integer (Type)
|
210
|
+
|
211
|
+
Term: message
|
212
|
+
Concept Type: Text (Type)
|
213
|
+
|
214
|
+
Term: note
|
215
|
+
Concept Type: Text (Type)
|
216
|
+
|
217
|
+
Term: os version
|
218
|
+
Concept Type: Short Text (Type)
|
219
|
+
|
220
|
+
Term: os version range
|
221
|
+
Concept Type: Short Text (Type)
|
222
|
+
|
223
|
+
Term: os variant
|
224
|
+
Concept Type: Short Text (Type)
|
225
|
+
|
226
|
+
Term: overall status
|
227
|
+
Concept Type: Short Text (Type)
|
228
|
+
|
229
|
+
Term: overall progress
|
230
|
+
Concept Type: Integer (Type)
|
231
|
+
|
232
|
+
Term: phase
|
233
|
+
Concept Type: Short Text (Type)
|
234
|
+
|
235
|
+
Term: project type
|
236
|
+
Concept Type: Short Text (Type)
|
237
|
+
|
238
|
+
Term: provisioning progress
|
239
|
+
Concept Type: Integer (Type)
|
240
|
+
|
241
|
+
Term: provisioning state
|
242
|
+
Concept Type: Short Text (Type)
|
243
|
+
|
244
|
+
Term: public address
|
245
|
+
Concept Type: Short Text (Type)
|
246
|
+
|
247
|
+
Term: public key
|
248
|
+
Concept Type: Text (Type)
|
249
|
+
|
250
|
+
Term: push timestamp
|
251
|
+
Concept Type: Date Time (Type)
|
252
|
+
|
253
|
+
Term: raw version
|
254
|
+
Concept Type: Short Text (Type)
|
255
|
+
|
256
|
+
Term: release version
|
257
|
+
Concept Type: Short Text (Type)
|
258
|
+
|
259
|
+
Term: revision
|
260
|
+
Concept Type: Integer (Type)
|
261
|
+
|
262
|
+
Term: scope
|
263
|
+
Concept Type: Short Text (Type)
|
264
|
+
|
265
|
+
Term: semver build
|
266
|
+
Concept Type: Short Text (Type)
|
267
|
+
|
268
|
+
Term: semver major
|
269
|
+
Concept Type: Integer (Type)
|
270
|
+
|
271
|
+
Term: semver minor
|
272
|
+
Concept Type: Integer (Type)
|
273
|
+
|
274
|
+
Term: semver patch
|
275
|
+
Concept Type: Integer (Type)
|
276
|
+
|
277
|
+
Term: semver prerelease
|
278
|
+
Concept Type: Short Text (Type)
|
279
|
+
|
280
|
+
Term: semver
|
281
|
+
Concept Type: Short Text (Type)
|
282
|
+
|
283
|
+
Term: service name
|
284
|
+
Concept Type: Short Text (Type)
|
285
|
+
|
286
|
+
Term: service type
|
287
|
+
Concept Type: Short Text (Type)
|
288
|
+
|
289
|
+
Term: slug
|
290
|
+
Concept Type: Short Text (Type)
|
291
|
+
|
292
|
+
Term: source
|
293
|
+
Concept Type: Short Text (Type)
|
294
|
+
|
295
|
+
Term: start timestamp
|
296
|
+
Concept Type: Date Time (Type)
|
297
|
+
|
298
|
+
Term: status
|
299
|
+
Concept Type: Short Text (Type)
|
300
|
+
|
301
|
+
Term: supervisor version
|
302
|
+
Concept Type: Short Text (Type)
|
303
|
+
|
304
|
+
Term: tag key
|
305
|
+
Concept Type: Short Text (Type)
|
306
|
+
|
307
|
+
Term: title
|
308
|
+
Concept Type: Short Text (Type)
|
309
|
+
|
310
|
+
Term: update status
|
311
|
+
Concept Type: Short Text (Type)
|
312
|
+
|
313
|
+
Term: update timestamp
|
314
|
+
Concept Type: Date Time (Type)
|
315
|
+
|
316
|
+
Term: uuid
|
317
|
+
Concept Type: Text (Type)
|
318
|
+
|
319
|
+
Term: value
|
320
|
+
Concept Type: Text (Type)
|
321
|
+
|
322
|
+
Term: variant
|
323
|
+
Concept Type: Short Text (Type)
|
324
|
+
|
325
|
+
Term: version
|
326
|
+
Concept Type: Integer (Type)
|
327
|
+
|
328
|
+
|
329
|
+
-- Complex terms
|
330
|
+
|
331
|
+
Term: application type
|
332
|
+
Term: config
|
333
|
+
Term: cpu architecture
|
334
|
+
Term: device family
|
335
|
+
Term: device manufacturer
|
336
|
+
Term: device type
|
337
|
+
Term: image
|
338
|
+
Term: organization
|
339
|
+
Term: service instance
|
340
|
+
|
341
|
+
Term: application
|
342
|
+
Concept Type: actor (Auth)
|
343
|
+
|
344
|
+
Fact type: application [should track latest release]
|
345
|
+
|
346
|
+
Fact type: application is of class
|
347
|
+
Necessity: each application is of exactly one class.
|
348
|
+
Definition: "fleet" or "block" or "app"
|
349
|
+
|
350
|
+
Fact type: application has env var name
|
351
|
+
Term Form: application environment variable
|
352
|
+
Database Table Name: application environment variable
|
353
|
+
|
354
|
+
Fact type: application has config var name
|
355
|
+
Term Form: application config variable
|
356
|
+
Database Table Name: application config variable
|
357
|
+
|
358
|
+
Fact type: application has service name
|
359
|
+
Term Form: service
|
360
|
+
Database Table Name: service
|
361
|
+
|
362
|
+
Fact type: service has label name
|
363
|
+
Term Form: service label
|
364
|
+
Database Table Name: service label
|
365
|
+
|
366
|
+
Fact type: service has name (Auth)
|
367
|
+
Term Form: service environment variable
|
368
|
+
Database Table Name: service environment variable
|
369
|
+
|
370
|
+
Fact type: application has tag key
|
371
|
+
Term Form: application tag
|
372
|
+
Database Table Name: application tag
|
373
|
+
Necessity: each application tag has a tag key that has a Length (Type) that is greater than 0.
|
374
|
+
|
375
|
+
Term: device
|
376
|
+
Concept Type: actor (Auth)
|
377
|
+
|
378
|
+
Fact type: device has api heartbeat state
|
379
|
+
Necessity: each device has exactly one api heartbeat state
|
380
|
+
Definition: "online" or "offline" or "timeout" or "unknown"
|
381
|
+
|
382
|
+
Fact type: device has env var name
|
383
|
+
Term Form: device environment variable
|
384
|
+
Database Table Name: device environment variable
|
385
|
+
|
386
|
+
Fact type: device has config var name
|
387
|
+
Term Form: device config variable
|
388
|
+
Database Table Name: device config variable
|
389
|
+
|
390
|
+
Fact type: device installs image
|
391
|
+
Term Form: image install
|
392
|
+
Database Table Name: image install
|
393
|
+
|
394
|
+
Fact type: device installs service
|
395
|
+
Term Form: service install
|
396
|
+
Database Table Name: service install
|
397
|
+
|
398
|
+
Fact type: service install has name (Auth)
|
399
|
+
Term Form: device service environment variable
|
400
|
+
Database Table Name: device service environment variable
|
401
|
+
|
402
|
+
Fact type: device has tag key
|
403
|
+
Term Form: device tag
|
404
|
+
Database Table Name: device tag
|
405
|
+
Necessity: each device tag has a tag key that has a Length (Type) that is greater than 0.
|
406
|
+
|
407
|
+
Term: release
|
408
|
+
|
409
|
+
Fact type: release has tag key
|
410
|
+
Term Form: release tag
|
411
|
+
Database Table Name: release tag
|
412
|
+
Necessity: each release tag has a tag key that has a Length (Type) that is greater than 0.
|
413
|
+
|
414
|
+
Fact type: image is part of release
|
415
|
+
Synonymous Form: release contains image
|
416
|
+
Term Form: release image
|
417
|
+
|
418
|
+
Fact type: release image has label name
|
419
|
+
Term Form: image label
|
420
|
+
Database Table Name: image label
|
421
|
+
|
422
|
+
Fact type: release image has name (Auth)
|
423
|
+
Term Form: image environment variable
|
424
|
+
Database Table Name: image environment variable
|
425
|
+
|
426
|
+
Fact type: user (Auth) is member of organization
|
427
|
+
Synonymous Form: organization includes user (Auth)
|
428
|
+
Database Table Name: organization membership
|
429
|
+
Term Form: organization membership
|
430
|
+
|
431
|
+
|
432
|
+
-- organization
|
433
|
+
|
434
|
+
Fact type: organization has name (Auth)
|
435
|
+
Necessity: each organization has exactly one name (Auth).
|
436
|
+
Necessity: each name (Auth) of an organization, has a Length (Type) that is greater than 0.
|
437
|
+
Fact type: organization has handle
|
438
|
+
Necessity: each organization has exactly one handle.
|
439
|
+
Necessity: each handle is of exactly one organization.
|
440
|
+
Necessity: each handle of an organization, has a Length (Type) that is greater than 0.
|
441
|
+
|
442
|
+
|
443
|
+
-- user
|
444
|
+
|
445
|
+
Fact type: user (Auth) has email
|
446
|
+
Necessity: each user (Auth) has at most one email.
|
447
|
+
Necessity: each user (Auth) that has an email, has an email that has a Length (Type) that is greater than 4.
|
448
|
+
Necessity: each email is of exactly one user (Auth).
|
449
|
+
|
450
|
+
Fact type: user (Auth) has public key
|
451
|
+
Term Form: user public key
|
452
|
+
|
453
|
+
|
454
|
+
-- user public key
|
455
|
+
|
456
|
+
Fact type: user public key has title
|
457
|
+
Necessity: each user public key has exactly one title
|
458
|
+
|
459
|
+
|
460
|
+
-- application type
|
461
|
+
|
462
|
+
Fact type: application type has name (Auth)
|
463
|
+
Necessity: each application type has exactly one name (Auth)
|
464
|
+
Fact type: application type supports web url
|
465
|
+
Fact type: application type supports multicontainer
|
466
|
+
Fact type: application type supports gateway mode
|
467
|
+
Fact type: application type needs os version range
|
468
|
+
Necessity: each application type needs at most one os version range
|
469
|
+
Fact type: application type requires payment
|
470
|
+
Fact type: application type is legacy
|
471
|
+
Fact type: application type has slug
|
472
|
+
Necessity: each application type has exactly one slug
|
473
|
+
Necessity: each slug is of exactly one application type
|
474
|
+
Fact type: application type has description (Auth)
|
475
|
+
Necessity: each application type has at most one description (Auth).
|
476
|
+
Fact type: application type has maximum device count
|
477
|
+
Necessity: each application type has at most one maximum device count
|
478
|
+
|
479
|
+
|
480
|
+
-- application
|
481
|
+
|
482
|
+
Fact type: application has organization
|
483
|
+
Synonymous Form: organization has application
|
484
|
+
Necessity: each application has exactly one organization.
|
485
|
+
Fact type: application has app name
|
486
|
+
Necessity: each application has exactly one app name
|
487
|
+
Necessity: each application has an app name that has a Length (Type) that is greater than or equal to 4 and is less than or equal to 100.
|
488
|
+
Fact type: application has slug
|
489
|
+
Necessity: each application has exactly one slug
|
490
|
+
Necessity: each slug is of exactly one application
|
491
|
+
Fact type: application is for device type
|
492
|
+
Synonymous Form: device type is default for application
|
493
|
+
Necessity: each application is for exactly one device type
|
494
|
+
Fact type: application should be running release
|
495
|
+
Synonymous Form: release should be running on application
|
496
|
+
Necessity: each application should be running at most one release.
|
497
|
+
Fact type: application has application type
|
498
|
+
Necessity: each application has exactly one application type.
|
499
|
+
Fact type: application is host
|
500
|
+
Fact type: application is archived
|
501
|
+
Fact type: application has uuid
|
502
|
+
Necessity: each application has exactly one uuid.
|
503
|
+
Necessity: each uuid is of exactly one application.
|
504
|
+
Necessity: each application has a uuid that has a Length (Type) that is equal to 32.
|
505
|
+
Fact type: application is public
|
506
|
+
|
507
|
+
-- service instance
|
508
|
+
|
509
|
+
Fact type: service instance has service type
|
510
|
+
Necessity: each service instance has exactly one service type.
|
511
|
+
Fact type: service instance has ip address
|
512
|
+
Necessity: each service instance has exactly one ip address.
|
513
|
+
Fact type: service instance has last heartbeat
|
514
|
+
Necessity: each service instance has exactly one last heartbeat.
|
515
|
+
|
516
|
+
|
517
|
+
-- device
|
518
|
+
|
519
|
+
Fact type: device has uuid
|
520
|
+
Necessity: each device has exactly one uuid.
|
521
|
+
Necessity: each uuid is of exactly one device.
|
522
|
+
Fact type: device has local id
|
523
|
+
Necessity: each device has at most one local id.
|
524
|
+
Fact type: device has device name
|
525
|
+
Necessity: each device has at most one device name.
|
526
|
+
Fact type: device has note
|
527
|
+
Necessity: each device has at most one note.
|
528
|
+
Fact type: device is of device type
|
529
|
+
Synonymous Form: device type describes device
|
530
|
+
Necessity: each device is of exactly one device type.
|
531
|
+
Fact type: device belongs to application
|
532
|
+
Synonymous Form: application owns device
|
533
|
+
Necessity: each device belongs to at most one application.
|
534
|
+
Fact type: device is online
|
535
|
+
Fact type: device has last connectivity event
|
536
|
+
Necessity: each device has at most one last connectivity event.
|
537
|
+
Fact type: device is connected to vpn
|
538
|
+
Fact type: device has last vpn event
|
539
|
+
Necessity: each device has at most one last vpn event.
|
540
|
+
Fact type: device is locked until date
|
541
|
+
Necessity: each device is locked until at most one date.
|
542
|
+
Fact type: device has public address
|
543
|
+
Necessity: each device has at most one public address
|
544
|
+
Fact type: device has ip address
|
545
|
+
Necessity: each device has at most one ip address
|
546
|
+
Fact type: device has mac address
|
547
|
+
Necessity: each device has at most one mac address
|
548
|
+
-- FIXME: The core API has no support for "Device Public URLs",
|
549
|
+
-- but w/o this shim some CLI commands fail since they do select it,
|
550
|
+
-- Eg: A mechanism that silently unknown selected fields on versioned models
|
551
|
+
-- would allow us to drop this.
|
552
|
+
Fact type: device is web accessible
|
553
|
+
Fact type: device has memory usage
|
554
|
+
Necessity: each device has at most one memory usage
|
555
|
+
Fact type: device has memory total
|
556
|
+
Necessity: each device has at most one memory total
|
557
|
+
Fact type: device has storage block device
|
558
|
+
Necessity: each device has at most one storage block device
|
559
|
+
Fact type: device has storage usage
|
560
|
+
Necessity: each device has at most one storage usage
|
561
|
+
Fact type: device has storage total
|
562
|
+
Necessity: each device has at most one storage total
|
563
|
+
Fact type: device has cpu usage
|
564
|
+
Necessity: each device has at most one cpu usage
|
565
|
+
Fact type: device has cpu temp
|
566
|
+
Necessity: each device has at most one cpu temp
|
567
|
+
Fact type: device is undervolted
|
568
|
+
Fact type: device has cpu id
|
569
|
+
Necessity: each device has at most one cpu id
|
570
|
+
Fact type: device is running release
|
571
|
+
Synonymous Form: release is running on device
|
572
|
+
Necessity: each device is running at most one release.
|
573
|
+
Reference Type: informative
|
574
|
+
Fact type: device has download progress
|
575
|
+
Necessity: each device has at most one download progress.
|
576
|
+
Fact type: device has status
|
577
|
+
Necessity: each device has at most one status.
|
578
|
+
Fact type: device has os version
|
579
|
+
Necessity: each device has at most one os version
|
580
|
+
Fact type: device has os variant
|
581
|
+
Necessity: each device has at most one os variant
|
582
|
+
Fact type: device has overall status
|
583
|
+
Necessity: each device has exactly one overall status
|
584
|
+
Fact type: device has overall progress
|
585
|
+
Necessity: each device has at most one overall progress
|
586
|
+
Fact type: device has supervisor version
|
587
|
+
Necessity: each device has at most one supervisor version
|
588
|
+
Fact type: device has provisioning progress
|
589
|
+
Necessity: each device has at most one provisioning progress
|
590
|
+
Fact type: device has provisioning state
|
591
|
+
Necessity: each device has at most one provisioning state
|
592
|
+
Fact type: device has api port
|
593
|
+
Necessity: each device has at most one api port
|
594
|
+
Fact type: device has api secret
|
595
|
+
Necessity: each device has at most one api secret
|
596
|
+
Fact type: device is managed by service instance
|
597
|
+
Synonymous Form: service instance manages device
|
598
|
+
Necessity: each device is managed by at most one service instance
|
599
|
+
Fact type: device is pinned on release
|
600
|
+
Synonymous Form: release is pinned to device
|
601
|
+
Necessity: each device is pinned on at most one release
|
602
|
+
Fact type: device should be running release
|
603
|
+
Synonymous Form: release should be running on device
|
604
|
+
Necessity: each device should be running at most one release
|
605
|
+
Note: Computed as device is pinned on release ?? application should be running release.
|
606
|
+
Fact type: device should be operated by release
|
607
|
+
Synonymous Form: release should operate device
|
608
|
+
Necessity: each device should be operated by at most one release
|
609
|
+
Fact type: device should be managed by release
|
610
|
+
Synonymous Form: release should manage device
|
611
|
+
Necessity: each device should be managed by at most one release
|
612
|
+
Fact type: device has update status
|
613
|
+
Necessity: each device has at most one update status.
|
614
|
+
Definition: "rejected" or "downloading" or "downloaded" or "applying changes" or "aborted" or "done"
|
615
|
+
Fact type: device has last update status event
|
616
|
+
Necessity: each device has at most one last update status event.
|
617
|
+
|
618
|
+
-- application config variable
|
619
|
+
|
620
|
+
Fact type: application config variable has value
|
621
|
+
Necessity: each application config variable has exactly one value.
|
622
|
+
|
623
|
+
|
624
|
+
-- device config variable
|
625
|
+
|
626
|
+
Fact type: device config variable has value
|
627
|
+
Necessity: each device config variable has exactly one value.
|
628
|
+
|
629
|
+
-- device type
|
630
|
+
|
631
|
+
Fact type: device type has slug
|
632
|
+
Necessity: each device type has exactly one slug
|
633
|
+
Necessity: each slug is of exactly one device type
|
634
|
+
|
635
|
+
Fact type: device type has name (Auth)
|
636
|
+
Necessity: each device type has exactly one name (Auth)
|
637
|
+
|
638
|
+
Fact type: device type is of cpu architecture
|
639
|
+
Synonymous form: device type supports cpu architecture
|
640
|
+
Synonymous form: cpu architecture is supported by device type
|
641
|
+
Necessity: each device type supports exactly one cpu architecture
|
642
|
+
|
643
|
+
Fact type: device type has logo
|
644
|
+
Necessity: each device type has at most one logo
|
645
|
+
|
646
|
+
Fact type: device type has contract
|
647
|
+
Necessity: each device type has at most one contract
|
648
|
+
|
649
|
+
Fact type: device type belongs to device family
|
650
|
+
Synonymous form: device family has device type
|
651
|
+
Necessity: each device type belongs to at most one device family
|
652
|
+
|
653
|
+
Fact type: device type is referenced by alias
|
654
|
+
Synonymous form: alias references device type
|
655
|
+
Term Form: device type alias
|
656
|
+
Database Table Name: device type alias
|
657
|
+
Necessity: each alias references exactly one device type
|
658
|
+
|
659
|
+
-- cpu architecture
|
660
|
+
|
661
|
+
Fact type: cpu architecture has slug
|
662
|
+
Necessity: each cpu architecture has exactly one slug
|
663
|
+
Necessity: each slug is of exactly one cpu architecture
|
664
|
+
|
665
|
+
-- device manufacturer
|
666
|
+
|
667
|
+
Fact type: device manufacturer has slug
|
668
|
+
Necessity: each device manufacturer has exactly one slug
|
669
|
+
Necessity: each slug is of exactly one device manufacturer
|
670
|
+
Fact type: device manufacturer has name (Auth)
|
671
|
+
Necessity: each device manufacturer has exactly one name (Auth)
|
672
|
+
|
673
|
+
-- device family
|
674
|
+
|
675
|
+
Fact type: device family has slug
|
676
|
+
Necessity: each device family has exactly one slug
|
677
|
+
Necessity: each slug is of exactly one device family
|
678
|
+
Fact type: device family has name (Auth)
|
679
|
+
Necessity: each device family has exactly one name (Auth)
|
680
|
+
Fact type: device family is manufactured by device manufacturer
|
681
|
+
Necessity: each device family is manufactured by at most one device manufacturer
|
682
|
+
|
683
|
+
-- release
|
684
|
+
|
685
|
+
Fact type: release belongs to application
|
686
|
+
Synonymous Form: application owns release
|
687
|
+
Necessity: each release belongs to exactly one application.
|
688
|
+
Fact type: release has commit
|
689
|
+
Necessity: each release has exactly one commit.
|
690
|
+
Fact type: release has composition
|
691
|
+
Necessity: each release has exactly one composition.
|
692
|
+
Fact type: release has status
|
693
|
+
Necessity: each release has exactly one status.
|
694
|
+
Fact type: release has source
|
695
|
+
Necessity: each release has exactly one source.
|
696
|
+
Fact type: release has build log
|
697
|
+
Necessity: each release has at most one build log.
|
698
|
+
Fact type: release is invalidated
|
699
|
+
Fact type: release has start timestamp
|
700
|
+
Necessity: each release has exactly one start timestamp.
|
701
|
+
Fact type: release has end timestamp
|
702
|
+
Necessity: each release has at most one end timestamp.
|
703
|
+
Fact type: release has update timestamp
|
704
|
+
Necessity: each release has exactly one update timestamp.
|
705
|
+
Fact type: release has release version
|
706
|
+
Necessity: each release has at most one release version
|
707
|
+
Note: Deprecated.
|
708
|
+
Fact type: release has contract
|
709
|
+
Necessity: each release has at most one contract
|
710
|
+
Fact type: release is passing tests
|
711
|
+
Fact type: release is finalized at date
|
712
|
+
Necessity: each release is finalized at at most one date.
|
713
|
+
Fact type: release has phase
|
714
|
+
Necessity: each release has at most one phase.
|
715
|
+
Definition: "next" or "current" or "sunset" or "end-of-life"
|
716
|
+
Fact type: release is final
|
717
|
+
Fact type: release has semver
|
718
|
+
Necessity: each release has exactly one semver.
|
719
|
+
Fact type: release has semver major
|
720
|
+
Necessity: each release has exactly one semver major.
|
721
|
+
Fact type: release has semver minor
|
722
|
+
Necessity: each release has exactly one semver minor.
|
723
|
+
Fact type: release has semver patch
|
724
|
+
Necessity: each release has exactly one semver patch.
|
725
|
+
Fact type: release has semver prerelease
|
726
|
+
Necessity: each release has exactly one semver prerelease.
|
727
|
+
Fact type: release has semver build
|
728
|
+
Necessity: each release has exactly one semver build.
|
729
|
+
Fact type: release has variant
|
730
|
+
Necessity: each release has exactly one variant.
|
731
|
+
Fact type: release has revision
|
732
|
+
Necessity: each release has at most one revision.
|
733
|
+
Necessity: each release that has a revision, has a revision that is greater than or equal to 0.
|
734
|
+
Fact type: release has raw version
|
735
|
+
Necessity: each release has exactly one raw version.
|
736
|
+
Fact type: release has version
|
737
|
+
Necessity: each release has exactly one version.
|
738
|
+
Note: The release.version's field type is overriden to JSON by changing the generated abstract sql.
|
739
|
+
Fact type: release has known issue list
|
740
|
+
Necessity: each release has at most one known issue list.
|
741
|
+
Fact type: release has note
|
742
|
+
Necessity: each release has at most one note.
|
743
|
+
Fact type: release has invalidation reason
|
744
|
+
Necessity: each release has at most one invalidation reason.
|
745
|
+
Necessity: each release that has an invalidation reason, is invalidated.
|
746
|
+
|
747
|
+
|
748
|
+
-- service environment variable
|
749
|
+
|
750
|
+
Fact type: service environment variable has value
|
751
|
+
Necessity: each service environment variable has exactly one value.
|
752
|
+
|
753
|
+
|
754
|
+
-- image
|
755
|
+
|
756
|
+
Fact type: image has start timestamp
|
757
|
+
Necessity: each image has exactly one start timestamp.
|
758
|
+
Fact type: image has end timestamp
|
759
|
+
Necessity: each image has at most one end timestamp.
|
760
|
+
Fact type: image has dockerfile
|
761
|
+
Necessity: each image has at most one dockerfile.
|
762
|
+
Fact type: image is a build of service
|
763
|
+
Synonymous Form: service is built by image
|
764
|
+
Necessity: each image is a build of exactly one service.
|
765
|
+
Fact type: image has image size
|
766
|
+
Necessity: each image has at most one image size.
|
767
|
+
Fact type: image is stored at image location
|
768
|
+
Synonymous Form: image location hosts image
|
769
|
+
Necessity: each image is stored at exactly one image location.
|
770
|
+
Necessity: each image location hosts exactly one image.
|
771
|
+
Fact type: image has project type
|
772
|
+
Necessity: each image has at most one project type.
|
773
|
+
Fact type: image has error message
|
774
|
+
Necessity: each image has at most one error message
|
775
|
+
Fact type: image has build log
|
776
|
+
Necessity: each image has at most one build log.
|
777
|
+
Fact type: image has push timestamp
|
778
|
+
Necessity: each image has at most one push timestamp.
|
779
|
+
Fact type: image has status
|
780
|
+
Necessity: each image has exactly one status.
|
781
|
+
Fact type: image has content hash
|
782
|
+
Necessity: each image has at most one content hash.
|
783
|
+
Fact type: image has contract
|
784
|
+
Necessity: each image has at most one contract
|
785
|
+
|
786
|
+
|
787
|
+
-- image label
|
788
|
+
|
789
|
+
Fact type: image label has value
|
790
|
+
Necessity: each image label has exactly one value.
|
791
|
+
|
792
|
+
|
793
|
+
-- service label
|
794
|
+
|
795
|
+
Fact type: service label has value
|
796
|
+
Necessity: each service label has exactly one value.
|
797
|
+
|
798
|
+
|
799
|
+
-- device environment variable
|
800
|
+
|
801
|
+
Fact type: device environment variable has value
|
802
|
+
Necessity: each device environment variable has exactly one value.
|
803
|
+
|
804
|
+
|
805
|
+
-- application environment variable
|
806
|
+
|
807
|
+
Fact type: application environment variable has value
|
808
|
+
Necessity: each application environment variable has exactly one value.
|
809
|
+
|
810
|
+
|
811
|
+
-- image environment variable
|
812
|
+
|
813
|
+
Fact type: image environment variable has value
|
814
|
+
Necessity: each image environment variable has exactly one value.
|
815
|
+
|
816
|
+
|
817
|
+
-- device service environment variable
|
818
|
+
|
819
|
+
Fact type: device service environment variable has value
|
820
|
+
Necessity: each device service environment variable has exactly one value.
|
821
|
+
|
822
|
+
|
823
|
+
-- application tag
|
824
|
+
|
825
|
+
Fact type: application tag has value
|
826
|
+
Necessity: each application tag has exactly one value.
|
827
|
+
|
828
|
+
|
829
|
+
-- device tag
|
830
|
+
|
831
|
+
Fact type: device tag has value
|
832
|
+
Necessity: each device tag has exactly one value.
|
833
|
+
|
834
|
+
|
835
|
+
-- release tag
|
836
|
+
|
837
|
+
Fact type: release tag has value
|
838
|
+
Necessity: each release tag has exactly one value.
|
839
|
+
|
840
|
+
|
841
|
+
-- image install
|
842
|
+
|
843
|
+
Fact type: image install has install date
|
844
|
+
Necessity: each image install has exactly one install date.
|
845
|
+
Fact type: image install has download progress
|
846
|
+
Necessity: each image install has at most one download progress.
|
847
|
+
Fact type: image install has status
|
848
|
+
Necessity: each image install has exactly one status.
|
849
|
+
Fact type: image install is provided by release
|
850
|
+
Synonymous Form: release provides image install
|
851
|
+
Necessity: each image install is provided by exactly one release.
|
852
|
+
|
853
|
+
|
854
|
+
-- config
|
855
|
+
|
856
|
+
Fact type: config has key (Auth)
|
857
|
+
Necessity: each config has exactly one key (Auth).
|
858
|
+
Fact type: config has value
|
859
|
+
Necessity: each config has exactly one value.
|
860
|
+
Fact type: config has scope
|
861
|
+
Necessity: each config has at most one scope.
|
862
|
+
Fact type: config has description (Auth)
|
863
|
+
Necessity: each config has at most one description (Auth).
|
864
|
+
|
865
|
+
|
866
|
+
-- Rules
|
867
|
+
|
868
|
+
Rule: It is necessary that each application that owns a release1 that has a status that is equal to "success" and is not invalidated and has a release version, owns at most one release2 that has a status that is equal to "success" and is not invalidated and has a release version that is of the release1.
|
869
|
+
Rule: It is necessary that each image that has a status that is equal to "success", has a push timestamp.
|
870
|
+
Rule: It is necessary that each application that owns a release1 that has a status that is equal to "success" and has a commit1, owns at most one release2 that has a status that is equal to "success" and has a commit2 that is equal to the commit1.
|
871
|
+
Rule: It is necessary that each application that owns a release1 that has a revision, owns at most one release2 that has a semver major that is of the release1 and has a semver minor that is of the release1 and has a semver patch that is of the release1 and has a semver prerelease that is of the release1 and has a variant that is of the release1 and has a revision that is of the release1.
|
872
|
+
Rule: It is necessary that each release that is pinned to a device, has a status that is equal to "success" and belongs to an application1 that the device belongs to.
|
873
|
+
Rule: It is necessary that each release that should be running on an application, has a status that is equal to "success" and belongs to the application.
|
874
|
+
Rule: It is necessary that each application that owns a release that contains at least 2 images, has an application type that supports multicontainer.
|
875
|
+
Rule: It is necessary that each release that should operate a device, has a status that is equal to "success".
|
876
|
+
Rule: It is necessary that each release that should operate a device that is of a device type, belongs to an application that is host and is for the device type.
|
877
|
+
-- native supervisor release rules, separated for legibility
|
878
|
+
Rule: It is necessary that each release that should manage a device, has a status that is equal to "success" and has a semver major that is greater than 0 or has a semver minor that is greater than 0 or has a semver patch that is greater than 0.
|
879
|
+
-- The first part of this rule is meant to prevent accidentally setting a host extension as a supervisor (i.e., another public + non-host app)
|
880
|
+
Rule: It is necessary that each release that should manage a device that is of a device type1, belongs to an application that is public and is not host and has a slug that is equal to "balena_os/aarch64-supervisor" or "balena_os/amd64-supervisor" or "balena_os/armv7hf-supervisor" or "balena_os/i386-supervisor" or "balena_os/i386-nlp-supervisor" or "balena_os/rpi-supervisor" and is for a device type2 that is of a cpu architecture that is supported by the device type1.
|
881
|
+
|
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
|
+
"version": "26.4.0-build-v7-a51f656adca7a764ddda4caa26b14f1dafd87b60-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -16,7 +16,8 @@
|
|
16
16
|
"./models/balena.sbvr": "./dist/balena.sbvr",
|
17
17
|
"./models/balena-model.d.ts": "./dist/balena-model.d.ts",
|
18
18
|
"./models/balena-init.sql": "./dist/balena-init.sql",
|
19
|
-
"./models/v6.sbvr": "./dist/translations/v6/v6.sbvr"
|
19
|
+
"./models/v6.sbvr": "./dist/translations/v6/v6.sbvr",
|
20
|
+
"./models/v7.sbvr": "./dist/translations/v7/v7.sbvr"
|
20
21
|
},
|
21
22
|
"files": [
|
22
23
|
"dist/"
|
@@ -167,6 +168,6 @@
|
|
167
168
|
"loader": "ts-node/esm/transpile-only"
|
168
169
|
},
|
169
170
|
"versionist": {
|
170
|
-
"publishedAt": "2024-08-
|
171
|
+
"publishedAt": "2024-08-23T08:23:28.102Z"
|
171
172
|
}
|
172
173
|
}
|