@graphcms/validation
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -27,3 +27,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({ | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of an enumeration may not be empty.').min(1, 'The API ID of an enumeration must be at least one character long.').max(64, 'The API ID of an enumeration may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -37,5 +37,5 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Display names may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('A enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An The API ID of an enumeration may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name may not be empty.').trim('The display name may not have leading or trailing whitespaces.'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('An enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
var description$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
@@ -58,3 +58,3 @@ var values = yup.array().of(value).required('An enumeration must contain at least one 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(32, 'Api Id may not exceed 32 characters.').test({ | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a field may not be empty!').min(1, 'The API ID of a field must be at least one character long.').max(32, 'The API ID of a field may not exceed 32 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -68,4 +68,4 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display of a field may not be empty.').min(1, 'Display name must be at least one character long.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'The API ID of a field may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a field may not be empty.').min(1, 'The display name of a field must be at least one character long.').test('no-letter', 'The display name of a field should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -100,3 +100,3 @@ return value.replace(' ', '').length > 0; | ||
var apiId$2 = 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({ | ||
var apiId$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a model may not be empty.').min(1, 'The API ID of a model must be at least one character long.').max(64, 'The API ID of a model may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -110,3 +110,3 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'The API ID of a model may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a model may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
@@ -131,3 +131,3 @@ var description$3 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
var description$4 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
var url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint must be defined and can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
var url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
if (!value) | ||
@@ -184,3 +184,4 @@ return false; | ||
}); | ||
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 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-]*$/, 'The key may only start with a capital letter and contain only alphanumeric characters.'); | ||
var headerValue = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The value of a header can't be empty."); | ||
@@ -195,3 +196,4 @@ | ||
url: url$1, | ||
headerKey: headerKey | ||
headerKey: headerKey, | ||
headerValue: headerValue | ||
}); | ||
@@ -198,0 +200,0 @@ |
@@ -30,3 +30,3 @@ import { string, array, boolean } 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({ | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of an enumeration may not be empty.').min(1, 'The API ID of an enumeration must be at least one character long.').max(64, 'The API ID of an enumeration may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -40,5 +40,5 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Display names may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
var value = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('A enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An The API ID of an enumeration may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name may not be empty.').trim('The display name may not have leading or trailing whitespaces.'); | ||
var value = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('An enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
var description$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
@@ -49,3 +49,3 @@ var values = array().of(value).required('An enumeration must contain at least one value.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFZMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9UO0lBQ04sTUFBTSxrQkFEQSxDQUFBO0lBRU4sTUFBTSxVQUFVLE9BQU87UUFDbkIsT0FBTyxDQUFDLHlCQUFBLENBQTBCLElBQTFCLENBQStCLFVBQVUsY0FBYztZQUFFLE9BQVEsS0FBQSxHQUFRLFlBQUEsQ0FBQSxHQUFBLENBQWlCLEtBQUEsQ0FBTSxXQUFOLEtBQXNCO1FBQWhJO0lBQ0EsQ0FKVSxDQUFBO0lBS04sU0FBUyw4RUFMSCxDQUFBO0lBTU4sV0FBVztFQWJJLENBZWQsT0FmYyxDQWVOLHdCQUF3QjtBQVdyQyxPQUFPLEdBQUEsQ0FBSSxjQUFjLEdBQUEsQ0FDcEIsTUFEb0IsRUFBQSxDQUVwQixTQUZvQixDQUVWLHdGQUZVLENBR3BCLE1BSG9CLENBR2IsS0FIYSxDQUlwQixRQUpvQixDQUlYLGtDQUpXLENBS3BCLElBTG9CLENBS2Y7QUFhVixPQUFPLEdBQU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ZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuLyoqXHJcbiAqIENvbnZlbmllbmNlIHNjaGVtYSBmb3IgdmFsaWRhdGluZyB0aGUgdmFsdWVzIGZpZWxkIG9mIGFuIGVudW0uXHJcbiAqL1xyXG5leHBvcnQgdmFyIHZhbHVlcyA9IHl1cFxyXG4gICAgLmFycmF5KClcclxuICAgIC5vZih2YWx1ZSlcclxuICAgIC5yZXF1aXJlZCgnQW4gZW51bWVyYXRpb24gbXVzdCBjb250YWluIGF0IGxlYXN0IG9uZSB2YWx1ZS4nKTtcclxuZXhwb3J0IHZhciBlbnVtZXJhdGlvbklkID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC5yZXF1aXJlZCgpO1xyXG4iXX0= | ||
@@ -62,3 +62,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({ | ||
var apiId$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a field may not be empty!').min(1, 'The API ID of a field must be at least one character long.').max(32, 'The API ID of a field may not exceed 32 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -72,4 +72,4 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display of a field may not be empty.').min(1, 'Display name must be at least one character long.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'The API ID of a field may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a field may not be empty.').min(1, 'The display name of a field must be at least one character long.').test('no-letter', 'The display name of a field should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -84,3 +84,3 @@ return value.replace(' ', '').length > 0; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwseUNBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9UO0lBQ04sTUFBTSxrQkFEQSxDQUFBO0lBRU4sTUFBTSxVQUFVLE9BQU87UUFDbkIsT0FBTyxDQUFDLG1CQUFBLENBQW9CLElBQXBCLENBQXlCLFVBQVUsY0FBYztZQUFFLE9BQVEsS0FBQSxHQUFRLFlBQUEsQ0FBQSxHQUFBLENBQWlCLEtBQUEsQ0FBTSxXQUFOLEtBQXNCO1FBQTFIO0lBQ0EsQ0FKVSxDQUFBO0lBS04sU0FBUyw4RUFMSCxDQUFBO0lBTU4sV0FBVztFQWJJLENBZWQsT0FmYyxDQWVOLHVCQUF1QjtBQVlwQyxPQUFPLEdBQUEsQ0FBSSxjQUFjLEdBQUEsQ0FDcEIsTUFEb0IsRUFBQSxDQUVwQixTQUZvQixDQUVWLHdGQUZVLENBR3BCLE1BSG9CLEN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BcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbmV4cG9ydCB2YXIgaXNMaXN0ID0geXVwXHJcbiAgICAuYm9vbGVhbigpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwiYm9vbGVhblwiIScpXHJcbiAgICAucmVxdWlyZWQoKTtcclxuIl19 | ||
@@ -105,3 +105,3 @@ | ||
var apiId$2 = 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({ | ||
var apiId$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a model may not be empty.').min(1, 'The API ID of a model must be at least one character long.').max(64, 'The API ID of a model may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -115,3 +115,3 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'The API ID of a model may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a model may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
@@ -122,3 +122,3 @@ var description$3 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQV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CBtYXkgbm90IGJlIGVtcHR5LicpXHJcbiAgICAudHJpbSgnRGlzcGxheSBuYW1lcyBtYXkgbm90IGhhdmUgbGVhZGluZyBvciB0cmFpbGluZyB3aGl0ZXNwYWNlcy4nKTtcclxuLyoqXHJcbiAqIE1hdGNoZXIgZm9yIG1vZGVsIGRlc2NyaXB0aW9uczpcclxuICpcclxuICogLnN0cmluZygpICAgICAgICAgIC0+IEVuc3VyZXMgdGhhdCBvbmx5IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbmV4cG9ydCB2YXIgbW9kZWxJZCA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoKTtcclxuIl19 | ||
@@ -137,3 +137,3 @@ | ||
var description$4 = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
var url = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint must be defined and can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
var url = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
if (!value) | ||
@@ -150,3 +150,3 @@ return false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3QudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxjQUFjLENBQUMsWUFBYSxZQUFhLFlBQWE7QUFFakUsT0FBTyxHQUFBLENBQUksT0FBTyxHQUFBLENBQ2IsTUFEYSxFQUFBLENBRWIsU0FGYSxDQUVILHdGQUZHLENBR2IsTUFIYSxDQUdOLEtBSE0sQ0FJYixRQUphLENBSUo7QUFDZCxPQUFPLEdBQUEsQ0FBSSxTQUFTLEdBQUEsQ0FDZixNQURlLEVBQUEsQ0FFZixTQUZlLENBRUwsd0ZBRkssQ0FHZixNQUhlLENBR1IsS0FIUSxDQUlmLEdBSmUsQ0FJWCxFQUpXLENBS2YsUUFMZSxDQUtOLDRDQUxNLENBTWYsS0FOZSxDQU1ULGFBQWE7QUFDeEIsT0FBTyxHQUFBLENBQUksY0FBYyxHQUFBLENBQ3BCLE1BRG9CLEVBQUEsQ0FFcEIsTUFGb0IsRUFBQSxDQUdwQixTQUhvQixDQUdWO0FBQ2YsR0FBQSxDQUFJLE1BQU0sR0FBQSxDQUNMLE1BREssRUFBQSxDQUVMLFNBRkssQ0FFSyx3RkFGTCxDQUdMLE1BSEssQ0FHRSxLQUhGLENBSUwsR0FKSyxDQUlELEVBSkMsQ0FLTCxRQUxLLENBS0ksNEVBTEosQ0FNTCxHQU5LLENBTUQsa0RBTkMsQ0FPTCx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1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLm1pbigxKVxyXG4gICAgLnJlcXVpcmVkKCdUaGUgdXJsIG9mIGEgY3VzdG9tIHByaXNtYSBlbmRwb2ludCBjYW4gbm90IGJlIGVtcHR5IScpXHJcbiAgICAudXJsKCdUaGUgY3VzdG9tIHByaXNtYSBlbmRwb2ludCBtdXN0IGJlIGEgdmFsaWQgdXJsIScpXHJcbiAgICAudGVzdCgnbm8tZW5kLXdpdGgtbWFuYWdlbWVudCcsICdUaGUgY3VzdG9tIHByaXNtYSBlbmRwb2ludCBtYXkgbm90IGVuZCB3aXRoIFwiL21hbmFnZW1lbnRcIicsIGZ1bmN0aW9uICh2YWx1ZSkge1xyXG4gICAgaWYgKCF2YWx1ZSlcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICByZXR1cm4gIXZhbHVlLmVuZHNXaXRoKCcvbWFuYWdlbWVudCcpO1xyXG59KTtcclxudmFyIHRva2VuID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKCdBIHRva2VuIGNhbiBub3QgYmUgZW1wdHkhJyk7XHJcbmV4cG9ydCB2YXIgY3VzdG9tUHJpc21hID0geyB1cmw6IHVybCwgdG9rZW46IHRva2VuIH07XHJcbiJdfQ== | ||
@@ -191,6 +191,7 @@ | ||
}); | ||
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-]*$/); | ||
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-]*$/, 'The key may only start with a capital letter and contain only alphanumeric characters.'); | ||
var headerValue = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The value of a header can't be empty."); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYmhvb2sudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixNQUZhLEVBQUEsQ0FHYixTQUhhLENBR0gsd0ZBSEcsQ0FJYixNQUphLENBSU4sS0FKTSxDQUtiLFFBTGEsQ0FLSjtBQUNkLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUFJLE1BQUosRUFBQSxDQUFhLE1BQWI7QUFDekIsT0FBTyxHQUFBLENBQUksTUFBTSxHQUFBLENBQ1osTUFEWSxFQUFBLENBRVosTUFGWSxFQUFBLENBR1osU0FIWSxDQUdGLHdGQUhFLENBSVosTUFKWSxDQUlMLEtBSkssQ0FLWixRQUxZLENBS0gsMEJBTEcsQ0FNWixHQU5ZLENBTVIsaUNBTlEsQ0FPWixJQVBZLENBT1AsZ0JBQWdCLGtDQUFrQyxVQUFVLE9BQU87SUFDekUsSUFBSSxDQUFDO1FBQ0QsT0FBTztJQUNYLE9BQU8sS0FBQSxDQUFNLFVBQU4sQ0FBaUI7QUFDNUI7QUFDQSxPQUFPLEdBQUEsQ0FBSSxZQUFZLEdBQUEsQ0FDbEIsTUFEa0IsRUFBQSxDQUVsQixNQUZrQixFQUFBLENBR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XJ0IHdpdGggYSBjYXBpdGFsIGxldHRlciBhbmQgY29udGFpbiBvbmx5IGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzLicpO1xyXG5leHBvcnQgdmFyIGhlYWRlclZhbHVlID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC5lbnN1cmUoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoXCJUaGUgdmFsdWUgb2YgYSBoZWFkZXIgY2FuJ3QgYmUgZW1wdHkuXCIpO1xyXG4iXX0= | ||
@@ -202,3 +203,4 @@ | ||
url: url$1, | ||
headerKey: headerKey | ||
headerKey: headerKey, | ||
headerValue: headerValue | ||
}); | ||
@@ -205,0 +207,0 @@ |
@@ -34,3 +34,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({ | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of an enumeration may not be empty.').min(1, 'The API ID of an enumeration must be at least one character long.').max(64, 'The API ID of an enumeration may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -44,5 +44,5 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Display names may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('A enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An The API ID of an enumeration may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name may not be empty.').trim('The display name may not have leading or trailing whitespaces.'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').required('An enumeration value can not be empty.').strict(true).min(1, 'An enumeration value must be at least one character long.').max(191, 'An enumeration value may not exceed 191 characters.').matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An enumeration value may only start with an uppercase letter and contain alphanumeric characters and underscores only.'); | ||
var description$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
@@ -53,3 +53,3 @@ var values = yup.array().of(value).required('An enumeration must contain at least one value.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFZMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9UO0lBQ04sTUFBTSxrQkFEQSxDQUFBO0lBRU4sTU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3JpcHRpb25zOlxyXG4gKlxyXG4gKiAuc3RyaW5nKCkgICAgICAgICAgLT4gRW5zdXJlcyB0aGF0IG9ubHkgc3RyaW5ncyBjYW4gYmUgdmFsaWRhdGVkIHdpdGggc3VjY2Vzc1xyXG4gKiAudHlwZUVycm9yKDpzdHJpbmcpLT4gRW5zdXJlcyB0aGF0IHR5cGVzIG90aGVyIHRoYW4gc3RyaW5nIHJldHVybiBmYWxzZVxyXG4gKiAuZW5zdXJlKCkgICAgICAgICAgLT4gVHJhbnNmb3JtcyB0aGUgdmFsdWVzIFwidW5kZWZpbmVkXCIgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuLyoqXHJcbiAqIENvbnZlbmllbmNlIHNjaGVtYSBmb3IgdmFsaWRhdGluZyB0aGUgdmFsdWVzIGZpZWxkIG9mIGFuIGVudW0uXHJcbiAqL1xyXG5leHBvcnQgdmFyIHZhbHVlcyA9IHl1cFxyXG4gICAgLmFycmF5KClcclxuICAgIC5vZih2YWx1ZSlcclxuICAgIC5yZXF1aXJlZCgnQW4gZW51bWVyYXRpb24gbXVzdCBjb250YWluIGF0IGxlYXN0IG9uZSB2YWx1ZS4nKTtcclxuZXhwb3J0IHZhciBlbnVtZXJhdGlvbklkID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC5yZXF1aXJlZCgpO1xyXG4iXX0= | ||
@@ -66,3 +66,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({ | ||
var apiId$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a field may not be empty!').min(1, 'The API ID of a field must be at least one character long.').max(32, 'The API ID of a field may not exceed 32 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -76,4 +76,4 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display of a field may not be empty.').min(1, 'Display name must be at least one character long.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, 'The API ID of a field may only start with a lowercase letter and contain alphanumeric characters.'); | ||
var displayName$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a field may not be empty.').min(1, 'The display name of a field must be at least one character long.').test('no-letter', 'The display name of a field should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -88,3 +88,3 @@ return value.replace(' ', '').length > 0; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwseUNBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxD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IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbmV4cG9ydCB2YXIgaXNMaXN0ID0geXVwXHJcbiAgICAuYm9vbGVhbigpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwiYm9vbGVhblwiIScpXHJcbiAgICAucmVxdWlyZWQoKTtcclxuIl19 | ||
@@ -109,3 +109,3 @@ | ||
var apiId$2 = 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({ | ||
var apiId$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The API ID of a model may not be empty.').min(1, 'The API ID of a model must be at least one character long.').max(64, 'The API ID of a model may not exceed 64 characters.').test({ | ||
name: 'no-reserved-word', | ||
@@ -119,3 +119,3 @@ test: function (value) { | ||
exclusive: false | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'The API ID of a model may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The display name of a model may not be empty.').trim('Display names may not have leading or trailing whitespaces.'); | ||
@@ -126,3 +126,3 @@ var description$3 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9UO0lBQ04sTUFBTSxrQkFEQSxDQUFBO0lBRU4sTUFBTSxVQUFVLE9BQU87UUFDbkIsT0FBTyxDQUFDLG1CQUFBLENBQW9CLElBQXBCLENBQXlCLFVBQVUsY0FBYztZQUFFLE9BQVEsS0FBQSxHQUFRLFlBQUEsQ0FBQSxHQUFBLENBQWlCLEtBQUEsQ0FBTSxXQUFOLEtBQXNCO1FBQTFIO0lBQ0EsQ0FKVSxDQUFBO0lBS04sU0FBUyw4RUFMSCxDQUFBO0lBTU4sV0FBVztFQWJJLENBZWQsT0FmYyxDQWV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Rpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbmV4cG9ydCB2YXIgbW9kZWxJZCA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoKTtcclxuIl19 | ||
@@ -141,3 +141,3 @@ | ||
var description$4 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
var url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint must be defined and can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
var url = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The url of a custom prisma endpoint can not be empty!').url('The custom prisma endpoint must be a valid url!').test('no-end-with-management', 'The custom prisma endpoint may not end with "/management"', function (value) { | ||
if (!value) | ||
@@ -154,3 +154,3 @@ return false; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3QudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxjQUFjLENBQUMsWUFBYSxZQUFhLFlBQWE7QUFFakUsT0FBTyxHQUFBLENBQUksT0FBTyxHQUFBLENBQ2IsTUFEYSxFQUFBLENBRWIsU0FGYSxDQUVILHdGQUZHLENBR2IsTUFIYSxDQUdOLEtBSE0sQ0FJYixRQUphLENBSUo7QUFDZC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4gZmFsc2U7XHJcbiAgICByZXR1cm4gIXZhbHVlLmVuZHNXaXRoKCcvbWFuYWdlbWVudCcpO1xyXG59KTtcclxudmFyIHRva2VuID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKCdBIHRva2VuIGNhbiBub3QgYmUgZW1wdHkhJyk7XHJcbmV4cG9ydCB2YXIgY3VzdG9tUHJpc21hID0geyB1cmw6IHVybCwgdG9rZW46IHRva2VuIH07XHJcbiJdfQ== | ||
@@ -195,6 +195,7 @@ | ||
}); | ||
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 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-]*$/, 'The key may only start with a capital letter and contain only alphanumeric characters.'); | ||
var headerValue = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required("The value of a header can't be empty."); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYmhvb2sudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixNQUZhLEVBQUEsQ0FHYixTQUhhLENBR0gsd0ZBSEcsQ0FJYixNQUphLENBSU4sS0FKTS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JcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgcmV0dXJuIHZhbHVlLnN0YXJ0c1dpdGgoJ2h0dHBzOi8vJyk7XHJcbn0pO1xyXG5leHBvcnQgdmFyIGhlYWRlcktleSA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAuZW5zdXJlKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKFwiVGhlIGtleSBvZiBhIGhlYWRlciBjYW4ndCBiZSBlbXB0eSFcIilcclxuICAgIC5tYXRjaGVzKC9eW0EtWl1bQS1aYS16MC05LV0qJC8sICdUaGUga2V5IG1heSBvbmx5IHN0YXJ0IHdpdGggYSBjYXBpdGFsIGxldHRlciBhbmQgY29udGFpbiBvbmx5IGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzLicpO1xyXG5leHBvcnQgdmFyIGhlYWRlclZhbHVlID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC5lbnN1cmUoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoXCJUaGUgdmFsdWUgb2YgYSBoZWFkZXIgY2FuJ3QgYmUgZW1wdHkuXCIpO1xyXG4iXX0= | ||
@@ -206,3 +207,4 @@ | ||
url: url$1, | ||
headerKey: headerKey | ||
headerKey: headerKey, | ||
headerValue: headerValue | ||
}); | ||
@@ -209,0 +211,0 @@ |
@@ -6,1 +6,2 @@ import * as yup from 'yup'; | ||
export declare const headerKey: yup.StringSchema; | ||
export declare const headerValue: yup.StringSchema; |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"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
585627
986