@balena/open-balena-api 28.0.2-build-improve-typings-state-get-v2-f5b3ef8884a0e6f5813c07b2dd40f507ef85a176-1 → 28.0.2-build-v6-number-image-image-size--8c6afedb680c4dfdb95fdcc1197de6764e0a10a4-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ function buildAppFromRelease(device, application, release, config) {
25
25
  const image = ipr.image[0];
26
26
  const si = serviceInstallFromImage(device, image);
27
27
  if (si == null) {
28
- throw new Error(`Could not find service install for device: '${application.id}', image: '${image?.id}', service: '${JSON.stringify(image?.is_a_build_of__service)}', service installs: '${JSON.stringify(device.service_install)}'`);
28
+ throw new Error(`Could not find service install for device: '${application.uuid}', image: '${image?.id}', service: '${JSON.stringify(image?.is_a_build_of__service)}', service installs: '${JSON.stringify(device.service_install)}'`);
29
29
  }
30
30
  const svc = si.service[0];
31
31
  const environment = {};
@@ -1 +1 @@
1
- {"version":3,"file":"state-get-v2.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v2.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,SAAS,EACT,6BAA6B,GAC7B,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;AAE9C,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AA4C1B,SAAS,mBAAmB,CAC3B,MAAsB,EACtB,WAA8D,EAC9D,OAA6D,EAC7D,MAA0B;IAE1B,IAAI,WAAW,GAAc,EAAE,CAAC;IAChC,MAAM,QAAQ,GAA8B,EAAE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,CAAC,CAAC;QAC7D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,qBAAqB,CACtC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CACnB,MAAM,eAAe,CAAC,CAAC,EAAE,EAAE,EAAE,CAC5B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAC9C,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAC1B,MAAsB,EACtB,MAA0B,EACV,EAAE;IAClB,MAAM,cAAc,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAEzD,iEAAiE;IACjE,MAAM,OAAO,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAErD,uCAAuC;IACvC,OAAO,OAAO,IAAI,IAAI;QACrB,CAAC,CAAC;YACA,IAAI,EAAE,cAAc,CAAC,QAAQ;YAC7B,QAAQ,EAAE,EAAE;YACZ,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;SACX;QACF,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC,CAAC"}
1
+ {"version":3,"file":"state-get-v2.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v2.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,SAAS,EACT,6BAA6B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBA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import type { dbModule, permissions } from '@balena/pinejs';
3
- import type { Device, Service, ServiceInstall } from '../../balena-model.js';
3
+ import type { Device } from '../../balena-model.js';
4
4
  export declare const getStateEventAdditionalFields: Array<Exclude<keyof Device['Read'], ExpandableStringKeyOf<Device['Read']>>>;
5
5
  declare const defaultConfigVariableFns: Array<(config: Dictionary<string>) => void>;
6
6
  export declare const addDefaultConfigVariableFn: (fn: (typeof defaultConfigVariableFns)[number]) => void;
7
7
  export declare const setDefaultConfigVariables: (config: Dictionary<string>) => void;
8
- export declare const getConfig: (device: {
9
- device_config_variable: EnvVarList;
10
- belongs_to__application: Array<{
11
- application_config_variable: EnvVarList;
12
- }>;
13
- } | undefined, application?: {
14
- application_config_variable: EnvVarList;
15
- } | undefined) => Dictionary<string>;
16
- type ExpandedService = Pick<Service['Read'], 'id' | 'service_name'> & {
17
- service_environment_variable: EnvVarList;
18
- service_label: Array<{
19
- label_name: string;
20
- value: string;
21
- }>;
22
- };
23
- type ExpandedServiceInstall = {
24
- id: ServiceInstall['Read']['id'];
25
- service: ExpandedService[];
26
- device_service_environment_variable: EnvVarList;
27
- };
28
- export declare function serviceInstallFromImage(deviceOrFleet: {
29
- service_install: ExpandedServiceInstall[];
30
- }, image?: {
31
- is_a_build_of__service: number | {
32
- __id: number;
33
- };
34
- }): ExpandedServiceInstall | undefined;
35
- export declare function serviceInstallFromImage(deviceOrFleet: {
36
- service: ExpandedService[];
37
- }, image?: {
38
- is_a_build_of__service: number | {
39
- __id: number;
40
- };
41
- }): ExpandedService | undefined;
42
- /** @deprecated Use the strongly-typed overloads with `{ service_install }` or `{ service }` instead */
43
- export declare function serviceInstallFromImage(deviceOrFleet: AnyObject, image?: AnyObject): undefined | AnyObject;
8
+ export declare const getConfig: (device: AnyObject | undefined, application?: AnyObject) => Dictionary<string>;
9
+ export declare const serviceInstallFromImage: (deviceOrFleet: AnyObject, image?: AnyObject) => undefined | AnyObject;
44
10
  export declare const formatImageLocation: (imageLocation: string) => string;
45
11
  export declare const filterDeviceConfig: (configVars: Dictionary<string>) => void;
46
12
  export declare const setReadTransaction: (newReadTransaction: dbModule.Database["readTransaction"]) => void;
@@ -35,7 +35,7 @@ export const getConfig = (device, application = device?.belongs_to__application[
35
35
  setDefaultConfigVariables(config);
36
36
  return config;
37
37
  };
38
- export function serviceInstallFromImage(deviceOrFleet, image) {
38
+ export const serviceInstallFromImage = (deviceOrFleet, image) => {
39
39
  if (image == null) {
40
40
  return;
41
41
  }
@@ -52,7 +52,7 @@ export function serviceInstallFromImage(deviceOrFleet, image) {
52
52
  else if ('service' in deviceOrFleet) {
53
53
  return deviceOrFleet.service.find((fleetService) => fleetService.id === id);
54
54
  }
55
- }
55
+ };
56
56
  export const formatImageLocation = (imageLocation) => imageLocation.toLowerCase();
57
57
  // Some config vars cause issues with certain versions of resinOS.
58
58
  // This function will check the OS version against the config
@@ -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,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,gCAAg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AG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;gBACrD,kDAAkD;gBAClD,MAAM,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;YACtC,CAAC;YAED,OAAO,MAAM,CAAC;QACf,CAAC;QACD,MAAM,IAAI,MAAM,CAAC,iBAAiB,EAAE,CAAC;IACtC,CAAC,CAAC;AACJ,CAAC,CAAC,EAAE,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;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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import SbvrTypes from '@balena/sbvr-types';
2
+ // @ts-expect-error we are augmenting SbvrTypes w/ Numeric Big Integer
3
+ SbvrTypes.default['Numeric Big Integer'] = {
4
+ ...SbvrTypes.default['Big Integer'],
5
+ fetchProcessing(data) {
6
+ if (data == null || typeof data === 'number') {
7
+ return data;
8
+ }
9
+ if (typeof data === 'string') {
10
+ return parseInt(data, 10);
11
+ }
12
+ throw new Error('Fetched Numeric Big Integer value is not valid: ' + typeof data);
13
+ },
14
+ validate: SbvrTypes.default.Integer.validate,
15
+ };
16
+ //# sourceMappingURL=numeric-big-integer-hack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numeric-big-integer-hack.js","sourceRoot":"","sources":["../../../src/translations/v6/numeric-big-integer-hack.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,sEAAsE;AACtE,SAAS,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG;IAC1C,GAAG,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC;IAEnC,eAAe,CAAC,IAAI;QACnB,IAAI,IAAI,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC9C,OAAO,IAAI,CAAC;QACb,CAAC;QACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3B,CAAC;QACD,MAAM,IAAI,KAAK,CACd,kDAAkD,GAAG,OAAO,IAAI,CAChE,CAAC;IACH,CAAC;IAED,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ;CACiC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import './numeric-big-integer-hack.js';
1
2
  export declare const toVersion = "v7";
2
3
  export declare const v6AbstractSqlModel: import("@balena/abstract-sql-compiler").AbstractSqlModel;
3
4
  export declare const getV6Translations: (abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {
@@ -1,3 +1,4 @@
1
+ import './numeric-big-integer-hack.js';
1
2
  import { aliasFields, aliasTable, generateAbstractSqlModel, overrideFieldType, renameResourceField, } from '../../abstract-sql-utils.js';
2
3
  import * as userHasDirectAccessToApplication from '../../features/applications/models/user__has_direct_access_to__application.js';
3
4
  import * as DeviceAdditions from '../../features/devices/models/device-additions.js';
@@ -13,6 +14,7 @@ overrideFieldType(v6AbstractSqlModel, 'application', 'actor', 'Integer');
13
14
  for (const resource of ['device', 'application']) {
14
15
  renameResourceField(v6AbstractSqlModel, resource, 'env var name', 'name');
15
16
  }
17
+ overrideFieldType(v6AbstractSqlModel, 'image', 'image size', 'Numeric Big Integer');
16
18
  export const getV6Translations = (abstractSqlModel = v6AbstractSqlModel) => {
17
19
  const deviceFieldSet = new Set(abstractSqlModel.tables['device'].fields.map((f) => f.fieldName));
18
20
  return {
@@ -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,kBAAkB,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAChE,gCAAgC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAEhE,iBAAiB,CAAC,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAA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S,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC;6BAC5D;4BACD,MAAM;yBACN;qBACD,CAAC;iBACF;gBACD,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE,WAAW,SAAS,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;aACpE;SACD;QACD,+BAA+B,EAAE;YAChC,uGAAuG;YACvG,8GAA8G;YAC9G,wCAAwC;YACxC,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE;gBACZ,aAAa;gBACb;oBACC,QAAQ;oBACR;wBACC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC;wBAC9C,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"}
@@ -140,7 +140,7 @@ Term: image location
140
140
  Concept Type: Short Text (Type)
141
141
 
142
142
  Term: image size
143
- Concept Type: Big Integer (Type)
143
+ Concept Type: Integer (Type)
144
144
 
145
145
  Term: install date
146
146
  Concept Type: Date Time (Type)
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": "28.0.2-build-improve-typings-state-get-v2-f5b3ef8884a0e6f5813c07b2dd40f507ef85a176-1",
4
+ "version": "28.0.2-build-v6-number-image-image-size--8c6afedb680c4dfdb95fdcc1197de6764e0a10a4-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -49,7 +49,7 @@
49
49
  "@balena/env-parsing": "^1.2.0",
50
50
  "@balena/es-version": "^1.0.3",
51
51
  "@balena/node-metrics-gatherer": "^6.0.3",
52
- "@balena/pinejs": "^19.0.0",
52
+ "@balena/pinejs": "^19.0.1",
53
53
  "@balena/pinejs-webresource-cloudfront": "^0.2.1",
54
54
  "@sentry/node": "^8.30.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-09-17T11:46:49.011Z"
171
+ "publishedAt": "2024-09-17T14:03:24.329Z"
172
172
  }
173
173
  }