Sensor: Total Member Count

This commit is contained in:
He4eT 2025-04-02 00:14:50 +02:00
commit 7861af8a03
5 changed files with 86 additions and 0 deletions

View file

@ -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"
}
}
}

View file

@ -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');

View file

@ -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');

View file

@ -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');

View file

@ -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 {
collectionName: 'wind_sensors';
info: {
@ -1425,6 +1458,7 @@ declare module '@strapi/strapi' {
'api::radiation-sensor.radiation-sensor': ApiRadiationSensorRadiationSensor;
'api::state.state': ApiStateState;
'api::temperature-sensor.temperature-sensor': ApiTemperatureSensorTemperatureSensor;
'api::total-member-count-sensor.total-member-count-sensor': ApiTotalMemberCountSensorTotalMemberCountSensor;
'api::wind-sensor.wind-sensor': ApiWindSensorWindSensor;
'plugin::content-releases.release': PluginContentReleasesRelease;
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;