import { MetadataHelper } from '../../decorator/metadata/metadata-helper';
var BaseRequest = /** @class */ (function () {
    function BaseRequest(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,
        };
    }
    Object.defineProperty(BaseRequest.prototype, "metaData", {
        get: function () {
            if (!this._metadata) {
                this._metadata = MetadataHelper.get(this.modelClazz);
            }
            return this._metadata;
        },
        enumerable: true,
        configurable: true
    });
    return BaseRequest;
}());
export { BaseRequest };
//# sourceMappingURL=base.request.js.map