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',
|
'description',
|
||||||
'lastchange',
|
'lastchange',
|
||||||
],
|
],
|
||||||
['properties.bits_per_second', 'properties.packets_per_second'],
|
['properties', 'properties.bits_per_second', 'properties.packets_per_second'],
|
||||||
)
|
)
|
||||||
).map(
|
).map(
|
||||||
(sensor: {
|
(sensor: {
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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 {
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue