UNPKG

@dodi-smart/nuki-graphql-api

Version:
110 lines 6.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const builder_1 = require("../builder"); builder_1.builder.objectType('NukiSmartlockConfig', { fields: (t) => ({ name: t.exposeString('name', { description: 'The name of the smartlock for new users', nullable: false }), latitude: t.exposeFloat('latitude', { description: 'The latitude of the smartlock position', nullable: false }), longitude: t.exposeFloat('longitude', { description: 'The longitude of the smartlock position', nullable: false }), capabilities: t.exposeInt('capabilities', { description: 'The capabilities indicate whether door opening via app is possible, RTO is possible or both: 0 .. only door opening possible, 1 .. both possible, 2 .. only RTO possible (only for type=2)', nullable: true }), autoUnlatch: t.exposeBoolean('autoUnlatch', { description: 'True if the door should be unlatched on unlocking (knob) (only for type=1 and type=3)', nullable: true }), liftUpHandle: t.exposeBoolean('liftUpHandle', { description: 'True if the door has a lift up handle, which is required to be lifted up to lock the door', nullable: true }), pairingEnabled: t.exposeBoolean('pairingEnabled', { description: 'True if the pairing is allowed via the smartlock button', nullable: true }), buttonEnabled: t.exposeBoolean('buttonEnabled', { description: 'True if the button on the smartlock is enabled', nullable: true }), ledEnabled: t.exposeBoolean('ledEnabled', { description: 'True if the LED on the smartlock is enabled', nullable: true }), ledBrightness: t.exposeInt('ledBrightness', { description: 'The brightness of the LED: 0 .. off, 5 .. max (only for type=1 and type=3)', nullable: true }), timezoneOffset: t.exposeInt('timezoneOffset', { description: '[deprecated] The timezone offset (in minutes)', nullable: false, deprecationReason: 'deprecated' }), daylightSavingMode: t.exposeInt('daylightSavingMode', { description: '[deprecated] The daylight saving mode: 0 .. off, 1 .. european', nullable: true, deprecationReason: 'deprecated' }), fobPaired: t.exposeBoolean('fobPaired', { description: 'True if a fob is paired with the smartlock', nullable: true }), fobAction1: t.exposeInt('fobAction1', { description: "The fob action if button is pressed once: type=0: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring", nullable: true }), fobAction2: t.exposeInt('fobAction2', { description: "The fob action if button is pressed once: type=0: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring", nullable: true }), fobAction3: t.exposeInt('fobAction3', { description: "The fob action if button is pressed once: type=0: 0 .. none, 1 .. unlock, 2 .. lock, 3 .. lock 'n' go, 4 .. intelligent (lock/unlocked based on the current state); type=2: 0 .. none, 1 .. toggle ring to open, 2 .. activate ring to open, 3 .. deactivate ring to open, 7 .. open (electric strike actuation), 8 .. ring", nullable: true }), singleLock: t.exposeBoolean('singleLock', { description: 'True if the smartlock should only lock once (instead of twice) (only for type=1)', nullable: false }), operatingMode: t.exposeInt('operatingMode', { description: 'The operating mode of the opener (only for type=2): 0x00 .. generic door opener, 0x01 .. analogue intercom, 0x02 .. digital intercom, 0x03 .. digital intercom Siedle, 0x04 .. digital intercom TCS, 0x05 .. digital intercom Bticino, 0x06 .. analog intercom Siedle HTS, 0x07 .. digital intercom STR, 0x08 .. digital intercom Ritto, 0x09 .. digital intercom Fermax, 0x0A .. digital intercom Comelit, 0x0B .. digital intercom Urmet BiBus, 0x0C .. digital intercom Urmet 2Voice, 0x0D .. digital intercom Golmar, 0x0E .. digital intercom SKS, 0x0F .. digital intercom Spare', nullable: true }), advertisingMode: t.exposeInt('advertisingMode', { description: 'The advertising mode (battery saving): 0 .. automatic, 1 .. normal, 2 .. slow, 3 .. slowest', nullable: false }), keypadPaired: t.exposeBoolean('keypadPaired', { description: 'True if a keypad is paired with the smartlock', nullable: true }), homekitState: t.exposeInt('homekitState', { description: 'The homekit state: 0 .. unavailable, 1 .. disabled, 2 .. enabled, 3 .. enabled & paired', nullable: true }), timezoneId: t.exposeInt('timezoneId', { description: 'The timezone id (check https://developer.nuki.io for ids)', nullable: false }), deviceType: t.exposeInt('deviceType', { description: 'The device type of a Nuki device', nullable: true }), wifiEnabled: t.exposeBoolean('wifiEnabled', { description: 'Flag that indicates if the devices internal WIFI module can be used', nullable: true }), operationId: t.exposeString('operationId', { description: "The operation id - if set it's locked for another operation", nullable: true }) }) }); //# sourceMappingURL=smartlock-config.js.map