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