@graphcms/validation
Advanced tools
Comparing version 1.0.17 to 1.0.19
@@ -7,2 +7,3 @@ import * as model from './model'; | ||
import * as role from './role'; | ||
export { model, field, enumeration, stage, project, role }; | ||
import * as webhook from './webhook'; | ||
export { enumeration, field, model, project, role, stage, webhook }; |
@@ -12,3 +12,3 @@ var yup = require('yup'); | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -31,3 +31,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -122,8 +122,29 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
var name$3 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The name of a webhook can't be empty."); | ||
var description$3 = yup.string().ensure(); | ||
var url$1 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The URL can't be empty!").url('Only valid URLs are supported!').test('is-https-url', 'Only HTTPS URLs are supported!', function (value) { | ||
if (!value) | ||
return false; | ||
return value.startsWith('https://'); | ||
}); | ||
var headerKey = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The key of a header can't be empty!").matches(/^[A-Z][A-Za-z0-9-]*$/); | ||
var webhook = ({ | ||
name: name$3, | ||
description: description$3, | ||
url: url$1, | ||
headerKey: headerKey | ||
}); | ||
exports.enumeration = enumeration; | ||
exports.field = field; | ||
exports.model = model; | ||
exports.field = field; | ||
exports.enumeration = enumeration; | ||
exports.stage = stage; | ||
exports.project = project; | ||
exports.role = role; | ||
exports.stage = stage; | ||
exports.webhook = webhook; | ||
//# sourceMappingURL=validation.js.map |
@@ -15,3 +15,3 @@ import { string, array } from 'yup'; | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -25,3 +25,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUF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CIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -35,3 +35,3 @@ | ||
var apiId$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -50,3 +50,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwseUNBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQixtREFBQSxDQUFBLENBQUEsQ0FBc0QscUJBQXFCLFVBQVUsT0FBTztJQUN0SCxPQUFPLENBQUMsbUJBQUEsQ0FBb0IsSUFBcEIsQ0FBeUIsVUFBVSxjQUFjO1FBQUUsT0FBUSxLQUFBLEdBQVEsWUFBQSxDQUFBLEdBQUEsQ0FBaUIsS0FBQSxDQUFNLFdBQU4s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nQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuaW1wb3J0ICogYXMgcm9sZSBmcm9tICcuL3JvbGUnO1xyXG5leHBvcnQgeyBtb2RlbCwgZmllbGQsIGVudW1lcmF0aW9uLCBzdGFnZSwgcHJvamVjdCwgcm9sZSB9O1xyXG4iXX0= | ||
var name$3 = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The name of a webhook can't be empty."); | ||
var description$3 = string().ensure(); | ||
var url$1 = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The URL can't be empty!").url('Only valid URLs are supported!').test('is-https-url', 'Only HTTPS URLs are supported!', function (value) { | ||
if (!value) | ||
return false; | ||
return value.startsWith('https://'); | ||
}); | ||
var headerKey = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The key of a header can't be empty!").matches(/^[A-Z][A-Za-z0-9-]*$/); | ||
export { model, field, enumeration, stage, project, role }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYmhvb2sudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixNQUZhLEVBQUEsQ0FHYixTQUhhLENBR0gsd0ZBSEcsQ0FJYixNQUphLENBSU4sS0FKTSxDQUti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uIl19 | ||
var webhook = ({ | ||
name: name$3, | ||
description: description$3, | ||
url: url$1, | ||
headerKey: headerKey | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFdBQVc7QUFDdkIsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksaUJBQWlCO0FBQzdCLFlBQVksV0FBVztBQUN2QixZQUFZLGFBQWE7QUFDekIsWUFBWSxVQUFVO0FBQ3RCLFlBQVksYUFBYTtBQUN6QixPQUFBLENBQVMsYUFBYSxPQUFPLE9BQU8sU0FBUyxNQUFNLE9BQU87QUFQMUQiLCJmaWxlIjoiaW5kZXgudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuaW1wb3J0ICogYXMgcm9sZSBmcm9tICcuL3JvbGUnO1xyXG5pbXBvcnQgKiBhcyB3ZWJob29rIGZyb20gJy4vd2ViaG9vayc7XHJcbmV4cG9ydCB7IGVudW1lcmF0aW9uLCBmaWVsZCwgbW9kZWwsIHByb2plY3QsIHJvbGUsIHN0YWdlLCB3ZWJob29rIH07XHJcbiJdfQ== | ||
export { enumeration, field, model, project, role, stage, webhook }; | ||
//# sourceMappingURL=validation.m.js.map |
@@ -19,3 +19,3 @@ (function (global, factory) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
@@ -29,3 +29,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQix5REFBQSxDQUFBLENBQUEsQ0FBNEQscUJBQXFCLFVBQVUsT0FBTztJQUM1SCxPQUFPLENBQUMsbUJBQUEsQ0FBb0IsSUFBcEIsQ0FBeUIsVUFBVSxjQUFjO1FBQUUsT0FBUSxLQUFBLEdBQVEsWUFBQSxDQUFBLEdBQUEsQ0FBaUIsS0FBQSxDQUFNLFdBQU4sS0FBc0I7SUFBdEg7QUFDQSxFQVRtQixDQVVkLE9BVmMsQ0FVTix1QkFBdUI7QUFTcEMsT0FBTyxHQUFBLENBQUksY0FBYyxHQUFBLEN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gICAgICAgICAgLT4gRW5zdXJlcyB0aGF0IG9ubHkgc3RyaW5ncyBjYW4gYmUgdmFsaWRhdGVkIHdpdGggc3VjY2Vzc1xyXG4gKiAudHlwZUVycm9yKDpzdHJpbmcpLT4gRW5zdXJlcyB0aGF0IHR5cGVzIG90aGVyIHRoYW4gc3RyaW5nIHJldHVybiBmYWxzZVxyXG4gKiAuZW5zdXJlKCkgICAgICAgICAgLT4gVHJhbnNmb3JtcyB0aGUgdmFsdWVzIFwidW5kZWZpbmVkXCIgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -39,3 +39,3 @@ | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(32, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The apiID of a field may not be empty!').min(1, 'Api Id must be at least one character long.').max(18, 'Api Id may not exceed 32 characters.').test('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedFieldApiIds, function (value) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
@@ -54,3 +54,3 @@ return value ? reservedWord === value.toLowerCase() : false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxk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bHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -131,12 +131,33 @@ | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFdBQVc7QUFDdkIsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksaUJBQWlCO0FBQzdCLFlBQVksV0FBVztBQUN2QixZQUFZLGFBQWE7QUFDekIsWUFBWSxVQUFVO0FBQ3RCLE9BQUEsQ0FBUyxPQUFPLE9BQU8sYUFBYSxPQUFPLFNBQVM7QUFOcEQiLCJmaWxlIjoiaW5kZXgudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuaW1wb3J0ICogYXMgcm9sZSBmcm9tICcuL3JvbGUnO1xyXG5leHBvcnQgeyBtb2RlbCwgZmllbGQsIGVudW1lcmF0aW9uLCBzdGFnZSwgcHJvamVjdCwgcm9sZSB9O1xyXG4iXX0= | ||
var name$3 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The name of a webhook can't be empty."); | ||
var description$3 = yup.string().ensure(); | ||
var url$1 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The URL can't be empty!").url('Only valid URLs are supported!').test('is-https-url', 'Only HTTPS URLs are supported!', function (value) { | ||
if (!value) | ||
return false; | ||
return value.startsWith('https://'); | ||
}); | ||
var headerKey = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The key of a header can't be empty!").matches(/^[A-Z][A-Za-z0-9-]*$/); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYmhvb2sudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixNQUZhLEVBQUEsQ0FHYixTQUhhLENBR0gsd0ZBSEcsQ0FJYixNQUphLENBSU4sS0FKTSxDQUtiLFFBTGEsQ0FLSjtBQUNkLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUFJLE1BQUosRUFBQSxDQUFhLE1BQWI7QUFDekIsT0FBTyxHQUFBLENBQUksTUFBTSxHQUFBLENBQ1osTUFEWSxFQUFBLENBRVosTUFGWSxFQUFBLENBR1osU0FIWSxDQUdGLHdGQUhFLENBSVosTUFKWSxDQUlMLEtBSkssQ0FLWixRQUxZLENBS0gsMEJBTEcsQ0FNWixHQU5ZLENBTVIsaUNBTlEsQ0FPWixJQVBZLENBT1AsZ0JBQWdCLGtDQUFrQyxVQUFVLE9BQU87SUFDekUsSUFBSSxDQUFDO1FBQ0QsT0FBTztJQUNYLE9BQU8sS0FBQSxDQUFNLFVBQU4sQ0FBaUI7QUFDNUI7QUFDQSxPQUFPLEdBQUEsQ0FBSSxZQUFZLEdBQUEsQ0FDbEIsTUFEa0IsRUFBQSxDQUVsQixNQUZrQixFQUFBLENBR2xCLFNBSGtCLENBR1Isd0ZB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Rpb24gKHZhbHVlKSB7XHJcbiAgICBpZiAoIXZhbHVlKVxyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIHJldHVybiB2YWx1ZS5zdGFydHNXaXRoKCdodHRwczovLycpO1xyXG59KTtcclxuZXhwb3J0IHZhciBoZWFkZXJLZXkgPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLmVuc3VyZSgpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC5yZXF1aXJlZChcIlRoZSBrZXkgb2YgYSBoZWFkZXIgY2FuJ3QgYmUgZW1wdHkhXCIpXHJcbiAgICAubWF0Y2hlcygvXltBLVpdW0EtWmEtejAtOS1dKiQvKTtcclxuIl19 | ||
var webhook = ({ | ||
name: name$3, | ||
description: description$3, | ||
url: url$1, | ||
headerKey: headerKey | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFdBQVc7QUFDdkIsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksaUJBQWlCO0FBQzdCLFlBQVksV0FBVztBQUN2QixZQUFZLGFBQWE7QUFDekIsWUFBWSxVQUFVO0FBQ3RCLFlBQVksYUFBYTtBQUN6QixPQUFBLENBQVMsYUFBYSxPQUFPLE9BQU8sU0FBUyxNQUFNLE9BQU87QUFQMUQiLCJmaWxlIjoiaW5kZXgudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuaW1wb3J0ICogYXMgcm9sZSBmcm9tICcuL3JvbGUnO1xyXG5pbXBvcnQgKiBhcyB3ZWJob29rIGZyb20gJy4vd2ViaG9vayc7XHJcbmV4cG9ydCB7IGVudW1lcmF0aW9uLCBmaWVsZCwgbW9kZWwsIHByb2plY3QsIHJvbGUsIHN0YWdlLCB3ZWJob29rIH07XHJcbiJdfQ== | ||
exports.enumeration = enumeration; | ||
exports.field = field; | ||
exports.model = model; | ||
exports.field = field; | ||
exports.enumeration = enumeration; | ||
exports.stage = stage; | ||
exports.project = project; | ||
exports.role = role; | ||
exports.stage = stage; | ||
exports.webhook = webhook; | ||
}))); | ||
//# sourceMappingURL=validation.umd.js.map |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.0.17", | ||
"version": "1.0.19", | ||
"main": "dist/validation.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
510968
292
779