UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

29 lines (28 loc) 737 B
import type { EntityMetadata } from '../../../entity/index.js'; import type { TableMetadata } from '../../../table/index.js'; import type { AccessRole } from './putAccessRole.js'; export interface AWSConfig { awsAccountId: string; awsRegion: string; } export interface AWSAccount extends AWSConfig { color?: string; title?: string; description?: string; } export interface SyncedTableMetadata extends TableMetadata { _ddbToolshack?: { icon?: string; accessRole?: AccessRole; }; } export interface SyncedEntityMetadata extends EntityMetadata { _ddbToolshack?: { icon?: string; }; } export interface FetchOpts { apiUrl: string; fetch: typeof fetch; apiKey: string; }