UNPKG

@dodi-smart/nuki-graphql-api

Version:
72 lines 2.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SmartlockLogService = void 0; class SmartlockLogService { constructor(httpRequest) { this.httpRequest = httpRequest; } /** * Get a list of smartlock logs for all of your smartlocks * @param accountUserId Filter for account users * @param fromDate Filter for date (RFC3339) * @param toDate Filter for date (RFC3339) * @param action Filter for action * @param id Filter for older logs * @param limit Amount of logs (max: 50) * @returns SmartlockLog successful operation * @throws ApiError */ getSmartlocksLogs(accountUserId, fromDate, toDate, action, id, limit = 20) { return this.httpRequest.request({ method: 'GET', url: '/smartlock/log', query: { 'accountUserId': accountUserId, 'fromDate': fromDate, 'toDate': toDate, 'action': action, 'id': id, 'limit': limit, }, errors: { 401: `Not authorized`, }, }); } /** * Get a list of smartlock logs * @param smartlockId The smartlock id * @param authId Filter for auths * @param accountUserId Filter for account users * @param fromDate Filter for date (RFC3339) * @param toDate Filter for date (RFC3339) * @param action Filter for action * @param id Filter for older logs * @param limit Amount of logs (max: 50) * @returns SmartlockLog successful operation * @throws ApiError */ getSmartlockLogs(smartlockId, authId, accountUserId, fromDate, toDate, action, id, limit = 20) { return this.httpRequest.request({ method: 'GET', url: '/smartlock/{smartlockId}/log', path: { 'smartlockId': smartlockId, }, query: { 'authId': authId, 'accountUserId': accountUserId, 'fromDate': fromDate, 'toDate': toDate, 'action': action, 'id': id, 'limit': limit, }, errors: { 401: `Not authorized`, }, }); } } exports.SmartlockLogService = SmartlockLogService; //# sourceMappingURL=SmartlockLogService.js.map