@balena/open-balena-api 32.0.0 → 32.0.1-build-read-service-install-on-v7-from-device-service-1d5f1beaa232edd5373d3785666241bef614601f-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -208,6 +208,7 @@ export declare const translations: {
208
208
  getTranslations: (_abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {
209
209
  'device-installs-application-has-service name-has-name': {
210
210
  $toResource: string;
211
+ 'service install': ["SelectQuery", ["Select", [["ReferencedField", "si", string]]], ["From", ["Alias", ["Table", "service install"], "si"]], ["Where", ["And", ["Equals", ["ReferencedField", "device-installs-application-has-service name-has-name", "device"], ["ReferencedField", "si", string]], ["Equals", ["ReferencedField", "device-installs-application-has-service name-has-name", "service"], ["ReferencedField", "si", string]]]]];
211
212
  };
212
213
  };
213
214
  loadHooks: () => Promise<typeof import("./translations/v7/hooks.js")>;
@@ -3,5 +3,6 @@ export declare const v7AbstractSqlModel: import("@balena/abstract-sql-compiler")
3
3
  export declare const getV7Translations: (_abstractSqlModel?: import("@balena/abstract-sql-compiler").AbstractSqlModel) => {
4
4
  'device-installs-application-has-service name-has-name': {
5
5
  $toResource: string;
6
+ 'service install': ["SelectQuery", ["Select", [["ReferencedField", "si", string]]], ["From", ["Alias", ["Table", "service install"], "si"]], ["Where", ["And", ["Equals", ["ReferencedField", "device-installs-application-has-service name-has-name", "device"], ["ReferencedField", "si", string]], ["Equals", ["ReferencedField", "device-installs-application-has-service name-has-name", "service"], ["ReferencedField", "si", string]]]]];
6
7
  };
7
8
  };
@@ -10,6 +10,35 @@ export const getV7Translations = (_abstractSqlModel = v7AbstractSqlModel) => {
10
10
  return {
11
11
  'device-installs-application-has-service name-has-name': {
12
12
  $toResource: 'device-has-application-has-service name-has-name',
13
+ 'service install': [
14
+ 'SelectQuery',
15
+ ['Select', [['ReferencedField', 'si', 'id']]],
16
+ ['From', ['Alias', ['Table', 'service install'], 'si']],
17
+ [
18
+ 'Where',
19
+ [
20
+ 'And',
21
+ [
22
+ 'Equals',
23
+ [
24
+ 'ReferencedField',
25
+ 'device-installs-application-has-service name-has-name',
26
+ 'device',
27
+ ],
28
+ ['ReferencedField', 'si', 'device'],
29
+ ],
30
+ [
31
+ 'Equals',
32
+ [
33
+ 'ReferencedField',
34
+ 'device-installs-application-has-service name-has-name',
35
+ 'service',
36
+ ],
37
+ ['ReferencedField', 'si', 'installs-service'],
38
+ ],
39
+ ],
40
+ ],
41
+ ],
13
42
  },
14
43
  };
15
44
  };
@@ -1 +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;QACN,uDAAuD,EAAE;YACxD,WAAW,EAAE,kDAAkD;SAC/D;KAC4C,CAAC;AAChD,CAAC,CAAC"}
1
+ {"version":3,"file":"v7.js","sourceRoot":"","sources":["../../../src/translations/v7/v7.ts"],"names":[],"mappings":"AACA,OAAO,EACN,wBAAwB,EACxB,iBAAi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"name": "@balena/open-balena-api",
3
3
  "description": "Internet of things, Made Simple",
4
- "version": "32.0.0",
4
+ "version": "32.0.1-build-read-service-install-on-v7-from-device-service-1d5f1beaa232edd5373d3785666241bef614601f-3",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -166,6 +166,6 @@
166
166
  "loader": "ts-node/esm/transpile-only"
167
167
  },
168
168
  "versionist": {
169
- "publishedAt": "2024-12-05T18:43:16.753Z"
169
+ "publishedAt": "2024-12-09T12:06:41.095Z"
170
170
  }
171
171
  }