@balena/open-balena-api 38.0.0-build-enum-fields-66f70b53f5822fc573178169e43b93274ecbad44-1 → 38.0.0-build-enum-fields-13a401c1cff5edfc27c31beeb2e08389ad2623c5-1

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.
@@ -471,7 +471,7 @@ export interface ServiceInstance {
471
471
  created_at: Types['Date Time']['Read'];
472
472
  modified_at: Types['Date Time']['Read'];
473
473
  id: Types['Serial']['Read'];
474
- service_type: Types['Short Text']['Read'];
474
+ service_type: 'vpn';
475
475
  ip_address: Types['Text']['Read'];
476
476
  last_heartbeat: Types['Date Time']['Read'];
477
477
  manages__device?: Array<Device['Read']>;
@@ -480,7 +480,7 @@ export interface ServiceInstance {
480
480
  created_at: Types['Date Time']['Write'];
481
481
  modified_at: Types['Date Time']['Write'];
482
482
  id: Types['Serial']['Write'];
483
- service_type: Types['Short Text']['Write'];
483
+ service_type: 'vpn';
484
484
  ip_address: Types['Text']['Write'];
485
485
  last_heartbeat: Types['Date Time']['Write'];
486
486
  };
@@ -1,3 +1,3 @@
1
- // These types were generated by @balena/abstract-sql-to-typescript v5.1.1
1
+ // These types were generated by @balena/abstract-sql-to-typescript v5.1.2
2
2
  export {};
3
3
  //# sourceMappingURL=balena-model.js.map
@@ -152,5 +152,18 @@ BEGIN
152
152
  ("status" IN ('running', 'success', 'failed', 'error', 'cancelled', 'interrupted'))
153
153
  );
154
154
  END IF;
155
+
156
+ IF NOT EXISTS (
157
+ SELECT 1
158
+ FROM information_schema.table_constraints tc
159
+ WHERE tc.CONSTRAINT_TYPE = 'CHECK'
160
+ AND tc.table_schema = CURRENT_SCHEMA()
161
+ AND tc.table_name = 'service instance'
162
+ AND tc.constraint_name = 'service instance_service type_check'
163
+ ) THEN
164
+ ALTER TABLE "service instance" ADD CONSTRAINT "service instance_service type_check" CHECK (
165
+ ("service type" IN ('vpn'))
166
+ );
167
+ END IF;
155
168
  END;
156
169
  $$;
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": "38.0.0-build-enum-fields-66f70b53f5822fc573178169e43b93274ecbad44-1",
4
+ "version": "38.0.0-build-enum-fields-13a401c1cff5edfc27c31beeb2e08389ad2623c5-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -45,12 +45,12 @@
45
45
  "prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module"
46
46
  },
47
47
  "dependencies": {
48
- "@balena/abstract-sql-compiler": "^10.2.10",
49
- "@balena/abstract-sql-to-typescript": "^5.1.1",
48
+ "@balena/abstract-sql-compiler": "^10.4.0",
49
+ "@balena/abstract-sql-to-typescript": "^5.1.2",
50
50
  "@balena/env-parsing": "^1.2.4",
51
51
  "@balena/es-version": "^1.0.3",
52
52
  "@balena/node-metrics-gatherer": "^6.0.3",
53
- "@balena/pinejs": "^21.6.9",
53
+ "@balena/pinejs": "^21.6.12",
54
54
  "@balena/pinejs-webresource-cloudfront": "^2.0.0",
55
55
  "@balena/pinejs-webresource-s3": "^2.1.2",
56
56
  "@opentelemetry/api": "^1.9.0",
@@ -174,6 +174,6 @@
174
174
  "import": "@swc-node/register/esm-register"
175
175
  },
176
176
  "versionist": {
177
- "publishedAt": "2025-06-25T09:21:27.650Z"
177
+ "publishedAt": "2025-06-26T16:22:33.448Z"
178
178
  }
179
179
  }