@wundergraph/composition
Advanced tools
Comparing version 0.29.3 to 0.29.4
import { DirectiveDefinitionNode, NamedTypeNode } from 'graphql'; | ||
import { MutableTypeDefinitionNode, MutableTypeNode } from '../schema-building/ast'; | ||
import { ChildTagData, FederationFactoryOptions, FederationResultContainer, FederationResultContainerWithContracts, InterfaceImplementationData, InterfaceObjectForInternalGraphOptions, ParentTagData, SubscriptionFilterData } from './utils'; | ||
import { ChildTagData, ContractTagOptions, FederationFactoryOptions, FederationResultContainer, FederationResultContainerWithContracts, InterfaceImplementationData, InterfaceObjectForInternalGraphOptions, ParentTagData, SubscriptionFilterData } from './utils'; | ||
import { InternalSubgraph, Subgraph } from '../subgraph/subgraph'; | ||
@@ -87,8 +87,9 @@ import { AuthorizationData, EntityData, EntityInterfaceFederationData, GraphFieldData } from '../utils/utils'; | ||
}; | ||
handleChildRemovalByTag(parentDefinitionData: ParentDefinitionData, children: Map<string, ChildData>, childTagDataByChildName: Map<string, ChildTagData>, tagsToExclude: Set<string>): void; | ||
buildFederationContractResult(tagsToExclude: Set<string>): FederationResultContainer; | ||
handleChildTagExclusions(parentDefinitionData: ParentDefinitionData, children: Map<string, ChildData>, childTagDataByChildName: Map<string, ChildTagData>, tagNames: Set<string>): void; | ||
handleChildTagInclusions(parentDefinitionData: ParentDefinitionData, children: Map<string, ChildData>, childTagDataByChildName: Map<string, ChildTagData>, tagNames: Set<string>): void; | ||
buildFederationContractResult(contractTagOptions: ContractTagOptions): FederationResultContainer; | ||
federateSubgraphsInternal(): FederationResultContainer; | ||
} | ||
export declare function federateSubgraphs(subgraphs: Subgraph[]): FederationResultContainer; | ||
export declare function federateSubgraphsWithContracts(subgraphs: Subgraph[], tagExclusionsByContractName: Map<string, Set<string>>): FederationResultContainerWithContracts; | ||
export declare function federateSubgraphsContract(subgraphs: Subgraph[], tagExclusions: Set<string>): FederationResultContainer; | ||
export declare function federateSubgraphsWithContracts(subgraphs: Subgraph[], tagOptionsByContractName: Map<string, ContractTagOptions>): FederationResultContainerWithContracts; | ||
export declare function federateSubgraphsContract(subgraphs: Subgraph[], contractTagOptions: ContractTagOptions): FederationResultContainer; |
@@ -78,1 +78,6 @@ import { ConstDirectiveNode, DocumentNode, GraphQLSchema } from 'graphql'; | ||
export declare function validateImplicitFieldSets({ conditionalFieldDataByCoordinates, configurationData, fieldSets, implicitKeys, objectData, parentDefinitionDataByTypeName, graphNode, }: VisitFieldSetOptions): void; | ||
export type ContractTagOptions = { | ||
tagNamesToExclude: Set<string>; | ||
tagNamesToInclude: Set<string>; | ||
}; | ||
export declare function newContractTagOptionsFromArrays(tagNamesToExclude: Array<string>, tagNamesToInclude: Array<string>): ContractTagOptions; |
@@ -6,2 +6,3 @@ "use strict"; | ||
exports.validateImplicitFieldSets = validateImplicitFieldSets; | ||
exports.newContractTagOptionsFromArrays = newContractTagOptionsFromArrays; | ||
const utils_1 = require("../utils/utils"); | ||
@@ -154,2 +155,8 @@ const ast_1 = require("../schema-building/ast"); | ||
} | ||
function newContractTagOptionsFromArrays(tagNamesToExclude, tagNamesToInclude) { | ||
return { | ||
tagNamesToExclude: new Set(tagNamesToExclude), | ||
tagNamesToInclude: new Set(tagNamesToInclude), | ||
}; | ||
} | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@wundergraph/composition", | ||
"version": "0.29.3", | ||
"version": "0.29.4", | ||
"author": { | ||
@@ -42,3 +42,3 @@ "name": "WunderGraph Maintainers", | ||
}, | ||
"gitHead": "d281d38180bf8405d0ea02a8c1f8fa448421c0e7" | ||
"gitHead": "def31da40cf4d735d2c744e859df0f72a07a2a66" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1086345
12140