UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

15 lines (14 loc) 795 B
import { SiteTableKeySchema, SiteConnection, Site, CreateSiteInput } from '../types.d'; import { EnvironmentService, DynamodbService } from '../common_services'; import { DeviceService } from '../devices'; import { SiteDb } from './siteDb'; export declare class SiteService { private readonly envService; private readonly dynamodbService; private readonly deviceService; siteDb: SiteDb; constructor(envService: EnvironmentService, dynamodbService: DynamodbService, deviceService: DeviceService); getSites: (accessToken: string, limit: number, nextToken?: SiteTableKeySchema | undefined) => Promise<SiteConnection>; getSite: (accessToken: string, siteUuid: string) => Promise<Site>; createSite: (accessToken: string, event: CreateSiteInput) => Promise<boolean>; }