@wundergraph/composition 0.58.0 → 0.58.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.
- package/dist/{v1/normalization → directive-definition-data}/directive-definition-data.d.ts +2 -2
- package/dist/{v1/normalization → directive-definition-data}/directive-definition-data.js +308 -280
- package/dist/directive-definition-data/directive-definition-data.js.map +1 -0
- package/dist/directive-definition-data/types/params.d.ts +48 -0
- package/dist/directive-definition-data/types/params.js.map +1 -0
- package/dist/directive-definition-data/types/types.d.ts +39 -0
- package/dist/directive-definition-data/types/types.js.map +1 -0
- package/dist/directive-definition-data/utils.d.ts +5 -0
- package/dist/directive-definition-data/utils.js +75 -0
- package/dist/directive-definition-data/utils.js.map +1 -0
- package/dist/errors/errors.d.ts +35 -9
- package/dist/errors/errors.js +141 -21
- package/dist/errors/errors.js.map +1 -1
- package/dist/errors/{types.d.ts → types/params.d.ts} +34 -6
- package/dist/{federation → errors/types}/params.js.map +1 -1
- package/dist/errors/types/types.d.ts +5 -0
- package/dist/{federation → errors/types}/types.js.map +1 -1
- package/dist/federation/federation.d.ts +2 -2
- package/dist/federation/{params.d.ts → types/params.d.ts} +4 -4
- package/dist/{v1/federation → federation/types}/params.js.map +1 -1
- package/dist/federation/{types.d.ts → types/types.d.ts} +17 -20
- package/dist/{errors → federation/types}/types.js.map +1 -1
- package/dist/index.d.ts +16 -7
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/normalization/normalization.d.ts +2 -3
- package/dist/normalization/normalization.js +0 -8
- package/dist/normalization/normalization.js.map +1 -1
- package/dist/normalization/types.d.ts +21 -18
- package/dist/schema-building/ast.d.ts +2 -10
- package/dist/schema-building/ast.js +35 -32
- package/dist/schema-building/ast.js.map +1 -1
- package/dist/schema-building/types/params.d.ts +54 -0
- package/dist/schema-building/types/params.js.map +1 -0
- package/dist/schema-building/types/results.d.ts +39 -0
- package/dist/schema-building/types/results.js +3 -0
- package/dist/schema-building/types/results.js.map +1 -0
- package/dist/schema-building/{types.d.ts → types/types.d.ts} +21 -41
- package/dist/schema-building/types/types.js.map +1 -0
- package/dist/schema-building/utils.d.ts +21 -13
- package/dist/schema-building/utils.js +257 -82
- package/dist/schema-building/utils.js.map +1 -1
- package/dist/subgraph/types/params.d.ts +6 -0
- package/dist/subgraph/types/params.js +3 -0
- package/dist/{schema-building → subgraph/types}/params.js.map +1 -1
- package/dist/subgraph/types.d.ts +6 -6
- package/dist/subgraph/utils.d.ts +3 -0
- package/dist/subgraph/utils.js +23 -0
- package/dist/subgraph/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/results.d.ts +14 -0
- package/dist/types/results.js +3 -0
- package/dist/types/results.js.map +1 -0
- package/dist/types/types.d.ts +2 -0
- package/dist/utils/composition-version.js +1 -1
- package/dist/utils/params.d.ts +4 -0
- package/dist/utils/string-constants.d.ts +2 -1
- package/dist/utils/string-constants.js +5 -4
- package/dist/utils/string-constants.js.map +1 -1
- package/dist/utils/utils.d.ts +2 -1
- package/dist/utils/utils.js +14 -0
- package/dist/utils/utils.js.map +1 -1
- package/dist/v1/constants/directive-definitions.js +3 -3
- package/dist/v1/constants/directive-definitions.js.map +1 -1
- package/dist/v1/constants/strings.d.ts +3 -1
- package/dist/v1/constants/strings.js +12 -2
- package/dist/v1/constants/strings.js.map +1 -1
- package/dist/v1/federation/federation-factory.d.ts +15 -16
- package/dist/v1/federation/federation-factory.js +344 -213
- package/dist/v1/federation/federation-factory.js.map +1 -1
- package/dist/v1/federation/{params.d.ts → types/params.d.ts} +16 -9
- package/dist/v1/federation/types/params.js +3 -0
- package/dist/v1/federation/types/params.js.map +1 -0
- package/dist/v1/federation/utils.d.ts +2 -2
- package/dist/v1/normalization/batch-normalization/batch-normalizer.d.ts +37 -0
- package/dist/v1/normalization/batch-normalization/batch-normalizer.js +245 -0
- package/dist/v1/normalization/batch-normalization/batch-normalizer.js.map +1 -0
- package/dist/v1/normalization/batch-normalization/types/params.d.ts +6 -0
- package/dist/v1/normalization/batch-normalization/types/params.js +3 -0
- package/dist/v1/normalization/batch-normalization/types/params.js.map +1 -0
- package/dist/v1/normalization/normalization-factory.d.ts +20 -17
- package/dist/v1/normalization/normalization-factory.js +194 -424
- package/dist/v1/normalization/normalization-factory.js.map +1 -1
- package/dist/v1/normalization/{params.d.ts → types/params.d.ts} +6 -12
- package/dist/v1/normalization/types/params.js +3 -0
- package/dist/v1/normalization/types/params.js.map +1 -0
- package/dist/v1/normalization/types/results.d.ts +26 -0
- package/dist/v1/normalization/types/results.js +3 -0
- package/dist/v1/normalization/types/results.js.map +1 -0
- package/dist/v1/normalization/{types.d.ts → types/types.d.ts} +37 -19
- package/dist/v1/normalization/types/types.js +3 -0
- package/dist/v1/normalization/types/types.js.map +1 -0
- package/dist/v1/normalization/utils.d.ts +9 -2
- package/dist/v1/normalization/utils.js +308 -2
- package/dist/v1/normalization/utils.js.map +1 -1
- package/dist/v1/normalization/walkers.js +2 -1
- package/dist/v1/normalization/walkers.js.map +1 -1
- package/dist/v1/schema-building/type-merging.d.ts +1 -1
- package/dist/v1/utils/utils.d.ts +2 -3
- package/dist/v1/utils/utils.js +0 -17
- package/dist/v1/utils/utils.js.map +1 -1
- package/dist/v1/warnings/params.d.ts +6 -1
- package/dist/v1/warnings/warnings.d.ts +4 -1
- package/dist/v1/warnings/warnings.js +23 -0
- package/dist/v1/warnings/warnings.js.map +1 -1
- package/dist/validation/types/params.d.ts +22 -0
- package/dist/validation/types/params.js +3 -0
- package/dist/{v1/normalization → validation/types}/params.js.map +1 -1
- package/dist/validation/validation.d.ts +5 -0
- package/dist/validation/validation.js +213 -0
- package/dist/validation/validation.js.map +1 -0
- package/package.json +4 -3
- package/dist/schema-building/params.d.ts +0 -8
- package/dist/schema-building/types.js.map +0 -1
- package/dist/v1/normalization/directive-definition-data.js.map +0 -1
- package/dist/v1/normalization/types.js.map +0 -1
- /package/dist/{federation → directive-definition-data/types}/params.js +0 -0
- /package/dist/{errors → directive-definition-data/types}/types.js +0 -0
- /package/dist/{schema-building → errors/types}/params.js +0 -0
- /package/dist/{federation → errors/types}/types.js +0 -0
- /package/dist/{v1/federation → federation/types}/params.js +0 -0
- /package/dist/{v1/normalization → federation/types}/types.js +0 -0
- /package/dist/{v1/normalization → schema-building/types}/params.js +0 -0
- /package/dist/schema-building/{types.js → types/types.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-definition-data.js","sourceRoot":"","sources":["../../src/directive-definition-data/directive-definition-data.ts"],"names":[],"mappings":";;;AAAA,wCAAqD;AACrD,qCAA2D;AAC3D,gEAiFmC;AACnC,iFAiC+C;AAC/C,2DAAoG;AAEpG,mCAA+E;AAG/E,qHAAqH;AAExG,QAAA,6BAA6B,GAAG,IAAA,kCAA0B,EAAC;IACtE,SAAS,EAAE,IAAI,GAAG,CAAoB;QACpC,6BAAU;QACV,yCAAsB;QACtB,kCAAe;QACf,+BAAY;QACZ,+BAAY;KACb,CAAC;IACF,IAAI,EAAE,gCAAa;IACnB,IAAI,EAAE,gDAAwB;CAC/B,CAAC,CAAC;AAEU,QAAA,iCAAiC,GAAG,IAAA,kCAA0B,EAAC;IAC1E,kBAAkB,EAAE,IAAI,GAAG,CAAsC;QAC/D;YACE,uBAAI;YACJ,IAAA,gCAAwB,EAAC;gBACvB,SAAS,EAAE,IAAI,oCAAiB,EAAE;gBAClC,IAAI,EAAE,uBAAI;gBACV,aAAa,EAAE,cAAI,CAAC,sBAAsB;gBAC1C,QAAQ,EAAE,sCAAyB;aACpC,CAAC;SACH;KACF,CAAC;IACF,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,IAAI,GAAG,CAAoB,CAAC,+BAAY,CAAC,CAAC;IACrD,IAAI,EAAE,oCAAiB;IACvB,IAAI,EAAE,oDAA4B;IAClC,qBAAqB,EAAE,IAAI,GAAG,CAAe,CAAC,uBAAI,CAAC,CAAC;CACrD,CAAC,CAAC;AAEU,QAAA,qCAAqC,GAAG,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AQ,EAAE,sCAAyB;aACpC,CAAC;SACH;KACF,CAAC;IACF,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,IAAI,GAAG,CAAoB;QACpC,4CAAyB;QACzB,6BAAU;QACV,mCAAgB;QAChB,yCAAsB;QACtB,+CAA4B;QAC5B,qCAAkB;QAClB,kCAAe;QACf,+BAAY;QACZ,+BAAY;QACZ,8BAAW;KACZ,CAAC;IACF,IAAI,EAAE,sBAAG;IACT,IAAI,EAAE,sCAAc;IACpB,qBAAqB,EAAE,IAAI,GAAG,CAAe,CAAC,uBAAI,CAAC,CAAC;CACrD,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ArgumentName, type Directive, type DirectiveLocation, type DirectiveName, type SubgraphName } from '../../types/types';
|
|
2
|
+
import { type ConfigureDescriptionData } from '../../schema-building/types/types';
|
|
3
|
+
import { type ConstDirectiveNode, type ConstValueNode, type DirectiveDefinitionNode, type InputValueDefinitionNode, type Kind, type StringValueNode } from 'graphql/';
|
|
4
|
+
import { type InputNodeKind } from '../../utils/types';
|
|
5
|
+
import type { MutableInputValueNode, MutableTypeNode } from '../../schema-building/ast';
|
|
6
|
+
import { type DirectiveArgumentData, type DirectiveDefinitionData } from './types';
|
|
7
|
+
export type UpsertFederatedDirectiveDataParams = {
|
|
8
|
+
executableDirectiveDatasByName: Map<DirectiveName, Array<DirectiveDefinitionData>>;
|
|
9
|
+
existingDataByName: Map<DirectiveName, DirectiveDefinitionData>;
|
|
10
|
+
incomingDataByName: Map<DirectiveName, DirectiveDefinitionData>;
|
|
11
|
+
};
|
|
12
|
+
export type AddDirectiveArgumentDataByNodeParams = {
|
|
13
|
+
directiveName: DirectiveName;
|
|
14
|
+
node: InputValueDefinitionNode;
|
|
15
|
+
optionalArgumentNames: Set<ArgumentName>;
|
|
16
|
+
requiredArgumentNames: Set<ArgumentName>;
|
|
17
|
+
};
|
|
18
|
+
export type DirectiveArgumentDataParams = {
|
|
19
|
+
directive: Directive;
|
|
20
|
+
name: ArgumentName;
|
|
21
|
+
namedTypeKind: InputNodeKind | Kind.NULL;
|
|
22
|
+
typeNode: MutableTypeNode;
|
|
23
|
+
configureDescriptionDataBySubgraphName?: Map<SubgraphName, ConfigureDescriptionData>;
|
|
24
|
+
directivesByName?: Map<DirectiveName, Array<ConstDirectiveNode>>;
|
|
25
|
+
defaultValue?: ConstValueNode;
|
|
26
|
+
description?: StringValueNode;
|
|
27
|
+
node?: MutableInputValueNode;
|
|
28
|
+
requiredSubgraphNames?: Set<SubgraphName>;
|
|
29
|
+
subgraphNames?: Set<SubgraphName>;
|
|
30
|
+
};
|
|
31
|
+
export type DirectiveDefinitionDataParams = {
|
|
32
|
+
locations: Set<DirectiveLocation>;
|
|
33
|
+
name: DirectiveName;
|
|
34
|
+
node: DirectiveDefinitionNode;
|
|
35
|
+
argumentDataByName?: Map<ArgumentName, DirectiveArgumentData>;
|
|
36
|
+
description?: StringValueNode;
|
|
37
|
+
isComposed?: boolean;
|
|
38
|
+
isReferenced?: boolean;
|
|
39
|
+
isRepeatable?: boolean;
|
|
40
|
+
optionalArgumentNames?: Set<ArgumentName>;
|
|
41
|
+
requiredArgumentNames?: Set<ArgumentName>;
|
|
42
|
+
subgraphNames?: Set<SubgraphName>;
|
|
43
|
+
};
|
|
44
|
+
export type ExtractDirectiveArgumentDataParams = {
|
|
45
|
+
directiveName: DirectiveName;
|
|
46
|
+
errorMessages: Array<string>;
|
|
47
|
+
argumentNodes?: ReadonlyArray<InputValueDefinitionNode> | Array<InputValueDefinitionNode>;
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params.js","sourceRoot":"","sources":["../../../src/directive-definition-data/types/params.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type ArgumentName, type DirectiveLocation, type DirectiveName, type SubgraphName, type TypeName } from '../../types/types';
|
|
2
|
+
import type { ConstDirectiveNode, ConstValueNode, DirectiveDefinitionNode, Kind, StringValueNode } from 'graphql';
|
|
3
|
+
import type { InputNodeKind } from '../../utils/types';
|
|
4
|
+
import type { MutableInputValueNode, MutableTypeNode } from '../../schema-building/ast';
|
|
5
|
+
import { type ConfigureDescriptionData, type FederatedDirectivesData } from '../../schema-building/types/types';
|
|
6
|
+
export type DirectiveArgumentData = {
|
|
7
|
+
configureDescriptionDataBySubgraphName: Map<SubgraphName, ConfigureDescriptionData>;
|
|
8
|
+
directivesByName: Map<DirectiveName, Array<ConstDirectiveNode>>;
|
|
9
|
+
federatedCoords: string;
|
|
10
|
+
originalCoords: string;
|
|
11
|
+
includeDefaultValue: boolean;
|
|
12
|
+
kind: Kind.ARGUMENT;
|
|
13
|
+
name: ArgumentName;
|
|
14
|
+
namedTypeKind: InputNodeKind | Kind.NULL;
|
|
15
|
+
namedTypeName: TypeName;
|
|
16
|
+
node: MutableInputValueNode;
|
|
17
|
+
federatedDirectivesData: FederatedDirectivesData;
|
|
18
|
+
requiredSubgraphNames: Set<SubgraphName>;
|
|
19
|
+
subgraphNames: Set<SubgraphName>;
|
|
20
|
+
type: MutableTypeNode;
|
|
21
|
+
defaultValue?: ConstValueNode;
|
|
22
|
+
description?: StringValueNode;
|
|
23
|
+
};
|
|
24
|
+
export type DirectiveDefinitionData = {
|
|
25
|
+
argumentDataByName: Map<ArgumentName, DirectiveArgumentData>;
|
|
26
|
+
executableLocations: Set<DirectiveLocation>;
|
|
27
|
+
isComposed: boolean;
|
|
28
|
+
isReferenced: boolean;
|
|
29
|
+
isRepeatable: boolean;
|
|
30
|
+
locations: Set<DirectiveLocation>;
|
|
31
|
+
majorVersion: number;
|
|
32
|
+
minorVersion: number;
|
|
33
|
+
name: DirectiveName;
|
|
34
|
+
node: DirectiveDefinitionNode;
|
|
35
|
+
optionalArgumentNames: Set<ArgumentName>;
|
|
36
|
+
requiredArgumentNames: Set<ArgumentName>;
|
|
37
|
+
subgraphNames: Set<SubgraphName>;
|
|
38
|
+
description?: StringValueNode;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/directive-definition-data/types/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type DirectiveArgumentDataParams, type DirectiveDefinitionDataParams } from './types/params';
|
|
2
|
+
import { type DirectiveArgumentData, type DirectiveDefinitionData } from './types/types';
|
|
3
|
+
export declare function newDirectiveArgumentData({ configureDescriptionDataBySubgraphName, directive, defaultValue, description, directivesByName, name, namedTypeKind, node, requiredSubgraphNames, subgraphNames, typeNode, }: DirectiveArgumentDataParams): DirectiveArgumentData;
|
|
4
|
+
export declare function newDirectiveDefinitionData({ argumentDataByName, description, isComposed, isReferenced, isRepeatable, locations, name, node, optionalArgumentNames, requiredArgumentNames, subgraphNames, }: DirectiveDefinitionDataParams): DirectiveDefinitionData;
|
|
5
|
+
export declare function copyDirectiveDefinitionData({ argumentDataByName, description, executableLocations, isComposed, isReferenced, isRepeatable, locations, name, node, minorVersion, majorVersion, optionalArgumentNames, requiredArgumentNames, subgraphNames, }: DirectiveDefinitionData): DirectiveDefinitionData;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newDirectiveArgumentData = newDirectiveArgumentData;
|
|
4
|
+
exports.newDirectiveDefinitionData = newDirectiveDefinitionData;
|
|
5
|
+
exports.copyDirectiveDefinitionData = copyDirectiveDefinitionData;
|
|
6
|
+
const string_constants_1 = require("../utils/string-constants");
|
|
7
|
+
const graphql_1 = require("graphql");
|
|
8
|
+
const utils_1 = require("../schema-building/utils");
|
|
9
|
+
const ast_1 = require("../schema-building/ast");
|
|
10
|
+
const utils_2 = require("../ast/utils");
|
|
11
|
+
const utils_3 = require("../utils/utils");
|
|
12
|
+
function newDirectiveArgumentData({ configureDescriptionDataBySubgraphName, directive, defaultValue, description, directivesByName, name, namedTypeKind, node, requiredSubgraphNames, subgraphNames, typeNode, }) {
|
|
13
|
+
return {
|
|
14
|
+
configureDescriptionDataBySubgraphName: configureDescriptionDataBySubgraphName ?? new Map(),
|
|
15
|
+
directivesByName: directivesByName ?? new Map(),
|
|
16
|
+
federatedCoords: directive,
|
|
17
|
+
federatedDirectivesData: (0, utils_1.newFederatedDirectivesData)(),
|
|
18
|
+
includeDefaultValue: !!defaultValue,
|
|
19
|
+
kind: graphql_1.Kind.ARGUMENT,
|
|
20
|
+
name,
|
|
21
|
+
namedTypeKind,
|
|
22
|
+
namedTypeName: (0, ast_1.getTypeNodeNamedTypeName)(typeNode),
|
|
23
|
+
node: node ?? {
|
|
24
|
+
directives: [],
|
|
25
|
+
defaultValue,
|
|
26
|
+
description,
|
|
27
|
+
name: (0, utils_2.stringToNameNode)(name),
|
|
28
|
+
kind: graphql_1.Kind.INPUT_VALUE_DEFINITION,
|
|
29
|
+
type: typeNode,
|
|
30
|
+
},
|
|
31
|
+
originalCoords: directive,
|
|
32
|
+
requiredSubgraphNames: requiredSubgraphNames ?? new Set(),
|
|
33
|
+
subgraphNames: subgraphNames ?? new Set(),
|
|
34
|
+
type: typeNode,
|
|
35
|
+
defaultValue,
|
|
36
|
+
description,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function newDirectiveDefinitionData({ argumentDataByName, description, isComposed, isReferenced, isRepeatable, locations, name, node, optionalArgumentNames, requiredArgumentNames, subgraphNames, }) {
|
|
40
|
+
return {
|
|
41
|
+
argumentDataByName: argumentDataByName ?? new Map(),
|
|
42
|
+
description,
|
|
43
|
+
executableLocations: locations.intersection(string_constants_1.EXECUTABLE_DIRECTIVE_LOCATIONS),
|
|
44
|
+
isComposed: !!isComposed,
|
|
45
|
+
isReferenced: !!isReferenced,
|
|
46
|
+
isRepeatable: !!isRepeatable,
|
|
47
|
+
locations,
|
|
48
|
+
majorVersion: -1,
|
|
49
|
+
minorVersion: -1,
|
|
50
|
+
name,
|
|
51
|
+
optionalArgumentNames: optionalArgumentNames ?? new Set(),
|
|
52
|
+
node,
|
|
53
|
+
requiredArgumentNames: requiredArgumentNames ?? new Set(),
|
|
54
|
+
subgraphNames: subgraphNames ?? new Set(),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function copyDirectiveDefinitionData({ argumentDataByName, description, executableLocations, isComposed, isReferenced, isRepeatable, locations, name, node, minorVersion, majorVersion, optionalArgumentNames, requiredArgumentNames, subgraphNames, }) {
|
|
58
|
+
return {
|
|
59
|
+
argumentDataByName: (0, utils_3.copyObjectValueMap)(argumentDataByName),
|
|
60
|
+
description: description ? { ...description } : undefined,
|
|
61
|
+
executableLocations: new Set(executableLocations),
|
|
62
|
+
isComposed,
|
|
63
|
+
isReferenced,
|
|
64
|
+
isRepeatable,
|
|
65
|
+
locations: new Set(locations),
|
|
66
|
+
majorVersion,
|
|
67
|
+
minorVersion,
|
|
68
|
+
name,
|
|
69
|
+
node: { ...node },
|
|
70
|
+
optionalArgumentNames: new Set(optionalArgumentNames),
|
|
71
|
+
requiredArgumentNames: new Set(requiredArgumentNames),
|
|
72
|
+
subgraphNames: new Set(subgraphNames),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/directive-definition-data/utils.ts"],"names":[],"mappings":";;AAWA,4DAuCC;AAED,gEA6BC;AAED,kEAgCC;AAhHD,gEAA2E;AAC3E,qCAAwD;AACxD,oDAAsE;AACtE,gDAAkE;AAClE,wCAAgD;AAEhD,0CAAoD;AAEpD,SAAgB,wBAAwB,CAAC,EACvC,sCAAsC,EACtC,SAAS,EACT,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,IAAI,EACJ,aAAa,EACb,IAAI,EACJ,qBAAqB,EACrB,aAAa,EACb,QAAQ,GACoB;IAC5B,OAAO;QACL,sCAAsC,EACpC,sCAAsC,IAAI,IAAI,G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QACvE,IAAI;QACJ,qBAAqB,EAAE,qBAAqB,IAAI,IAAI,GAAG,EAAgB;QACvE,aAAa,EAAE,aAAa,IAAI,IAAI,GAAG,EAAgB;KACxD,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CAAC,EAC1C,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,GACW;IACxB,OAAO;QACL,kBAAkB,EAAE,IAAA,0BAAkB,EAAC,kBAAkB,CAAC;QAC1D,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS;QACzD,mBAAmB,EAAE,IAAI,GAAG,CAAC,mBAAmB,CAAC;QACjD,UAAU;QACV,YAAY;QACZ,YAAY;QACZ,SAAS,EAAE,IAAI,GAAG,CAAC,SAAS,CAAC;QAC7B,YAAY;QACZ,YAAY;QACZ,IAAI;QACJ,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE;QACjB,qBAAqB,EAAE,IAAI,GAAG,CAAC,qBAAqB,CAAC;QACrD,qBAAqB,EAAE,IAAI,GAAG,CAAC,qBAAqB,CAAC;QACrD,aAAa,EAAE,IAAI,GAAG,CAAC,aAAa,CAAC;KACtC,CAAC;AACJ,CAAC"}
|
package/dist/errors/errors.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Kind, type OperationTypeNode } from 'graphql';
|
|
2
|
-
import { type EntityInterfaceFederationData, type FieldData, type InputValueData, type ObjectDefinitionData } from '../schema-building/types';
|
|
3
|
-
import { type IncompatibleMergedTypesErrorParams, type IncompatibleParentTypeMergeErrorParams, type IncompatibleTypeWithProvidesErrorMessageParams, type InvalidNamedTypeErrorParams, type
|
|
2
|
+
import { type EntityInterfaceFederationData, type FieldData, type InputValueData, type ObjectDefinitionData } from '../schema-building/types/types';
|
|
3
|
+
import { type IncompatibleMergedTypesErrorParams, type IncompatibleParentTypeMergeErrorParams, type IncompatibleTypeWithProvidesErrorMessageParams, type InvalidArgumentValueErrorParams, type InvalidCustomDirectiveErrorParams, type InvalidDirectiveLocationErrorParams, type InvalidLinkDirectiveImportObjectErrorParams, type InvalidNamedTypeErrorParams, type InvalidRepeatedDirectiveErrorParams, type InvalidSubValueFieldLinkDirectiveImportErrorParams, type invalidVersionLinkDirectiveUrlErrorParams, type NonExternalConditionalFieldErrorParams, type OneOfRequiredFieldsErrorParams, type SemanticNonNullLevelsIndexOutOfBoundsErrorParams, type SemanticNonNullLevelsNonNullErrorParams } from './types/params';
|
|
4
4
|
import { type UnresolvableFieldData } from '../resolvability-graph/utils/utils';
|
|
5
5
|
import { type ImplementationErrors, type InvalidEntityInterface, type InvalidRequiredInputValueData } from '../utils/types';
|
|
6
|
-
import { type ArgumentName, type DirectiveArgumentCoords, type FieldName, type NodeType, type TypeName } from '../types/types';
|
|
6
|
+
import { type ArgumentName, type DirectiveArgumentCoords, type DirectiveLocation, type DirectiveName, type FieldName, type NodeType, type SubgraphName, type TypeName } from '../types/types';
|
|
7
|
+
import { type InvalidRootTypeFieldEventsDirectiveData } from './types/types';
|
|
7
8
|
export declare const minimumSubgraphRequirementError: Error;
|
|
8
9
|
export declare function multipleNamedTypeDefinitionError(typeName: string, firstTypeString: string, secondTypeString: string): Error;
|
|
9
|
-
export declare function incompatibleInputValueDefaultValueTypeError(prefix: string,
|
|
10
|
+
export declare function incompatibleInputValueDefaultValueTypeError(prefix: string, coords: string, typeString: string, defaultValue: string): Error;
|
|
10
11
|
export declare function incompatibleMergedTypesError({ actualType, coords, expectedType, isArgument, }: IncompatibleMergedTypesErrorParams): Error;
|
|
11
12
|
export declare function incompatibleInputValueDefaultValuesError(prefix: string, path: string, subgraphNames: string[], expectedDefaultValue: string, actualDefaultValue: string): Error;
|
|
12
13
|
export declare function incompatibleSharedEnumError(parentName: string): Error;
|
|
@@ -29,11 +30,17 @@ export declare function undefinedDirectiveError(directiveName: string, directive
|
|
|
29
30
|
export declare function undefinedTypeError(typeName: string): Error;
|
|
30
31
|
export declare function invalidRepeatedDirectiveErrorMessage(directiveName: string): string;
|
|
31
32
|
export declare function invalidDirectiveError(directiveName: string, directiveCoords: string, ordinal: string, errorMessages: Array<string>): Error;
|
|
32
|
-
export declare function
|
|
33
|
+
export declare function invalidCustomDirectiveError({ directiveCoords, directiveName, errors, ordinal, }: InvalidCustomDirectiveErrorParams): Error;
|
|
33
34
|
export declare function invalidDirectiveLocationErrorMessage(directiveName: string, location: string): string;
|
|
35
|
+
export declare function invalidDirectiveLocationError({ directiveCoords, directiveName, location, }: InvalidDirectiveLocationErrorParams): Error;
|
|
36
|
+
export declare function invalidRepeatedDirectiveError({ directiveCoords, directiveName, }: InvalidRepeatedDirectiveErrorParams): Error;
|
|
37
|
+
export declare function undefinedRequiredArgumentsError(requiredArgumentNames: Array<ArgumentName>): Error;
|
|
34
38
|
export declare function undefinedRequiredArgumentsErrorMessage(directiveName: string, requiredArgumentNames: string[], undefinedArgumentNames: string[]): string;
|
|
39
|
+
export declare function unexpectedArgumentProvisionError(argumentNames: Array<string>): Error;
|
|
35
40
|
export declare function unexpectedDirectiveArgumentErrorMessage(directiveName: string, argumentNames: string[]): string;
|
|
41
|
+
export declare function duplicateArgumentDefinitionError(argumentNames: Array<ArgumentName>): Error;
|
|
36
42
|
export declare function duplicateDirectiveArgumentDefinitionsErrorMessage(argumentNames: string[]): string;
|
|
43
|
+
export declare function invalidArgumentValueError({ argumentName, expectedTypeString, value, }: InvalidArgumentValueErrorParams): Error;
|
|
37
44
|
export declare function invalidArgumentValueErrorMessage(value: string, hostName: string, argumentName: ArgumentName, expectedTypeString: string): string;
|
|
38
45
|
export declare function maximumTypeNestingExceededError(path: string): Error;
|
|
39
46
|
export declare function unexpectedKindFatalError(typeName: string): Error;
|
|
@@ -42,10 +49,10 @@ export declare function unexpectedEdgeFatalError(typeName: string, edgeNames: Ar
|
|
|
42
49
|
export declare function incompatibleParentTypeMergeError({ existingData, incomingNodeType, incomingSubgraphName, }: IncompatibleParentTypeMergeErrorParams): Error;
|
|
43
50
|
export declare function unexpectedTypeNodeKindFatalError(typePath: string): Error;
|
|
44
51
|
export declare function invalidKeyFatalError<K>(key: K, mapName: string): Error;
|
|
45
|
-
export declare const subgraphValidationFailureError: Error;
|
|
46
52
|
export declare function unexpectedParentKindForChildError(parentTypeName: string, expectedTypeString: string, actualTypeString: string, childName: string, childTypeString: string): Error;
|
|
47
53
|
export declare function subgraphValidationError(subgraphName: string, errors: Error[]): Error;
|
|
48
|
-
export declare
|
|
54
|
+
export declare const noSubgraphNameError: Error;
|
|
55
|
+
export declare function duplicateSubgraphNamesError(subgraphNames: Array<SubgraphName>): Error;
|
|
49
56
|
export declare function invalidOperationTypeDefinitionError(existingOperationType: OperationTypeNode, typeName: string, newOperationType: OperationTypeNode): Error;
|
|
50
57
|
export declare function invalidRootTypeDefinitionError(operationType: OperationTypeNode, typeName: string, defaultTypeName: string): Error;
|
|
51
58
|
export declare function subgraphInvalidSyntaxError(error?: Error): Error;
|
|
@@ -68,7 +75,6 @@ export declare function unexpectedArgumentErrorMessage(fieldSet: string, fieldPa
|
|
|
68
75
|
export declare function argumentsInKeyFieldSetErrorMessage(fieldSet: string, fieldPath: string): string;
|
|
69
76
|
export declare function invalidProvidesOrRequiresDirectivesError(directiveName: string, errorMessages: string[]): Error;
|
|
70
77
|
export declare function duplicateFieldInFieldSetErrorMessage(fieldSet: string, fieldPath: string): string;
|
|
71
|
-
export declare function invalidConfigurationDataErrorMessage(typeName: string, fieldName: string, fieldSet: string): string;
|
|
72
78
|
export declare function incompatibleTypeWithProvidesErrorMessage({ fieldCoords, responseType, subgraphName, }: IncompatibleTypeWithProvidesErrorMessageParams): string;
|
|
73
79
|
export declare function invalidInlineFragmentTypeErrorMessage(fieldSet: string, fieldCoordinatesPath: Array<string>, typeConditionName: string, selectionSetTypeName: string): string;
|
|
74
80
|
export declare function inlineFragmentWithoutTypeConditionErrorMessage(fieldSet: string, fieldPath: string): string;
|
|
@@ -97,7 +103,6 @@ export declare function nonEntityObjectExtensionsEventDrivenErrorMessage(typeNam
|
|
|
97
103
|
export declare function nonKeyComposingObjectTypeNamesEventDrivenErrorMessage(typeNames: string[]): string;
|
|
98
104
|
export declare const invalidEdfsPublishResultObjectErrorMessage: string;
|
|
99
105
|
export declare const invalidNatsStreamConfigurationDefinitionErrorMessage: string;
|
|
100
|
-
export declare function invalidEdfsDirectiveName(directiveName: string): Error;
|
|
101
106
|
export declare function invalidImplementedTypeError(typeName: string, invalidImplementationTypeStringByTypeName: Map<string, string>): Error;
|
|
102
107
|
export declare function selfImplementationError(typeName: string): Error;
|
|
103
108
|
export declare function invalidEventSubjectErrorMessage(argumentName: string): string;
|
|
@@ -144,7 +149,9 @@ export declare function invalidExternalDirectiveError(fieldCoords: string): Erro
|
|
|
144
149
|
export declare function configureDescriptionNoDescriptionError(typeString: string, typeName: string): Error;
|
|
145
150
|
export declare function configureDescriptionPropagationError(coords: string, subgraphNames: Array<string>): Error;
|
|
146
151
|
export declare function duplicateDirectiveDefinitionArgumentErrorMessage(argumentNames: Array<string>): string;
|
|
152
|
+
export declare function duplicateDirectiveDefinitionLocationError(location: DirectiveLocation): Error;
|
|
147
153
|
export declare function duplicateDirectiveDefinitionLocationErrorMessage(locationName: string): string;
|
|
154
|
+
export declare function invalidDirectiveDefinitionLocationError(locationName: string): Error;
|
|
148
155
|
export declare function invalidDirectiveDefinitionLocationErrorMessage(locationName: string): string;
|
|
149
156
|
export declare function invalidDirectiveDefinitionError(directiveName: string, errorMessages: Array<string>): Error;
|
|
150
157
|
export declare function typeNameAlreadyProvidedErrorMessage(fieldCoords: string, subgraphName: string): string;
|
|
@@ -167,3 +174,22 @@ export declare function listSizeSizedFieldsOnListsErrorMessage(directiveCoords:
|
|
|
167
174
|
export declare function listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage(directiveCoords: DirectiveArgumentCoords): string;
|
|
168
175
|
export declare function listSizeAssumedSizeSlicingArgDefaultErrorMessage(directiveCoords: DirectiveArgumentCoords, slicingArgName: ArgumentName): string;
|
|
169
176
|
export declare function costOnInterfaceFieldErrorMessage(directiveCoords: DirectiveArgumentCoords): string;
|
|
177
|
+
export declare function unknownComposeDirectiveNameError(directiveName: DirectiveName): Error;
|
|
178
|
+
export declare function invalidComposeDirectiveNameError(directiveName: DirectiveName): Error;
|
|
179
|
+
export declare function noLeadingAtComposeDirectiveNameError(directiveName: DirectiveName): Error;
|
|
180
|
+
export declare function unimportedComposeDirectiveNameError(directiveName: DirectiveName): Error;
|
|
181
|
+
export declare const noLinkDirectiveUrlError: Error;
|
|
182
|
+
export declare function invalidLinkDirectiveUrlError(url: string): Error;
|
|
183
|
+
export declare function noPathLinkDirectiveUrlError(url: string): Error;
|
|
184
|
+
export declare function noFeatureNameLinkDirectiveUrlError(url: string): Error;
|
|
185
|
+
export declare function noVersionLinkDirectiveUrlError(url: string): Error;
|
|
186
|
+
export declare function invalidVersionLinkDirectiveUrlError({ url, versionString, }: invalidVersionLinkDirectiveUrlErrorParams): Error;
|
|
187
|
+
export declare function nonIterableLinkDirectiveImportError(kind: Kind): Error;
|
|
188
|
+
export declare function invalidFieldLinkDirectiveImportObjectError({ fieldName, value, }: InvalidSubValueFieldLinkDirectiveImportErrorParams): Error;
|
|
189
|
+
export declare function noNameFieldLinkDirectiveImportObjectError(value: string): Error;
|
|
190
|
+
export declare function unknownFieldLinkDirectiveImportObjectError({ fieldName, value, }: InvalidSubValueFieldLinkDirectiveImportErrorParams): Error;
|
|
191
|
+
export declare function invalidLinkDirectiveImportObjectError({ name, rename, }: InvalidLinkDirectiveImportObjectErrorParams): Error;
|
|
192
|
+
export declare function invalidSubValueLinkDirectiveImportError(index: number): Error;
|
|
193
|
+
export declare function nonEqualCoreFeatureComposeDirectiveError(directiveName: DirectiveName): Error;
|
|
194
|
+
export declare function nonEqualComposeDirectiveMajorVersionError(directiveName: DirectiveName): Error;
|
|
195
|
+
export declare function unknownSubgraphNameError(subgraphName: SubgraphName): Error;
|
package/dist/errors/errors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.semanticNonNullArgumentErrorMessage = exports.invalidEventProviderIdErrorMessage = exports.invalidNatsStreamConfigurationDefinitionErrorMessage = exports.invalidEdfsPublishResultObjectErrorMessage = exports.invalidNatsStreamInputErrorMessage = exports.inlineFragmentInFieldSetErrorMessage = exports.inaccessibleQueryRootTypeError = exports.
|
|
3
|
+
exports.noLinkDirectiveUrlError = exports.semanticNonNullArgumentErrorMessage = exports.invalidEventProviderIdErrorMessage = exports.invalidNatsStreamConfigurationDefinitionErrorMessage = exports.invalidEdfsPublishResultObjectErrorMessage = exports.invalidNatsStreamInputErrorMessage = exports.inlineFragmentInFieldSetErrorMessage = exports.inaccessibleQueryRootTypeError = exports.noSubgraphNameError = exports.minimumSubgraphRequirementError = void 0;
|
|
4
4
|
exports.multipleNamedTypeDefinitionError = multipleNamedTypeDefinitionError;
|
|
5
5
|
exports.incompatibleInputValueDefaultValueTypeError = incompatibleInputValueDefaultValueTypeError;
|
|
6
6
|
exports.incompatibleMergedTypesError = incompatibleMergedTypesError;
|
|
@@ -25,11 +25,17 @@ exports.undefinedDirectiveError = undefinedDirectiveError;
|
|
|
25
25
|
exports.undefinedTypeError = undefinedTypeError;
|
|
26
26
|
exports.invalidRepeatedDirectiveErrorMessage = invalidRepeatedDirectiveErrorMessage;
|
|
27
27
|
exports.invalidDirectiveError = invalidDirectiveError;
|
|
28
|
-
exports.
|
|
28
|
+
exports.invalidCustomDirectiveError = invalidCustomDirectiveError;
|
|
29
29
|
exports.invalidDirectiveLocationErrorMessage = invalidDirectiveLocationErrorMessage;
|
|
30
|
+
exports.invalidDirectiveLocationError = invalidDirectiveLocationError;
|
|
31
|
+
exports.invalidRepeatedDirectiveError = invalidRepeatedDirectiveError;
|
|
32
|
+
exports.undefinedRequiredArgumentsError = undefinedRequiredArgumentsError;
|
|
30
33
|
exports.undefinedRequiredArgumentsErrorMessage = undefinedRequiredArgumentsErrorMessage;
|
|
34
|
+
exports.unexpectedArgumentProvisionError = unexpectedArgumentProvisionError;
|
|
31
35
|
exports.unexpectedDirectiveArgumentErrorMessage = unexpectedDirectiveArgumentErrorMessage;
|
|
36
|
+
exports.duplicateArgumentDefinitionError = duplicateArgumentDefinitionError;
|
|
32
37
|
exports.duplicateDirectiveArgumentDefinitionsErrorMessage = duplicateDirectiveArgumentDefinitionsErrorMessage;
|
|
38
|
+
exports.invalidArgumentValueError = invalidArgumentValueError;
|
|
33
39
|
exports.invalidArgumentValueErrorMessage = invalidArgumentValueErrorMessage;
|
|
34
40
|
exports.maximumTypeNestingExceededError = maximumTypeNestingExceededError;
|
|
35
41
|
exports.unexpectedKindFatalError = unexpectedKindFatalError;
|
|
@@ -40,7 +46,7 @@ exports.unexpectedTypeNodeKindFatalError = unexpectedTypeNodeKindFatalError;
|
|
|
40
46
|
exports.invalidKeyFatalError = invalidKeyFatalError;
|
|
41
47
|
exports.unexpectedParentKindForChildError = unexpectedParentKindForChildError;
|
|
42
48
|
exports.subgraphValidationError = subgraphValidationError;
|
|
43
|
-
exports.
|
|
49
|
+
exports.duplicateSubgraphNamesError = duplicateSubgraphNamesError;
|
|
44
50
|
exports.invalidOperationTypeDefinitionError = invalidOperationTypeDefinitionError;
|
|
45
51
|
exports.invalidRootTypeDefinitionError = invalidRootTypeDefinitionError;
|
|
46
52
|
exports.subgraphInvalidSyntaxError = subgraphInvalidSyntaxError;
|
|
@@ -61,7 +67,6 @@ exports.unexpectedArgumentErrorMessage = unexpectedArgumentErrorMessage;
|
|
|
61
67
|
exports.argumentsInKeyFieldSetErrorMessage = argumentsInKeyFieldSetErrorMessage;
|
|
62
68
|
exports.invalidProvidesOrRequiresDirectivesError = invalidProvidesOrRequiresDirectivesError;
|
|
63
69
|
exports.duplicateFieldInFieldSetErrorMessage = duplicateFieldInFieldSetErrorMessage;
|
|
64
|
-
exports.invalidConfigurationDataErrorMessage = invalidConfigurationDataErrorMessage;
|
|
65
70
|
exports.incompatibleTypeWithProvidesErrorMessage = incompatibleTypeWithProvidesErrorMessage;
|
|
66
71
|
exports.invalidInlineFragmentTypeErrorMessage = invalidInlineFragmentTypeErrorMessage;
|
|
67
72
|
exports.inlineFragmentWithoutTypeConditionErrorMessage = inlineFragmentWithoutTypeConditionErrorMessage;
|
|
@@ -87,7 +92,6 @@ exports.nonExternalKeyFieldNamesEventDrivenErrorMessage = nonExternalKeyFieldNam
|
|
|
87
92
|
exports.nonKeyFieldNamesEventDrivenErrorMessage = nonKeyFieldNamesEventDrivenErrorMessage;
|
|
88
93
|
exports.nonEntityObjectExtensionsEventDrivenErrorMessage = nonEntityObjectExtensionsEventDrivenErrorMessage;
|
|
89
94
|
exports.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage = nonKeyComposingObjectTypeNamesEventDrivenErrorMessage;
|
|
90
|
-
exports.invalidEdfsDirectiveName = invalidEdfsDirectiveName;
|
|
91
95
|
exports.invalidImplementedTypeError = invalidImplementedTypeError;
|
|
92
96
|
exports.selfImplementationError = selfImplementationError;
|
|
93
97
|
exports.invalidEventSubjectErrorMessage = invalidEventSubjectErrorMessage;
|
|
@@ -133,7 +137,9 @@ exports.invalidExternalDirectiveError = invalidExternalDirectiveError;
|
|
|
133
137
|
exports.configureDescriptionNoDescriptionError = configureDescriptionNoDescriptionError;
|
|
134
138
|
exports.configureDescriptionPropagationError = configureDescriptionPropagationError;
|
|
135
139
|
exports.duplicateDirectiveDefinitionArgumentErrorMessage = duplicateDirectiveDefinitionArgumentErrorMessage;
|
|
140
|
+
exports.duplicateDirectiveDefinitionLocationError = duplicateDirectiveDefinitionLocationError;
|
|
136
141
|
exports.duplicateDirectiveDefinitionLocationErrorMessage = duplicateDirectiveDefinitionLocationErrorMessage;
|
|
142
|
+
exports.invalidDirectiveDefinitionLocationError = invalidDirectiveDefinitionLocationError;
|
|
137
143
|
exports.invalidDirectiveDefinitionLocationErrorMessage = invalidDirectiveDefinitionLocationErrorMessage;
|
|
138
144
|
exports.invalidDirectiveDefinitionError = invalidDirectiveDefinitionError;
|
|
139
145
|
exports.typeNameAlreadyProvidedErrorMessage = typeNameAlreadyProvidedErrorMessage;
|
|
@@ -155,6 +161,24 @@ exports.listSizeSizedFieldsOnListsErrorMessage = listSizeSizedFieldsOnListsError
|
|
|
155
161
|
exports.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage = listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage;
|
|
156
162
|
exports.listSizeAssumedSizeSlicingArgDefaultErrorMessage = listSizeAssumedSizeSlicingArgDefaultErrorMessage;
|
|
157
163
|
exports.costOnInterfaceFieldErrorMessage = costOnInterfaceFieldErrorMessage;
|
|
164
|
+
exports.unknownComposeDirectiveNameError = unknownComposeDirectiveNameError;
|
|
165
|
+
exports.invalidComposeDirectiveNameError = invalidComposeDirectiveNameError;
|
|
166
|
+
exports.noLeadingAtComposeDirectiveNameError = noLeadingAtComposeDirectiveNameError;
|
|
167
|
+
exports.unimportedComposeDirectiveNameError = unimportedComposeDirectiveNameError;
|
|
168
|
+
exports.invalidLinkDirectiveUrlError = invalidLinkDirectiveUrlError;
|
|
169
|
+
exports.noPathLinkDirectiveUrlError = noPathLinkDirectiveUrlError;
|
|
170
|
+
exports.noFeatureNameLinkDirectiveUrlError = noFeatureNameLinkDirectiveUrlError;
|
|
171
|
+
exports.noVersionLinkDirectiveUrlError = noVersionLinkDirectiveUrlError;
|
|
172
|
+
exports.invalidVersionLinkDirectiveUrlError = invalidVersionLinkDirectiveUrlError;
|
|
173
|
+
exports.nonIterableLinkDirectiveImportError = nonIterableLinkDirectiveImportError;
|
|
174
|
+
exports.invalidFieldLinkDirectiveImportObjectError = invalidFieldLinkDirectiveImportObjectError;
|
|
175
|
+
exports.noNameFieldLinkDirectiveImportObjectError = noNameFieldLinkDirectiveImportObjectError;
|
|
176
|
+
exports.unknownFieldLinkDirectiveImportObjectError = unknownFieldLinkDirectiveImportObjectError;
|
|
177
|
+
exports.invalidLinkDirectiveImportObjectError = invalidLinkDirectiveImportObjectError;
|
|
178
|
+
exports.invalidSubValueLinkDirectiveImportError = invalidSubValueLinkDirectiveImportError;
|
|
179
|
+
exports.nonEqualCoreFeatureComposeDirectiveError = nonEqualCoreFeatureComposeDirectiveError;
|
|
180
|
+
exports.nonEqualComposeDirectiveMajorVersionError = nonEqualComposeDirectiveMajorVersionError;
|
|
181
|
+
exports.unknownSubgraphNameError = unknownSubgraphNameError;
|
|
158
182
|
const graphql_1 = require("graphql");
|
|
159
183
|
const string_constants_1 = require("../utils/string-constants");
|
|
160
184
|
const integer_constants_1 = require("../utils/integer-constants");
|
|
@@ -166,8 +190,8 @@ function multipleNamedTypeDefinitionError(typeName, firstTypeString, secondTypeS
|
|
|
166
190
|
return new Error(`The named type "${typeName}" is defined as both types "${firstTypeString}" and "${secondTypeString}".` +
|
|
167
191
|
`\nHowever, there must be only one type named "${typeName}".`);
|
|
168
192
|
}
|
|
169
|
-
function incompatibleInputValueDefaultValueTypeError(prefix,
|
|
170
|
-
return new Error(`The ${prefix} of type "${typeString}" defined on
|
|
193
|
+
function incompatibleInputValueDefaultValueTypeError(prefix, coords, typeString, defaultValue) {
|
|
194
|
+
return new Error(`The ${prefix} of type "${typeString}" defined on coords "${coords}" is` +
|
|
171
195
|
` incompatible with the default value of "${defaultValue}".`);
|
|
172
196
|
}
|
|
173
197
|
function incompatibleMergedTypesError({ actualType, coords, expectedType, isArgument, }) {
|
|
@@ -281,13 +305,32 @@ function invalidDirectiveError(directiveName, directiveCoords, ordinal, errorMes
|
|
|
281
305
|
(errorMessages.length > 1 ? 's:\n' : ':\n') +
|
|
282
306
|
errorMessages.join('\n'));
|
|
283
307
|
}
|
|
284
|
-
function
|
|
285
|
-
return new Error(`The
|
|
286
|
-
`
|
|
308
|
+
function invalidCustomDirectiveError({ directiveCoords, directiveName, errors, ordinal, }) {
|
|
309
|
+
return new Error(`The ${ordinal} post-federation instance of the directive "@${directiveName}" declared on coordinates` +
|
|
310
|
+
` "${directiveCoords}" is invalid for the following reason` +
|
|
311
|
+
(errors.length > 1 ? 's:\n' : ':\n - ') +
|
|
312
|
+
errors.map((error) => error.message).join('\n - '));
|
|
287
313
|
}
|
|
288
314
|
function invalidDirectiveLocationErrorMessage(directiveName, location) {
|
|
289
315
|
return ` The definition for "@${directiveName}" does not define "${location}" as a valid location.`;
|
|
290
316
|
}
|
|
317
|
+
function invalidDirectiveLocationError({ directiveCoords, directiveName, location, }) {
|
|
318
|
+
return new Error(`The directive "@${directiveName}" declared on "${directiveCoords}" is invalid because the` +
|
|
319
|
+
` directive definition for "@${directiveName}" does not define "${location}" as a valid location.`);
|
|
320
|
+
}
|
|
321
|
+
function invalidRepeatedDirectiveError({ directiveCoords, directiveName, }) {
|
|
322
|
+
return new Error(`The multiple instances of directive "@${directiveName}" declared on "${directiveCoords}" are invalid because` +
|
|
323
|
+
` the directive definition for "@${directiveName}" does not define it as repeatable.`);
|
|
324
|
+
}
|
|
325
|
+
function undefinedRequiredArgumentsError(requiredArgumentNames) {
|
|
326
|
+
return new Error(` The following ` +
|
|
327
|
+
requiredArgumentNames.length +
|
|
328
|
+
` required argument` +
|
|
329
|
+
(requiredArgumentNames.length > 1 ? 's are' : ' is') +
|
|
330
|
+
` not defined: "` +
|
|
331
|
+
requiredArgumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
332
|
+
`"`);
|
|
333
|
+
}
|
|
291
334
|
function undefinedRequiredArgumentsErrorMessage(directiveName, requiredArgumentNames, undefinedArgumentNames) {
|
|
292
335
|
let message = ` The definition for "@${directiveName}" defines the following ` +
|
|
293
336
|
requiredArgumentNames.length +
|
|
@@ -307,6 +350,13 @@ function undefinedRequiredArgumentsErrorMessage(directiveName, requiredArgumentN
|
|
|
307
350
|
undefinedArgumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
308
351
|
`".`);
|
|
309
352
|
}
|
|
353
|
+
function unexpectedArgumentProvisionError(argumentNames) {
|
|
354
|
+
return new Error(`The following unexpected argument` +
|
|
355
|
+
(argumentNames.length > 1 ? 's are' : ' is') +
|
|
356
|
+
` provided: "` +
|
|
357
|
+
argumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
358
|
+
`".`);
|
|
359
|
+
}
|
|
310
360
|
function unexpectedDirectiveArgumentErrorMessage(directiveName, argumentNames) {
|
|
311
361
|
return (` The definition for "@${directiveName}" does not define the following argument` +
|
|
312
362
|
(argumentNames.length > 1 ? 's that are' : ' that is') +
|
|
@@ -314,6 +364,13 @@ function unexpectedDirectiveArgumentErrorMessage(directiveName, argumentNames) {
|
|
|
314
364
|
argumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
315
365
|
`".`);
|
|
316
366
|
}
|
|
367
|
+
function duplicateArgumentDefinitionError(argumentNames) {
|
|
368
|
+
return new Error(`The following argument` +
|
|
369
|
+
(argumentNames.length > 1 ? 's are' : ' is') +
|
|
370
|
+
` defined more than once: "` +
|
|
371
|
+
argumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
372
|
+
`".`);
|
|
373
|
+
}
|
|
317
374
|
function duplicateDirectiveArgumentDefinitionsErrorMessage(argumentNames) {
|
|
318
375
|
return (` The following argument` +
|
|
319
376
|
(argumentNames.length > 1 ? 's are' : ' is') +
|
|
@@ -321,6 +378,9 @@ function duplicateDirectiveArgumentDefinitionsErrorMessage(argumentNames) {
|
|
|
321
378
|
argumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
322
379
|
`"`);
|
|
323
380
|
}
|
|
381
|
+
function invalidArgumentValueError({ argumentName, expectedTypeString, value, }) {
|
|
382
|
+
return new Error(` The value "${value}" provided to argument "${argumentName}" is not a valid "${expectedTypeString}" type.`);
|
|
383
|
+
}
|
|
324
384
|
function invalidArgumentValueErrorMessage(value, hostName, argumentName, expectedTypeString) {
|
|
325
385
|
return ` The value "${value}" provided to argument "${hostName}(${argumentName}: ...)" is not a valid "${expectedTypeString}" type.`;
|
|
326
386
|
}
|
|
@@ -357,7 +417,6 @@ function unexpectedTypeNodeKindFatalError(typePath) {
|
|
|
357
417
|
function invalidKeyFatalError(key, mapName) {
|
|
358
418
|
return new Error(`Fatal: Expected key "${key}" to exist in the map "${mapName}".`);
|
|
359
419
|
}
|
|
360
|
-
exports.subgraphValidationFailureError = new Error(` Fatal: Subgraph validation did not return a valid AST.`);
|
|
361
420
|
function unexpectedParentKindForChildError(parentTypeName, expectedTypeString, actualTypeString, childName, childTypeString) {
|
|
362
421
|
return new Error(` Expected "${parentTypeName}" to be type "${expectedTypeString}" but received "${actualTypeString}"` +
|
|
363
422
|
` when handling child "${childName}" of type "${childTypeString}".`);
|
|
@@ -368,9 +427,10 @@ function subgraphValidationError(subgraphName, errors) {
|
|
|
368
427
|
`:\n` +
|
|
369
428
|
errors.map((error) => error.message).join('\n'));
|
|
370
429
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
430
|
+
exports.noSubgraphNameError = new Error(`Federation could not be attempted because at least one subgraph does not define a name.`);
|
|
431
|
+
function duplicateSubgraphNamesError(subgraphNames) {
|
|
432
|
+
return new Error(`Federation could not be attempted because the following subgraph names are defined more` +
|
|
433
|
+
` than once: "${subgraphNames.join(string_constants_1.QUOTATION_JOIN)}".`);
|
|
374
434
|
}
|
|
375
435
|
function invalidOperationTypeDefinitionError(existingOperationType, typeName, newOperationType) {
|
|
376
436
|
return new Error(`The schema definition defines the "${existingOperationType}" operation as type "${typeName}".` +
|
|
@@ -553,10 +613,6 @@ function duplicateFieldInFieldSetErrorMessage(fieldSet, fieldPath) {
|
|
|
553
613
|
return (` The following field set is invalid:\n "${fieldSet}"\n` +
|
|
554
614
|
` This is because "${fieldPath}" was included in the field set more than once.`);
|
|
555
615
|
}
|
|
556
|
-
function invalidConfigurationDataErrorMessage(typeName, fieldName, fieldSet) {
|
|
557
|
-
return (` Expected ConfigurationData to exist for type "${typeName}" when adding field "${fieldName}"` +
|
|
558
|
-
` while validating field set "${fieldSet}".`);
|
|
559
|
-
}
|
|
560
616
|
function incompatibleTypeWithProvidesErrorMessage({ fieldCoords, responseType, subgraphName, }) {
|
|
561
617
|
return (` A "@provides" directive is declared on field "${fieldCoords}" in subgraph "${subgraphName}".\n` +
|
|
562
618
|
` However, the response type "${responseType}" is not an Object nor Interface.`);
|
|
@@ -826,9 +882,6 @@ exports.invalidEdfsPublishResultObjectErrorMessage = ` The object "edfs__Publish
|
|
|
826
882
|
exports.invalidNatsStreamConfigurationDefinitionErrorMessage = ` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must` +
|
|
827
883
|
` instead have the following definition:\n input edfs__NatsStreamConfiguration {\n consumerInactiveThreshold: Int! = 30\n` +
|
|
828
884
|
` consumerName: String!\n streamName: String!\n }`;
|
|
829
|
-
function invalidEdfsDirectiveName(directiveName) {
|
|
830
|
-
return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${directiveName}".`);
|
|
831
|
-
}
|
|
832
885
|
function invalidImplementedTypeError(typeName, invalidImplementationTypeStringByTypeName) {
|
|
833
886
|
let message = ` Only interfaces can be implemented. However, the type "${typeName}" attempts to implement` +
|
|
834
887
|
` the following invalid type` +
|
|
@@ -1111,9 +1164,15 @@ function duplicateDirectiveDefinitionArgumentErrorMessage(argumentNames) {
|
|
|
1111
1164
|
argumentNames.join(string_constants_1.QUOTATION_JOIN) +
|
|
1112
1165
|
'"');
|
|
1113
1166
|
}
|
|
1167
|
+
function duplicateDirectiveDefinitionLocationError(location) {
|
|
1168
|
+
return new Error(`The location "${location}" is defined multiple times.`);
|
|
1169
|
+
}
|
|
1114
1170
|
function duplicateDirectiveDefinitionLocationErrorMessage(locationName) {
|
|
1115
1171
|
return `- The location "${locationName}" is defined multiple times.`;
|
|
1116
1172
|
}
|
|
1173
|
+
function invalidDirectiveDefinitionLocationError(locationName) {
|
|
1174
|
+
return new Error(`"${locationName}" is not a valid directive location.`);
|
|
1175
|
+
}
|
|
1117
1176
|
function invalidDirectiveDefinitionLocationErrorMessage(locationName) {
|
|
1118
1177
|
return `- "${locationName}" is not a valid directive location.`;
|
|
1119
1178
|
}
|
|
@@ -1223,4 +1282,65 @@ function costOnInterfaceFieldErrorMessage(directiveCoords) {
|
|
|
1223
1282
|
` The cost of an interface field is derived from the costs of the corresponding fields` +
|
|
1224
1283
|
` on the concrete types that implement the interface.`);
|
|
1225
1284
|
}
|
|
1285
|
+
function unknownComposeDirectiveNameError(directiveName) {
|
|
1286
|
+
return new Error(` A "@composeDirective" directive defines the "name" argument value "${directiveName}" without a` +
|
|
1287
|
+
` corresponding directive definition in the schema.`);
|
|
1288
|
+
}
|
|
1289
|
+
function invalidComposeDirectiveNameError(directiveName) {
|
|
1290
|
+
return new Error(` A "@composeDirective" directive defines the "name" argument value "${directiveName}", which is not a` +
|
|
1291
|
+
` custom, user-defined directive.`);
|
|
1292
|
+
}
|
|
1293
|
+
function noLeadingAtComposeDirectiveNameError(directiveName) {
|
|
1294
|
+
return new Error(`A "@composeDirective" directive defines the "name" argument value "${directiveName}" without a leading "@".`);
|
|
1295
|
+
}
|
|
1296
|
+
function unimportedComposeDirectiveNameError(directiveName) {
|
|
1297
|
+
return new Error(` A "@composeDirective" directive defines the "name" argument value "${directiveName}",` +
|
|
1298
|
+
` which is not a member of a core feature (imported through a "@link" directive).`);
|
|
1299
|
+
}
|
|
1300
|
+
exports.noLinkDirectiveUrlError = new Error(` A "@link" directive was defined without a "url" argument.`);
|
|
1301
|
+
function invalidLinkDirectiveUrlError(url) {
|
|
1302
|
+
return new Error(` A "@link" directive defines the "url" argument value with invalid URL "${url}".`);
|
|
1303
|
+
}
|
|
1304
|
+
function noPathLinkDirectiveUrlError(url) {
|
|
1305
|
+
return new Error(` A "@link" directive defines the "url" argument value without a path in URL "${url}".`);
|
|
1306
|
+
}
|
|
1307
|
+
function noFeatureNameLinkDirectiveUrlError(url) {
|
|
1308
|
+
return new Error(` A "@link" directive defines the "url" argument value without a feature name component in URL "${url}".`);
|
|
1309
|
+
}
|
|
1310
|
+
function noVersionLinkDirectiveUrlError(url) {
|
|
1311
|
+
return new Error(` A "@link" directive defines the "url" argument value without a version component in URL "${url}".`);
|
|
1312
|
+
}
|
|
1313
|
+
function invalidVersionLinkDirectiveUrlError({ url, versionString, }) {
|
|
1314
|
+
return new Error(` A "@link" directive defines the "url" argument value with invalid version string "${versionString}"` +
|
|
1315
|
+
` (not of the form "v1.2") in URL "${url}".`);
|
|
1316
|
+
}
|
|
1317
|
+
function nonIterableLinkDirectiveImportError(kind) {
|
|
1318
|
+
return new Error(` A "@link" directive defines the "import" value with non-iterable kind "${kind}"`);
|
|
1319
|
+
}
|
|
1320
|
+
function invalidFieldLinkDirectiveImportObjectError({ fieldName, value, }) {
|
|
1321
|
+
return new Error(` A "@link" directive defines invalid sub-value "${value}": field "${fieldName}" must be a string.`);
|
|
1322
|
+
}
|
|
1323
|
+
function noNameFieldLinkDirectiveImportObjectError(value) {
|
|
1324
|
+
return new Error(` A "@link" directive defines invalid sub-value "${value}": required field "name" is missing.`);
|
|
1325
|
+
}
|
|
1326
|
+
function unknownFieldLinkDirectiveImportObjectError({ fieldName, value, }) {
|
|
1327
|
+
return new Error(` A "@link" directive defines invalid sub-value "${value}": unknown field "${fieldName}".`);
|
|
1328
|
+
}
|
|
1329
|
+
function invalidLinkDirectiveImportObjectError({ name, rename, }) {
|
|
1330
|
+
return new Error(` A "@link" directive imports "${name}" and renames to "${rename}": if an import is not a` +
|
|
1331
|
+
` directive, neither value should begin with "@"; otherwise, both values should be referenced with a leading "@".`);
|
|
1332
|
+
}
|
|
1333
|
+
function invalidSubValueLinkDirectiveImportError(index) {
|
|
1334
|
+
return new Error(` A "@link" directive defines invalid sub-value at index ${index}:` +
|
|
1335
|
+
` values should be either strings or input object values of the form { name: "<importedElement>", as: "<alias>" }.`);
|
|
1336
|
+
}
|
|
1337
|
+
function nonEqualCoreFeatureComposeDirectiveError(directiveName) {
|
|
1338
|
+
return new Error(` Composed directive "${directiveName}" is not linked by the same core feature in every subgraph.`);
|
|
1339
|
+
}
|
|
1340
|
+
function nonEqualComposeDirectiveMajorVersionError(directiveName) {
|
|
1341
|
+
return new Error(` Composed directive "${directiveName}" defines a major version mismatch across subgraphs.`);
|
|
1342
|
+
}
|
|
1343
|
+
function unknownSubgraphNameError(subgraphName) {
|
|
1344
|
+
return new Error(`Internal Error: Expected subgraph "${subgraphName}" to be a valid record.`);
|
|
1345
|
+
}
|
|
1226
1346
|
//# sourceMappingURL=errors.js.map
|