Class SeamHttpUnstableLocations

Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>
ltsVersion: "1.0.0" = seamApiLtsVersion
ltsVersion: string = seamApiLtsVersion

Methods

  • Parameters

    • Optionalbody: {
          acs_entrance_ids: string[];
          location_id: string;
      }
      • acs_entrance_ids: string[]

        IDs of the entrances that you want to add to the location.

      • location_id: string

        ID of the location to which you want to add entrances.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          device_ids: string[];
          location_id: string;
      }
      • device_ids: string[]

        IDs of the devices that you want to add to the location.

      • location_id: string

        ID of the location to which you want to add devices.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          acs_entrance_ids?: string[];
          device_ids?: string[];
          geolocation?: {
              latitude: number;
              longitude: number;
          };
          name: string;
          time_zone?: string;
      }
      • Optionalacs_entrance_ids?: string[]

        IDs of the entrances that you want to add to the new location.

      • Optionaldevice_ids?: string[]

        IDs of the devices that you want to add to the new location.

      • Optionalgeolocation?: {
            latitude: number;
            longitude: number;
        }

        Geolocation of the new location.

        • latitude: number
        • longitude: number
      • name: string

        Name of the new location.

      • Optionaltime_zone?: string

        Time zone of the new location.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        location: {
            created_at: string;
            display_name: string;
            geolocation?: {
                latitude: number;
                longitude: number;
            };
            location_id: string;
            name: string;
            time_zone?: string;
            workspace_id: string;
        };
    }>, "location">, "location">

  • Parameters

    • Optionalparams: {
          location_id: string;
      }
      • location_id: string

        ID of the location that you want to delete.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalparams: {
          location_id: string;
      }
      • location_id: string

        ID of the location that you want to get.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        location: {
            created_at: string;
            display_name: string;
            geolocation?: {
                latitude: number;
                longitude: number;
            };
            location_id: string;
            name: string;
            time_zone?: string;
            workspace_id: string;
        };
    }>, "location">, "location">

  • Parameters

    • Optionalparams: {}

      Returns SeamHttpRequest<SetNonNullable<Required<{
          locations: {
              created_at: string;
              display_name: string;
              geolocation?: {
                  latitude: number;
                  longitude: number;
              };
              location_id: string;
              name: string;
              time_zone?: string;
              workspace_id: string;
          }[];
      }>, "locations">, "locations">

    • Parameters

      • Optionalparams: {
            acs_entrance_ids: string[];
            location_id: string;
        }
        • acs_entrance_ids: string[]

          IDs of the entrances that you want to remove from the location.

        • location_id: string

          ID of the location from which you want to remove entrances.

      Returns SeamHttpRequest<void, undefined>

    • Parameters

      • Optionalparams: {
            device_ids: string[];
            location_id: string;
        }
        • device_ids: string[]

          IDs of the devices that you want to remove from the location.

        • location_id: string

          ID of the location from which you want to remove devices.

      Returns SeamHttpRequest<void, undefined>

    • Parameters

      • Optionalbody: {
            geolocation?: {
                latitude: number;
                longitude: number;
            };
            location_id: string;
            name?: string;
            time_zone?: string;
        }
        • Optionalgeolocation?: {
              latitude: number;
              longitude: number;
          }

          Geolocation of the location.

          • latitude: number
          • longitude: number
        • location_id: string

          ID of the location that you want to update.

        • Optionalname?: string

          Name of the location.

        • Optionaltime_zone?: string

          Time zone of the the location.

      Returns SeamHttpRequest<SetNonNullable<Required<{
          location: {
              created_at: string;
              display_name: string;
              geolocation?: {
                  latitude: number;
                  longitude: number;
              };
              location_id: string;
              name: string;
              time_zone?: string;
              workspace_id: string;
          };
      }>, "location">, "location">

    • Parameters

      • clientSessionToken: string

      Returns Promise<void>