mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Sensors: Door Locked
This commit is contained in:
parent
a0b47f8d88
commit
e2c01abfd0
5 changed files with 86 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"kind": "collectionType",
|
||||||
|
"collectionName": "sensor_door_lockeds",
|
||||||
|
"info": {
|
||||||
|
"singularName": "sensor-door-locked",
|
||||||
|
"pluralName": "sensor-door-lockeds",
|
||||||
|
"displayName": "Sensor: Door Locked"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": false
|
||||||
|
},
|
||||||
|
"attributes": {
|
||||||
|
"value": {
|
||||||
|
"type": "boolean",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"lastchange": {
|
||||||
|
"type": "biginteger"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* sensor-door-locked controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::sensor-door-locked.sensor-door-locked');
|
||||||
7
src/api/sensor-door-locked/routes/sensor-door-locked.ts
Normal file
7
src/api/sensor-door-locked/routes/sensor-door-locked.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* sensor-door-locked router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::sensor-door-locked.sensor-door-locked');
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* sensor-door-locked service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::sensor-door-locked.sensor-door-locked');
|
||||||
34
types/generated/contentTypes.d.ts
vendored
34
types/generated/contentTypes.d.ts
vendored
|
|
@ -473,6 +473,39 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ApiSensorDoorLockedSensorDoorLocked
|
||||||
|
extends Struct.CollectionTypeSchema {
|
||||||
|
collectionName: 'sensor_door_lockeds';
|
||||||
|
info: {
|
||||||
|
displayName: 'Sensor: Door Locked';
|
||||||
|
pluralName: 'sensor-door-lockeds';
|
||||||
|
singularName: 'sensor-door-locked';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: false;
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
createdAt: Schema.Attribute.DateTime;
|
||||||
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
description: Schema.Attribute.Text;
|
||||||
|
lastchange: Schema.Attribute.BigInteger;
|
||||||
|
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||||
|
localizations: Schema.Attribute.Relation<
|
||||||
|
'oneToMany',
|
||||||
|
'api::sensor-door-locked.sensor-door-locked'
|
||||||
|
> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
location: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
|
name: Schema.Attribute.String;
|
||||||
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
|
updatedAt: Schema.Attribute.DateTime;
|
||||||
|
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
|
Schema.Attribute.Private;
|
||||||
|
value: Schema.Attribute.Boolean & Schema.Attribute.Required;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface ApiStateState extends Struct.SingleTypeSchema {
|
export interface ApiStateState extends Struct.SingleTypeSchema {
|
||||||
collectionName: 'states';
|
collectionName: 'states';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -1062,6 +1095,7 @@ declare module '@strapi/strapi' {
|
||||||
'api::carbondioxide-sensor.carbondioxide-sensor': ApiCarbondioxideSensorCarbondioxideSensor;
|
'api::carbondioxide-sensor.carbondioxide-sensor': ApiCarbondioxideSensorCarbondioxideSensor;
|
||||||
'api::event.event': ApiEventEvent;
|
'api::event.event': ApiEventEvent;
|
||||||
'api::hackspace.hackspace': ApiHackspaceHackspace;
|
'api::hackspace.hackspace': ApiHackspaceHackspace;
|
||||||
|
'api::sensor-door-locked.sensor-door-locked': ApiSensorDoorLockedSensorDoorLocked;
|
||||||
'api::state.state': ApiStateState;
|
'api::state.state': ApiStateState;
|
||||||
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue