@wundergraph/composition 0.6.2 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +1,9 @@
1
- import { FieldDefinitionNode, InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode, Kind, NamedTypeNode, NameNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, OperationTypeNode, StringValueNode, UnionTypeExtensionNode } from 'graphql';
1
+ import { ArgumentNode, DocumentNode, FieldDefinitionNode, FieldNode, InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode, Kind, NamedTypeNode, NameNode, ObjectTypeDefinitionNode, ObjectTypeExtensionNode, OperationTypeNode, SelectionSetNode, StringValueNode, UnionTypeExtensionNode } from 'graphql';
2
2
  import { MutableEnumValueDefinitionNode, MutableFieldDefinitionNode, MutableInputValueDefinitionNode, MutableTypeDefinitionNode, ObjectLikeTypeDefinitionNode } from './ast';
3
3
  import { UnionTypeDefinitionNode } from 'graphql/index';
4
4
  import { DirectiveContainer, NodeContainer } from '../federation/utils';
5
5
  export declare function isObjectLikeNodeEntity(node: ObjectLikeTypeDefinitionNode): boolean;
6
6
  export declare function isNodeExtension(node: ObjectTypeDefinitionNode | InterfaceTypeDefinitionNode): boolean;
7
- export declare function extractEntityKeys(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, keySet: Set<string>, errors: Error[]): Set<string>;
8
- export type EntityKey = {
9
- nestedKeys?: EntityKey[];
10
- parent: string;
11
- siblings: string[];
12
- };
13
- export type EntityKeyExtractionResult = {
14
- entityKey?: EntityKey;
15
- error?: Error;
16
- };
17
- export declare function getEntityKeyExtractionResult(rawEntityKey: string, parentTypeName: string): EntityKeyExtractionResult;
18
- export type EntityKeyExtractionResults = {
19
- entityKeyMap: Map<string, EntityKey>;
20
- errors: Error[];
21
- };
22
- export declare function getEntityKeyExtractionResults(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, entityKeyMap: Map<string, EntityKey>): EntityKeyExtractionResults;
23
7
  export declare function extractInterfaces(node: InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode | ObjectTypeDefinitionNode | ObjectTypeExtensionNode, interfaces: Set<string>, errors?: Error[]): Set<string>;
24
8
  export declare function isNodeShareable(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode | FieldDefinitionNode): boolean;
25
9
  export declare function isNodeExternal(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode | FieldDefinitionNode): boolean;
@@ -33,8 +17,6 @@ export declare function setToNamedTypeNodeArray(set: Set<string>): NamedTypeNode
33
17
  export declare function nodeKindToDirectiveLocation(kind: Kind): string;
34
18
  export declare const operationTypeNodeToDefaultType: Map<OperationTypeNode, string>;
35
19
  export declare function isKindAbstract(kind: Kind): boolean;
36
- export declare function getInlineFragmentString(parentTypeName: string): string;
37
- export declare function extractNameNodeStringsToSet(nodes: readonly NameNode[] | NameNode[], set: Set<string>): Set<string>;
38
20
  export declare function extractExecutableDirectiveLocations(nodes: readonly NameNode[] | NameNode[], set: Set<string>): Set<string>;
39
21
  export declare function mergeExecutableDirectiveLocations(nodes: readonly NameNode[] | NameNode[], directiveContainer: DirectiveContainer): Set<string>;
40
22
  export declare function pushPersistedDirectivesAndGetNode<T extends NodeContainer>(container: T): T['node'];
@@ -42,3 +24,12 @@ export declare function addConcreteTypesForImplementedInterfaces(node: ObjectTyp
42
24
  export declare function addConcreteTypesForUnion(node: UnionTypeDefinitionNode | UnionTypeExtensionNode, abstractToConcreteTypeNames: Map<string, Set<string>>): void;
43
25
  export declare function formatDescription(description?: StringValueNode): StringValueNode | undefined;
44
26
  export declare function setLongestDescriptionForNode(existingNode: MutableFieldDefinitionNode | MutableEnumValueDefinitionNode | MutableInputValueDefinitionNode | MutableTypeDefinitionNode, newDescription?: StringValueNode): void;
27
+ export declare function lexicographicallySortArgumentNodes(fieldNode: FieldNode): ArgumentNode[] | undefined;
28
+ export declare function lexicographicallySortSelectionSetNode(selectionSetNode: SelectionSetNode): SelectionSetNode;
29
+ export declare function lexicographicallySortDocumentNode(documentNode: DocumentNode): DocumentNode;
30
+ type ParseResult = {
31
+ documentNode?: DocumentNode;
32
+ error?: Error;
33
+ };
34
+ export declare function safeParse(value: string): ParseResult;
35
+ export {};
package/dist/ast/utils.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setLongestDescriptionForNode = exports.formatDescription = exports.addConcreteTypesForUnion = exports.addConcreteTypesForImplementedInterfaces = exports.pushPersistedDirectivesAndGetNode = exports.mergeExecutableDirectiveLocations = exports.extractExecutableDirectiveLocations = exports.extractNameNodeStringsToSet = exports.getInlineFragmentString = exports.isKindAbstract = exports.operationTypeNodeToDefaultType = exports.nodeKindToDirectiveLocation = exports.setToNamedTypeNodeArray = exports.stringToNamedTypeNode = exports.setToNameNodeArray = exports.stringArrayToNameNodeArray = exports.stringToNameNode = exports.areBaseAndExtensionKindsCompatible = exports.isNodeOverridden = exports.isNodeExternal = exports.isNodeShareable = exports.extractInterfaces = exports.getEntityKeyExtractionResults = exports.getEntityKeyExtractionResult = exports.extractEntityKeys = exports.isNodeExtension = exports.isObjectLikeNodeEntity = void 0;
3
+ exports.safeParse = exports.lexicographicallySortDocumentNode = exports.lexicographicallySortSelectionSetNode = exports.lexicographicallySortArgumentNodes = exports.setLongestDescriptionForNode = exports.formatDescription = exports.addConcreteTypesForUnion = exports.addConcreteTypesForImplementedInterfaces = exports.pushPersistedDirectivesAndGetNode = exports.mergeExecutableDirectiveLocations = exports.extractExecutableDirectiveLocations = exports.isKindAbstract = exports.operationTypeNodeToDefaultType = exports.nodeKindToDirectiveLocation = exports.setToNamedTypeNodeArray = exports.stringToNamedTypeNode = exports.setToNameNodeArray = exports.stringArrayToNameNodeArray = exports.stringToNameNode = exports.areBaseAndExtensionKindsCompatible = exports.isNodeOverridden = exports.isNodeExternal = exports.isNodeShareable = exports.extractInterfaces = exports.isNodeExtension = exports.isObjectLikeNodeEntity = void 0;
4
4
  const graphql_1 = require("graphql");
5
5
  const string_constants_1 = require("../utils/string-constants");
6
6
  const errors_1 = require("../errors/errors");
7
- const utils_1 = require("../utils/utils");
8
- const utils_2 = require("../federation/utils");
7
+ const utils_1 = require("../federation/utils");
9
8
  function isObjectLikeNodeEntity(node) {
10
9
  // Interface entities are currently unsupported
11
10
  if (node.kind === graphql_1.Kind.INTERFACE_TYPE_DEFINITION
@@ -33,156 +32,6 @@ function isNodeExtension(node) {
33
32
  return false;
34
33
  }
35
34
  exports.isNodeExtension = isNodeExtension;
36
- function extractEntityKeys(node, keySet, errors) {
37
- if (!node.directives?.length) {
38
- return keySet;
39
- }
40
- const typeName = node.name.value;
41
- for (const directive of node.directives) {
42
- if (directive.name.value === string_constants_1.KEY) {
43
- if (!directive.arguments) {
44
- errors.push((0, errors_1.invalidKeyDirectiveError)(typeName, [
45
- (0, errors_1.undefinedRequiredArgumentsErrorMessage)(string_constants_1.KEY, typeName, [string_constants_1.NAME])
46
- ]));
47
- continue;
48
- }
49
- for (const arg of directive.arguments) {
50
- if (arg.name.value !== string_constants_1.FIELDS) {
51
- continue;
52
- }
53
- if (arg.value.kind !== graphql_1.Kind.STRING) {
54
- continue;
55
- }
56
- keySet.add(arg.value.value);
57
- }
58
- }
59
- }
60
- return keySet;
61
- }
62
- exports.extractEntityKeys = extractEntityKeys;
63
- function getEntityKeyExtractionResult(rawEntityKey, parentTypeName) {
64
- const rootKey = { parent: '', siblings: [] };
65
- const entityKeyMap = new Map([[parentTypeName, rootKey]]);
66
- const keyPath = [parentTypeName];
67
- let currentSegment = '';
68
- let segmentEnded = true;
69
- let currentKey;
70
- rawEntityKey = rawEntityKey.replaceAll(/[,\n]/g, ' ');
71
- for (const char of rawEntityKey) {
72
- currentKey = (0, utils_1.getOrThrowError)(entityKeyMap, keyPath.join('.'), 'entityKeyMap');
73
- switch (char) {
74
- case ' ':
75
- segmentEnded = true;
76
- break;
77
- case '{':
78
- if (!currentSegment) {
79
- return { error: (0, errors_1.invalidEntityKeyError)(parentTypeName, rawEntityKey, errors_1.invalidOpeningBraceErrorMessage) };
80
- }
81
- currentKey.siblings.push(currentSegment);
82
- const nestedKey = { parent: currentSegment, siblings: [] };
83
- if (currentKey.nestedKeys) {
84
- currentKey.nestedKeys.push(nestedKey);
85
- }
86
- else {
87
- currentKey.nestedKeys = [nestedKey];
88
- }
89
- keyPath.push(currentSegment);
90
- currentSegment = '';
91
- entityKeyMap.set(keyPath.join('.'), nestedKey);
92
- segmentEnded = true;
93
- break;
94
- case '}':
95
- if (currentSegment) {
96
- currentKey.siblings.push(currentSegment);
97
- }
98
- if (currentKey.siblings.length < 1) {
99
- return { error: (0, errors_1.invalidEntityKeyError)(parentTypeName, rawEntityKey, errors_1.invalidClosingBraceErrorMessage) };
100
- }
101
- if (keyPath.join('.') === parentTypeName) {
102
- return { error: (0, errors_1.invalidEntityKeyError)(parentTypeName, rawEntityKey, errors_1.invalidNestingClosureErrorMessage) };
103
- }
104
- currentSegment = '';
105
- keyPath.pop();
106
- segmentEnded = true;
107
- break;
108
- default:
109
- if (currentSegment && segmentEnded) {
110
- if (!currentSegment.match(/[_A-Za-z][_A-Za-z0-9]*/)) {
111
- return {
112
- error: (0, errors_1.invalidEntityKeyError)(parentTypeName, rawEntityKey, (0, errors_1.invalidGraphQLNameErrorMessage)('field', currentSegment)),
113
- };
114
- }
115
- currentKey.siblings.push(currentSegment);
116
- currentSegment = char;
117
- }
118
- else {
119
- currentSegment += char;
120
- }
121
- segmentEnded = false;
122
- }
123
- }
124
- if (keyPath.join('.') !== parentTypeName) {
125
- return { error: (0, errors_1.invalidEntityKeyError)(parentTypeName, rawEntityKey, errors_1.invalidNestingErrorMessage) };
126
- }
127
- if (currentSegment) {
128
- rootKey.siblings.push(currentSegment);
129
- }
130
- return { entityKey: rootKey };
131
- }
132
- exports.getEntityKeyExtractionResult = getEntityKeyExtractionResult;
133
- function getEntityKeyExtractionResults(node, entityKeyMap) {
134
- const parentTypeName = node.name.value;
135
- if (!node.directives?.length) {
136
- return { entityKeyMap, errors: [(0, errors_1.expectedEntityError)(parentTypeName)] };
137
- }
138
- const rawEntityKeys = new Set();
139
- const errorMessages = [];
140
- for (const directive of node.directives) {
141
- if (directive.name.value !== string_constants_1.KEY) {
142
- continue;
143
- }
144
- if (!directive.arguments || directive.arguments.length < 1) {
145
- errorMessages.push((0, errors_1.undefinedRequiredArgumentsErrorMessage)(string_constants_1.KEY, parentTypeName, [string_constants_1.FIELDS]));
146
- continue;
147
- }
148
- for (const arg of directive.arguments) {
149
- const argumentName = arg.name.value;
150
- if (arg.name.value === string_constants_1.RESOLVABLE) {
151
- continue;
152
- }
153
- if (arg.name.value !== string_constants_1.FIELDS) {
154
- errorMessages.push((0, errors_1.unexpectedDirectiveArgumentErrorMessage)(string_constants_1.KEY, argumentName));
155
- break;
156
- }
157
- if (arg.value.kind !== graphql_1.Kind.STRING) {
158
- errorMessages.push((0, errors_1.invalidKeyDirectiveArgumentErrorMessage)(arg.value.kind));
159
- break;
160
- }
161
- rawEntityKeys.add(arg.value.value);
162
- }
163
- }
164
- const errors = [];
165
- if (errorMessages.length > 0) {
166
- errors.push((0, errors_1.invalidKeyDirectiveError)(parentTypeName, errorMessages));
167
- }
168
- for (const rawEntityKey of rawEntityKeys) {
169
- const existingEntityKey = entityKeyMap.get(rawEntityKey);
170
- if (existingEntityKey) {
171
- continue;
172
- }
173
- const { entityKey, error } = getEntityKeyExtractionResult(rawEntityKey, parentTypeName);
174
- if (error) {
175
- errors.push(error);
176
- continue;
177
- }
178
- if (!entityKey) {
179
- throw new Error(); // this should never happen
180
- }
181
- entityKeyMap.set(rawEntityKey, entityKey);
182
- }
183
- return { entityKeyMap, errors };
184
- }
185
- exports.getEntityKeyExtractionResults = getEntityKeyExtractionResults;
186
35
  function extractInterfaces(node, interfaces, errors) {
187
36
  if (!node.interfaces) {
188
37
  return interfaces;
@@ -348,21 +197,10 @@ function isKindAbstract(kind) {
348
197
  return kind === graphql_1.Kind.INTERFACE_TYPE_DEFINITION || kind === graphql_1.Kind.UNION_TYPE_DEFINITION;
349
198
  }
350
199
  exports.isKindAbstract = isKindAbstract;
351
- function getInlineFragmentString(parentTypeName) {
352
- return ` ... on ${parentTypeName} `;
353
- }
354
- exports.getInlineFragmentString = getInlineFragmentString;
355
- function extractNameNodeStringsToSet(nodes, set) {
356
- for (const node of nodes) {
357
- set.add(node.value);
358
- }
359
- return set;
360
- }
361
- exports.extractNameNodeStringsToSet = extractNameNodeStringsToSet;
362
200
  function extractExecutableDirectiveLocations(nodes, set) {
363
201
  for (const node of nodes) {
364
202
  const name = node.value;
365
- if (utils_2.EXECUTABLE_DIRECTIVE_LOCATIONS.has(name)) {
203
+ if (utils_1.EXECUTABLE_DIRECTIVE_LOCATIONS.has(name)) {
366
204
  set.add(name);
367
205
  }
368
206
  }
@@ -451,4 +289,52 @@ function setLongestDescriptionForNode(existingNode, newDescription) {
451
289
  }
452
290
  }
453
291
  exports.setLongestDescriptionForNode = setLongestDescriptionForNode;
292
+ function lexicographicallySortArgumentNodes(fieldNode) {
293
+ if (!fieldNode.arguments) {
294
+ return fieldNode.arguments;
295
+ }
296
+ const argumentNodes = fieldNode.arguments;
297
+ return argumentNodes.sort((a, b) => a.name.value.localeCompare(b.name.value));
298
+ }
299
+ exports.lexicographicallySortArgumentNodes = lexicographicallySortArgumentNodes;
300
+ function lexicographicallySortSelectionSetNode(selectionSetNode) {
301
+ const selections = selectionSetNode.selections;
302
+ return {
303
+ ...selectionSetNode,
304
+ selections: selections
305
+ .sort((a, b) => a.name.value.localeCompare(b.name.value))
306
+ .map((selection) => ({
307
+ ...selection,
308
+ arguments: lexicographicallySortArgumentNodes(selection),
309
+ selectionSet: selection.selectionSet
310
+ ? lexicographicallySortSelectionSetNode(selection.selectionSet) : selection.selectionSet,
311
+ })),
312
+ };
313
+ }
314
+ exports.lexicographicallySortSelectionSetNode = lexicographicallySortSelectionSetNode;
315
+ function lexicographicallySortDocumentNode(documentNode) {
316
+ return {
317
+ ...documentNode,
318
+ definitions: documentNode.definitions.map((definition) => {
319
+ if (definition.kind !== graphql_1.Kind.OPERATION_DEFINITION) {
320
+ return definition;
321
+ }
322
+ return {
323
+ ...definition,
324
+ selectionSet: lexicographicallySortSelectionSetNode(definition.selectionSet),
325
+ };
326
+ }),
327
+ };
328
+ }
329
+ exports.lexicographicallySortDocumentNode = lexicographicallySortDocumentNode;
330
+ function safeParse(value) {
331
+ try {
332
+ const parsedValue = (0, graphql_1.parse)(value);
333
+ return { documentNode: parsedValue };
334
+ }
335
+ catch (e) {
336
+ return { error: e };
337
+ }
338
+ }
339
+ exports.safeParse = safeParse;
454
340
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/ast/utils.ts"],"names":[],"mappings":";;;AAAA,qCAaiB;AAQjB,gEAwBmC;AACnC,6CAc0B;AAC1B,0CAAiD;AAEjD,+CAAwG;AAExG,SAAgB,sBAAsB,CAAC,IAAkC;IACvE,+CAA+C;IAC/C,IAAI,IAAI,CAAC,IAAI,KAAK,cAAI,CAAC,yBAAyB;WAC3C,IAAI,CAAC,IAAI,KAAK,cAAI,CAAC,wBAAwB;WAC3C,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE;QAC7B,OAAO,KAAK,CAAC;KACd;IACD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;QACvC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,KAAK,sBAAG,EAAE;YAChC,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAbD,wDAaC;AAED,SAAgB,eAAe,CAAC,IAA4D;IAC1F,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE;QAC5B,OAAO,KAAK,CAAC;KACd;IACD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;QACvC,IAAI,SAAS,CAAC,IAAI,CAAC,KA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,UAAU;gBACb,YAAY,EAAE,qCAAqC,CAAC,UAAU,CAAC,YAAY,CAAC;aAC7E,CAAC;QACJ,CAAC,CAAC;KACH,CAAC;AACJ,CAAC;AAbD,8EAaC;AAOD,SAAgB,SAAS,CAAC,KAAa;IACrC,IAAI;QACF,MAAM,WAAW,GAAG,IAAA,eAAK,EAAC,KAAK,CAAC,CAAC;QACjC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;KACtC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,KAAK,EAAE,CAAU,EAAE,CAAC;KAC9B;AACH,CAAC;AAPD,8BAOC"}
@@ -48,10 +48,8 @@ export declare const invalidClosingBraceErrorMessage: string;
48
48
  export declare const invalidNestingClosureErrorMessage: string;
49
49
  export declare const invalidNestingErrorMessage: string;
50
50
  export declare function invalidEntityKeyError(parentTypeName: string, entityKey: string, errorMessage: string): Error;
51
- export declare function invalidKeyDirectiveError(parentTypeName: string, errorMessages: string[]): Error;
52
- export declare function undefinedParentFatalError(parentTypeName: string): Error;
51
+ export declare function invalidKeyDirectivesError(parentTypeName: string, errorMessages: string[]): Error;
53
52
  export declare function unexpectedKindFatalError(typeName: string): Error;
54
- export declare function invalidMultiGraphNodeFatalError(nodeName: string): Error;
55
53
  export declare function incompatibleParentKindFatalError(parentTypeName: string, expectedKind: Kind, actualKind: Kind): Error;
56
54
  export declare function fieldTypeMergeFatalError(fieldName: string): Error;
57
55
  export declare function argumentTypeMergeFatalError(argumentName: string, fieldName: string): Error;
@@ -59,14 +57,14 @@ export declare function unexpectedArgumentKindFatalError(argumentName: string, f
59
57
  export declare function unexpectedDirectiveLocationError(locationName: string): Error;
60
58
  export declare function unexpectedTypeNodeKindError(childPath: string): Error;
61
59
  export declare function invalidKeyFatalError<K>(key: K, mapName: string): Error;
60
+ export declare function invalidConfigurationResultFatalError(fieldPath: string): Error;
62
61
  export declare function unexpectedParentKindErrorMessage(parentTypeName: string, expectedTypeString: string, actualTypeString: string): string;
63
- export declare function objectInCompositeKeyWithoutSelectionsErrorMessage(fieldName: string, fieldTypeName: string): string;
64
62
  export declare function subgraphValidationError(subgraphName: string, errors: Error[]): Error;
65
63
  export declare const subgraphValidationFailureErrorMessage: Error;
66
64
  export declare function invalidSubgraphNameErrorMessage(index: number, newName: string): string;
67
65
  export declare function invalidOperationTypeDefinitionError(existingOperationType: OperationTypeNode, typeName: string, newOperationType: OperationTypeNode): Error;
68
66
  export declare function invalidRootTypeDefinitionError(operationType: OperationTypeNode, typeName: string, defaultTypeName: string): Error;
69
- export declare function subgraphInvalidSyntaxError(error: Error): Error;
67
+ export declare function subgraphInvalidSyntaxError(error?: Error): Error;
70
68
  export declare function unimplementedInterfaceFieldsError(parentTypeName: string, parentTypeString: string, implementationErrorsMap: ImplementationErrorsMap): Error;
71
69
  export declare function invalidRequiredArgumentsError(typeString: string, path: string, errors: InvalidRequiredArgument[]): Error;
72
70
  export declare function duplicateArgumentsError(fieldPath: string, duplicatedArguments: string[]): Error;
@@ -75,3 +73,23 @@ export declare const noQueryRootTypeError: Error;
75
73
  export declare function unexpectedObjectResponseType(fieldPath: string, actualTypeString: string): Error;
76
74
  export declare function noConcreteTypesForAbstractTypeError(typeString: string, abstractTypeName: string): Error;
77
75
  export declare function expectedEntityError(typeName: string): Error;
76
+ export declare const inlineFragmentInFieldSetErrorMessage = " Inline fragments are not currently supported within a FieldSet argument.";
77
+ export declare function abstractTypeInKeyFieldSetErrorMessage(fieldSet: string, fieldPath: string, abstractTypeName: string, abstractTypeString: string): string;
78
+ export declare function unknownTypeInFieldSetErrorMessage(fieldSet: string, fieldPath: string, responseTypeName: string): string;
79
+ export declare function invalidSelectionSetErrorMessage(fieldSet: string, fieldPath: string, fieldTypeName: string, fieldTypeString: string): string;
80
+ export declare function invalidSelectionSetDefinitionErrorMessage(fieldSet: string, fieldPath: string, fieldTypeName: string, fieldTypeString: string): string;
81
+ export declare function undefinedFieldInFieldSetErrorMessage(fieldSet: string, parentTypeName: string, fieldName: string): string;
82
+ export declare function unparsableFieldSetErrorMessage(fieldSet: string, error?: Error): string;
83
+ export declare function unparsableFieldSetSelectionErrorMessage(fieldSet: string, fieldName: string): string;
84
+ export declare function undefinedObjectParentError(parentTypeName: string): Error;
85
+ export declare function unexpectedArgumentErrorMessage(fieldSet: string, fieldPath: string, argumentName: string): string;
86
+ export declare function argumentsInKeyFieldSetErrorMessage(fieldSet: string, fieldPath: string): string;
87
+ export declare function invalidProvidesOrRequiresDirectivesError(directiveName: string, errorMessages: string[]): Error;
88
+ export declare function duplicateFieldInFieldSetErrorMessage(fieldSet: string, fieldPath: string): string;
89
+ export declare function unknownProvidesEntityErrorMessage(fieldPath: string, responseType: string): string;
90
+ export declare function invalidInlineFragmentTypeErrorMessage(fieldSet: string, fieldPath: string, typeConditionName: string, parentTypeName: string): string;
91
+ export declare function inlineFragmentWithoutTypeConditionErrorMessage(fieldSet: string, fieldPath: string): string;
92
+ export declare function unknownInlineFragmentTypeConditionErrorMessage(fieldSet: string, fieldPath: string, typeConditionName: string): string;
93
+ export declare function invalidInlineFragmentTypeConditionTypeErrorMessage(fieldSet: string, fieldPath: string, typeConditionName: string, typeConditionTypeString: string): string;
94
+ export declare function invalidInlineFragmentTypeConditionErrorMessage(fieldSet: string, fieldPath: string, typeConditionName: string, parentTypeString: string, parentTypeName: string): string;
95
+ export declare function invalidSelectionOnUnionErrorMessage(fieldSet: string, fieldPath: string, responseTypeName: string): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unexpectedKindFatalError = exports.undefinedParentFatalError = exports.invalidKeyDirectiveError = exports.invalidEntityKeyError = exports.invalidNestingErrorMessage = exports.invalidNestingClosureErrorMessage = exports.invalidClosingBraceErrorMessage = exports.invalidOpeningBraceErrorMessage = exports.invalidGraphQLNameErrorMessage = exports.invalidKeyDirectiveArgumentErrorMessage = exports.duplicateDirectiveArgumentDefinitionErrorMessage = exports.unexpectedDirectiveArgumentErrorMessage = exports.undefinedRequiredArgumentsErrorMessage = exports.unexpectedDirectiveArgumentsErrorMessage = exports.invalidDirectiveLocationErrorMessage = exports.invalidDirectiveError = exports.invalidTagDirectiveError = exports.invalidDeprecatedDirectiveError = exports.invalidUnionError = exports.invalidRepeatedDirectiveErrorMessage = exports.federationRequiredInputFieldError = exports.federationInvalidParentTypeError = exports.federationUnexpectedNodeKindError = exports.undefinedTypeError = exports.unresolvableFieldError = exports.undefinedEntityKeyErrorMessage = exports.undefinedDirectiveError = exports.shareableFieldDefinitionsError = exports.operationDefinitionError = exports.noDefinedUnionMembersError = exports.noBaseTypeExtensionError = exports.duplicateOperationTypeDefinitionError = exports.duplicateTypeDefinitionError = exports.duplicateValueExtensionError = exports.duplicateUnionMemberError = exports.duplicateInterfaceError = exports.duplicateInterfaceExtensionError = exports.duplicateFieldExtensionError = exports.duplicateEnumValueDefinitionError = exports.duplicateDirectiveDefinitionError = exports.duplicateFieldDefinitionError = exports.invalidSubgraphNamesError = exports.incompatibleExtensionKindsError = exports.incompatibleSharedEnumError = exports.incompatibleArgumentDefaultValueTypeError = exports.incompatibleArgumentDefaultValueError = exports.incompatibleChildTypesError = exports.incompatibleArgumentTypesError = exports.incompatibleExtensionError = exports.minimumSubgraphRequirementError = void 0;
4
- exports.expectedEntityError = exports.noConcreteTypesForAbstractTypeError = exports.unexpectedObjectResponseType = exports.noQueryRootTypeError = exports.invalidArgumentsError = exports.duplicateArgumentsError = exports.invalidRequiredArgumentsError = exports.unimplementedInterfaceFieldsError = exports.subgraphInvalidSyntaxError = exports.invalidRootTypeDefinitionError = exports.invalidOperationTypeDefinitionError = exports.invalidSubgraphNameErrorMessage = exports.subgraphValidationFailureErrorMessage = exports.subgraphValidationError = exports.objectInCompositeKeyWithoutSelectionsErrorMessage = exports.unexpectedParentKindErrorMessage = exports.invalidKeyFatalError = exports.unexpectedTypeNodeKindError = exports.unexpectedDirectiveLocationError = exports.unexpectedArgumentKindFatalError = exports.argumentTypeMergeFatalError = exports.fieldTypeMergeFatalError = exports.incompatibleParentKindFatalError = exports.invalidMultiGraphNodeFatalError = void 0;
3
+ exports.incompatibleParentKindFatalError = exports.unexpectedKindFatalError = exports.invalidKeyDirectivesError = exports.invalidEntityKeyError = exports.invalidNestingErrorMessage = exports.invalidNestingClosureErrorMessage = exports.invalidClosingBraceErrorMessage = exports.invalidOpeningBraceErrorMessage = exports.invalidGraphQLNameErrorMessage = exports.invalidKeyDirectiveArgumentErrorMessage = exports.duplicateDirectiveArgumentDefinitionErrorMessage = exports.unexpectedDirectiveArgumentErrorMessage = exports.undefinedRequiredArgumentsErrorMessage = exports.unexpectedDirectiveArgumentsErrorMessage = exports.invalidDirectiveLocationErrorMessage = exports.invalidDirectiveError = exports.invalidTagDirectiveError = exports.invalidDeprecatedDirectiveError = exports.invalidUnionError = exports.invalidRepeatedDirectiveErrorMessage = exports.federationRequiredInputFieldError = exports.federationInvalidParentTypeError = exports.federationUnexpectedNodeKindError = exports.undefinedTypeError = exports.unresolvableFieldError = exports.undefinedEntityKeyErrorMessage = exports.undefinedDirectiveError = exports.shareableFieldDefinitionsError = exports.operationDefinitionError = exports.noDefinedUnionMembersError = exports.noBaseTypeExtensionError = exports.duplicateOperationTypeDefinitionError = exports.duplicateTypeDefinitionError = exports.duplicateValueExtensionError = exports.duplicateUnionMemberError = exports.duplicateInterfaceError = exports.duplicateInterfaceExtensionError = exports.duplicateFieldExtensionError = exports.duplicateEnumValueDefinitionError = exports.duplicateDirectiveDefinitionError = exports.duplicateFieldDefinitionError = exports.invalidSubgraphNamesError = exports.incompatibleExtensionKindsError = exports.incompatibleSharedEnumError = exports.incompatibleArgumentDefaultValueTypeError = exports.incompatibleArgumentDefaultValueError = exports.incompatibleChildTypesError = exports.incompatibleArgumentTypesError = exports.incompatibleExtensionError = exports.minimumSubgraphRequirementError = void 0;
4
+ exports.invalidSelectionOnUnionErrorMessage = exports.invalidInlineFragmentTypeConditionErrorMessage = exports.invalidInlineFragmentTypeConditionTypeErrorMessage = exports.unknownInlineFragmentTypeConditionErrorMessage = exports.inlineFragmentWithoutTypeConditionErrorMessage = exports.invalidInlineFragmentTypeErrorMessage = exports.unknownProvidesEntityErrorMessage = exports.duplicateFieldInFieldSetErrorMessage = exports.invalidProvidesOrRequiresDirectivesError = exports.argumentsInKeyFieldSetErrorMessage = exports.unexpectedArgumentErrorMessage = exports.undefinedObjectParentError = exports.unparsableFieldSetSelectionErrorMessage = exports.unparsableFieldSetErrorMessage = exports.undefinedFieldInFieldSetErrorMessage = exports.invalidSelectionSetDefinitionErrorMessage = exports.invalidSelectionSetErrorMessage = exports.unknownTypeInFieldSetErrorMessage = exports.abstractTypeInKeyFieldSetErrorMessage = exports.inlineFragmentInFieldSetErrorMessage = exports.expectedEntityError = exports.noConcreteTypesForAbstractTypeError = exports.unexpectedObjectResponseType = exports.noQueryRootTypeError = exports.invalidArgumentsError = exports.duplicateArgumentsError = exports.invalidRequiredArgumentsError = exports.unimplementedInterfaceFieldsError = exports.subgraphInvalidSyntaxError = exports.invalidRootTypeDefinitionError = exports.invalidOperationTypeDefinitionError = exports.invalidSubgraphNameErrorMessage = exports.subgraphValidationFailureErrorMessage = exports.subgraphValidationError = exports.unexpectedParentKindErrorMessage = exports.invalidConfigurationResultFatalError = exports.invalidKeyFatalError = exports.unexpectedTypeNodeKindError = exports.unexpectedDirectiveLocationError = exports.unexpectedArgumentKindFatalError = exports.argumentTypeMergeFatalError = exports.fieldTypeMergeFatalError = void 0;
5
5
  const utils_1 = require("../ast/utils");
6
6
  const graphql_1 = require("graphql");
7
7
  const utils_2 = require("../utils/utils");
@@ -122,13 +122,13 @@ function shareableFieldDefinitionsError(parent, children) {
122
122
  }
123
123
  if (shareableSubgraphs.length < 1) {
124
124
  errorMessages.push(`\n The field "${fieldName}" is defined in the following subgraphs: "${[...field.subgraphs].join('", "')}".` +
125
- `\n However, it it is not declared "@shareable" in any of them.`);
125
+ `\n However, it is not declared "@shareable" in any of them.`);
126
126
  }
127
127
  else {
128
- errorMessages.push(`\n The field "${fieldName}" is defined and declared "@shareable" in the following subgraphs:` +
129
- ` "${shareableSubgraphs.join('", "')}".` +
130
- `\n However, it is not declared "@shareable" in the following subgraphs: ` +
131
- `"${nonShareableSubgraphs.join('", "')}".`);
128
+ errorMessages.push(`\n The field "${fieldName}" is defined and declared "@shareable" in the following subgraph` +
129
+ (shareableSubgraphs.length > 1 ? 's' : '') + `: "` + shareableSubgraphs.join('", "') + `".` +
130
+ `\n However, it is not declared "@shareable" in the following subgraph` +
131
+ (nonShareableSubgraphs.length > 1 ? 's' : '') + `: "${nonShareableSubgraphs.join('", "')}".`);
132
132
  }
133
133
  }
134
134
  return new Error(`The object "${parentTypeName}" defines the same fields in multiple subgraphs without the "@shareable" directive:` +
@@ -251,23 +251,15 @@ function invalidEntityKeyError(parentTypeName, entityKey, errorMessage) {
251
251
  errorMessage);
252
252
  }
253
253
  exports.invalidEntityKeyError = invalidEntityKeyError;
254
- function invalidKeyDirectiveError(parentTypeName, errorMessages) {
255
- return new Error(`One or more "key" directives defined on "${parentTypeName}" are invalid for the following reason` +
256
- (errorMessages.length > 1 ? 's:\n' : ':\n') + errorMessages.join('\n'));
254
+ function invalidKeyDirectivesError(parentTypeName, errorMessages) {
255
+ return new Error(`The entity "${parentTypeName}" defines the following invalid "key" directive` +
256
+ (errorMessages.length > 1 ? 's' : '') + `:\n` + errorMessages.join('\n'));
257
257
  }
258
- exports.invalidKeyDirectiveError = invalidKeyDirectiveError;
259
- function undefinedParentFatalError(parentTypeName) {
260
- return new Error(`Fatal: Expected parent type "${parentTypeName}" to be defined.`);
261
- }
262
- exports.undefinedParentFatalError = undefinedParentFatalError;
258
+ exports.invalidKeyDirectivesError = invalidKeyDirectivesError;
263
259
  function unexpectedKindFatalError(typeName) {
264
260
  return new Error(`Fatal: Unexpected type for "${typeName}"`);
265
261
  }
266
262
  exports.unexpectedKindFatalError = unexpectedKindFatalError;
267
- function invalidMultiGraphNodeFatalError(nodeName) {
268
- return new Error(`Fatal: Expected node "${nodeName}" to exist in the multi graph.`);
269
- }
270
- exports.invalidMultiGraphNodeFatalError = invalidMultiGraphNodeFatalError;
271
263
  function incompatibleParentKindFatalError(parentTypeName, expectedKind, actualKind) {
272
264
  return new Error(`Fatal: Expected "${parentTypeName}" to be type ${(0, utils_2.kindToTypeString)(expectedKind)}` +
273
265
  ` but received "${(0, utils_2.kindToTypeString)(actualKind)}".`);
@@ -300,15 +292,14 @@ function invalidKeyFatalError(key, mapName) {
300
292
  return new Error(`Fatal: Expected key "${key}" to exist in the map "${mapName}".`);
301
293
  }
302
294
  exports.invalidKeyFatalError = invalidKeyFatalError;
295
+ function invalidConfigurationResultFatalError(fieldPath) {
296
+ return new Error(`Fatal: Expected either errors or configurations for the path ${fieldPath}" but received neither".`);
297
+ }
298
+ exports.invalidConfigurationResultFatalError = invalidConfigurationResultFatalError;
303
299
  function unexpectedParentKindErrorMessage(parentTypeName, expectedTypeString, actualTypeString) {
304
300
  return (` Expected "${parentTypeName}" to be type ${expectedTypeString} but received "${actualTypeString}".`);
305
301
  }
306
302
  exports.unexpectedParentKindErrorMessage = unexpectedParentKindErrorMessage;
307
- function objectInCompositeKeyWithoutSelectionsErrorMessage(fieldName, fieldTypeName) {
308
- return (` The "fields" argument defines "${fieldName}", which is type "${fieldTypeName}, as part of a key.\n` +
309
- ` However, "${fieldTypeName}" is an object type; consequently, it must have its own selections to be a valid key.`);
310
- }
311
- exports.objectInCompositeKeyWithoutSelectionsErrorMessage = objectInCompositeKeyWithoutSelectionsErrorMessage;
312
303
  function subgraphValidationError(subgraphName, errors) {
313
304
  return new Error(`The subgraph "${subgraphName}" could not be federated for the following reason`
314
305
  + (errors.length > 1 ? 's:\n' : 's:\n') + errors.map((error) => error.message).join('\n'));
@@ -335,7 +326,11 @@ function invalidRootTypeDefinitionError(operationType, typeName, defaultTypeName
335
326
  }
336
327
  exports.invalidRootTypeDefinitionError = invalidRootTypeDefinitionError;
337
328
  function subgraphInvalidSyntaxError(error) {
338
- return new Error(`The subgraph has syntax errors and could not be parsed:\n ${error}`);
329
+ let message = `The subgraph has syntax errors and could not be parsed.`;
330
+ if (error) {
331
+ message += `\n The reason provided was: ` + error.message;
332
+ }
333
+ return new Error(message);
339
334
  }
340
335
  exports.subgraphInvalidSyntaxError = subgraphInvalidSyntaxError;
341
336
  function unimplementedInterfaceFieldsError(parentTypeName, parentTypeString, implementationErrorsMap) {
@@ -435,4 +430,119 @@ function expectedEntityError(typeName) {
435
430
  return new Error(`Expected object "${typeName}" to define a "key" directive, but it defines no directives.`);
436
431
  }
437
432
  exports.expectedEntityError = expectedEntityError;
433
+ exports.inlineFragmentInFieldSetErrorMessage = ` Inline fragments are not currently supported within a FieldSet argument.`;
434
+ function abstractTypeInKeyFieldSetErrorMessage(fieldSet, fieldPath, abstractTypeName, abstractTypeString) {
435
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
436
+ ` This is because "${fieldPath}" returns "${abstractTypeName}", which is type "${abstractTypeString}".\n` +
437
+ ` Fields that return abstract types (interfaces and unions)` +
438
+ ` cannot be included in the FieldSet of "@key" directives.`;
439
+ }
440
+ exports.abstractTypeInKeyFieldSetErrorMessage = abstractTypeInKeyFieldSetErrorMessage;
441
+ function unknownTypeInFieldSetErrorMessage(fieldSet, fieldPath, responseTypeName) {
442
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
443
+ ` This is because "${fieldPath}" returns the unknown type "${responseTypeName}".`;
444
+ }
445
+ exports.unknownTypeInFieldSetErrorMessage = unknownTypeInFieldSetErrorMessage;
446
+ function invalidSelectionSetErrorMessage(fieldSet, fieldPath, fieldTypeName, fieldTypeString) {
447
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
448
+ ` This is because "${fieldPath}" returns "${fieldTypeName}", which is type "${fieldTypeString}".\n` +
449
+ ` Types such as "${fieldTypeString}" that define fields` +
450
+ ` must define a selection set with at least one field selection.`;
451
+ }
452
+ exports.invalidSelectionSetErrorMessage = invalidSelectionSetErrorMessage;
453
+ function invalidSelectionSetDefinitionErrorMessage(fieldSet, fieldPath, fieldTypeName, fieldTypeString) {
454
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
455
+ ` This is because "${fieldPath}" returns "${fieldTypeName}", which is type "${fieldTypeString}".\n` +
456
+ ` Types such as "${fieldTypeString}" that do not define fields cannot define a selection set.`;
457
+ }
458
+ exports.invalidSelectionSetDefinitionErrorMessage = invalidSelectionSetDefinitionErrorMessage;
459
+ function undefinedFieldInFieldSetErrorMessage(fieldSet, parentTypeName, fieldName) {
460
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
461
+ ` This is because "${parentTypeName}" does not define a field named "${fieldName}".`;
462
+ }
463
+ exports.undefinedFieldInFieldSetErrorMessage = undefinedFieldInFieldSetErrorMessage;
464
+ function unparsableFieldSetErrorMessage(fieldSet, error) {
465
+ let message = ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
466
+ ` The FieldSet could not be parsed.`;
467
+ if (error) {
468
+ message += `\n The reason provided was: ` + error.message;
469
+ }
470
+ return message;
471
+ }
472
+ exports.unparsableFieldSetErrorMessage = unparsableFieldSetErrorMessage;
473
+ function unparsableFieldSetSelectionErrorMessage(fieldSet, fieldName) {
474
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
475
+ ` This is because the selection set defined on "${fieldName}" could not be parsed.`;
476
+ }
477
+ exports.unparsableFieldSetSelectionErrorMessage = unparsableFieldSetSelectionErrorMessage;
478
+ function undefinedObjectParentError(parentTypeName) {
479
+ return new Error(` Expected an object or object extension named "${parentTypeName}" to exist.`);
480
+ }
481
+ exports.undefinedObjectParentError = undefinedObjectParentError;
482
+ function unexpectedArgumentErrorMessage(fieldSet, fieldPath, argumentName) {
483
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
484
+ ` This is because "${fieldPath}" does not define an argument named "${argumentName}".`;
485
+ }
486
+ exports.unexpectedArgumentErrorMessage = unexpectedArgumentErrorMessage;
487
+ function argumentsInKeyFieldSetErrorMessage(fieldSet, fieldPath) {
488
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
489
+ ` This is because "${fieldPath}" defines arguments.\n` +
490
+ ` Fields that define arguments cannot be included in the FieldSet of @key directives.`;
491
+ }
492
+ exports.argumentsInKeyFieldSetErrorMessage = argumentsInKeyFieldSetErrorMessage;
493
+ function invalidProvidesOrRequiresDirectivesError(directiveName, errorMessages) {
494
+ return new Error(`The following "${directiveName}" directive` + (errorMessages.length > 1 ? 's are' : ' is') +
495
+ ` invalid:\n` + errorMessages.join(`\n`));
496
+ }
497
+ exports.invalidProvidesOrRequiresDirectivesError = invalidProvidesOrRequiresDirectivesError;
498
+ function duplicateFieldInFieldSetErrorMessage(fieldSet, fieldPath) {
499
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
500
+ ` This is because "${fieldPath}" was included in the FieldSet more than once.`;
501
+ }
502
+ exports.duplicateFieldInFieldSetErrorMessage = duplicateFieldInFieldSetErrorMessage;
503
+ function unknownProvidesEntityErrorMessage(fieldPath, responseType) {
504
+ return ` A @provides directive is declared on "${fieldPath}".\n` +
505
+ ` However, the response type "${responseType}" object or object extension definition was not found.`;
506
+ }
507
+ exports.unknownProvidesEntityErrorMessage = unknownProvidesEntityErrorMessage;
508
+ function invalidInlineFragmentTypeErrorMessage(fieldSet, fieldPath, typeConditionName, parentTypeName) {
509
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
510
+ ` This is because "${fieldPath}" defines an inline fragment with the type condition "${typeConditionName}".\n` +
511
+ ` However, "${parentTypeName}" is not an abstract (interface or union) type.\n` +
512
+ ` Consequently, the only valid type condition would be "${parentTypeName}".`;
513
+ }
514
+ exports.invalidInlineFragmentTypeErrorMessage = invalidInlineFragmentTypeErrorMessage;
515
+ function inlineFragmentWithoutTypeConditionErrorMessage(fieldSet, fieldPath) {
516
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
517
+ ` This is because "${fieldPath}" defines an inline fragment without a type condition.`;
518
+ }
519
+ exports.inlineFragmentWithoutTypeConditionErrorMessage = inlineFragmentWithoutTypeConditionErrorMessage;
520
+ function unknownInlineFragmentTypeConditionErrorMessage(fieldSet, fieldPath, typeConditionName) {
521
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
522
+ ` This is because "${fieldPath}" defines an inline fragment` +
523
+ ` with the unknown type condition "${typeConditionName}".`;
524
+ }
525
+ exports.unknownInlineFragmentTypeConditionErrorMessage = unknownInlineFragmentTypeConditionErrorMessage;
526
+ function invalidInlineFragmentTypeConditionTypeErrorMessage(fieldSet, fieldPath, typeConditionName, typeConditionTypeString) {
527
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
528
+ ` This is because "${fieldPath}" defines an inline fragment with the type condition "${typeConditionName}",` +
529
+ ` which is type "${typeConditionTypeString}".\n` +
530
+ ` However, either an "interface" or "object" type was expected.`;
531
+ }
532
+ exports.invalidInlineFragmentTypeConditionTypeErrorMessage = invalidInlineFragmentTypeConditionTypeErrorMessage;
533
+ function invalidInlineFragmentTypeConditionErrorMessage(fieldSet, fieldPath, typeConditionName, parentTypeString, parentTypeName) {
534
+ let message = ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
535
+ ` This is because "${fieldPath}" defines an inline fragment with the type condition "${typeConditionName}".\n`;
536
+ if (parentTypeString === 'interface') {
537
+ return message + ` However, "${typeConditionName}" does not implement "${parentTypeName}"`;
538
+ }
539
+ return message + ` However, "${typeConditionName}" is not a member of the union "${parentTypeName}".`;
540
+ }
541
+ exports.invalidInlineFragmentTypeConditionErrorMessage = invalidInlineFragmentTypeConditionErrorMessage;
542
+ function invalidSelectionOnUnionErrorMessage(fieldSet, fieldPath, responseTypeName) {
543
+ return ` The following FieldSet is invalid:\n "${fieldSet}"\n` +
544
+ ` This is because "${fieldPath}" returns "${responseTypeName}", which is type "union".\n` +
545
+ ` Consequently, an inline fragment is required to make a selection on one of the union's members.`;
546
+ }
547
+ exports.invalidSelectionOnUnionErrorMessage = invalidSelectionOnUnionErrorMessage;
438
548
  //# sourceMappingURL=errors.js.map