@graphcms/validation
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -11,3 +11,2 @@ import * as yup from 'yup'; | ||
* .required() -> Ensures that empty strings are treated as invalid value | ||
* .test() -> Executes an arbitrary test on the input value | ||
* .matches(:RegExpr) -> Matches the input value against a regular expression | ||
@@ -40,1 +39,5 @@ */ | ||
export declare const value: yup.StringSchema; | ||
/** | ||
* Convenience schema for validating the values field of an enum. | ||
*/ | ||
export declare const values: yup.ArraySchema<string>; |
@@ -28,3 +28,3 @@ import * as yup from 'yup'; | ||
/** | ||
* Matcher for model descriptions: | ||
* Matcher for field descriptions: | ||
* | ||
@@ -31,0 +31,0 @@ * .string() -> Ensures that only strings can be validated with success |
@@ -21,4 +21,2 @@ import * as yup from 'yup'; | ||
* .strict(:boolean) -> Prevents manipulation of the string during validation | ||
* .trim() -> Since strict is true, this only validates that the input value is trimmed | ||
* This means that it checks that the value does not have any leading or trailing whitespaces. | ||
* .required() -> Ensures that empty strings are treated as invalid value | ||
@@ -25,0 +23,0 @@ */ |
var yup = require('yup'); | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = []; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
@@ -11,19 +11,8 @@ var reservedEnumerationNames = ['Status']; | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(64).required('The apiID of a model may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).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(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) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a model may not be "undefined" or an empty string!'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName = 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.'); | ||
var description = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
@@ -41,19 +30,8 @@ | ||
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 "undefined" or an empty string!').min(1).max(32).test('first-lowercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/^[a-z].*$/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Field 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(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) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
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 "undefined" or an empty string!').min(1).max(32).test('no-letter', '${path} should contain at least one non-whitespace character', function (value) { | ||
}).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.').max(32, 'Display name may not exceed 32 characters.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -76,31 +54,10 @@ 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).min(1).max(64).required('The apiID of an enumeration may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Enumeration api id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
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('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
var displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(191).required('The value of an enumeration entry may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
}).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$2 = 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.'); | ||
var values = yup.array().of(value).required('An enumeration must contain at least one value.'); | ||
@@ -114,6 +71,7 @@ | ||
displayName: displayName$2, | ||
value: value | ||
value: value, | ||
values: values | ||
}); | ||
var name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1).max(32).matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, and _ .'); | ||
var name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1, 'The name of a stage must be at least one character long.').max(32, 'The name of a stage may not exceed 32 characters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, "-", and "_".'); | ||
@@ -129,4 +87,4 @@ | ||
var API_REGIONS = ['EU_WEST_1','US_EAST_1']; | ||
var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty or undefined!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a project can not be empty.'); | ||
var region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var description$2 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
@@ -138,3 +96,3 @@ 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 token = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var token = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('A token can not be empty!'); | ||
var customPrisma = { | ||
@@ -157,3 +115,3 @@ url: url, | ||
var name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1).max(32); | ||
var name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1, 'The name of a role must be at least one character long.').max(32, 'The name of a role may not exceed 32 characters.'); | ||
@@ -160,0 +118,0 @@ |
@@ -1,5 +0,5 @@ | ||
import { string } from 'yup'; | ||
import { string, array } from 'yup'; | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = []; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
@@ -12,25 +12,14 @@ var reservedEnumerationNames = ['Status']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLEdBQUEsQ0FBSSxtQkFBbUIsQ0FBQyxNQUFPLFFBQVMsU0FBVSxVQUFXO0FBQzdELEdBQUEsQ0FBSSxxQkFBcUI7QUFDekIsR0FBQSxDQUFJLHFCQUFxQixDQUFDLEtBQU0sWUFBYTtBQUM3QyxHQUFBLENBQUksMkJBQTJCLENBQUM7QUFDaEMsT0FBTyxHQUFBLENBQUksc0JBQXNCLGtCQUFBLENBQW1CLE1BQW5CLENBQTBCO0FBQzNELE9BQU8sR0FBQSxDQUFJLHNCQUFzQixrQkFBQSxDQUFtQixNQUFuQixDQUEwQjtBQUMzRCxPQUFPLEdBQUEsQ0FBSSw0QkFBNEIsd0JBQUEsQ0FBeUIsTUFBekIsQ0FBZ0M7QUFOdkUiLCJmaWxlIjoicmVzZXJ2ZWRXb3Jkcy50cyhvcmlnaW5hbCkiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgZ3JhcGhRbFR5cGVOYW1lcyA9IFsnSW50JywgJ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sR0FBQSxDQUFJLDRCQUE0Qix3QkFBQSxDQUF5QixNQUF6QixDQUFnQztBQU52RSIsImZpbGUiOiJyZXNlcnZlZFdvcmRzLnRzKG9yaWdpbmFsKSIsInNvdXJjZXNDb250ZW50IjpbInZhciBncmFwaFFsVHlwZU5hbWVzID0gWydJbnQnLCAnRmxvYXQnLCAnU3RyaW5nJywgJ0Jvb2xlYW4nLCAnSUQnXTtcclxudmFyIHJlc2VydmVkTW9kZWxOYW1lcyA9IFsnVXNlciddO1xyXG52YXIgcmVzZXJ2ZWRGaWVsZE5hbWVzID0gWydJRCcsICdjcmVhdGVkQXQnLCAndXBkYXRlZEF0J107XHJcbnZhciByZXNlcnZlZEVudW1lcmF0aW9uTmFtZXMgPSBbJ1N0YXR1cyddO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkTW9kZWxBcGlJZHMgPSByZXNlcnZlZE1vZGVsTmFtZXMuY29uY2F0KGdyYXBoUWxUeXBlTmFtZXMpO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkRmllbGRBcGlJZHMgPSByZXNlcnZlZEZpZWxkTmFtZXMuY29uY2F0KGdyYXBoUWxUeXBlTmFtZXMpO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkRW51bWVyYXRpb25BcGlJZHMgPSByZXNlcnZlZEVudW1lcmF0aW9uTmFtZXMuY29uY2F0KGdyYXBoUWxUeXBlTmFtZXMpO1xyXG4iXX0= | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(64).required('The apiID of a model may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).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(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) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
var displayName = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a model may not be "undefined" or an empty string!'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName = 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.'); | ||
var description = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxHQUpjLENBSVYsRUFKVSxDQUtkLEdBTGMsQ0FLVixHQUxVLENBTWQsUUFOYyxDQU1MLGtFQU5LLENBT2QsSUFQYyxDQU9ULG1CQUFtQix5Q0FBeUMsVUFBVSxPQUFPO0lBQ25GLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBa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JHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoJ1RoZSBkaXNwbGF5IG5hbWUgb2YgYSBtb2RlbCBtYXkgbm90IGJlIGVtcHR5LicpXHJcbiAgICAudHJpbSgnRGlzcGxheSBuYW1lcyBtYXkgbm90IGhhdmUgbGVhZGluZyBvciB0cmFpbGluZyB3aGl0ZXNwYWNlcy4nKTtcclxuLyoqXHJcbiAqIE1hdGNoZXIgZm9yIG1vZGVsIGRlc2NyaXB0aW9uczpcclxuICpcclxuICogLnN0cmluZygpICAgICAgICAgIC0+IEVuc3VyZXMgdGhhdCBvbmx5IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -44,19 +33,8 @@ | ||
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 "undefined" or an empty string!').min(1).max(32).test('first-lowercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/^[a-z].*$/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Field 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(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) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
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 "undefined" or an empty string!').min(1).max(32).test('no-letter', '${path} should contain at least one non-whitespace character', function (value) { | ||
}).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.').max(32, 'Display name may not exceed 32 characters.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -70,3 +48,3 @@ return value.replace(' ', '').length > 0; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyww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pdGVzcGFjZSBjaGFyYWN0ZXInLCBmdW5jdGlvbiAodmFsdWUpIHtcclxuICAgIGlmICh2YWx1ZSAmJiB0eXBlb2YgdmFsdWUgPT09ICdzdHJpbmcnKSB7XHJcbiAgICAgICAgcmV0dXJuIHZhbHVlLnJlcGxhY2UoJyAnLCAnJykubGVuZ3RoID4gMDtcclxuICAgIH1cclxuICAgIHJldHVybiBmYWxzZTtcclxufSk7XHJcbi8qKlxyXG4gKiBNYXRjaGVyIGZvciBmaWVsZCBkZXNjcmlwdGlvbnM6XHJcbiAqXHJcbiAqIC5zdHJpbmcoKSAgICAgICAgICAtPiBFbnN1cmVzIHRoYXQgb25seSBzdHJpbmdzIGNhbiBiZSB2YWxpZGF0ZWQgd2l0aCBzdWNjZXNzXHJcbiAqIC50eXBlRXJyb3IoOnN0cmluZyktPiBFbnN1cmVzIHRoYXQgdHlwZXMgb3RoZXIgdGhhbiBzdHJpbmcgcmV0dXJuIGZhbHNlXHJcbiAqIC5lbnN1cmUoKSAgICAgICAgICAtPiBUcmFuc2Zvcm1zIHRoZSB2YWx1ZXMgXCJ1bmRlZmluZWRcIiBhbmQgXCJudWxsXCIgaW50byBlbXB0eSBzdHJpbmdzXHJcbiAqL1xyXG5leHBvcnQgdmFyIGRlc2NyaXB0aW9uID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLmVuc3VyZSgpO1xyXG4iXX0= | ||
@@ -80,34 +58,13 @@ | ||
var apiId$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(64).required('The apiID of an enumeration may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Enumeration api id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
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('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
var displayName$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'); | ||
var value = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(191).required('The value of an enumeration entry may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
}).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$2 = 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.'); | ||
var values = array().of(value).required('An enumeration must contain at least one value.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFhMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxHQUpjLENBSVYsRUFKVSxDQUtkLEdBTGMsQ0FLVixHQUxVLENBTWQsUUFOYyxDQU1MLHlFQU5LLENBT2QsSUFQYyxDQU9ULG1CQUFtQix5Q0FBeUMsVUFBVSxPQUFPO0lBQ25GLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBaUIsUUFBMUIsQ0FBQSxFQUFBLENBQXNDLEtBQUEsQ0FBTSxNQUFOLENBQUEsRUFBQSxDQUFnQixHQUFHO1FBQ3pELEdBQUEsQ0FBSSxRQUFRLEtBQUEsQ0FBTTtRQUNsQixPQUFPLE1BQUEsQ0FBTyxRQUFQLENBQWdCLElBQWhCLENBQXFCO0lBQ3BDO0lBQ0ksT0FBTztBQUNYLEVBYm1CLENBY2QsSUFkYyxDQWNULGlCQUFpQixpREFBaUQsVUFBVSxPQUFPO0lBQ3pGLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBaUIsVUFBV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cnQgd2l0aCBhbiB1cHBlcmNhc2UgbGV0dGVyIGFuZCBjb250YWluIGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzIGFuZCB1bmRlcnNjb3JlcyBvbmx5LicpO1xyXG4vKipcclxuICogQ29udmVuaWVuY2Ugc2NoZW1hIGZvciB2YWxpZGF0aW5nIHRoZSB2YWx1ZXMgZmllbGQgb2YgYW4gZW51bS5cclxuICovXHJcbmV4cG9ydCB2YXIgdmFsdWVzID0geXVwXHJcbiAgICAuYXJyYXkoKVxyXG4gICAgLm9mKHZhbHVlKVxyXG4gICAgLnJlcXVpcmVkKCdBbiBlbnVtZXJhdGlvbiBtdXN0IGNvbnRhaW4gYXQgbGVhc3Qgb25lIHZhbHVlLicpO1xyXG4iXX0= | ||
@@ -118,9 +75,10 @@ | ||
displayName: displayName$2, | ||
value: value | ||
value: value, | ||
values: values | ||
}); | ||
var name = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1).max(32).matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, and _ .'); | ||
var name = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1, 'The name of a stage must be at least one character long.').max(32, 'The name of a stage may not exceed 32 characters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, "-", and "_".'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YWdlLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsT0FBTyxHQUFBLENBQUksT0FBTyxHQUFBLENBQ2IsTUFEYSx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AudHJpbSgnVGhlIG5hbWUgb2YgYSBzdGFnZSBtYXkgbm90IHN0YXJ0IG9yIGVuZCB3aXRoIHdoaXRlc3BhY2UgY2hhcmFjdGVycyEnKVxyXG4gICAgLm1pbigxLCAnVGhlIG5hbWUgb2YgYSBzdGFnZSBtdXN0IGJlIGF0IGxlYXN0IG9uZSBjaGFyYWN0ZXIgbG9uZy4nKVxyXG4gICAgLm1heCgzMiwgJ1RoZSBuYW1lIG9mIGEgc3RhZ2UgbWF5IG5vdCBleGNlZWQgMzIgY2hhcmFjdGVycy4nKVxyXG4gICAgLm1hdGNoZXMobmV3IFJlZ0V4cCgnXlthLXpBLVpdW2EtekEtWjAtOVxcXFwtX10qJCcpLCAvLyA8LS0gVGhvc2UgYXJlIHZhbGlkYXRpb25zIGVuZm9yY2VkIGJ5IHByaXNtYTogaHR0cHM6Ly9naXRodWIuY29tL2dyYXBoY29vbC9wcmlzbWEvYmxvYi9tYXN0ZXIvc2VydmVyL3NlcnZlcnMvZGVwbG95L3NyYy9tYWluL3NjYWxhL2NvbS9wcmlzbWEvZGVwbG95L3ZhbGlkYXRpb24vTmFtZUNvbnN0cmFpbnRzLnNjYWxhXHJcbidTdGFnZSBuYW1lcyBtYXkgb25seSBzdGFydCB3aXRoIGEgbGV0dGVyIGFuZCBjYW4gY29udGFpbiBhbHBoYW51bWVyaWMgY2hhcmFjdGVycywgXCItXCIsIGFuZCBcIl9cIi4nKTtcclxuIl19 | ||
@@ -133,4 +91,4 @@ | ||
var API_REGIONS = ['EU_WEST_1','US_EAST_1']; | ||
var name$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var region = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty or undefined!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var name$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a project can not be empty.'); | ||
var region = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var description$2 = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
@@ -142,3 +100,3 @@ 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 token = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var token = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('A token can not be empty!'); | ||
var customPrisma = { | ||
@@ -150,3 +108,3 @@ url: url, | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3QudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxjQUFjLENBQUMsWUFBYTtBQUV2QyxPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixTQUZhLENBRUgsd0ZBRkcsQ0FHYixNQUhhLENBR04sS0FITSxDQUliLEdBSmEsQ0FJVCxFQUpTLENBS2IsUUFMYSxDQUtKO0FBQ2QsT0FBTyxHQUFBLENBQUksU0FBUyxHQUFBLENBQ2YsTUFEZSxFQUFBLENBRWYsU0FGZSxDQUVMLHdGQUZLLENBR2YsTUFIZSxDQUdSLEtBSFEsQ0FJZixHQUplLENBSVgsRUFKVyxDQUtmLFFBTGUsQ0FLTix5REFMTSxDQU1mLEtBTmUsQ0FNVCxhQUFhO0FBQ3hC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IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKCdBIHRva2VuIGNhbiBub3QgYmUgZW1wdHkhJyk7XHJcbmV4cG9ydCB2YXIgY3VzdG9tUHJpc21hID0geyB1cmw6IHVybCwgdG9rZW46IHRva2VuIH07XHJcbiJdfQ== | ||
@@ -162,6 +120,6 @@ | ||
var name$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1).max(32); | ||
var name$2 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1, 'The name of a role must be at least one character long.').max(32, 'The name of a role may not exceed 32 characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvbGUudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxPQUFPLEdBQUEsQ0FDYixNQURhLEVBQUEsQ0FFYixTQUZhLENBRUgsd0ZBRkcsQ0FHYixNQUhhLENBR04sS0FITSxDQUliLFFBSmEsQ0FJSixxREFKSSxDQUtiLElBTGEsQ0FLUixzRUFMUSxDQU1iLEdBTmEsQ0FNVCxFQU5TLENBT2IsR0FQYSxDQU9UO0FBUlQiLCJmaWxlIjoicm9sZS50cyhvcmlnaW5hbCkiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyB5dXAgZnJvbSAneXVwJztcclxuZXhwb3J0IHZhciBuYW1lID0geXVwX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XBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoJ1RoZSBuYW1lIG9mIGEgcm9sZSBtYXkgb25seSBiZSBhIG5vbi1lbXB0eSBzdHJpbmchJylcclxuICAgIC50cmltKCdUaGUgbmFtZSBvZiBhIHJvbGUgbWF5IG5vdCBzdGFydCBvciBlbmQgd2l0aCB3aGl0ZXNwYWNlIGNoYXJhY3RlcnMhJylcclxuICAgIC5taW4oMSwgJ1RoZSBuYW1lIG9mIGEgcm9sZSBtdXN0IGJlIGF0IGxlYXN0IG9uZSBjaGFyYWN0ZXIgbG9uZy4nKVxyXG4gICAgLm1heCgzMiwgJ1RoZSBuYW1lIG9mIGEgcm9sZSBtYXkgbm90IGV4Y2VlZCAzMiBjaGFyYWN0ZXJzLicpO1xyXG4iXX0= | ||
@@ -168,0 +126,0 @@ |
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = []; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
@@ -17,25 +17,14 @@ var reservedEnumerationNames = ['Status']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLEdBQUEsQ0FBSSxtQkFBbUIsQ0FBQyxNQUFPLFFBQVMsU0FBVSxVQUFXO0FBQzdELEdBQUEsQ0FBSSxxQkFBcUI7QUFDekIsR0FBQSxDQUFJLHFCQUFxQixDQUFDLEtBQU0sWUFBYTtBQUM3QyxHQUFBLENBQUksMkJBQTJCLENBQUM7QUFDaEMsT0FBTyxHQUFBLENBQUksc0JBQXNCLGtCQUF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apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(64).required('The apiID of a model may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).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(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) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
var displayName = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a model may not be "undefined" or an empty string!'); | ||
}).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
var displayName = 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.'); | ||
var description = 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFB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cHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -49,19 +38,8 @@ | ||
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 "undefined" or an empty string!').min(1).max(32).test('first-lowercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/^[a-z].*$/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Field 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(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) { | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[a-z][a-zA-Z0-9]*$/, '${path} does not match GraphQL spec'); | ||
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 "undefined" or an empty string!').min(1).max(32).test('no-letter', '${path} should contain at least one non-whitespace character', function (value) { | ||
}).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.').max(32, 'Display name may not exceed 32 characters.').test('no-letter', 'Display name should contain at least one non-whitespace character', function (value) { | ||
if (value && typeof value === 'string') { | ||
@@ -75,3 +53,3 @@ return value.replace(' ', '').length > 0; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsa0VBSkssQ0FLZCxHQUxjLENBS1YsRUFMVSxDQU1kLEdBTmMsQ0FNVixHQU5VLENBT2QsSUFQYyxDQU9ULG1CQUFtQix5Q0FBeUMsVUFBVSxPQUFPO0lBQ25GLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBaUIsUUFBMUIsQ0FBQSxFQUFBLENBQXNDLEtBQUEsQ0FBTSxNQUFOLENBQUEsRUFBQSxDQUFnQixHQUFHO1FBQ3pELEdBQUEsQ0FBSSxRQUFRLEtBQUEsQ0FBTTtRQUNsQixPQUFPLE1BQUEsQ0FBTyxZQUFQLENBQW9CLElBQXBCLENBQXlCO0lBQ3hDO0lBQ0ksT0FBTztBQUNYLEVBYm1CLENBY2QsSUFkYyxDQWNULGlCQUFpQixpREFBaUQsVUFBVSxPQUFPO0lBQ3pGLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBaUIsVUFBVTtRQUNwQyxPQUFPLEtBQUEsQ0FBT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3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLmVuc3VyZSgpO1xyXG4iXX0= | ||
@@ -85,34 +63,13 @@ | ||
var apiId$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(64).required('The apiID of an enumeration may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).test('no-reserved-word', "Enumeration api id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
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('no-reserved-word', "Api Id may not be one of the following keywords: " + reservedEnumerationApiIds, function (value) { | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
}); | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
var displayName$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'); | ||
var value = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).max(191).required('The value of an enumeration entry may not be "undefined" or an empty string!').test('first-uppercase', '${path} first Letter is not Uppercase', function (value) { | ||
if (value && typeof value === 'string' && value.length >= 1) { | ||
var first = value[0]; | ||
return RegExp(/[A-Z]/).test(first); | ||
} | ||
return false; | ||
}).test('no-whitespace', '${path} should not have whitespace characters', function (value) { | ||
if (value && typeof value === 'string') { | ||
return value.replace(' ', '') === value; | ||
} | ||
return false; | ||
}).matches(/^[A-Z][a-zA-Z0-9_]*$/, '${path} does not match GraphQL spec'); | ||
}).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$2 = 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.'); | ||
var values = yup.array().of(value).required('An enumeration must contain at least one value.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFhMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxHQUpjLENBSVYsRUFKVSxDQUtkLEdBTGMsQ0FLVixHQUxVLENBTWQsUUFOYyxDQU1MLHlFQU5LLENBT2QsSUFQYyxDQU9ULG1CQUFtQix5Q0FBeUMsVUFBVSxPQUFPO0lBQ25GLElBQUksS0FBQSxDQUFBLEVBQUEsQ0FBUyxNQUFBLENBQU8sS0FBUCxDQUFBLEdBQUEsQ0FBaUIsUUFBMUIsQ0FB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HVlIGNhbiBub3QgYmUgZW1wdHkuJylcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC5taW4oMSwgJ0FuIGVudW1lcmF0aW9uIHZhbHVlIG11c3QgYmUgYXQgbGVhc3Qgb25lIGNoYXJhY3RlciBsb25nLicpXHJcbiAgICAubWF4KDE5MSwgJ0FuIGVudW1lcmF0aW9uIHZhbHVlIG1heSBub3QgZXhjZWVkIDE5MSBjaGFyYWN0ZXJzLicpXHJcbiAgICAubWF0Y2hlcygvXltBLVpdW2EtekEtWjAtOV9dKiQvLCAnQW4gZW51bWVyYXRpb24gdmFsdWUgbWF5IG9ubHkgc3RhcnQgd2l0aCBhbiB1cHBlcmNhc2UgbGV0dGVyIGFuZCBjb250YWluIGFscGhhbnVtZXJpYyBjaGFyYWN0ZXJzIGFuZCB1bmRlcnNjb3JlcyBvbmx5LicpO1xyXG4vKipcclxuICogQ29udmVuaWVuY2Ugc2NoZW1hIGZvciB2YWxpZGF0aW5nIHRoZSB2YWx1ZXMgZmllbGQgb2YgYW4gZW51bS5cclxuICovXHJcbmV4cG9ydCB2YXIgdmFsdWVzID0geXVwXHJcbiAgICAuYXJyYXkoKVxyXG4gICAgLm9mKHZhbHVlKVxyXG4gICAgLnJlcXVpcmVkKCdBbiBlbnVtZXJhdGlvbiBtdXN0IGNvbnRhaW4gYXQgbGVhc3Qgb25lIHZhbHVlLicpO1xyXG4iXX0= | ||
@@ -123,9 +80,10 @@ | ||
displayName: displayName$2, | ||
value: value | ||
value: value, | ||
values: values | ||
}); | ||
var name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1).max(32).matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, and _ .'); | ||
var name = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a stage may only be a non-empty string!').trim('The name of a stage may not start or end with whitespace characters!').min(1, 'The name of a stage must be at least one character long.').max(32, 'The name of a stage may not exceed 32 characters.').matches(new RegExp('^[a-zA-Z][a-zA-Z0-9\\-_]*$'), 'Stage names may only start with a letter and can contain alphanumeric characters, "-", and "_".'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YWdlLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsT0FBTyxHQUFBLENBQUksT0FBTyxHQUFBLENBQ2IsTUFEYSxFQUFBLENBRWIsU0FGYSxDQUVILHdGQUZHLENBR2IsTUFIYSxDQUdOLEtBSE0sQ0FJYixRQUphLENBSUosc0RBSkksQ0FLYixJQUxhLENBS1IsdUVBTFEsQ0FNYixHQU5hLENBTVQsRUFOUyxDQU9iLEdBUGEsQ0FPVCxHQVBTLENBVWIsT0FWYSxDQVVMLElBQUksTUFBSixDQUFXLCtCQUErQjtBQVh2RCIsImZpbGUiOiJzdGFnZS50cyhvcmlnaW5hbCkiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyB5dXAgZnJvbSAneXVwJztcclxuZXhwb3J0IHZhciBuYW1lID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKCdUaGUgbmFtZSBvZiBhIHN0YWdlIG1heSBvbmx5IGJlIGEgbm9uLWVtcHR5IHN0cmluZyEnKVxyXG4gICAgLnRyaW0oJ1RoZSBuYW1lIG9mIGEgc3RhZ2UgbWF5IG5vdCB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bHBoYW51bWVyaWMgY2hhcmFjdGVycywgXCItXCIsIGFuZCBcIl9cIi4nKTtcclxuIl19 | ||
@@ -138,4 +96,4 @@ | ||
var API_REGIONS = ['EU_WEST_1','US_EAST_1']; | ||
var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty or undefined!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var name$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a project can not be empty.'); | ||
var region = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The region of a project can not be empty!').oneOf(API_REGIONS, 'The region can only be one of these values: ${values}'); | ||
var description$2 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'); | ||
@@ -147,3 +105,3 @@ 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 token = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).min(1).required('The name of a project can not be empty or undefined!'); | ||
var token = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('A token can not be empty!'); | ||
var customPrisma = { | ||
@@ -155,3 +113,3 @@ url: url, | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3QudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEdBQUEsQ0FBSSxjQUFjLENBQUM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ludCBtdXN0IGJlIGEgdmFsaWQgdXJsIScpXHJcbiAgICAudGVzdCgnbm8tZW5kLXdpdGgtbWFuYWdlbWVudCcsICdUaGUgY3VzdG9tIHByaXNtYSBlbmRwb2ludCBtYXkgbm90IGVuZCB3aXRoIFwiL21hbmFnZW1lbnRcIicsIGZ1bmN0aW9uICh2YWx1ZSkge1xyXG4gICAgaWYgKCF2YWx1ZSlcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICByZXR1cm4gIXZhbHVlLmVuZHNXaXRoKCcvbWFuYWdlbWVudCcpO1xyXG59KTtcclxudmFyIHRva2VuID0geXVwXHJcbiAgICAuc3RyaW5nKClcclxuICAgIC50eXBlRXJyb3IoJ1RoZSBzdXBwbGllZCB2YWx1ZSBcIiR7dmFsdWV9XCIgb2YgdHlwZSBcIiR7dHlwZX1cIiBpcyBub3QgY29tcGF0aWJsZSB3aXRoIHR5cGUgXCJzdHJpbmdcIiEnKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLnJlcXVpcmVkKCdBIHRva2VuIGNhbiBub3QgYmUgZW1wdHkhJyk7XHJcbmV4cG9ydCB2YXIgY3VzdG9tUHJpc21hID0geyB1cmw6IHVybCwgdG9rZW46IHRva2VuIH07XHJcbiJdfQ== | ||
@@ -167,6 +125,6 @@ | ||
var name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1).max(32); | ||
var name$2 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('The name of a role may only be a non-empty string!').trim('The name of a role may not start or end with whitespace characters!').min(1, 'The name of a role must be at least one character long.').max(32, 'The name of a role may not exceed 32 characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJvbGUudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWF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d0ZBRkcsQ0FHYixNQUhhLENBR04sS0FITSxDQUliLFFBSmEsQ0FJSixxREFKSSxDQUtiLElBTGEsQ0FLUixzRUFMUSxDQU1iLEdBTmEsQ0FNVCxHQUFHLDBEQU5NLENBT2IsR0FQYSxDQU9ULElBQUk7QUFSYiIsImZpbGUiOiJyb2xlLnRzKG9yaWdpbmFsKSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIHl1cCBmcm9tICd5dXAnO1xyXG5leHBvcnQgdmFyIG5hbWUgPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAucmVxdWlyZWQoJ1RoZSBuYW1lIG9mIGEgcm9sZSBtYXkgb25seSBiZSBhIG5vbi1lbXB0eSBzdHJpbmchJylcclxuICAgIC50cmltKCdUaGUgbmFtZSBvZiBhIHJvbGUgbWF5IG5vdCBzdGFydCBvciBlbmQgd2l0aCB3aGl0ZXNwYWNlIGNoYXJhY3RlcnMhJylcclxuICAgIC5taW4oMSwgJ1RoZSBuYW1lIG9mIGEgcm9sZSBtdXN0IGJlIGF0IGxlYXN0IG9uZSBjaGFyYWN0ZXIgbG9uZy4nKVxyXG4gICAgLm1heCgzMiwgJ1RoZSBuYW1lIG9mIGEgcm9sZSBtYXkgbm90IGV4Y2VlZCAzMiBjaGFyYWN0ZXJzLicpO1xyXG4iXX0= | ||
@@ -173,0 +131,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"main": "dist/validation.js", | ||
@@ -32,8 +32,7 @@ "types": "dist/index.d.ts", | ||
"scripts": { | ||
"prepublish": "npm run format && npm run test && npm run build", | ||
"format": "prettier \"src/*.*\" --write", | ||
"test": "jest", | ||
"build": "microbundle --target browser --compress false", | ||
"dev": "microbundle watch", | ||
"test": "jest", | ||
"prepare": "jest", | ||
"prepublish": "npm run format && npm run test && npm run build", | ||
"format": "prettier \"src/*.*\" --write" | ||
"dev": "microbundle watch" | ||
}, | ||
@@ -40,0 +39,0 @@ "devDependencies": { |
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
476642
694