@graphcms/validation
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -22,3 +22,4 @@ var yup = require('yup'); | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -25,0 +26,0 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); |
@@ -22,3 +22,4 @@ import { string, boolean } from 'yup'; | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -29,3 +30,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FBQyxLQUFNLE9BQVEsU0FBVSxTQUFVLFFBQVM7QUFDN0UsR0FBQSxDQUFJLDhCQUE4QixDQUFDLEtBQU0sWUFBYSxZQUFhLFVBQVc7QUFDOUUsT0FBTyxHQUFBLENBQUksc0JBQXNCLENBQUMsT0FBRCxDQUFTLE1BQVQsQ0FBZ0I7Q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AgICdtdXRhdGlvbicsXHJcbiAgICAnc3Vic2NyaXB0aW9uJyxcclxuICAgICdzY2FsYXInLFxyXG4gICAgJ3F1ZXJ5JyxcclxuICAgICdpbnB1dCcsXHJcbiAgICAnbm9kZScsXHJcbl07XHJcbnZhciByZXNlcnZlZE5vblN5c3RlbVR5cGVOYW1lcyA9IFsnSWQnLCAnVXNlcicsICdTZWFyY2gnLCAnU3RhdHVzJywgJ0NvbG9yJywgJ0xvY2FsZSddO1xyXG52YXIgcmVzZXJ2ZWROb25TeXN0ZW1GaWVsZE5hbWVzID0gWydpZCcsICdjcmVhdGVkYXQnLCAndXBkYXRlZGF0JywgJ3ZlcnNpb25zJywgJ3B1Ymxpc2hlZGF0JywgJ2NyZWF0ZWRieSddO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkTW9kZWxBcGlJZHMgPSBbJ1R5cGUnXS5jb25jYXQocmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXMpO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkRW51bWVyYXRpb25BcGlJZHMgPSBbJ1R5cGUnXS5jb25jYXQocmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXMpO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkRmllbGRBcGlJZHMgPSByZXNlcnZlZE5vblN5c3RlbUZpZWxkTmFtZXM7XHJcbiJdfQ== | ||
@@ -32,0 +33,0 @@ var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').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({ |
@@ -26,3 +26,4 @@ (function (global, factory) { | ||
var reservedNonSystemTypeNames = ['Id','User','Search','Status','Color','Locale']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','history','versions']; | ||
var reservedNonSystemFieldNames = ['id','createdat','updatedat','versions','publishedat', | ||
'createdby']; | ||
var reservedModelApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
@@ -33,3 +34,3 @@ var reservedEnumerationApiIds = ['Type'].concat(reservedNonSystemTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBQSxDQUFJLG1CQUFtQixDQUMxQixNQUNBLFFBQ0EsU0FDQSxVQUNBLE9BQ0E7SUFDQSxRQUNBLFdBQ0EsV0FDQSxPQUNBLFdBQ0EsZUFDQSxTQUNBO0lBQ0EsUUFDQTtBQUVKLEdBQUEsQ0FBSSw2QkFBNkIsQ0FBQyxLQUFNLE9BQVEsU0FBVSxTQUFVLFFBQVM7QUFDN0UsR0FBQSxDQUFJLDhCQUE4QixDQUFDLEtBQU0sWUFBYSxZQUFhLFVBQVc7QUFDOUUsT0FBTyxHQUFBLENBQUksc0JBQXNCLENBQUMsT0FBRCxDQUFTLE1BQVQsQ0FBZ0I7QUFDakQsT0FBTyxHQUFBLENBQUksNEJBQTRCLENBQUMsT0FBRCxDQUFTLE1BQVQsQ0FBZ0I7QUFDdkQsT0FBTyxHQUFBLENBQUksc0JBQXNCO0FBdEJqQyIsImZpbGUiOiJyZXNlcnZlZFdvcmRzLnRzKG9yaWdpbmFsKSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB2YXIgZ3JhcGhRbFR5cGVOYW1lcyA9IFtcclxuICAgICdpbnQnLFxyXG4gICAgJ2Zsb2F0JyxcclxuICAgICdzdHJpbmcnLFxyXG4gICAgJ2Jvb2xlYW4nLFxyXG4gICAgJ2VudW0nLFxyXG4gICAgJ2ludGVyZmFjZScsXHJcbiAgICAndW5pb24nLFxyXG4gICAgJ2ZyYWdtZW50JyxcclxuICAgICdkYXRldGltZScsXHJcbiAgICAnanNvbicsXHJcbiAgICAnbXV0YXRpb24nLFxyXG4gICAgJ3N1YnNjcmlwdGlvbicsXHJcbiAgICAnc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xyXG5leHBvcnQgdmFyIHJlc2VydmVkRW51bWVyYXRpb25BcGlJZHMgPSBbJ1R5cGUnXS5jb25jYXQocmVzZXJ2ZWROb25TeXN0ZW1UeXBlTmFtZXMpO1xyXG5leHBvcnQgdmFyIHJlc2VydmVkRmllbGRBcGlJZHMgPSByZXNlcnZlZE5vblN5c3RlbUZpZWxkTmFtZXM7XHJcbiJdfQ== | ||
@@ -36,0 +37,0 @@ var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').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": "@graphcms/validation", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"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
584008
1079