@balena/open-balena-api 26.3.0-build-device-update-status-7002ae0d24920786af036670ea561c68fad4c4b5-1 → 26.3.1-build-otaviojacobi-test-3b12d120352cacdfbf8975e61adafba07ec11bc2-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v3.3.0
1
+ // These types were generated by @balena/abstract-sql-to-typescript v3.3.1
2
2
  export {};
3
3
  //# sourceMappingURL=balena-model.js.map
@@ -1,9 +1,10 @@
1
+ import { errors } from '@balena/pinejs';
1
2
  export const getApplicationSlug = (orgHandle, appName) => {
2
3
  if (orgHandle == null) {
3
- throw new Error('Missing organization handle');
4
+ throw new errors.BadRequestError('Missing organization handle');
4
5
  }
5
6
  if (appName == null) {
6
- throw new Error('Missing application name');
7
+ throw new errors.BadRequestError('Missing application name');
7
8
  }
8
9
  return `${orgHandle}/${appName}`.toLowerCase();
9
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/applications/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,SAAiB,EACjB,OAAe,EACN,EAAE;IACX,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC7C,CAAC;IAED,OAAO,GAAG,SAAS,IAAI,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;AAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/applications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,SAAiB,EACjB,OAAe,EACN,EAAE;IACX,IAAI,SAAS,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,0BAA0B,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,GAAG,SAAS,IAAI,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;AAChD,CAAC,CAAC"}
@@ -2,52 +2,52 @@ import type { RequestHandler } from 'express';
2
2
  import type { Device } from '../../balena-model.js';
3
3
  import type { Request } from 'express-serve-static-core';
4
4
  export declare const checkDeviceExistsIsFrozen: import("../../infra/cache/multi-level-memoizee.js").MemoizedFn<(uuid: string) => Promise<NoInfer<import("@balena/abstract-sql-to-typescript").PickDeferred<{
5
- created_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
6
- modified_at: import("@balena/sbvr-types").Types["Date Time"]["Read"];
7
- id: import("@balena/sbvr-types").Types["Serial"]["Read"];
5
+ created_at: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"];
6
+ modified_at: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"];
7
+ id: import("@balena/abstract-sql-to-typescript").Types["Serial"]["Read"];
8
8
  actor: {
9
9
  __id: import("../../balena-model.js").Actor["Read"]["id"];
10
10
  } | [import("../../balena-model.js").Actor["Read"]];
11
11
  api_heartbeat_state: "online" | "offline" | "timeout" | "unknown";
12
- uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
13
- local_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
14
- device_name: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
15
- note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
12
+ uuid: import("@balena/abstract-sql-to-typescript").Types["Text"]["Read"];
13
+ local_id: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
14
+ device_name: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
15
+ note: import("@balena/abstract-sql-to-typescript").Types["Text"]["Read"] | null;
16
16
  is_of__device_type: {
17
17
  __id: import("../../balena-model.js").DeviceType["Read"]["id"];
18
18
  } | [import("../../balena-model.js").DeviceType["Read"]];
19
19
  belongs_to__application: {
20
20
  __id: import("../../balena-model.js").Application["Read"]["id"];
21
21
  } | [import("../../balena-model.js").Application["Read"]] | [] | null;
22
- is_online: import("@balena/sbvr-types").Types["Boolean"]["Read"];
23
- last_connectivity_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
24
- is_connected_to_vpn: import("@balena/sbvr-types").Types["Boolean"]["Read"];
25
- last_vpn_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
26
- is_locked_until__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
27
- public_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
28
- ip_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
29
- mac_address: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
30
- memory_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
31
- memory_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
32
- storage_block_device: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
33
- storage_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
34
- storage_total: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
35
- cpu_usage: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
36
- cpu_temp: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
37
- is_undervolted: import("@balena/sbvr-types").Types["Boolean"]["Read"];
38
- cpu_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
22
+ is_online: import("@balena/abstract-sql-to-typescript").Types["Boolean"]["Read"];
23
+ last_connectivity_event: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"] | null;
24
+ is_connected_to_vpn: import("@balena/abstract-sql-to-typescript").Types["Boolean"]["Read"];
25
+ last_vpn_event: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"] | null;
26
+ is_locked_until__date: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"] | null;
27
+ public_address: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
28
+ ip_address: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
29
+ mac_address: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
30
+ memory_usage: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
31
+ memory_total: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
32
+ storage_block_device: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
33
+ storage_usage: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
34
+ storage_total: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
35
+ cpu_usage: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
36
+ cpu_temp: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
37
+ is_undervolted: import("@balena/abstract-sql-to-typescript").Types["Boolean"]["Read"];
38
+ cpu_id: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
39
39
  is_running__release: {
40
40
  __id: import("../../balena-model.js").Release["Read"]["id"];
41
41
  } | [import("../../balena-model.js").Release["Read"]] | [] | null;
42
- download_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
43
- status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
44
- os_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
45
- os_variant: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
46
- supervisor_version: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
47
- provisioning_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
48
- provisioning_state: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
49
- api_port: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
50
- api_secret: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
42
+ download_progress: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
43
+ status: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
44
+ os_version: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
45
+ os_variant: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
46
+ supervisor_version: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
47
+ provisioning_progress: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
48
+ provisioning_state: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
49
+ api_port: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
50
+ api_secret: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
51
51
  is_managed_by__service_instance: {
52
52
  __id: import("../../balena-model.js").ServiceInstance["Read"]["id"];
53
53
  } | [import("../../balena-model.js").ServiceInstance["Read"]] | [] | null;
@@ -64,11 +64,11 @@ export declare const checkDeviceExistsIsFrozen: import("../../infra/cache/multi-
64
64
  __id: import("../../balena-model.js").Release["Read"]["id"];
65
65
  } | [import("../../balena-model.js").Release["Read"]] | [] | null;
66
66
  update_status: "rejected" | "downloading" | "downloaded" | "applying changes" | "aborted" | "done" | null;
67
- last_update_status_event: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
68
- is_web_accessible: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
69
- is_frozen: import("@balena/sbvr-types").Types["Boolean"]["Read"] | null;
70
- overall_status: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
71
- overall_progress: import("@balena/sbvr-types").Types["Integer"]["Read"] | null;
67
+ last_update_status_event: import("@balena/abstract-sql-to-typescript").Types["Date Time"]["Read"] | null;
68
+ is_web_accessible: import("@balena/abstract-sql-to-typescript").Types["Boolean"]["Read"] | null;
69
+ is_frozen: import("@balena/abstract-sql-to-typescript").Types["Boolean"]["Read"] | null;
70
+ overall_status: import("@balena/abstract-sql-to-typescript").Types["Short Text"]["Read"] | null;
71
+ overall_progress: import("@balena/abstract-sql-to-typescript").Types["Integer"]["Read"] | null;
72
72
  device__has__env_var_name?: Array<import("../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
73
73
  device_environment_variable?: Array<import("../../balena-model.js").DeviceEnvironmentVariable["Read"]>;
74
74
  device__has__config_var_name?: Array<import("../../balena-model.js").DeviceConfigVariable["Read"]>;
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.3.0-build-device-update-status-7002ae0d24920786af036670ea561c68fad4c4b5-1",
4
+ "version": "26.3.1-build-otaviojacobi-test-3b12d120352cacdfbf8975e61adafba07ec11bc2-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "@balena/env-parsing": "^1.1.12",
49
49
  "@balena/es-version": "^1.0.3",
50
50
  "@balena/node-metrics-gatherer": "^6.0.3",
51
- "@balena/pinejs": "^17.2.1",
51
+ "@balena/pinejs": "^18.0.2",
52
52
  "@balena/pinejs-webresource-cloudfront": "^0.1.0",
53
53
  "@sentry/node": "^8.18.0",
54
54
  "@types/basic-auth": "^1.1.8",
@@ -167,6 +167,6 @@
167
167
  "loader": "ts-node/esm/transpile-only"
168
168
  },
169
169
  "versionist": {
170
- "publishedAt": "2024-08-13T14:02:04.836Z"
170
+ "publishedAt": "2024-08-19T17:26:32.242Z"
171
171
  }
172
172
  }