@balena/open-balena-api 28.0.12-build-improve-typings-state-get-v3-946356414e3360fe74acd833dd9a0e629d1e2a7a-3 → 28.0.12-build-improve-typings-state-get-v3-cabfe3a4d1bd5ed4e0fe916391d2f83ff6da36ac-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,14 +13,14 @@ export declare const getConfig: (device: {
13
13
  } | undefined, application?: {
14
14
  application_config_variable: EnvVarList;
15
15
  } | undefined) => Dictionary<string>;
16
- export type ExpandedService = Pick<Service['Read'], 'id' | 'service_name'> & {
16
+ type ExpandedService = Pick<Service['Read'], 'id' | 'service_name'> & {
17
17
  service_environment_variable: EnvVarList;
18
18
  service_label: Array<{
19
19
  label_name: string;
20
20
  value: string;
21
21
  }>;
22
22
  };
23
- export type ExpandedServiceInstall = {
23
+ type ExpandedServiceInstall = {
24
24
  id: ServiceInstall['Read']['id'];
25
25
  service: ExpandedService[];
26
26
  device_service_environment_variable: EnvVarList;
@@ -48,6 +48,8 @@ export declare function serviceInstallFromImage(deviceOrFleet: {
48
48
  __id: number;
49
49
  };
50
50
  }): ExpandedServiceInstall | ExpandedService | undefined;
51
+ /** @deprecated Use the strongly-typed overloads with `{ service_install }` or `{ service }` instead */
52
+ export declare function serviceInstallFromImage(deviceOrFleet: AnyObject, image?: AnyObject): undefined | AnyObject;
51
53
  export declare const formatImageLocation: (imageLocation: string) => string;
52
54
  export declare const filterDeviceConfig: (configVars: Dictionary<string>) => void;
53
55
  export declare const setReadTransaction: (newReadTransaction: dbModule.Database["readTransaction"]) => void;
@@ -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,EACr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,IAAI,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC;QACtD,MAAM,QAAQ,GAAG,MAAM,yBAAyB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC1D,yEAAyE;QACzE,IACC,QAAQ,IAAI,IAAI;YAChB,QAAQ,GAAG,4BAA4B,GAAG,IAAI,CAAC,GAAG,EAAE,EACnD,CAAC;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YAC3C,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,mEAAmE;gBACnE,MAAM,yBAAyB,CAAC,GAAG,CAAC,GAAG,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,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EAAE,IAAI,CAAC,CAAC;YAC3C,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACpB,mEAAmE;gBACnE,MAAM,yBAAyB,CAAC,GAAG,CAAC,GAAG,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"}
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.12-build-improve-typings-state-get-v3-946356414e3360fe74acd833dd9a0e629d1e2a7a-3",
4
+ "version": "28.0.12-build-improve-typings-state-get-v3-cabfe3a4d1bd5ed4e0fe916391d2f83ff6da36ac-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -168,6 +168,6 @@
168
168
  "loader": "ts-node/esm/transpile-only"
169
169
  },
170
170
  "versionist": {
171
- "publishedAt": "2024-09-30T10:13:17.794Z"
171
+ "publishedAt": "2024-09-30T10:50:23.796Z"
172
172
  }
173
173
  }