Welcome to our API!

NOWi GraphQL API

Contact

NOWi Sensors Support

contact@nowisensors.com

API Endpoints
https://graphql.nowisensors.com/graphql
Headers
# Your API token from the dashboard. Must be included in all API calls.
Authorization: x-api-key <YOUR_API_KEY>
Version

1.0.0

Queries

deviceAlertsByDevEuiAndDate

Response

Returns a ModelDeviceAlertConnection

Arguments
Name Description
devEui - ID!
date - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelDeviceAlertFilterInput
limit - Int
nextToken - String

Example

Query
query deviceAlertsByDevEuiAndDate(
  $devEui: ID!,
  $date: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelDeviceAlertFilterInput,
  $limit: Int,
  $nextToken: String
) {
  deviceAlertsByDevEuiAndDate(
    devEui: $devEui,
    date: $date,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceAlertFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": "4",
  "date": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelDeviceAlertFilterInput,
  "limit": 123,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "deviceAlertsByDevEuiAndDate": {
      "items": [DeviceAlert],
      "nextToken": "xyz789"
    }
  }
}

deviceConfigurationsByOrganizationID

Arguments
Name Description
organizationID - ID!
id - ModelIDKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelDeviceConfigurationFilterInput
limit - Int
nextToken - String

Example

Query
query deviceConfigurationsByOrganizationID(
  $organizationID: ID!,
  $id: ModelIDKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelDeviceConfigurationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  deviceConfigurationsByOrganizationID(
    organizationID: $organizationID,
    id: $id,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceConfigurationFragment
    }
    nextToken
  }
}
Variables
{
  "organizationID": "4",
  "id": ModelIDKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelDeviceConfigurationFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "deviceConfigurationsByOrganizationID": {
      "items": [DeviceConfiguration],
      "nextToken": "xyz789"
    }
  }
}

deviceRegistrationByDevEui

Arguments
Name Description
devEui - ID!
organizationID - ModelIDKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelDeviceRegistrationFilterInput
limit - Int
nextToken - String

Example

Query
query deviceRegistrationByDevEui(
  $devEui: ID!,
  $organizationID: ModelIDKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelDeviceRegistrationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  deviceRegistrationByDevEui(
    devEui: $devEui,
    organizationID: $organizationID,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceRegistrationFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": 4,
  "organizationID": ModelIDKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelDeviceRegistrationFilterInput,
  "limit": 123,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "deviceRegistrationByDevEui": {
      "items": [DeviceRegistration],
      "nextToken": "xyz789"
    }
  }
}

deviceRegistrationByOrgAndDev

Arguments
Name Description
organizationID - ID!
devEui - ModelIDKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelDeviceRegistrationFilterInput
limit - Int
nextToken - String

Example

Query
query deviceRegistrationByOrgAndDev(
  $organizationID: ID!,
  $devEui: ModelIDKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelDeviceRegistrationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  deviceRegistrationByOrgAndDev(
    organizationID: $organizationID,
    devEui: $devEui,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceRegistrationFragment
    }
    nextToken
  }
}
Variables
{
  "organizationID": "4",
  "devEui": ModelIDKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelDeviceRegistrationFilterInput,
  "limit": 123,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "deviceRegistrationByOrgAndDev": {
      "items": [DeviceRegistration],
      "nextToken": "xyz789"
    }
  }
}

getDetectedIssue

Response

Returns a DetectedIssue

Arguments
Name Description
id - ID!

Example

Query
query getDetectedIssue($id: ID!) {
  getDetectedIssue(id: $id) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getDetectedIssue": {
      "id": 4,
      "devEui": 4,
      "type": "lowBattery",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getDeviceAlert

Response

Returns a DeviceAlert

Arguments
Name Description
id - ID!

Example

Query
query getDeviceAlert($id: ID!) {
  getDeviceAlert(id: $id) {
    id
    date
    type
    errorType
    errorDescription
    data
    apiVersion
    devEui
    waterMeterID
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getDeviceAlert": {
      "id": 4,
      "date": AWSDateTime,
      "type": "abc123",
      "errorType": "xyz789",
      "errorDescription": "xyz789",
      "data": "abc123",
      "apiVersion": 123,
      "devEui": "4",
      "waterMeterID": 4,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getDeviceConfiguration

Response

Returns a DeviceConfiguration

Arguments
Name Description
id - ID!

Example

Query
query getDeviceConfiguration($id: ID!) {
  getDeviceConfiguration(id: $id) {
    id
    organizationID
    name
    startDate
    endDate
    pulsesPerGallon
    manufacturer
    model
    size
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getDeviceConfiguration": {
      "id": "4",
      "organizationID": "4",
      "name": "xyz789",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulsesPerGallon": 123.45,
      "manufacturer": "abc123",
      "model": "xyz789",
      "size": "abc123",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getDeviceRegistration

Response

Returns a DeviceRegistration

Arguments
Name Description
id - ID!

Example

Query
query getDeviceRegistration($id: ID!) {
  getDeviceRegistration(id: $id) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    devEui
    device {
      ...DeviceStateFragment
    }
    name
    alertsSilenced
    notes
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getDeviceRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": "4",
      "devEui": "4",
      "device": DeviceState,
      "name": "xyz789",
      "alertsSilenced": true,
      "notes": "abc123",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getDeviceState

Response

Returns a DeviceState

Arguments
Name Description
id - ID!

Example

Query
query getDeviceState($id: ID!) {
  getDeviceState(id: $id) {
    id
    waterMeterID
    waterMeter {
      ...WaterMeterFragment
    }
    date
    version
    loggingMagnetometerEnabled
    loggingEnabled
    uuid
    flowRate
    totalGallons
    totalPulses
    appDataAPIVersion
    temperatureC
    mode
    previousData
    batteryMv
    lastZeroPeriodDate
    zeroDate
    leakID
    leak {
      ...LeakDataFragment
    }
    analysisDate
    extendedFlowData
    extendedFlowID
    extendedFlow {
      ...LeakDataFragment
    }
    temperatureIssueID
    temperatureIssue {
      ...DetectedIssueFragment
    }
    batteryIssueID
    batteryIssue {
      ...DetectedIssueFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getDeviceState": {
      "id": 4,
      "waterMeterID": 4,
      "waterMeter": WaterMeter,
      "date": AWSDateTime,
      "version": "abc123",
      "loggingMagnetometerEnabled": false,
      "loggingEnabled": true,
      "uuid": "4",
      "flowRate": 987.65,
      "totalGallons": 123.45,
      "totalPulses": 987.65,
      "appDataAPIVersion": 987,
      "temperatureC": 987.65,
      "mode": "xyz789",
      "previousData": "xyz789",
      "batteryMv": 123.45,
      "lastZeroPeriodDate": AWSDateTime,
      "zeroDate": AWSDateTime,
      "leakID": 4,
      "leak": LeakData,
      "analysisDate": AWSDateTime,
      "extendedFlowData": "abc123",
      "extendedFlowID": "4",
      "extendedFlow": LeakData,
      "temperatureIssueID": 4,
      "temperatureIssue": DetectedIssue,
      "batteryIssueID": "4",
      "batteryIssue": DetectedIssue,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getHardwareData

Response

Returns a HardwareData

Arguments
Name Description
id - ID!

Example

Query
query getHardwareData($id: ID!) {
  getHardwareData(id: $id) {
    devEui
    waterMeterID
    date
    batteryPercent
    batteryMilliVolts
    apiVersion
    id
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getHardwareData": {
      "devEui": "4",
      "waterMeterID": "4",
      "date": AWSDateTime,
      "batteryPercent": 123.45,
      "batteryMilliVolts": 987.65,
      "apiVersion": 987,
      "id": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getLeakData

Response

Returns a LeakData

Arguments
Name Description
id - ID!

Example

Query
query getLeakData($id: ID!) {
  getLeakData(id: $id) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    pulsesPerMinute
    flowRate
    dataPoints {
      ...ModelLeakDataPointConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getLeakData": {
      "id": 4,
      "devEui": "4",
      "type": "normal",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "pulsesPerMinute": 987.65,
      "flowRate": 123.45,
      "dataPoints": ModelLeakDataPointConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getLeakDataPoint

Response

Returns a LeakDataPoint

Arguments
Name Description
id - ID!
endDate - AWSDateTime!

Example

Query
query getLeakDataPoint(
  $id: ID!,
  $endDate: AWSDateTime!
) {
  getLeakDataPoint(
    id: $id,
    endDate: $endDate
  ) {
    id
    devEui
    leakID
    waterMeterID
    startDate
    endDate
    pulses
    gallons
    pulsesPerMinute
    gallonsPerMinute
    createdAt
    updatedAt
  }
}
Variables
{"id": 4, "endDate": AWSDateTime}
Response
{
  "data": {
    "getLeakDataPoint": {
      "id": 4,
      "devEui": "4",
      "leakID": "4",
      "waterMeterID": "4",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulses": 987.65,
      "gallons": 987.65,
      "pulsesPerMinute": 987.65,
      "gallonsPerMinute": 123.45,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getLocation

Response

Returns a Location

Arguments
Name Description
id - ID!

Example

Query
query getLocation($id: ID!) {
  getLocation(id: $id) {
    id
    address
    addressShort
    name
    googlePlaceID
    organizationID
    alertsSilenced
    notes
    waterMeters {
      ...ModelWaterMeterConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getLocation": {
      "id": 4,
      "address": "abc123",
      "addressShort": "abc123",
      "name": "abc123",
      "googlePlaceID": "abc123",
      "organizationID": 4,
      "alertsSilenced": false,
      "notes": "xyz789",
      "waterMeters": ModelWaterMeterConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getOrganization

Response

Returns an Organization

Arguments
Name Description
id - ID!

Example

Query
query getOrganization($id: ID!) {
  getOrganization(id: $id) {
    id
    name
    customerID
    deviceRegistrations {
      ...ModelDeviceRegistrationConnectionFragment
    }
    deviceConfigurations {
      ...ModelDeviceConfigurationConnectionFragment
    }
    reportRegistrations {
      ...ModelReportRegistrationConnectionFragment
    }
    minimumMonthlyCost
    costPerGallonOfWater
    alertSubscriptions {
      ...ModelOrganizationAlertSubscriptionConnectionFragment
    }
    locations {
      ...ModelLocationConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getOrganization": {
      "id": 4,
      "name": "xyz789",
      "customerID": 4,
      "deviceRegistrations": ModelDeviceRegistrationConnection,
      "deviceConfigurations": ModelDeviceConfigurationConnection,
      "reportRegistrations": ModelReportRegistrationConnection,
      "minimumMonthlyCost": 123.45,
      "costPerGallonOfWater": 123.45,
      "alertSubscriptions": ModelOrganizationAlertSubscriptionConnection,
      "locations": ModelLocationConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getOrganizationAlertSubscription

Response

Returns an OrganizationAlertSubscription

Arguments
Name Description
id - ID!

Example

Query
query getOrganizationAlertSubscription($id: ID!) {
  getOrganizationAlertSubscription(id: $id) {
    id
    organizationID
    protocol
    endpoint
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getOrganizationAlertSubscription": {
      "id": 4,
      "organizationID": "4",
      "protocol": "sms",
      "endpoint": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getReportRegistration

Response

Returns a ReportRegistration

Arguments
Name Description
id - ID!

Example

Query
query getReportRegistration($id: ID!) {
  getReportRegistration(id: $id) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    email
    interval
    lastReportDate
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getReportRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": "4",
      "email": "abc123",
      "interval": "DAILY",
      "lastReportDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getSensorData

Response

Returns a SensorData

Arguments
Name Description
id - ID!

Example

Query
query getSensorData($id: ID!) {
  getSensorData(id: $id) {
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    id
    createdAt
    updatedAt
  }
}
Variables
{"id": "4"}
Response
{
  "data": {
    "getSensorData": {
      "devEui": 4,
      "waterMeterID": 4,
      "date": AWSDateTime,
      "flowRate": 123.45,
      "totalGallons": 987.65,
      "temperatureC": 123.45,
      "rssi": 987.65,
      "snr": 987.65,
      "apiVersion": 987,
      "totalPulses": 987.65,
      "fcnt": 123,
      "hotspots": [Hotspot],
      "id": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getUserData

Response

Returns a UserData

Arguments
Name Description
id - ID!

Example

Query
query getUserData($id: ID!) {
  getUserData(id: $id) {
    id
    nowi
    currentOrganizationID
    currentOrganization {
      ...OrganizationFragment
    }
    organizationRegistrations {
      ...ModelUserOrganizationRegistrationConnectionFragment
    }
    darkModeEnabled
    waterUnits
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getUserData": {
      "id": 4,
      "nowi": false,
      "currentOrganizationID": 4,
      "currentOrganization": Organization,
      "organizationRegistrations": ModelUserOrganizationRegistrationConnection,
      "darkModeEnabled": false,
      "waterUnits": "GALLONS",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

getWaterMeter

Response

Returns a WaterMeter

Arguments
Name Description
id - ID!

Example

Query
query getWaterMeter($id: ID!) {
  getWaterMeter(id: $id) {
    id
    name
    units
    configurationID
    configuration {
      ...DeviceConfigurationFragment
    }
    deviceID
    device {
      ...DeviceStateFragment
    }
    locationID
    location {
      ...LocationFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{"id": 4}
Response
{
  "data": {
    "getWaterMeter": {
      "id": 4,
      "name": "xyz789",
      "units": 123,
      "configurationID": 4,
      "configuration": DeviceConfiguration,
      "deviceID": 4,
      "device": DeviceState,
      "locationID": 4,
      "location": Location,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

hardwareDataByDate

Response

Returns a ModelHardwareDataConnection

Arguments
Name Description
devEui - ID!
date - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelHardwareDataFilterInput
limit - Int
nextToken - String

Example

Query
query hardwareDataByDate(
  $devEui: ID!,
  $date: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelHardwareDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  hardwareDataByDate(
    devEui: $devEui,
    date: $date,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...HardwareDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": "4",
  "date": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelHardwareDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "hardwareDataByDate": {
      "items": [HardwareData],
      "nextToken": "abc123"
    }
  }
}

leakDataPointsByLeakIDAndEndDate

Response

Returns a ModelLeakDataPointConnection

Arguments
Name Description
leakID - ID!
endDate - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelLeakDataPointFilterInput
limit - Int
nextToken - String

Example

Query
query leakDataPointsByLeakIDAndEndDate(
  $leakID: ID!,
  $endDate: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelLeakDataPointFilterInput,
  $limit: Int,
  $nextToken: String
) {
  leakDataPointsByLeakIDAndEndDate(
    leakID: $leakID,
    endDate: $endDate,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...LeakDataPointFragment
    }
    nextToken
  }
}
Variables
{
  "leakID": "4",
  "endDate": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelLeakDataPointFilterInput,
  "limit": 987,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "leakDataPointsByLeakIDAndEndDate": {
      "items": [LeakDataPoint],
      "nextToken": "xyz789"
    }
  }
}

leaksByDevEuiAndEndDate

Response

Returns a ModelLeakDataConnection

Arguments
Name Description
devEui - ID!
endDate - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelLeakDataFilterInput
limit - Int
nextToken - String

Example

Query
query leaksByDevEuiAndEndDate(
  $devEui: ID!,
  $endDate: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelLeakDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  leaksByDevEuiAndEndDate(
    devEui: $devEui,
    endDate: $endDate,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...LeakDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": "4",
  "endDate": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelLeakDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "leaksByDevEuiAndEndDate": {
      "items": [LeakData],
      "nextToken": "xyz789"
    }
  }
}

leaksByDevEuiAndStartDate

Response

Returns a ModelLeakDataConnection

Arguments
Name Description
devEui - ID!
startDate - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelLeakDataFilterInput
limit - Int
nextToken - String

Example

Query
query leaksByDevEuiAndStartDate(
  $devEui: ID!,
  $startDate: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelLeakDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  leaksByDevEuiAndStartDate(
    devEui: $devEui,
    startDate: $startDate,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...LeakDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": 4,
  "startDate": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelLeakDataFilterInput,
  "limit": 987,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "leaksByDevEuiAndStartDate": {
      "items": [LeakData],
      "nextToken": "abc123"
    }
  }
}

listDetectedIssues

Response

Returns a ModelDetectedIssueConnection

Arguments
Name Description
filter - ModelDetectedIssueFilterInput
limit - Int
nextToken - String

Example

Query
query listDetectedIssues(
  $filter: ModelDetectedIssueFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listDetectedIssues(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DetectedIssueFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelDetectedIssueFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listDetectedIssues": {
      "items": [DetectedIssue],
      "nextToken": "abc123"
    }
  }
}

listDeviceAlerts

Response

Returns a ModelDeviceAlertConnection

Arguments
Name Description
filter - ModelDeviceAlertFilterInput
limit - Int
nextToken - String

Example

Query
query listDeviceAlerts(
  $filter: ModelDeviceAlertFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listDeviceAlerts(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceAlertFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelDeviceAlertFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listDeviceAlerts": {
      "items": [DeviceAlert],
      "nextToken": "xyz789"
    }
  }
}

listDeviceConfigurations

Arguments
Name Description
filter - ModelDeviceConfigurationFilterInput
limit - Int
nextToken - String

Example

Query
query listDeviceConfigurations(
  $filter: ModelDeviceConfigurationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listDeviceConfigurations(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceConfigurationFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelDeviceConfigurationFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listDeviceConfigurations": {
      "items": [DeviceConfiguration],
      "nextToken": "abc123"
    }
  }
}

listDeviceRegistrations

Arguments
Name Description
filter - ModelDeviceRegistrationFilterInput
limit - Int
nextToken - String

Example

Query
query listDeviceRegistrations(
  $filter: ModelDeviceRegistrationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listDeviceRegistrations(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceRegistrationFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelDeviceRegistrationFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listDeviceRegistrations": {
      "items": [DeviceRegistration],
      "nextToken": "xyz789"
    }
  }
}

listDeviceStates

Response

Returns a ModelDeviceStateConnection

Arguments
Name Description
filter - ModelDeviceStateFilterInput
limit - Int
nextToken - String

Example

Query
query listDeviceStates(
  $filter: ModelDeviceStateFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listDeviceStates(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...DeviceStateFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelDeviceStateFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listDeviceStates": {
      "items": [DeviceState],
      "nextToken": "abc123"
    }
  }
}

listHardwareData

Response

Returns a ModelHardwareDataConnection

Arguments
Name Description
filter - ModelHardwareDataFilterInput
limit - Int
nextToken - String

Example

Query
query listHardwareData(
  $filter: ModelHardwareDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listHardwareData(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...HardwareDataFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelHardwareDataFilterInput,
  "limit": 987,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listHardwareData": {
      "items": [HardwareData],
      "nextToken": "abc123"
    }
  }
}

listLeakData

Response

Returns a ModelLeakDataConnection

Arguments
Name Description
filter - ModelLeakDataFilterInput
limit - Int
nextToken - String

Example

Query
query listLeakData(
  $filter: ModelLeakDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listLeakData(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...LeakDataFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelLeakDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listLeakData": {
      "items": [LeakData],
      "nextToken": "xyz789"
    }
  }
}

listLeakDataPoints

Response

Returns a ModelLeakDataPointConnection

Arguments
Name Description
id - ID
endDate - ModelStringKeyConditionInput
filter - ModelLeakDataPointFilterInput
limit - Int
nextToken - String
sortDirection - ModelSortDirection

Example

Query
query listLeakDataPoints(
  $id: ID,
  $endDate: ModelStringKeyConditionInput,
  $filter: ModelLeakDataPointFilterInput,
  $limit: Int,
  $nextToken: String,
  $sortDirection: ModelSortDirection
) {
  listLeakDataPoints(
    id: $id,
    endDate: $endDate,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken,
    sortDirection: $sortDirection
  ) {
    items {
      ...LeakDataPointFragment
    }
    nextToken
  }
}
Variables
{
  "id": 4,
  "endDate": ModelStringKeyConditionInput,
  "filter": ModelLeakDataPointFilterInput,
  "limit": 987,
  "nextToken": "abc123",
  "sortDirection": "ASC"
}
Response
{
  "data": {
    "listLeakDataPoints": {
      "items": [LeakDataPoint],
      "nextToken": "xyz789"
    }
  }
}

listLocations

Response

Returns a ModelLocationConnection

Arguments
Name Description
filter - ModelLocationFilterInput
limit - Int
nextToken - String

Example

Query
query listLocations(
  $filter: ModelLocationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listLocations(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...LocationFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelLocationFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listLocations": {
      "items": [Location],
      "nextToken": "abc123"
    }
  }
}

listOrganizationAlertSubscriptions

Arguments
Name Description
filter - ModelOrganizationAlertSubscriptionFilterInput
limit - Int
nextToken - String

Example

Query
query listOrganizationAlertSubscriptions(
  $filter: ModelOrganizationAlertSubscriptionFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listOrganizationAlertSubscriptions(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...OrganizationAlertSubscriptionFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelOrganizationAlertSubscriptionFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listOrganizationAlertSubscriptions": {
      "items": [OrganizationAlertSubscription],
      "nextToken": "xyz789"
    }
  }
}

listOrganizations

Response

Returns a ModelOrganizationConnection

Arguments
Name Description
filter - ModelOrganizationFilterInput
limit - Int
nextToken - String

Example

Query
query listOrganizations(
  $filter: ModelOrganizationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listOrganizations(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...OrganizationFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelOrganizationFilterInput,
  "limit": 123,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listOrganizations": {
      "items": [Organization],
      "nextToken": "abc123"
    }
  }
}

listReportRegistrations

Arguments
Name Description
filter - ModelReportRegistrationFilterInput
limit - Int
nextToken - String

Example

Query
query listReportRegistrations(
  $filter: ModelReportRegistrationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listReportRegistrations(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...ReportRegistrationFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelReportRegistrationFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listReportRegistrations": {
      "items": [ReportRegistration],
      "nextToken": "xyz789"
    }
  }
}

listSensorData

Response

Returns a ModelSensorDataConnection

Arguments
Name Description
filter - ModelSensorDataFilterInput
limit - Int
nextToken - String

Example

Query
query listSensorData(
  $filter: ModelSensorDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listSensorData(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...SensorDataFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelSensorDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listSensorData": {
      "items": [SensorData],
      "nextToken": "xyz789"
    }
  }
}

listUserData

Response

Returns a ModelUserDataConnection

Arguments
Name Description
filter - ModelUserDataFilterInput
limit - Int
nextToken - String

Example

Query
query listUserData(
  $filter: ModelUserDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listUserData(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...UserDataFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelUserDataFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "listUserData": {
      "items": [UserData],
      "nextToken": "xyz789"
    }
  }
}

listWaterMeters

Response

Returns a ModelWaterMeterConnection

Arguments
Name Description
filter - ModelWaterMeterFilterInput
limit - Int
nextToken - String

Example

Query
query listWaterMeters(
  $filter: ModelWaterMeterFilterInput,
  $limit: Int,
  $nextToken: String
) {
  listWaterMeters(
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...WaterMeterFragment
    }
    nextToken
  }
}
Variables
{
  "filter": ModelWaterMeterFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "listWaterMeters": {
      "items": [WaterMeter],
      "nextToken": "abc123"
    }
  }
}

organizationAlertSubscriptionsByOrganizationID

Arguments
Name Description
organizationID - ID!
id - ModelIDKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelOrganizationAlertSubscriptionFilterInput
limit - Int
nextToken - String

Example

Query
query organizationAlertSubscriptionsByOrganizationID(
  $organizationID: ID!,
  $id: ModelIDKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelOrganizationAlertSubscriptionFilterInput,
  $limit: Int,
  $nextToken: String
) {
  organizationAlertSubscriptionsByOrganizationID(
    organizationID: $organizationID,
    id: $id,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...OrganizationAlertSubscriptionFragment
    }
    nextToken
  }
}
Variables
{
  "organizationID": "4",
  "id": ModelIDKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelOrganizationAlertSubscriptionFilterInput,
  "limit": 123,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "organizationAlertSubscriptionsByOrganizationID": {
      "items": [OrganizationAlertSubscription],
      "nextToken": "abc123"
    }
  }
}

organizationByCustomerID

Response

Returns a ModelOrganizationConnection

Arguments
Name Description
customerID - ID!
sortDirection - ModelSortDirection
filter - ModelOrganizationFilterInput
limit - Int
nextToken - String

Example

Query
query organizationByCustomerID(
  $customerID: ID!,
  $sortDirection: ModelSortDirection,
  $filter: ModelOrganizationFilterInput,
  $limit: Int,
  $nextToken: String
) {
  organizationByCustomerID(
    customerID: $customerID,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...OrganizationFragment
    }
    nextToken
  }
}
Variables
{
  "customerID": "4",
  "sortDirection": "ASC",
  "filter": ModelOrganizationFilterInput,
  "limit": 987,
  "nextToken": "xyz789"
}
Response
{
  "data": {
    "organizationByCustomerID": {
      "items": [Organization],
      "nextToken": "abc123"
    }
  }
}

sensorDataByDate

Response

Returns a ModelSensorDataConnection

Arguments
Name Description
devEui - ID!
date - ModelStringKeyConditionInput
sortDirection - ModelSortDirection
filter - ModelSensorDataFilterInput
limit - Int
nextToken - String

Example

Query
query sensorDataByDate(
  $devEui: ID!,
  $date: ModelStringKeyConditionInput,
  $sortDirection: ModelSortDirection,
  $filter: ModelSensorDataFilterInput,
  $limit: Int,
  $nextToken: String
) {
  sensorDataByDate(
    devEui: $devEui,
    date: $date,
    sortDirection: $sortDirection,
    filter: $filter,
    limit: $limit,
    nextToken: $nextToken
  ) {
    items {
      ...SensorDataFragment
    }
    nextToken
  }
}
Variables
{
  "devEui": 4,
  "date": ModelStringKeyConditionInput,
  "sortDirection": "ASC",
  "filter": ModelSensorDataFilterInput,
  "limit": 987,
  "nextToken": "abc123"
}
Response
{
  "data": {
    "sensorDataByDate": {
      "items": [SensorData],
      "nextToken": "abc123"
    }
  }
}

Mutations

createDetectedIssue

Response

Returns a DetectedIssue

Arguments
Name Description
input - CreateDetectedIssueInput!
condition - ModelDetectedIssueConditionInput

Example

Query
mutation createDetectedIssue(
  $input: CreateDetectedIssueInput!,
  $condition: ModelDetectedIssueConditionInput
) {
  createDetectedIssue(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateDetectedIssueInput,
  "condition": ModelDetectedIssueConditionInput
}
Response
{
  "data": {
    "createDetectedIssue": {
      "id": "4",
      "devEui": 4,
      "type": "lowBattery",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createDeviceAlert

Response

Returns a DeviceAlert

Arguments
Name Description
input - CreateDeviceAlertInput!
condition - ModelDeviceAlertConditionInput

Example

Query
mutation createDeviceAlert(
  $input: CreateDeviceAlertInput!,
  $condition: ModelDeviceAlertConditionInput
) {
  createDeviceAlert(
    input: $input,
    condition: $condition
  ) {
    id
    date
    type
    errorType
    errorDescription
    data
    apiVersion
    devEui
    waterMeterID
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateDeviceAlertInput,
  "condition": ModelDeviceAlertConditionInput
}
Response
{
  "data": {
    "createDeviceAlert": {
      "id": 4,
      "date": AWSDateTime,
      "type": "xyz789",
      "errorType": "abc123",
      "errorDescription": "xyz789",
      "data": "xyz789",
      "apiVersion": 123,
      "devEui": "4",
      "waterMeterID": 4,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createDeviceConfiguration

Response

Returns a DeviceConfiguration

Arguments
Name Description
input - CreateDeviceConfigurationInput!
condition - ModelDeviceConfigurationConditionInput

Example

Query
mutation createDeviceConfiguration(
  $input: CreateDeviceConfigurationInput!,
  $condition: ModelDeviceConfigurationConditionInput
) {
  createDeviceConfiguration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    name
    startDate
    endDate
    pulsesPerGallon
    manufacturer
    model
    size
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateDeviceConfigurationInput,
  "condition": ModelDeviceConfigurationConditionInput
}
Response
{
  "data": {
    "createDeviceConfiguration": {
      "id": 4,
      "organizationID": "4",
      "name": "abc123",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulsesPerGallon": 123.45,
      "manufacturer": "xyz789",
      "model": "abc123",
      "size": "abc123",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createDeviceRegistration

Response

Returns a DeviceRegistration

Arguments
Name Description
input - CreateDeviceRegistrationInput!
condition - ModelDeviceRegistrationConditionInput

Example

Query
mutation createDeviceRegistration(
  $input: CreateDeviceRegistrationInput!,
  $condition: ModelDeviceRegistrationConditionInput
) {
  createDeviceRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    devEui
    device {
      ...DeviceStateFragment
    }
    name
    alertsSilenced
    notes
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateDeviceRegistrationInput,
  "condition": ModelDeviceRegistrationConditionInput
}
Response
{
  "data": {
    "createDeviceRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": 4,
      "devEui": "4",
      "device": DeviceState,
      "name": "abc123",
      "alertsSilenced": false,
      "notes": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createDeviceState

Response

Returns a DeviceState

Arguments
Name Description
input - CreateDeviceStateInput!
condition - ModelDeviceStateConditionInput

Example

Query
mutation createDeviceState(
  $input: CreateDeviceStateInput!,
  $condition: ModelDeviceStateConditionInput
) {
  createDeviceState(
    input: $input,
    condition: $condition
  ) {
    id
    waterMeterID
    waterMeter {
      ...WaterMeterFragment
    }
    date
    version
    loggingMagnetometerEnabled
    loggingEnabled
    uuid
    flowRate
    totalGallons
    totalPulses
    appDataAPIVersion
    temperatureC
    mode
    previousData
    batteryMv
    lastZeroPeriodDate
    zeroDate
    leakID
    leak {
      ...LeakDataFragment
    }
    analysisDate
    extendedFlowData
    extendedFlowID
    extendedFlow {
      ...LeakDataFragment
    }
    temperatureIssueID
    temperatureIssue {
      ...DetectedIssueFragment
    }
    batteryIssueID
    batteryIssue {
      ...DetectedIssueFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateDeviceStateInput,
  "condition": ModelDeviceStateConditionInput
}
Response
{
  "data": {
    "createDeviceState": {
      "id": "4",
      "waterMeterID": 4,
      "waterMeter": WaterMeter,
      "date": AWSDateTime,
      "version": "abc123",
      "loggingMagnetometerEnabled": false,
      "loggingEnabled": true,
      "uuid": "4",
      "flowRate": 123.45,
      "totalGallons": 123.45,
      "totalPulses": 987.65,
      "appDataAPIVersion": 123,
      "temperatureC": 987.65,
      "mode": "xyz789",
      "previousData": "abc123",
      "batteryMv": 123.45,
      "lastZeroPeriodDate": AWSDateTime,
      "zeroDate": AWSDateTime,
      "leakID": 4,
      "leak": LeakData,
      "analysisDate": AWSDateTime,
      "extendedFlowData": "xyz789",
      "extendedFlowID": "4",
      "extendedFlow": LeakData,
      "temperatureIssueID": "4",
      "temperatureIssue": DetectedIssue,
      "batteryIssueID": 4,
      "batteryIssue": DetectedIssue,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createHardwareData

Response

Returns a HardwareData

Arguments
Name Description
input - CreateHardwareDataInput!
condition - ModelHardwareDataConditionInput

Example

Query
mutation createHardwareData(
  $input: CreateHardwareDataInput!,
  $condition: ModelHardwareDataConditionInput
) {
  createHardwareData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    batteryPercent
    batteryMilliVolts
    apiVersion
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateHardwareDataInput,
  "condition": ModelHardwareDataConditionInput
}
Response
{
  "data": {
    "createHardwareData": {
      "devEui": "4",
      "waterMeterID": "4",
      "date": AWSDateTime,
      "batteryPercent": 123.45,
      "batteryMilliVolts": 123.45,
      "apiVersion": 987,
      "id": 4,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createLeakData

Response

Returns a LeakData

Arguments
Name Description
input - CreateLeakDataInput!
condition - ModelLeakDataConditionInput

Example

Query
mutation createLeakData(
  $input: CreateLeakDataInput!,
  $condition: ModelLeakDataConditionInput
) {
  createLeakData(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    pulsesPerMinute
    flowRate
    dataPoints {
      ...ModelLeakDataPointConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateLeakDataInput,
  "condition": ModelLeakDataConditionInput
}
Response
{
  "data": {
    "createLeakData": {
      "id": 4,
      "devEui": 4,
      "type": "normal",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "pulsesPerMinute": 987.65,
      "flowRate": 987.65,
      "dataPoints": ModelLeakDataPointConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createLeakDataPoint

Response

Returns a LeakDataPoint

Arguments
Name Description
input - CreateLeakDataPointInput!
condition - ModelLeakDataPointConditionInput

Example

Query
mutation createLeakDataPoint(
  $input: CreateLeakDataPointInput!,
  $condition: ModelLeakDataPointConditionInput
) {
  createLeakDataPoint(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    leakID
    waterMeterID
    startDate
    endDate
    pulses
    gallons
    pulsesPerMinute
    gallonsPerMinute
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateLeakDataPointInput,
  "condition": ModelLeakDataPointConditionInput
}
Response
{
  "data": {
    "createLeakDataPoint": {
      "id": 4,
      "devEui": "4",
      "leakID": "4",
      "waterMeterID": 4,
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulses": 123.45,
      "gallons": 123.45,
      "pulsesPerMinute": 987.65,
      "gallonsPerMinute": 987.65,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createLocation

Response

Returns a Location

Arguments
Name Description
input - CreateLocationInput!
condition - ModelLocationConditionInput

Example

Query
mutation createLocation(
  $input: CreateLocationInput!,
  $condition: ModelLocationConditionInput
) {
  createLocation(
    input: $input,
    condition: $condition
  ) {
    id
    address
    addressShort
    name
    googlePlaceID
    organizationID
    alertsSilenced
    notes
    waterMeters {
      ...ModelWaterMeterConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateLocationInput,
  "condition": ModelLocationConditionInput
}
Response
{
  "data": {
    "createLocation": {
      "id": 4,
      "address": "abc123",
      "addressShort": "xyz789",
      "name": "abc123",
      "googlePlaceID": "abc123",
      "organizationID": "4",
      "alertsSilenced": false,
      "notes": "abc123",
      "waterMeters": ModelWaterMeterConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createOrganization

Response

Returns an Organization

Arguments
Name Description
input - CreateOrganizationInput!
condition - ModelOrganizationConditionInput

Example

Query
mutation createOrganization(
  $input: CreateOrganizationInput!,
  $condition: ModelOrganizationConditionInput
) {
  createOrganization(
    input: $input,
    condition: $condition
  ) {
    id
    name
    customerID
    deviceRegistrations {
      ...ModelDeviceRegistrationConnectionFragment
    }
    deviceConfigurations {
      ...ModelDeviceConfigurationConnectionFragment
    }
    reportRegistrations {
      ...ModelReportRegistrationConnectionFragment
    }
    minimumMonthlyCost
    costPerGallonOfWater
    alertSubscriptions {
      ...ModelOrganizationAlertSubscriptionConnectionFragment
    }
    locations {
      ...ModelLocationConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateOrganizationInput,
  "condition": ModelOrganizationConditionInput
}
Response
{
  "data": {
    "createOrganization": {
      "id": "4",
      "name": "abc123",
      "customerID": "4",
      "deviceRegistrations": ModelDeviceRegistrationConnection,
      "deviceConfigurations": ModelDeviceConfigurationConnection,
      "reportRegistrations": ModelReportRegistrationConnection,
      "minimumMonthlyCost": 987.65,
      "costPerGallonOfWater": 123.45,
      "alertSubscriptions": ModelOrganizationAlertSubscriptionConnection,
      "locations": ModelLocationConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createOrganizationAlertSubscription

Example

Query
mutation createOrganizationAlertSubscription(
  $input: CreateOrganizationAlertSubscriptionInput!,
  $condition: ModelOrganizationAlertSubscriptionConditionInput
) {
  createOrganizationAlertSubscription(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    protocol
    endpoint
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateOrganizationAlertSubscriptionInput,
  "condition": ModelOrganizationAlertSubscriptionConditionInput
}
Response
{
  "data": {
    "createOrganizationAlertSubscription": {
      "id": "4",
      "organizationID": 4,
      "protocol": "sms",
      "endpoint": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createReportRegistration

Response

Returns a ReportRegistration

Arguments
Name Description
input - CreateReportRegistrationInput!
condition - ModelReportRegistrationConditionInput

Example

Query
mutation createReportRegistration(
  $input: CreateReportRegistrationInput!,
  $condition: ModelReportRegistrationConditionInput
) {
  createReportRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    email
    interval
    lastReportDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateReportRegistrationInput,
  "condition": ModelReportRegistrationConditionInput
}
Response
{
  "data": {
    "createReportRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": 4,
      "email": "xyz789",
      "interval": "DAILY",
      "lastReportDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createSensorData

Response

Returns a SensorData

Arguments
Name Description
input - CreateSensorDataInput!
condition - ModelSensorDataConditionInput

Example

Query
mutation createSensorData(
  $input: CreateSensorDataInput!,
  $condition: ModelSensorDataConditionInput
) {
  createSensorData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateSensorDataInput,
  "condition": ModelSensorDataConditionInput
}
Response
{
  "data": {
    "createSensorData": {
      "devEui": "4",
      "waterMeterID": "4",
      "date": AWSDateTime,
      "flowRate": 123.45,
      "totalGallons": 987.65,
      "temperatureC": 987.65,
      "rssi": 123.45,
      "snr": 123.45,
      "apiVersion": 123,
      "totalPulses": 987.65,
      "fcnt": 987,
      "hotspots": [Hotspot],
      "id": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createUserData

Response

Returns a UserData

Arguments
Name Description
input - CreateUserDataInput!
condition - ModelUserDataConditionInput

Example

Query
mutation createUserData(
  $input: CreateUserDataInput!,
  $condition: ModelUserDataConditionInput
) {
  createUserData(
    input: $input,
    condition: $condition
  ) {
    id
    nowi
    currentOrganizationID
    currentOrganization {
      ...OrganizationFragment
    }
    organizationRegistrations {
      ...ModelUserOrganizationRegistrationConnectionFragment
    }
    darkModeEnabled
    waterUnits
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateUserDataInput,
  "condition": ModelUserDataConditionInput
}
Response
{
  "data": {
    "createUserData": {
      "id": 4,
      "nowi": false,
      "currentOrganizationID": 4,
      "currentOrganization": Organization,
      "organizationRegistrations": ModelUserOrganizationRegistrationConnection,
      "darkModeEnabled": true,
      "waterUnits": "GALLONS",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createUserOrganizationRegistration

Example

Query
mutation createUserOrganizationRegistration(
  $input: CreateUserOrganizationRegistrationInput!,
  $condition: ModelUserOrganizationRegistrationConditionInput
) {
  createUserOrganizationRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    organization {
      ...OrganizationFragment
    }
    userID
    user {
      ...UserDataFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateUserOrganizationRegistrationInput,
  "condition": ModelUserOrganizationRegistrationConditionInput
}
Response
{
  "data": {
    "createUserOrganizationRegistration": {
      "id": 4,
      "organizationID": 4,
      "organization": Organization,
      "userID": "4",
      "user": UserData,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

createWaterMeter

Response

Returns a WaterMeter

Arguments
Name Description
input - CreateWaterMeterInput!
condition - ModelWaterMeterConditionInput

Example

Query
mutation createWaterMeter(
  $input: CreateWaterMeterInput!,
  $condition: ModelWaterMeterConditionInput
) {
  createWaterMeter(
    input: $input,
    condition: $condition
  ) {
    id
    name
    units
    configurationID
    configuration {
      ...DeviceConfigurationFragment
    }
    deviceID
    device {
      ...DeviceStateFragment
    }
    locationID
    location {
      ...LocationFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": CreateWaterMeterInput,
  "condition": ModelWaterMeterConditionInput
}
Response
{
  "data": {
    "createWaterMeter": {
      "id": "4",
      "name": "xyz789",
      "units": 987,
      "configurationID": "4",
      "configuration": DeviceConfiguration,
      "deviceID": "4",
      "device": DeviceState,
      "locationID": 4,
      "location": Location,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteDetectedIssue

Response

Returns a DetectedIssue

Arguments
Name Description
input - DeleteDetectedIssueInput!
condition - ModelDetectedIssueConditionInput

Example

Query
mutation deleteDetectedIssue(
  $input: DeleteDetectedIssueInput!,
  $condition: ModelDetectedIssueConditionInput
) {
  deleteDetectedIssue(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteDetectedIssueInput,
  "condition": ModelDetectedIssueConditionInput
}
Response
{
  "data": {
    "deleteDetectedIssue": {
      "id": "4",
      "devEui": 4,
      "type": "lowBattery",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteDeviceAlert

Response

Returns a DeviceAlert

Arguments
Name Description
input - DeleteDeviceAlertInput!
condition - ModelDeviceAlertConditionInput

Example

Query
mutation deleteDeviceAlert(
  $input: DeleteDeviceAlertInput!,
  $condition: ModelDeviceAlertConditionInput
) {
  deleteDeviceAlert(
    input: $input,
    condition: $condition
  ) {
    id
    date
    type
    errorType
    errorDescription
    data
    apiVersion
    devEui
    waterMeterID
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteDeviceAlertInput,
  "condition": ModelDeviceAlertConditionInput
}
Response
{
  "data": {
    "deleteDeviceAlert": {
      "id": 4,
      "date": AWSDateTime,
      "type": "xyz789",
      "errorType": "abc123",
      "errorDescription": "xyz789",
      "data": "xyz789",
      "apiVersion": 987,
      "devEui": 4,
      "waterMeterID": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteDeviceConfiguration

Response

Returns a DeviceConfiguration

Arguments
Name Description
input - DeleteDeviceConfigurationInput!
condition - ModelDeviceConfigurationConditionInput

Example

Query
mutation deleteDeviceConfiguration(
  $input: DeleteDeviceConfigurationInput!,
  $condition: ModelDeviceConfigurationConditionInput
) {
  deleteDeviceConfiguration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    name
    startDate
    endDate
    pulsesPerGallon
    manufacturer
    model
    size
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteDeviceConfigurationInput,
  "condition": ModelDeviceConfigurationConditionInput
}
Response
{
  "data": {
    "deleteDeviceConfiguration": {
      "id": 4,
      "organizationID": "4",
      "name": "xyz789",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulsesPerGallon": 123.45,
      "manufacturer": "abc123",
      "model": "abc123",
      "size": "abc123",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteDeviceRegistration

Response

Returns a DeviceRegistration

Arguments
Name Description
input - DeleteDeviceRegistrationInput!
condition - ModelDeviceRegistrationConditionInput

Example

Query
mutation deleteDeviceRegistration(
  $input: DeleteDeviceRegistrationInput!,
  $condition: ModelDeviceRegistrationConditionInput
) {
  deleteDeviceRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    devEui
    device {
      ...DeviceStateFragment
    }
    name
    alertsSilenced
    notes
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteDeviceRegistrationInput,
  "condition": ModelDeviceRegistrationConditionInput
}
Response
{
  "data": {
    "deleteDeviceRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": 4,
      "devEui": 4,
      "device": DeviceState,
      "name": "xyz789",
      "alertsSilenced": true,
      "notes": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteDeviceState

Response

Returns a DeviceState

Arguments
Name Description
input - DeleteDeviceStateInput!
condition - ModelDeviceStateConditionInput

Example

Query
mutation deleteDeviceState(
  $input: DeleteDeviceStateInput!,
  $condition: ModelDeviceStateConditionInput
) {
  deleteDeviceState(
    input: $input,
    condition: $condition
  ) {
    id
    waterMeterID
    waterMeter {
      ...WaterMeterFragment
    }
    date
    version
    loggingMagnetometerEnabled
    loggingEnabled
    uuid
    flowRate
    totalGallons
    totalPulses
    appDataAPIVersion
    temperatureC
    mode
    previousData
    batteryMv
    lastZeroPeriodDate
    zeroDate
    leakID
    leak {
      ...LeakDataFragment
    }
    analysisDate
    extendedFlowData
    extendedFlowID
    extendedFlow {
      ...LeakDataFragment
    }
    temperatureIssueID
    temperatureIssue {
      ...DetectedIssueFragment
    }
    batteryIssueID
    batteryIssue {
      ...DetectedIssueFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteDeviceStateInput,
  "condition": ModelDeviceStateConditionInput
}
Response
{
  "data": {
    "deleteDeviceState": {
      "id": "4",
      "waterMeterID": "4",
      "waterMeter": WaterMeter,
      "date": AWSDateTime,
      "version": "abc123",
      "loggingMagnetometerEnabled": false,
      "loggingEnabled": false,
      "uuid": 4,
      "flowRate": 987.65,
      "totalGallons": 987.65,
      "totalPulses": 123.45,
      "appDataAPIVersion": 123,
      "temperatureC": 123.45,
      "mode": "abc123",
      "previousData": "abc123",
      "batteryMv": 987.65,
      "lastZeroPeriodDate": AWSDateTime,
      "zeroDate": AWSDateTime,
      "leakID": 4,
      "leak": LeakData,
      "analysisDate": AWSDateTime,
      "extendedFlowData": "abc123",
      "extendedFlowID": "4",
      "extendedFlow": LeakData,
      "temperatureIssueID": "4",
      "temperatureIssue": DetectedIssue,
      "batteryIssueID": "4",
      "batteryIssue": DetectedIssue,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteHardwareData

Response

Returns a HardwareData

Arguments
Name Description
input - DeleteHardwareDataInput!
condition - ModelHardwareDataConditionInput

Example

Query
mutation deleteHardwareData(
  $input: DeleteHardwareDataInput!,
  $condition: ModelHardwareDataConditionInput
) {
  deleteHardwareData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    batteryPercent
    batteryMilliVolts
    apiVersion
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteHardwareDataInput,
  "condition": ModelHardwareDataConditionInput
}
Response
{
  "data": {
    "deleteHardwareData": {
      "devEui": 4,
      "waterMeterID": 4,
      "date": AWSDateTime,
      "batteryPercent": 987.65,
      "batteryMilliVolts": 123.45,
      "apiVersion": 987,
      "id": 4,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteLeakData

Response

Returns a LeakData

Arguments
Name Description
input - DeleteLeakDataInput!
condition - ModelLeakDataConditionInput

Example

Query
mutation deleteLeakData(
  $input: DeleteLeakDataInput!,
  $condition: ModelLeakDataConditionInput
) {
  deleteLeakData(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    pulsesPerMinute
    flowRate
    dataPoints {
      ...ModelLeakDataPointConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteLeakDataInput,
  "condition": ModelLeakDataConditionInput
}
Response
{
  "data": {
    "deleteLeakData": {
      "id": "4",
      "devEui": "4",
      "type": "normal",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "pulsesPerMinute": 123.45,
      "flowRate": 987.65,
      "dataPoints": ModelLeakDataPointConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteLeakDataPoint

Response

Returns a LeakDataPoint

Arguments
Name Description
input - DeleteLeakDataPointInput!
condition - ModelLeakDataPointConditionInput

Example

Query
mutation deleteLeakDataPoint(
  $input: DeleteLeakDataPointInput!,
  $condition: ModelLeakDataPointConditionInput
) {
  deleteLeakDataPoint(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    leakID
    waterMeterID
    startDate
    endDate
    pulses
    gallons
    pulsesPerMinute
    gallonsPerMinute
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteLeakDataPointInput,
  "condition": ModelLeakDataPointConditionInput
}
Response
{
  "data": {
    "deleteLeakDataPoint": {
      "id": 4,
      "devEui": "4",
      "leakID": "4",
      "waterMeterID": "4",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulses": 987.65,
      "gallons": 123.45,
      "pulsesPerMinute": 987.65,
      "gallonsPerMinute": 123.45,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteLocation

Response

Returns a Location

Arguments
Name Description
input - DeleteLocationInput!
condition - ModelLocationConditionInput

Example

Query
mutation deleteLocation(
  $input: DeleteLocationInput!,
  $condition: ModelLocationConditionInput
) {
  deleteLocation(
    input: $input,
    condition: $condition
  ) {
    id
    address
    addressShort
    name
    googlePlaceID
    organizationID
    alertsSilenced
    notes
    waterMeters {
      ...ModelWaterMeterConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteLocationInput,
  "condition": ModelLocationConditionInput
}
Response
{
  "data": {
    "deleteLocation": {
      "id": 4,
      "address": "xyz789",
      "addressShort": "xyz789",
      "name": "abc123",
      "googlePlaceID": "xyz789",
      "organizationID": 4,
      "alertsSilenced": false,
      "notes": "abc123",
      "waterMeters": ModelWaterMeterConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteOrganization

Response

Returns an Organization

Arguments
Name Description
input - DeleteOrganizationInput!
condition - ModelOrganizationConditionInput

Example

Query
mutation deleteOrganization(
  $input: DeleteOrganizationInput!,
  $condition: ModelOrganizationConditionInput
) {
  deleteOrganization(
    input: $input,
    condition: $condition
  ) {
    id
    name
    customerID
    deviceRegistrations {
      ...ModelDeviceRegistrationConnectionFragment
    }
    deviceConfigurations {
      ...ModelDeviceConfigurationConnectionFragment
    }
    reportRegistrations {
      ...ModelReportRegistrationConnectionFragment
    }
    minimumMonthlyCost
    costPerGallonOfWater
    alertSubscriptions {
      ...ModelOrganizationAlertSubscriptionConnectionFragment
    }
    locations {
      ...ModelLocationConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteOrganizationInput,
  "condition": ModelOrganizationConditionInput
}
Response
{
  "data": {
    "deleteOrganization": {
      "id": 4,
      "name": "abc123",
      "customerID": "4",
      "deviceRegistrations": ModelDeviceRegistrationConnection,
      "deviceConfigurations": ModelDeviceConfigurationConnection,
      "reportRegistrations": ModelReportRegistrationConnection,
      "minimumMonthlyCost": 123.45,
      "costPerGallonOfWater": 987.65,
      "alertSubscriptions": ModelOrganizationAlertSubscriptionConnection,
      "locations": ModelLocationConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteOrganizationAlertSubscription

Example

Query
mutation deleteOrganizationAlertSubscription(
  $input: DeleteOrganizationAlertSubscriptionInput!,
  $condition: ModelOrganizationAlertSubscriptionConditionInput
) {
  deleteOrganizationAlertSubscription(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    protocol
    endpoint
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteOrganizationAlertSubscriptionInput,
  "condition": ModelOrganizationAlertSubscriptionConditionInput
}
Response
{
  "data": {
    "deleteOrganizationAlertSubscription": {
      "id": 4,
      "organizationID": 4,
      "protocol": "sms",
      "endpoint": "abc123",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteReportRegistration

Response

Returns a ReportRegistration

Arguments
Name Description
input - DeleteReportRegistrationInput!
condition - ModelReportRegistrationConditionInput

Example

Query
mutation deleteReportRegistration(
  $input: DeleteReportRegistrationInput!,
  $condition: ModelReportRegistrationConditionInput
) {
  deleteReportRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    email
    interval
    lastReportDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteReportRegistrationInput,
  "condition": ModelReportRegistrationConditionInput
}
Response
{
  "data": {
    "deleteReportRegistration": {
      "id": "4",
      "organization": Organization,
      "organizationID": "4",
      "email": "abc123",
      "interval": "DAILY",
      "lastReportDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteSensorData

Response

Returns a SensorData

Arguments
Name Description
input - DeleteSensorDataInput!
condition - ModelSensorDataConditionInput

Example

Query
mutation deleteSensorData(
  $input: DeleteSensorDataInput!,
  $condition: ModelSensorDataConditionInput
) {
  deleteSensorData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteSensorDataInput,
  "condition": ModelSensorDataConditionInput
}
Response
{
  "data": {
    "deleteSensorData": {
      "devEui": 4,
      "waterMeterID": "4",
      "date": AWSDateTime,
      "flowRate": 987.65,
      "totalGallons": 123.45,
      "temperatureC": 987.65,
      "rssi": 987.65,
      "snr": 123.45,
      "apiVersion": 987,
      "totalPulses": 123.45,
      "fcnt": 987,
      "hotspots": [Hotspot],
      "id": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteUserData

Response

Returns a UserData

Arguments
Name Description
input - DeleteUserDataInput!
condition - ModelUserDataConditionInput

Example

Query
mutation deleteUserData(
  $input: DeleteUserDataInput!,
  $condition: ModelUserDataConditionInput
) {
  deleteUserData(
    input: $input,
    condition: $condition
  ) {
    id
    nowi
    currentOrganizationID
    currentOrganization {
      ...OrganizationFragment
    }
    organizationRegistrations {
      ...ModelUserOrganizationRegistrationConnectionFragment
    }
    darkModeEnabled
    waterUnits
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteUserDataInput,
  "condition": ModelUserDataConditionInput
}
Response
{
  "data": {
    "deleteUserData": {
      "id": "4",
      "nowi": false,
      "currentOrganizationID": "4",
      "currentOrganization": Organization,
      "organizationRegistrations": ModelUserOrganizationRegistrationConnection,
      "darkModeEnabled": false,
      "waterUnits": "GALLONS",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteUserOrganizationRegistration

Example

Query
mutation deleteUserOrganizationRegistration(
  $input: DeleteUserOrganizationRegistrationInput!,
  $condition: ModelUserOrganizationRegistrationConditionInput
) {
  deleteUserOrganizationRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    organization {
      ...OrganizationFragment
    }
    userID
    user {
      ...UserDataFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteUserOrganizationRegistrationInput,
  "condition": ModelUserOrganizationRegistrationConditionInput
}
Response
{
  "data": {
    "deleteUserOrganizationRegistration": {
      "id": "4",
      "organizationID": 4,
      "organization": Organization,
      "userID": "4",
      "user": UserData,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

deleteWaterMeter

Response

Returns a WaterMeter

Arguments
Name Description
input - DeleteWaterMeterInput!
condition - ModelWaterMeterConditionInput

Example

Query
mutation deleteWaterMeter(
  $input: DeleteWaterMeterInput!,
  $condition: ModelWaterMeterConditionInput
) {
  deleteWaterMeter(
    input: $input,
    condition: $condition
  ) {
    id
    name
    units
    configurationID
    configuration {
      ...DeviceConfigurationFragment
    }
    deviceID
    device {
      ...DeviceStateFragment
    }
    locationID
    location {
      ...LocationFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": DeleteWaterMeterInput,
  "condition": ModelWaterMeterConditionInput
}
Response
{
  "data": {
    "deleteWaterMeter": {
      "id": "4",
      "name": "abc123",
      "units": 987,
      "configurationID": "4",
      "configuration": DeviceConfiguration,
      "deviceID": "4",
      "device": DeviceState,
      "locationID": "4",
      "location": Location,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateDetectedIssue

Response

Returns a DetectedIssue

Arguments
Name Description
input - UpdateDetectedIssueInput!
condition - ModelDetectedIssueConditionInput

Example

Query
mutation updateDetectedIssue(
  $input: UpdateDetectedIssueInput!,
  $condition: ModelDetectedIssueConditionInput
) {
  updateDetectedIssue(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateDetectedIssueInput,
  "condition": ModelDetectedIssueConditionInput
}
Response
{
  "data": {
    "updateDetectedIssue": {
      "id": 4,
      "devEui": "4",
      "type": "lowBattery",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateDeviceAlert

Response

Returns a DeviceAlert

Arguments
Name Description
input - UpdateDeviceAlertInput!
condition - ModelDeviceAlertConditionInput

Example

Query
mutation updateDeviceAlert(
  $input: UpdateDeviceAlertInput!,
  $condition: ModelDeviceAlertConditionInput
) {
  updateDeviceAlert(
    input: $input,
    condition: $condition
  ) {
    id
    date
    type
    errorType
    errorDescription
    data
    apiVersion
    devEui
    waterMeterID
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateDeviceAlertInput,
  "condition": ModelDeviceAlertConditionInput
}
Response
{
  "data": {
    "updateDeviceAlert": {
      "id": "4",
      "date": AWSDateTime,
      "type": "abc123",
      "errorType": "xyz789",
      "errorDescription": "abc123",
      "data": "abc123",
      "apiVersion": 123,
      "devEui": "4",
      "waterMeterID": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateDeviceConfiguration

Response

Returns a DeviceConfiguration

Arguments
Name Description
input - UpdateDeviceConfigurationInput!
condition - ModelDeviceConfigurationConditionInput

Example

Query
mutation updateDeviceConfiguration(
  $input: UpdateDeviceConfigurationInput!,
  $condition: ModelDeviceConfigurationConditionInput
) {
  updateDeviceConfiguration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    name
    startDate
    endDate
    pulsesPerGallon
    manufacturer
    model
    size
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateDeviceConfigurationInput,
  "condition": ModelDeviceConfigurationConditionInput
}
Response
{
  "data": {
    "updateDeviceConfiguration": {
      "id": "4",
      "organizationID": "4",
      "name": "abc123",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulsesPerGallon": 987.65,
      "manufacturer": "xyz789",
      "model": "abc123",
      "size": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateDeviceRegistration

Response

Returns a DeviceRegistration

Arguments
Name Description
input - UpdateDeviceRegistrationInput!
condition - ModelDeviceRegistrationConditionInput

Example

Query
mutation updateDeviceRegistration(
  $input: UpdateDeviceRegistrationInput!,
  $condition: ModelDeviceRegistrationConditionInput
) {
  updateDeviceRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    devEui
    device {
      ...DeviceStateFragment
    }
    name
    alertsSilenced
    notes
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateDeviceRegistrationInput,
  "condition": ModelDeviceRegistrationConditionInput
}
Response
{
  "data": {
    "updateDeviceRegistration": {
      "id": "4",
      "organization": Organization,
      "organizationID": "4",
      "devEui": "4",
      "device": DeviceState,
      "name": "xyz789",
      "alertsSilenced": true,
      "notes": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateDeviceState

Response

Returns a DeviceState

Arguments
Name Description
input - UpdateDeviceStateInput!
condition - ModelDeviceStateConditionInput

Example

Query
mutation updateDeviceState(
  $input: UpdateDeviceStateInput!,
  $condition: ModelDeviceStateConditionInput
) {
  updateDeviceState(
    input: $input,
    condition: $condition
  ) {
    id
    waterMeterID
    waterMeter {
      ...WaterMeterFragment
    }
    date
    version
    loggingMagnetometerEnabled
    loggingEnabled
    uuid
    flowRate
    totalGallons
    totalPulses
    appDataAPIVersion
    temperatureC
    mode
    previousData
    batteryMv
    lastZeroPeriodDate
    zeroDate
    leakID
    leak {
      ...LeakDataFragment
    }
    analysisDate
    extendedFlowData
    extendedFlowID
    extendedFlow {
      ...LeakDataFragment
    }
    temperatureIssueID
    temperatureIssue {
      ...DetectedIssueFragment
    }
    batteryIssueID
    batteryIssue {
      ...DetectedIssueFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateDeviceStateInput,
  "condition": ModelDeviceStateConditionInput
}
Response
{
  "data": {
    "updateDeviceState": {
      "id": 4,
      "waterMeterID": 4,
      "waterMeter": WaterMeter,
      "date": AWSDateTime,
      "version": "xyz789",
      "loggingMagnetometerEnabled": false,
      "loggingEnabled": true,
      "uuid": 4,
      "flowRate": 123.45,
      "totalGallons": 987.65,
      "totalPulses": 123.45,
      "appDataAPIVersion": 987,
      "temperatureC": 987.65,
      "mode": "xyz789",
      "previousData": "xyz789",
      "batteryMv": 987.65,
      "lastZeroPeriodDate": AWSDateTime,
      "zeroDate": AWSDateTime,
      "leakID": "4",
      "leak": LeakData,
      "analysisDate": AWSDateTime,
      "extendedFlowData": "abc123",
      "extendedFlowID": "4",
      "extendedFlow": LeakData,
      "temperatureIssueID": "4",
      "temperatureIssue": DetectedIssue,
      "batteryIssueID": "4",
      "batteryIssue": DetectedIssue,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateHardwareData

Response

Returns a HardwareData

Arguments
Name Description
input - UpdateHardwareDataInput!
condition - ModelHardwareDataConditionInput

Example

Query
mutation updateHardwareData(
  $input: UpdateHardwareDataInput!,
  $condition: ModelHardwareDataConditionInput
) {
  updateHardwareData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    batteryPercent
    batteryMilliVolts
    apiVersion
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateHardwareDataInput,
  "condition": ModelHardwareDataConditionInput
}
Response
{
  "data": {
    "updateHardwareData": {
      "devEui": "4",
      "waterMeterID": 4,
      "date": AWSDateTime,
      "batteryPercent": 123.45,
      "batteryMilliVolts": 987.65,
      "apiVersion": 987,
      "id": "4",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateLeakData

Response

Returns a LeakData

Arguments
Name Description
input - UpdateLeakDataInput!
condition - ModelLeakDataConditionInput

Example

Query
mutation updateLeakData(
  $input: UpdateLeakDataInput!,
  $condition: ModelLeakDataConditionInput
) {
  updateLeakData(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    type
    state
    startDate
    endDate
    lastAlertDate
    pulsesPerMinute
    flowRate
    dataPoints {
      ...ModelLeakDataPointConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateLeakDataInput,
  "condition": ModelLeakDataConditionInput
}
Response
{
  "data": {
    "updateLeakData": {
      "id": "4",
      "devEui": "4",
      "type": "normal",
      "state": "new",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "lastAlertDate": AWSDateTime,
      "pulsesPerMinute": 987.65,
      "flowRate": 987.65,
      "dataPoints": ModelLeakDataPointConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateLeakDataPoint

Response

Returns a LeakDataPoint

Arguments
Name Description
input - UpdateLeakDataPointInput!
condition - ModelLeakDataPointConditionInput

Example

Query
mutation updateLeakDataPoint(
  $input: UpdateLeakDataPointInput!,
  $condition: ModelLeakDataPointConditionInput
) {
  updateLeakDataPoint(
    input: $input,
    condition: $condition
  ) {
    id
    devEui
    leakID
    waterMeterID
    startDate
    endDate
    pulses
    gallons
    pulsesPerMinute
    gallonsPerMinute
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateLeakDataPointInput,
  "condition": ModelLeakDataPointConditionInput
}
Response
{
  "data": {
    "updateLeakDataPoint": {
      "id": "4",
      "devEui": "4",
      "leakID": "4",
      "waterMeterID": "4",
      "startDate": AWSDateTime,
      "endDate": AWSDateTime,
      "pulses": 987.65,
      "gallons": 987.65,
      "pulsesPerMinute": 123.45,
      "gallonsPerMinute": 987.65,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateLocation

Response

Returns a Location

Arguments
Name Description
input - UpdateLocationInput!
condition - ModelLocationConditionInput

Example

Query
mutation updateLocation(
  $input: UpdateLocationInput!,
  $condition: ModelLocationConditionInput
) {
  updateLocation(
    input: $input,
    condition: $condition
  ) {
    id
    address
    addressShort
    name
    googlePlaceID
    organizationID
    alertsSilenced
    notes
    waterMeters {
      ...ModelWaterMeterConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateLocationInput,
  "condition": ModelLocationConditionInput
}
Response
{
  "data": {
    "updateLocation": {
      "id": "4",
      "address": "abc123",
      "addressShort": "abc123",
      "name": "abc123",
      "googlePlaceID": "xyz789",
      "organizationID": 4,
      "alertsSilenced": false,
      "notes": "abc123",
      "waterMeters": ModelWaterMeterConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateOrganization

Response

Returns an Organization

Arguments
Name Description
input - UpdateOrganizationInput!
condition - ModelOrganizationConditionInput

Example

Query
mutation updateOrganization(
  $input: UpdateOrganizationInput!,
  $condition: ModelOrganizationConditionInput
) {
  updateOrganization(
    input: $input,
    condition: $condition
  ) {
    id
    name
    customerID
    deviceRegistrations {
      ...ModelDeviceRegistrationConnectionFragment
    }
    deviceConfigurations {
      ...ModelDeviceConfigurationConnectionFragment
    }
    reportRegistrations {
      ...ModelReportRegistrationConnectionFragment
    }
    minimumMonthlyCost
    costPerGallonOfWater
    alertSubscriptions {
      ...ModelOrganizationAlertSubscriptionConnectionFragment
    }
    locations {
      ...ModelLocationConnectionFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateOrganizationInput,
  "condition": ModelOrganizationConditionInput
}
Response
{
  "data": {
    "updateOrganization": {
      "id": "4",
      "name": "xyz789",
      "customerID": 4,
      "deviceRegistrations": ModelDeviceRegistrationConnection,
      "deviceConfigurations": ModelDeviceConfigurationConnection,
      "reportRegistrations": ModelReportRegistrationConnection,
      "minimumMonthlyCost": 987.65,
      "costPerGallonOfWater": 123.45,
      "alertSubscriptions": ModelOrganizationAlertSubscriptionConnection,
      "locations": ModelLocationConnection,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateOrganizationAlertSubscription

Example

Query
mutation updateOrganizationAlertSubscription(
  $input: UpdateOrganizationAlertSubscriptionInput!,
  $condition: ModelOrganizationAlertSubscriptionConditionInput
) {
  updateOrganizationAlertSubscription(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    protocol
    endpoint
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateOrganizationAlertSubscriptionInput,
  "condition": ModelOrganizationAlertSubscriptionConditionInput
}
Response
{
  "data": {
    "updateOrganizationAlertSubscription": {
      "id": "4",
      "organizationID": "4",
      "protocol": "sms",
      "endpoint": "xyz789",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateReportRegistration

Response

Returns a ReportRegistration

Arguments
Name Description
input - UpdateReportRegistrationInput!
condition - ModelReportRegistrationConditionInput

Example

Query
mutation updateReportRegistration(
  $input: UpdateReportRegistrationInput!,
  $condition: ModelReportRegistrationConditionInput
) {
  updateReportRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organization {
      ...OrganizationFragment
    }
    organizationID
    email
    interval
    lastReportDate
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateReportRegistrationInput,
  "condition": ModelReportRegistrationConditionInput
}
Response
{
  "data": {
    "updateReportRegistration": {
      "id": 4,
      "organization": Organization,
      "organizationID": 4,
      "email": "abc123",
      "interval": "DAILY",
      "lastReportDate": AWSDateTime,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateSensorData

Response

Returns a SensorData

Arguments
Name Description
input - UpdateSensorDataInput!
condition - ModelSensorDataConditionInput

Example

Query
mutation updateSensorData(
  $input: UpdateSensorDataInput!,
  $condition: ModelSensorDataConditionInput
) {
  updateSensorData(
    input: $input,
    condition: $condition
  ) {
    devEui
    waterMeterID
    date
    flowRate
    totalGallons
    temperatureC
    rssi
    snr
    apiVersion
    totalPulses
    fcnt
    hotspots {
      ...HotspotFragment
    }
    id
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateSensorDataInput,
  "condition": ModelSensorDataConditionInput
}
Response
{
  "data": {
    "updateSensorData": {
      "devEui": 4,
      "waterMeterID": "4",
      "date": AWSDateTime,
      "flowRate": 987.65,
      "totalGallons": 123.45,
      "temperatureC": 987.65,
      "rssi": 987.65,
      "snr": 987.65,
      "apiVersion": 987,
      "totalPulses": 987.65,
      "fcnt": 987,
      "hotspots": [Hotspot],
      "id": 4,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateUserData

Response

Returns a UserData

Arguments
Name Description
input - UpdateUserDataInput!
condition - ModelUserDataConditionInput

Example

Query
mutation updateUserData(
  $input: UpdateUserDataInput!,
  $condition: ModelUserDataConditionInput
) {
  updateUserData(
    input: $input,
    condition: $condition
  ) {
    id
    nowi
    currentOrganizationID
    currentOrganization {
      ...OrganizationFragment
    }
    organizationRegistrations {
      ...ModelUserOrganizationRegistrationConnectionFragment
    }
    darkModeEnabled
    waterUnits
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateUserDataInput,
  "condition": ModelUserDataConditionInput
}
Response
{
  "data": {
    "updateUserData": {
      "id": 4,
      "nowi": true,
      "currentOrganizationID": "4",
      "currentOrganization": Organization,
      "organizationRegistrations": ModelUserOrganizationRegistrationConnection,
      "darkModeEnabled": true,
      "waterUnits": "GALLONS",
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateUserOrganizationRegistration

Example

Query
mutation updateUserOrganizationRegistration(
  $input: UpdateUserOrganizationRegistrationInput!,
  $condition: ModelUserOrganizationRegistrationConditionInput
) {
  updateUserOrganizationRegistration(
    input: $input,
    condition: $condition
  ) {
    id
    organizationID
    organization {
      ...OrganizationFragment
    }
    userID
    user {
      ...UserDataFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateUserOrganizationRegistrationInput,
  "condition": ModelUserOrganizationRegistrationConditionInput
}
Response
{
  "data": {
    "updateUserOrganizationRegistration": {
      "id": 4,
      "organizationID": "4",
      "organization": Organization,
      "userID": "4",
      "user": UserData,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

updateWaterMeter

Response

Returns a WaterMeter

Arguments
Name Description
input - UpdateWaterMeterInput!
condition - ModelWaterMeterConditionInput

Example

Query
mutation updateWaterMeter(
  $input: UpdateWaterMeterInput!,
  $condition: ModelWaterMeterConditionInput
) {
  updateWaterMeter(
    input: $input,
    condition: $condition
  ) {
    id
    name
    units
    configurationID
    configuration {
      ...DeviceConfigurationFragment
    }
    deviceID
    device {
      ...DeviceStateFragment
    }
    locationID
    location {
      ...LocationFragment
    }
    createdAt
    updatedAt
  }
}
Variables
{
  "input": UpdateWaterMeterInput,
  "condition": ModelWaterMeterConditionInput
}
Response
{
  "data": {
    "updateWaterMeter": {
      "id": 4,
      "name": "abc123",
      "units": 123,
      "configurationID": 4,
      "configuration": DeviceConfiguration,
      "deviceID": 4,
      "device": DeviceState,
      "locationID": 4,
      "location": Location,
      "createdAt": AWSDateTime,
      "updatedAt": AWSDateTime
    }
  }
}

Types

AWSDateTime

Description

The AWSDateTime scalar type provided by AWS AppSync, represents a valid extended ISO 8601 DateTime string. In other words, this scalar type accepts datetime strings of the form YYYY-MM-DDThh:mm:ss.SSSZ. The scalar can also accept "negative years" of the form -YYYY which correspond to years before 0000. For example, " -2017-01-01T00:00Z" and " -9999-01-01T00:00Z" are both valid datetime strings. The field after the two digit seconds field is a nanoseconds field. It can accept between 1 and 9 digits. So, for example, " 1970-01-01T12:00:00.2Z", " 1970-01-01T12:00:00.277Z" and " 1970-01-01T12:00:00.123456789Z" are all valid datetime strings. The seconds and nanoseconds fields are optional (the seconds field must be specified if the nanoseconds field is to be used). The time zone offset is compulsory for this scalar. The time zone offset must either be Z (representing the UTC time zone) or be in the format ±hh:mm:ss. The seconds field in the timezone offset will be considered valid even though it is not part of the ISO 8601 standard.

Example
AWSDateTime

AlertProtocol

Values
Enum Value Description

sms

email

Example
"sms"

Boolean

Description

Built-in Boolean

CreateDetectedIssueInput

Fields
Input Field Description
id - ID
devEui - ID!
type - IssueType
state - IssueState!
startDate - AWSDateTime!
endDate - AWSDateTime
lastAlertDate - AWSDateTime
Example
{
  "id": 4,
  "devEui": "4",
  "type": "lowBattery",
  "state": "new",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "lastAlertDate": AWSDateTime
}

CreateDeviceAlertInput

Fields
Input Field Description
id - ID
date - AWSDateTime
type - String!
errorType - String!
errorDescription - String
data - String
apiVersion - Int
devEui - ID
waterMeterID - ID
Example
{
  "id": "4",
  "date": AWSDateTime,
  "type": "abc123",
  "errorType": "xyz789",
  "errorDescription": "abc123",
  "data": "abc123",
  "apiVersion": 123,
  "devEui": "4",
  "waterMeterID": "4"
}

CreateDeviceConfigurationInput

Fields
Input Field Description
id - ID
organizationID - ID!
name - String
startDate - AWSDateTime
endDate - AWSDateTime
pulsesPerGallon - Float
manufacturer - String
model - String
size - String
Example
{
  "id": "4",
  "organizationID": "4",
  "name": "xyz789",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "pulsesPerGallon": 987.65,
  "manufacturer": "abc123",
  "model": "abc123",
  "size": "xyz789"
}

CreateDeviceRegistrationInput

Fields
Input Field Description
id - ID
organizationID - ID!
devEui - ID!
name - String!
alertsSilenced - Boolean
notes - String
Example
{
  "id": 4,
  "organizationID": 4,
  "devEui": 4,
  "name": "xyz789",
  "alertsSilenced": false,
  "notes": "xyz789"
}

CreateDeviceStateInput

Fields
Input Field Description
id - ID
waterMeterID - ID
date - AWSDateTime
version - String
loggingMagnetometerEnabled - Boolean
loggingEnabled - Boolean
uuid - ID
flowRate - Float
totalGallons - Float
totalPulses - Float
appDataAPIVersion - Int
temperatureC - Float
mode - String
previousData - String
batteryMv - Float
lastZeroPeriodDate - AWSDateTime
zeroDate - AWSDateTime
leakID - ID
analysisDate - AWSDateTime
extendedFlowData - String
extendedFlowID - ID
temperatureIssueID - ID
batteryIssueID - ID
Example
{
  "id": "4",
  "waterMeterID": "4",
  "date": AWSDateTime,
  "version": "abc123",
  "loggingMagnetometerEnabled": true,
  "loggingEnabled": true,
  "uuid": 4,
  "flowRate": 987.65,
  "totalGallons": 123.45,
  "totalPulses": 123.45,
  "appDataAPIVersion": 987,
  "temperatureC": 123.45,
  "mode": "xyz789",
  "previousData": "abc123",
  "batteryMv": 123.45,
  "lastZeroPeriodDate": AWSDateTime,
  "zeroDate": AWSDateTime,
  "leakID": 4,
  "analysisDate": AWSDateTime,
  "extendedFlowData": "xyz789",
  "extendedFlowID": "4",
  "temperatureIssueID": 4,
  "batteryIssueID": "4"
}

CreateHardwareDataInput

Fields
Input Field Description
devEui - ID!
waterMeterID - ID
date - AWSDateTime
batteryPercent - Float
batteryMilliVolts - Float
apiVersion - Int
id - ID
Example
{
  "devEui": 4,
  "waterMeterID": 4,
  "date": AWSDateTime,
  "batteryPercent": 987.65,
  "batteryMilliVolts": 123.45,
  "apiVersion": 987,
  "id": "4"
}

CreateLeakDataInput

Fields
Input Field Description
id - ID
devEui - ID!
type - LeakType!
state - IssueState!
startDate - AWSDateTime!
endDate - AWSDateTime
lastAlertDate - AWSDateTime
pulsesPerMinute - Float
flowRate - Float
Example
{
  "id": 4,
  "devEui": "4",
  "type": "normal",
  "state": "new",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "lastAlertDate": AWSDateTime,
  "pulsesPerMinute": 123.45,
  "flowRate": 123.45
}

CreateLeakDataPointInput

Fields
Input Field Description
id - ID
devEui - ID!
leakID - ID!
waterMeterID - ID
startDate - AWSDateTime!
endDate - AWSDateTime!
pulses - Float!
gallons - Float!
pulsesPerMinute - Float!
gallonsPerMinute - Float!
Example
{
  "id": "4",
  "devEui": "4",
  "leakID": 4,
  "waterMeterID": 4,
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "pulses": 987.65,
  "gallons": 987.65,
  "pulsesPerMinute": 987.65,
  "gallonsPerMinute": 987.65
}

CreateLocationInput

Fields
Input Field Description
id - ID
address - String
addressShort - String
name - String
googlePlaceID - String
organizationID - ID!
alertsSilenced - Boolean
notes - String
Example
{
  "id": 4,
  "address": "abc123",
  "addressShort": "abc123",
  "name": "xyz789",
  "googlePlaceID": "abc123",
  "organizationID": "4",
  "alertsSilenced": true,
  "notes": "xyz789"
}

CreateOrganizationAlertSubscriptionInput

Fields
Input Field Description
id - ID
organizationID - ID!
protocol - AlertProtocol!
endpoint - String!
Example
{
  "id": "4",
  "organizationID": 4,
  "protocol": "sms",
  "endpoint": "xyz789"
}

CreateOrganizationInput

Fields
Input Field Description
id - ID
name - String!
customerID - ID
minimumMonthlyCost - Float
costPerGallonOfWater - Float
Example
{
  "id": 4,
  "name": "abc123",
  "customerID": 4,
  "minimumMonthlyCost": 987.65,
  "costPerGallonOfWater": 987.65
}

CreateReportRegistrationInput

Fields
Input Field Description
id - ID
organizationID - ID!
email - String!
interval - Interval!
lastReportDate - AWSDateTime
Example
{
  "id": "4",
  "organizationID": "4",
  "email": "xyz789",
  "interval": "DAILY",
  "lastReportDate": AWSDateTime
}

CreateSensorDataInput

Fields
Input Field Description
devEui - ID!
waterMeterID - ID
date - AWSDateTime
flowRate - Float
totalGallons - Float
temperatureC - Float
rssi - Float
snr - Float
apiVersion - Int
totalPulses - Float
fcnt - Int
hotspots - [HotspotInput]
id - ID
Example
{
  "devEui": 4,
  "waterMeterID": "4",
  "date": AWSDateTime,
  "flowRate": 123.45,
  "totalGallons": 987.65,
  "temperatureC": 987.65,
  "rssi": 123.45,
  "snr": 123.45,
  "apiVersion": 987,
  "totalPulses": 123.45,
  "fcnt": 123,
  "hotspots": [HotspotInput],
  "id": "4"
}

CreateUserDataInput

Fields
Input Field Description
id - ID
nowi - Boolean
currentOrganizationID - ID
darkModeEnabled - Boolean
waterUnits - WaterUnits
Example
{
  "id": 4,
  "nowi": false,
  "currentOrganizationID": 4,
  "darkModeEnabled": true,
  "waterUnits": "GALLONS"
}

CreateUserOrganizationRegistrationInput

Fields
Input Field Description
id - ID
organizationID - ID!
userID - ID!
Example
{
  "id": "4",
  "organizationID": "4",
  "userID": "4"
}

CreateWaterMeterInput

Fields
Input Field Description
id - ID
name - String
units - Int
configurationID - ID
deviceID - ID
locationID - ID
Example
{
  "id": 4,
  "name": "xyz789",
  "units": 987,
  "configurationID": 4,
  "deviceID": 4,
  "locationID": "4"
}

DeleteDetectedIssueInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteDeviceAlertInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteDeviceConfigurationInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteDeviceRegistrationInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteDeviceStateInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteHardwareDataInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteLeakDataInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteLeakDataPointInput

Fields
Input Field Description
id - ID!
endDate - AWSDateTime!
Example
{
  "id": "4",
  "endDate": AWSDateTime
}

DeleteLocationInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteOrganizationAlertSubscriptionInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteOrganizationInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteReportRegistrationInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteSensorDataInput

Fields
Input Field Description
id - ID!
Example
{"id": "4"}

DeleteUserDataInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteUserOrganizationRegistrationInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DeleteWaterMeterInput

Fields
Input Field Description
id - ID!
Example
{"id": 4}

DetectedIssue

Fields
Field Name Description
id - ID!
devEui - ID!
type - IssueType
state - IssueState!
startDate - AWSDateTime!
endDate - AWSDateTime
lastAlertDate - AWSDateTime
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "devEui": "4",
  "type": "lowBattery",
  "state": "new",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "lastAlertDate": AWSDateTime,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

DeviceAlert

Fields
Field Name Description
id - ID!
date - AWSDateTime
type - String!
errorType - String!
errorDescription - String
data - String
apiVersion - Int
devEui - ID
waterMeterID - ID
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "date": AWSDateTime,
  "type": "abc123",
  "errorType": "abc123",
  "errorDescription": "abc123",
  "data": "xyz789",
  "apiVersion": 123,
  "devEui": 4,
  "waterMeterID": "4",
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

DeviceConfiguration

Fields
Field Name Description
id - ID!
organizationID - ID!
name - String
startDate - AWSDateTime
endDate - AWSDateTime
pulsesPerGallon - Float
manufacturer - String
model - String
size - String
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": "4",
  "organizationID": 4,
  "name": "abc123",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "pulsesPerGallon": 123.45,
  "manufacturer": "abc123",
  "model": "abc123",
  "size": "xyz789",
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

DeviceRegistration

Fields
Field Name Description
id - ID!
organization - Organization
organizationID - ID!
devEui - ID!
device - DeviceState
name - String!
alertsSilenced - Boolean
notes - String
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "organization": Organization,
  "organizationID": 4,
  "devEui": "4",
  "device": DeviceState,
  "name": "xyz789",
  "alertsSilenced": true,
  "notes": "xyz789",
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

DeviceState

Fields
Field Name Description
id - ID!
waterMeterID - ID
waterMeter - WaterMeter
date - AWSDateTime
version - String
loggingMagnetometerEnabled - Boolean
loggingEnabled - Boolean
uuid - ID
flowRate - Float
totalGallons - Float
totalPulses - Float
appDataAPIVersion - Int
temperatureC - Float
mode - String
previousData - String
batteryMv - Float
lastZeroPeriodDate - AWSDateTime
zeroDate - AWSDateTime
leakID - ID
leak - LeakData
analysisDate - AWSDateTime
extendedFlowData - String
extendedFlowID - ID
extendedFlow - LeakData
temperatureIssueID - ID
temperatureIssue - DetectedIssue
batteryIssueID - ID
batteryIssue - DetectedIssue
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": "4",
  "waterMeterID": 4,
  "waterMeter": WaterMeter,
  "date": AWSDateTime,
  "version": "abc123",
  "loggingMagnetometerEnabled": false,
  "loggingEnabled": false,
  "uuid": "4",
  "flowRate": 123.45,
  "totalGallons": 987.65,
  "totalPulses": 123.45,
  "appDataAPIVersion": 123,
  "temperatureC": 987.65,
  "mode": "abc123",
  "previousData": "xyz789",
  "batteryMv": 987.65,
  "lastZeroPeriodDate": AWSDateTime,
  "zeroDate": AWSDateTime,
  "leakID": 4,
  "leak": LeakData,
  "analysisDate": AWSDateTime,
  "extendedFlowData": "abc123",
  "extendedFlowID": 4,
  "extendedFlow": LeakData,
  "temperatureIssueID": "4",
  "temperatureIssue": DetectedIssue,
  "batteryIssueID": 4,
  "batteryIssue": DetectedIssue,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

Float

Description

Built-in Float

Example
987.65

HardwareData

Fields
Field Name Description
devEui - ID!
waterMeterID - ID
date - AWSDateTime
batteryPercent - Float
batteryMilliVolts - Float
apiVersion - Int
id - ID!
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "devEui": 4,
  "waterMeterID": 4,
  "date": AWSDateTime,
  "batteryPercent": 123.45,
  "batteryMilliVolts": 987.65,
  "apiVersion": 987,
  "id": 4,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

Hotspot

Fields
Field Name Description
channel - Int
frequency - Float
lat - Float
long - Float
name - String
rssi - Float
snr - Float
spreading - String
status - String
Example
{
  "channel": 123,
  "frequency": 123.45,
  "lat": 123.45,
  "long": 987.65,
  "name": "xyz789",
  "rssi": 987.65,
  "snr": 987.65,
  "spreading": "abc123",
  "status": "xyz789"
}

HotspotInput

Fields
Input Field Description
channel - Int
frequency - Float
lat - Float
long - Float
name - String
rssi - Float
snr - Float
spreading - String
status - String
Example
{
  "channel": 987,
  "frequency": 123.45,
  "lat": 123.45,
  "long": 987.65,
  "name": "abc123",
  "rssi": 123.45,
  "snr": 123.45,
  "spreading": "abc123",
  "status": "xyz789"
}

ID

Description

Built-in ID

Example
"4"

Int

Description

Built-in Int

Example
987

Interval

Values
Enum Value Description

DAILY

WEEKLY

MONTHLY

Example
"DAILY"

IssueState

Values
Enum Value Description

new

active

ended

Example
"new"

IssueType

Values
Enum Value Description

lowBattery

lowTemperature

Example
"lowBattery"

LeakData

Fields
Field Name Description
id - ID!
devEui - ID!
type - LeakType!
state - IssueState!
startDate - AWSDateTime!
endDate - AWSDateTime
lastAlertDate - AWSDateTime
pulsesPerMinute - Float
flowRate - Float
dataPoints - ModelLeakDataPointConnection
Arguments
sortDirection - ModelSortDirection
limit - Int
nextToken - String
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "devEui": "4",
  "type": "normal",
  "state": "new",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "lastAlertDate": AWSDateTime,
  "pulsesPerMinute": 123.45,
  "flowRate": 123.45,
  "dataPoints": ModelLeakDataPointConnection,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

LeakDataPoint

Fields
Field Name Description
id - ID!
devEui - ID!
leakID - ID!
waterMeterID - ID
startDate - AWSDateTime!
endDate - AWSDateTime!
pulses - Float!
gallons - Float!
pulsesPerMinute - Float!
gallonsPerMinute - Float!
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "devEui": 4,
  "leakID": "4",
  "waterMeterID": "4",
  "startDate": AWSDateTime,
  "endDate": AWSDateTime,
  "pulses": 987.65,
  "gallons": 987.65,
  "pulsesPerMinute": 123.45,
  "gallonsPerMinute": 987.65,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

LeakType

Values
Enum Value Description

normal

extended

Example
"normal"

Location

Fields
Field Name Description
id - ID!
address - String
addressShort - String
name - String
googlePlaceID - String
organizationID - ID!
alertsSilenced - Boolean
notes - String
waterMeters - ModelWaterMeterConnection
Arguments
sortDirection - ModelSortDirection
limit - Int
nextToken - String
createdAt - AWSDateTime!
updatedAt - AWSDateTime!
Example
{
  "id": 4,
  "address": "abc123",
  "addressShort": "xyz789",
  "name": "abc123",
  "googlePlaceID": "abc123",
  "organizationID": "4",
  "alertsSilenced": false,
  "notes": "abc123",
  "waterMeters": ModelWaterMeterConnection,
  "createdAt": AWSDateTime,
  "updatedAt": AWSDateTime
}

ModelAlertProtocolInput

Fields
Input Field Description
eq - AlertProtocol
ne - AlertProtocol
Example
{"eq": "sms", "ne": "sms"}

ModelAttributeTypes

Values
Enum Value Description

binary

binarySet

bool

list

map

number

numberSet

string

stringSet

_null

Example
"binary"

ModelBooleanInput

Fields
Input Field Description
ne - Boolean
eq - Boolean
attributeExists - Boolean
attributeType - ModelAttributeTypes
Example
{"ne": false, "eq": true, "attributeExists": false, "attributeType": "binary"}

ModelDetectedIssueConditionInput

Example
{
  "devEui": ModelIDInput,
  "type": ModelIssueTypeInput,
  "state": ModelIssueStateInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "lastAlertDate": ModelStringInput,
  "and": [ModelDetectedIssueConditionInput],
  "or": [ModelDetectedIssueConditionInput],
  "not": ModelDetectedIssueConditionInput
}

ModelDetectedIssueConnection

Fields
Field Name Description
items - [DetectedIssue]!
nextToken - String
Example
{
  "items": [DetectedIssue],
  "nextToken": "abc123"
}

ModelDetectedIssueFilterInput

Example
{
  "id": ModelIDInput,
  "devEui": ModelIDInput,
  "type": ModelIssueTypeInput,
  "state": ModelIssueStateInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "lastAlertDate": ModelStringInput,
  "and": [ModelDetectedIssueFilterInput],
  "or": [ModelDetectedIssueFilterInput],
  "not": ModelDetectedIssueFilterInput
}

ModelDeviceAlertConditionInput

Fields
Input Field Description
date - ModelStringInput
type - ModelStringInput
errorType - ModelStringInput
errorDescription - ModelStringInput
data - ModelStringInput
apiVersion - ModelIntInput
devEui - ModelIDInput
waterMeterID - ModelIDInput
and - [ModelDeviceAlertConditionInput]
or - [ModelDeviceAlertConditionInput]
not - ModelDeviceAlertConditionInput
Example
{
  "date": ModelStringInput,
  "type": ModelStringInput,
  "errorType": ModelStringInput,
  "errorDescription": ModelStringInput,
  "data": ModelStringInput,
  "apiVersion": ModelIntInput,
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "and": [ModelDeviceAlertConditionInput],
  "or": [ModelDeviceAlertConditionInput],
  "not": ModelDeviceAlertConditionInput
}

ModelDeviceAlertConnection

Fields
Field Name Description
items - [DeviceAlert]!
nextToken - String
Example
{
  "items": [DeviceAlert],
  "nextToken": "xyz789"
}

ModelDeviceAlertFilterInput

Fields
Input Field Description
id - ModelIDInput
date - ModelStringInput
type - ModelStringInput
errorType - ModelStringInput
errorDescription - ModelStringInput
data - ModelStringInput
apiVersion - ModelIntInput
devEui - ModelIDInput
waterMeterID - ModelIDInput
and - [ModelDeviceAlertFilterInput]
or - [ModelDeviceAlertFilterInput]
not - ModelDeviceAlertFilterInput
Example
{
  "id": ModelIDInput,
  "date": ModelStringInput,
  "type": ModelStringInput,
  "errorType": ModelStringInput,
  "errorDescription": ModelStringInput,
  "data": ModelStringInput,
  "apiVersion": ModelIntInput,
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "and": [ModelDeviceAlertFilterInput],
  "or": [ModelDeviceAlertFilterInput],
  "not": ModelDeviceAlertFilterInput
}

ModelDeviceConfigurationConditionInput

Example
{
  "organizationID": ModelIDInput,
  "name": ModelStringInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "pulsesPerGallon": ModelFloatInput,
  "manufacturer": ModelStringInput,
  "model": ModelStringInput,
  "size": ModelStringInput,
  "and": [ModelDeviceConfigurationConditionInput],
  "or": [ModelDeviceConfigurationConditionInput],
  "not": ModelDeviceConfigurationConditionInput
}

ModelDeviceConfigurationConnection

Fields
Field Name Description
items - [DeviceConfiguration]!
nextToken - String
Example
{
  "items": [DeviceConfiguration],
  "nextToken": "xyz789"
}

ModelDeviceConfigurationFilterInput

Example
{
  "id": ModelIDInput,
  "organizationID": ModelIDInput,
  "name": ModelStringInput,
  "startDate": ModelStringInput,
  "endDate": ModelStringInput,
  "pulsesPerGallon": ModelFloatInput,
  "manufacturer": ModelStringInput,
  "model": ModelStringInput,
  "size": ModelStringInput,
  "and": [ModelDeviceConfigurationFilterInput],
  "or": [ModelDeviceConfigurationFilterInput],
  "not": ModelDeviceConfigurationFilterInput
}

ModelDeviceRegistrationConditionInput

Example
{
  "organizationID": ModelIDInput,
  "devEui": ModelIDInput,
  "name": ModelStringInput,
  "alertsSilenced": ModelBooleanInput,
  "notes": ModelStringInput,
  "and": [ModelDeviceRegistrationConditionInput],
  "or": [ModelDeviceRegistrationConditionInput],
  "not": ModelDeviceRegistrationConditionInput
}

ModelDeviceRegistrationConnection

Fields
Field Name Description
items - [DeviceRegistration]!
nextToken - String
Example
{
  "items": [DeviceRegistration],
  "nextToken": "abc123"
}

ModelDeviceRegistrationFilterInput

Example
{
  "id": ModelIDInput,
  "organizationID": ModelIDInput,
  "devEui": ModelIDInput,
  "name": ModelStringInput,
  "alertsSilenced": ModelBooleanInput,
  "notes": ModelStringInput,
  "and": [ModelDeviceRegistrationFilterInput],
  "or": [ModelDeviceRegistrationFilterInput],
  "not": ModelDeviceRegistrationFilterInput
}

ModelDeviceStateConditionInput

Fields
Input Field Description
waterMeterID - ModelIDInput
date - ModelStringInput
version - ModelStringInput
loggingMagnetometerEnabled - ModelBooleanInput
loggingEnabled - ModelBooleanInput
uuid - ModelIDInput
flowRate - ModelFloatInput
totalGallons - ModelFloatInput
totalPulses - ModelFloatInput
appDataAPIVersion - ModelIntInput
temperatureC - ModelFloatInput
mode - ModelStringInput
previousData - ModelStringInput
batteryMv - ModelFloatInput
lastZeroPeriodDate - ModelStringInput
zeroDate - ModelStringInput
leakID - ModelIDInput
analysisDate - ModelStringInput
extendedFlowData - ModelStringInput
extendedFlowID - ModelIDInput
temperatureIssueID - ModelIDInput
batteryIssueID - ModelIDInput
and - [ModelDeviceStateConditionInput]
or - [ModelDeviceStateConditionInput]
not - ModelDeviceStateConditionInput
Example
{
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "version": ModelStringInput,
  "loggingMagnetometerEnabled": ModelBooleanInput,
  "loggingEnabled": ModelBooleanInput,
  "uuid": ModelIDInput,
  "flowRate": ModelFloatInput,
  "totalGallons": ModelFloatInput,
  "totalPulses": ModelFloatInput,
  "appDataAPIVersion": ModelIntInput,
  "temperatureC": ModelFloatInput,
  "mode": ModelStringInput,
  "previousData": ModelStringInput,
  "batteryMv": ModelFloatInput,
  "lastZeroPeriodDate": ModelStringInput,
  "zeroDate": ModelStringInput,
  "leakID": ModelIDInput,
  "analysisDate": ModelStringInput,
  "extendedFlowData": ModelStringInput,
  "extendedFlowID": ModelIDInput,
  "temperatureIssueID": ModelIDInput,
  "batteryIssueID": ModelIDInput,
  "and": [ModelDeviceStateConditionInput],
  "or": [ModelDeviceStateConditionInput],
  "not": ModelDeviceStateConditionInput
}

ModelDeviceStateConnection

Fields
Field Name Description
items - [DeviceState]!
nextToken - String
Example
{
  "items": [DeviceState],
  "nextToken": "xyz789"
}

ModelDeviceStateFilterInput

Fields
Input Field Description
id - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
version - ModelStringInput
loggingMagnetometerEnabled - ModelBooleanInput
loggingEnabled - ModelBooleanInput
uuid - ModelIDInput
flowRate - ModelFloatInput
totalGallons - ModelFloatInput
totalPulses - ModelFloatInput
appDataAPIVersion - ModelIntInput
temperatureC - ModelFloatInput
mode - ModelStringInput
previousData - ModelStringInput
batteryMv - ModelFloatInput
lastZeroPeriodDate - ModelStringInput
zeroDate - ModelStringInput
leakID - ModelIDInput
analysisDate - ModelStringInput
extendedFlowData - ModelStringInput
extendedFlowID - ModelIDInput
temperatureIssueID - ModelIDInput
batteryIssueID - ModelIDInput
and - [ModelDeviceStateFilterInput]
or - [ModelDeviceStateFilterInput]
not - ModelDeviceStateFilterInput
Example
{
  "id": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "version": ModelStringInput,
  "loggingMagnetometerEnabled": ModelBooleanInput,
  "loggingEnabled": ModelBooleanInput,
  "uuid": ModelIDInput,
  "flowRate": ModelFloatInput,
  "totalGallons": ModelFloatInput,
  "totalPulses": ModelFloatInput,
  "appDataAPIVersion": ModelIntInput,
  "temperatureC": ModelFloatInput,
  "mode": ModelStringInput,
  "previousData": ModelStringInput,
  "batteryMv": ModelFloatInput,
  "lastZeroPeriodDate": ModelStringInput,
  "zeroDate": ModelStringInput,
  "leakID": ModelIDInput,
  "analysisDate": ModelStringInput,
  "extendedFlowData": ModelStringInput,
  "extendedFlowID": ModelIDInput,
  "temperatureIssueID": ModelIDInput,
  "batteryIssueID": ModelIDInput,
  "and": [ModelDeviceStateFilterInput],
  "or": [ModelDeviceStateFilterInput],
  "not": ModelDeviceStateFilterInput
}

ModelFloatInput

Fields
Input Field Description
ne - Float
eq - Float
le - Float
lt - Float
ge - Float
gt - Float
between - [Float]
attributeExists - Boolean
attributeType - ModelAttributeTypes
Example
{
  "ne": 123.45,
  "eq": 987.65,
  "le": 123.45,
  "lt": 123.45,
  "ge": 987.65,
  "gt": 123.45,
  "between": [987.65],
  "attributeExists": true,
  "attributeType": "binary"
}

ModelHardwareDataConditionInput

Fields
Input Field Description
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
batteryPercent - ModelFloatInput
batteryMilliVolts - ModelFloatInput
apiVersion - ModelIntInput
and - [ModelHardwareDataConditionInput]
or - [ModelHardwareDataConditionInput]
not - ModelHardwareDataConditionInput
Example
{
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "batteryPercent": ModelFloatInput,
  "batteryMilliVolts": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "and": [ModelHardwareDataConditionInput],
  "or": [ModelHardwareDataConditionInput],
  "not": ModelHardwareDataConditionInput
}

ModelHardwareDataConnection

Fields
Field Name Description
items - [HardwareData]!
nextToken - String
Example
{
  "items": [HardwareData],
  "nextToken": "abc123"
}

ModelHardwareDataFilterInput

Fields
Input Field Description
devEui - ModelIDInput
waterMeterID - ModelIDInput
date - ModelStringInput
batteryPercent - ModelFloatInput
batteryMilliVolts - ModelFloatInput
apiVersion - ModelIntInput
and - [ModelHardwareDataFilterInput]
or - [ModelHardwareDataFilterInput]
not - ModelHardwareDataFilterInput
Example
{
  "devEui": ModelIDInput,
  "waterMeterID": ModelIDInput,
  "date": ModelStringInput,
  "batteryPercent": ModelFloatInput,
  "batteryMilliVolts": ModelFloatInput,
  "apiVersion": ModelIntInput,
  "and": [ModelHardwareDataFilterInput],
  "or": [ModelHardwareDataFilterInput],
  "not": ModelHardwareDataFilterInput
}

ModelIDInput

Fields
Input Field Description
ne - ID
eq - ID
le - ID
lt - ID
ge - ID
gt - ID
contains - ID
notContains - ID
between - [ID]
beginsWith - ID
attributeExists - Boolean
attributeType - ModelAttributeTypes
size - ModelSizeInput
Example
{
  "ne": 4,
  "eq": "4",
  "le": 4,
  "lt": "4",
  "ge": 4,
  "gt": "4",
  "contains": "4",
  "notContains": "4",
  "between": [4],
  "beginsWith": 4,
  "attributeExists": true,
  "attributeType": "binary",
  "size": ModelSizeInput
}

ModelIDKeyConditionInput

Fields
Input Field Description
eq - ID
le - ID
lt - ID
ge - ID