@balena/open-balena-api 37.3.0-build-extend-ip-and-mac-address-951a67e70ab549d377537c53d1b8a6daf4ebbe9f-1 → 37.3.1-build-bump-lf-to-abstract-sql-65c1ae06e14b651c715d6dd90a361ee44f2fc5d2-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.
package/dist/balena-model.d.ts
CHANGED
@@ -291,6 +291,7 @@ export interface CpuArchitecture {
|
|
291
291
|
modified_at: Types['Date Time']['Read'];
|
292
292
|
id: Types['Serial']['Read'];
|
293
293
|
slug: Types['Short Text']['Read'];
|
294
|
+
device_type?: Array<DeviceType['Read']>;
|
294
295
|
is_supported_by__device_type?: Array<DeviceType['Read']>;
|
295
296
|
};
|
296
297
|
Write: {
|
@@ -354,9 +355,13 @@ export interface DeviceType {
|
|
354
355
|
__id: DeviceFamily['Read']['id'];
|
355
356
|
} | [DeviceFamily['Read']] | [] | null;
|
356
357
|
is_default_for__application?: Array<Application['Read']>;
|
358
|
+
device?: Array<Device['Read']>;
|
357
359
|
describes__device?: Array<Device['Read']>;
|
358
360
|
device_type__is_referenced_by__alias?: Array<DeviceTypeAlias['Read']>;
|
359
361
|
device_type_alias?: Array<DeviceTypeAlias['Read']>;
|
362
|
+
supports__cpu_architecture: {
|
363
|
+
__id: CpuArchitecture['Read']['id'];
|
364
|
+
} | [CpuArchitecture['Read']];
|
360
365
|
is_referenced_by__alias?: Array<DeviceTypeAlias['Read']>;
|
361
366
|
};
|
362
367
|
Write: {
|
@@ -430,6 +435,7 @@ export interface Organization {
|
|
430
435
|
user__is_member_of__organization?: Array<OrganizationMembership['Read']>;
|
431
436
|
organization_membership?: Array<OrganizationMembership['Read']>;
|
432
437
|
includes__user?: Array<OrganizationMembership['Read']>;
|
438
|
+
is_of__application?: Array<Application['Read']>;
|
433
439
|
application?: Array<Application['Read']>;
|
434
440
|
};
|
435
441
|
Write: {
|
@@ -0,0 +1,46 @@
|
|
1
|
+
DO $$
|
2
|
+
BEGIN
|
3
|
+
IF NOT EXISTS (
|
4
|
+
SELECT 1
|
5
|
+
FROM information_schema.table_constraints tc
|
6
|
+
WHERE tc.CONSTRAINT_TYPE = 'CHECK'
|
7
|
+
AND tc.table_schema = CURRENT_SCHEMA()
|
8
|
+
AND tc.table_name = 'application'
|
9
|
+
AND tc.constraint_name = 'application$QqBV+60jro8TubDvmFVw6BwX9diAf/SNdJ1816Yxpx0='
|
10
|
+
) THEN
|
11
|
+
ALTER TABLE "application" ADD CONSTRAINT "application$QqBV+60jro8TubDvmFVw6BwX9diAf/SNdJ1816Yxpx0=" CHECK (
|
12
|
+
((32 = LENGTH("uuid")) AND (LENGTH("uuid") IS NOT NULL) AND ("uuid" IS NOT NULL))
|
13
|
+
);
|
14
|
+
END IF;
|
15
|
+
|
16
|
+
IF NOT EXISTS (
|
17
|
+
SELECT 1
|
18
|
+
FROM information_schema.table_constraints tc
|
19
|
+
WHERE tc.CONSTRAINT_TYPE = 'CHECK'
|
20
|
+
AND tc.table_schema = CURRENT_SCHEMA()
|
21
|
+
AND tc.table_name = 'image'
|
22
|
+
AND tc.constraint_name = 'image$lZeBT9pF01RBiHpxC0g1n9T+XNyAo0tNDoPKEgREbfA='
|
23
|
+
) THEN
|
24
|
+
ALTER TABLE "image" ADD CONSTRAINT "image$lZeBT9pF01RBiHpxC0g1n9T+XNyAo0tNDoPKEgREbfA=" CHECK (
|
25
|
+
(NOT (('success' = "status") AND ("status" IS NOT NULL) AND ("push timestamp" IS NULL)))
|
26
|
+
);
|
27
|
+
END IF;
|
28
|
+
|
29
|
+
IF NOT EXISTS (
|
30
|
+
SELECT 1
|
31
|
+
FROM information_schema.table_constraints tc
|
32
|
+
WHERE tc.CONSTRAINT_TYPE = 'CHECK'
|
33
|
+
AND tc.table_schema = CURRENT_SCHEMA()
|
34
|
+
AND tc.table_name = 'scheduled job run'
|
35
|
+
AND tc.constraint_name = 'scheduled job run$RKSl1c68Wu6bc7gqz25YsgDiydg6eJU5WorAXs6wPdk='
|
36
|
+
) THEN
|
37
|
+
ALTER TABLE "scheduled job run" ADD CONSTRAINT "scheduled job run$RKSl1c68Wu6bc7gqz25YsgDiydg6eJU5WorAXs6wPdk=" CHECK (
|
38
|
+
(NOT (('success' = "status") AND ("status" IS NOT NULL) AND ("end timestamp" IS NULL)))
|
39
|
+
);
|
40
|
+
END IF;
|
41
|
+
END;
|
42
|
+
$$;
|
43
|
+
|
44
|
+
ALTER TABLE "application" DROP CONSTRAINT IF EXISTS "application$mZf6fIjTFZaZUdsCaYh/lnRvAxaNt8fVao0CoBFRPWM=";
|
45
|
+
ALTER TABLE "image" DROP CONSTRAINT IF EXISTS "image$f+RwXXr0uXiXbinfGuS+2KUJUP/5ZYRn0X2OTXgwKDw=";
|
46
|
+
ALTER TABLE "scheduled job run" DROP CONSTRAINT IF EXISTS "scheduled job run$wRT+EFBynm3yyXccCcMT2Jy+lMxnqwEmH8VyLPRJ02Q=";
|
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": "37.3.
|
4
|
+
"version": "37.3.1-build-bump-lf-to-abstract-sql-65c1ae06e14b651c715d6dd90a361ee44f2fc5d2-1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -160,6 +160,9 @@
|
|
160
160
|
"sinon": "^20.0.0",
|
161
161
|
"supertest": "^7.1.1"
|
162
162
|
},
|
163
|
+
"overrides": {
|
164
|
+
"@balena/lf-to-abstract-sql": "5.0.7-build-multi-attrs-e4fab5433ca617bc72d89cc87a271025ec8549d4-1"
|
165
|
+
},
|
163
166
|
"engines": {
|
164
167
|
"node": "^22.2.0",
|
165
168
|
"npm": "^11.0.0"
|
@@ -174,6 +177,6 @@
|
|
174
177
|
"import": "@swc-node/register/esm-register"
|
175
178
|
},
|
176
179
|
"versionist": {
|
177
|
-
"publishedAt": "2025-06-
|
180
|
+
"publishedAt": "2025-06-19T20:47:28.117Z"
|
178
181
|
}
|
179
182
|
}
|