This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"any.unknown": "no esta permitido", | |
"any.invalid": "contiene un valor invalido", | |
"any.empty": "no está permitido que sea vacío", | |
"any.required": "es requerido", | |
"any.allowOnly": "debería ser uno de las siguientes variantes: {{valids}}", | |
"any.default": "emitió un error cuando se ejecutó el metodo default", | |
"alternatives.base": "no coincide con ninguna de las alternativas permitidas", | |
"array.base": "debe ser un array", | |
"array.includes": "en la posición {{pos}} no coincide con ninguno de los tipos permitidos", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// declare var ; | |
declare namespace Sails { | |
enum SortOption { | |
ASC, | |
DESC, | |
} | |
type SortOptions = keyof typeof SortOption; | |
interface Criteria { | |
or?: Criteria[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Created Date: Monday, April 20th 2020, 3:03:54 pm | |
* Author: Johannes Pichler | |
* | |
* Copyright (c) 2020 Webpixels e.U. | |
*/ | |
let processAllRecords = require("waterline/lib/waterline/utils/query/process-all-records"); | |
export type RawResult = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function find (req, res) { | |
// Source: https://github.com/balderdashy/sails/tree/master/lib/hooks/blueprints/actions/find.js | |
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil') | |
var formatUsageError = require('sails/lib/hooks/blueprints/formatUsageError') | |
var parseBlueprintOptions = req.options.parseBlueprintOptions || req._sails.config.blueprints.parseBlueprintOptions | |
// Set the blueprint action for parseBlueprintOptions. | |
req.options.blueprintAction = 'find' |