import { metadataForClass } from '../../decorator/metadata';
import { getTableName } from '../get-table-name.function';
export class BaseRequest {
    constructor(dynamoRx, modelClazz) {
        this.dynamoRx = dynamoRx;
        if (modelClazz === null || modelClazz === undefined) {
            throw new Error("please provide the model clazz for the request, won't work otherwise");
        }
        this.modelClazz = modelClazz;
        this.metadata = metadataForClass(this.modelClazz);
        this.params = {
            TableName: getTableName(this.metadata),
        };
    }
}
//# sourceMappingURL=base.request.js.map