@vizzly/semantic-layer-public
Advanced tools
Comparing version 0.0.114 to 0.0.115
@@ -1,2 +0,2 @@ | ||
import validate, { ConfigValidationOptions } from './validate'; | ||
export { validate, ConfigValidationOptions }; | ||
import validate, { ConfigValidationOptions, ALLOWED_ID_REGEX, ID_REGEX_ERROR_MESSAGE } from './validate'; | ||
export { validate, ConfigValidationOptions, ALLOWED_ID_REGEX, ID_REGEX_ERROR_MESSAGE }; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validate = void 0; | ||
const validate_1 = __importDefault(require("./validate")); | ||
exports.ID_REGEX_ERROR_MESSAGE = exports.ALLOWED_ID_REGEX = exports.validate = void 0; | ||
const validate_1 = __importStar(require("./validate")); | ||
exports.validate = validate_1.default; | ||
Object.defineProperty(exports, "ALLOWED_ID_REGEX", { enumerable: true, get: function () { return validate_1.ALLOWED_ID_REGEX; } }); | ||
Object.defineProperty(exports, "ID_REGEX_ERROR_MESSAGE", { enumerable: true, get: function () { return validate_1.ID_REGEX_ERROR_MESSAGE; } }); |
@@ -14,3 +14,10 @@ import Joi from '@vizzly/joi'; | ||
export declare const _sqlDataSetSchema: (fieldSchema: Joi.Schema) => Joi.ObjectSchema<any>; | ||
export declare const bigQuerySchema: Joi.ObjectSchema<any>; | ||
export declare const postgresSchema: Joi.ObjectSchema<any>; | ||
export declare const mariadbSchema: Joi.ObjectSchema<any>; | ||
export declare const mySQLSchema: Joi.ObjectSchema<any>; | ||
export declare const snowflakeSchema: Joi.ObjectSchema<any>; | ||
export declare const microsoftSQLServerSchema: Joi.ObjectSchema<any>; | ||
export declare const redshiftSchema: Joi.ObjectSchema<any>; | ||
declare const _default: (config: any, options?: Partial<ConfigValidationOptions>) => Joi.ValidationResult; | ||
export default _default; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._sqlDataSetSchema = exports._fieldSchema = exports.ID_REGEX_ERROR_MESSAGE = exports.ALLOWED_ID_REGEX = void 0; | ||
exports.redshiftSchema = exports.microsoftSQLServerSchema = exports.snowflakeSchema = exports.mySQLSchema = exports.mariadbSchema = exports.postgresSchema = exports.bigQuerySchema = exports._sqlDataSetSchema = exports._fieldSchema = exports.ID_REGEX_ERROR_MESSAGE = exports.ALLOWED_ID_REGEX = void 0; | ||
const joi_1 = __importDefault(require("@vizzly/joi")); | ||
@@ -217,2 +217,9 @@ const getQueryEngineConfig_1 = require("../QueryEngineConfig/getQueryEngineConfig"); | ||
}); | ||
exports.bigQuerySchema = configSchema({}, { onlyClients: ['bigquery'] }); | ||
exports.postgresSchema = configSchema({}, { onlyClients: ['postgres'] }); | ||
exports.mariadbSchema = configSchema({}, { onlyClients: ['mariadb'] }); | ||
exports.mySQLSchema = configSchema({}, { onlyClients: ['mysql'] }); | ||
exports.snowflakeSchema = configSchema({}, { onlyClients: ['snowflake'] }); | ||
exports.microsoftSQLServerSchema = configSchema({}, { onlyClients: ['microsoftSQLServer'] }); | ||
exports.redshiftSchema = configSchema({}, { onlyClients: ['redshift'] }); | ||
exports.default = (config, options = {}) => { | ||
@@ -219,0 +226,0 @@ const validationResult = configSchema(config, Object.assign(Object.assign(Object.assign({}, DEFAULT_SCHEMA_OPTIONS), options), { dataSetIdToClientMapping: buildDataSetToClientTypeMapping(config) })).validate(config, joiOptions); |
{ | ||
"name": "@vizzly/semantic-layer-public", | ||
"version": "0.0.114", | ||
"version": "0.0.115", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69851
1833