mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
SpaceAPI: network_traffic: BigInt no more
This commit is contained in:
parent
781aef6643
commit
f6887ba417
4 changed files with 13 additions and 9 deletions
|
|
@ -350,7 +350,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
|
|||
'description',
|
||||
'lastchange',
|
||||
],
|
||||
['properties.bits_per_second', 'properties.packets_per_second'],
|
||||
['properties', 'properties.bits_per_second', 'properties.packets_per_second'],
|
||||
)
|
||||
).map(
|
||||
(sensor: {
|
||||
|
|
|
|||
|
|
@ -2,16 +2,17 @@
|
|||
"collectionName": "components_network_bits_per_seconds",
|
||||
"info": {
|
||||
"displayName": "Bits per Second",
|
||||
"icon": "oneToOne"
|
||||
"icon": "oneToOne",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "biginteger",
|
||||
"type": "integer",
|
||||
"required": true
|
||||
},
|
||||
"maximum": {
|
||||
"type": "biginteger"
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,13 @@
|
|||
"collectionName": "components_network_packets_per_seconds",
|
||||
"info": {
|
||||
"displayName": "Packets per Second",
|
||||
"icon": "oneToOne"
|
||||
"icon": "oneToOne",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"value": {
|
||||
"type": "biginteger",
|
||||
"type": "integer",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
8
types/generated/components.d.ts
vendored
8
types/generated/components.d.ts
vendored
|
|
@ -201,12 +201,13 @@ export interface MembershipPlans extends Struct.ComponentSchema {
|
|||
export interface NetworkBitsPerSecond extends Struct.ComponentSchema {
|
||||
collectionName: 'components_network_bits_per_seconds';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Bits per Second';
|
||||
icon: 'oneToOne';
|
||||
};
|
||||
attributes: {
|
||||
maximum: Schema.Attribute.BigInteger;
|
||||
value: Schema.Attribute.BigInteger & Schema.Attribute.Required;
|
||||
maximum: Schema.Attribute.Integer;
|
||||
value: Schema.Attribute.Integer & Schema.Attribute.Required;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -225,11 +226,12 @@ export interface NetworkMachine extends Struct.ComponentSchema {
|
|||
export interface NetworkPacketsPerSecond extends Struct.ComponentSchema {
|
||||
collectionName: 'components_network_packets_per_seconds';
|
||||
info: {
|
||||
description: '';
|
||||
displayName: 'Packets per Second';
|
||||
icon: 'oneToOne';
|
||||
};
|
||||
attributes: {
|
||||
value: Schema.Attribute.BigInteger & Schema.Attribute.Required;
|
||||
value: Schema.Attribute.Integer & Schema.Attribute.Required;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue