opensensemap-client
    Preparing search index...

    Function getUserBoxes

    • Parameters

      Returns Promise<
          {
              code: "Ok";
              data: {
                  boxes: (
                      {
                          _id: string;
                          createdAt: string;
                          currentLocation: {
                              coordinates: | { height?: number; lat: number; lng: number }
                              | [number, number, undefined | number];
                              timestamp: string;
                              type: "Point";
                          };
                          descriptiom?: string;
                          exposure: "indoor"
                          | "outdoor"
                          | "mobile"
                          | "unknown";
                          grouptag?: ("indoor" | "outdoor" | "mobile" | "unknown")[];
                          image?: string;
                          lastMeasurementAt?: string;
                          loc: {
                              geometry: {
                                  coordinates:
                                      | { height?: ...; lat: ...; lng: ... }
                                      | [(...), (...), (...)];
                                  timestamp: string;
                                  type: "Point";
                              };
                              type: "Feature";
                          }[];
                          model: string;
                          name: string;
                          sensor: unknown[];
                          updatedAt: string;
                          weblink?: string;
                      } & {
                          access_token: string;
                          integrations: {
                              mqtt: | {
                                  connectionOptions: string;
                                  decodeOptions: string;
                                  enabled: boolean;
                                  messageFormat: "json"
                                  | "csv";
                                  topic: string;
                                  url: string;
                              }
                              | { enabled: false };
                              ttn?: {
                                  app_id: string;
                                  decodeOptions?: (...)[];
                                  dev_id: string;
                                  port: number;
                                  profile:
                                      | "json"
                                      | "lora-serialization"
                                      | "sensebox/home"
                                      | "debug"
                                      | "cayenne-lpp";
                              };
                          };
                          useAuth?: boolean;
                      }
                  )[];
                  boxes_count: number;
                  sharedBoxes: (
                      {
                          _id: string;
                          createdAt: string;
                          currentLocation: {
                              coordinates: | { height?: number; lat: number; lng: number }
                              | [number, number, undefined | number];
                              timestamp: string;
                              type: "Point";
                          };
                          descriptiom?: string;
                          exposure: "indoor"
                          | "outdoor"
                          | "mobile"
                          | "unknown";
                          grouptag?: ("indoor" | "outdoor" | "mobile" | "unknown")[];
                          image?: string;
                          lastMeasurementAt?: string;
                          loc: {
                              geometry: {
                                  coordinates:
                                      | { height?: ...; lat: ...; lng: ... }
                                      | [(...), (...), (...)];
                                  timestamp: string;
                                  type: "Point";
                              };
                              type: "Feature";
                          }[];
                          model: string;
                          name: string;
                          sensor: unknown[];
                          updatedAt: string;
                          weblink?: string;
                      } & {
                          access_token: string;
                          integrations: {
                              mqtt: | {
                                  connectionOptions: string;
                                  decodeOptions: string;
                                  enabled: boolean;
                                  messageFormat: "json"
                                  | "csv";
                                  topic: string;
                                  url: string;
                              }
                              | { enabled: false };
                              ttn?: {
                                  app_id: string;
                                  decodeOptions?: (...)[];
                                  dev_id: string;
                                  port: number;
                                  profile:
                                      | "json"
                                      | "lora-serialization"
                                      | "sensebox/home"
                                      | "debug"
                                      | "cayenne-lpp";
                              };
                          };
                          useAuth?: boolean;
                      }
                  )[];
              };
          },
      >