{
  "version": 3,
  "sources": ["../../src/client-dynamodb/dynamodb-client.ts"],
  "sourcesContent": ["import {\n  DynamoDBClient as BaseClient,\n  DynamoDBClientConfig as BaseClientConfiguration,\n  DynamoDBClientResolvedConfig as BaseClientResolvedConfiguration,\n  ServiceInputTypes as BaseServiceInputTypes,\n  ServiceOutputTypes as BaseServiceOutputTypes,\n} from \"@aws-sdk/client-dynamodb\";\nimport { Command, HttpHandlerOptions, MiddlewareStack } from \"@aws-sdk/types\";\nimport { Client } from \"@smithy/smithy-client\";\n\nimport {\n  PutItemCommandInput,\n  PutItemCommandOutput,\n  QueryCommandInput,\n  QueryCommandOutput,\n  UpdateItemCommandInput,\n  UpdateItemCommandOutput,\n} from \"./commands/index.js\";\n\nexport type ServiceInputTypes =\n  | PutItemCommandInput\n  | QueryCommandInput\n  | UpdateItemCommandInput\n  | BaseServiceInputTypes;\nexport type ServiceOutputTypes =\n  | PutItemCommandOutput\n  | QueryCommandOutput\n  | UpdateItemCommandOutput\n  | BaseServiceOutputTypes;\n\ntype IClient = Client<\n  HttpHandlerOptions,\n  ServiceInputTypes,\n  ServiceOutputTypes,\n  BaseClientResolvedConfiguration\n>;\n\nexport class DynamoDBClient implements IClient {\n  private client: IClient | undefined;\n\n  constructor(readonly configuration: BaseClientConfiguration) {}\n\n  private resolveClient() {\n    this.client = this.client ?? new BaseClient(this.configuration);\n    return this.client;\n  }\n\n  get config() {\n    return this.resolveClient().config;\n  }\n\n  get middlewareStack(): MiddlewareStack<\n    ServiceInputTypes,\n    ServiceOutputTypes\n  > {\n    return this.resolveClient().middlewareStack;\n  }\n\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    options?: HttpHandlerOptions,\n  ): Promise<OutputType>;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    callback: (error: any, data?: OutputType) => void,\n  ): void;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(\n    command: Command<\n      ServiceInputTypes,\n      InputType,\n      ServiceOutputTypes,\n      OutputType,\n      BaseClientResolvedConfiguration\n    >,\n    options: HttpHandlerOptions,\n    callback: (error: any, data?: OutputType) => void,\n  ): void;\n  send<\n    InputType extends ServiceInputTypes,\n    OutputType extends ServiceOutputTypes,\n  >(command: any, options?: any, callback?: any): void | Promise<OutputType> {\n    return this.resolveClient().send(command, options, callback);\n  }\n\n  destroy(): void {\n    this.resolveClient().destroy();\n  }\n}\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAMO,oCA+BA,MAAMF,CAAkC,CAG7C,YAAqBG,EAAwC,CAAxC,mBAAAA,CAAyC,CAEtD,eAAgB,CACtB,YAAK,OAAS,KAAK,QAAU,IAAI,EAAAC,eAAW,KAAK,aAAa,EACvD,KAAK,MACd,CAEA,IAAI,QAAS,CACX,OAAO,KAAK,cAAc,EAAE,MAC9B,CAEA,IAAI,iBAGF,CACA,OAAO,KAAK,cAAc,EAAE,eAC9B,CA0CA,KAGEC,EAAcC,EAAeC,EAA4C,CACzE,OAAO,KAAK,cAAc,EAAE,KAAKF,EAASC,EAASC,CAAQ,CAC7D,CAEA,SAAgB,CACd,KAAK,cAAc,EAAE,QAAQ,CAC/B,CACF",
  "names": ["dynamodb_client_exports", "__export", "DynamoDBClient", "__toCommonJS", "import_client_dynamodb", "configuration", "BaseClient", "command", "options", "callback"]
}
