@balena/open-balena-api 30.2.1 → 30.2.2-build-device-name-required-c57cf6e800ae349d4022e2777f062cdbc7a5f932-1

Sign up to get free protection for your applications and to get access to all the features.
@@ -685,7 +685,7 @@ export interface Device {
685
685
  changed_api_heartbeat_state_on__date: Types['Date Time']['Read'] | null;
686
686
  uuid: Types['Text']['Read'];
687
687
  local_id: Types['Short Text']['Read'] | null;
688
- device_name: Types['Short Text']['Read'] | null;
688
+ device_name: Types['Short Text']['Read'];
689
689
  note: Types['Text']['Read'] | null;
690
690
  is_of__device_type: {
691
691
  __id: DeviceType['Read']['id'];
@@ -767,7 +767,7 @@ export interface Device {
767
767
  changed_api_heartbeat_state_on__date: Types['Date Time']['Write'] | null;
768
768
  uuid: Types['Text']['Write'];
769
769
  local_id: Types['Short Text']['Write'] | null;
770
- device_name: Types['Short Text']['Write'] | null;
770
+ device_name: Types['Short Text']['Write'];
771
771
  note: Types['Text']['Write'] | null;
772
772
  is_of__device_type: DeviceType['Write']['id'];
773
773
  belongs_to__application: Application['Write']['id'] | null;
package/dist/balena.sbvr CHANGED
@@ -522,7 +522,7 @@ Fact type: device has uuid
522
522
  Fact type: device has local id
523
523
  Necessity: each device has at most one local id.
524
524
  Fact type: device has device name
525
- Necessity: each device has at most one device name.
525
+ Necessity: each device has exactly one device name.
526
526
  Fact type: device has note
527
527
  Necessity: each device has at most one note.
528
528
  Fact type: device is of device type
@@ -1 +1 @@
1
- {"version":3,"file":"state-get-v2.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v2.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,SAAS,EACT,6BAA6B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBA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,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACjE,CAAC,CAAC"}
@@ -117,7 +117,7 @@ declare const getDevice: (req: import("@balena/pinejs/out/sbvr-api/permissions.j
117
117
  changed_api_heartbeat_state_on__date: import("@balena/sbvr-types").Types["Date Time"]["Read"] | null;
118
118
  uuid: import("@balena/sbvr-types").Types["Text"]["Read"];
119
119
  local_id: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
120
- device_name: import("@balena/sbvr-types").Types["Short Text"]["Read"] | null;
120
+ device_name: import("@balena/sbvr-types").Types["Short Text"]["Read"];
121
121
  note: import("@balena/sbvr-types").Types["Text"]["Read"] | null;
122
122
  is_of__device_type: {
123
123
  __id: import("../../../balena-model.js").DeviceType["Read"]["id"];
@@ -1 +1 @@
1
- {"version":3,"file":"state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v3.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACN,yBAAyB,EACzB,mBAAmB,EACnB,SAAS,EACT,qBAAqB,EACrB,6BAA6B,EAC7B,eAAe,EACf,uBAAuB,EACvB,aAAa,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAK9C,MAAM,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC;AA4F1B,MAAM,UAAU,mBAAmB,CAClC,MAAkC,EAClC,WAAiE,EACjE,OAAwB,EACxB,MAA0B,EAC1B,aAAkC;IAElC,IAAI,WAAW,GAAc,EAAE,CAAC;IAChC,MAAM,QAAQ,GACb,EAAE,CAAC;IAEJ,w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,CACnB,MAAM,eAAe,CAAC,CAAC,EAAE,EAAE,EAAE,CAC5B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAC9C,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CACnB,MAAsB,EACtB,kBAAsC,EACtC,MAA0B,EAC1B,aAAkC,EACD,EAAE;IACnC,IAAI,WAAgC,CAAC;IACrC,IAAI,OAAwB,CAAC;IAC7B,IAAI,kBAAkB,KAAK,4BAA4B,EAAE,CAAC;QACzD,WAAW,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAChD,OAAO,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;SAAM,CAAC;QACP,OAAO,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,OAAO,IAAI,CAAC;QACb,CAAC;QACD,WAAW,GACV,OAGA,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACN,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACnB,EAAE,EAAE,WAAW,CAAC,EAAE;YAClB,IAAI,EAAE,WAAW,CAAC,QAAQ;YAC1B,OAAO,EAAE,WAAW,CAAC,OAAO;YAC5B,KAAK,EAAE,WAAW,CAAC,YAAY;YAC/B,GAAG,CAAC,OAAO,IAAI,IAAI,IAAI;gBACtB,QAAQ,EAAE,mBAAmB,CAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,MAAM,EACN,aAAa,CACb;aACD,CAAC;SACF;KACD,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"state-get-v3.js","sourceRoot":"","sources":["../../../../src/features/device-state/routes/state-get-v3.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAC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A,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACN,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACnB,EAAE,EAAE,WAAW,CAAC,EAAE;YAClB,IAAI,EAAE,WAAW,CAAC,QAAQ;YAC1B,OAAO,EAAE,WAAW,CAAC,OAAO;YAC5B,KAAK,EAAE,WAAW,CAAC,YAAY;YAC/B,GAAG,CAAC,OAAO,IAAI,IAAI,IAAI;gBACtB,QAAQ,EAAE,mBAAmB,CAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,MAAM,EACN,aAAa,CACb;aACD,CAAC;SACF;KACD,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ UPDATE "device" SET
2
+ "device name" = ''
3
+ WHERE "device name" IS NULL;
4
+
5
+ ALTER TABLE "device"
6
+ ALTER COLUMN "device name" SET NOT NULL;
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": "30.2.1",
4
+ "version": "30.2.2-build-device-name-required-c57cf6e800ae349d4022e2777f062cdbc7a5f932-1",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -167,6 +167,6 @@
167
167
  "loader": "ts-node/esm/transpile-only"
168
168
  },
169
169
  "versionist": {
170
- "publishedAt": "2024-10-25T18:10:56.043Z"
170
+ "publishedAt": "2024-10-26T17:42:45.330Z"
171
171
  }
172
172
  }