import { MetadataHelper } from '../../decorator/metadata/metadata-helper';
export class BaseRequest {
    constructor(dynamoRx, modelClazz, tableName) {
        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.params = {
            TableName: tableName,
        };
    }
    get metaData() {
        if (!this._metadata) {
            this._metadata = MetadataHelper.get(this.modelClazz);
        }
        return this._metadata;
    }
}
//# sourceMappingURL=base.request.js.map