Browse Source

update meshtastic.js package version

pull/149/head
Sacha Weatherstone 3 years ago
parent
commit
a4a5061171
Failed to extract signature
  1. 2
      package.json
  2. 780
      pnpm-lock.yaml
  3. 2
      src/components/Dialog/DeviceNameDialog.tsx
  4. 4
      src/components/Dialog/ImportDialog.tsx
  5. 6
      src/components/Dialog/QRDialog.tsx
  6. 8
      src/components/PageComponents/Channel.tsx
  7. 2
      src/components/PageComponents/Config/Bluetooth.tsx
  8. 2
      src/components/PageComponents/Config/Device.tsx
  9. 2
      src/components/PageComponents/Config/Display.tsx
  10. 2
      src/components/PageComponents/Config/LoRa.tsx
  11. 2
      src/components/PageComponents/Config/Network.tsx
  12. 2
      src/components/PageComponents/Config/Position.tsx
  13. 2
      src/components/PageComponents/Config/Power.tsx
  14. 2
      src/components/PageComponents/Connect/BLE.tsx
  15. 2
      src/components/PageComponents/Connect/HTTP.tsx
  16. 2
      src/components/PageComponents/Connect/Serial.tsx
  17. 2
      src/components/PageComponents/Messages/ChannelChat.tsx
  18. 2
      src/components/PageComponents/Messages/Message.tsx
  19. 2
      src/components/PageComponents/Messages/MessageInput.tsx
  20. 2
      src/components/PageComponents/ModuleConfig/AmbientLighting.tsx
  21. 2
      src/components/PageComponents/ModuleConfig/Audio.tsx
  22. 2
      src/components/PageComponents/ModuleConfig/CannedMessage.tsx
  23. 14
      src/components/PageComponents/ModuleConfig/DetectionSensor.tsx
  24. 4
      src/components/PageComponents/ModuleConfig/ExternalNotification.tsx
  25. 2
      src/components/PageComponents/ModuleConfig/MQTT.tsx
  26. 5
      src/components/PageComponents/ModuleConfig/NeighborInfo.tsx
  27. 2
      src/components/PageComponents/ModuleConfig/RangeTest.tsx
  28. 2
      src/components/PageComponents/ModuleConfig/Serial.tsx
  29. 2
      src/components/PageComponents/ModuleConfig/StoreForward.tsx
  30. 2
      src/components/PageComponents/ModuleConfig/Telemetry.tsx
  31. 2
      src/core/stores/deviceStore.ts
  32. 2
      src/core/subscriptions.ts
  33. 6
      src/pages/Channels.tsx
  34. 2
      src/pages/Messages.tsx
  35. 2
      src/pages/Peers.tsx
  36. 2
      src/validation/channel.ts
  37. 2
      src/validation/config/bluetooth.ts
  38. 2
      src/validation/config/device.ts
  39. 2
      src/validation/config/display.ts
  40. 2
      src/validation/config/lora.ts
  41. 2
      src/validation/config/network.ts
  42. 2
      src/validation/config/position.ts
  43. 2
      src/validation/config/power.ts
  44. 2
      src/validation/moduleConfig/ambientLighting.ts
  45. 2
      src/validation/moduleConfig/audio.ts
  46. 2
      src/validation/moduleConfig/cannedMessage.ts
  47. 2
      src/validation/moduleConfig/detectionSensor.ts
  48. 2
      src/validation/moduleConfig/externalNotification.ts
  49. 2
      src/validation/moduleConfig/mqtt.ts
  50. 4
      src/validation/moduleConfig/neighborInfo.ts
  51. 2
      src/validation/moduleConfig/rangeTest.ts
  52. 2
      src/validation/moduleConfig/serial.ts
  53. 2
      src/validation/moduleConfig/storeForward.ts
  54. 2
      src/validation/moduleConfig/telemetry.ts

2
package.json

@ -21,7 +21,7 @@
"homepage": "https://meshtastic.org",
"dependencies": {
"@emeraldpay/hashicon-react": "^0.5.2",
"@meshtastic/meshtasticjs": "2.2.16-0",
"@meshtastic/js": "2.2.16-0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",

780
pnpm-lock.yaml

File diff suppressed because it is too large

2
src/components/Dialog/DeviceNameDialog.tsx

@ -10,7 +10,7 @@ import {
} from "@components/UI/Dialog.js";
import { Input } from "@components/UI/Input.js";
import { Label } from "@components/UI/Label.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
import { useForm } from "react-hook-form";
export interface User {

4
src/components/Dialog/ImportDialog.tsx

@ -12,7 +12,7 @@ import { Input } from "@components/UI/Input.js";
import { Label } from "@components/UI/Label.js";
import { Switch } from "@components/UI/Switch.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
import { toByteArray } from "base64-js";
import { useEffect, useState } from "react";
@ -33,7 +33,7 @@ export const ImportDialog = ({
const { connection } = useDevice();
useEffect(() => {
const base64String = QRCodeURL.split("e/#")[1]
const base64String = QRCodeURL.split("e/#")[1];
const paddedString = base64String
?.padEnd(base64String.length + ((4 - (base64String.length % 4)) % 4), "=")
.replace(/-/g, "+")

6
src/components/Dialog/QRDialog.tsx

@ -9,7 +9,7 @@ import {
} from "@components/UI/Dialog.js";
import { Input } from "@components/UI/Input.js";
import { Label } from "@components/UI/Label.js";
import { Protobuf, Types } from "@meshtastic/meshtasticjs";
import { Protobuf, Types } from "@meshtastic/js";
import { fromByteArray } from "base64-js";
import { ClipboardIcon } from "lucide-react";
import { useEffect, useState } from "react";
@ -70,8 +70,8 @@ export const QRDialog = ({
{channel.settings?.name.length
? channel.settings.name
: channel.role === Protobuf.Channel_Role.PRIMARY
? "Primary"
: `Channel: ${channel.index}`}
? "Primary"
: `Channel: ${channel.index}`}
</Label>
<Checkbox
key={channel.index}

8
src/components/PageComponents/Channel.tsx

@ -2,7 +2,7 @@ import type { ChannelValidation } from "@app/validation/channel.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useToast } from "@core/hooks/useToast.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
import { fromByteArray, toByteArray } from "base64-js";
export interface SettingsPanelProps {
@ -52,7 +52,8 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
type: "select",
name: "role",
label: "Role",
description: "Device telemetry is sent over PRIMARY. Only one PRIMARY allowed",
description:
"Device telemetry is sent over PRIMARY. Only one PRIMARY allowed",
properties: {
enumValue: Protobuf.Channel_Role,
},
@ -70,7 +71,8 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
type: "text",
name: "settings.name",
label: "Name",
description: "A unique name for the channel <12 bytes, leave blank for default",
description:
"A unique name for the channel <12 bytes, leave blank for default",
},
{
type: "toggle",

2
src/components/PageComponents/Config/Bluetooth.tsx

@ -1,7 +1,7 @@
import type { BluetoothValidation } from "@app/validation/config/bluetooth.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Bluetooth = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/Device.tsx

@ -1,7 +1,7 @@
import type { DeviceValidation } from "@app/validation/config/device.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Device = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/Display.tsx

@ -1,7 +1,7 @@
import type { DisplayValidation } from "@app/validation/config/display.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Display = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/LoRa.tsx

@ -1,7 +1,7 @@
import type { LoRaValidation } from "@app/validation/config/lora.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const LoRa = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/Network.tsx

@ -1,7 +1,7 @@
import type { NetworkValidation } from "@app/validation/config/network.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Network = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/Position.tsx

@ -1,7 +1,7 @@
import type { PositionValidation } from "@app/validation/config/position.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Position = (): JSX.Element => {
const { config, nodes, hardware, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Config/Power.tsx

@ -1,7 +1,7 @@
import type { PowerValidation } from "@app/validation/config/power.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Power = (): JSX.Element => {
const { config, setWorkingConfig } = useDevice();

2
src/components/PageComponents/Connect/BLE.tsx

@ -4,7 +4,7 @@ import { useAppStore } from "@core/stores/appStore.js";
import { useDeviceStore } from "@core/stores/deviceStore.js";
import { subscribeAll } from "@core/subscriptions.js";
import { randId } from "@core/utils/randId.js";
import { Constants, IBLEConnection } from "@meshtastic/meshtasticjs";
import { Constants, IBLEConnection } from "@meshtastic/js";
import { useCallback, useEffect, useState } from "react";
export const BLE = (): JSX.Element => {

2
src/components/PageComponents/Connect/HTTP.tsx

@ -6,7 +6,7 @@ import { useAppStore } from "@core/stores/appStore.js";
import { useDeviceStore } from "@core/stores/deviceStore.js";
import { subscribeAll } from "@core/subscriptions.js";
import { randId } from "@core/utils/randId.js";
import { IHTTPConnection } from "@meshtastic/meshtasticjs";
import { IHTTPConnection } from "@meshtastic/js";
import { Controller, useForm, useWatch } from "react-hook-form";
export const HTTP = (): JSX.Element => {

2
src/components/PageComponents/Connect/Serial.tsx

@ -4,7 +4,7 @@ import { useAppStore } from "@core/stores/appStore.js";
import { useDeviceStore } from "@core/stores/deviceStore.js";
import { subscribeAll } from "@core/subscriptions.js";
import { randId } from "@core/utils/randId.js";
import { ISerialConnection } from "@meshtastic/meshtasticjs";
import { ISerialConnection } from "@meshtastic/js";
import { useCallback, useEffect, useState } from "react";
export const Serial = (): JSX.Element => {

2
src/components/PageComponents/Messages/ChannelChat.tsx

@ -2,7 +2,7 @@ import { Subtle } from "@app/components/UI/Typography/Subtle.js";
import { MessageWithState, useDevice } from "@app/core/stores/deviceStore.js";
import { Message } from "@components/PageComponents/Messages/Message.js";
import { MessageInput } from "@components/PageComponents/Messages/MessageInput.js";
import type { Types } from "@meshtastic/meshtasticjs";
import type { Types } from "@meshtastic/js";
import { InboxIcon } from "lucide-react";
export interface ChannelChatProps {

2
src/components/PageComponents/Messages/Message.tsx

@ -1,6 +1,6 @@
import type { MessageWithState } from "@app/core/stores/deviceStore.js";
import { Hashicon } from "@emeraldpay/hashicon-react";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
import {
AlertCircleIcon,
CheckCircle2Icon,

2
src/components/PageComponents/Messages/MessageInput.tsx

@ -1,7 +1,7 @@
import { Button } from "@components/UI/Button.js";
import { Input } from "@components/UI/Input.js";
import { useDevice } from "@core/stores/deviceStore.js";
import type { Types } from "@meshtastic/meshtasticjs";
import type { Types } from "@meshtastic/js";
import { SendIcon } from "lucide-react";
export interface MessageInputProps {

2
src/components/PageComponents/ModuleConfig/AmbientLighting.tsx

@ -1,7 +1,7 @@
import { useDevice } from "@app/core/stores/deviceStore.js";
import type { AmbientLightingValidation } from "@app/validation/moduleConfig/ambientLighting.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const AmbientLighting = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/components/PageComponents/ModuleConfig/Audio.tsx

@ -1,7 +1,7 @@
import type { AudioValidation } from "@app/validation/moduleConfig/audio.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Audio = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/components/PageComponents/ModuleConfig/CannedMessage.tsx

@ -1,7 +1,7 @@
import type { CannedMessageValidation } from "@app/validation/moduleConfig/cannedMessage.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const CannedMessage = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

14
src/components/PageComponents/ModuleConfig/DetectionSensor.tsx

@ -1,7 +1,7 @@
import { useDevice } from "@app/core/stores/deviceStore.js";
import type { DetectionSensorValidation } from "@app/validation/moduleConfig/detectionSensor.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const DetectionSensor = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();
@ -36,7 +36,8 @@ export const DetectionSensor = (): JSX.Element => {
type: "number",
name: "minimumBroadcastSecs",
label: "Minimum Broadcast Seconds",
description: "The interval in seconds of how often we can send a message to the mesh when a state change is detected",
description:
"The interval in seconds of how often we can send a message to the mesh when a state change is detected",
disabledBy: [
{
fieldName: "enabled",
@ -47,7 +48,8 @@ export const DetectionSensor = (): JSX.Element => {
type: "number",
name: "stateBroadcastSecs",
label: "State Broadcast Seconds",
description: "The interval in seconds of how often we should send a message to the mesh with the current state regardless of changes",
description:
"The interval in seconds of how often we should send a message to the mesh with the current state regardless of changes",
disabledBy: [
{
fieldName: "enabled",
@ -69,7 +71,8 @@ export const DetectionSensor = (): JSX.Element => {
type: "text",
name: "name",
label: "Friendly Name",
description: "Used to format the message sent to mesh, max 20 Characters",
description:
"Used to format the message sent to mesh, max 20 Characters",
disabledBy: [
{
fieldName: "enabled",
@ -91,7 +94,8 @@ export const DetectionSensor = (): JSX.Element => {
type: "toggle",
name: "detectionTriggeredHigh",
label: "Detection Triggered High",
description: "Whether or not the GPIO pin state detection is triggered on HIGH (1), otherwise LOW (0)",
description:
"Whether or not the GPIO pin state detection is triggered on HIGH (1), otherwise LOW (0)",
disabledBy: [
{
fieldName: "enabled",

4
src/components/PageComponents/ModuleConfig/ExternalNotification.tsx

@ -1,7 +1,7 @@
import type { ExternalNotificationValidation } from "@app/validation/moduleConfig/externalNotification.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const ExternalNotification = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();
@ -189,7 +189,7 @@ export const ExternalNotification = (): JSX.Element => {
{
fieldName: "enabled",
},
]
],
},
],
},

2
src/components/PageComponents/ModuleConfig/MQTT.tsx

@ -1,7 +1,7 @@
import { useDevice } from "@app/core/stores/deviceStore.js";
import type { MQTTValidation } from "@app/validation/moduleConfig/mqtt.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const MQTT = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

5
src/components/PageComponents/ModuleConfig/NeighborInfo.tsx

@ -1,7 +1,7 @@
import { useDevice } from "@app/core/stores/deviceStore.js";
import type { NeighborInfoValidation } from "@app/validation/moduleConfig/neighborInfo.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const NeighborInfo = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();
@ -36,7 +36,8 @@ export const NeighborInfo = (): JSX.Element => {
type: "number",
name: "updateInterval",
label: "Update Interval",
description: "Interval in seconds of how often we should try to send our Neighbor Info to the mesh",
description:
"Interval in seconds of how often we should try to send our Neighbor Info to the mesh",
disabledBy: [
{
fieldName: "enabled",

2
src/components/PageComponents/ModuleConfig/RangeTest.tsx

@ -1,7 +1,7 @@
import type { RangeTestValidation } from "@app/validation/moduleConfig/rangeTest.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const RangeTest = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/components/PageComponents/ModuleConfig/Serial.tsx

@ -1,7 +1,7 @@
import type { SerialValidation } from "@app/validation/moduleConfig/serial.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Serial = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/components/PageComponents/ModuleConfig/StoreForward.tsx

@ -1,7 +1,7 @@
import type { StoreForwardValidation } from "@app/validation/moduleConfig/storeForward.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const StoreForward = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/components/PageComponents/ModuleConfig/Telemetry.tsx

@ -1,7 +1,7 @@
import type { TelemetryValidation } from "@app/validation/moduleConfig/telemetry.js";
import { DynamicForm } from "@components/Form/DynamicForm.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export const Telemetry = (): JSX.Element => {
const { moduleConfig, setWorkingModuleConfig } = useDevice();

2
src/core/stores/deviceStore.ts

@ -3,7 +3,7 @@ import { createContext, useContext } from "react";
import { produce } from "immer";
import { create } from "zustand";
import { Protobuf, Types } from "@meshtastic/meshtasticjs";
import { Protobuf, Types } from "@meshtastic/js";
export type Page = "messages" | "map" | "config" | "channels" | "peers";

2
src/core/subscriptions.ts

@ -1,5 +1,5 @@
import type { Device } from "@core/stores/deviceStore.js";
import { Protobuf, Types } from "@meshtastic/meshtasticjs";
import { Protobuf, Types } from "@meshtastic/js";
export const subscribeAll = (
device: Device,

6
src/pages/Channels.tsx

@ -9,7 +9,7 @@ import { Channel } from "@components/PageComponents/Channel.js";
import { PageLayout } from "@components/PageLayout.js";
import { Sidebar } from "@components/Sidebar.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Protobuf, Types } from "@meshtastic/meshtasticjs";
import { Protobuf, Types } from "@meshtastic/js";
import { ImportIcon, QrCodeIcon } from "lucide-react";
import { useState } from "react";
@ -17,8 +17,8 @@ export const getChannelName = (channel: Protobuf.Channel) =>
channel.settings?.name.length
? channel.settings?.name
: channel.index === 0
? "Primary"
: `Ch ${channel.index}`;
? "Primary"
: `Ch ${channel.index}`;
export const ChannelsPage = (): JSX.Element => {
const { channels, setDialogOpen } = useDevice();

2
src/pages/Messages.tsx

@ -5,7 +5,7 @@ import { SidebarSection } from "@components/UI/Sidebar/SidebarSection.js";
import { SidebarButton } from "@components/UI/Sidebar/sidebarButton.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Hashicon } from "@emeraldpay/hashicon-react";
import { Protobuf, Types } from "@meshtastic/meshtasticjs";
import { Protobuf, Types } from "@meshtastic/js";
import { getChannelName } from "@pages/Channels.js";
import { HashIcon } from "lucide-react";
import { useState } from "react";

2
src/pages/Peers.tsx

@ -4,7 +4,7 @@ import { Table } from "@components/generic/Table/index.js";
import { TimeAgo } from "@components/generic/Table/tmp/TimeAgo.js";
import { useDevice } from "@core/stores/deviceStore.js";
import { Hashicon } from "@emeraldpay/hashicon-react";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
import { base16 } from "rfc4648";
export const PeersPage = (): JSX.Element => {

2
src/validation/channel.ts

@ -7,7 +7,7 @@ import {
Length,
} from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class ChannelValidation
implements Omit<Protobuf.Channel, keyof Protobuf.native.Message | "settings">

2
src/validation/config/bluetooth.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class BluetoothValidation
implements

2
src/validation/config/device.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class DeviceValidation
implements Omit<Protobuf.Config_DeviceConfig, keyof Protobuf.native.Message>

2
src/validation/config/display.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class DisplayValidation
implements Omit<Protobuf.Config_DisplayConfig, keyof Protobuf.native.Message>

2
src/validation/config/lora.ts

@ -1,6 +1,6 @@
import { IsArray, IsBoolean, IsEnum, IsInt, Max, Min } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class LoRaValidation
implements Omit<Protobuf.Config_LoRaConfig, keyof Protobuf.native.Message>

2
src/validation/config/network.ts

@ -7,7 +7,7 @@ import {
Length,
} from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class NetworkValidation
implements

2
src/validation/config/position.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt, IsNumber } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class PositionValidation
implements Omit<Protobuf.Config_PositionConfig, keyof Protobuf.native.Message>

2
src/validation/config/power.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt, Max, Min } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class PowerValidation
implements Omit<Protobuf.Config_PowerConfig, keyof Protobuf.native.Message>

2
src/validation/moduleConfig/ambientLighting.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class AmbientLightingValidation
implements

2
src/validation/moduleConfig/audio.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class AudioValidation
implements

2
src/validation/moduleConfig/cannedMessage.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt, Length } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class CannedMessageValidation
implements

2
src/validation/moduleConfig/detectionSensor.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class DetectionSensorValidation
implements

2
src/validation/moduleConfig/externalNotification.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class ExternalNotificationValidation
implements

2
src/validation/moduleConfig/mqtt.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsString, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class MQTTValidation
implements

4
src/validation/moduleConfig/neighborInfo.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt, Length } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class NeighborInfoValidation
implements
@ -14,4 +14,4 @@ export class NeighborInfoValidation
@IsInt()
updateInterval: number;
}
}

2
src/validation/moduleConfig/rangeTest.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class RangeTestValidation
implements

2
src/validation/moduleConfig/serial.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Protobuf } from "@meshtastic/js";
export class SerialValidation
implements

2
src/validation/moduleConfig/storeForward.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class StoreForwardValidation
implements

2
src/validation/moduleConfig/telemetry.ts

@ -1,6 +1,6 @@
import { IsBoolean, IsInt } from "class-validator";
import type { Protobuf } from "@meshtastic/meshtasticjs";
import type { Protobuf } from "@meshtastic/js";
export class TelemetryValidation
implements

Loading…
Cancel
Save