Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphcms/validation

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphcms/validation - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

.rpt2_cache/aa929786e4528aadb3032758a1dc8bed8da0d1ea/types/cache/02771552fb18fd071c9894daa4fa4f8527bbe2df

146

dist/validation.js

@@ -1,2 +0,146 @@

var e=require("yup");var t={apiId:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a model may not be "undefined" or an empty string!'),description:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var r={apiId:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/^[a-z].*$/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[a-z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>!(!e||"string"!=typeof e)&&e.replace(" ","").length>0),description:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var i={apiId:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec"),displayName:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'),value:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec")};var a={name:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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 wihtespace characters!").min(1).max(32).test("no-reserved","The name of a stage may not contain reserved URL characters! (${path})",e=>{if(void 0===e)return!1;if(null===e)return!1;if("string"!=typeof e)return!1;const t=e.match(/^[\w\~\.\-]+$/);return Boolean(t)})};const n=["EU_WEST_1","US_EAST_1"];var p={API_REGIONS:n,name:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!"),region:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The region of a project can not be empty or undefined!").oneOf(n,"The region can only be one of these values: ${values}"),description:e.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'),customPrisma:{url:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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-cluster",'The custom prisma endpoint may not end with "/cluster"',e=>!!e&&!e.endsWith("/cluster")),token:e.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!")}};exports.model=t,exports.field=r,exports.enumeration=i,exports.stage=a,exports.project=p;
var yup = require('yup');
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const description = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure();
var model = ({
apiId: apiId,
displayName: displayName,
description: description
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/^[a-z].*$/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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', value => {
if (value && typeof value === 'string') {
return value.replace(' ', '').length > 0;
}
return false;
});
const description$1 = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure();
var field = ({
apiId: apiId$1,
displayName: displayName$1,
description: description$1
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
var enumeration = ({
apiId: apiId$2,
displayName: displayName$2,
value: value
});
const 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 wihtespace characters!').min(1).max(32).test('no-reserved', 'The name of a stage may not contain reserved URL characters! (${path})', value => {
if (value === undefined)
return false;
if (value === null)
return false;
if (typeof value !== 'string')
return false;
const pattern = /^[\w\~\.\-]+$/;
const testResult = value.match(pattern);
return Boolean(testResult);
});
var stage = ({
name: name
});
const API_REGIONS = ['EU_WEST_1','US_EAST_1'];
const 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!');
const 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}');
const description$2 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
const 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-cluster', 'The custom prisma endpoint may not end with "/cluster"', value => {
if (!value)
return false;
return !value.endsWith('/cluster');
});
const 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!');
const customPrisma = {
url,
token
};
var project = ({
API_REGIONS: API_REGIONS,
name: name$1,
region: region,
description: description$2,
customPrisma: customPrisma
});
exports.model = model;
exports.field = field;
exports.enumeration = enumeration;
exports.stage = stage;
exports.project = project;
//# sourceMappingURL=validation.js.map

@@ -1,2 +0,144 @@

import{string as e}from"yup";var t={apiId:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a model may not be "undefined" or an empty string!'),description:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var r={apiId:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/^[a-z].*$/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[a-z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>!(!e||"string"!=typeof e)&&e.replace(" ","").length>0),description:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var a={apiId:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec"),displayName:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'),value:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec")};var i={name:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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 wihtespace characters!").min(1).max(32).test("no-reserved","The name of a stage may not contain reserved URL characters! (${path})",e=>{if(void 0===e)return!1;if(null===e)return!1;if("string"!=typeof e)return!1;const t=e.match(/^[\w\~\.\-]+$/);return Boolean(t)})};const p=["EU_WEST_1","US_EAST_1"];var n={API_REGIONS:p,name:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!"),region:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The region of a project can not be empty or undefined!").oneOf(p,"The region can only be one of these values: ${values}"),description:e().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'),customPrisma:{url:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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-cluster",'The custom prisma endpoint may not end with "/cluster"',e=>!!e&&!e.endsWith("/cluster")),token:e().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!")}};export{t as model,r as field,a as enumeration,i as stage,n as project};
import { string } from 'yup';
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFhckIsT0FBTyxLQUFBLENBQU0sUUFBUSxHQUFBLENBQ2hCLE1BRGdCLEVBQUEsQ0FFaEIsU0FGZ0IsQ0FFTix3RkFGTSxDQUdoQixNQUhnQixDQUdULEtBSFMsQ0FJaEIsR0FKZ0IsQ0FJWixFQUpZLENBS2hCLEdBTGdCLENBS1osR0FMWSxDQU1oQixRQU5nQixDQU1QLGtFQU5PLENBT2hCLElBUGdCLENBT1gsbUJBQW1CLHlDQUEwQyxLQUFELElBQVc7SUFDN0UsSUFBSSxLQUFBLENBQUEsRUFBQSxDQUFTLE1BQUEsQ0FBTyxLQUFQLENBQUEsR0FBQSxDQUFpQixRQUExQixDQUFBLEVBQUEsQ0FBc0MsS0FBQSxDQUFNLE1BQU4sQ0FBQSxFQUFBLENBQWdCLEdBQUc7UUFDekQsS0FBQSxDQUFNLFFBQVEsS0FBQSxDQUFNO1FBQ3BCLE9BQU8sTUFBQSxDQUFPLFFBQVAsQ0FBZ0IsSUFBaEIsQ0FBcUI7SUFDcEM7SUFDSSxPQUFPO0FBQ1gsRUFicUIsQ0FjaEIsSUFkZ0IsQ0FjWCxpQkFBaUIsaURBQWtELEtBQUQsSUFBVztJQUNuRixJQUFJLEtBQUEsQ0FBQSxFQUFBLENBQVMs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BzdHJpbmdzIGNhbiBiZSB2YWxpZGF0ZWQgd2l0aCBzdWNjZXNzXHJcbiAqIC50eXBlRXJyb3IoOnN0cmluZyktPiBFbnN1cmVzIHRoYXQgdHlwZXMgb3RoZXIgdGhhbiBzdHJpbmcgcmV0dXJuIGZhbHNlXHJcbiAqIC5lbnN1cmUoKSAgICAgICAgICAtPiBUcmFuc2Zvcm1zIHRoZSB2YWx1ZXMgXCJ1bmRlZmluZWRcIiBhbmQgXCJudWxsXCIgaW50byBlbXB0eSBzdHJpbmdzXHJcbiAqL1xyXG5leHBvcnQgY29uc3QgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ==
var model = ({
apiId: apiId,
displayName: displayName,
description: description
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/^[a-z].*$/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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', value => {
if (value && typeof value === 'string') {
return value.replace(' ', '').length > 0;
}
return false;
});
const description$1 = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').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Cgnbm8tbGV0dGVyJywgJyR7cGF0aH0gc2hvdWxkIGNvbnRhaW4gYXQgbGVhc3Qgb25lIG5vbi13aGl0ZXNwYWNlIGNoYXJhY3RlcicsICh2YWx1ZSkgPT4ge1xyXG4gICAgaWYgKHZhbHVlICYmIHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycpIHtcclxuICAgICAgICByZXR1cm4gdmFsdWUucmVwbGFjZSgnICcsICcnKS5sZW5ndGggPiAwO1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIGZhbHNlO1xyXG59KTtcclxuLyoqXHJcbiAqIE1hdGNoZXIgZm9yIG1vZGVsIGRlc2NyaXB0aW9uczpcclxuICpcclxuICogLnN0cmluZygpICAgICAgICAgIC0+IEVuc3VyZXMgdGhhdCBvbmx5IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCBjb25zdCBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19
var field = ({
apiId: apiId$1,
displayName: displayName$1,
description: description$1
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFhckIsT0FBTyxLQUFBLENBQU0sUUFBUSxHQUFBLENBQ2hCLE1BRGdCLEVBQUEsQ0FFaEIsU0FGZ0IsQ0FFTix3RkFGTSxDQUdoQixNQUhnQixDQUdULEtBSFMsQ0FJaEIsR0FKZ0IsQ0FJWixFQUpZLENBS2hCLEdBTGdCLENBS1osR0FMWSxDQU1oQixRQU5nQixDQU1QLHlFQU5PLENBT2hCLElBUGdCLENBT1gsbUJBQW1CLHlDQUEwQyxLQUFELElBQVc7SUFDN0UsSUFBSSxLQUFBLENBQUEsRUFBQSxDQUFTLE1BQUEsQ0FBTyxL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2IvbWFzdGVyL3NlcnZlci9zZXJ2ZXJzL2RlcGxveS9zcmMvbWFpbi9zY2FsYS9jb20vcHJpc21hL2RlcGxveS92YWxpZGF0aW9uL05hbWVDb25zdHJhaW50cy5zY2FsYVxyXG4gICAgLm1hdGNoZXMoL15bQS1aXVthLXpBLVowLTlfXSokLywgJyR7cGF0aH0gZG9lcyBub3QgbWF0Y2ggR3JhcGhRTCBzcGVjJyk7XHJcbiJdfQ==
var enumeration = ({
apiId: apiId$2,
displayName: displayName$2,
value: value
});
const 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 wihtespace characters!').min(1).max(32).test('no-reserved', 'The name of a stage may not contain reserved URL characters! (${path})', value => {
if (value === undefined)
return false;
if (value === null)
return false;
if (typeof value !== 'string')
return false;
const pattern = /^[\w\~\.\-]+$/;
const testResult = value.match(pattern);
return Boolean(testResult);
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YWdlLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsT0FBTyxLQUFBLENBQU0sT0FBTyxHQUFBLENBQ2YsTUFEZSxFQUFBLENBRWYsU0FGZSxDQUVMLHdGQUZLLENBR2YsTUFIZSxDQUdSLEtBSFEsQ0FJZixRQUplLENBSU4sc0RBSk0sQ0FLZixJQUxlLENBS1YsdUVBTFUsQ0FNZixHQU5lLENBTVgsRUFOVyxDQU9mLEdBUGUsQ0FPWCxHQVBXLENBUWYsSUFSZSxDQVFWLGVBQWUsMEVBQTJFLEtBQUQsSUFBVztJQUMxRyxJQUFJLEtBQUEsQ0FBQSxHQUFBLENBQVU7UUFDVixPQUFPO0lBQ1gsSUFBSSxLQUFBLENBQUEsR0FBQSxDQUFVO1FBQ1YsT0FBTztJQUNYLElBQUksTUFBQSxD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E9PSAnc3RyaW5nJylcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICBjb25zdCBwYXR0ZXJuID0gL15bXFx3XFx+XFwuXFwtXSskLztcclxuICAgIGNvbnN0IHRlc3RSZXN1bHQgPSB2YWx1ZS5tYXRjaChwYXR0ZXJuKTtcclxuICAgIHJldHVybiBCb29sZWFuKHRlc3RSZXN1bHQpO1xyXG59KTtcclxuIl19
var stage = ({
name: name
});
const API_REGIONS = ['EU_WEST_1','US_EAST_1'];
const 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!');
const 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}');
const description$2 = string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
const 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-cluster', 'The custom prisma endpoint may not end with "/cluster"', value => {
if (!value)
return false;
return !value.endsWith('/cluster');
});
const 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!');
const customPrisma = {
url,
token
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3QudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFlBQVksU0FBUztBQUNyQixPQUFPLEtBQUEsQ0FBTSxjQUFjLENBQUMsWUFBYTtBQUN6QyxPQUFPLEtBQUEsQ0FBTSxPQUFPLEdBQUEsQ0FDZixNQURlLEVBQUEsQ0FFZixTQUZlLENBRUwsd0ZBRkssQ0FHZixNQUhlLENBR1IsS0FIUSxDQUlmLEdBSmU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IGVtcHR5IG9yIHVuZGVmaW5lZCEnKTtcclxuZXhwb3J0IGNvbnN0IGN1c3RvbVByaXNtYSA9IHsgdXJsLCB0b2tlbiB9O1xyXG4iXX0=
var project = ({
API_REGIONS: API_REGIONS,
name: name$1,
region: region,
description: description$2,
customPrisma: customPrisma
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFdBQVc7QUFDdkIsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksaUJBQWlCO0FBQzdCLFlBQVksV0FBVztBQUN2QixZQUFZLGFBQWE7QUFDekIsT0FBQSxDQUFTLE9BQU8sT0FBTyxhQUFhLE9BQU87QUFMM0MiLCJmaWxlIjoiaW5kZXgudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuZXhwb3J0IHsgbW9kZWwsIGZpZWxkLCBlbnVtZXJhdGlvbiwgc3RhZ2UsIHByb2plY3QgfTtcclxuIl19
export { model, field, enumeration, stage, project };
//# sourceMappingURL=validation.m.js.map

@@ -1,2 +0,154 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("yup")):"function"==typeof define&&define.amd?define(["exports","yup"],t):t(e.validation={},e.yup)}(this,function(e,t){var r={apiId:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a model may not be "undefined" or an empty string!'),description:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var i={apiId:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/^[a-z].*$/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[a-z][a-zA-Z0-9]*$/,"${path} does not match GraphQL spec"),displayName:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>!(!e||"string"!=typeof e)&&e.replace(" ","").length>0),description:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').ensure()};var n={apiId:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec"),displayName:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).trim().required('The display name of a enumeration may not be "undefined" or an empty string!'),value:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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",e=>{if(e&&"string"==typeof e&&e.length>=1){const t=e[0];return RegExp(/[A-Z]/).test(t)}return!1}).test("no-whitespace","${path} should not have whitespace characters",e=>!(!e||"string"!=typeof e)&&e.replace(" ","")===e).matches(/^[A-Z][a-zA-Z0-9_]*$/,"${path} does not match GraphQL spec")};var a={name:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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 wihtespace characters!").min(1).max(32).test("no-reserved","The name of a stage may not contain reserved URL characters! (${path})",e=>{if(void 0===e)return!1;if(null===e)return!1;if("string"!=typeof e)return!1;const t=e.match(/^[\w\~\.\-]+$/);return Boolean(t)})};const p=["EU_WEST_1","US_EAST_1"];var s={API_REGIONS:p,name:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!"),region:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The region of a project can not be empty or undefined!").oneOf(p,"The region can only be one of these values: ${values}"),description:t.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!'),customPrisma:{url:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).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-cluster",'The custom prisma endpoint may not end with "/cluster"',e=>!!e&&!e.endsWith("/cluster")),token:t.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(!0).min(1).required("The name of a project can not be empty or undefined!")}};e.model=r,e.field=i,e.enumeration=n,e.stage=a,e.project=s});
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('yup')) :
typeof define === 'function' && define.amd ? define(['exports', 'yup'], factory) :
(factory((global.validation = {}),global.yup));
}(this, (function (exports,yup) {
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFhckIsT0FBTyxLQUFBLENBQU0sUUFBUSxHQUFBLENBQ2hCLE1BRGdCLEVBQUEsQ0FFaEIsU0FGZ0IsQ0FFTix3RkFGTSxDQUdoQixNQUhnQixDQUdULEtBSFMsQ0FJaEIsR0FKZ0IsQ0FJWixFQUpZLENBS2hCLEdBTGdCLENBS1osR0FMWSxDQU1oQixRQU5nQixDQU1QLGtFQU5PLENBT2hCLElBUGdCLENBT1gsbUJBQW1CLHlDQUEwQyxLQUFELElBQVc7SUFDN0UsSUFBSSxLQUFBLENBQUEsRUFBQSxDQUFTLE1BQUEsQ0FBTyxLQUFQLENBQUEsR0FBQSxDQUFpQixRQUExQixDQUFB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ic3RyaW5nXCIhJylcclxuICAgIC5zdHJpY3QodHJ1ZSlcclxuICAgIC50cmltKClcclxuICAgIC5yZXF1aXJlZCgnVGhlIGRpc3BsYXkgbmFtZSBvZiBhIG1vZGVsIG1heSBub3QgYmUgXCJ1bmRlZmluZWRcIiBvciBhbiBlbXB0eSBzdHJpbmchJyk7XHJcbi8qKlxyXG4gKiBNYXRjaGVyIGZvciBtb2RlbCBkZXNjcmlwdGlvbnM6XHJcbiAqXHJcbiAqIC5zdHJpbmcoKSAgICAgICAgICAtPiBFbnN1cmVzIHRoYXQgb25seSBzdHJpbmdzIGNhbiBiZSB2YWxpZGF0ZWQgd2l0aCBzdWNjZXNzXHJcbiAqIC50eXBlRXJyb3IoOnN0cmluZyktPiBFbnN1cmVzIHRoYXQgdHlwZXMgb3RoZXIgdGhhbiBzdHJpbmcgcmV0dXJuIGZhbHNlXHJcbiAqIC5lbnN1cmUoKSAgICAgICAgICAtPiBUcmFuc2Zvcm1zIHRoZSB2YWx1ZXMgXCJ1bmRlZmluZWRcIiBhbmQgXCJudWxsXCIgaW50byBlbXB0eSBzdHJpbmdzXHJcbiAqL1xyXG5leHBvcnQgY29uc3QgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ==
var model = ({
apiId: apiId,
displayName: displayName,
description: description
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/^[a-z].*$/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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', value => {
if (value && typeof value === 'string') {
return value.replace(' ', '').length > 0;
}
return false;
});
const description$1 = 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFhckIsT0FBTyxLQUFBLENBQU0sUUFBUSxHQUFBLENBQ2hCLE1BRGdCLEVBQUEsQ0FFaEIsU0FGZ0IsQ0FFTix3RkFGTSxDQUdoQixNQUhnQixDQUdULEtBSFMsQ0FJaEIsUUFKZ0IsQ0FJUCxrRUFKTyxDQUtoQixHQUxnQixDQUtaLEVBTFksQ0FNaEIsR0FOZ0IsQ0FNWixHQU5ZLENBT2hCLElBUGdCLENBT1gsbUJBQW1CLHlDQUEwQyxLQUFELElBQVc7SUFDN0UsSUFBSSxLQUFBLENBQUEsRUFBQSxDQUFTLE1BQUEsQ0FBTyxLQUFQLENBQUEsR0FBQSxDQUFpQixRQUExQixDQUFBLEVBQUEsQ0FBc0MsS0FBQSxDQUFNLE1BQU4sQ0FBQSxFQUFBLENBQWdCLEdBQUc7UUFDekQsS0FBQSxDQUFNLFFBQVEsS0FBQSxDQUFNO1FBQ3BCLE9BQU8sTUFBQSxDQUFPLFlBQVAsQ0FBb0IsSUFBcEIsQ0FBeUI7SUFDeEM7SUFDSSxPQUFPO0FBQ1gsRUFicUIsQ0FjaEIsSUFkZ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lvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19
var field = ({
apiId: apiId$1,
displayName: displayName$1,
description: description$1
});
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
const 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!');
const 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', value => {
if (value && typeof value === 'string' && value.length >= 1) {
const first = value[0];
return RegExp(/[A-Z]/).test(first);
}
return false;
}).test('no-whitespace', '${path} should not have whitespace characters', 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');
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNB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A9PiB7XHJcbiAgICBpZiAodmFsdWUgJiYgdHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJykge1xyXG4gICAgICAgIHJldHVybiB2YWx1ZS5yZXBsYWNlKCcgJywgJycpID09PSB2YWx1ZTtcclxuICAgIH1cclxuICAgIHJldHVybiBmYWxzZTtcclxufSlcclxuICAgIC8vIGVzY2FwZSBoYXRjaDogVGhvc2UgYXJlIHZhbGlkYXRpb25zIGVuZm9yY2VkIGJ5IHByaXNtYTpcclxuICAgIC8vIGh0dHBzOi8vZ2l0aHViLmNvbS9ncmFwaGNvb2wvcHJpc21hL2Jsb2IvbWFzdGVyL3NlcnZlci9zZXJ2ZXJzL2RlcGxveS9zcmMvbWFpbi9zY2FsYS9jb20vcHJpc21hL2RlcGxveS92YWxpZGF0aW9uL05hbWVDb25zdHJhaW50cy5zY2FsYVxyXG4gICAgLm1hdGNoZXMoL15bQS1aXVthLXpBLVowLTlfXSokLywgJyR7cGF0aH0gZG9lcyBub3QgbWF0Y2ggR3JhcGhRTCBzcGVjJyk7XHJcbiJdfQ==
var enumeration = ({
apiId: apiId$2,
displayName: displayName$2,
value: value
});
const 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 wihtespace characters!').min(1).max(32).test('no-reserved', 'The name of a stage may not contain reserved URL characters! (${path})', value => {
if (value === undefined)
return false;
if (value === null)
return false;
if (typeof value !== 'string')
return false;
const pattern = /^[\w\~\.\-]+$/;
const testResult = value.match(pattern);
return Boolean(testResult);
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YWdlLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsT0FBTyxLQUFBLENBQU0sT0FBTyxHQUFBLENBQ2YsTUFEZSxFQUFBLENBRWYsU0FGZSx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AgICAubWF4KDMyKVxyXG4gICAgLnRlc3QoJ25vLXJlc2VydmVkJywgJ1RoZSBuYW1lIG9mIGEgc3RhZ2UgbWF5IG5vdCBjb250YWluIHJlc2VydmVkIFVSTCBjaGFyYWN0ZXJzISAoJHtwYXRofSknLCAodmFsdWUpID0+IHtcclxuICAgIGlmICh2YWx1ZSA9PT0gdW5kZWZpbmVkKVxyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIGlmICh2YWx1ZSA9PT0gbnVsbClcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICBpZiAodHlwZW9mIHZhbHVlICE9PSAnc3RyaW5nJylcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICBjb25zdCBwYXR0ZXJuID0gL15bXFx3XFx+XFwuXFwtXSskLztcclxuICAgIGNvbnN0IHRlc3RSZXN1bHQgPSB2YWx1ZS5tYXRjaChwYXR0ZXJuKTtcclxuICAgIHJldHVybiBCb29sZWFuKHRlc3RSZXN1bHQpO1xyXG59KTtcclxuIl19
var stage = ({
name: name
});
const API_REGIONS = ['EU_WEST_1','US_EAST_1'];
const 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!');
const 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}');
const description$2 = yup.string().ensure().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!');
const 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-cluster', 'The custom prisma endpoint may not end with "/cluster"', value => {
if (!value)
return false;
return !value.endsWith('/cluster');
});
const 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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mVuZHNXaXRoKCcvY2x1c3RlcicpO1xyXG59KTtcclxuY29uc3QgdG9rZW4gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuc3RyaWN0KHRydWUpXHJcbiAgICAubWluKDEpXHJcbiAgICAucmVxdWlyZWQoJ1RoZSBuYW1lIG9mIGEgcHJvamVjdCBjYW4gbm90IGJlIGVtcHR5IG9yIHVuZGVmaW5lZCEnKTtcclxuZXhwb3J0IGNvbnN0IGN1c3RvbVByaXNtYSA9IHsgdXJsLCB0b2tlbiB9O1xyXG4iXX0=
var project = ({
API_REGIONS: API_REGIONS,
name: name$1,
region: region,
description: description$2,
customPrisma: customPrisma
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFdBQVc7QUFDdkIsWUFBWSxXQUFXO0FBQ3ZCLFlBQVksaUJBQWlCO0FBQzdCLFlBQVksV0FBVztBQUN2QixZQUFZLGFBQWE7QUFDekIsT0FBQSxDQUFTLE9BQU8sT0FBTyxhQUFhLE9BQU87QUFMM0MiLCJmaWxlIjoiaW5kZXgudHMob3JpZ2luYWwpIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgbW9kZWwgZnJvbSAnLi9tb2RlbCc7XHJcbmltcG9ydCAqIGFzIGZpZWxkIGZyb20gJy4vZmllbGQnO1xyXG5pbXBvcnQgKiBhcyBlbnVtZXJhdGlvbiBmcm9tICcuL2VudW1lcmF0aW9uJztcclxuaW1wb3J0ICogYXMgc3RhZ2UgZnJvbSAnLi9zdGFnZSc7XHJcbmltcG9ydCAqIGFzIHByb2plY3QgZnJvbSAnLi9wcm9qZWN0JztcclxuZXhwb3J0IHsgbW9kZWwsIGZpZWxkLCBlbnVtZXJhdGlvbiwgc3RhZ2UsIHByb2plY3QgfTtcclxuIl19
exports.model = model;
exports.field = field;
exports.enumeration = enumeration;
exports.stage = stage;
exports.project = project;
})));
//# sourceMappingURL=validation.umd.js.map

6

package.json
{
"name": "@graphcms/validation",
"version": "1.0.10",
"version": "1.0.11",
"main": "dist/validation.js",

@@ -32,7 +32,7 @@ "types": "dist/index.d.ts",

"scripts": {
"build": "microbundle --target browser",
"build": "microbundle --target browser --compress false",
"dev": "microbundle watch",
"test": "jest",
"prepare": "jest",
"prepublish": "npm run format && npm run test && microbundle --target browser",
"prepublish": "npm run format && npm run test && npm run build",
"format": "prettier \"src/*.*\" --write"

@@ -39,0 +39,0 @@ },

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc