@graphql-inspector/core
Advanced tools
Comparing version 6.1.1-alpha-20240709085912-d424e76f78aef93ff6a196e7c3b0d6b3bb2ecb3a to 6.1.1-alpha-20240709140733-14f0611a4b9a4b998bc38ff5ccddf21c5d57d072
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.directiveUsageRemoved = exports.directiveUsageAdded = void 0; | ||
exports.directiveUsageArgumentInputValueDefinitionRemovedFromMeta = exports.directiveUsageArgumentInputValueDefinitionAddedFromMeta = exports.directiveUsageUnionMemberRemovedFromMeta = exports.directiveUsageUnionMemberAddedFromMeta = exports.directiveUsageSchemaRemovedFromMeta = exports.directiveUsageSchemaAddedFromMeta = exports.directiveUsageScalarRemovedFromMeta = exports.directiveUsageScalarAddedFromMeta = exports.directiveUsageObjectRemovedFromMeta = exports.directiveUsageObjectAddedFromMeta = exports.directiveUsageInterfaceRemovedFromMeta = exports.directiveUsageInterfaceAddedFromMeta = exports.directiveUsageInputObjectRemovedFromMeta = exports.directiveUsageInputObjectAddedFromMeta = exports.directiveUsageEnumValueRemovedFromMeta = exports.directiveUsageEnumValueAddedFromMeta = exports.directiveUsageEnumRemovedFromMeta = exports.directiveUsageEnumAddedFromMeta = exports.directiveUsageArgumentDefinitionRemovedFromMeta = exports.directiveUsageArgumentDefinitionAddedFromMeta = exports.directiveUsageFieldDefinitionRemovedFromMeta = exports.directiveUsageFieldDefinitionAddedFromMeta = exports.directiveUsageRemoved = exports.directiveUsageAdded = void 0; | ||
const graphql_1 = require("graphql"); | ||
@@ -26,9 +26,4 @@ const change_js_1 = require("./change.js"); | ||
if (isOfKind(kind, graphql_1.Kind.ARGUMENT, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to argument '${payload.argument.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to argument '${payload.argument.name}'`, | ||
meta: { | ||
@@ -40,18 +35,7 @@ argumentName: payload.argument.name, | ||
}, | ||
path: [ | ||
payload.type.name, | ||
payload.field.name, | ||
payload.argument.name, | ||
directive.name.value, | ||
].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INPUT_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to argument '${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to argument '${payload.field.name}'`, | ||
meta: { | ||
@@ -63,28 +47,19 @@ argumentName: payload.field.name, | ||
}, | ||
path: [payload.type.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INPUT_OBJECT_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInputObjectAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageInputObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to input object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to input object '${payload.name}'`, | ||
meta: { | ||
inputObjectName: payload.name, | ||
addedDirectiveName: directive.name.value, | ||
isAddedInputFieldTypeNullable: false, | ||
addedInputFieldName: '', | ||
addedInputFieldType: '', | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INTERFACE_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInterfaceAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageInterfaceAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to interface '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to interface '${payload.name}'`, | ||
meta: { | ||
@@ -94,13 +69,7 @@ interfaceName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.OBJECT, payload)) { | ||
return { | ||
return directiveUsageObjectAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to object '${payload.name}'`, | ||
meta: { | ||
@@ -110,13 +79,7 @@ objectName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.ENUM_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageEnumAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to enum '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to enum '${payload.name}'`, | ||
meta: { | ||
@@ -126,29 +89,17 @@ enumName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.FIELD_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageFieldDefinitionAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageFieldDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to field '${payload.parentType.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to field '${payload.parentType.name}.${payload.field.name}'`, | ||
meta: { | ||
addedDirectiveName: directive.name.value, | ||
fieldName: payload.field.name, | ||
typeName: payload.parentType.name, | ||
fieldName: payload.field.name, | ||
addedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.parentType.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.UNION_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageUnionMemberAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageUnionMemberAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to union member '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to union member '${payload.name}'`, | ||
meta: { | ||
@@ -159,13 +110,7 @@ unionName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.ENUM_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumValueAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageEnumValueAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to enum value '${payload.type.name}.${payload.value.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to enum value '${payload.type.name}.${payload.value.name}'`, | ||
meta: { | ||
@@ -176,13 +121,7 @@ enumName: payload.type.name, | ||
}, | ||
path: [payload.type.name, payload.value.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.SCHEMA_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageSchemaAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageSchemaAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to schema`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to schema`, | ||
meta: { | ||
@@ -192,13 +131,7 @@ addedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.getQueryType()?.name || '', directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.SCALAR_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageScalarAddedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageScalarAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to scalar '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to scalar '${payload.name}'`, | ||
meta: { | ||
@@ -208,4 +141,3 @@ scalarName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
@@ -217,9 +149,4 @@ return {}; | ||
if (isOfKind(kind, graphql_1.Kind.ARGUMENT, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from argument '${payload.type.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from argument '${payload.type.name}.${payload.field.name}'`, | ||
meta: { | ||
@@ -231,18 +158,7 @@ argumentName: payload.argument.name, | ||
}, | ||
path: [ | ||
payload.type.name, | ||
payload.field.name, | ||
payload.argument.name, | ||
directive.name.value, | ||
].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INPUT_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from input value '${payload.type.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from input value '${payload.type.name}.${payload.field.name}'`, | ||
meta: { | ||
@@ -254,28 +170,19 @@ argumentName: payload.field.name, | ||
}, | ||
path: [payload.type.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INPUT_OBJECT_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInputObjectRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageInputObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from input object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from input object '${payload.name}'`, | ||
meta: { | ||
inputObjectName: payload.name, | ||
removedDirectiveName: directive.name.value, | ||
isRemovedInputFieldTypeNullable: false, | ||
removedInputFieldName: '', | ||
removedInputFieldType: '', | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.INTERFACE_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInterfaceRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageInterfaceRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${directive.name.value}' was removed from interface '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from interface '${payload.name}'`, | ||
meta: { | ||
@@ -285,13 +192,7 @@ interfaceName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.OBJECT, payload)) { | ||
return { | ||
return directiveUsageObjectRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from object '${payload.name}'`, | ||
meta: { | ||
@@ -301,13 +202,7 @@ objectName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.ENUM_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageEnumRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from enum '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from enum '${payload.name}'`, | ||
meta: { | ||
@@ -317,29 +212,17 @@ enumName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.FIELD_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageFieldDefinitionRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageFieldDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from field '${payload.parentType.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from field '${payload.parentType.name}.${payload.field.name}'`, | ||
meta: { | ||
removedDirectiveName: directive.name.value, | ||
fieldName: payload.field.name, | ||
typeName: payload.parentType.name, | ||
fieldName: payload.field.name, | ||
removedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.parentType.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.UNION_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageUnionMemberRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageUnionMemberRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from union member '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from union member '${payload.name}'`, | ||
meta: { | ||
@@ -350,13 +233,7 @@ unionName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.ENUM_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumValueRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageEnumValueRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from enum value '${payload.type.name}.${payload.value.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from enum value '${payload.type.name}.${payload.value.name}'`, | ||
meta: { | ||
@@ -367,13 +244,7 @@ enumName: payload.type.name, | ||
}, | ||
path: [payload.type.name, payload.value.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.SCHEMA_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageSchemaRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageSchemaRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from schema`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from schema`, | ||
meta: { | ||
@@ -383,13 +254,7 @@ removedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.getQueryType()?.name || '', directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, graphql_1.Kind.SCALAR_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageScalarRemovedFromMeta({ | ||
type: change_js_1.ChangeType.DirectiveUsageScalarRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${directive.name.value}' was removed from scalar '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from scalar '${payload.name}'`, | ||
meta: { | ||
@@ -399,4 +264,3 @@ scalarName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
@@ -409,1 +273,276 @@ return {}; | ||
} | ||
// directiveUsageFieldDefinition | ||
function directiveUsageFieldDefinitionAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageFieldDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageFieldDefinitionAddedFromMeta = directiveUsageFieldDefinitionAddedFromMeta; | ||
function directiveUsageFieldDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageFieldDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageFieldDefinitionRemovedFromMeta = directiveUsageFieldDefinitionRemovedFromMeta; | ||
// directiveUsageArgumentDefinition | ||
function directiveUsageArgumentDefinitionAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageArgumentDefinitionAddedFromMeta = directiveUsageArgumentDefinitionAddedFromMeta; | ||
function directiveUsageArgumentDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageArgumentDefinitionRemovedFromMeta = directiveUsageArgumentDefinitionRemovedFromMeta; | ||
// directiveUsageEnum | ||
function directiveUsageEnumAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageEnumAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to enum '${change.meta.enumName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to enum '${change.meta.enumName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageEnumAddedFromMeta = directiveUsageEnumAddedFromMeta; | ||
function directiveUsageEnumRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageEnumRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from enum '${change.meta.enumName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from enum '${change.meta.enumName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageEnumRemovedFromMeta = directiveUsageEnumRemovedFromMeta; | ||
// directiveUsageEnumValue | ||
function directiveUsageEnumValueAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageEnumValueAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageEnumValueAddedFromMeta = directiveUsageEnumValueAddedFromMeta; | ||
function directiveUsageEnumValueRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageEnumValueRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageEnumValueRemovedFromMeta = directiveUsageEnumValueRemovedFromMeta; | ||
// directiveUsageInputObject | ||
function directiveUsageInputObjectAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageInputObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to input object '${change.meta.inputObjectName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to input object '${change.meta.inputObjectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageInputObjectAddedFromMeta = directiveUsageInputObjectAddedFromMeta; | ||
function directiveUsageInputObjectRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageInputObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from input object '${change.meta.inputObjectName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from input object '${change.meta.inputObjectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageInputObjectRemovedFromMeta = directiveUsageInputObjectRemovedFromMeta; | ||
// directiveUsageInterface | ||
function directiveUsageInterfaceAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageInterfaceAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to interface '${change.meta.interfaceName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to interface '${change.meta.interfaceName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageInterfaceAddedFromMeta = directiveUsageInterfaceAddedFromMeta; | ||
function directiveUsageInterfaceRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageInterfaceRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from interface '${change.meta.interfaceName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from interface '${change.meta.interfaceName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageInterfaceRemovedFromMeta = directiveUsageInterfaceRemovedFromMeta; | ||
// directiveUsageObject | ||
function directiveUsageObjectAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to object '${change.meta.objectName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to object '${change.meta.objectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageObjectAddedFromMeta = directiveUsageObjectAddedFromMeta; | ||
function directiveUsageObjectRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from object '${change.meta.objectName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from object '${change.meta.objectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageObjectRemovedFromMeta = directiveUsageObjectRemovedFromMeta; | ||
// directiveUsageScalar | ||
function directiveUsageScalarAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageScalarAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to scalar '${change.meta.scalarName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to scalar '${change.meta.scalarName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageScalarAddedFromMeta = directiveUsageScalarAddedFromMeta; | ||
function directiveUsageScalarRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageScalarRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from scalar '${change.meta.scalarName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from scalar '${change.meta.scalarName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageScalarRemovedFromMeta = directiveUsageScalarRemovedFromMeta; | ||
// directiveUsageSchema | ||
function directiveUsageSchemaAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageSchemaAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to schema`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to schema`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageSchemaAddedFromMeta = directiveUsageSchemaAddedFromMeta; | ||
function directiveUsageSchemaRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageSchemaRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from schema`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from schema`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageSchemaRemovedFromMeta = directiveUsageSchemaRemovedFromMeta; | ||
// directiveUsageUnionMember | ||
function directiveUsageUnionMemberAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageUnionMemberAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to union member '${change.meta.unionName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to union member '${change.meta.unionName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageUnionMemberAddedFromMeta = directiveUsageUnionMemberAddedFromMeta; | ||
function directiveUsageUnionMemberRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageUnionMemberRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from union member '${change.meta.unionName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from union member '${change.meta.unionName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageUnionMemberRemovedFromMeta = directiveUsageUnionMemberRemovedFromMeta; | ||
// DirectiveUsageArgumentDefinition | ||
function directiveUsageArgumentInputValueDefinitionAddedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageArgumentInputValueDefinitionAddedFromMeta = directiveUsageArgumentInputValueDefinitionAddedFromMeta; | ||
function directiveUsageArgumentInputValueDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: change_js_1.ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, change_js_1.CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
exports.directiveUsageArgumentInputValueDefinitionRemovedFromMeta = directiveUsageArgumentInputValueDefinitionRemovedFromMeta; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.inputFieldDefaultValueChangedFromMeta = exports.inputFieldDescriptionChangedFromMeta = exports.inputFieldDescriptionRemovedFromMeta = exports.inputFieldDescriptionAddedFromMeta = exports.inputFieldAddedFromMeta = exports.inputFieldRemovedFromMeta = exports.fieldArgumentRemovedFromMeta = exports.fieldArgumentAddedFromMeta = exports.fieldTypeChangedFromMeta = exports.fieldDeprecationReasonRemovedFromMeta = exports.fieldDeprecationReasonAddedFromMeta = exports.fieldDeprecationReasonChangedFromMeta = exports.fieldDeprecationRemovedFromMeta = exports.fieldDeprecationAddedFromMeta = exports.fieldDescriptionRemovedFromMeta = exports.fieldDescriptionAddedFromMeta = exports.fieldDescriptionChangedFromMeta = exports.fieldAddedFromMeta = exports.fieldRemovedFromMeta = exports.enumValueDeprecationReasonRemovedFromMeta = exports.enumValueDeprecationReasonAddedFromMeta = exports.enumValueDeprecationReasonChangedFromMeta = exports.enumValueDescriptionChangedFromMeta = exports.enumValueAddedFromMeta = exports.enumValueRemovedFromMeta = exports.directiveArgumentTypeChangedFromMeta = exports.directiveArgumentDefaultValueChangedFromMeta = exports.directiveArgumentDescriptionChangedFromMeta = exports.directiveArgumentRemovedFromMeta = exports.directiveArgumentAddedFromMeta = exports.directiveLocationRemovedFromMeta = exports.directiveLocationAddedFromMeta = exports.directiveDescriptionChangedFromMeta = exports.directiveAddedFromMeta = exports.directiveRemovedFromMeta = exports.fieldArgumentTypeChangedFromMeta = exports.fieldArgumentDefaultChangedFromMeta = exports.fieldArgumentDescriptionChangedFromMeta = exports.calculateTokenCount = exports.countDepth = exports.countDirectives = exports.calculateOperationComplexity = exports.countAliases = exports.validate = exports.getTypePrefix = exports.similar = exports.CriticalityLevel = exports.ChangeType = exports.DiffRule = exports.diff = void 0; | ||
exports.buildUnionMemberAddedMessageFromMeta = exports.unionMemberRemovedFromMeta = exports.typeDescriptionAddedFromMeta = exports.typeDescriptionRemovedFromMeta = exports.typeDescriptionChangedFromMeta = exports.typeKindChangedFromMeta = exports.typeAddedFromMeta = exports.typeRemovedFromMeta = exports.schemaSubscriptionTypeChangedFromMeta = exports.schemaMutationTypeChangedFromMeta = exports.schemaQueryTypeChangedFromMeta = exports.objectTypeInterfaceRemovedFromMeta = exports.objectTypeInterfaceAddedFromMeta = exports.inputFieldTypeChangedFromMeta = void 0; | ||
exports.enumValueDescriptionChangedFromMeta = exports.enumValueAddedFromMeta = exports.enumValueRemovedFromMeta = exports.directiveArgumentTypeChangedFromMeta = exports.directiveArgumentDefaultValueChangedFromMeta = exports.directiveArgumentDescriptionChangedFromMeta = exports.directiveArgumentRemovedFromMeta = exports.directiveArgumentAddedFromMeta = exports.directiveLocationRemovedFromMeta = exports.directiveLocationAddedFromMeta = exports.directiveDescriptionChangedFromMeta = exports.directiveAddedFromMeta = exports.directiveRemovedFromMeta = exports.fieldArgumentTypeChangedFromMeta = exports.fieldArgumentDefaultChangedFromMeta = exports.fieldArgumentDescriptionChangedFromMeta = exports.calculateTokenCount = exports.countDepth = exports.countDirectives = exports.calculateOperationComplexity = exports.countAliases = exports.validate = exports.getTypePrefix = exports.similar = exports.directiveUsageArgumentInputValueDefinitionRemovedFromMeta = exports.directiveUsageArgumentInputValueDefinitionAddedFromMeta = exports.directiveUsageUnionMemberRemovedFromMeta = exports.directiveUsageUnionMemberAddedFromMeta = exports.directiveUsageSchemaRemovedFromMeta = exports.directiveUsageSchemaAddedFromMeta = exports.directiveUsageScalarRemovedFromMeta = exports.directiveUsageScalarAddedFromMeta = exports.directiveUsageObjectRemovedFromMeta = exports.directiveUsageObjectAddedFromMeta = exports.directiveUsageInterfaceRemovedFromMeta = exports.directiveUsageInterfaceAddedFromMeta = exports.directiveUsageInputObjectRemovedFromMeta = exports.directiveUsageInputObjectAddedFromMeta = exports.directiveUsageEnumValueRemovedFromMeta = exports.directiveUsageEnumValueAddedFromMeta = exports.directiveUsageEnumRemovedFromMeta = exports.directiveUsageEnumAddedFromMeta = exports.directiveUsageArgumentDefinitionRemovedFromMeta = exports.directiveUsageArgumentDefinitionAddedFromMeta = exports.directiveUsageFieldDefinitionRemovedFromMeta = exports.directiveUsageFieldDefinitionAddedFromMeta = exports.CriticalityLevel = exports.ChangeType = exports.DiffRule = exports.diff = void 0; | ||
exports.buildUnionMemberAddedMessageFromMeta = exports.unionMemberRemovedFromMeta = exports.typeDescriptionAddedFromMeta = exports.typeDescriptionRemovedFromMeta = exports.typeDescriptionChangedFromMeta = exports.typeKindChangedFromMeta = exports.typeAddedFromMeta = exports.typeRemovedFromMeta = exports.schemaSubscriptionTypeChangedFromMeta = exports.schemaMutationTypeChangedFromMeta = exports.schemaQueryTypeChangedFromMeta = exports.objectTypeInterfaceRemovedFromMeta = exports.objectTypeInterfaceAddedFromMeta = exports.inputFieldTypeChangedFromMeta = exports.inputFieldDefaultValueChangedFromMeta = exports.inputFieldDescriptionChangedFromMeta = exports.inputFieldDescriptionRemovedFromMeta = exports.inputFieldDescriptionAddedFromMeta = exports.inputFieldAddedFromMeta = exports.inputFieldRemovedFromMeta = exports.fieldArgumentRemovedFromMeta = exports.fieldArgumentAddedFromMeta = exports.fieldTypeChangedFromMeta = exports.fieldDeprecationReasonRemovedFromMeta = exports.fieldDeprecationReasonAddedFromMeta = exports.fieldDeprecationReasonChangedFromMeta = exports.fieldDeprecationRemovedFromMeta = exports.fieldDeprecationAddedFromMeta = exports.fieldDescriptionRemovedFromMeta = exports.fieldDescriptionAddedFromMeta = exports.fieldDescriptionChangedFromMeta = exports.fieldAddedFromMeta = exports.fieldRemovedFromMeta = exports.enumValueDeprecationReasonRemovedFromMeta = exports.enumValueDeprecationReasonAddedFromMeta = exports.enumValueDeprecationReasonChangedFromMeta = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -13,2 +13,25 @@ tslib_1.__exportStar(require("./coverage/index.js"), exports); | ||
Object.defineProperty(exports, "CriticalityLevel", { enumerable: true, get: function () { return change_js_1.CriticalityLevel; } }); | ||
var directive_usage_js_1 = require("./diff/changes/directive-usage.js"); | ||
Object.defineProperty(exports, "directiveUsageFieldDefinitionAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageFieldDefinitionAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageFieldDefinitionRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageFieldDefinitionRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageArgumentDefinitionAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageArgumentDefinitionAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageArgumentDefinitionRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageArgumentDefinitionRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageEnumAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageEnumAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageEnumRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageEnumRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageEnumValueAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageEnumValueAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageEnumValueRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageEnumValueRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageInputObjectAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageInputObjectAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageInputObjectRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageInputObjectRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageInterfaceAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageInterfaceAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageInterfaceRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageInterfaceRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageObjectAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageObjectAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageObjectRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageObjectRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageScalarAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageScalarAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageScalarRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageScalarRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageSchemaAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageSchemaAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageSchemaRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageSchemaRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageUnionMemberAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageUnionMemberAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageUnionMemberRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageUnionMemberRemovedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageArgumentInputValueDefinitionAddedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageArgumentInputValueDefinitionAddedFromMeta; } }); | ||
Object.defineProperty(exports, "directiveUsageArgumentInputValueDefinitionRemovedFromMeta", { enumerable: true, get: function () { return directive_usage_js_1.directiveUsageArgumentInputValueDefinitionRemovedFromMeta; } }); | ||
var index_js_2 = require("./similar/index.js"); | ||
@@ -15,0 +38,0 @@ Object.defineProperty(exports, "similar", { enumerable: true, get: function () { return index_js_2.similar; } }); |
@@ -23,9 +23,4 @@ import { Kind, } from 'graphql'; | ||
if (isOfKind(kind, Kind.ARGUMENT, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to argument '${payload.argument.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to argument '${payload.argument.name}'`, | ||
meta: { | ||
@@ -37,18 +32,7 @@ argumentName: payload.argument.name, | ||
}, | ||
path: [ | ||
payload.type.name, | ||
payload.field.name, | ||
payload.argument.name, | ||
directive.name.value, | ||
].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INPUT_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to argument '${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to argument '${payload.field.name}'`, | ||
meta: { | ||
@@ -60,28 +44,19 @@ argumentName: payload.field.name, | ||
}, | ||
path: [payload.type.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INPUT_OBJECT_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInputObjectAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageInputObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to input object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to input object '${payload.name}'`, | ||
meta: { | ||
inputObjectName: payload.name, | ||
addedDirectiveName: directive.name.value, | ||
isAddedInputFieldTypeNullable: false, | ||
addedInputFieldName: '', | ||
addedInputFieldType: '', | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INTERFACE_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInterfaceAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageInterfaceAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to interface '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to interface '${payload.name}'`, | ||
meta: { | ||
@@ -91,13 +66,7 @@ interfaceName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.OBJECT, payload)) { | ||
return { | ||
return directiveUsageObjectAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to object '${payload.name}'`, | ||
meta: { | ||
@@ -107,13 +76,7 @@ objectName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.ENUM_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageEnumAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to enum '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to enum '${payload.name}'`, | ||
meta: { | ||
@@ -123,29 +86,17 @@ enumName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.FIELD_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageFieldDefinitionAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageFieldDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to field '${payload.parentType.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to field '${payload.parentType.name}.${payload.field.name}'`, | ||
meta: { | ||
addedDirectiveName: directive.name.value, | ||
fieldName: payload.field.name, | ||
typeName: payload.parentType.name, | ||
fieldName: payload.field.name, | ||
addedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.parentType.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.UNION_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageUnionMemberAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageUnionMemberAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to union member '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to union member '${payload.name}'`, | ||
meta: { | ||
@@ -156,13 +107,7 @@ unionName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.ENUM_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumValueAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageEnumValueAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to enum value '${payload.type.name}.${payload.value.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to enum value '${payload.type.name}.${payload.value.name}'`, | ||
meta: { | ||
@@ -173,13 +118,7 @@ enumName: payload.type.name, | ||
}, | ||
path: [payload.type.name, payload.value.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.SCHEMA_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageSchemaAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageSchemaAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to schema`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to schema`, | ||
meta: { | ||
@@ -189,13 +128,7 @@ addedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.getQueryType()?.name || '', directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.SCALAR_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageScalarAddedFromMeta({ | ||
type: ChangeType.DirectiveUsageScalarAdded, | ||
criticality: { | ||
level: addedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was added to scalar '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was added to scalar '${payload.name}'`, | ||
meta: { | ||
@@ -205,4 +138,3 @@ scalarName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
@@ -213,9 +145,4 @@ return {}; | ||
if (isOfKind(kind, Kind.ARGUMENT, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from argument '${payload.type.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from argument '${payload.type.name}.${payload.field.name}'`, | ||
meta: { | ||
@@ -227,18 +154,7 @@ argumentName: payload.argument.name, | ||
}, | ||
path: [ | ||
payload.type.name, | ||
payload.field.name, | ||
payload.argument.name, | ||
directive.name.value, | ||
].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INPUT_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageArgumentDefinitionRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from input value '${payload.type.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from input value '${payload.type.name}.${payload.field.name}'`, | ||
meta: { | ||
@@ -250,28 +166,19 @@ argumentName: payload.field.name, | ||
}, | ||
path: [payload.type.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INPUT_OBJECT_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInputObjectRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageInputObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from input object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from input object '${payload.name}'`, | ||
meta: { | ||
inputObjectName: payload.name, | ||
removedDirectiveName: directive.name.value, | ||
isRemovedInputFieldTypeNullable: false, | ||
removedInputFieldName: '', | ||
removedInputFieldType: '', | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.INTERFACE_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageInterfaceRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageInterfaceRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Breaking), | ||
reason: `Directive '${directive.name.value}' was removed from interface '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from interface '${payload.name}'`, | ||
meta: { | ||
@@ -281,13 +188,7 @@ interfaceName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.OBJECT, payload)) { | ||
return { | ||
return directiveUsageObjectRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from object '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from object '${payload.name}'`, | ||
meta: { | ||
@@ -297,13 +198,7 @@ objectName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.ENUM_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageEnumRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from enum '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from enum '${payload.name}'`, | ||
meta: { | ||
@@ -313,29 +208,17 @@ enumName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.FIELD_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageFieldDefinitionRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageFieldDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from field '${payload.parentType.name}.${payload.field.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from field '${payload.parentType.name}.${payload.field.name}'`, | ||
meta: { | ||
removedDirectiveName: directive.name.value, | ||
fieldName: payload.field.name, | ||
typeName: payload.parentType.name, | ||
fieldName: payload.field.name, | ||
removedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.parentType.name, payload.field.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.UNION_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageUnionMemberRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageUnionMemberRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from union member '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from union member '${payload.name}'`, | ||
meta: { | ||
@@ -346,13 +229,7 @@ unionName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.ENUM_VALUE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageEnumValueRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageEnumValueRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from enum value '${payload.type.name}.${payload.value.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from enum value '${payload.type.name}.${payload.value.name}'`, | ||
meta: { | ||
@@ -363,13 +240,7 @@ enumName: payload.type.name, | ||
}, | ||
path: [payload.type.name, payload.value.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.SCHEMA_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageSchemaRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageSchemaRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Dangerous), | ||
reason: `Directive '${directive.name.value}' was removed from schema`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from schema`, | ||
meta: { | ||
@@ -379,13 +250,7 @@ removedDirectiveName: directive.name.value, | ||
}, | ||
path: [payload.getQueryType()?.name || '', directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
if (isOfKind(kind, Kind.SCALAR_TYPE_DEFINITION, payload)) { | ||
return { | ||
return directiveUsageScalarRemovedFromMeta({ | ||
type: ChangeType.DirectiveUsageScalarRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(directive.name.value, CriticalityLevel.Breaking), | ||
reason: `Directive '${directive.name.value}' was removed from scalar '${payload.name}'`, | ||
}, | ||
message: `Directive '${directive.name.value}' was removed from scalar '${payload.name}'`, | ||
meta: { | ||
@@ -395,4 +260,3 @@ scalarName: payload.name, | ||
}, | ||
path: [payload.name, directive.name.value].join('.'), | ||
}; | ||
}); | ||
} | ||
@@ -404,1 +268,254 @@ return {}; | ||
} | ||
// directiveUsageFieldDefinition | ||
export function directiveUsageFieldDefinitionAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageFieldDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageFieldDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageFieldDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from field '${change.meta.typeName}.${change.meta.fieldName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageArgumentDefinition | ||
export function directiveUsageArgumentDefinitionAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageArgumentDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageEnum | ||
export function directiveUsageEnumAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageEnumAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to enum '${change.meta.enumName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to enum '${change.meta.enumName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageEnumRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageEnumRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from enum '${change.meta.enumName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from enum '${change.meta.enumName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageEnumValue | ||
export function directiveUsageEnumValueAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageEnumValueAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageEnumValueRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageEnumValueRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from enum value '${change.meta.enumName}.${change.meta.enumValueName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageInputObject | ||
export function directiveUsageInputObjectAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageInputObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to input object '${change.meta.inputObjectName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to input object '${change.meta.inputObjectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageInputObjectRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageInputObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from input object '${change.meta.inputObjectName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from input object '${change.meta.inputObjectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageInterface | ||
export function directiveUsageInterfaceAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageInterfaceAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to interface '${change.meta.interfaceName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to interface '${change.meta.interfaceName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageInterfaceRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageInterfaceRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from interface '${change.meta.interfaceName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from interface '${change.meta.interfaceName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageObject | ||
export function directiveUsageObjectAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageObjectAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to object '${change.meta.objectName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to object '${change.meta.objectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageObjectRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageObjectRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from object '${change.meta.objectName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from object '${change.meta.objectName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageScalar | ||
export function directiveUsageScalarAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageScalarAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to scalar '${change.meta.scalarName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to scalar '${change.meta.scalarName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageScalarRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageScalarRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from scalar '${change.meta.scalarName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from scalar '${change.meta.scalarName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageSchema | ||
export function directiveUsageSchemaAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageSchemaAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to schema`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to schema`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageSchemaRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageSchemaRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from schema`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from schema`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// directiveUsageUnionMember | ||
export function directiveUsageUnionMemberAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageUnionMemberAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to union member '${change.meta.unionName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to union member '${change.meta.unionName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageUnionMemberRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageUnionMemberRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Breaking), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from union member '${change.meta.unionName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from union member '${change.meta.unionName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
// DirectiveUsageArgumentDefinition | ||
export function directiveUsageArgumentInputValueDefinitionAddedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageArgumentDefinitionAdded, | ||
criticality: { | ||
level: addedSpecialDirective(change.meta.addedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.addedDirectiveName}' was added to argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} | ||
export function directiveUsageArgumentInputValueDefinitionRemovedFromMeta(change) { | ||
return { | ||
type: ChangeType.DirectiveUsageArgumentDefinitionRemoved, | ||
criticality: { | ||
level: removedSpecialDirective(change.meta.removedDirectiveName, CriticalityLevel.Dangerous), | ||
reason: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
}, | ||
message: `Directive '${change.meta.removedDirectiveName}' was removed from argument '${change.meta.typeName}.${change.meta.fieldName}.${change.meta.argumentName}'`, | ||
meta: change.meta, | ||
}; | ||
} |
export * from './coverage/index.js'; | ||
export { diff, DiffRule, } from './diff/index.js'; | ||
export { ChangeType, CriticalityLevel, } from './diff/changes/change.js'; | ||
export { directiveUsageFieldDefinitionAddedFromMeta, directiveUsageFieldDefinitionRemovedFromMeta, directiveUsageArgumentDefinitionAddedFromMeta, directiveUsageArgumentDefinitionRemovedFromMeta, directiveUsageEnumAddedFromMeta, directiveUsageEnumRemovedFromMeta, directiveUsageEnumValueAddedFromMeta, directiveUsageEnumValueRemovedFromMeta, directiveUsageInputObjectAddedFromMeta, directiveUsageInputObjectRemovedFromMeta, directiveUsageInterfaceAddedFromMeta, directiveUsageInterfaceRemovedFromMeta, directiveUsageObjectAddedFromMeta, directiveUsageObjectRemovedFromMeta, directiveUsageScalarAddedFromMeta, directiveUsageScalarRemovedFromMeta, directiveUsageSchemaAddedFromMeta, directiveUsageSchemaRemovedFromMeta, directiveUsageUnionMemberAddedFromMeta, directiveUsageUnionMemberRemovedFromMeta, directiveUsageArgumentInputValueDefinitionAddedFromMeta, directiveUsageArgumentInputValueDefinitionRemovedFromMeta, } from './diff/changes/directive-usage.js'; | ||
export { similar } from './similar/index.js'; | ||
@@ -5,0 +6,0 @@ export { getTypePrefix } from './utils/graphql.js'; |
{ | ||
"name": "@graphql-inspector/core", | ||
"version": "6.1.1-alpha-20240709085912-d424e76f78aef93ff6a196e7c3b0d6b3bb2ecb3a", | ||
"version": "6.1.1-alpha-20240709140733-14f0611a4b9a4b998bc38ff5ccddf21c5d57d072", | ||
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
import { ConstDirectiveNode, GraphQLArgument, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLUnionType, Kind } from 'graphql'; | ||
import { Change, DirectiveUsageArgumentDefinitionChange, DirectiveUsageArgumentDefinitionRemovedChange, DirectiveUsageEnumAddedChange, DirectiveUsageEnumRemovedChange, DirectiveUsageEnumValueAddedChange, DirectiveUsageEnumValueRemovedChange, DirectiveUsageFieldDefinitionAddedChange, DirectiveUsageFieldDefinitionRemovedChange, DirectiveUsageInputObjectAddedChange, DirectiveUsageInputObjectRemovedChange, DirectiveUsageInterfaceAddedChange, DirectiveUsageInterfaceRemovedChange, DirectiveUsageObjectAddedChange, DirectiveUsageObjectRemovedChange, DirectiveUsageScalarAddedChange, DirectiveUsageScalarRemovedChange, DirectiveUsageSchemaAddedChange, DirectiveUsageSchemaRemovedChange, DirectiveUsageUnionMemberAddedChange, DirectiveUsageUnionMemberRemovedChange } from './change.js'; | ||
import { Change, CriticalityLevel, DirectiveUsageArgumentDefinitionChange, DirectiveUsageArgumentDefinitionRemovedChange, DirectiveUsageEnumAddedChange, DirectiveUsageEnumRemovedChange, DirectiveUsageEnumValueAddedChange, DirectiveUsageEnumValueRemovedChange, DirectiveUsageFieldDefinitionAddedChange, DirectiveUsageFieldDefinitionRemovedChange, DirectiveUsageInputObjectAddedChange, DirectiveUsageInputObjectRemovedChange, DirectiveUsageInterfaceAddedChange, DirectiveUsageInterfaceRemovedChange, DirectiveUsageObjectAddedChange, DirectiveUsageObjectRemovedChange, DirectiveUsageScalarAddedChange, DirectiveUsageScalarRemovedChange, DirectiveUsageSchemaAddedChange, DirectiveUsageSchemaRemovedChange, DirectiveUsageUnionMemberAddedChange, DirectiveUsageUnionMemberRemovedChange } from './change.js'; | ||
type KindToPayload = { | ||
@@ -64,2 +64,286 @@ [Kind.ENUM_TYPE_DEFINITION]: { | ||
export declare function directiveUsageRemoved<K extends keyof KindToPayload>(kind: K, directive: ConstDirectiveNode, payload: KindToPayload[K]['input']): Change; | ||
export declare function directiveUsageFieldDefinitionAddedFromMeta(change: DirectiveUsageFieldDefinitionAddedChange): { | ||
type: "DIRECTIVE_USAGE_FIELD_DEFINITION_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageFieldDefinitionRemovedFromMeta(change: DirectiveUsageFieldDefinitionRemovedChange): { | ||
type: "DIRECTIVE_USAGE_FIELD_DEFINITION_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageArgumentDefinitionAddedFromMeta(change: DirectiveUsageArgumentDefinitionChange): { | ||
type: "DIRECTIVE_USAGE_ARGUMENT_DEFINITION_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
argumentName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageArgumentDefinitionRemovedFromMeta(change: DirectiveUsageArgumentDefinitionRemovedChange): { | ||
type: "DIRECTIVE_USAGE_ARGUMENT_DEFINITION_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
argumentName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageEnumAddedFromMeta(change: DirectiveUsageEnumAddedChange): { | ||
type: "DIRECTIVE_USAGE_ENUM_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
enumName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageEnumRemovedFromMeta(change: DirectiveUsageEnumRemovedChange): { | ||
type: "DIRECTIVE_USAGE_ENUM_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
enumName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageEnumValueAddedFromMeta(change: DirectiveUsageEnumValueAddedChange): { | ||
type: "DIRECTIVE_USAGE_ENUM_VALUE_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
enumName: string; | ||
enumValueName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageEnumValueRemovedFromMeta(change: DirectiveUsageEnumValueRemovedChange): { | ||
type: "DIRECTIVE_USAGE_ENUM_VALUE_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
enumName: string; | ||
enumValueName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageInputObjectAddedFromMeta(change: DirectiveUsageInputObjectAddedChange): { | ||
type: "DIRECTIVE_USAGE_INPUT_OBJECT_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
inputObjectName: string; | ||
addedInputFieldName: string; | ||
isAddedInputFieldTypeNullable: boolean; | ||
addedInputFieldType: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageInputObjectRemovedFromMeta(change: DirectiveUsageInputObjectRemovedChange): { | ||
type: "DIRECTIVE_USAGE_INPUT_OBJECT_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
inputObjectName: string; | ||
removedInputFieldName: string; | ||
isRemovedInputFieldTypeNullable: boolean; | ||
removedInputFieldType: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageInterfaceAddedFromMeta(change: DirectiveUsageInterfaceAddedChange): { | ||
type: "DIRECTIVE_USAGE_INTERFACE_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
interfaceName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageInterfaceRemovedFromMeta(change: DirectiveUsageInterfaceRemovedChange): { | ||
type: "DIRECTIVE_USAGE_INTERFACE_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
interfaceName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageObjectAddedFromMeta(change: DirectiveUsageObjectAddedChange): { | ||
type: "DIRECTIVE_USAGE_OBJECT_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
objectName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageObjectRemovedFromMeta(change: DirectiveUsageObjectRemovedChange): { | ||
type: "DIRECTIVE_USAGE_OBJECT_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
objectName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageScalarAddedFromMeta(change: DirectiveUsageScalarAddedChange): { | ||
type: "DIRECTIVE_USAGE_SCALAR_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
scalarName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageScalarRemovedFromMeta(change: DirectiveUsageScalarRemovedChange): { | ||
type: "DIRECTIVE_USAGE_SCALAR_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
scalarName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageSchemaAddedFromMeta(change: DirectiveUsageSchemaAddedChange): { | ||
type: "DIRECTIVE_USAGE_SCHEMA_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
addedDirectiveName: string; | ||
schemaTypeName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageSchemaRemovedFromMeta(change: DirectiveUsageSchemaRemovedChange): { | ||
type: "DIRECTIVE_USAGE_SCHEMA_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
removedDirectiveName: string; | ||
schemaTypeName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageUnionMemberAddedFromMeta(change: DirectiveUsageUnionMemberAddedChange): { | ||
type: "DIRECTIVE_USAGE_UNION_MEMBER_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
unionName: string; | ||
addedUnionMemberTypeName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageUnionMemberRemovedFromMeta(change: DirectiveUsageUnionMemberRemovedChange): { | ||
type: "DIRECTIVE_USAGE_UNION_MEMBER_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
unionName: string; | ||
removedUnionMemberTypeName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageArgumentInputValueDefinitionAddedFromMeta(change: DirectiveUsageArgumentDefinitionChange): { | ||
type: "DIRECTIVE_USAGE_ARGUMENT_DEFINITION_ADDED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
argumentName: string; | ||
addedDirectiveName: string; | ||
}; | ||
}; | ||
export declare function directiveUsageArgumentInputValueDefinitionRemovedFromMeta(change: DirectiveUsageArgumentDefinitionRemovedChange): { | ||
type: "DIRECTIVE_USAGE_ARGUMENT_DEFINITION_REMOVED"; | ||
criticality: { | ||
level: CriticalityLevel; | ||
reason: string; | ||
}; | ||
message: string; | ||
meta: { | ||
typeName: string; | ||
fieldName: string; | ||
argumentName: string; | ||
removedDirectiveName: string; | ||
}; | ||
}; | ||
export {}; |
export * from './coverage/index.js'; | ||
export { CompletionArgs, CompletionHandler, diff, DiffRule, Rule, UsageHandler, } from './diff/index.js'; | ||
export { Change, ChangeType, TypeOfChangeType, Criticality, CriticalityLevel, } from './diff/changes/change.js'; | ||
export { directiveUsageFieldDefinitionAddedFromMeta, directiveUsageFieldDefinitionRemovedFromMeta, directiveUsageArgumentDefinitionAddedFromMeta, directiveUsageArgumentDefinitionRemovedFromMeta, directiveUsageEnumAddedFromMeta, directiveUsageEnumRemovedFromMeta, directiveUsageEnumValueAddedFromMeta, directiveUsageEnumValueRemovedFromMeta, directiveUsageInputObjectAddedFromMeta, directiveUsageInputObjectRemovedFromMeta, directiveUsageInterfaceAddedFromMeta, directiveUsageInterfaceRemovedFromMeta, directiveUsageObjectAddedFromMeta, directiveUsageObjectRemovedFromMeta, directiveUsageScalarAddedFromMeta, directiveUsageScalarRemovedFromMeta, directiveUsageSchemaAddedFromMeta, directiveUsageSchemaRemovedFromMeta, directiveUsageUnionMemberAddedFromMeta, directiveUsageUnionMemberRemovedFromMeta, directiveUsageArgumentInputValueDefinitionAddedFromMeta, directiveUsageArgumentInputValueDefinitionRemovedFromMeta, } from './diff/changes/directive-usage.js'; | ||
export { similar, SimilarMap } from './similar/index.js'; | ||
@@ -5,0 +6,0 @@ export { getTypePrefix } from './utils/graphql.js'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
554823
10148