Technis API V1

Welcome to the Technis API documentation!

This page will help you get up and running with Technis' GraphQL API. You can learn more about GraphQL here.

Code examples (in javascript) are shown in the dark area on the right.

All requests have to be sent to the GraphQL API endpoint.

API Endpoints
# Production:
https://api-application.technis.com/api/graphql

Getting started

Authentication

If you don't have an API token yet, you'll need to go to the admin panel of the dashboard and create a new token that will allow us to authenticate you during queries.

Then, replace <YOUR_TOKEN_HERE> in the example to the right with the one you just created in the admin panel.

The server expects for the authorization bearer token to be included in all API requests to the server in a http header.

Playground

You can test the api at our GraphQL V1 Playground or our GraphQL V2 Playground.

{
  "Authorization": "Bearer <YOUR_TOKEN_HERE>"
}

Changelog

Date Changes
2023-10-03 Update the Glossary and add API chart
2023-10-04 Update fields descriptions
2023-10-24 Update examples

Glossary

API structure

Installations, zones and passages

An Installation represents the physical part of the system. It is made up of Zones (which may or may not have sub-zones) connected to each other or to the outside via Passages.

Events

Events that correspond to a (long) counting duration defined by the client. Events have a start and end date that indicates when they start and end. Some Events are in “never ending” mode and do not necessarily have an end date. An Event is made up of Counting Periods which are automatically generated one or two days in advance and correspond to a short counting period (generally 1 day).

Devices, brands, models, and status

There are 2 types of devices, the counting devices (named Pads) that can be cameras or counting mats. And the air quality devices (named atmosphere devices). Those devices are linked to a passage (for counting devices) or a zone (for atmosphere devices), and generate some counts (for counting devices) or KPIs (for atmosphere devices). They also generate live status, and the history of passed statuses is also accessible via this API.

KPIs & counts

KPIs and Counts are linked either to a Period or an Event (sum of the Periods globally) and to a Passage or to a Zone. They contain the data from the various sensors transformed into a number.

API V1 and API V2

As we have recently created new KPIs and reworked our calculation method for the metering and air quality KPIs, we have created a second API. This allows you to access the V2 KPI database. So you have two APIs to access your data:

Examples

Here is a list about the most used/useful queries in this API V1. . Note that if you need to access Kpis that are not basic counting or air quality KPis, you should use the API V2.

To get all of your information about your installations :

query topology {
  allInstallations {
    zones {
      name
      id
    }
    events {
      name
      id
    }
  }
}

The answer returned will look like :

{
  "data": {
    "allInstallations": [
      {
        "name": "Building Simulation",
        "zones": [
          {
            "name": "Building Simulation",
            "id": 1
          },
          {
            "name": "Hall",
            "id": 2
          },
          {
            "name": "Open Space",
            "id": 3
          }
        ],
        "events": [
          {
            "name": "Building Simulation",
            "id": 1
          }
        ]
      }
    ]
  }
}

To get your counts at a certain date and time :

query liveDataLegacy {
  zoneById(zoneId: 1) {
    counts(eventId: 1, dates: [1690374617000]) {
      in
      out
    }
  }
}

The answer returned will look like :

{
  "data": {
    "zoneById": {
      "counts": [
        {
          "in": 1357,
          "out": 1357
        }
      ]
    }
  }
}

To get your Kpis at a certain date :

query KPIsDataLegacy {
  zoneById(zoneId: 1) {
    kpis(eventId: 1, dates: [1690374617000]) {
      dateBegin
      inside
    }
  }
}

The answer returned will look like :

{
  "data": {
    "zoneById": {
      "kpis": [
        {
          "dateBegin": 1690322400000,
          "inside": [
            0,
            0,
            0,
            ...
            1313,
            1315,
            1317,
            ...
            ]
        }
      ]
    }
  }
}

Queries

allEvents

Description

This query allows you to get all events you have access to.

Response

Returns [Event]

Example

Query
query AllEvents {
  allEvents {
    id
    installationId
    name
    description
    dateBegin
    dateEnd
    neverEnding
    limit
    metrics
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
    stopngo {
      id
      eventId
      limit
      lang
      logoUrl
      hasTechnisLogo
      soundConfig {
        enabled
        sounds {
          ...StopNGoSoundConfigSoundsFragment
        }
        type
        timeout
      }
      customTexts {
        go {
          ...StopNGoCustomTextsGoFragment
        }
        stop {
          ...StopNGoCustomTextsGoFragment
        }
      }
      showroomConfig {
        enabled
        mediaLibrary {
          ...StopNGoShowroomConfigMediaLibraryFragment
        }
        slideshows {
          ...StopNGoShowroomConfigSlideshowsFragment
        }
        unit
      }
      _id
    }
    canEditStopNGo
    weather {
      city
      country
      iconCode
      dateBegin
      dateEnd
      uvIndex
      humidity
      windSpeed
      temperature
      precipitation
      currentIconCode
      currentUvIndex
      currentHumidity
      currentWindSpeed
      currentTemperature
      currentPrecipitation
    }
  }
}
Response
{
  "data": {
    "allEvents": [
      {
        "id": 123.45,
        "installationId": 123.45,
        "name": "xyz789",
        "description": "xyz789",
        "dateBegin": 123.45,
        "dateEnd": 123.45,
        "neverEnding": true,
        "limit": 987,
        "metrics": ["abc123"],
        "_id": MongoID,
        "installation": Installation,
        "kpis": [Kpi],
        "counts": [Count],
        "stopngo": StopNGo,
        "canEditStopNGo": true,
        "weather": [Weather]
      }
    ]
  }
}

allInstallations

Description

This query allows you to get all installations you have access to.

Response

Returns [Installation]

Example

Query
query AllInstallations {
  allInstallations {
    id
    name
    country
    city
    postCode
    address
    img
    organizationId
    deleted
    timezone
    metrics
    creationDate
    change_of_day_time
    opening_hours
    processingTaskTypes
    generateLegacyKpis
    resetAtChangeOfDay
    _id
    zones {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    events {
      id
      installationId
      name
      description
      dateBegin
      dateEnd
      neverEnding
      limit
      metrics
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      stopngo {
        id
        eventId
        limit
        lang
        logoUrl
        hasTechnisLogo
        soundConfig {
          ...StopNGoSoundConfigFragment
        }
        customTexts {
          ...StopNGoCustomTextsFragment
        }
        showroomConfig {
          ...StopNGoShowroomConfigFragment
        }
        _id
      }
      canEditStopNGo
      weather {
        city
        country
        iconCode
        dateBegin
        dateEnd
        uvIndex
        humidity
        windSpeed
        temperature
        precipitation
        currentIconCode
        currentUvIndex
        currentHumidity
        currentWindSpeed
        currentTemperature
        currentPrecipitation
      }
    }
    totalSensors
    totalZones
    totalPassages
  }
}
Response
{
  "data": {
    "allInstallations": [
      {
        "id": 123.45,
        "name": "abc123",
        "country": "abc123",
        "city": "xyz789",
        "postCode": "xyz789",
        "address": "xyz789",
        "img": "abc123",
        "organizationId": 987.65,
        "deleted": true,
        "timezone": "xyz789",
        "metrics": ["counting"],
        "creationDate": 123.45,
        "change_of_day_time": [987.65],
        "opening_hours": [{}],
        "processingTaskTypes": ["abc123"],
        "generateLegacyKpis": false,
        "resetAtChangeOfDay": false,
        "_id": MongoID,
        "zones": [Zone],
        "events": [Event],
        "totalSensors": 123,
        "totalZones": 987,
        "totalPassages": 123
      }
    ]
  }
}

allPads

Description

This query allows you to get all pads you have access to.

Response

Returns [Pad]

Example

Query
query AllPads {
  allPads {
    id
    installationId
    passageId
    name
    direction
    config
    bluetoothServiceId
    macEthernet
    macWifi
    pcbVersion
    rpiVersion
    versionId
    versionUpdatedAt
    deleted
    modelId
    serialNumber
    stockId
    macAddress
    CRMProduct
    isVirtual
    disconnectionTimeout
    _id
    status {
      msg
      statusCode
      padId
      dateReceived
      batteryLevel
      _id
      reconnected
    }
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    organizationId
    passage {
      id
      installationId
      padIds
      name
      zoneOutIds
      zoneInIds
      deleted
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      zoneOuts {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      zoneIns {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
    }
    model {
      id
      name
      brandId
      type
      connectivity
      typeOfSensor
      application
      crmProduct
      serialNumberRegularExpression
      macAddressRegularExpression
      defaultDisconnectionTimeout
      _id
      brand {
        id
        name
        _id
        models {
          ...ModelFragment
        }
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      deviceAtmospheres {
        id
        oldId
        name
        zoneId
        installationId
        deleted
        modelId
        serialNumber
        stockId
        externalId
        macAddress
        CRMProduct
        disconnectionTimeout
        _id
        zone {
          ...ZoneFragment
        }
        installation {
          ...InstallationFragment
        }
        kpiAtmosphere {
          ...KpiAtmosphereFragment
        }
        organizationId
        enabledKpis
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
      }
    }
    brand {
      id
      name
      _id
      models {
        id
        name
        brandId
        type
        connectivity
        typeOfSensor
        application
        crmProduct
        serialNumberRegularExpression
        macAddressRegularExpression
        defaultDisconnectionTimeout
        _id
        brand {
          ...BrandFragment
        }
        pads {
          ...PadFragment
        }
        deviceAtmospheres {
          ...DeviceAtmosphereFragment
        }
      }
    }
    liveStatus {
      padId
      statusCode
      msg
      debug
      dateProcessed
    }
  }
}
Response
{
  "data": {
    "allPads": [
      {
        "id": "abc123",
        "installationId": 987.65,
        "passageId": 123.45,
        "name": "abc123",
        "direction": 123.45,
        "config": "abc123",
        "bluetoothServiceId": "xyz789",
        "macEthernet": "xyz789",
        "macWifi": "xyz789",
        "pcbVersion": "xyz789",
        "rpiVersion": "abc123",
        "versionId": "abc123",
        "versionUpdatedAt": 987.65,
        "deleted": true,
        "modelId": 987.65,
        "serialNumber": "xyz789",
        "stockId": 123.45,
        "macAddress": "xyz789",
        "CRMProduct": "xyz789",
        "isVirtual": true,
        "disconnectionTimeout": 987.65,
        "_id": MongoID,
        "status": StatusSafe,
        "installation": Installation,
        "organizationId": 987,
        "passage": Passage,
        "model": Model,
        "brand": Brand,
        "liveStatus": PadAliveStatusTC
      }
    ]
  }
}

allPassages

Description

This query allows you to get all passages going to a given Zone.

Response

Returns [Passage]

Arguments
Name Description
zoneId - Int!

Example

Query
query AllPassages($zoneId: Int!) {
  allPassages(zoneId: $zoneId) {
    id
    installationId
    padIds
    name
    zoneOutIds
    zoneInIds
    deleted
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    zoneOuts {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    zoneIns {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    pads {
      id
      installationId
      passageId
      name
      direction
      config
      bluetoothServiceId
      macEthernet
      macWifi
      pcbVersion
      rpiVersion
      versionId
      versionUpdatedAt
      deleted
      modelId
      serialNumber
      stockId
      macAddress
      CRMProduct
      isVirtual
      disconnectionTimeout
      _id
      status {
        msg
        statusCode
        padId
        dateReceived
        batteryLevel
        _id
        reconnected
      }
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      organizationId
      passage {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      model {
        id
        name
        brandId
        type
        connectivity
        typeOfSensor
        application
        crmProduct
        serialNumberRegularExpression
        macAddressRegularExpression
        defaultDisconnectionTimeout
        _id
        brand {
          ...BrandFragment
        }
        pads {
          ...PadFragment
        }
        deviceAtmospheres {
          ...DeviceAtmosphereFragment
        }
      }
      brand {
        id
        name
        _id
        models {
          ...ModelFragment
        }
      }
      liveStatus {
        padId
        statusCode
        msg
        debug
        dateProcessed
      }
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
  }
}
Variables
{"zoneId": 987}
Response
{
  "data": {
    "allPassages": [
      {
        "id": 987.65,
        "installationId": 123.45,
        "padIds": ["abc123"],
        "name": "xyz789",
        "zoneOutIds": [987.65],
        "zoneInIds": [123.45],
        "deleted": true,
        "_id": MongoID,
        "installation": Installation,
        "zoneOuts": [Zone],
        "zoneIns": [Zone],
        "pads": [Pad],
        "kpis": [Kpi],
        "counts": [Count]
      }
    ]
  }
}

allZones

Description

This query allows you to get all zones you have access to on a specific installation.

Response

Returns [Zone]

Arguments
Name Description
installationId - Int!

Example

Query
query AllZones($installationId: Int!) {
  allZones(installationId: $installationId) {
    id
    name
    installationId
    parentIds
    childIds
    passageIds
    countMinMax
    msgFull
    msgEmpty
    deleted
    capacity
    surface
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    passages {
      id
      installationId
      padIds
      name
      zoneOutIds
      zoneInIds
      deleted
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      zoneOuts {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      zoneIns {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
    }
    parents {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    children {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    kpisAtmosphere {
      zoneId
      periodId
      deviceId
      _id
      dateBegin
      dateEnd
      co2Min
      humidityMin
      temperatureMin
      covMin
      luminosityMin
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
    flowRate
  }
}
Variables
{"installationId": 987}
Response
{
  "data": {
    "allZones": [
      {
        "id": 987.65,
        "name": "xyz789",
        "installationId": 123.45,
        "parentIds": [123.45],
        "childIds": [123.45],
        "passageIds": [987.65],
        "countMinMax": [123.45],
        "msgFull": "xyz789",
        "msgEmpty": "xyz789",
        "deleted": false,
        "capacity": 987.65,
        "surface": 987.65,
        "_id": MongoID,
        "installation": Installation,
        "passages": [Passage],
        "parents": [Zone],
        "children": [Zone],
        "kpis": [Kpi],
        "kpisAtmosphere": [KpiAtmosphere],
        "counts": [Count],
        "flowRate": 987
      }
    ]
  }
}

eventById

Description

This query allows you to get a specifc event.

Response

Returns an Event

Arguments
Name Description
eventId - Int!

Example

Query
query EventById($eventId: Int!) {
  eventById(eventId: $eventId) {
    id
    installationId
    name
    description
    dateBegin
    dateEnd
    neverEnding
    limit
    metrics
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
    stopngo {
      id
      eventId
      limit
      lang
      logoUrl
      hasTechnisLogo
      soundConfig {
        enabled
        sounds {
          ...StopNGoSoundConfigSoundsFragment
        }
        type
        timeout
      }
      customTexts {
        go {
          ...StopNGoCustomTextsGoFragment
        }
        stop {
          ...StopNGoCustomTextsGoFragment
        }
      }
      showroomConfig {
        enabled
        mediaLibrary {
          ...StopNGoShowroomConfigMediaLibraryFragment
        }
        slideshows {
          ...StopNGoShowroomConfigSlideshowsFragment
        }
        unit
      }
      _id
    }
    canEditStopNGo
    weather {
      city
      country
      iconCode
      dateBegin
      dateEnd
      uvIndex
      humidity
      windSpeed
      temperature
      precipitation
      currentIconCode
      currentUvIndex
      currentHumidity
      currentWindSpeed
      currentTemperature
      currentPrecipitation
    }
  }
}
Variables
{"eventId": 123}
Response
{
  "data": {
    "eventById": {
      "id": 123.45,
      "installationId": 987.65,
      "name": "abc123",
      "description": "xyz789",
      "dateBegin": 123.45,
      "dateEnd": 123.45,
      "neverEnding": true,
      "limit": 123,
      "metrics": ["abc123"],
      "_id": MongoID,
      "installation": Installation,
      "kpis": [Kpi],
      "counts": [Count],
      "stopngo": StopNGo,
      "canEditStopNGo": true,
      "weather": [Weather]
    }
  }
}

installationById

Description

This query allows you to get a specifc installation.

Response

Returns an Installation

Arguments
Name Description
installationId - Int!

Example

Query
query InstallationById($installationId: Int!) {
  installationById(installationId: $installationId) {
    id
    name
    country
    city
    postCode
    address
    img
    organizationId
    deleted
    timezone
    metrics
    creationDate
    change_of_day_time
    opening_hours
    processingTaskTypes
    generateLegacyKpis
    resetAtChangeOfDay
    _id
    zones {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    events {
      id
      installationId
      name
      description
      dateBegin
      dateEnd
      neverEnding
      limit
      metrics
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      stopngo {
        id
        eventId
        limit
        lang
        logoUrl
        hasTechnisLogo
        soundConfig {
          ...StopNGoSoundConfigFragment
        }
        customTexts {
          ...StopNGoCustomTextsFragment
        }
        showroomConfig {
          ...StopNGoShowroomConfigFragment
        }
        _id
      }
      canEditStopNGo
      weather {
        city
        country
        iconCode
        dateBegin
        dateEnd
        uvIndex
        humidity
        windSpeed
        temperature
        precipitation
        currentIconCode
        currentUvIndex
        currentHumidity
        currentWindSpeed
        currentTemperature
        currentPrecipitation
      }
    }
    totalSensors
    totalZones
    totalPassages
  }
}
Variables
{"installationId": 123}
Response
{
  "data": {
    "installationById": {
      "id": 123.45,
      "name": "xyz789",
      "country": "abc123",
      "city": "xyz789",
      "postCode": "abc123",
      "address": "xyz789",
      "img": "xyz789",
      "organizationId": 987.65,
      "deleted": true,
      "timezone": "xyz789",
      "metrics": ["counting"],
      "creationDate": 123.45,
      "change_of_day_time": [123.45],
      "opening_hours": [{}],
      "processingTaskTypes": ["abc123"],
      "generateLegacyKpis": true,
      "resetAtChangeOfDay": true,
      "_id": MongoID,
      "zones": [Zone],
      "events": [Event],
      "totalSensors": 987,
      "totalZones": 123,
      "totalPassages": 123
    }
  }
}

padById

Description

This query allows you to get a specifc pad.

Response

Returns [Pad]

Arguments
Name Description
padId - String!

Example

Query
query PadById($padId: String!) {
  padById(padId: $padId) {
    id
    installationId
    passageId
    name
    direction
    config
    bluetoothServiceId
    macEthernet
    macWifi
    pcbVersion
    rpiVersion
    versionId
    versionUpdatedAt
    deleted
    modelId
    serialNumber
    stockId
    macAddress
    CRMProduct
    isVirtual
    disconnectionTimeout
    _id
    status {
      msg
      statusCode
      padId
      dateReceived
      batteryLevel
      _id
      reconnected
    }
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    organizationId
    passage {
      id
      installationId
      padIds
      name
      zoneOutIds
      zoneInIds
      deleted
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      zoneOuts {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      zoneIns {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
    }
    model {
      id
      name
      brandId
      type
      connectivity
      typeOfSensor
      application
      crmProduct
      serialNumberRegularExpression
      macAddressRegularExpression
      defaultDisconnectionTimeout
      _id
      brand {
        id
        name
        _id
        models {
          ...ModelFragment
        }
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      deviceAtmospheres {
        id
        oldId
        name
        zoneId
        installationId
        deleted
        modelId
        serialNumber
        stockId
        externalId
        macAddress
        CRMProduct
        disconnectionTimeout
        _id
        zone {
          ...ZoneFragment
        }
        installation {
          ...InstallationFragment
        }
        kpiAtmosphere {
          ...KpiAtmosphereFragment
        }
        organizationId
        enabledKpis
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
      }
    }
    brand {
      id
      name
      _id
      models {
        id
        name
        brandId
        type
        connectivity
        typeOfSensor
        application
        crmProduct
        serialNumberRegularExpression
        macAddressRegularExpression
        defaultDisconnectionTimeout
        _id
        brand {
          ...BrandFragment
        }
        pads {
          ...PadFragment
        }
        deviceAtmospheres {
          ...DeviceAtmosphereFragment
        }
      }
    }
    liveStatus {
      padId
      statusCode
      msg
      debug
      dateProcessed
    }
  }
}
Variables
{"padId": "xyz789"}
Response
{
  "data": {
    "padById": [
      {
        "id": "abc123",
        "installationId": 987.65,
        "passageId": 123.45,
        "name": "abc123",
        "direction": 123.45,
        "config": "xyz789",
        "bluetoothServiceId": "abc123",
        "macEthernet": "abc123",
        "macWifi": "abc123",
        "pcbVersion": "abc123",
        "rpiVersion": "abc123",
        "versionId": "xyz789",
        "versionUpdatedAt": 123.45,
        "deleted": false,
        "modelId": 123.45,
        "serialNumber": "abc123",
        "stockId": 123.45,
        "macAddress": "abc123",
        "CRMProduct": "xyz789",
        "isVirtual": false,
        "disconnectionTimeout": 123.45,
        "_id": MongoID,
        "status": StatusSafe,
        "installation": Installation,
        "organizationId": 123,
        "passage": Passage,
        "model": Model,
        "brand": Brand,
        "liveStatus": PadAliveStatusTC
      }
    ]
  }
}

passageById

Description

This query allows you to get a specifc passage.

Response

Returns a Passage

Arguments
Name Description
passageId - Int!

Example

Query
query PassageById($passageId: Int!) {
  passageById(passageId: $passageId) {
    id
    installationId
    padIds
    name
    zoneOutIds
    zoneInIds
    deleted
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    zoneOuts {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    zoneIns {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    pads {
      id
      installationId
      passageId
      name
      direction
      config
      bluetoothServiceId
      macEthernet
      macWifi
      pcbVersion
      rpiVersion
      versionId
      versionUpdatedAt
      deleted
      modelId
      serialNumber
      stockId
      macAddress
      CRMProduct
      isVirtual
      disconnectionTimeout
      _id
      status {
        msg
        statusCode
        padId
        dateReceived
        batteryLevel
        _id
        reconnected
      }
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      organizationId
      passage {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      model {
        id
        name
        brandId
        type
        connectivity
        typeOfSensor
        application
        crmProduct
        serialNumberRegularExpression
        macAddressRegularExpression
        defaultDisconnectionTimeout
        _id
        brand {
          ...BrandFragment
        }
        pads {
          ...PadFragment
        }
        deviceAtmospheres {
          ...DeviceAtmosphereFragment
        }
      }
      brand {
        id
        name
        _id
        models {
          ...ModelFragment
        }
      }
      liveStatus {
        padId
        statusCode
        msg
        debug
        dateProcessed
      }
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
  }
}
Variables
{"passageId": 987}
Response
{
  "data": {
    "passageById": {
      "id": 987.65,
      "installationId": 987.65,
      "padIds": ["xyz789"],
      "name": "abc123",
      "zoneOutIds": [987.65],
      "zoneInIds": [987.65],
      "deleted": true,
      "_id": MongoID,
      "installation": Installation,
      "zoneOuts": [Zone],
      "zoneIns": [Zone],
      "pads": [Pad],
      "kpis": [Kpi],
      "counts": [Count]
    }
  }
}

zoneById

Description

This query allows you to get a specifc zone.

Response

Returns a Zone

Arguments
Name Description
zoneId - Int!

Example

Query
query ZoneById($zoneId: Int!) {
  zoneById(zoneId: $zoneId) {
    id
    name
    installationId
    parentIds
    childIds
    passageIds
    countMinMax
    msgFull
    msgEmpty
    deleted
    capacity
    surface
    _id
    installation {
      id
      name
      country
      city
      postCode
      address
      img
      organizationId
      deleted
      timezone
      metrics
      creationDate
      change_of_day_time
      opening_hours
      processingTaskTypes
      generateLegacyKpis
      resetAtChangeOfDay
      _id
      zones {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      events {
        id
        installationId
        name
        description
        dateBegin
        dateEnd
        neverEnding
        limit
        metrics
        _id
        installation {
          ...InstallationFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
        stopngo {
          ...StopNGoFragment
        }
        canEditStopNGo
        weather {
          ...WeatherFragment
        }
      }
      totalSensors
      totalZones
      totalPassages
    }
    passages {
      id
      installationId
      padIds
      name
      zoneOutIds
      zoneInIds
      deleted
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      zoneOuts {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      zoneIns {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      pads {
        id
        installationId
        passageId
        name
        direction
        config
        bluetoothServiceId
        macEthernet
        macWifi
        pcbVersion
        rpiVersion
        versionId
        versionUpdatedAt
        deleted
        modelId
        serialNumber
        stockId
        macAddress
        CRMProduct
        isVirtual
        disconnectionTimeout
        _id
        status {
          ...StatusSafeFragment
        }
        installation {
          ...InstallationFragment
        }
        organizationId
        passage {
          ...PassageFragment
        }
        model {
          ...ModelFragment
        }
        brand {
          ...BrandFragment
        }
        liveStatus {
          ...PadAliveStatusTCFragment
        }
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
    }
    parents {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    children {
      id
      name
      installationId
      parentIds
      childIds
      passageIds
      countMinMax
      msgFull
      msgEmpty
      deleted
      capacity
      surface
      _id
      installation {
        id
        name
        country
        city
        postCode
        address
        img
        organizationId
        deleted
        timezone
        metrics
        creationDate
        change_of_day_time
        opening_hours
        processingTaskTypes
        generateLegacyKpis
        resetAtChangeOfDay
        _id
        zones {
          ...ZoneFragment
        }
        events {
          ...EventFragment
        }
        totalSensors
        totalZones
        totalPassages
      }
      passages {
        id
        installationId
        padIds
        name
        zoneOutIds
        zoneInIds
        deleted
        _id
        installation {
          ...InstallationFragment
        }
        zoneOuts {
          ...ZoneFragment
        }
        zoneIns {
          ...ZoneFragment
        }
        pads {
          ...PadFragment
        }
        kpis {
          ...KpiFragment
        }
        counts {
          ...CountFragment
        }
      }
      parents {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      children {
        id
        name
        installationId
        parentIds
        childIds
        passageIds
        countMinMax
        msgFull
        msgEmpty
        deleted
        capacity
        surface
        _id
        installation {
          ...InstallationFragment
        }
        passages {
          ...PassageFragment
        }
        parents {
          ...ZoneFragment
        }
        children {
          ...ZoneFragment
        }
        kpis {
          ...KpiFragment
        }
        kpisAtmosphere {
          ...KpiAtmosphereFragment
        }
        counts {
          ...CountFragment
        }
        flowRate
      }
      kpis {
        zoneId
        passageId
        periodId
        eventId
        kind
        inside
        affluenceIn
        affluenceOut
        affluenceInCurrent
        affluenceOutCurrent
        affluenceMinIn
        affluenceMinOut
        affluenceMinInDeep
        affluenceMinOutDeep
        affluenceMinInCurrent
        affluenceMinOutCurrent
        evolutionIn
        evolutionOut
        evolutionInCurrent
        evolutionOutCurrent
        full
        reachedLimit
        dwell
        dwellCurrent
        _id
        dateBegin
        dateEnd
      }
      kpisAtmosphere {
        zoneId
        periodId
        deviceId
        _id
        dateBegin
        dateEnd
        co2Min
        humidityMin
        temperatureMin
        covMin
        luminosityMin
      }
      counts {
        zoneId
        passageId
        padId
        kind
        eventId
        in
        out
        inRange
        outRange
        inDeep
        outDeep
        inCurrent
        outCurrent
        periodId
        _id
        dateBegin
        dateEnd
      }
      flowRate
    }
    kpis {
      zoneId
      passageId
      periodId
      eventId
      kind
      inside
      affluenceIn
      affluenceOut
      affluenceInCurrent
      affluenceOutCurrent
      affluenceMinIn
      affluenceMinOut
      affluenceMinInDeep
      affluenceMinOutDeep
      affluenceMinInCurrent
      affluenceMinOutCurrent
      evolutionIn
      evolutionOut
      evolutionInCurrent
      evolutionOutCurrent
      full
      reachedLimit
      dwell
      dwellCurrent
      _id
      dateBegin
      dateEnd
    }
    kpisAtmosphere {
      zoneId
      periodId
      deviceId
      _id
      dateBegin
      dateEnd
      co2Min
      humidityMin
      temperatureMin
      covMin
      luminosityMin
    }
    counts {
      zoneId
      passageId
      padId
      kind
      eventId
      in
      out
      inRange
      outRange
      inDeep
      outDeep
      inCurrent
      outCurrent
      periodId
      _id
      dateBegin
      dateEnd
    }
    flowRate
  }
}
Variables
{"zoneId": 987}
Response
{
  "data": {
    "zoneById": {
      "id": 123.45,
      "name": "xyz789",
      "installationId": 987.65,
      "parentIds": [987.65],
      "childIds": [123.45],
      "passageIds": [123.45],
      "countMinMax": [123.45],
      "msgFull": "abc123",
      "msgEmpty": "xyz789",
      "deleted": false,
      "capacity": 987.65,
      "surface": 123.45,
      "_id": MongoID,
      "installation": Installation,
      "passages": [Passage],
      "parents": [Zone],
      "children": [Zone],
      "kpis": [Kpi],
      "kpisAtmosphere": [KpiAtmosphere],
      "counts": [Count],
      "flowRate": 987
    }
  }
}

Types

Boolean

Description

The Boolean scalar type represents true or false.

Brand

Description

Format of a device's brand. It contains :

  • the informations on the brand
  • the list of models provided by the brand
Fields
Field Name Description
id - Float Brand ID.
name - String Brand's name.
_id - MongoID!
models - [Model] List of models proposed by this brand.
Example
{
  "id": 123.45,
  "name": "xyz789",
  "_id": MongoID,
  "models": [Model]
}

Count

Description

Format of a count. It contains :

  • the zone, passage, event or device linked to the count
  • the count value
  • the time at which the count has been done
Fields
Field Name Description
zoneId - Float The zone ID possibly linked to the count.
passageId - Float The passage ID possibly linked to the count.
padId - String The pad ID possibly linked to the count.
kind - String or wheel Tells you what data has been used in the count.
eventId - Float The event ID possibly linked to the count.
in - Float Tells you how many people have been counted as in (they entered).
out - Float Tells you how many people have been counted as out (they left).
inRange - Float
outRange - Float
inDeep - Float Tells you how many people have been counted as in (they entered) and, only if it's a zone count, all of its sub-zones.
outDeep - Float Tells you how many people have been counted as out (they left) and, only if it's a zone count, all of its sub-zones.
inCurrent - Float Only if it's a zone count, tells you how many people have been counted as in (they entered) in the current "virtual" zone.
outCurrent - Float Only if it's a zone count, tells you how many people have been counted as out (they left) in the current "virtual" zone.
periodId - Float The period ID possibly linked to the count, the period gives from when to when is the count.
_id - MongoID!
dateBegin - Float The start date (timestamp) of the count.
dateEnd - Float The end date (timestamp) of the count.
Example
{
  "zoneId": 123.45,
  "passageId": 123.45,
  "padId": "xyz789",
  "kind": "xyz789",
  "eventId": 123.45,
  "in": 123.45,
  "out": 987.65,
  "inRange": 123.45,
  "outRange": 123.45,
  "inDeep": 123.45,
  "outDeep": 123.45,
  "inCurrent": 123.45,
  "outCurrent": 987.65,
  "periodId": 987.65,
  "_id": MongoID,
  "dateBegin": 123.45,
  "dateEnd": 123.45
}

DeviceAtmosphere

Description

Format of an atmosphere device. An atmosphere device is a sensor that analyes air quality. It contains :

  • the informations on the device
  • the last status of the device
  • the Installation and zone in which the device is
  • the model and brand of hte device
Fields
Field Name Description
id - String Device ID.
oldId - String
name - String Device name.
zoneId - Float Related zone ID.
installationId - Float Related installation ID.
deleted - Boolean Whether the device has been deleted.
modelId - Float
serialNumber - String device serial number
stockId - Float
externalId - String
macAddress - String device mac adress
CRMProduct - String
disconnectionTimeout - Float
_id - MongoID!
zone - Zone Related zone
installation - Installation Related installation
kpiAtmosphere - KpiAtmosphere Kpis for the given deviceon the device.
Arguments
periodId - Int!
organizationId - Int Related organization ID
enabledKpis - [KpiAtmosphereTypes] List of enabled Kpis on this sensor
model - Model device's model
brand - Brand device's brand
Example
{
  "id": "xyz789",
  "oldId": "abc123",
  "name": "abc123",
  "zoneId": 987.65,
  "installationId": 123.45,
  "deleted": true,
  "modelId": 123.45,
  "serialNumber": "xyz789",
  "stockId": 987.65,
  "externalId": "abc123",
  "macAddress": "xyz789",
  "CRMProduct": "xyz789",
  "disconnectionTimeout": 987.65,
  "_id": MongoID,
  "zone": Zone,
  "installation": Installation,
  "kpiAtmosphere": KpiAtmosphere,
  "organizationId": 987,
  "enabledKpis": ["co2"],
  "model": Model,
  "brand": Brand
}

EnumInstallationMetrics

Values
Enum Value Description

counting

atmosphere

energy

groupcounting

peoplecounting

refusal

Example
"counting"

EnumModelApplication

Values
Enum Value Description

Counting

Thermal

QueueDetection

Demographics

AirQuality

Tracking

LineCounting

AreaCounting

Satisfaction

Monitoring

Example
"Counting"

EnumModelConnectivity

Values
Enum Value Description

LoRaWan

WifiEthernet

Example
"LoRaWan"

EnumModelType

Values
Enum Value Description

counting

air

energy

Example
"counting"

EnumModelTypeOfSensor

Values
Enum Value Description

Mat

Camera

Probe

IRSensor

SpiderProcessingUnit

Terminal

LoRaWANBridge

Example
"Mat"

Event

Description

Format of an event. It contains :

  • the informations on this event
  • the installation related to this event
  • the KPI's and counts of this event
Fields
Field Name Description
id - Float Event's ID.
installationId - Float Event's linked installation id.
name - String Event's name.
description - String Event's description.
dateBegin - Float (timestamp) Event's start date.
dateEnd - Float (timestamp) Event's start end.
neverEnding - Boolean Whether the event can come to an end.
limit - Int The event's current Stop & Go limit.
metrics - [String] The metrics the event is tracking (Counting/Air Quality).
_id - MongoID!
installation - Installation Installation Installation on which the event happened.
kpis - [Kpi] Kpi[] Kpis for the entire event.
counts - [Count] Count[] Counts for the entire event.
stopngo - StopNGo
canEditStopNGo - Boolean Whether the current user can edit the Stop & Go configuration.
weather - [Weather]
Example
{
  "id": 123.45,
  "installationId": 123.45,
  "name": "xyz789",
  "description": "abc123",
  "dateBegin": 987.65,
  "dateEnd": 123.45,
  "neverEnding": true,
  "limit": 123,
  "metrics": ["abc123"],
  "_id": MongoID,
  "installation": Installation,
  "kpis": [Kpi],
  "counts": [Count],
  "stopngo": StopNGo,
  "canEditStopNGo": true,
  "weather": [Weather]
}

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example
123.45

Installation

Description

Format of an installation. It contains :

  • the informations on this installation
  • the events related to this installation
  • the zones of this installation
Fields
Field Name Description
id - Float Installation's ID.
name - String Installation's name.
country - String Installation's country.
city - String City's name in which the installation is located.
postCode - String postCode's in which the installation is located.
address - String Installation's full address.
img - String URL for an image that represents the installation.
organizationId - Float Organization's id linked to the installation.
deleted - Boolean Whether the installation is deleted.
timezone - String Timezone in which the installation is located.
metrics - [EnumInstallationMetrics] List of metrics supported by the installation.
creationDate - Float Creation date of the installation.
change_of_day_time - [Float] Time at which KPIs are reset to 0 every day.
opening_hours - [JSON] Opening hours of the installation, outside of which counts are not recorded.
processingTaskTypes - [String]
generateLegacyKpis - Boolean
resetAtChangeOfDay - Boolean
_id - MongoID!
zones - [Zone] List of zones of the installation.
events - [Event] List of events linked to this installation.
totalSensors - Int The total number of sensors set used in this installation.
totalZones - Int The total number of zones in this installation.
totalPassages - Int The total number of passages in this installation.
Example
{
  "id": 987.65,
  "name": "xyz789",
  "country": "abc123",
  "city": "xyz789",
  "postCode": "xyz789",
  "address": "xyz789",
  "img": "abc123",
  "organizationId": 987.65,
  "deleted": true,
  "timezone": "xyz789",
  "metrics": ["counting"],
  "creationDate": 123.45,
  "change_of_day_time": [123.45],
  "opening_hours": [{}],
  "processingTaskTypes": ["xyz789"],
  "generateLegacyKpis": false,
  "resetAtChangeOfDay": true,
  "_id": MongoID,
  "zones": [Zone],
  "events": [Event],
  "totalSensors": 987,
  "totalZones": 123,
  "totalPassages": 987
}

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example
123

JSON

Description

The JSON scalar type represents JSON values as specified by ECMA-404.

Example
{}

Kpi

Description

Format of a counting KPI. It contains :

  • the zone, passage, event or device linked to the count
  • the various KPI's values
  • the time at which the KPI has been computed
Fields
Field Name Description
zoneId - Float The zone ID possibly linked to the kpi.
passageId - Float The passage ID possibly linked to the kpi.
periodId - Float The period ID possibly linked to the kpi, the period gives from when to when is the kpi.
eventId - Float The event ID possibly linked to the kpi.
kind - String Tells you what data has been used in the kpi.
inside - [Float] It is per minute. Raw data of how many people were inside at a given hour.
affluenceIn - [Float] It is per hour. Raw data of how many people entered only in the zone/passage every hour.
affluenceOut - [Float] It is per hour. Raw data of how many people left only the zone/passage every hour.
affluenceInCurrent - [Float] It is per hour. Raw data of how many people entered the "virtual" zone located in the zone every hour.
affluenceOutCurrent - [Float] It is per hour. Raw data of how many people left the "virtual" zone located in the zone every hour.
affluenceMinIn - [Float] It is per minute. Raw data of how many people entered only in the zone/passage every minute.
affluenceMinOut - [Float] It is per minute. Raw data of how many people left only the zone/passage every minute.
affluenceMinInDeep - [Float] It is per minute. Raw data of how many people entered the zone and all of its sub-zones every minute.
affluenceMinOutDeep - [Float] It is per minute. Raw data of how many people left the zone and all of its sub-zones every minute.
affluenceMinInCurrent - [Float] It is per minute. Raw data of how many people entered the "virtual" zone located in the zone every minute.
affluenceMinOutCurrent - [Float] It is per minute. Raw data of how many people left the "virtual" zone located in the zone every minute.
evolutionIn - [Float]
evolutionOut - [Float]
evolutionInCurrent - [Float]
evolutionOutCurrent - [Float]
full - [Float]
reachedLimit - [Float]
dwell - Float The average time spent in the zone/passage and all of its sub-zones.
dwellCurrent - Float The average time spent only in the zone/passage.
_id - MongoID!
dateBegin - Float The start date (timestamp) of the kpi.
dateEnd - Float The end date (timestamp) of the kpi.
Example
{
  "zoneId": 987.65,
  "passageId": 987.65,
  "periodId": 987.65,
  "eventId": 123.45,
  "kind": "xyz789",
  "inside": [987.65],
  "affluenceIn": [987.65],
  "affluenceOut": [123.45],
  "affluenceInCurrent": [123.45],
  "affluenceOutCurrent": [987.65],
  "affluenceMinIn": [123.45],
  "affluenceMinOut": [123.45],
  "affluenceMinInDeep": [987.65],
  "affluenceMinOutDeep": [987.65],
  "affluenceMinInCurrent": [987.65],
  "affluenceMinOutCurrent": [123.45],
  "evolutionIn": [123.45],
  "evolutionOut": [123.45],
  "evolutionInCurrent": [123.45],
  "evolutionOutCurrent": [987.65],
  "full": [987.65],
  "reachedLimit": [987.65],
  "dwell": 987.65,
  "dwellCurrent": 123.45,
  "_id": MongoID,
  "dateBegin": 987.65,
  "dateEnd": 123.45
}

KpiAtmosphere

Description

Format of an atmosphere KPI. It contains :

  • the zone, passage, event or device linked to the count
  • the various KPI's values
  • the time at which the KPI has been computed
Fields
Field Name Description
zoneId - Float The zone ID linked to the kpiAtmosphere.
periodId - Float The period ID linked to the kpiAtmosphere, the period gives from when to when is the kpiAtmosphere.
deviceId - String The device ID linked to the kpiAtmosphere.
_id - MongoID!
dateBegin - Float The start date (timestamp) of the kpiAtmosphere.
dateEnd - Float The end date (timestamp) of the kpiAtmosphere.
co2Min - [Float] It is per minute. Raw data of the co2 values (ppm) at each minute starting from the dateBegin.
humidityMin - [Float] It is per minute. Raw data of the humidity values (%RH) at each minute starting from the dateBegin.
temperatureMin - [Float] It is per minute. Raw data of the temperature values (°C) at each minute starting from the dateBegin.
covMin - [Float]
luminosityMin - [Float]
Example
{
  "zoneId": 987.65,
  "periodId": 123.45,
  "deviceId": "xyz789",
  "_id": MongoID,
  "dateBegin": 987.65,
  "dateEnd": 123.45,
  "co2Min": [987.65],
  "humidityMin": [987.65],
  "temperatureMin": [987.65],
  "covMin": [123.45],
  "luminosityMin": [987.65]
}

KpiAtmosphereTypes

Values
Enum Value Description

co2

cov

humidity

luminosity

temperature

Example
"co2"

Model

Description

Format of a device's model. It contains :

  • the informations on the model
  • the list of models provided by the brand
Fields
Field Name Description
id - Float Brand ID.
name - String Brand's name.
brandId - Float Brand's ID.
type - EnumModelType Model Type.
connectivity - EnumModelConnectivity Model Conectivity.
typeOfSensor - EnumModelTypeOfSensor Model Sensor type.
application - [EnumModelApplication] Model's application.
crmProduct - String
serialNumberRegularExpression - String
macAddressRegularExpression - String
defaultDisconnectionTimeout - Float
_id - MongoID!
brand - Brand Model's Brand.
pads - [Pad] List of pads with this model.
deviceAtmospheres - [DeviceAtmosphere] List of atosphere devices with this model.
Example
{
  "id": 123.45,
  "name": "abc123",
  "brandId": 123.45,
  "type": "counting",
  "connectivity": "LoRaWan",
  "typeOfSensor": "Mat",
  "application": ["Counting"],
  "crmProduct": "abc123",
  "serialNumberRegularExpression": "xyz789",
  "macAddressRegularExpression": "xyz789",
  "defaultDisconnectionTimeout": 987.65,
  "_id": MongoID,
  "brand": Brand,
  "pads": [Pad],
  "deviceAtmospheres": [DeviceAtmosphere]
}

MongoID

Description

The ID scalar type represents a unique MongoDB identifier in collection. MongoDB by default use 12-byte ObjectId value (https://docs.mongodb.com/manual/reference/bson-types/#objectid). But MongoDB also may accepts string or integer as correct values for _id field.

Example
MongoID

Pad

Description

Format of a pad. A pad is a counting device and can be a mat or a camera. It contains :

  • the information on the pad
  • the last status of the pad
  • the Installation and passage in which the pad is
  • the model and brand of the pad
Fields
Field Name Description
id - String Pad's ID.
installationId - Float Related installation ID.
passageId - Float Related passage ID.
name - String Pad's name.
direction - Float Direction of the counting (angle from device's default direction)
config - String
bluetoothServiceId - String
macEthernet - String Ethernet mac address.
macWifi - String Wifi mac address.
pcbVersion - String Version of the PCB (if device is a mat).
rpiVersion - String Version of the RaspberryPi (if device is a mat).
versionId - String
versionUpdatedAt - Float
deleted - Boolean Whether the pad has been deleted.
modelId - Float Device model ID.
serialNumber - String Device serial number.
stockId - Float
macAddress - String
CRMProduct - String
isVirtual - Boolean
disconnectionTimeout - Float
_id - MongoID!
status - StatusSafe Status Latest pad status.
installation - Installation Installation in which the pad is.
organizationId - Int Related organization ID.
passage - Passage Passage in which the pad is.
model - Model Model of the device.
brand - Brand Brand of the device.
liveStatus - PadAliveStatusTC Live status of the device.
Example
{
  "id": "abc123",
  "installationId": 987.65,
  "passageId": 123.45,
  "name": "xyz789",
  "direction": 987.65,
  "config": "abc123",
  "bluetoothServiceId": "xyz789",
  "macEthernet": "abc123",
  "macWifi": "xyz789",
  "pcbVersion": "abc123",
  "rpiVersion": "xyz789",
  "versionId": "abc123",
  "versionUpdatedAt": 123.45,
  "deleted": true,
  "modelId": 987.65,
  "serialNumber": "xyz789",
  "stockId": 987.65,
  "macAddress": "abc123",
  "CRMProduct": "xyz789",
  "isVirtual": false,
  "disconnectionTimeout": 987.65,
  "_id": MongoID,
  "status": StatusSafe,
  "installation": Installation,
  "organizationId": 123,
  "passage": Passage,
  "model": Model,
  "brand": Brand,
  "liveStatus": PadAliveStatusTC
}

PadAliveStatusTC

Description

Format of Live status for a device. It contains :

  • the device's informations
  • the status
  • the time at which the status has been computed
Fields
Field Name Description
padId - String! Pad's ID.
statusCode - Int! Status code. Codes: { 0: Everything all right 1: Tiles missing 2: Connection lost 3: Pad is rebooting 4: Firmware is updating }
msg - String! Status message.
debug - String
dateProcessed - Float (timestamp) When the status was received.
Example
{
  "padId": "xyz789",
  "statusCode": 123,
  "msg": "xyz789",
  "debug": "abc123",
  "dateProcessed": 987.65
}

Passage

Description

Format of a passage. It contains :

  • the informations on the passage
  • the installation related to this passage
  • the zones in and out related to this passage
  • the KPI's and counts of the passage
  • the pads linked to this passage

Warning : The attributes kpis and counts expect an eventId and dates (array) for which if you give:

  • One element, it will returns the period for the date.
  • Two elements, it will search all periods within the date range.
Fields
Field Name Description
id - Float Passage's ID.
installationId - Float Related installation's ID.
padIds - [String] Related Pads ID's.
name - String Passage's name.
zoneOutIds - [Float] ID of the Zones for which the passage counts an exit (out) when somebody walks on the pads.
zoneInIds - [Float] ID of the Zones for which the passage counts an entry (in) when somebody walks on the pads.
deleted - Boolean Whether the passage is deleted.
_id - MongoID!
installation - Installation Installation in which the passage is.
zoneOuts - [Zone] Zones for which the passage counts an exit (out) when somebody walks on the pads.
zoneIns - [Zone] Zones for which the passage counts an entry (in) when somebody walks on the pads.
pads - [Pad]
kpis - [Kpi] Kpis for the given dates on the passage.
Arguments
eventId - Int
dates - [Float!]
counts - [Count] Counts for the given dates on the passage.
Arguments
eventId - Int
dates - [Float!]
Example
{
  "id": 987.65,
  "installationId": 987.65,
  "padIds": ["abc123"],
  "name": "abc123",
  "zoneOutIds": [123.45],
  "zoneInIds": [987.65],
  "deleted": true,
  "_id": MongoID,
  "installation": Installation,
  "zoneOuts": [Zone],
  "zoneIns": [Zone],
  "pads": [Pad],
  "kpis": [Kpi],
  "counts": [Count]
}

StatusSafe

Description

Format of historical status for a device. It contains :

  • the device's informations
  • the status
  • the time at which the status has been computed
Fields
Field Name Description
msg - String Status name.
statusCode - Float Status code.
padId - String Related Pad's ID.
dateReceived - Float (timestamp) When the status was received.
batteryLevel - Float Battery level when the status was recieved.
_id - MongoID!
reconnected - Boolean
Example
{
  "msg": "abc123",
  "statusCode": 123.45,
  "padId": "abc123",
  "dateReceived": 987.65,
  "batteryLevel": 987.65,
  "_id": MongoID,
  "reconnected": true
}

StopNGo

Fields
Field Name Description
id - Float
eventId - Float
limit - Float
lang - String
logoUrl - String
hasTechnisLogo - Boolean
soundConfig - StopNGoSoundConfig
customTexts - StopNGoCustomTexts
showroomConfig - StopNGoShowroomConfig
_id - MongoID!
Example
{
  "id": 123.45,
  "eventId": 987.65,
  "limit": 987.65,
  "lang": "xyz789",
  "logoUrl": "xyz789",
  "hasTechnisLogo": true,
  "soundConfig": StopNGoSoundConfig,
  "customTexts": StopNGoCustomTexts,
  "showroomConfig": StopNGoShowroomConfig,
  "_id": MongoID
}

StopNGoCustomTexts

Fields
Field Name Description
go - StopNGoCustomTextsGo
stop - StopNGoCustomTextsGo
Example
{
  "go": StopNGoCustomTextsGo,
  "stop": StopNGoCustomTextsGo
}

StopNGoCustomTextsGo

Fields
Field Name Description
title - String
message - String
iconUrl - String
styles - StopNGoCustomTextsGoStyles
Example
{
  "title": "xyz789",
  "message": "abc123",
  "iconUrl": "abc123",
  "styles": StopNGoCustomTextsGoStyles
}

StopNGoCustomTextsGoStyles

Fields
Field Name Description
backgroundColors - [String]
titleColor - String
messageColor - String
Example
{
  "backgroundColors": ["abc123"],
  "titleColor": "xyz789",
  "messageColor": "xyz789"
}

StopNGoShowroomConfig

Fields
Field Name Description
enabled - Boolean
mediaLibrary - [StopNGoShowroomConfigMediaLibrary]
slideshows - [StopNGoShowroomConfigSlideshows]
unit - String
Example
{
  "enabled": true,
  "mediaLibrary": [StopNGoShowroomConfigMediaLibrary],
  "slideshows": [StopNGoShowroomConfigSlideshows],
  "unit": "abc123"
}

StopNGoShowroomConfigMediaLibrary

Fields
Field Name Description
url - String
type - String
uploaded - Boolean
Example
{
  "url": "abc123",
  "type": "xyz789",
  "uploaded": false
}

StopNGoShowroomConfigSlideshows

Fields
Field Name Description
resources - [StopNGoShowroomConfigSlideshowsResources]
until - Float
Example
{
  "resources": [StopNGoShowroomConfigSlideshowsResources],
  "until": 123.45
}

StopNGoShowroomConfigSlideshowsResources

Fields
Field Name Description
mediaKey - String
duration - Float
Example
{"mediaKey": "abc123", "duration": 123.45}

StopNGoSoundConfig

Fields
Field Name Description
enabled - Boolean
sounds - StopNGoSoundConfigSounds
type - String
timeout - Float
Example
{
  "enabled": false,
  "sounds": StopNGoSoundConfigSounds,
  "type": "abc123",
  "timeout": 123.45
}

StopNGoSoundConfigSounds

Fields
Field Name Description
go - Boolean
stop - Boolean
overlimit - Boolean
Example
{"go": true, "stop": true, "overlimit": true}

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example
"xyz789"

Weather

Fields
Field Name Description
city - String
country - String
iconCode - Int
dateBegin - Float
dateEnd - Float
uvIndex - Float
humidity - Float
windSpeed - Float
temperature - Float
precipitation - Float
currentIconCode - Int
currentUvIndex - Float
currentHumidity - Float
currentWindSpeed - Float
currentTemperature - Float
currentPrecipitation - Float
Example
{
  "city": "abc123",
  "country": "abc123",
  "iconCode": 987,
  "dateBegin": 987.65,
  "dateEnd": 987.65,
  "uvIndex": 987.65,
  "humidity": 123.45,
  "windSpeed": 123.45,
  "temperature": 987.65,
  "precipitation": 987.65,
  "currentIconCode": 123,
  "currentUvIndex": 123.45,
  "currentHumidity": 123.45,
  "currentWindSpeed": 123.45,
  "currentTemperature": 123.45,
  "currentPrecipitation": 123.45
}

Zone

Description

Format of an zone. It contains :

  • the informations on the zone
  • the installation related to this zone
  • the KPI's and counts of the zone
  • the parent and child zones
  • the passages connected to this zone

Warning : The attributes kpis and counts expect an eventId and dates (array) for which if you give:

  • One element, it will returns the period for the date.
  • Two elements, it will search all periods within the date range.
Fields
Field Name Description
id - Float Zone's ID.
name - String Zone's name.
installationId - Float Related installation's ID.
parentIds - [Float] Parent zone ID.
childIds - [Float] Children zones ID's.
passageIds - [Float] Related passges ID's.
countMinMax - [Float] Range that forces the zone's count to stay within.
msgFull - String
msgEmpty - String
deleted - Boolean Whether the zone is deleted.
capacity - Float Capacity of the zone.
surface - Float In square meters (m²)
_id - MongoID!
installation - Installation Installation in which the zone is.
passages - [Passage] All passages linked to the zone.
parents - [Zone] The parent zones of the zone.
children - [Zone] The children zones of the zone.
kpis - [Kpi] Kpis for the given dates on the current zone.
Arguments
eventId - Int
dates - [Float!]
kpisAtmosphere - [KpiAtmosphere] Atmosphere kpis for the given dates on the current zone.
Arguments
eventId - Int
dates - [Float!]
counts - [Count] Counts for the given dates on the current zone.
Arguments
eventId - Int
dates - [Float!]
flowRate - Int
Example
{
  "id": 987.65,
  "name": "abc123",
  "installationId": 987.65,
  "parentIds": [123.45],
  "childIds": [987.65],
  "passageIds": [123.45],
  "countMinMax": [987.65],
  "msgFull": "abc123",
  "msgEmpty": "abc123",
  "deleted": true,
  "capacity": 987.65,
  "surface": 123.45,
  "_id": MongoID,
  "installation": Installation,
  "passages": [Passage],
  "parents": [Zone],
  "children": [Zone],
  "kpis": [Kpi],
  "kpisAtmosphere": [KpiAtmosphere],
  "counts": [Count],
  "flowRate": 987
}