SpaceAPI: network_traffic: BigInt no more

This commit is contained in:
He4eT 2025-05-23 01:34:35 +02:00
commit f6887ba417
4 changed files with 13 additions and 9 deletions

View file

@ -350,7 +350,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
'description', 'description',
'lastchange', 'lastchange',
], ],
['properties.bits_per_second', 'properties.packets_per_second'], ['properties', 'properties.bits_per_second', 'properties.packets_per_second'],
) )
).map( ).map(
(sensor: { (sensor: {

View file

@ -2,16 +2,17 @@
"collectionName": "components_network_bits_per_seconds", "collectionName": "components_network_bits_per_seconds",
"info": { "info": {
"displayName": "Bits per Second", "displayName": "Bits per Second",
"icon": "oneToOne" "icon": "oneToOne",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"value": { "value": {
"type": "biginteger", "type": "integer",
"required": true "required": true
}, },
"maximum": { "maximum": {
"type": "biginteger" "type": "integer"
} }
} }
} }

View file

@ -2,12 +2,13 @@
"collectionName": "components_network_packets_per_seconds", "collectionName": "components_network_packets_per_seconds",
"info": { "info": {
"displayName": "Packets per Second", "displayName": "Packets per Second",
"icon": "oneToOne" "icon": "oneToOne",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"value": { "value": {
"type": "biginteger", "type": "integer",
"required": true "required": true
} }
} }

View file

@ -201,12 +201,13 @@ export interface MembershipPlans extends Struct.ComponentSchema {
export interface NetworkBitsPerSecond extends Struct.ComponentSchema { export interface NetworkBitsPerSecond extends Struct.ComponentSchema {
collectionName: 'components_network_bits_per_seconds'; collectionName: 'components_network_bits_per_seconds';
info: { info: {
description: '';
displayName: 'Bits per Second'; displayName: 'Bits per Second';
icon: 'oneToOne'; icon: 'oneToOne';
}; };
attributes: { attributes: {
maximum: Schema.Attribute.BigInteger; maximum: Schema.Attribute.Integer;
value: Schema.Attribute.BigInteger & Schema.Attribute.Required; value: Schema.Attribute.Integer & Schema.Attribute.Required;
}; };
} }
@ -225,11 +226,12 @@ export interface NetworkMachine extends Struct.ComponentSchema {
export interface NetworkPacketsPerSecond extends Struct.ComponentSchema { export interface NetworkPacketsPerSecond extends Struct.ComponentSchema {
collectionName: 'components_network_packets_per_seconds'; collectionName: 'components_network_packets_per_seconds';
info: { info: {
description: '';
displayName: 'Packets per Second'; displayName: 'Packets per Second';
icon: 'oneToOne'; icon: 'oneToOne';
}; };
attributes: { attributes: {
value: Schema.Attribute.BigInteger & Schema.Attribute.Required; value: Schema.Attribute.Integer & Schema.Attribute.Required;
}; };
} }