dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
19 lines (18 loc) • 702 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromRecordSchemaDTO = void 0;
const index_js_1 = require("../../../../schema/record/index.js");
const attribute_js_1 = require("./attribute.js");
/**
* @debt feature "handle defaults, links & validators"
*/
const fromRecordSchemaDTO = ({ keyDefault, putDefault, updateDefault, keyLink, putLink, updateLink, keys, elements, ...props }) => {
keyDefault;
putDefault;
updateDefault;
keyLink;
putLink;
updateLink;
return (0, index_js_1.record)((0, attribute_js_1.fromSchemaDTO)(keys), (0, attribute_js_1.fromSchemaDTO)(elements), props);
};
exports.fromRecordSchemaDTO = fromRecordSchemaDTO;