mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Sensor: Total Member Count
This commit is contained in:
parent
bb81b89795
commit
7861af8a03
5 changed files with 86 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"kind": "collectionType",
|
||||||
|
"collectionName": "total_member_count_sensors",
|
||||||
|
"info": {
|
||||||
|
"singularName": "total-member-count-sensor",
|
||||||
|
"pluralName": "total-member-count-sensors",
|
||||||
|
"displayName": "Sensor: Total Member Count"
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": true
|
||||||
|
},
|
||||||
|
"attributes": {
|
||||||
|
"value": {
|
||||||
|
"type": "integer",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"location": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"lastchange": {
|
||||||
|
"type": "biginteger"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* total-member-count-sensor controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::total-member-count-sensor.total-member-count-sensor');
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* total-member-count-sensor router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::total-member-count-sensor.total-member-count-sensor');
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
/**
|
||||||
|
* total-member-count-sensor service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::total-member-count-sensor.total-member-count-sensor');
|
||||||
34
types/generated/contentTypes.d.ts
vendored
34
types/generated/contentTypes.d.ts
vendored
|
|
@ -868,6 +868,39 @@ export interface ApiTemperatureSensorTemperatureSensor
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ApiTotalMemberCountSensorTotalMemberCountSensor
|
||||||
|
extends Struct.CollectionTypeSchema {
|
||||||
|
collectionName: 'total_member_count_sensors';
|
||||||
|
info: {
|
||||||
|
displayName: 'Sensor: Total Member Count';
|
||||||
|
pluralName: 'total-member-count-sensors';
|
||||||
|
singularName: 'total-member-count-sensor';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: true;
|
||||||
|
};
|
||||||
|
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::total-member-count-sensor.total-member-count-sensor'
|
||||||
|
> &
|
||||||
|
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.Integer & Schema.Attribute.Required;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface ApiWindSensorWindSensor extends Struct.CollectionTypeSchema {
|
export interface ApiWindSensorWindSensor extends Struct.CollectionTypeSchema {
|
||||||
collectionName: 'wind_sensors';
|
collectionName: 'wind_sensors';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -1425,6 +1458,7 @@ declare module '@strapi/strapi' {
|
||||||
'api::radiation-sensor.radiation-sensor': ApiRadiationSensorRadiationSensor;
|
'api::radiation-sensor.radiation-sensor': ApiRadiationSensorRadiationSensor;
|
||||||
'api::state.state': ApiStateState;
|
'api::state.state': ApiStateState;
|
||||||
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
|
||||||
|
'api::total-member-count-sensor.total-member-count-sensor': ApiTotalMemberCountSensorTotalMemberCountSensor;
|
||||||
'api::wind-sensor.wind-sensor': ApiWindSensorWindSensor;
|
'api::wind-sensor.wind-sensor': ApiWindSensorWindSensor;
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue