@balena/open-balena-api 37.3.1-build-bump-lf-to-abstract-sql-c2bba0c608adbcd7294d60534f8dd2bdc4536659-1 → 37.3.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,7 +291,6 @@ 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']>;
|
295
294
|
is_supported_by__device_type?: Array<DeviceType['Read']>;
|
296
295
|
};
|
297
296
|
Write: {
|
@@ -355,13 +354,9 @@ export interface DeviceType {
|
|
355
354
|
__id: DeviceFamily['Read']['id'];
|
356
355
|
} | [DeviceFamily['Read']] | [] | null;
|
357
356
|
is_default_for__application?: Array<Application['Read']>;
|
358
|
-
device?: Array<Device['Read']>;
|
359
357
|
describes__device?: Array<Device['Read']>;
|
360
358
|
device_type__is_referenced_by__alias?: Array<DeviceTypeAlias['Read']>;
|
361
359
|
device_type_alias?: Array<DeviceTypeAlias['Read']>;
|
362
|
-
supports__cpu_architecture: {
|
363
|
-
__id: CpuArchitecture['Read']['id'];
|
364
|
-
} | [CpuArchitecture['Read']];
|
365
360
|
is_referenced_by__alias?: Array<DeviceTypeAlias['Read']>;
|
366
361
|
};
|
367
362
|
Write: {
|
@@ -435,7 +430,6 @@ export interface Organization {
|
|
435
430
|
user__is_member_of__organization?: Array<OrganizationMembership['Read']>;
|
436
431
|
organization_membership?: Array<OrganizationMembership['Read']>;
|
437
432
|
includes__user?: Array<OrganizationMembership['Read']>;
|
438
|
-
is_of__application?: Array<Application['Read']>;
|
439
433
|
application?: Array<Application['Read']>;
|
440
434
|
};
|
441
435
|
Write: {
|
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.1
|
4
|
+
"version": "37.3.1",
|
5
5
|
"license": "AGPL-3.0",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -157,7 +157,7 @@
|
|
157
157
|
"p-timeout": "^6.1.4",
|
158
158
|
"pinejs-client-supertest": "^3.0.1",
|
159
159
|
"rimraf": "^6.0.1",
|
160
|
-
"sinon": "^
|
160
|
+
"sinon": "^21.0.0",
|
161
161
|
"supertest": "^7.1.1"
|
162
162
|
},
|
163
163
|
"engines": {
|
@@ -174,6 +174,6 @@
|
|
174
174
|
"import": "@swc-node/register/esm-register"
|
175
175
|
},
|
176
176
|
"versionist": {
|
177
|
-
"publishedAt": "2025-06-
|
177
|
+
"publishedAt": "2025-06-20T11:23:43.232Z"
|
178
178
|
}
|
179
179
|
}
|
@@ -1,46 +0,0 @@
|
|
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=";
|