"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const metadata_1 = require("../../decorator/metadata");
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,
        };
        this.metadata = metadata_1.metadataForClass(this.modelClazz);
    }
}
exports.BaseRequest = BaseRequest;
//# sourceMappingURL=base.request.js.map