@graphql-inspector/cli 3.4.13-alpha-20230417141810-fd2d33e7 → 3.4.13

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.
Files changed (98) hide show
  1. package/README.md +3 -3
  2. package/cjs/action/src/run.js +1 -1
  3. package/cjs/commands/commands/src/index.js +7 -8
  4. package/cjs/commands/diff/src/index.js +6 -6
  5. package/cjs/commands/docs/src/index.js +1 -3
  6. package/cjs/commands/serve/src/fake.js +4 -4
  7. package/cjs/commands/serve/src/index.js +8 -7
  8. package/cjs/commands/similar/src/index.js +2 -2
  9. package/cjs/commands/validate/src/index.js +4 -4
  10. package/cjs/core/src/ast/document.js +2 -2
  11. package/cjs/core/src/coverage/index.js +7 -7
  12. package/cjs/core/src/diff/changes/argument.js +80 -19
  13. package/cjs/core/src/diff/changes/directive.js +208 -39
  14. package/cjs/core/src/diff/changes/enum.js +123 -25
  15. package/cjs/core/src/diff/changes/field.js +260 -69
  16. package/cjs/core/src/diff/changes/input.js +153 -34
  17. package/cjs/core/src/diff/changes/object.js +37 -9
  18. package/cjs/core/src/diff/changes/schema.js +55 -13
  19. package/cjs/core/src/diff/changes/type.js +106 -19
  20. package/cjs/core/src/diff/changes/union.js +35 -7
  21. package/cjs/core/src/diff/directive.js +2 -4
  22. package/cjs/core/src/diff/rules/consider-usage.js +3 -3
  23. package/cjs/core/src/index.js +63 -1
  24. package/cjs/core/src/similar/index.js +2 -2
  25. package/cjs/core/src/utils/compare.js +3 -9
  26. package/cjs/core/src/utils/is-deprecated.js +1 -1
  27. package/cjs/core/src/utils/string.js +5 -2
  28. package/cjs/core/src/validate/complexity.js +1 -1
  29. package/cjs/core/src/validate/directive-count.js +1 -1
  30. package/cjs/core/src/validate/index.js +12 -11
  31. package/cjs/core/src/validate/query-depth.js +1 -1
  32. package/cjs/github/src/helpers/config.js +6 -2
  33. package/cjs/github/src/helpers/utils.js +1 -1
  34. package/cjs/loaders/loaders/src/index.js +1 -2
  35. package/esm/action/src/run.js +1 -1
  36. package/esm/commands/commands/src/index.js +7 -8
  37. package/esm/commands/diff/src/index.js +6 -6
  38. package/esm/commands/docs/src/index.js +1 -4
  39. package/esm/commands/serve/src/fake.js +4 -4
  40. package/esm/commands/serve/src/index.js +8 -7
  41. package/esm/commands/similar/src/index.js +2 -2
  42. package/esm/commands/validate/src/index.js +4 -4
  43. package/esm/core/src/ast/document.js +2 -2
  44. package/esm/core/src/coverage/index.js +7 -7
  45. package/esm/core/src/diff/changes/argument.js +77 -19
  46. package/esm/core/src/diff/changes/directive.js +198 -39
  47. package/esm/core/src/diff/changes/enum.js +117 -25
  48. package/esm/core/src/diff/changes/field.js +240 -62
  49. package/esm/core/src/diff/changes/input.js +145 -34
  50. package/esm/core/src/diff/changes/object.js +35 -9
  51. package/esm/core/src/diff/changes/schema.js +50 -11
  52. package/esm/core/src/diff/changes/type.js +100 -19
  53. package/esm/core/src/diff/changes/union.js +33 -7
  54. package/esm/core/src/diff/directive.js +2 -4
  55. package/esm/core/src/diff/rules/consider-usage.js +3 -3
  56. package/esm/core/src/index.js +9 -0
  57. package/esm/core/src/similar/index.js +2 -2
  58. package/esm/core/src/utils/compare.js +3 -9
  59. package/esm/core/src/utils/is-deprecated.js +1 -1
  60. package/esm/core/src/utils/string.js +5 -2
  61. package/esm/core/src/validate/complexity.js +1 -1
  62. package/esm/core/src/validate/directive-count.js +1 -1
  63. package/esm/core/src/validate/index.js +12 -11
  64. package/esm/core/src/validate/query-depth.js +1 -1
  65. package/esm/github/src/helpers/config.js +6 -2
  66. package/esm/github/src/helpers/utils.js +1 -1
  67. package/esm/loaders/loaders/src/index.js +1 -2
  68. package/package.json +20 -20
  69. package/typings/core/src/diff/changes/argument.d.cts +52 -4
  70. package/typings/core/src/diff/changes/argument.d.ts +52 -4
  71. package/typings/core/src/diff/changes/change.d.cts +500 -2
  72. package/typings/core/src/diff/changes/change.d.ts +500 -2
  73. package/typings/core/src/diff/changes/directive.d.cts +147 -11
  74. package/typings/core/src/diff/changes/directive.d.ts +147 -11
  75. package/typings/core/src/diff/changes/enum.d.cts +75 -7
  76. package/typings/core/src/diff/changes/enum.d.ts +75 -7
  77. package/typings/core/src/diff/changes/field.d.cts +189 -14
  78. package/typings/core/src/diff/changes/field.d.ts +189 -14
  79. package/typings/core/src/diff/changes/input.d.cts +112 -8
  80. package/typings/core/src/diff/changes/input.d.ts +112 -8
  81. package/typings/core/src/diff/changes/object.d.cts +29 -3
  82. package/typings/core/src/diff/changes/object.d.ts +29 -3
  83. package/typings/core/src/diff/changes/schema.d.cts +37 -4
  84. package/typings/core/src/diff/changes/schema.d.ts +37 -4
  85. package/typings/core/src/diff/changes/type.d.cts +80 -7
  86. package/typings/core/src/diff/changes/type.d.ts +80 -7
  87. package/typings/core/src/diff/changes/union.d.cts +29 -3
  88. package/typings/core/src/diff/changes/union.d.ts +29 -3
  89. package/typings/core/src/index.d.cts +10 -0
  90. package/typings/core/src/index.d.ts +10 -0
  91. package/typings/core/src/utils/is-deprecated.d.cts +1 -1
  92. package/typings/core/src/utils/is-deprecated.d.ts +1 -1
  93. package/typings/core/src/utils/string.d.cts +1 -1
  94. package/typings/core/src/utils/string.d.ts +1 -1
  95. package/typings/core/utils/testing.d.cts +2 -2
  96. package/typings/core/utils/testing.d.ts +2 -2
  97. package/typings/github/src/helpers/utils.d.cts +1 -1
  98. package/typings/github/src/helpers/utils.d.ts +1 -1
@@ -1,15 +1,190 @@
1
1
  import { GraphQLArgument, GraphQLField, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change;
4
- export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change;
5
- export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change;
6
- export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
7
- export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
8
- export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
9
- export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
10
- export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change;
11
- export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
12
- export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change;
13
- export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change;
14
- export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change;
15
- export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change;
2
+ import { Change, ChangeType, CriticalityLevel, FieldAddedChange, FieldArgumentAddedChange, FieldArgumentRemovedChange, FieldDeprecationAddedChange, FieldDeprecationReasonAddedChange, FieldDeprecationReasonChangedChange, FieldDeprecationReasonRemovedChange, FieldDeprecationRemovedChange, FieldDescriptionAddedChange, FieldDescriptionChangedChange, FieldDescriptionRemovedChange, FieldRemovedChange, FieldTypeChangedChange } from './change.js';
3
+ export declare function fieldRemovedFromMeta(args: FieldRemovedChange): {
4
+ readonly type: ChangeType.FieldRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing a deprecated field is a breaking change. Before removing it, you may want to look at the field's usage to see the impact of removing the field." | "Removing a field is a breaking change. It is preferable to deprecate the field before removing it.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ typeName: string;
12
+ removedFieldName: string;
13
+ isRemovedFieldDeprecated: boolean;
14
+ typeType: string;
15
+ };
16
+ readonly path: string;
17
+ };
18
+ export declare function fieldRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldRemoved>;
19
+ export declare function fieldAddedFromMeta(args: FieldAddedChange): {
20
+ readonly type: ChangeType.FieldAdded;
21
+ readonly criticality: {
22
+ readonly level: CriticalityLevel.NonBreaking;
23
+ };
24
+ readonly message: string;
25
+ readonly meta: {
26
+ typeName: string;
27
+ addedFieldName: string;
28
+ typeType: string;
29
+ };
30
+ readonly path: string;
31
+ };
32
+ export declare function fieldAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>): Change<ChangeType.FieldAdded>;
33
+ export declare function fieldDescriptionChangedFromMeta(args: FieldDescriptionChangedChange): {
34
+ readonly type: ChangeType.FieldDescriptionChanged;
35
+ readonly criticality: {
36
+ readonly level: CriticalityLevel.NonBreaking;
37
+ };
38
+ readonly message: string;
39
+ readonly meta: {
40
+ typeName: string;
41
+ fieldName: string;
42
+ oldDescription: string;
43
+ newDescription: string;
44
+ };
45
+ readonly path: string;
46
+ };
47
+ export declare function fieldDescriptionChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionChanged>;
48
+ export declare function fieldDescriptionAddedFromMeta(args: FieldDescriptionAddedChange): {
49
+ readonly type: ChangeType.FieldDescriptionAdded;
50
+ readonly criticality: {
51
+ readonly level: CriticalityLevel.NonBreaking;
52
+ };
53
+ readonly message: string;
54
+ readonly meta: {
55
+ typeName: string;
56
+ fieldName: string;
57
+ addedDescription: string;
58
+ };
59
+ readonly path: string;
60
+ };
61
+ export declare function fieldDescriptionAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionAdded>;
62
+ export declare function fieldDescriptionRemovedFromMeta(args: FieldDescriptionRemovedChange): {
63
+ readonly type: ChangeType.FieldDescriptionRemoved;
64
+ readonly criticality: {
65
+ readonly level: CriticalityLevel.NonBreaking;
66
+ };
67
+ readonly message: string;
68
+ readonly meta: {
69
+ typeName: string;
70
+ fieldName: string;
71
+ };
72
+ readonly path: string;
73
+ };
74
+ export declare function fieldDescriptionRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDescriptionRemoved>;
75
+ export declare function fieldDeprecationAddedFromMeta(args: FieldDeprecationAddedChange): {
76
+ readonly type: ChangeType.FieldDeprecationAdded;
77
+ readonly criticality: {
78
+ readonly level: CriticalityLevel.NonBreaking;
79
+ };
80
+ readonly message: string;
81
+ readonly meta: {
82
+ typeName: string;
83
+ fieldName: string;
84
+ };
85
+ readonly path: string;
86
+ };
87
+ export declare function fieldDeprecationAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationAdded>;
88
+ export declare function fieldDeprecationRemovedFromMeta(args: FieldDeprecationRemovedChange): {
89
+ readonly type: ChangeType.FieldDeprecationRemoved;
90
+ readonly criticality: {
91
+ readonly level: CriticalityLevel.Dangerous;
92
+ };
93
+ readonly message: `Field '${string}.${string}' is no longer deprecated`;
94
+ readonly meta: {
95
+ typeName: string;
96
+ fieldName: string;
97
+ };
98
+ readonly path: string;
99
+ };
100
+ export declare function fieldDeprecationRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationRemoved>;
101
+ export declare function fieldDeprecationReasonChangedFromMeta(args: FieldDeprecationReasonChangedChange): {
102
+ readonly type: ChangeType.FieldDeprecationReasonChanged;
103
+ readonly criticality: {
104
+ readonly level: CriticalityLevel.NonBreaking;
105
+ };
106
+ readonly message: string;
107
+ readonly meta: {
108
+ typeName: string;
109
+ fieldName: string;
110
+ oldDeprecationReason: string;
111
+ newDeprecationReason: string;
112
+ };
113
+ readonly path: string;
114
+ };
115
+ export declare function fieldDeprecationReasonChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any>, newField: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonChanged>;
116
+ export declare function fieldDeprecationReasonAddedFromMeta(args: FieldDeprecationReasonAddedChange): {
117
+ readonly type: ChangeType.FieldDeprecationReasonAdded;
118
+ readonly criticality: {
119
+ readonly level: CriticalityLevel.NonBreaking;
120
+ };
121
+ readonly message: string;
122
+ readonly meta: {
123
+ typeName: string;
124
+ fieldName: string;
125
+ addedDeprecationReason: string;
126
+ };
127
+ readonly path: string;
128
+ };
129
+ export declare function fieldDeprecationReasonAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonAdded>;
130
+ export declare function fieldDeprecationReasonRemovedFromMeta(args: FieldDeprecationReasonRemovedChange): {
131
+ readonly type: ChangeType.FieldDeprecationReasonRemoved;
132
+ readonly criticality: {
133
+ readonly level: CriticalityLevel.NonBreaking;
134
+ };
135
+ readonly message: `Deprecation reason was removed from field '${string}.${string}'`;
136
+ readonly meta: {
137
+ typeName: string;
138
+ fieldName: string;
139
+ };
140
+ readonly path: string;
141
+ };
142
+ export declare function fieldDeprecationReasonRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any>): Change<ChangeType.FieldDeprecationReasonRemoved>;
143
+ export declare function fieldTypeChangedFromMeta(args: FieldTypeChangedChange): {
144
+ readonly type: ChangeType.FieldTypeChanged;
145
+ readonly criticality: {
146
+ readonly level: CriticalityLevel.Breaking | CriticalityLevel.NonBreaking;
147
+ };
148
+ readonly message: string;
149
+ readonly meta: {
150
+ typeName: string;
151
+ fieldName: string;
152
+ oldFieldType: string;
153
+ newFieldType: string;
154
+ isSafeFieldTypeChange: boolean;
155
+ };
156
+ readonly path: string;
157
+ };
158
+ export declare function fieldTypeChanged(type: GraphQLObjectType | GraphQLInterfaceType, oldField: GraphQLField<any, any, any>, newField: GraphQLField<any, any, any>): Change<ChangeType.FieldTypeChanged>;
159
+ export declare function fieldArgumentAddedFromMeta(args: FieldArgumentAddedChange): {
160
+ readonly type: ChangeType.FieldArgumentAdded;
161
+ readonly criticality: {
162
+ readonly level: CriticalityLevel.Breaking | CriticalityLevel.Dangerous;
163
+ };
164
+ readonly message: string;
165
+ readonly meta: {
166
+ typeName: string;
167
+ fieldName: string;
168
+ addedArgumentName: string;
169
+ addedArgumentType: string;
170
+ hasDefaultValue: boolean;
171
+ isAddedFieldArgumentBreaking: boolean;
172
+ };
173
+ readonly path: string;
174
+ };
175
+ export declare function fieldArgumentAdded(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentAdded>;
176
+ export declare function fieldArgumentRemovedFromMeta(args: FieldArgumentRemovedChange): {
177
+ readonly type: ChangeType.FieldArgumentRemoved;
178
+ readonly criticality: {
179
+ readonly level: CriticalityLevel.Breaking;
180
+ };
181
+ readonly message: string;
182
+ readonly meta: {
183
+ typeName: string;
184
+ fieldName: string;
185
+ removedFieldArgumentName: string;
186
+ removedFieldType: string;
187
+ };
188
+ readonly path: string;
189
+ };
190
+ export declare function fieldArgumentRemoved(type: GraphQLObjectType | GraphQLInterfaceType, field: GraphQLField<any, any, any>, arg: GraphQLArgument): Change<ChangeType.FieldArgumentRemoved>;
@@ -1,9 +1,113 @@
1
1
  import { GraphQLInputField, GraphQLInputObjectType } from 'graphql';
2
- import { Change } from './change.cjs';
3
- export declare function inputFieldRemoved(input: GraphQLInputObjectType, field: GraphQLInputField): Change;
4
- export declare function inputFieldAdded(input: GraphQLInputObjectType, field: GraphQLInputField): Change;
5
- export declare function inputFieldDescriptionAdded(type: GraphQLInputObjectType, field: GraphQLInputField): Change;
6
- export declare function inputFieldDescriptionRemoved(type: GraphQLInputObjectType, field: GraphQLInputField): Change;
7
- export declare function inputFieldDescriptionChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
8
- export declare function inputFieldDefaultValueChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
9
- export declare function inputFieldTypeChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
2
+ import { Change, ChangeType, CriticalityLevel, InputFieldAddedChange, InputFieldDefaultValueChangedChange, InputFieldDescriptionAddedChange, InputFieldDescriptionChangedChange, InputFieldDescriptionRemovedChange, InputFieldRemovedChange, InputFieldTypeChangedChange } from './change.cjs';
3
+ export declare function inputFieldRemovedFromMeta(args: InputFieldRemovedChange): {
4
+ readonly type: ChangeType.InputFieldRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing an input field will cause existing queries that use this input field to error.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ inputName: string;
12
+ removedFieldName: string;
13
+ isInputFieldDeprecated: boolean;
14
+ };
15
+ readonly path: string;
16
+ };
17
+ export declare function inputFieldRemoved(input: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldRemoved>;
18
+ export declare function buildInputFieldAddedMessage(args: InputFieldAddedChange['meta']): string;
19
+ export declare function inputFieldAddedFromMeta(args: InputFieldAddedChange): {
20
+ readonly type: ChangeType.InputFieldAdded;
21
+ readonly criticality: {
22
+ level: CriticalityLevel;
23
+ reason?: undefined;
24
+ } | {
25
+ level: CriticalityLevel;
26
+ reason: string;
27
+ };
28
+ readonly message: string;
29
+ readonly meta: {
30
+ inputName: string;
31
+ addedInputFieldName: string;
32
+ isAddedInputFieldTypeNullable: boolean;
33
+ addedInputFieldType: string;
34
+ };
35
+ readonly path: string;
36
+ };
37
+ export declare function inputFieldAdded(input: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldAdded>;
38
+ export declare function inputFieldDescriptionAddedFromMeta(args: InputFieldDescriptionAddedChange): {
39
+ readonly type: ChangeType.InputFieldDescriptionAdded;
40
+ readonly criticality: {
41
+ readonly level: CriticalityLevel.NonBreaking;
42
+ };
43
+ readonly message: string;
44
+ readonly meta: {
45
+ inputName: string;
46
+ inputFieldName: string;
47
+ addedInputFieldDescription: string;
48
+ };
49
+ readonly path: string;
50
+ };
51
+ export declare function inputFieldDescriptionAdded(type: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldDescriptionAdded>;
52
+ export declare function inputFieldDescriptionRemovedFromMeta(args: InputFieldDescriptionRemovedChange): {
53
+ readonly type: ChangeType.InputFieldDescriptionRemoved;
54
+ readonly criticality: {
55
+ readonly level: CriticalityLevel.NonBreaking;
56
+ };
57
+ readonly message: string;
58
+ readonly meta: {
59
+ inputName: string;
60
+ inputFieldName: string;
61
+ removedDescription: string;
62
+ };
63
+ readonly path: string;
64
+ };
65
+ export declare function inputFieldDescriptionRemoved(type: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldDescriptionRemoved>;
66
+ export declare function inputFieldDescriptionChangedFromMeta(args: InputFieldDescriptionChangedChange): {
67
+ readonly type: ChangeType.InputFieldDescriptionChanged;
68
+ readonly criticality: {
69
+ readonly level: CriticalityLevel.NonBreaking;
70
+ };
71
+ readonly message: string;
72
+ readonly meta: {
73
+ inputName: string;
74
+ inputFieldName: string;
75
+ oldInputFieldDescription: string;
76
+ newInputFieldDescription: string;
77
+ };
78
+ readonly path: string;
79
+ };
80
+ export declare function inputFieldDescriptionChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldDescriptionChanged>;
81
+ export declare function inputFieldDefaultValueChangedFromMeta(args: InputFieldDefaultValueChangedChange): {
82
+ readonly type: ChangeType.InputFieldDefaultValueChanged;
83
+ readonly criticality: {
84
+ readonly level: CriticalityLevel.Dangerous;
85
+ readonly reason: "Changing the default value for an argument may change the runtime behavior of a field if it was never provided.";
86
+ };
87
+ readonly message: string;
88
+ readonly meta: {
89
+ inputName: string;
90
+ inputFieldName: string;
91
+ oldDefaultValue?: string | undefined;
92
+ newDefaultValue?: string | undefined;
93
+ };
94
+ readonly path: string;
95
+ };
96
+ export declare function inputFieldDefaultValueChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldDefaultValueChanged>;
97
+ export declare function inputFieldTypeChangedFromMeta(args: InputFieldTypeChangedChange): {
98
+ readonly type: ChangeType.InputFieldTypeChanged;
99
+ readonly criticality: {
100
+ level: CriticalityLevel;
101
+ reason: string;
102
+ };
103
+ readonly message: string;
104
+ readonly meta: {
105
+ inputName: string;
106
+ inputFieldName: string;
107
+ oldInputFieldType: string;
108
+ newInputFieldType: string;
109
+ isInputFieldTypeChangeSafe: boolean;
110
+ };
111
+ readonly path: string;
112
+ };
113
+ export declare function inputFieldTypeChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldTypeChanged>;
@@ -1,9 +1,113 @@
1
1
  import { GraphQLInputField, GraphQLInputObjectType } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function inputFieldRemoved(input: GraphQLInputObjectType, field: GraphQLInputField): Change;
4
- export declare function inputFieldAdded(input: GraphQLInputObjectType, field: GraphQLInputField): Change;
5
- export declare function inputFieldDescriptionAdded(type: GraphQLInputObjectType, field: GraphQLInputField): Change;
6
- export declare function inputFieldDescriptionRemoved(type: GraphQLInputObjectType, field: GraphQLInputField): Change;
7
- export declare function inputFieldDescriptionChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
8
- export declare function inputFieldDefaultValueChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
9
- export declare function inputFieldTypeChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change;
2
+ import { Change, ChangeType, CriticalityLevel, InputFieldAddedChange, InputFieldDefaultValueChangedChange, InputFieldDescriptionAddedChange, InputFieldDescriptionChangedChange, InputFieldDescriptionRemovedChange, InputFieldRemovedChange, InputFieldTypeChangedChange } from './change.js';
3
+ export declare function inputFieldRemovedFromMeta(args: InputFieldRemovedChange): {
4
+ readonly type: ChangeType.InputFieldRemoved;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ readonly reason: "Removing an input field will cause existing queries that use this input field to error.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ inputName: string;
12
+ removedFieldName: string;
13
+ isInputFieldDeprecated: boolean;
14
+ };
15
+ readonly path: string;
16
+ };
17
+ export declare function inputFieldRemoved(input: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldRemoved>;
18
+ export declare function buildInputFieldAddedMessage(args: InputFieldAddedChange['meta']): string;
19
+ export declare function inputFieldAddedFromMeta(args: InputFieldAddedChange): {
20
+ readonly type: ChangeType.InputFieldAdded;
21
+ readonly criticality: {
22
+ level: CriticalityLevel;
23
+ reason?: undefined;
24
+ } | {
25
+ level: CriticalityLevel;
26
+ reason: string;
27
+ };
28
+ readonly message: string;
29
+ readonly meta: {
30
+ inputName: string;
31
+ addedInputFieldName: string;
32
+ isAddedInputFieldTypeNullable: boolean;
33
+ addedInputFieldType: string;
34
+ };
35
+ readonly path: string;
36
+ };
37
+ export declare function inputFieldAdded(input: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldAdded>;
38
+ export declare function inputFieldDescriptionAddedFromMeta(args: InputFieldDescriptionAddedChange): {
39
+ readonly type: ChangeType.InputFieldDescriptionAdded;
40
+ readonly criticality: {
41
+ readonly level: CriticalityLevel.NonBreaking;
42
+ };
43
+ readonly message: string;
44
+ readonly meta: {
45
+ inputName: string;
46
+ inputFieldName: string;
47
+ addedInputFieldDescription: string;
48
+ };
49
+ readonly path: string;
50
+ };
51
+ export declare function inputFieldDescriptionAdded(type: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldDescriptionAdded>;
52
+ export declare function inputFieldDescriptionRemovedFromMeta(args: InputFieldDescriptionRemovedChange): {
53
+ readonly type: ChangeType.InputFieldDescriptionRemoved;
54
+ readonly criticality: {
55
+ readonly level: CriticalityLevel.NonBreaking;
56
+ };
57
+ readonly message: string;
58
+ readonly meta: {
59
+ inputName: string;
60
+ inputFieldName: string;
61
+ removedDescription: string;
62
+ };
63
+ readonly path: string;
64
+ };
65
+ export declare function inputFieldDescriptionRemoved(type: GraphQLInputObjectType, field: GraphQLInputField): Change<ChangeType.InputFieldDescriptionRemoved>;
66
+ export declare function inputFieldDescriptionChangedFromMeta(args: InputFieldDescriptionChangedChange): {
67
+ readonly type: ChangeType.InputFieldDescriptionChanged;
68
+ readonly criticality: {
69
+ readonly level: CriticalityLevel.NonBreaking;
70
+ };
71
+ readonly message: string;
72
+ readonly meta: {
73
+ inputName: string;
74
+ inputFieldName: string;
75
+ oldInputFieldDescription: string;
76
+ newInputFieldDescription: string;
77
+ };
78
+ readonly path: string;
79
+ };
80
+ export declare function inputFieldDescriptionChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldDescriptionChanged>;
81
+ export declare function inputFieldDefaultValueChangedFromMeta(args: InputFieldDefaultValueChangedChange): {
82
+ readonly type: ChangeType.InputFieldDefaultValueChanged;
83
+ readonly criticality: {
84
+ readonly level: CriticalityLevel.Dangerous;
85
+ readonly reason: "Changing the default value for an argument may change the runtime behavior of a field if it was never provided.";
86
+ };
87
+ readonly message: string;
88
+ readonly meta: {
89
+ inputName: string;
90
+ inputFieldName: string;
91
+ oldDefaultValue?: string | undefined;
92
+ newDefaultValue?: string | undefined;
93
+ };
94
+ readonly path: string;
95
+ };
96
+ export declare function inputFieldDefaultValueChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldDefaultValueChanged>;
97
+ export declare function inputFieldTypeChangedFromMeta(args: InputFieldTypeChangedChange): {
98
+ readonly type: ChangeType.InputFieldTypeChanged;
99
+ readonly criticality: {
100
+ level: CriticalityLevel;
101
+ reason: string;
102
+ };
103
+ readonly message: string;
104
+ readonly meta: {
105
+ inputName: string;
106
+ inputFieldName: string;
107
+ oldInputFieldType: string;
108
+ newInputFieldType: string;
109
+ isInputFieldTypeChangeSafe: boolean;
110
+ };
111
+ readonly path: string;
112
+ };
113
+ export declare function inputFieldTypeChanged(input: GraphQLInputObjectType, oldField: GraphQLInputField, newField: GraphQLInputField): Change<ChangeType.InputFieldTypeChanged>;
@@ -1,4 +1,30 @@
1
1
  import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- import { Change } from './change.cjs';
3
- export declare function objectTypeInterfaceAdded(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change;
4
- export declare function objectTypeInterfaceRemoved(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change;
2
+ import { Change, ChangeType, CriticalityLevel, ObjectTypeInterfaceAddedChange, ObjectTypeInterfaceRemovedChange } from './change.cjs';
3
+ export declare function objectTypeInterfaceAddedFromMeta(args: ObjectTypeInterfaceAddedChange): {
4
+ readonly type: ChangeType.ObjectTypeInterfaceAdded;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Dangerous;
7
+ readonly reason: "Adding an interface to an object type may break existing clients that were not programming defensively against a new possible type.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ objectTypeName: string;
12
+ addedInterfaceName: string;
13
+ };
14
+ readonly path: string;
15
+ };
16
+ export declare function objectTypeInterfaceAdded(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change<ChangeType.ObjectTypeInterfaceAdded>;
17
+ export declare function objectTypeInterfaceRemovedFromMeta(args: ObjectTypeInterfaceRemovedChange): {
18
+ readonly type: ChangeType.ObjectTypeInterfaceRemoved;
19
+ readonly criticality: {
20
+ readonly level: CriticalityLevel.Breaking;
21
+ readonly reason: "Removing an interface from an object type can cause existing queries that use this in a fragment spread to error.";
22
+ };
23
+ readonly message: string;
24
+ readonly meta: {
25
+ objectTypeName: string;
26
+ removedInterfaceName: string;
27
+ };
28
+ readonly path: string;
29
+ };
30
+ export declare function objectTypeInterfaceRemoved(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change<ChangeType.ObjectTypeInterfaceRemoved>;
@@ -1,4 +1,30 @@
1
1
  import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function objectTypeInterfaceAdded(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change;
4
- export declare function objectTypeInterfaceRemoved(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change;
2
+ import { Change, ChangeType, CriticalityLevel, ObjectTypeInterfaceAddedChange, ObjectTypeInterfaceRemovedChange } from './change.js';
3
+ export declare function objectTypeInterfaceAddedFromMeta(args: ObjectTypeInterfaceAddedChange): {
4
+ readonly type: ChangeType.ObjectTypeInterfaceAdded;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Dangerous;
7
+ readonly reason: "Adding an interface to an object type may break existing clients that were not programming defensively against a new possible type.";
8
+ };
9
+ readonly message: string;
10
+ readonly meta: {
11
+ objectTypeName: string;
12
+ addedInterfaceName: string;
13
+ };
14
+ readonly path: string;
15
+ };
16
+ export declare function objectTypeInterfaceAdded(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change<ChangeType.ObjectTypeInterfaceAdded>;
17
+ export declare function objectTypeInterfaceRemovedFromMeta(args: ObjectTypeInterfaceRemovedChange): {
18
+ readonly type: ChangeType.ObjectTypeInterfaceRemoved;
19
+ readonly criticality: {
20
+ readonly level: CriticalityLevel.Breaking;
21
+ readonly reason: "Removing an interface from an object type can cause existing queries that use this in a fragment spread to error.";
22
+ };
23
+ readonly message: string;
24
+ readonly meta: {
25
+ objectTypeName: string;
26
+ removedInterfaceName: string;
27
+ };
28
+ readonly path: string;
29
+ };
30
+ export declare function objectTypeInterfaceRemoved(iface: GraphQLInterfaceType, type: GraphQLObjectType): Change<ChangeType.ObjectTypeInterfaceRemoved>;
@@ -1,5 +1,38 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
- import { Change } from './change.cjs';
3
- export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
4
- export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
5
- export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
2
+ import { Change, ChangeType, CriticalityLevel, SchemaMutationTypeChangedChange, SchemaQueryTypeChangedChange, SchemaSubscriptionTypeChangedChange } from './change.cjs';
3
+ export declare function schemaQueryTypeChangedFromMeta(args: SchemaQueryTypeChangedChange): {
4
+ readonly type: ChangeType.SchemaQueryTypeChanged;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ };
8
+ readonly message: string;
9
+ readonly meta: {
10
+ oldQueryTypeName: string;
11
+ newQueryTypeName: string;
12
+ };
13
+ };
14
+ export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaQueryTypeChanged>;
15
+ export declare function schemaMutationTypeChangedFromMeta(args: SchemaMutationTypeChangedChange): {
16
+ readonly type: ChangeType.SchemaMutationTypeChanged;
17
+ readonly criticality: {
18
+ readonly level: CriticalityLevel.Breaking;
19
+ };
20
+ readonly message: string;
21
+ readonly meta: {
22
+ oldMutationTypeName: string;
23
+ newMutationTypeName: string;
24
+ };
25
+ };
26
+ export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaMutationTypeChanged>;
27
+ export declare function schemaSubscriptionTypeChangedFromMeta(args: SchemaSubscriptionTypeChangedChange): {
28
+ readonly type: ChangeType.SchemaSubscriptionTypeChanged;
29
+ readonly criticality: {
30
+ readonly level: CriticalityLevel.Breaking;
31
+ };
32
+ readonly message: string;
33
+ readonly meta: {
34
+ oldSubscriptionTypeName: string;
35
+ newSubscriptionTypeName: string;
36
+ };
37
+ };
38
+ export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaSubscriptionTypeChanged>;
@@ -1,5 +1,38 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
- import { Change } from './change.js';
3
- export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
4
- export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
5
- export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change;
2
+ import { Change, ChangeType, CriticalityLevel, SchemaMutationTypeChangedChange, SchemaQueryTypeChangedChange, SchemaSubscriptionTypeChangedChange } from './change.js';
3
+ export declare function schemaQueryTypeChangedFromMeta(args: SchemaQueryTypeChangedChange): {
4
+ readonly type: ChangeType.SchemaQueryTypeChanged;
5
+ readonly criticality: {
6
+ readonly level: CriticalityLevel.Breaking;
7
+ };
8
+ readonly message: string;
9
+ readonly meta: {
10
+ oldQueryTypeName: string;
11
+ newQueryTypeName: string;
12
+ };
13
+ };
14
+ export declare function schemaQueryTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaQueryTypeChanged>;
15
+ export declare function schemaMutationTypeChangedFromMeta(args: SchemaMutationTypeChangedChange): {
16
+ readonly type: ChangeType.SchemaMutationTypeChanged;
17
+ readonly criticality: {
18
+ readonly level: CriticalityLevel.Breaking;
19
+ };
20
+ readonly message: string;
21
+ readonly meta: {
22
+ oldMutationTypeName: string;
23
+ newMutationTypeName: string;
24
+ };
25
+ };
26
+ export declare function schemaMutationTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaMutationTypeChanged>;
27
+ export declare function schemaSubscriptionTypeChangedFromMeta(args: SchemaSubscriptionTypeChangedChange): {
28
+ readonly type: ChangeType.SchemaSubscriptionTypeChanged;
29
+ readonly criticality: {
30
+ readonly level: CriticalityLevel.Breaking;
31
+ };
32
+ readonly message: string;
33
+ readonly meta: {
34
+ oldSubscriptionTypeName: string;
35
+ newSubscriptionTypeName: string;
36
+ };
37
+ };
38
+ export declare function schemaSubscriptionTypeChanged(oldSchema: GraphQLSchema, newSchema: GraphQLSchema): Change<ChangeType.SchemaSubscriptionTypeChanged>;