UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

25 lines (24 loc) 1.2 kB
import { DepositDb } from './depositDb'; import { DeviceService, DeviceVerification } from '../devices'; import { DepositQueryInput, DepositConnection, Deposit } from '../types.d'; import { DynamodbService, EnvironmentService, AppSyncClient } from '../common_services'; import { UpdateEventPublisher } from '../common_interfaces'; export declare class DepositService extends UpdateEventPublisher { private readonly dbService; private readonly envService; private readonly deviceService; private readonly deviceVerify; private readonly appsyncClient; depositDb: DepositDb; constructor(dbService: DynamodbService, envService: EnvironmentService, deviceService: DeviceService, deviceVerify: DeviceVerification, appsyncClient: AppSyncClient); getDeposit: (depositUuid: string) => Promise<Deposit>; getDeposits: (event: DepositQueryInput, accessToken: string) => Promise<DepositConnection>; prepareUpdateEventRequest(item: any, keys: any): { mutation: import("graphql").DocumentNode; variables: { item: any; }; }; onDepositStream: (event: any) => Promise<void>; onDepositUpdate: (accessToken: string) => Promise<void>; }