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