UNPKG

@dodi-smart/nuki-graphql-api

Version:
82 lines 3.77 kB
import type { SmartlockAuth } from '../models/SmartlockAuth'; import type { SmartlockAuthCreate } from '../models/SmartlockAuthCreate'; import type { SmartlockAuthMultiUpdate } from '../models/SmartlockAuthMultiUpdate'; import type { SmartlockAuthUpdate } from '../models/SmartlockAuthUpdate'; import type { SmartlocksAuthCreate } from '../models/SmartlocksAuthCreate'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class SmartlockAuthService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get a list of smartlock authorizations for your smartlocks * @param accountUserId Filter for account users: set to a positive number will filter for authorizations with this specific accountUserId, set to a negative number will filter without set accountUserId * @param types Filter for authorization's types (comma-separated eg: 0,2,3) * @returns SmartlockAuth successful operation * @throws ApiError */ getSmartlocksAuths(accountUserId?: number, types?: string): CancelablePromise<Array<SmartlockAuth>>; /** * Creates asynchronous smartlock authorizations * @param requestBody Smartlock authorization create representation * @returns void * @throws ApiError */ createSmartlocksAuth(requestBody: SmartlocksAuthCreate): CancelablePromise<void>; /** * Updates smartlock authorizations asynchronously * @param requestBody Smartlock authorization update representations * @returns void * @throws ApiError */ updateSmartlocksAuth(requestBody: Array<SmartlockAuthMultiUpdate>): CancelablePromise<void>; /** * Deletes smartlock authorizations asynchronously * @param requestBody Smartlock authorization IDs to delete * @returns void * @throws ApiError */ deleteSmartlocksAuth(requestBody: Array<string>): CancelablePromise<void>; /** * Get a list of smartlock authorizations * @param smartlockId The smartlock id * @param types Filter for smartlock authorization's types (comma-separated eg: 0,2,3) * @returns SmartlockAuth successful operation * @throws ApiError */ getSmartlockAuths(smartlockId: number, types?: string): CancelablePromise<Array<SmartlockAuth>>; /** * Creates asynchronous a smartlock authorization * @param smartlockId The smartlock id * @param requestBody Smartlock authorization create representation * @returns void * @throws ApiError */ createSmartlockAuth(smartlockId: number, requestBody: SmartlockAuthCreate): CancelablePromise<void>; /** * Get a smartlock authorization * @param smartlockId The smartlock id * @param id The smartlock auth unique id * @returns SmartlockAuth successful operation * @throws ApiError */ getSmartlockAuth(smartlockId: number, id: string): CancelablePromise<SmartlockAuth>; /** * Updates asynchronous a smartlock authorization * @param smartlockId The smartlock id * @param id The smartlock authorization unique id * @param requestBody Smartlock authorization update representation * @returns void * @throws ApiError */ updateSmartlockAuth(smartlockId: number, id: string, requestBody: SmartlockAuthUpdate): CancelablePromise<void>; /** * Deletes asynchronous a smartlock authorization * @param smartlockId The smartlock id * @param id The smartlock authorization unique id * @returns void * @throws ApiError */ deleteSmartlockAuth(smartlockId: number, id: string): CancelablePromise<void>; } //# sourceMappingURL=SmartlockAuthService.d.ts.map