{"size": 950, "ext": "js", "max_stars_repo_path": "src/schemas/sql-load-schema.js", "max_stars_repo_name": "mityabeldii/etl-web-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/schemas/sql-load-schema.js", "max_issues_repo_name": "mityabeldii/etl-web-app", "max_issues_repo_issues_event_min_datetime": "2022-01-20T14:57:17.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-20T14:57:17.000Z", "max_forks_repo_path": "src/schemas/sql-load-schema.js", "max_forks_repo_name": "mityabeldii/etl-web-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 41.3043478261, "max_line_length": 79, "alphanum_fraction": 0.6273684211}
/*eslint-disable*/
const sqlLoadSchema = (yup, data) => ({
    taskIdSource: yup.string().required(`Это поле обязательно`),
    target: yup.object().shape({
        targetId: yup.string().required(`Это поле обязательно`),
        targetSchemaName: yup.string().required(`Это поле обязательно`),
        targetTableName: yup.string().required(`Это поле обязательно`),
        mappingStructure: yup.array().of(
            yup.object().shape({
                sourceFieldName: yup.string().required(`Это поле обязательно`),
                targetFieldName: yup.string().required(`Это поле обязательно`),
            })
        ),
    }),
    updateSettings: yup.object().shape({
        updateType: yup.string().required(`Это поле обязательно`),
        // primaryKey: yup.string().required(`Это поле обязательно`),
        // lastUpdatedField: yup.string().required(`Это поле обязательно`),
    }),
});
export default sqlLoadSchema;
/*eslint-enable*/
